@nuxt/devtools 4.0.0-alpha.11 → 4.0.0-alpha.13

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 (131) hide show
  1. package/dist/chunks/analyze-build.mjs +5 -5
  2. package/dist/chunks/module-main.mjs +53 -44
  3. package/dist/chunks/vite-inspect.mjs +6 -6
  4. package/dist/dirs.d.mts +1 -3
  5. package/dist/dirs.mjs +2 -4
  6. package/dist/module.d.mts +1 -1
  7. package/dist/module.json +1 -1
  8. package/dist/runtime/plugins/devtools.client.js +0 -4
  9. package/dist/runtime/plugins/view/client.js +1 -67
  10. package/dist/shared/{devtools.LsRDzDTD.d.mts → devtools.DIKI0iiX.d.mts} +1 -7
  11. package/dist/types.d.mts +1 -1
  12. package/package.json +29 -39
  13. package/dist/client/200.html +0 -1
  14. package/dist/client/404.html +0 -1
  15. package/dist/client/_nuxt/__blank-ki8oaugs.js +0 -1
  16. package/dist/client/_nuxt/_plugin-vue_export-helper-d9irwgla.js +0 -1
  17. package/dist/client/_nuxt/analyze-build-ne41xjd4.js +0 -1
  18. package/dist/client/_nuxt/assets-f8xklgq9.js +0 -6
  19. package/dist/client/_nuxt/assets.css-hmxl533k.css +0 -1
  20. package/dist/client/_nuxt/auth-required-panel-hlhmg87z.js +0 -1
  21. package/dist/client/_nuxt/builds/latest.json +0 -1
  22. package/dist/client/_nuxt/builds/meta/491c94f8-60b1-4f88-a55c-3cb1bf18dd79.json +0 -1
  23. package/dist/client/_nuxt/cd81saaa.js +0 -2
  24. package/dist/client/_nuxt/client-iet3i2jx.js +0 -1
  25. package/dist/client/_nuxt/code-diff-f21wjzw6.js +0 -8
  26. package/dist/client/_nuxt/code-snippets-e28cw1b6.js +0 -1
  27. package/dist/client/_nuxt/color-abaog8vc.js +0 -1
  28. package/dist/client/_nuxt/components-o6uyjkn7.js +0 -1
  29. package/dist/client/_nuxt/composable-item-ocorhvb4.js +0 -1
  30. package/dist/client/_nuxt/composables-ioamscf4.js +0 -1
  31. package/dist/client/_nuxt/composables-li5sexni.js +0 -1
  32. package/dist/client/_nuxt/constants-g2z8m4rs.js +0 -1
  33. package/dist/client/_nuxt/custom-_name_-m5d1q22j.js +0 -1
  34. package/dist/client/_nuxt/data-schema-button-kil5d35s.js +0 -1
  35. package/dist/client/_nuxt/data-schema-drawer-pb9ef6ns.js +0 -2
  36. package/dist/client/_nuxt/debug-nrr1l0ts.js +0 -1
  37. package/dist/client/_nuxt/default-m4s11ttb.js +0 -1
  38. package/dist/client/_nuxt/dialog-loe55arg.js +0 -1
  39. package/dist/client/_nuxt/dist-2c3gpsw0.js +0 -1
  40. package/dist/client/_nuxt/dist-das2ggjj.js +0 -1
  41. package/dist/client/_nuxt/dist-gklva25a.js +0 -1
  42. package/dist/client/_nuxt/duration-display-fjuy04uz.js +0 -1
  43. package/dist/client/_nuxt/editor-eakm7xzk.js +0 -1
  44. package/dist/client/_nuxt/entry.css-meav5jmw.css +0 -1
  45. package/dist/client/_nuxt/error-404-nauqrial.js +0 -1
  46. package/dist/client/_nuxt/error-404.css-k0vnbfeq.css +0 -1
  47. package/dist/client/_nuxt/error-500-h4c50p0t.js +0 -1
  48. package/dist/client/_nuxt/error-500.css-lhh2zs4d.css +0 -1
  49. package/dist/client/_nuxt/error-nukkk3mr.js +0 -9
  50. package/dist/client/_nuxt/filepath-item-l8m3u23m.js +0 -1
  51. package/dist/client/_nuxt/full-kcw32vsy.js +0 -1
  52. package/dist/client/_nuxt/fuse-ipb957gg.js +0 -1
  53. package/dist/client/_nuxt/help-fab-ccbj2zxc.js +0 -1
  54. package/dist/client/_nuxt/help-fab.css-ms50khsu.css +0 -1
  55. package/dist/client/_nuxt/hooks-d7ream10.js +0 -1
  56. package/dist/client/_nuxt/imports-eqmikopw.js +0 -1
  57. package/dist/client/_nuxt/launch-page-l2e581he.js +0 -1
  58. package/dist/client/_nuxt/modules-j9bs520l.js +0 -1
  59. package/dist/client/_nuxt/nbadge-n73p68uz.js +0 -1
  60. package/dist/client/_nuxt/nbutton-np26z5og.js +0 -1
  61. package/dist/client/_nuxt/ncard-kyrmtdmn.js +0 -1
  62. package/dist/client/_nuxt/ncheckbox-hmazj87n.js +0 -1
  63. package/dist/client/_nuxt/ncode-block-ltlsxf5u.js +0 -2
  64. package/dist/client/_nuxt/ncode-block.css-ivoxtfjk.css +0 -1
  65. package/dist/client/_nuxt/ndialog-mpi6dkdo.js +0 -3
  66. package/dist/client/_nuxt/ndrawer-hw8gqgye.js +0 -1
  67. package/dist/client/_nuxt/ndropdown-l76w9qwv.js +0 -1
  68. package/dist/client/_nuxt/nicon-co5pnhft.js +0 -4
  69. package/dist/client/_nuxt/nicon-title-ejbxuupx.js +0 -1
  70. package/dist/client/_nuxt/nlink-h3jrz76l.js +0 -1
  71. package/dist/client/_nuxt/nloading-lhpm96ki.js +0 -1
  72. package/dist/client/_nuxt/nmarkdown-7qnv8atx.js +0 -1
  73. package/dist/client/_nuxt/nnavbar-g38amume.js +0 -1
  74. package/dist/client/_nuxt/none-ju85xmqv.js +0 -1
  75. package/dist/client/_nuxt/npanel-grids-fa3ah9jo.js +0 -1
  76. package/dist/client/_nuxt/npm-napoklx5.js +0 -1
  77. package/dist/client/_nuxt/nsection-block-kzcj1vk3.js +0 -1
  78. package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +0 -1
  79. package/dist/client/_nuxt/nselect-md65qzv8.js +0 -1
  80. package/dist/client/_nuxt/nselect-tabs-brv0wfuv.js +0 -1
  81. package/dist/client/_nuxt/nsplit-pane-bs5dfe16.js +0 -1
  82. package/dist/client/_nuxt/nsplit-pane.css-k1gopk47.css +0 -1
  83. package/dist/client/_nuxt/ntext-input-obq09i2s.js +0 -1
  84. package/dist/client/_nuxt/ntip-nv65xhm1.js +0 -1
  85. package/dist/client/_nuxt/nuxt-hj3jyofn.js +0 -1
  86. package/dist/client/_nuxt/nuxt-link-nsgkom6k.js +0 -1
  87. package/dist/client/_nuxt/nuxt-logo-dead1uws.js +0 -1
  88. package/dist/client/_nuxt/open-graph-d1iodawb.js +0 -3
  89. package/dist/client/_nuxt/open-graph.css-dk03m1qz.css +0 -1
  90. package/dist/client/_nuxt/overview-cbabgv3v.js +0 -1
  91. package/dist/client/_nuxt/pages-oi6j0pbk.js +0 -1
  92. package/dist/client/_nuxt/payload-ie12v3te.js +0 -1
  93. package/dist/client/_nuxt/plugins-20xi1djl.js +0 -1
  94. package/dist/client/_nuxt/ready-ikhds7hc.js +0 -2
  95. package/dist/client/_nuxt/rolldown-runtime-f96lzs6p.js +0 -1
  96. package/dist/client/_nuxt/runtime-configs-fq4qn3y8.js +0 -1
  97. package/dist/client/_nuxt/server-route-inputs-c90qumt8.js +0 -1
  98. package/dist/client/_nuxt/server-routes-mcizq24b.js +0 -7
  99. package/dist/client/_nuxt/server-tasks-cicwbkvm.js +0 -1
  100. package/dist/client/_nuxt/settings-noeex3c7.js +0 -1
  101. package/dist/client/_nuxt/stacktrace-list-gmhj3wmk.js +0 -1
  102. package/dist/client/_nuxt/state-commands-bzr47er3.js +0 -1
  103. package/dist/client/_nuxt/state-components-jvq23n80.js +0 -1
  104. package/dist/client/_nuxt/state-editor-h7d9pjpa.js +0 -1
  105. package/dist/client/_nuxt/state-modules-fie7gkqb.js +0 -1
  106. package/dist/client/_nuxt/state-routes-ntw79bv6.js +0 -1
  107. package/dist/client/_nuxt/state-schema-eifqm6o4.js +0 -1
  108. package/dist/client/_nuxt/state-tabs-dhcec3o6.js +0 -1
  109. package/dist/client/_nuxt/storage-m9yh2hjt.js +0 -1
  110. package/dist/client/_nuxt/tab-icon-bw4o7q2t.js +0 -1
  111. package/dist/client/_nuxt/telemetry-mienojg2.js +0 -1
  112. package/dist/client/_nuxt/timeline-ce3m8i2h.js +0 -31
  113. package/dist/client/_nuxt/timeline.css-m03aec2q.css +0 -1
  114. package/dist/client/_nuxt/unhead.dnki-vlv7-jmz34zx6.js +0 -1
  115. package/dist/client/_nuxt/unocss-runtime-htk43m9c.js +0 -1
  116. package/dist/client/_nuxt/utils-d6zq4cvn.js +0 -1
  117. package/dist/client/_nuxt/vendor/json-editor-vue-h1waqukq.js +0 -3862
  118. package/dist/client/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css +0 -1
  119. package/dist/client/_nuxt/vendor/markdown-exit-nzr6hp55.js +0 -12
  120. package/dist/client/_nuxt/vendor/quicktype-core-lz5bp16m.js +0 -929
  121. package/dist/client/_nuxt/vendor/shiki-g3svwmfz.js +0 -152
  122. package/dist/client/_nuxt/vendor/unocss-hvwio62w.js +0 -3
  123. package/dist/client/_nuxt/vendor/unocss.css-bhad58wt.css +0 -1
  124. package/dist/client/_nuxt/vendor/vis-bjkylbfi.js +0 -30
  125. package/dist/client/_nuxt/virtual-files-la0ohl9t.js +0 -1
  126. package/dist/client/_nuxt/virtual-files.css-l97kh4kx.css +0 -1
  127. package/dist/client/index.html +0 -1
  128. package/dist/client/nuxt.svg +0 -3
  129. package/dist/runtime/plugins/view/state.d.ts +0 -2
  130. package/dist/runtime/plugins/view/state.js +0 -12
  131. package/types.d.ts +0 -1
@@ -1 +0,0 @@
1
- function e(e){return Array.isArray?Array.isArray(e):u(e)===`[object Array]`}function t(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function n(e){return e==null?``:t(e)}function r(e){return typeof e==`string`}function i(e){return typeof e==`number`}function a(e){return e===!0||e===!1||s(e)&&u(e)==`[object Boolean]`}function o(e){return typeof e==`object`}function s(e){return o(e)&&e!==null}function c(e){return e!=null}function l(e){return!e.trim().length}function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var d=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,f=e=>`Invalid value for key ${e}`,p=e=>`Pattern length exceeds max of ${e}.`,m=e=>`Missing ${e} property in key`,h=e=>`Property 'weight' in key '${e}' must be a positive integer`,g=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,_=Object.prototype.hasOwnProperty,v=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=y(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function y(t){let n=null,i=null,a=null,o=1,s=null;if(r(t)||e(t))a=t,n=b(t),i=x(t);else{if(!_.call(t,`name`))throw Error(m(`name`));let e=t.name;if(a=e,_.call(t,`weight`)&&t.weight!==void 0&&(o=t.weight,o<=0))throw Error(h(x(e)));n=b(e),i=x(e),s=t.getFn??null}return{path:n,id:i,weight:o,src:a,getFn:s}}function b(t){return e(t)?t:t.split(`.`)}function x(t){return e(t)?t.join(`.`):t}function S(t,o){let s=[],l=!1,u=(t,o,d,f)=>{if(c(t)){if(!o[d])s.push(f===void 0?t:{v:t,i:f});else{let p=t[o[d]];if(!c(p))return;if(d===o.length-1&&(r(p)||i(p)||a(p)||typeof p==`bigint`))s.push(f===void 0?n(p):{v:n(p),i:f});else if(e(p)){l=!0;for(let e=0,t=p.length;e<t;e+=1)u(p[e],o,d+1,e)}else o.length&&u(p,o,d+1,f)}}};return u(t,r(o)?o.split(`.`):o,0),l?s:s[0]}var C={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},w={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},T={location:0,threshold:.6,distance:100},E={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:S,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},D=Object.freeze({...w,...C,...T,...E});function ee(e){return e>=9&&e<=13||e===32||e===160}function te(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)ee(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var O=class{constructor({getFn:e=D.getFn,fieldNormWeight:t=D.fieldNormWeight}={}){this.norm=te(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(r(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(d);if(r(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(d);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!c(e)||l(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(t,i){let a={i,$:{}};for(let i=0,o=this.keys.length;i<o;i++){let o=this.keys[i],s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(c(s)){if(e(s)){let e=[];for(let t=0,i=s.length;t<i;t+=1){let i=s[t];if(c(i)){if(r(i)){if(!l(i)){let n={v:i,i:t,n:this.norm.get(i)};e.push(n)}}else if(c(i.v)){let t=r(i.v)?i.v:n(i.v);if(!l(t)){let n={v:t,i:i.i,n:this.norm.get(t)};e.push(n)}}}}a.$[i]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};a.$[i]=e}}}return a}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function k(e,t,{getFn:n=D.getFn,fieldNormWeight:r=D.fieldNormWeight}={}){let i=new O({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(y)),i.setSources(t),i.create(),i}function ne(e,{getFn:t=D.getFn,fieldNormWeight:n=D.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new O({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function A(e=[],t=D.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function re(e,t,n,{location:r=D.location,distance:i=D.distance,threshold:a=D.threshold,findAllMatches:o=D.findAllMatches,minMatchCharLength:s=D.minMatchCharLength,includeMatches:c=D.includeMatches,ignoreLocation:l=D.ignoreLocation}={}){if(t.length>32)throw Error(p(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),m=a,h=f,g=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},_=s>1||c,v=_?Array(d):[],y;for(;(y=e.indexOf(t,h))>-1;){let e=g(0,y);if(m=Math.min(e,m),h=y+u,_){let e=0;for(;e<u;)v[y+e]=1,e+=1}}h=-1;let b=[],x=1,S=0,C=u+d,w=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=C;for(;r<i;)g(t,f+i)<=m?r=i:C=i,i=Math.floor((C-r)/2+r);C=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),c[r]&w&&(x=g(t,i),x<=m)){if(m=x,h=i,S=t,h<=f)break;a=Math.max(1,2*f-h)}}if(g(t+1,f)>m)break;b=c}if(_&&h>=0){let t=Math.min(d-1,h+u-1+S);for(let r=h;r<=t;r+=1)n[e[r]]&&(v[r]=1)}let T={isMatch:h>=0,score:Math.max(.001,x)};if(_){let e=A(v,s);e.length?c&&(T.indices=e):T.isMatch=!1}return T}function ie(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function j(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var M={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},ae=RegExp(`[`+Object.keys(M).join(``)+`]`,`g`),N=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(ae,e=>M[e]):e=>e,P=class{constructor(e,{location:t=D.location,threshold:n=D.threshold,distance:r=D.distance,includeMatches:i=D.includeMatches,findAllMatches:a=D.findAllMatches,minMatchCharLength:o=D.minMatchCharLength,isCaseSensitive:s=D.isCaseSensitive,ignoreDiacritics:c=D.ignoreDiacritics,ignoreLocation:l=D.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?N(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ie(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?N(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=re(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=j(u)),p}},oe=new Set([`fuzzy`,`include`]);function se(e){return e.startsWith(`inverse`)}var F=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new P(e,{location:t.location??D.location,threshold:t.threshold??D.threshold,distance:t.distance??D.distance,includeMatches:t.includeMatches??D.includeMatches,findAllMatches:t.findAllMatches??D.findAllMatches,minMatchCharLength:t.minMatchCharLength??D.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??D.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??D.ignoreDiacritics,ignoreLocation:t.ignoreLocation??D.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],I=F.length,ce=`\0`,le=`|`;function ue(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function L(e,t){let n=e.match(t);return n?n[1]:null}function de(e,t={}){return e.replace(/\\\|/g,ce).split(le).map(e=>{let n=ue(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<I;){let e=F[o],n=L(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<I;){let e=F[o],n=L(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}var fe=class{constructor(e,{isCaseSensitive:t=D.isCaseSensitive,ignoreDiacritics:n=D.ignoreDiacritics,includeMatches:r=D.includeMatches,minMatchCharLength:i=D.minMatchCharLength,ignoreLocation:a=D.ignoreLocation,findAllMatches:o=D.findAllMatches,location:s=D.location,threshold:c=D.threshold,distance:l=D.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?N(e):e,this.pattern=e,this.query=de(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?N(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l)a+=1,s+=d,se(r.type)&&(c=!0),n&&(oe.has(r.type)?o.push(...u):o.push(u));else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=j(o)),e}}return{isMatch:!1,score:1}}},R=[];function z(...e){R.push(...e)}function B(e,t){for(let n=0,r=R.length;n<r;n+=1){let r=R[n];if(r.condition(e,t))return new r(e,t)}return new P(e,t)}var V={AND:`$and`,OR:`$or`},H={PATH:`$path`,PATTERN:`$val`},U=e=>!!(e[V.AND]||e[V.OR]),pe=e=>!!e[H.PATH],W=t=>!e(t)&&o(t)&&!U(t),G=e=>({[V.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function K(t,n,{auto:i=!0}={}){let a=t=>{if(r(t)){let e={keyId:null,pattern:t};return i&&(e.searcher=B(t,n)),e}let o=Object.keys(t),s=pe(t);if(!s&&o.length>1&&!U(t))return a(G(t));if(W(t)){let e=s?t[H.PATH]:o[0],a=s?t[H.PATTERN]:t[e];if(!r(a))throw Error(f(e));let c={keyId:x(e),pattern:a};return i&&(c.searcher=B(a,n)),c}let c={children:[],operator:o[0]};return o.forEach(n=>{let r=t[n];e(r)&&r.forEach(e=>{c.children.push(a(e))})}),c};return U(t)||(t=G(t)),a(t)}function q(e,{ignoreFieldNorm:t=D.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function me(e,{ignoreFieldNorm:t=D.ignoreFieldNorm}){e.forEach(e=>{e.score=q(e.matches,{ignoreFieldNorm:t})})}var he=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function ge(e){let t=[];return e.matches.forEach(e=>{if(!c(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function _e(e,t,{includeMatches:n=D.includeMatches,includeScore:r=D.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=ge(e)),r&&(a.score=e.score),a})}var ve=/[\p{L}\p{M}\p{N}_]+/gu,J=new WeakSet;function ye(e){J.has(e)||(J.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function be(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||ye(e),t=>t.match(e)||[]):e=>e.match(ve)||[]}function Y({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=be(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=N(n)),r(n)}}}var xe=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Y({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new P(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=j(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function X(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function Z(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){X(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n){if(Array.isArray(n))for(let t of n)X(e,t.v,i,r);else X(e,n.v,i,r)}}}function Se(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)Z(r,i,t,n);return r}function Ce(e,t,n,r){Z(e,t,n,r)}function we(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function Q(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)we(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var $=class{constructor(e,t,n){this.options={...D,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new v(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=B(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof O))throw Error(`Incorrect 'index' type`);if(this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Y({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Se(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!c(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Y({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Ce(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&Q(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(d);this._invertedIndex&&Q(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:a,includeScore:o,shouldSort:s,sortFn:c,ignoreFieldNorm:l}=this.options;if(r(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return i(n)&&n>-1&&(e=e.slice(0,n)),e}let u=s&&i(n)&&n>0&&r(e),d=c,f=(e,t)=>d(e,t)||e.idx-t.idx,p;if(u){let t=new he(n,f);r(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:l}),p=t.extractSorted()}else p=r(e)?r(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),me(p,{ignoreFieldNorm:l}),s&&p.sort(r(e)?f:d),i(n)&&n>-1&&(p=p.slice(0,n));return _e(p,this._docs,{includeMatches:a,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!c(e))return;let l=r.searchIn(e);if(l.isMatch){let r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);let c=[r];if(!i||this._coversAllTokens(c)){let r={item:e,idx:a,matches:c};t?(r.score=q(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=K(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let{keyId:r,searcher:a}=e,o;return r===null?(o=[],n.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:a}))})):o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a}),o&&o.length?[{idx:i,item:t,matches:o}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e<n;e+=1){let n=a[e],c=r(n,t,i);if(c.length)s.push(...c);else if(o===V.AND)return[]}return s},i=this._myIndex.records,a=new Map,o=[];return i.forEach(({$:e,i:n})=>{if(c(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),o.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!c(e))return;let l=[],u=!1,d=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(d=!0)):u=!0}),!(d&&u)&&l.length&&(!i||this._coversAllTokens(l))){let r={idx:a,item:e,matches:l};t?(r.score=q(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:t,value:n,searcher:r}){if(!c(n))return[];let i=[];if(e(n))n.forEach(({v:e,i:n,n:a})=>{if(!c(e))return;let o=r.searchIn(e);if(o.isMatch){let r={score:o.score,key:t,value:e,idx:n,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(r.matchedMask=o.matchedMask,r.matchedTerms=o.matchedTerms,r.termCount=o.termCount),i.push(r)}});else{let{v:e,n:a}=n,o=r.searchIn(e);if(o.isMatch){let n={score:o.score,key:t,value:e,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),i.push(n)}}return i}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};$.version=`7.5.0`,$.createIndex=k,$.parseIndex=ne,$.config=D,$.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(g);return B(e,{...D,...n}).searchIn(t)},$.parseQuery=K,z(fe),z(xe),$.use=function(...e){e.forEach(e=>z(e))};var Te=$;export{Te as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./nicon-co5pnhft.js";import{C as t,H as n,J as r,a as i,bt as a,ct as o,f as s,h as c,kt as l,m as u,x as d}from"./vendor/json-editor-vue-h1waqukq.js";import{ft as f}from"./ready-ikhds7hc.js";import{t as p}from"./nbutton-np26z5og.js";var m={key:0,border:`l base`,class:`prose`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"h-full":``,"w-150":``,"overflow-auto":``,"bg-base":``,px8:``,py4:``},h=Object.assign(t({__name:`HelpFab`,setup(t){let h=a(!1),{showHelpButtons:g}=e(`ui`);return(e,t)=>{let a=p;return l(g)?(n(),c(i,{key:0},[s(`button`,{pos:`absolute bottom-5 right-5`,border:`~ base rounded-full `,flex:`~ items-center justify-center`,"z-110":``,"h-11":``,"w-11":``,"backdrop-blur-8":``,bg:`bg-base op50!`,"light:shadow":``,hover:`bg-active`,title:`Help`,onClick:t[0]||=e=>h.value=!h.value},[...t[3]||=[s(`div`,{"i-ri:question-mark":``},null,-1)]]),d(f,{name:`fade-in`},{default:o(()=>[h.value?(n(),c(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:t[1]||=e=>h.value=!1})):u(``,!0)]),_:1}),d(f,{name:`slide-in`},{default:o(()=>[h.value?(n(),c(`div`,m,[r(e.$slots,`default`),d(a,{icon:`carbon-close`,pos:`absolute top-3 right-3`,"rounded-full":``,"text-xl":``,border:!1,onClick:t[2]||=e=>h.value=!1})])):u(``,!0)]),_:3})],64)):u(``,!0)}}}),{__name:`HelpFab`});export{h as t};
@@ -1 +0,0 @@
1
- .slide-in-enter-active,.slide-in-leave-active{transition:transform .3s}.slide-in-enter-from,.slide-in-leave-to{transform:translate(100%)}.fade-in-enter-active,.fade-in-leave-active{transition:opacity .3s}.fade-in-enter-from,.fade-in-leave-to{opacity:0}
@@ -1 +0,0 @@
1
- import{a as e}from"./nicon-co5pnhft.js";import{C as t,H as n,Qt as r,Yt as i,Zt as a,a as o,b as s,bt as c,ct as l,d as u,f as d,h as f,kt as p,m,p as h,q as g,x as _}from"./vendor/json-editor-vue-h1waqukq.js";import{E as v}from"./utils-d6zq4cvn.js";import{t as y}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as b}from"./composables-ioamscf4.js";import{t as x}from"./help-fab-ccbj2zxc.js";import{t as S}from"./nsection-block-kzcj1vk3.js";import{t as C}from"./color-abaog8vc.js";import{t as w}from"./duration-display-fjuy04uz.js";var T={"w-full":``},E={border:`b base`},D={"select-none":``,"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},O={colspan:`2`,p1:``,pl5:``,"text-left":``,"font-bold":``},k={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},A={"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},j={"ws-nowrap":``,p1:``,"text-right":``,"font-bold":``},M={"w-0":``,"ws-nowrap":``,"text-center":``,"text-sm":``,op25:``},N={"text-sm":``},P={"ws-nowrap":``},F={"text-sm":``},I={"w-0":``,"text-center":``,"text-sm":``},L={"w-0":``,"text-center":``,"text-sm":``},R={"w-0":``,"text-right":``,"text-sm":``},z=Object.assign(t({__name:`HooksTable`,props:{hooks:{}},setup(e){let t=e,l=c(`duration`),m=c(`asc`),h={duration:(e,t)=>(t.duration??1/0)-(e.duration??1/0),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},v=u(()=>t.hooks.map(e=>e.start).sort((e,t)=>e-t)),y=u(()=>{let e=h[l.value],n=t.hooks.toSorted(e);return m.value===`desc`&&n.reverse(),n});function b(e){let t=e.split(`:`);return t.length===1?``:`${t[0]}:`}function x(e){let t=e.split(`:`);return t.length===1?e:t.slice(1).join(`:`)}function S(e){l.value===e?m.value=m.value===`asc`?`desc`:`asc`:l.value=e}return(e,t)=>{let c=w;return n(),f(`table`,T,[d(`thead`,E,[d(`tr`,null,[d(`th`,D,[d(`button`,{onClick:t[0]||=e=>S(`start`)},[t[5]||=s(` Order `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`start`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,O,[d(`button`,{onClick:t[1]||=e=>S(`name`)},[t[6]||=s(` Hook name `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`name`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,k,[d(`button`,{onClick:t[2]||=e=>S(`listener`)},[t[7]||=s(` Listeners `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`listener`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,A,[d(`button`,{onClick:t[3]||=e=>S(`executions`)},[t[8]||=s(` Executions `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`executions`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])]),d(`th`,j,[d(`button`,{onClick:t[4]||=e=>S(`duration`)},[t[9]||=s(` Duration `,-1),d(`div`,{"ml--1":``,"text-xs":``,class:i([l.value===`duration`?`op50`:`op0`,m.value===`asc`?`carbon-arrow-down`:`carbon-arrow-up`])},null,2)])])])]),d(`tbody`,null,[(n(!0),f(o,null,g(y.value,t=>(n(),f(`tr`,{key:t.name,border:`b dashed transparent hover:base`},[d(`td`,M,r(v.value.indexOf(t.start)),1),d(`td`,{"w-0":``,"ws-nowrap":``,"text-right":``,style:a({color:(`getHslColorFromStringHash`in e?e.getHslColorFromStringHash:p(C))(b(t.name))})},[d(`code`,N,r(b(t.name)),1)],4),d(`td`,P,[d(`code`,F,r(x(t.name)),1)]),d(`td`,I,r(t.listeners),1),d(`td`,L,r(t.executions.length+1),1),d(`td`,R,[_(c,{duration:t.duration},null,8,[`duration`])])]))),128))])])}}}),{__name:`HooksTable`}),B={},V={class:`markdown-body`};function H(e,t){return n(),f(`div`,V,[...t[0]||=[d(`template`,null,[d(`div`,{class:`markdown-body`},[d(`h1`,null,`Hooks`),d(`p`,null,[s(`Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by `),d(`a`,{href:`https://github.com/unjs/hookable`,target:`_blank`,rel:`noopener`},`unjs/hookable`),s(`.`)]),d(`p`,null,[d(`a`,{href:`https://nuxt.com/docs/guide/going-further/hooks`,target:`_blank`,rel:`noopener`},`Learn more about hooks`),s(`.`)])])],-1)]])}var U=y(B,[[`render`,H]]),W=t({__name:`hooks`,setup(t){b({icon:`carbon-ibm-cloud-direct-link-2-connect`,title:`Hooks`,category:`advanced`});let r=v(),i=e(),a=u(()=>i.value?.metrics.clientHooks());return(e,t)=>{let i=z,s=S,c=U,u=x;return n(),f(o,null,[d(`div`,null,[a.value?.length?(n(),h(s,{key:0,icon:`carbon-ibm-cloud-direct-link-1-dedicated-hosting`,text:`Client Hooks`,description:`Total hooks: ${a.value.length}`,padding:`pl4 pr6`},{default:l(()=>[_(i,{hooks:a.value},null,8,[`hooks`])]),_:1},8,[`description`])):m(``,!0),p(r)?.length?(n(),h(s,{key:1,icon:`carbon-ibm-cloud-direct-link-2-dedicated`,text:`Server Hooks`,description:`Total hooks: ${p(r)?.length}`,padding:`pl4 pr6`},{default:l(()=>[_(i,{hooks:p(r)},null,8,[`hooks`])]),_:1},8,[`description`])):m(``,!0)]),_(u,null,{default:l(()=>[_(c)]),_:1})],64)}}});export{W as default};
@@ -1 +0,0 @@
1
- import{t as e}from"./nicon-co5pnhft.js";import{C as t,H as n,Qt as r,a as i,bt as a,ct as o,d as s,f as c,h as l,kt as u,m as d,p as f,q as p,x as m}from"./vendor/json-editor-vue-h1waqukq.js";import{c as h,i as g,s as _,v,w as y}from"./utils-d6zq4cvn.js";import{t as b}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as x}from"./fuse-ipb957gg.js";import{t as S}from"./composables-ioamscf4.js";import{t as C}from"./filepath-item-l8m3u23m.js";import{t as w}from"./help-fab-ccbj2zxc.js";import{t as T}from"./nnavbar-g38amume.js";import{t as E}from"./nsection-block-kzcj1vk3.js";import{t as D}from"./nselect-tabs-brv0wfuv.js";import{t as O}from"./composable-item-ocorhvb4.js";var k={flex:`~ wrap gap2`,p2:``,pl4:``},A=Object.assign(t({__name:`ComposableTree`,props:{map:{},root:{},metadata:{}},setup(e){return(t,r)=>{let a=C,o=O;return n(),l(`div`,null,[(n(!0),l(i,null,p(e.map.entries(),([t,r])=>(n(),l(`div`,{key:t},[m(a,{filepath:t,op50:``,"hover:underline":``},null,8,[`filepath`]),c(`div`,k,[(n(!0),l(i,null,p(r,r=>(n(),f(o,{key:r.as,item:r,metadata:e.metadata,"is-directive":r.meta?.vueDirective===!0,filepath:t.match(/^[\w@]/)?void 0:t},null,8,[`item`,`metadata`,`is-directive`,`filepath`]))),128))])]))),128))])}}}),{__name:`ComposableTree`}),j={key:0,flex:`~ col gap-2 items-start`},M=Object.assign(t({__name:`HelpImportsDirs`,setup(e){let t=v();return(e,r)=>{let a=C;return u(t)?.dirs?(n(),l(`div`,j,[(n(!0),l(i,null,p(u(t).dirs,e=>(n(),f(a,{key:e,filepath:e,"text-primary":``},null,8,[`filepath`]))),128))])):d(``,!0)}}}),{__name:`HelpImportsDirs`}),N={flex:`~ gap-2 wrap`,mb6:``},P=Object.assign(t({__name:`HelpImportsModules`,setup(e){let t=v(),a=s(()=>[...new Set(t.value?.imports.map(e=>g(e.from)).filter(e=>!!e&&!_(e)))]);return(e,t)=>(n(),l(`div`,N,[(n(!0),l(i,null,p(a.value,e=>(n(),l(`code`,{key:e,rounded:``,"bg-primary:5":``,p:`x2 y0.5`,"text-primary":``},r(e),1))),128))]))}}),{__name:`HelpImportsModules`}),F={},I={class:`markdown-body`},L={class:`markdown-body`};function R(e,t){let r=M,i=P;return n(),l(`div`,I,[c(`template`,null,[c(`div`,L,[t[0]||=c(`h1`,null,`Auto imports`,-1),t[1]||=c(`p`,null,`Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.`,-1),t[2]||=c(`hr`,null,null,-1),t[3]||=c(`p`,null,`According to your config, exports of files under the following folders will be registed as auto-imports entry:`,-1),m(r),t[4]||=c(`p`,null,`Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:`,-1),m(i),t[5]||=c(`hr`,null,null,-1),t[6]||=c(`p`,null,[c(`a`,{href:`https://nuxt.com/docs/guide/concepts/auto-imports`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1),t[7]||=c(`h2`,null,`Directives`,-1),t[8]||=c(`p`,null,`Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`,-1),t[9]||=c(`p`,null,[c(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/directives`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)],-1)])])])}var z=b(F,[[`render`,R]]),B={key:0,relative:``,"h-full":``,"of-auto":``},V={key:0,flex:`~ gap-2 items-center lt-sm:col lt-sm:items-start`},H=t({__name:`imports`,setup(t){S({icon:`carbon-function`,title:`Imports`,order:4});let r=y(),c=a(`all`),p=a(`all`),b=a(``),C=v(),O=s(()=>C.value?.metadata),k=s(()=>C.value?.imports.filter(e=>e.as||e.name).sort((e,t)=>(e.as||e.name).localeCompare(t.as||t.name))||[]),j=s(()=>new x(k.value,{keys:[`from`,`as`,`name`]})),M=s(()=>{let e=new Map,t=new Map,n=new Map,r=b.value?j.value.search(b.value).map(e=>e.item):k.value,i=p.value;i===`composables`?r=r.filter(e=>e.meta?.vueDirective!==!0):i===`directives`&&(r=r.filter(e=>e.meta?.vueDirective===!0)),c.value===`using`&&O.value?r=r.filter(e=>(e.as||e.name)in O.value.injectionsUsageMap):c.value===`not-used`&&O.value&&(r=r.filter(e=>!((e.as||e.name)in O.value.injectionsUsageMap)));let a={user:0,lib:0,builtin:0};return r.forEach(r=>{let i=h(r.from)?_(g(r.from))?n:t:e;i.has(r.from)||i.set(r.from,[]),i.get(r.from).push(r),a[i===e?`user`:i===t?`lib`:`builtin`]++}),{user:e,lib:t,builtin:n,count:a}}),N=s(()=>p.value===`directives`?`${M.value.count.user} directives from ${M.value.user.size} modules`:`${M.value.count.user} composables from ${M.value.user.size} modules`),P=s(()=>p.value===`directives`?`${M.value.count.builtin} directives`:`${M.value.count.builtin} composables`),F=s(()=>p.value===`directives`?`${M.value.count.lib} directives from ${M.value.lib.size} packages`:`${M.value.count.lib} composables from ${M.value.lib.size} packages`);return(t,a)=>{let s=e,h=D,g=T,_=A,v=E,y=z,x=w;return n(),l(i,null,[u(r)?(n(),l(`div`,B,[m(g,{search:b.value,"onUpdate:search":a[2]||=e=>b.value=e,pb3:``},{default:o(()=>[O.value?(n(),l(`div`,V,[m(s,{icon:`carbon-filter`,op50:``}),m(h,{modelValue:c.value,"onUpdate:modelValue":a[0]||=e=>c.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`]),m(h,{modelValue:p.value,"onUpdate:modelValue":a[1]||=e=>p.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Composables`,value:`composables`},{label:`Directives`,value:`directives`}]},null,8,[`modelValue`])])):d(``,!0)]),_:1},8,[`search`]),M.value.user.size?(n(),f(v,{key:0,open:M.value.count.user<=u(50),icon:p.value===`directives`?`tabler:hexagon-letter-d`:`carbon-function`,text:`User ${p.value===`directives`?`directives`:`composables`}`,description:N.value},{default:o(()=>[m(_,{map:M.value.user,root:u(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`icon`,`text`,`description`])):d(``,!0),M.value.builtin.size?(n(),f(v,{key:1,open:M.value.count.builtin<=u(50),icon:`simple-icons-nuxtdotjs`,text:`Built-in ${p.value===`directives`?`directives`:`composables`}`,description:P.value},{default:o(()=>[m(_,{map:M.value.builtin,root:u(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):d(``,!0),M.value.lib.size?(n(),f(v,{key:2,open:M.value.count.lib<=u(50),icon:`carbon-3d-mpr-toggle`,text:`${p.value===`directives`?`Directives`:`Composables`} from libraries`,description:F.value},{default:o(()=>[m(_,{map:M.value.lib,root:u(r).rootDir,metadata:O.value},null,8,[`map`,`root`,`metadata`])]),_:1},8,[`open`,`text`,`description`])):d(``,!0)])):d(``,!0),m(x,null,{default:o(()=>[m(y)]),_:1})],64)}}});export{H as default};
@@ -1 +0,0 @@
1
- import{t as e}from"./nicon-co5pnhft.js";import{C as t,H as n,M as r,Qt as i,a,b as o,ct as s,f as c,h as l,m as u,p as d,q as f,x as p}from"./vendor/json-editor-vue-h1waqukq.js";import{t as m}from"./tab-icon-bw4o7q2t.js";import{t as h}from"./nbutton-np26z5og.js";import{t as g}from"./ncard-kyrmtdmn.js";import{t as _}from"./telemetry-mienojg2.js";import{t as v}from"./npanel-grids-fa3ah9jo.js";import{t as y}from"./nmarkdown-7qnv8atx.js";var b={"text-xl":``},x={flex:`~ gap2 wrap`},S=Object.assign(t({__name:`LaunchPage`,props:{name:{},icon:{},title:{},description:{},actions:{}},emits:[`action`],setup(t,{emit:S}){let C=t,w=S;function T(e,t){_(`launch-page`,{pageName:C.name}),e.handle?.(),w(`action`,t)}return(_,S)=>{let C=m,w=y,E=e,D=h,O=g,k=v;return n(),d(k,null,{default:s(()=>[p(O,{flex:`~ col gap2`,mxa:``,"min-w-100":``,"items-center":``,p6:``},{default:s(()=>[p(C,{mb2:``,"text-5xl":``,icon:t.icon||t.icon,title:t.title},null,8,[`icon`,`title`]),c(`h1`,b,i(t.title),1),t.description?(n(),d(w,{key:0,mb2:``,"mt--1":``,"text-center":``,"text-base":``,op50:``,markdown:t.description},null,8,[`markdown`])):u(``,!0),c(`div`,x,[(n(!0),l(a,null,f(t.actions,(e,t)=>(n(),d(D,r({key:t,n:`solid primary`,disabled:e.pending,to:e.src,target:e.src?`_blank`:void 0},{ref_for:!0},e.attrs,{onClick:n=>T(e,t)}),{default:s(()=>[e.pending?(n(),d(E,{key:0,icon:`carbon-circle-dash`,"animate-spin":``})):u(``,!0),o(` `+i(e.label),1)]),_:2},1040,[`disabled`,`to`,`target`,`onClick`]))),128))])]),_:1})]),_:1})}}}),{__name:`LaunchPage`});export{S as t};
@@ -1 +0,0 @@
1
- import{h as e,t}from"./nicon-co5pnhft.js";import{C as n,Dt as r,H as i,I as a,J as o,M as s,N as c,P as l,Qt as u,Tt as d,Yt as f,Z as p,Zt as m,a as h,at as g,b as _,bt as v,ct as y,d as b,et as x,f as S,gt as ee,h as C,kt as w,lt as te,m as T,p as E,q as D,v as O,x as k,xt as A,z as j}from"./vendor/json-editor-vue-h1waqukq.js";import{ft as ne}from"./ready-ikhds7hc.js";import{t as re}from"./nuxt-link-nsgkom6k.js";import{w as M}from"./utils-d6zq4cvn.js";import{n as N}from"./editor-eakm7xzk.js";import{t as P}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as F}from"./nbutton-np26z5og.js";import{t as I}from"./ncard-kyrmtdmn.js";import{t as ie}from"./ndialog-mpi6dkdo.js";import{t as ae}from"./fuse-ipb957gg.js";import{t as L}from"./state-commands-bzr47er3.js";import{t as R}from"./dialog-loe55arg.js";import{t as z}from"./telemetry-mienojg2.js";import{t as B}from"./ndropdown-l76w9qwv.js";import{t as V}from"./ncode-block-ltlsxf5u.js";import{t as H}from"./composables-ioamscf4.js";import{t as oe}from"./filepath-item-l8m3u23m.js";import{t as U}from"./ntip-nv65xhm1.js";import{t as W}from"./ncheckbox-hmazj87n.js";import{t as se}from"./help-fab-ccbj2zxc.js";import{t as ce}from"./nnavbar-g38amume.js";import{t as G}from"./nicon-title-ejbxuupx.js";import{t as le}from"./nsection-block-kzcj1vk3.js";import{t as K}from"./nbadge-n73p68uz.js";import{t as ue}from"./duration-display-fjuy04uz.js";import{n as q,r as de,t as fe}from"./state-modules-fie7gkqb.js";import{t as pe}from"./nlink-h3jrz76l.js";import{t as J}from"./code-diff-f21wjzw6.js";var Y=v([]),me={flex:`~ col gap2`,"flex-auto":``,"of-hidden":``,px1:``},he={"gap-1t":``,flex:``,"items-center":``,"text-ellipsis":``,"ws-nowrap":``,"text-lg":``},ge={key:2},_e={key:1,flex:`~ gap-2`,title:`Documentation`},ve={key:2,flex:`~ gap-2`},ye={key:0,flex:`~ gap-4 items-center`},be={key:0,flex:`~ gap-2 items-center`,op50:``},xe={key:1,flex:`~ gap-2 items-center`,op50:``},Se={key:1},Ce={flex:`~ col`,"items-end":``},we={key:0,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p4:``},Te=[`src`,`alt`],Ee={key:1,"i-carbon-cube":``,ma:``,"flex-none":``,"text-4xl":``,op30:``},De={key:1,flex:`~`,mt2:``,"flex-auto":``,"items-end":``,"justify-end":``},Oe=[`src`],ke={flex:``,"justify-end":``},Ae=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,je=`https://ipx.nuxt.com/s_44,f_webp/gh_avatar/`,Me=`https://github.com/`,Ne=`https://npmx.dev/package/`,Pe=Object.assign(n({__name:`ModuleItemBase`,props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){let n=e,r=b(()=>({...n.mod?.meta,...n.mod,...n.info})),{format:a}=Intl.NumberFormat(navigator.language||`en`,{notation:`compact`,maximumFractionDigits:1}),s=b(()=>a(r.value.stats?.stars||0)),c=b(()=>a(r.value.stats?.downloads||0)),l=N();return(n,a)=>{let d=re,p=t,m=ue,g=I;return i(),E(g,{p4:``,flex:`~ gap2`},{default:y(()=>[S(`div`,me,[o(n.$slots,`main`,{},()=>[S(`div`,he,[e.mod.isPackageModule?(i(),E(d,{key:0,to:Ne+(r.value.npm||r.value.name),target:`_blank`,hover:`underline text-primary`},{default:y(()=>[_(u(r.value.name),1)]),_:1},8,[`to`])):e.mod.entryPath?(i(),C(`button`,{key:1,role:`button`,hover:`underline text-primary`,onClick:a[0]||=t=>w(l)(e.mod.entryPath)},u(r.value.name),1)):(i(),C(`span`,ge,u(r.value.name),1)),o(n.$slots,`badge`)]),r.value.description?(i(),C(`div`,{key:0,class:f(e.compact?`ws-nowrap of-hidden truncate`:`line-clamp-2`),"mt--1":``,"text-sm":``,op50:``},u(r.value.description),3)):T(``,!0),a[3]||=S(`div`,{"flex-auto":``},null,-1),r.value.website?(i(),C(`div`,_e,[a[1]||=S(`span`,{"i-carbon-link":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(d,{to:r.value.website,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:y(()=>[_(u(r.value.website.replace(/^https?:\/\//,``)),1)]),_:1},8,[`to`])])):T(``,!0),r.value.github?(i(),C(`div`,ve,[a[2]||=S(`span`,{"i-carbon-logo-github":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(d,{to:r.value.github,target:`_blank`,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-sm":``,op50:``,hover:`op100 underline text-primary`},{default:y(()=>[_(u(r.value.github.replace(/^https?:\/\/github.com\//,``)),1)]),_:1},8,[`to`])])):T(``,!0)]),o(n.$slots,`items`),r.value.stats?(i(),C(`div`,ye,[r.value.stats.stars?(i(),C(`div`,be,[k(p,{icon:`carbon-star`,"flex-none":``,"text-lg":``}),S(`span`,null,u(s.value),1)])):T(``,!0),r.value.stats.downloads?(i(),C(`div`,xe,[k(p,{icon:`carbon-download`,"flex-none":``,"text-lg":``}),S(`span`,null,u(c.value),1)])):T(``,!0)])):T(``,!0),e.mod.timings?.setup?(i(),C(`div`,Se,[k(m,{title:`Module Setup Time`,flex:`~ items-center`,duration:e.mod.timings.setup,factor:.5},{before:y(()=>[k(p,{icon:`carbon-time`,mr2:``,"flex-none":``,"text-lg":``,op50:``})]),_:1},8,[`duration`])])):T(``,!0)]),S(`div`,Ce,[r.value.icon||e.mod.isPackageModule?(i(),C(`div`,we,[r.value.icon?(i(),C(`img`,{key:0,src:Ae+r.value.icon,alt:e.mod.name,ma:``},null,8,Te)):(i(),C(`div`,Ee))])):T(``,!0),r.value.maintainers?.length&&e.maintainers?(i(),C(`div`,De,[(i(!0),C(h,null,D(r.value.maintainers,e=>(i(),E(d,{key:e.name,target:`_blank`,to:Me+e.github,title:e.name},{default:y(()=>[S(`img`,{src:je+e.github,"h-6":``,"w-6":``,"rounded-full":``},null,8,Oe)]),_:2},1032,[`to`,`title`]))),128))])):T(``,!0),n.$slots.actions?(i(),C(h,{key:2},[a[4]||=S(`div`,{"flex-auto":``},null,-1),S(`div`,ke,[o(n.$slots,`actions`)])],64)):T(``,!0)])]),_:3})}}}),{__name:`ModuleItemBase`}),Fe={key:0,flex:`~ gap-2`,title:`Open on filesystem`},Ie=[`title`,`onClick`],Le={key:1,"mx--2":``},X=[`onClick`],Re={key:2,"mx--2":``},ze=[`onClick`],Be={op50:``},Ve={"text-green":``},He={key:3,flex:`~ gap-2`,"items-center":``,title:`NPM`},Ue={"text-sm":``,op50:``},We=Object.assign(n({__name:`ModuleItem`,props:{mod:{}},setup(t){let n=t,r=b(()=>n.mod.info),a=b(()=>({...n.mod?.meta,...n.mod,...r.value}));return(n,o)=>{let s=oe,c=de,l=Pe;return i(),E(l,{mod:t.mod,info:r.value},{items:y(()=>[t.mod.entryPath?(i(),C(`div`,Fe,[o[0]||=S(`span`,{"i-carbon-folder-move-to":``,"flex-none":``,"text-lg":``,op50:``},null,-1),k(s,{filepath:t.mod.entryPath,"text-sm":``,op50:``,hover:`text-primary op100`},null,8,[`filepath`])])):T(``,!0),a.value.npm?(i(),E(c,{key:a.value.npm,"package-name":a.value.npm,options:{dev:!0}},{default:y(({info:t,update:n,state:r,id:a,restart:s})=>[r===`running`?(i(),C(`button`,{key:0,flex:`~ gap-2`,"animate-pulse":``,"items-center":``,title:a?`Open the output in the Terminals dock`:void 0,onClick:t=>a?w(e).revealTerminal(a):void 0},[...o[1]||=[S(`span`,{"i-carbon-circle-dash":``,"flex-none":``,"animate-spin":``,"text-lg":``,op50:``},null,-1),S(`code`,{"text-sm":``,op50:``},`Upgrading...`,-1)]],8,Ie)):r===`updated`?(i(),C(`div`,Le,[S(`button`,{flex:`~ gap-2`,hover:`bg-primary/20`,"items-center":``,rounded:``,"bg-primary:10":``,px2:``,"text-sm":``,"text-primary":``,onClick:s},[...o[2]||=[S(`span`,{"i-carbon-intent-request-active":``,"flex-none":``,"text-lg":``,"text-primary":``},null,-1),S(`code`,{"text-xs":``},`Update installed, click to restart`,-1)]],8,X)])):t?.needsUpdate?(i(),C(`div`,Re,[S(`button`,{flex:`~ gap-2`,title:`Click to upgrade`,"items-center":``,rounded:``,px2:``,"text-sm":``,hover:`bg-active`,onClick:e=>n()},[o[3]||=S(`span`,{"i-carbon-intent-request-upgrade":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Be,`v`+u(t.current),1),o[4]||=S(`div`,{"i-carbon-arrow-right":``,op50:``},null,-1),S(`code`,Ve,`v`+u(t.latest),1)],8,ze)])):t?.latest?(i(),C(`div`,He,[o[5]||=S(`span`,{"i-carbon-cube":``,"flex-none":``,"text-lg":``,op50:``},null,-1),S(`code`,Ue,`v`+u(t.current),1)])):T(``,!0)]),_:1},8,[`package-name`])):T(``,!0)]),_:1},8,[`mod`,`info`])}}}),{__name:`ModuleItem`}),Ge=Object.assign(n({__name:`ModuleItemInstall`,props:{item:{}},emits:[`start`],setup(t,{emit:n}){let r=t,a=n,o=fe(),s=b(()=>o.value.find(e=>e.name===r.item.npm)),c=b(()=>s.value&&s.value.isPackageModule),l=b(()=>s.value&&s.value.isPackageModule&&s.value.isUninstallable);async function u(t,n){let r=n===`install`?e.installNuxtModule:e.uninstallNuxtModule,i=await r(t.npm,!0);if(z(`modules:${n}`,{moduleName:t.npm}),i.commands&&await R.start(t,i,n)){Y.value.push({name:t.npm,info:t,processId:i.processId}),a(`start`);try{await r(t.npm,!1,i.processId)}finally{let e=Y.value.findIndex(e=>e.processId===i.processId);e!==-1&&Y.value.splice(e,1)}}}let d={};return(e,n)=>{let r=K,a=F,o=B,s=Pe;return i(),E(s,{mod:d,role:c.value?``:`button`,info:t.item,mb2:``,"h-full":``,class:f(c.value?`border-dashed op75`:`hover:bg-active!`),compact:!0,onClick:n[1]||=e=>c.value?null:u(t.item,`install`)},O({_:2},[c.value?{name:`badge`,fn:y(()=>[k(r,{n:`green`,textContent:`Installed`}),l.value?(i(),E(o,{key:0,n:`sm green`},{trigger:y(({click:e})=>[k(a,{icon:`carbon-overflow-menu-vertical`,border:!1,onClick:t=>e()},null,8,[`onClick`])]),default:y(()=>[k(a,{icon:`carbon-trash-can`,n:`red`,onClick:n[0]||=e=>u(t.item,`uninstall`)},{default:y(()=>[...n[2]||=[_(` Uninstall `,-1)]]),_:1})]),_:1})):T(``,!0)]),key:`0`}:void 0]),1032,[`role`,`info`,`class`])}}}),{__name:`ModuleItemInstall`});function Ke(e){return e==null?`null`:typeof e==`function`?`a function`:`'${e}'`}function qe(e,t,n){if(!n)return t;let r=typeof n==`function`?n(e,t):e?.[n];if(r==null)throw Error(`Key is ${r} on item (keyField is ${Ke(n)})`);return r}function Je(e,t,n){return qe(e,t,n)}function Ye(e,t){return e.map((e,n)=>Je(e,n,t))}function Xe(e,t,n){let r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=Je(o,a,t),c=n(o,a,s);r.push(s),i.push(typeof c==`number`&&c>0?c:null)}return{keys:r,sizes:i}}function Ze(e,t,n){if(!e||e.keys.length!==t.length||e.sizes.length!==t.length)return!1;for(let r=0;r<t.length;r++)if(e.keys[r]!==Je(t[r],r,n))return!1;return!0}function Qe(e,t,n){if(!Ze(e,t,n))return{};let r={};for(let t=0;t<e.keys.length;t++){let n=e.sizes[t];typeof n==`number`&&n>0&&(r[e.keys[t]]=n)}return r}function $e(e,t){if(!e.length||t.length<=e.length)return 0;let n=e[0],r=t.indexOf(n);if(r<=0||r+e.length<t.length&&e.length>t.length-r)return 0;for(let n=0;n<e.length;n++)if(t[r+n]!==e[n])return 0;return r}function et(e,t,n,r,i,a=0){let o=i??`start`;if(o===`nearest`){let i=n+r,o=e+t;return e>=n&&o<=i?null:e<n?e+a:o-r+a}return o===`end`?e+t-r+a:o===`center`?e+(t-r)/2+a:e+a}function tt(e){return e.flowMode&&e.direction===`vertical`&&!e.gridItems?`flow`:e.disableTransform?`position`:`transform`}function nt(e,t){let n=t.direction===`vertical`,r=t.mode??`transform`,i={visibility:e.nr.used?`visible`:`hidden`,pointerEvents:e.nr.used?void 0:`none`};if(r===`flow`?i.display=e.nr.used?void 0:`none`:(i.position=`absolute`,i.top=`0px`,i.left=`0px`,i.display=void 0),r===`position`?(i[n?`top`:`left`]=`${e.position}px`,i[n?`left`:`top`]=`${e.offset}px`,i.transform=`none`,i.willChange=`unset`):r===`transform`&&(i.transform=n?`translateY(${e.position}px) translateX(${e.offset}px)`:`translateX(${e.position}px) translateY(${e.offset}px)`,i.willChange=`transform`),t.gridItems&&t.itemSize!=null){let e=t.itemSecondarySize||t.itemSize;i.width=`${n?e:t.itemSize}px`,i.height=`${n?t.itemSize:e}px`}return i}function rt(e){return b(()=>r(e))}function it(e,t,n,i,a){let o=rt(e);return{el:b(()=>{let e=o.value.el;return r(t??e)}),before:b(()=>{let e=o.value.before;return r(n??e)}),after:b(()=>{let e=o.value.after;return r(i??e)}),scrollParent:b(()=>{let e=o.value.scrollParent;return r(e)}),callbacks:{onResize:()=>(a?.onResize??o.value.onResize)?.(),onVisible:()=>(a?.onVisible??o.value.onVisible)?.(),onHidden:()=>(a?.onHidden??o.value.onHidden)?.(),onUpdate:(e,t,n,r)=>(a?.onUpdate??o.value.onUpdate)?.(e,t,n,r)}}}var at={itemsLimit:1e3};function ot(e){return typeof window<`u`&&e===window}var Z=(()=>{if(typeof document>`u`)return`negative`;let e=document.createElement(`div`),t=document.createElement(`div`);e.style.width=`4px`,e.style.height=`1px`,e.style.overflow=`auto`,e.style.direction=`rtl`,t.style.width=`8px`,t.style.height=`1px`,e.appendChild(t),document.body.appendChild(e),e.scrollLeft=-1;let n=e.scrollLeft<0;return document.body.removeChild(e),n?`negative`:`default`})();function st(e,t,n){return t!==`horizontal`||!n||ot(n)||getComputedStyle(n).direction!==`rtl`?e:Z===`negative`?-e:e}function ct(e,t,n){return st(e,t,n)}function lt(e,t,n,r){let i=ct(n,t,e),a=!!(r!=null&&r.smooth);if(ot(e)){t===`vertical`?e.scrollTo({top:i,behavior:a?`smooth`:`auto`}):e.scrollTo({left:i,behavior:a?`smooth`:`auto`});return}if(typeof e.scrollTo==`function`){e.scrollTo(t===`vertical`?{top:i,behavior:a?`smooth`:`auto`}:{left:i,behavior:a?`smooth`:`auto`});return}t===`vertical`?e.scrollTop=i:e.scrollLeft=i}function ut(e,t,n,r){if(n){if(r&&r!==window){let e=r;return t===`vertical`?e.clientHeight:e.clientWidth}return t===`vertical`?window.innerHeight:window.innerWidth}return t===`vertical`?e.clientHeight:e.clientWidth}var dt=/auto|scroll/;function ft(e,t){return e.parentNode===null?t:ft(e.parentNode,[...t,e])}function pt(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function mt(e){return pt(e,`overflow`)+pt(e,`overflow-y`)+pt(e,`overflow-x`)}function Q(e){return dt.test(mt(e))}function ht(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;if(e.parentNode===null)return document.scrollingElement||document.documentElement;let t=ft(e.parentNode,[]);for(let e=0;e<t.length;e+=1)if(t[e]instanceof Element&&Q(t[e]))return t[e];return document.scrollingElement||document.documentElement}function gt(e,t){if(t)return t;if(!e)return;let n=ht(e);if(n)return typeof window<`u`&&window.document&&(n===window.document.documentElement||n===window.document.body)?window:n}var _t=!1;function vt(){return _t}if(typeof window<`u`){_t=!1;try{let e=Object.defineProperty({},"passive",{get(){_t=!0}});window.addEventListener(`test`,null,e)}catch{}}function $(e){return typeof e==`number`?e:null}function yt(e,t,n,r,i){return typeof n==`number`?n:typeof n==`function`?n(e,t)||r||void 0:r||e?.[i??`size`]||void 0}function bt(e,t,n,r,i,a){return typeof n==`function`?n(e,t)||r||Number(i)||0:r||e?.[a??`size`]||Number(i)||0}var xt=0,St=[];function Ct(e){for(let t=0;t<e.length;t++)e[t]}function wt(e,t){return e&&typeof e==`object`?e[t]:void 0}function Tt(e,t){return e.map(e=>wt(e,t))}function Et(e,t,n,r){if(e.length!==n.length||t.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i]||t[i]!==r[i])return!1;return!0}function Dt(e){let t=e;t._vs_styleStamp++}function Ot(e){let t=e;t._vs_visibilityStamp++,t._vs_styleStamp++}function kt(e,t,n,r){if(n){for(let e of n)r(e);return}for(let n=e;n<t;n++)r(n)}var At=8,jt=1;function Mt(e,t,n,i,o,s){let u=rt(e),d=it(u,t,n,i,o),f=b(()=>{let e=r(G().items);return Ct(e),e}),p=v([]),m=v(0),h=v(0),_=v(0),y=v(!1),x=0,S=0,C=0,w=0,te=!1,T=null,E=new Map,D=new Map,O=!1,k=0,ne=0,re=!1,M=null,N=null,P=null,F=0,I=null,ie=null,ae=[],L=[],R=null,z=null,B=null,V=!1,H=!1,oe=!1,U=new Set,W=v({}),se=[],ce={accumulator:0};function G(){return u.value}function le(){return s?.pageMode??G().pageMode}let K=b(()=>r(G().enabled??!0)),ue=b(()=>gt(d.el.value,d.scrollParent.value)),q=b(()=>{let e=f.value;return e.length>0&&typeof e[0]!=`object`}),de=b(()=>{let e=G();if($(e.itemSize)===null){let t=f.value,n=Array.from({length:t.length});ce.accumulator=0,n[-1]=ce;let r=e.minItemSize,i=W.value,a=q.value,o=1e4,s=0,c;for(let l=0,u=t.length;l<u;l++){let u=a?l:qe(t[l],l,e.keyField);c=bt(t[l],l,e.itemSize,i[u],r,e.sizeField),c<o&&(o=c),s+=c;let d=se[l]??(se[l]={accumulator:0,size:void 0});d.accumulator=s,d.size=c,n[l]=d}return se.length=t.length,F=o,n}return St}),fe=b(()=>p.value.filter(e=>(e._vs_visibilityStamp,e.nr.used)).sort((e,t)=>e.nr.index-t.nr.index)),pe=b(()=>{let e=G(),t=q.value?null:e.keyField;return Xe(f.value,t,(t,n,r)=>yt(t,n,e.itemSize,W.value[r],e.sizeField))});function J(e=G()){return e.direction??`vertical`}function Y(e=G()){let t=J(e),n=e.flowMode??!1;return n&&t!==`vertical`&&(H||=(console.warn(`[vue-recycle-scroller] flowMode only supports vertical lists. Falling back to standard positioning.`),!0),n=!1),n&&e.gridItems&&(oe||=(console.warn(`[vue-recycle-scroller] flowMode does not support gridItems. Falling back to standard positioning.`),!0),n=!1),tt({direction:t,disableTransform:e.disableTransform??!1,flowMode:n,gridItems:e.gridItems})}function me(){p.value.sort((e,t)=>e.nr.used===t.nr.used?e.nr.used&&t.nr.used?e.nr.index-t.nr.index:e.nr.id-t.nr.id:e.nr.used?-1:1)}function he(e){let t=G();return W.value=Qe(e,f.value,q.value?null:t.keyField),Object.keys(W.value).length>0}function ge(e){let t=D.get(e);return t||(t=[],D.set(e,t)),t}function _e(e,t,n,r,i){let a=ee({id:xt++,index:t,used:!0,key:r,type:i}),o=A({item:n,position:0,offset:0,nr:a,_vs_styleStamp:0,_vs_visibilityStamp:0});return e.push(o),o}function ve(e){let t=ge(e);if(t&&t.length){let e=t.pop();return e.nr.used=!0,Ot(e),e}}function ye(e,t){let n=p.value,r=n.indexOf(e);if(r===-1)return;let i=Math.max(0,Math.min(t,n.length-1));r!==i&&(n.splice(r,1),n.splice(i,0,e))}function be(e){ye(e,p.value.length-1)}function xe(){let e=p.value,t=0;for(;t<e.length&&!e[t].nr.used;)t++;let n=0;for(let r=t;r<e.length&&e[r].nr.used;r++)n++;return{activeStart:t,activeCount:n,headInsertCount:0}}function Se(e,t,n){let r=null;t<x?(r=n.activeStart+n.headInsertCount,n.headInsertCount++,n.activeCount++):t>=S&&(r=n.activeStart+n.activeCount,n.activeCount++),r!=null&&ye(e,r)}function Ce(e,t=!1){let n=e.nr.type;ge(n).push(e),e.nr.used=!1,e.position=G().hiddenPosition??-999999,Ot(e),E.delete(e.nr.key),t&&be(e)}function we(){E.clear(),D.clear();for(let e=0,t=p.value.length;e<t;e++){let t=p.value[e];t&&Ce(t)}}function Te(e){let t=-1;return t=requestAnimationFrame(()=>{U.delete(t),e()}),U.add(t),t}function Ee(){for(let e of U)cancelAnimationFrame(e);U.clear()}function De(){M&&=(clearTimeout(M),null),N&&=(clearTimeout(N),null),P&&=(clearTimeout(P),null),z&&=(clearTimeout(z),null),B&&=(clearTimeout(B),null)}function Oe(){var e,t;K.value&&((t=(e=d.callbacks).onResize)==null||t.call(e),y.value&&Z(!1))}function ke(){if(!K.value)return;R&&!V&&ze();let e=G();if(!O){if(O=!0,M)return;let t=()=>Te(()=>{O=!1;let{continuous:t}=Z(!1,!0);t||(N&&clearTimeout(N),N=setTimeout(ke,e.updateInterval+100))});t(),e.updateInterval&&(M=setTimeout(()=>{M=null,O&&t()},e.updateInterval))}}function Ae(e,t){var n,r,i,a;K.value&&y.value&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?((r=(n=d.callbacks).onVisible)==null||r.call(n),Te(()=>{Z(!1)})):(a=(i=d.callbacks).onHidden)==null||a.call(i))}function je(){return ue.value??window}function Me(){let e=d.before.value;return e?J(G())===`vertical`?e.scrollHeight:e.scrollWidth:0}function Ne(){let e=d.el.value;if(!e)return{start:0,end:0};let t=J(G()),n=t===`vertical`,r;if(le()){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=ue.value,o=!a||a===window,s=o?0:a.getBoundingClientRect().top,c=o?0:a.getBoundingClientRect().left,l=o?window.innerHeight:a.clientHeight,u=o?window.innerWidth:a.clientWidth,d=n?-(t.top-s):-(t.left-c),f=n?l:u;d<0&&(f+=d,d=0),d+f>i&&(f=i-d),r={start:d,end:d+f}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:st(e.scrollLeft,t,e),end:st(e.scrollLeft,t,e)+e.clientWidth};return r}function Pe(){let e=d.el.value;if(!e)return{start:0,end:0};if(J(G())===`vertical`){let t=st(e.scrollLeft,`horizontal`,e);return{start:t,end:t+e.clientWidth}}return{start:e.scrollTop,end:e.scrollTop+e.clientHeight}}function Fe(e,t,n,r){let i=Me(),a=e.start-r-i,o=e.end+r-i;return x>0&&a<=(n[x-1]?.accumulator??0)||x<t-1&&a>(n[x]?.accumulator??1/0)||S>1&&o<=(n[S-2]?.accumulator??0)||S<t&&o>(n[S-1]?.accumulator??1/0)}function Ie(e){let t=G(),n=$(t.itemSize);return n===null?de.value[e]?.size||Number(t.minItemSize)||0:n}function Le(e){let t=G();return nt(e,{direction:J(t),mode:Y(t),itemSize:$(t.itemSize),gridItems:t.gridItems,itemSecondarySize:t.itemSecondarySize})}function X(e){let t=G(),n=t.gridItems||1,r=$(t.itemSize);return e<=0?0:r===null?de.value[e-1]?.accumulator||0:Math.floor(e/n)*r}function Re(e){let t=G(),n=f.value.length,r=t.gridItems||1,i=$(t.itemSize);if(!n)return 0;if(i!==null){let t=Math.floor(e/i)*r;return Math.min(Math.max(t,0),n-1)}let a=0,o=n-1,s=0;for(;a<=o;){let t=Math.floor((a+o)/2);X(t)<=e?(s=t,a=t+1):o=t-1}return s}function ze(){z&&=(clearTimeout(z),null),R=null}function Be(){z&&clearTimeout(z),z=setTimeout(()=>{R=null,z=null},150)}function Ve(e,t){if(!e.length){ze();return}let n=Math.max(Ne().start-Me(),0),r=Math.min(Re(n),e.length-1),i=e[r],a=t?qe(i,r,t):r,o=Me()+X(r);R={key:a,offset:Ne().start-o}}function He(e){if(!R)return!1;let t=G(),n=Ye(e??f.value,q.value?null:t.keyField).indexOf(R.key);if(n===-1)return ze(),!1;let r=Me()+X(n)+R.offset,i=Ne().start;return Math.abs(r-i)<.5?!1:(V=!0,mt(r),Te(()=>{V=!1}),!0)}function Ue(){if(We(),!K.value)return;let e=le()?je():d.el.value;e&&(I=e,I.addEventListener(`scroll`,ke,vt()?{passive:!0}:!1),le()&&e===window&&(ie=e,ie.addEventListener(`resize`,Oe)))}function We(){I&&=(I.removeEventListener(`scroll`,ke),null),ie&&=(ie.removeEventListener(`resize`,Oe),null)}function Ge(e,t,n,r,i,a){let o=Math.ceil(e/t)*n,s=Math.max(0,Math.floor(i.start/n)),c=Math.min(Math.ceil(i.end/n),Math.ceil(e/t)),l=Math.max(0,Math.floor(a.start/r)),u=Math.min(Math.ceil(a.end/r),t),d=[];for(let n=s;n<c;n++){let r=n*t;for(let t=l;t<u;t++){let n=r+t;if(n>=e)break;d.push(n)}}let f=d[0]??0,p=d.at(-1)??-1;return{renderedIndices:d,startIndex:f,endIndex:p+1,visibleStartIndex:f,visibleEndIndex:p,totalSize:o}}function Ke(){let e=G(),t=$(e.itemSize);if(!e.gridItems||t==null)return!1;let n=d.el.value;if(!n)return!1;let r=e.itemSecondarySize||t,i=J(e)===`vertical`?n.clientWidth:n.clientHeight;return r*e.gridItems>i}function Je(e,t,n,r){if(Math.abs(e-t)!==1||t<0||t>=n)return e;let i=e>t?X(t)+Ie(t):X(t);return Math.abs(i-r)<=At?t:e}function Ze(e,t,n,r,i){if(Math.abs(e-t)!==1)return e;let a=i?t-1:t;if(a<0||a>=n)return e;let o=e>t?X(a)+Ie(a):X(a);return Math.abs(o-r)<=At?t:e}function ot(e,t,n){let r={...e,visibleStartIndex:Je(e.visibleStartIndex,C,t,n.rawViewportStart),visibleEndIndex:Ze(e.visibleEndIndex,w,t,n.rawViewportEnd,!1),startIndex:Je(e.startIndex,x,t,n.renderStart),endIndex:Ze(e.endIndex,S,t,n.renderEnd,!0)};r.startIndex>r.visibleStartIndex&&(r.startIndex=r.visibleStartIndex);let i=Math.min(t,r.visibleEndIndex+1);return r.endIndex<i&&(r.endIndex=i),r.endIndex<r.startIndex&&(r.endIndex=r.startIndex),r}function Z(e,t=!1){var n,r;if(!K.value)return{continuous:!0};let i=G(),a=$(i.itemSize),o=i.gridItems||1,s=i.itemSecondarySize||a||0,c=F,l=i.typeField,u=q.value?null:i.keyField,g=f.value,v=g.length,y=de.value,b=E,ee=p.value,D=null,O=null,A,j,M,N,I,ie=a!==null||v===0||y[v-1]!=null;if(!v||!ie)!v||!T?A=j=N=I=M=0:(A=Math.min(T.startIndex,v),j=Math.min(T.endIndex,v),N=Math.min(T.visibleStartIndex,v),I=Math.min(T.visibleEndIndex,v),M=y[v-1]?.accumulator??T.totalSizeValue);else if(re)A=N=0,j=I=Math.min(i.prerender,g.length),M=0;else{let e=Ne(),n=Pe(),r=k,l=ne,u={...e},f={...n};if(t){let t=e.start-r;t<0&&(t=-t);let u=n.start-l;u<0&&(u=-u);let d=a===null&&Fe(e,v,y,i.buffer);if(!(a===null&&(t>=c||d)||a!==null&&t>=a)&&!(o>1&&a!=null&&u>=s))return{continuous:!0}}k=e.start,ne=n.start;let p=i.buffer;u.start-=p,u.end+=p,f.start-=p,f.end+=p;let m=0,h=d.before.value;h&&(m=h.scrollHeight,u.start-=m);let _=d.after.value;if(_){let e=_.scrollHeight;u.end+=e}let b=Y(i)===`flow`&&a===null&&!t&&te&&Math.abs(e.start-r)<=jt&&Math.abs(n.start-l)<=jt;if(a===null){let t,n=0,r=v-1,i=~~(v/2),a;do a=i,t=y[i]?.accumulator??0,t<u.start?n=i:i<v-1&&(y[i+1]?.accumulator??1/0)>u.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),A=i,M=y[v-1]?.accumulator??0,j=i;j<v&&(y[j]?.accumulator??0)<u.end;j++);for(j===-1?j=g.length-1:(j++,j>v&&(j=v)),N=A;N<v&&m+(y[N]?.accumulator??1/0)<u.start;N++);for(I=N;I<v&&m+(y[I]?.accumulator??0)<u.end;I++);if(b){let t=ot({startIndex:A,endIndex:j,visibleStartIndex:N,visibleEndIndex:I},v,{rawViewportStart:e.start-m,rawViewportEnd:e.end-m,renderStart:e.start-p-m,renderEnd:e.end+p-m});A=t.startIndex,j=t.endIndex,N=t.visibleStartIndex,I=t.visibleEndIndex}T={startIndex:A,endIndex:j,visibleStartIndex:N,visibleEndIndex:I,totalSizeValue:M}}else if(o>1){let e=Ge(v,o,a,s,u,f);D=e.renderedIndices,O=new Set(D),A=e.startIndex,j=e.endIndex,N=e.visibleStartIndex,I=e.visibleEndIndex,M=e.totalSize}else{A=~~(u.start/a*o);let e=A%o;A-=e,j=Math.ceil(u.end/a*o),N=Math.max(0,Math.floor((u.start-m)/a*o)),I=Math.floor((u.end-m)/a*o),A<0&&(A=0),j>v&&(j=v),N<0&&(N=0),I>v&&(I=v),M=Math.ceil(v/o)*a}}let ae=typeof i.itemsLimit==`number`&&i.itemsLimit>0?i.itemsLimit:at.itemsLimit;(D?.length??j-A)>ae&&ct(),m.value=M,h.value=0,_.value=Y(i)===`flow`?M:0;let L,R=A<=S&&j>=x,z=Y(i)===`flow`,B=z&&R&&!e,V=null;if(!R||e)we();else{let e=e=>{let t=ee[e];t&&(L=t,L.nr.used&&((O?O.has(L.nr.index):L.nr.index>=A&&L.nr.index<j)||Ce(L,B)))};if(B){for(let t=ee.length-1;t>=0;t--)e(t);V=xe()}else for(let t=0,n=ee.length;t<n;t++)e(t)}let H,oe,U=null,W=0;return kt(A,j,D,e=>{let t=y[e]&&y[e].size,n=a||t||F||1;H=g[e];let r=u?qe(H,e,u):e;L=b.get(r);let i=!1;if(L)L.item!==H&&(L.item=H),L.nr.used||console.warn(`Expected existing view's used flag to be true, got ${L.nr.used}`);else{if(oe=H[l],L=ve(oe),L){let t=L.nr.index!==e||L.nr.key!==r;L.item=H,L.nr.index=e,L.nr.key=r,L.nr.type!==oe&&console.warn(`Reused view's type does not match pool's type`),t&&Dt(L)}else L=_e(ee,e,H,r,oe);b.set(r,L),i=!0}a===null?(L.position=y[e-1]?.accumulator||0,L.offset=0):(L.position=Math.floor(e/o)*a,L.offset=e%o*s),V&&i&&Se(L,e,V),U??=L.position,W+=n}),z?(U==null?(h.value=0,_.value=M):(h.value=U,_.value=Math.max(0,M-U-W)),B||me()):(h.value=0,_.value=0),x=A,S=j,C=N,w=I,te=!0,i.emitUpdate&&((r=(n=d.callbacks).onUpdate)==null||r.call(n,A,j,N,I)),Y(i)!==`flow`&&(P&&clearTimeout(P),P=setTimeout(ft,i.updateInterval+300)),{continuous:R}}function ct(){throw B=setTimeout(()=>{B=null,console.warn(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,d.el.value),console.warn(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)}function dt(){if(Ke())return!1;let e=p.value.filter(({nr:e})=>e.used);for(let t=1;t<e.length;t++)if(e[t].nr.index!==e[t-1].nr.index+1)return!0;return!1}function ft(){if(K.value){if(Y()===`flow`){me();return}p.value.sort((e,t)=>e.nr.index-t.nr.index),dt()&&(Z(!1),P&&clearTimeout(P))}}function pt(e,t){if(!K.value)return;let n=G(),r=J(n),i=d.el.value;if(!i)return;let a=Math.max(0,Math.min(e,f.value.length-1)),o=Ne().start,s=ut(i,r,n.pageMode,ue.value),c=et(X(a),Ie(a),o,s,t?.align,t?.offset??0);if(c==null)return;mt(c,t);let l=$(n.itemSize);if(n.gridItems&&l!=null){let e=d.el.value;if(!e)return;let i=n.gridItems,o=n.itemSecondarySize||l,s=a%i*o,c=r===`vertical`?`horizontal`:`vertical`,u=et(s,o,c===`horizontal`?st(e.scrollLeft,`horizontal`,e):e.scrollTop,c===`horizontal`?e.clientWidth:e.clientHeight,t?.align,t?.offset??0);u!=null&&lt(e,c,u,t)}}function mt(e,t){if(!K.value)return;let n=J(G()),r=d.el.value;if(r){if(le()){let i=ue.value??window,a=n===`vertical`?`top`:`left`,o=i===window,s=o?document.scrollingElement||document.documentElement:i,c=s.getBoundingClientRect(),l=r.getBoundingClientRect(),u=o?n===`vertical`?window.scrollY:window.scrollX:st(n===`vertical`?s.scrollTop:s.scrollLeft,n,s),d=l[a]-c[a];lt(o?window:s,n,e+u+d,t)}else lt(r,n,e,t)}}let Q=G(),ht=f.value;return ae=Ye(ht,ht.length>0&&typeof ht[0]!=`object`?null:Q.keyField),L=Tt(ht,Q.typeField),Q.cache&&he(Q.cache),K.value&&Q.prerender&&(re=!0,Z(!1)),Q.gridItems&&$(Q.itemSize)==null&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`),j(()=>{K.value&&(Ue(),c(()=>{re=!1,Z(!0),y.value=!0}))}),l(()=>{if(!K.value)return;let e=k;typeof e==`number`&&c(()=>{mt(e)})}),a(()=>{De(),Ee(),We()}),g(K,e=>{e?(Ue(),c(()=>{Z(!0),y.value=!0})):(We(),De(),Ee(),y.value=!1)}),g(()=>G().cache,e=>{K.value&&(he(e),Z(!0))}),g(()=>r(G().items).slice(),(e,t)=>{if(!K.value)return;let n=G(),r=q.value?null:n.keyField,i=Ye(e,r),a=Tt(e,n.typeField),o=ae,s=!Et(i,a,o,L);n.shift&&$e(o,i)>0?Ve(t??[],r):ze(),ae=i,L=a,He(e),Z(s)}),g(()=>G().keyField,()=>{if(!K.value)return;let e=G(),t=q.value?null:e.keyField;ae=Ye(f.value,t),L=Tt(f.value,e.typeField),ze(),Z(!0)}),g(()=>G().typeField,()=>{if(!K.value)return;let e=G();L=Tt(f.value,e.typeField),ze(),Z(!0)}),g(le,()=>{K.value&&(We(),Ue(),Z(!1))}),g(d.el,()=>{K.value&&(We(),Ue(),Z(!1))}),g(ue,()=>{!K.value||!le()||(We(),Ue(),Z(!1))}),g(de,()=>{K.value&&(He()&&Be(),Z(!1))}),g(()=>G().gridItems,()=>{K.value&&Z(!0)}),g(()=>G().itemSecondarySize,()=>{K.value&&Z(!0)}),{pool:p,visiblePool:fe,totalSize:m,startSpacerSize:h,endSpacerSize:_,ready:y,sizes:de,simpleArray:q,scrollToItem:pt,scrollToPosition:mt,getScroll:Ne,findItemIndex:Re,getItemOffset:X,getItemSize:Ie,getViewStyle:Le,cacheSnapshot:pe,restoreCache:he,updateVisibleItems:Z,handleResize:Oe,handleVisibilityChange:Ae,sortViews:ft}}var Nt=new WeakMap;function Pt(e){return typeof e==`function`?{callback:e,observer:null,intersection:void 0,visible:null}:{callback:e.callback,observer:null,intersection:e.intersection,visible:null}}function Ft(e,t){It(e);let n=Pt(t.value);if(Nt.set(e,n),typeof IntersectionObserver>`u`){let t=e.getBoundingClientRect();n.visible=!0,n.callback(!0,{boundingClientRect:t});return}n.observer=new IntersectionObserver(e=>{let t=e[0],r=!!(t!=null&&t.isIntersecting);n.visible!==null&&n.visible===r||(n.visible=r,n.callback(r,t))},n.intersection),n.observer.observe(e)}function It(e){let t=Nt.get(e);t!=null&&t.observer&&(t.observer.disconnect(),t.observer=null)}var Lt={mounted(e,t){Ft(e,t)},updated(e,t){t.value!==t.oldValue&&Ft(e,t)},unmounted(e){It(e),Nt.delete(e)}},Rt=n({__name:`ItemView`,props:{view:{},itemTag:{}},setup(e){let t=e;return(e,n)=>(i(),E(p(t.itemTag),{class:`vue-recycle-scroller__item-view`},{default:y(()=>[o(e.$slots,`default`,{item:t.view.item,index:t.view.nr.index,active:t.view.nr.used})]),_:3}))}}),zt=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})(n({__name:`ResizeObserver`,emits:[`notify`],setup(e,{emit:t}){let n=t,r=v(),o=null,s=null;function c(){n(`notify`)}return j(()=>{let e=r.value?.parentElement;if(e){if(typeof ResizeObserver<`u`){o=new ResizeObserver(()=>{c()}),o.observe(e);return}s=()=>c(),window.addEventListener(`resize`,s)}}),a(()=>{o&&=(o.disconnect(),null),s&&=(window.removeEventListener(`resize`,s),null)}),(e,t)=>(i(),C(`div`,{ref_key:`el`,ref:r,class:`vue-recycle-scroller__resize-observer`,"aria-hidden":`true`},null,512))}}),[[`__scopeId`,`data-v-08cc04ab`]]),Bt=n({__name:`RecycleScroller`,props:{items:{},keyField:{default:`id`},direction:{default:`vertical`},listTag:{default:`div`},itemTag:{default:`div`},itemSize:{default:null},gridItems:{default:void 0},itemSecondarySize:{default:void 0},minItemSize:{default:null},sizeField:{default:`size`},typeField:{default:`type`},buffer:{default:200},pageMode:{type:Boolean,default:!1},scrollParent:{default:void 0},shift:{type:Boolean,default:!1},cache:{default:void 0},prerender:{default:0},emitUpdate:{type:Boolean,default:!1},disableTransform:{type:Boolean,default:!1},flowMode:{type:Boolean,default:!1},hiddenPosition:{default:void 0},updateInterval:{default:0},itemsLimit:{default:void 0},skipHover:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0},listClass:{default:``},itemClass:{default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scrollStart`,`scrollEnd`],setup(e,{expose:t,emit:n}){let r=e,a=n,c=Lt,l=v(),u=v(),g=v(),_=v(null),S=d(r,`items`),{pool:ee,visiblePool:O,totalSize:A,startSpacerSize:j,endSpacerSize:ne,ready:re,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:ie,getViewStyle:ae,cacheSnapshot:L,restoreCache:R,updateVisibleItems:z,handleResize:B,handleVisibilityChange:V}=Mt(b(()=>({items:S,el:l,before:u,after:g,keyField:r.keyField,direction:r.direction,itemSize:r.itemSize,gridItems:r.gridItems,itemSecondarySize:r.itemSecondarySize,minItemSize:r.minItemSize,sizeField:r.sizeField,typeField:r.typeField,buffer:r.buffer,pageMode:r.pageMode,scrollParent:r.scrollParent,shift:r.shift,cache:r.cache,prerender:r.prerender,emitUpdate:r.emitUpdate,disableTransform:r.disableTransform,flowMode:r.flowMode,hiddenPosition:r.hiddenPosition,updateInterval:r.updateInterval,itemsLimit:r.itemsLimit,enabled:r.enabled,onResize:()=>a(`resize`),onVisible:()=>a(`visible`),onHidden:()=>a(`hidden`),onUpdate:(e,t,n,i)=>{a(`update`,e,t,n,i),n<=0&&a(`scrollStart`),i>=r.items.length-1&&a(`scrollEnd`)}}))),H=b(()=>tt({direction:r.direction,disableTransform:r.disableTransform,flowMode:r.flowMode,gridItems:r.gridItems})===`flow`),oe=b(()=>({height:`${j.value}px`})),U=b(()=>({height:`${ne.value}px`}));function W(e){_.value=e}function se(){_.value=null}let ce=b(()=>{let e={[r.direction===`vertical`?`minHeight`:`minWidth`]:`${A.value}px`},t=$(r.itemSize);if(r.gridItems&&t!=null){let n=(r.itemSecondarySize||t)*r.gridItems;e[r.direction===`vertical`?`minWidth`:`minHeight`]=`${n}px`}return e});return t({el:l,visiblePool:O,startSpacerSize:j,endSpacerSize:ne,scrollToItem:M,scrollToPosition:N,getScroll:P,findItemIndex:F,getItemOffset:I,getItemSize:ie,cacheSnapshot:L,restoreCache:R,updateVisibleItems:z}),(e,t)=>te((i(),C(`div`,{ref_key:`el`,ref:l,class:f([`vue-recycle-scroller`,{"grid-mode":r.gridItems,"flow-mode":H.value,ready:w(re),"page-mode":r.pageMode,[`direction-${r.direction}`]:!0}])},[e.$slots.before?(i(),C(`div`,{key:0,ref_key:`before`,ref:u,class:`vue-recycle-scroller__slot`},[o(e.$slots,`before`)],512)):T(``,!0),(i(),E(p(r.listTag),{style:m(ce.value),class:f([`vue-recycle-scroller__item-wrapper`,r.listClass])},{default:y(()=>[H.value&&w(j)>0?(i(),E(p(r.itemTag),{key:0,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:m(oe.value)},null,8,[`style`])):T(``,!0),(i(!0),C(h,null,D(w(ee),t=>(i(),E(Rt,s({key:t.nr.id,view:t,"item-tag":r.itemTag,style:w(re)?w(ae)(t):null,class:[`vue-recycle-scroller__item-view`,[r.itemClass,{hover:!r.skipHover&&_.value===t.nr.key}]]},x(r.skipHover?{}:{mouseenter:()=>{W(t.nr.key)},mouseleave:()=>{se()}})),{default:y(t=>[o(e.$slots,`default`,s({ref_for:!0},t))]),_:2},1040,[`view`,`item-tag`,`style`,`class`]))),128)),H.value&&w(ne)>0?(i(),E(p(r.itemTag),{key:1,"aria-hidden":`true`,class:`vue-recycle-scroller__item-spacer`,style:m(U.value)},null,8,[`style`])):T(``,!0),r.items.length===0?o(e.$slots,`empty`,{key:2}):T(``,!0)]),_:3},8,[`style`,`class`])),e.$slots.after?(i(),C(`div`,{key:1,ref_key:`after`,ref:g,class:`vue-recycle-scroller__slot`},[o(e.$slots,`after`)],512)):T(``,!0),k(zt,{onNotify:w(B)},null,8,[`onNotify`])],2)),[[w(c),w(V)]])}}),Vt={"h-full":``,flex:`~ col gap-4`},Ht={flex:`~ items-center`},Ut={flex:`~ col`,"w-30":``,"of-auto":``},Wt={flex:`~ justify-between`,"w-full":``,"text-xs":``,capitalize:``,op75:``},Gt={flex:`~ items-center gap-2`},Kt={flex:`~ gap1`,"text-sm":``,op50:``},qt={key:0},Jt={"flex-auto":``,"of-auto":``,flex:`~ col gap-2`,pl6:``,pr4:``},Yt=Object.assign(n({__name:`ModuleInstallList`,emits:[`close`],setup(e,{emit:n}){let r=n,a=q(),o=fe(),s=[`downloads`,`stars`,`updated`,`created`],c=v(!1),l=v(s[0]),d=v(!0),f={downloads:(e,t)=>e.stats.downloads-t.stats.downloads,stars:(e,t)=>e.stats.stars-t.stats.stars,created:(e,t)=>e.stats.createdAt-t.stats.createdAt,updated:(e,t)=>e.stats.publishedAt-t.stats.publishedAt},p=b(()=>a.value?.toSorted((e,t)=>f[l.value](e,t)*(c.value?1:-1))),m=v(``),g=b(()=>new ae(a.value||[],{keys:[`name`,`description`,`npm`,`category`],sortFn:(e,t)=>{let n=a.value?.[e.idx],r=a.value?.[t.idx];return n&&r?f[l.value](n,r)*(c.value?1:-1):e.score-t.score},threshold:.2})),x=b(()=>{let e=p.value;return d.value&&(e=(e||[]).filter(e=>!o.value.some(t=>t.name===e.name))),m.value?g.value.search(m.value).map(e=>e.item).filter(t=>e?.includes(t)):e});return(e,n)=>{let o=G,f=F,p=t,g=B,v=W,b=ce,ee=Ge;return i(),C(`div`,Vt,[k(o,{mx6:``,mt6:``,"text-xl":``,op75:``,icon:`i-carbon-intent-request-create`,text:`Install Module`}),k(b,{search:m.value,"onUpdate:search":n[2]||=e=>m.value=e,"no-padding":``,"px-6":``,"pb-3":``,"pt-2":``},{actions:y(()=>[k(g,{direction:`end`,n:`sm primary`},{trigger:y(({click:e})=>[S(`div`,Ht,[k(f,{icon:c.value?`tabler:sort-ascending`:`tabler:sort-descending`,"h-full":``,"rounded-r-none":``,onClick:n[0]||=e=>c.value=!c.value},null,8,[`icon`]),k(f,{flex:`~ justify-between`,"min-w-30":``,"border-l-0":``,"rounded-l-none":``,"px-2":``,capitalize:``,hover:`border-l-1`,onClick:t=>e()},{default:y(()=>[_(u(l.value)+` `,1),k(p,{icon:`carbon:chevron-down`})]),_:1},8,[`onClick`])])]),default:y(()=>[S(`div`,Ut,[(i(),C(h,null,D(s,e=>k(f,{key:e,border:!1,p2:``,hover:`n-checkbox-hover text-green`,onClick:t=>l.value=e},{default:y(()=>[S(`span`,Wt,[_(u(e)+` `,1),l.value===e?(i(),E(p,{key:0,icon:`carbon:checkmark`})):T(``,!0)])]),_:2},1032,[`onClick`])),64))])]),_:1})]),default:y(()=>[S(`div`,Gt,[k(v,{modelValue:d.value,"onUpdate:modelValue":n[1]||=e=>d.value=e,n:`primary md`},{default:y(()=>[...n[4]||=[S(`span`,{op75:``},`Exclude installed modules`,-1)]]),_:1},8,[`modelValue`]),S(`div`,Kt,[m.value||d.value?(i(),C(`span`,qt,u(x.value?.length)+` matched · `,1)):T(``,!0),S(`span`,null,u(w(a)?.length)+` modules in total`,1)])])]),_:1},8,[`search`]),S(`div`,Jt,[k(w(Bt),{class:`scroller`,items:x.value||[],"item-size":200,"key-field":`name`},{default:y(({item:e})=>[k(ee,{item:e,onStart:n[3]||=e=>r(`close`)},null,8,[`item`])]),_:1},8,[`items`])])])}}}),{__name:`ModuleInstallList`}),Xt={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Zt={capitalize:``},Qt={op50:``},$t={flex:`~ gap-3`,mt2:``,"justify-end":``},en=Object.assign(n({__name:`ModuleActionDialog`,setup(e){let t=M(),n=N(),r={};return(e,a)=>{let o=Pe,s=V,c=pe,l=J,d=U,p=F,m=ie;return i(),E(w(R),null,{default:y(({resolve:e,args:i})=>[k(m,{"model-value":!0,onClose:t=>e(!1)},{default:y(()=>[k(o,{mod:r,info:i[0],border:`none`,"w-150":``,"n-panel-grids":``},null,8,[`info`]),S(`div`,Xt,[S(`h2`,{"text-xl":``,class:f(i[2]===`install`?`text-primary`:`text-red`)},[S(`span`,Zt,u(i[2]),1),a[1]||=_(),S(`code`,null,u(i[0].name),1),a[2]||=_(`? `,-1)],2),a[7]||=S(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),k(s,{code:i[1].commands.join(` `),lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),S(`p`,Qt,[a[3]||=_(` Then your `,-1),k(c,{role:`button`,n:`primary`,underline:``,onClick:a[0]||=e=>w(n)(w(t)?._nuxtConfigFile),textContent:`Nuxt config`}),a[4]||=_(` will be updated as: `,-1)]),k(l,{from:i[1].configOriginal,to:i[1].configGenerated,"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),a[8]||=S(`p`,null,[S(`span`,{op50:``},`After that, Nuxt will `),S(`span`,{"text-orange":``},`restart automatically`),_(`. `)],-1),S(`div`,$t,[k(d,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:y(()=>[...a[5]||=[_(` Please make sure to backup your project first. `,-1)]]),_:1}),k(p,{onClick:t=>e(!1)},{default:y(()=>[...a[6]||=[_(` Cancel `,-1)]]),_:1},8,[`onClick`]),k(p,{n:`solid`,capitalize:``,class:f(i[2]===`install`?`n-primary`:`n-red`),onClick:t=>e(!0)},{default:y(()=>[_(u(i[2]),1)]),_:2},1032,[`class`,`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})}}}),{__name:`ModuleActionDialog`}),tn={},nn={class:`markdown-body`};function rn(e,t){return i(),C(`div`,nn,[...t[0]||=[S(`template`,null,[S(`div`,{class:`markdown-body`},[S(`h1`,null,`Modules`),S(`p`,null,[_(`Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using `),S(`code`,{"v-pre":``},`nuxt.config`),_(`.`)]),S(`p`,null,[_(`You can explore the list of modules on `),S(`a`,{href:`https://nuxt.com/modules`,target:`_blank`,rel:`noopener`},`nuxt.com/modules`),_(` or install them directly inside the DevTools.`)]),S(`p`,null,[S(`a`,{href:`https://nuxt.com/docs/guide/concepts/modules`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var an=P(tn,[[`render`,rn]]),on={"h-full":``,"w-full":``,"of-auto":``},sn=[`onClick`],cn={relative:``,"h-20":``,"w-20":``,flex:``,"flex-none":``,rounded:``,"bg-gray:3":``,p3:``},ln=[`src`,`alt`],un={"text-lg":``,"group-hover":`text-primary`,transition:``,flex:`~ gap-2 items-center`},dn={op75:``},fn={key:0,border:`l base`,pos:`fixed bottom-0 right-0 top-0`,"z-200":``,"w-150":``,"bg-base":``},pn=`https://ipx.nuxt.com/s_80,f_webp/gh/nuxt/modules/main/icons/`,mn=n({__name:`modules`,setup(t){H({icon:`carbon-3d-mpr-toggle`,title:`Modules`,order:5});let n=v(!1),r=fe(),a=b(()=>r.value.filter(e=>e.isPackageModule)),o=b(()=>r.value.filter(e=>!e.isPackageModule));return L(()=>[{id:`action:modules:install`,title:`Install a new module`,icon:`i-carbon-intent-request-create `,action:()=>{n.value=!0}}]),(t,r)=>{let s=We,c=I,l=le,d=F,f=Yt,p=en,m=an,g=se;return i(),C(h,null,[S(`div`,on,[k(l,{icon:`carbon-3d-mpr-toggle`,text:`Installed Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${a.value.length}`},{default:y(()=>[(i(!0),C(h,null,D(a.value,e=>(i(),E(s,{key:e.name,mod:e},null,8,[`mod`]))),128)),(i(!0),C(h,null,D(`processInstallingModules`in t?t.processInstallingModules:w(Y),t=>(i(),C(`button`,{key:t.processId,block:``,"min-h-30":``,title:`Open the output in the Terminals dock`,onClick:n=>w(e).revealTerminal(t.processId)},[k(c,{border:`1.5 dashed`,"h-full":``,"animate-pulse":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-1 items-center justify-center`,role:`button`,class:`group`},{default:y(()=>[S(`div`,cn,[S(`img`,{src:pn+t.info.icon,alt:t.info.name,ma:``},null,8,ln),r[4]||=S(`div`,{"i-carbon-cube":``,ma:``,"text-4xl":``,op30:``},null,-1)]),S(`div`,un,[r[5]||=S(`div`,{"i-carbon-circle-dash":``,"animate-spin":``,"text-xl":``,op75:``},null,-1),S(`span`,dn,`Installing `+u(t.name)+`...`,1)])]),_:2},1024)],8,sn))),128)),k(c,{border:`1.5 dashed`,"min-h-30":``,p4:``,transition:``,hover:`border-primary`,flex:`~ col gap-2 items-center justify-center`,role:`button`,class:`group`,onClick:r[0]||=e=>n.value=!0},{default:y(()=>[...r[6]||=[S(`div`,{"i-carbon-intent-request-create":``,"text-4xl":``,op40:``,"group-hover":`op75 text-primary`,transition:``},null,-1),S(`div`,{"text-lg":``,op40:``,"group-hover":`op75 text-primary`,transition:``},` Install New Module `,-1)]]),_:1})]),_:1},8,[`description`]),o.value.length?(i(),E(l,{key:0,icon:`carbon-3d-mpr-toggle`,text:`User Modules`,"container-class":`grid grid-cols-minmax-400px gap3 px4`,padding:!1,description:`Total modules: ${o.value.length}`},{default:y(()=>[(i(!0),C(h,null,D(o.value,e=>(i(),C(h,{key:e.meta?.name||e.entryPath},[e.meta?.name||e.entryPath?(i(),E(s,{key:0,mod:e},null,8,[`mod`])):T(``,!0)],64))),128))]),_:1},8,[`description`])):T(``,!0),k(ne,{name:`fade-in`},{default:y(()=>[n.value?(i(),C(`div`,{key:0,class:`fixed bottom-0 left-0 right-0 top-0 z-100`,"bg-black:20":``,"backdrop-blur-2":``,onClick:r[1]||=e=>n.value=!1})):T(``,!0)]),_:1}),k(ne,{name:`slide-in`},{default:y(()=>[n.value?(i(),C(`div`,fn,[k(d,{icon:`carbon-close`,pos:`absolute top-3 right-3 z-10`,"rounded-full":``,"text-xl":``,border:!1,onClick:r[2]||=e=>n.value=!1}),k(f,{onClose:r[3]||=e=>n.value=!1})])):T(``,!0)]),_:1}),k(p)]),k(g,null,{default:y(()=>[k(m)]),_:1})],64)}}});export{mn as default};
@@ -1 +0,0 @@
1
- import{H as e,J as t,h as n}from"./vendor/json-editor-vue-h1waqukq.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={class:`n-badge`};function o(r,i){return e(),n(`span`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NBadge`});export{s as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./nicon-co5pnhft.js";import{C as t,D as n,J as r}from"./vendor/json-editor-vue-h1waqukq.js";import{t as i}from"./nuxt-link-nsgkom6k.js";var a=t({name:`NButton`,props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:`button`}},setup(t,{attrs:a,slots:o}){return()=>n(t.to?i:`button`,{to:t.to,...a,...!t.to&&{type:t.type},...t.disabled?{disabled:!0}:{tabindex:0},class:[t.border?`n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover`:``,o.default?``:`n-icon-button`,`n-button n-transition n-disabled:n-disabled`].join(` `)},{default:()=>[r(o,`icon`,{},()=>t.icon?[n(e,{icon:t.icon,class:o.default?`n-button-icon`:``})]:[]),r(o,`default`)]})}});export{a as t};
@@ -1 +0,0 @@
1
- import{H as e,J as t,h as n}from"./vendor/json-editor-vue-h1waqukq.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={class:`n-card n-card-base`};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NCard`});export{s as t};
@@ -1 +0,0 @@
1
- import{R as e,t}from"./nicon-co5pnhft.js";import{C as n,H as r,J as i,Yt as a,f as o,h as s,ht as c,kt as l,lt as u,x as d}from"./vendor/json-editor-vue-h1waqukq.js";import{St as f,gt as p}from"./ready-ikhds7hc.js";var m=[`checked`,`disabled`],h=[`disabled`],g={class:`n-checkbox-box n-transition n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},_=Object.assign(n({__name:`NCheckbox`,props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(n,{emit:_}){let v=e(n,`modelValue`,_,{passive:!0});return(e,_)=>{let y=t;return r(),s(`label`,{class:`n-checkbox select-none items-center hover:n-checkbox-hover n-disabled:n-disabled`,checked:l(v)||null,disabled:n.disabled||null},[u(o(`input`,{"onUpdate:modelValue":_[0]||=e=>c(v)?v.value=e:null,type:`checkbox`,class:`peer absolute op0`,disabled:n.disabled,onKeypress:_[1]||=f(e=>v.value=!l(v),[`enter`])},null,40,h),[[p,l(v)]]),o(`span`,g,[d(y,{class:`n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100`})]),o(`span`,{class:a([l(v)?``:`op50`,`n-transition`])},[i(e.$slots,`default`)],2)],8,m)}}}),{__name:`NCheckbox`});export{_ as t};
@@ -1,2 +0,0 @@
1
- import{C as e,H as t,N as n,Qt as r,Yt as i,a,d as o,f as s,h as c,q as l}from"./vendor/json-editor-vue-h1waqukq.js";import{t as u}from"./client-iet3i2jx.js";var d=[`innerHTML`],f=[`textContent`],p=Object.assign(e({__name:`NCodeBlock`,props:{code:{},lang:{},lines:{type:Boolean,default:!0},inline:{type:Boolean},grammarContextCode:{},transformRendered:{}},emits:[`loaded`],setup(e,{emit:p}){let m=e,h=p,g=o(()=>{let e=m.lang===`text`?{code:m.code,supported:!1}:u.value?.devtools.renderCodeHighlight(m.code,m.lang,{grammarContextCode:m.grammarContextCode})||{code:m.code,supported:!1};return e.supported&&m.transformRendered&&(e.code=m.transformRendered(e.code)),e.supported&&n(()=>h(`loaded`)),e}),_=o(()=>[`n-code-block shiki`,m.lines&&!m.inline?`n-code-block-lines`:``]);return(n,o)=>e.lang&&g.value.supported?(t(),c(`pre`,{key:0,class:i(_.value)},[s(`code`,{innerHTML:g.value.code},null,8,d)],2)):(t(),c(`pre`,{key:1,class:i(_.value)},[s(`code`,null,[(t(!0),c(a,null,l(e.code.split(`
2
- `),(e,n)=>(t(),c(a,{key:n},[s(`span`,{class:`line`,textContent:r(e)},null,8,f),o[0]||=s(`br`,null,null,-1)],64))),128))])],2))}}),{__name:`NCodeBlock`});export{p as t};
@@ -1 +0,0 @@
1
- .n-code-block-lines code{counter-reset:step;counter-increment:step calc(var(--start,1) - 1)}.n-code-block-lines code .line:before{content:counter(step);counter-increment:step;text-align:right;color:#a3a3a380;width:2.5rem;margin-right:.5rem;padding-right:.5rem;display:inline-block}
@@ -1,3 +0,0 @@
1
- import{E as e,H as t,R as n,V as r,w as i,z as a}from"./nicon-co5pnhft.js";import{C as o,Ct as s,Dt as c,H as l,J as u,M as d,N as f,Yt as p,at as m,bt as h,c as g,ct as _,d as v,f as y,kt as b,lt as x,m as S,ot as C,p as w,x as T}from"./vendor/json-editor-vue-h1waqukq.js";import{xt as E}from"./ready-ikhds7hc.js";import{t as ee}from"./ncard-kyrmtdmn.js";var D=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],O=D.join(`,`),k=typeof Element>`u`,A=k?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,j=!k&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},M=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):M(e.parentNode))},te=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},N=function(e,t,n){if(M(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(O));return t&&A.call(e,O)&&r.unshift(e),r=r.filter(n),r},P=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!M(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=P(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{A.call(a,O)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!M(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=P(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},F=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},I=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||te(e))&&!F(e)?0:e.tabIndex},ne=function(e,t){var n=I(e);return n<0&&t&&!F(e)?0:n},re=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},L=function(e){return e.tagName===`INPUT`},ie=function(e){return L(e)&&e.type===`hidden`},ae=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},oe=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},se=function(e){if(!e.name)return!0;var t=e.form||j(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=oe(r,e.form);return!i||i===e},ce=function(e){return L(e)&&e.type===`radio`},le=function(e){return ce(e)&&!se(e)},ue=function(e){var t=e&&j(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=j(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},R=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},de=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=A.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(A.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=j(e);if(s&&!s.shadowRoot&&r(s)===!0)return R(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(ue(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return R(e);return!1},fe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return A.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},z=function(e,t){return!(t.disabled||ie(t)||de(t,e)||ae(t)||fe(t))},B=function(e,t){return!(le(t)||I(t)<0||!z(e,t))},pe=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},V=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=ne(a,i),s=i?V(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(re).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},me=function(e,t){return t||={},V(t.getShadowRoot?P([e],t.includeContainer,{filter:B.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pe}):N(e,t.includeContainer,B.bind(null,t)))},he=function(e,t){return t||={},t.getShadowRoot?P([e],t.includeContainer,{filter:z.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):N(e,t.includeContainer,z.bind(null,t))},H=function(e,t){if(t||={},!e)throw Error(`No node provided`);return A.call(e,O)!==!1&&B(t,e)},ge=D.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),U=function(e,t){if(t||={},!e)throw Error(`No node provided`);return A.call(e,ge)!==!1&&z(t,e)};function W(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _e(e){if(Array.isArray(e))return W(e)}function G(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=J(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function ve(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function be(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e){return _e(e)||ye(e)||J(e)||be()}function Se(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ce(e){var t=Se(e,`string`);return typeof t==`symbol`?t:t+``}function J(e,t){if(e){if(typeof e==`string`)return W(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}var Y={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==Y.getActiveTrap(e)&&Y.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Y.unpauseTrap(e)},pauseTrap:function(e){Y.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=Y.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},we=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Te=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},X=function(e){return e?.key===`Tab`||e?.keyCode===9},Ee=function(e){return X(e)&&!e.shiftKey},De=function(e){return X(e)&&e.shiftKey},Z=function(e){return setTimeout(e,0)},Q=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},$=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Oe=[],ke=function(e,t){var n=t?.document||document,r=t?.trapStack||Oe,i=q({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Ee,isKeyBackward:De},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,xe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(e){var t=e.activeElement;return t?t.shadowRoot&&t.shadowRoot.activeElement!==null?u(t.shadowRoot):t:null},d=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!U(e,i.tabbableOptions)){var t=u(n);if(c(t)>=0)e=t;else{var r=a.tabbableGroups[0];e=r&&r.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},f=function(){if(a.containerGroups=a.containers.map(function(e){var t=me(e,i.tabbableOptions),n=he(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return H(e)}),s=n.slice().reverse().find(function(e){return H(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return I(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return H(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return H(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},p=function(e){if(e!==!1&&e!==u(document)){if(!e||!e.focus){p(d());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,we(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=$(n),f();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),d=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||U(t,i.tabbableOptions)&&!H(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=I(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||U(t,i.tabbableOptions)&&!H(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=I(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c($(e),e)>=0)){if(Q(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Q(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=$(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(I(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(a.recentNavEvent)?u+1<l.length&&(r=l[u+1],o=!1):u-1>=0&&(r=l[u-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return I(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(X(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Te(e)&&Q(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c($(e),e)>=0||Q(i.clickOutsideDeactivates,e)||Q(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active){Y.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=Z(function(){p(d()),e()})}):p(d()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e}},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=G(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=G(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){var t=a.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||typeof e.contains==`function`&&e.contains(t)})})&&a.containers.some(function(e){return e?.isConnected})&&(f(),p(d()))}):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=Y.getActiveTrap(r),d=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),d=!0}try{c||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=u(n),t?.({trap:o});var m=function(){c&&f();var e=function(){o._setSubtreeIsolation(!0),E(),i?.({trap:o})},t=S();t?t.then(e):e()};if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===Y.getActiveTrap(r)&&d){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=q({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),Y.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`delayReturnFocus`),d=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.({trap:o});var f=function(){d&&p(m(a.nodeFocusedBeforeActivation)),c?.({trap:o})},h=function(){u&&d?Z(f):f()};return d&&l?(l(m(a.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(f(),a.paused||o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.({trap:o}),w(),o._setSubtreeIsolation(!1),E(),r?.({trap:o})}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.({trap:o}),(function(){f();var e=function(){o._setSubtreeIsolation(!0),E(),c?.({trap:o})},t=S();t?t.then(e):e()})()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`)}})}}}),o.updateContainerElements(e),o};function Ae(n,i={}){let o,{immediate:l,...u}=i,d=s(!1),f=s(!1),p=e=>o&&o.activate(e),h=e=>o&&o.deactivate(e);return m(v(()=>r(c(n)).map(t=>{let n=c(t);return typeof n==`string`?n:e(n)}).filter(a)),e=>{if(e.length){if(!o)o=ke(e,{...u,onActivate(e){d.value=!0,i.onActivate&&i.onActivate(e)},onDeactivate(e){d.value=!1,i.onDeactivate&&i.onDeactivate(e)}}),l&&p();else{let t=o?.active;o?.updateContainerElements(e),!t&&l&&p()}}},{flush:`post`}),t(()=>h()),{hasFocus:d,isPaused:f,activate:p,deactivate:h,pause:()=>{o&&(o.pause(),f.value=!0)},unpause:()=>{o&&(o.unpause(),f.value=!1)}}}var je=Object.assign(o({inheritAttrs:!1,__name:`NDialog`,props:{modelValue:{type:Boolean,default:!1},dim:{type:Boolean,default:!0},autoClose:{type:Boolean,default:!0}},emits:[`close`,`update:modelValue`],setup(e,{emit:t}){let r=e,a=t,o=n(r,`modelValue`,a,{passive:!0}),s=h(null),c=h(!1),{activate:m,deactivate:D}=Ae(v(()=>s.value||document.body),{immediate:!1});return C(()=>{!c.value&&o.value&&(c.value=!0),o.value&&s.value?f(m):D()}),i(s,()=>{r.modelValue&&r.autoClose&&(o.value=!1,a(`close`))},{ignore:[`a`,`button`,`summary`]}),(t,n)=>{let r=ee;return c.value?(l(),w(g,{key:0,to:`body`},[x(y(`div`,{class:p([`fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition`,[b(o)?``:`op0 pointer-events-none visibility-none`]]),role:`dialog`,"aria-modal":`true`},[y(`div`,{class:p([`absolute inset-0 -z-1`,[e.dim?`glass-effect`:``]])},null,2),T(r,d(t.$attrs,{ref_key:`card`,ref:s,class:`max-h-screen of-auto`}),{default:_(()=>[u(t.$slots,`default`)]),_:3},16)],2),[[E,b(o)]])])):S(``,!0)}}}),{__name:`NDialog`});export{je as t};
@@ -1 +0,0 @@
1
- import{A as e,w as t}from"./nicon-co5pnhft.js";import{C as n,H as r,J as i,M as a,bt as o,ct as s,f as c,h as l,kt as u,m as d,p as f,x as p}from"./vendor/json-editor-vue-h1waqukq.js";import{ft as m}from"./ready-ikhds7hc.js";import{t as h}from"./nbutton-np26z5og.js";var g=[`border`],_={relative:``,"h-full":``,"w-full":``,"of-auto":``},v=Object.assign(n({__name:`NDrawer`,props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:`right`}},emits:[`close`],setup(n,{emit:v}){let y=n,b=v,x=o(),{height:S}=e(()=>y.top,void 0,{box:`border-box`}),C=typeof y.left==`string`&&y.left.startsWith(`#`)?document.querySelector(y.left)?.getBoundingClientRect().width:e(()=>y.left,void 0,{box:`border-box`}).width;t(x,()=>{y.modelValue&&y.autoClose&&b(`close`)},{ignore:[`a`,`button`,`summary`,`[role="dialog"]`]});let w={right:{"enter-from-class":`transform translate-x-1/1`,"leave-to-class":`transform translate-x-1/1`},top:{"enter-from-class":`transform translate-y--1/1`,"leave-to-class":`transform translate-y--1/1`},bottom:{"enter-from-class":`transform translate-y-1/1`,"leave-to-class":`transform translate-y-1/1`}};return(e,t)=>{let o=h;return r(),f(m,a(w[n.transition],{"enter-active-class":`duration-200 ease-in`,"enter-to-class":`opacity-100`,"leave-active-class":`duration-200 ease-out`,"leave-from-class":`opacity-100`}),{default:s(()=>[n.modelValue?(r(),l(`div`,a({key:0,ref_key:`el`,ref:x,border:`${n.transition===`right`?`l`:n.transition===`bottom`?`t`:`b`} base`,flex:`~ col gap-1`,class:{"right-0":n.transition===`right`||n.transition===`bottom`},absolute:``,"bottom-0":``,"z-10":``,"z-20":``,"of-auto":``,"n-glass-effect":``,"text-sm":``,style:{top:n.transition===`bottom`?`auto`:`${u(S)}px`,left:n.transition===`right`&&!u(C)?`auto`:`${u(C)}px`}},e.$attrs),[p(o,{absolute:``,"right-2":``,"top-2":``,"z-20":``,"text-xl":``,icon:`carbon-close`,border:!1,onClick:t[0]||=t=>e.$emit(`close`)}),c(`div`,_,[i(e.$slots,`default`)])],16,g)):d(``,!0)]),_:3},16)}}}),{__name:`NDrawer`});export{v as t};
@@ -1 +0,0 @@
1
- import{R as e,w as t}from"./nicon-co5pnhft.js";import{C as n,H as r,J as i,Yt as a,b as o,bt as s,ct as c,f as l,h as u,kt as d,x as f}from"./vendor/json-editor-vue-h1waqukq.js";import{t as p}from"./nbutton-np26z5og.js";var m=Object.assign(n({__name:`NDropdown`,props:{modelValue:{type:Boolean},direction:{default:`start`}},setup(n,{emit:m}){let h=e(n,`modelValue`,m,{passive:!0}),g=s();return t(g,()=>{h.value=!1}),(e,t)=>{let s=p;return r(),u(`div`,{ref_key:`el`,ref:g,class:`relative`},[i(e.$slots,`trigger`,{enabled:d(h),click:()=>h.value=!d(h)},()=>[f(s,{onClick:t[0]||=e=>h.value=!d(h)},{default:c(()=>[...t[1]||=[o(` Dropdown `,-1)]]),_:1})]),l(`div`,{class:a([`absolute z-10 border n-border-base rounded n-bg-base shadow n-transition`,[d(h)?`op-100`:`op0 pointer-events-none -translate-y-1`,n.direction===`end`?`right-0`:`left-0`]])},[i(e.$slots,`default`)],2)],512)}}}),{__name:`NDropdown`});export{m as t};
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-exit-nzr6hp55.js","./rolldown-runtime-f96lzs6p.js","./vendor/shiki-g3svwmfz.js"])))=>i.map(i=>d[i]);
2
- import{_ as e,b as t,i as n,v as r,y as i}from"./nuxt-hj3jyofn.js";import{C as a,Ct as o,D as s,Dt as c,Et as l,H as u,N as d,O as f,St as p,Tt as m,Yt as h,_t as g,a as _,at as v,bt as y,d as b,dt as x,h as S,ht as C,k as w,kt as ee,n as T,ot as te,pt as ne,vt as re,w as ie,wt as E,xt as ae,yt as oe,z as se}from"./vendor/json-editor-vue-h1waqukq.js";import{pt as ce}from"./ready-ikhds7hc.js";import{d as le,u as ue}from"./dist-2c3gpsw0.js";import{h as de,m as fe,p as pe}from"./vendor/shiki-g3svwmfz.js";function me(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
3
- `)}}function he(e){return typeof e==`string`?`'${e}'`:new ye().serialize(e)}var ge=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,_e=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[ge.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function ve(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&_e[n]?_e[n]:n+128,s=a<128&&_e[a]?_e[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var ye=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?ve(e,t):n===`number`&&r===`number`?e-t:ve(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(ve),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),be=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],xe=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Se=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,D=[],Ce=class{_data=new we;_hash=new we([...be]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)D[n]=e[t+n]|0;else{let e=D[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=D[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;D[n]=t+D[n-7]+i+D[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+xe[n]+D[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=we.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new we(t,i)}},we=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(Se.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Te(e){return new Ce().finalize(e).toBase64()}function Ee(e){return Te(he(e))}function De(e){return Ee(e)}function O(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var Oe={blue:O(34,39),cyan:O(36,39),gray:O(90,39),green:O(32,39),red:O(31,39),yellow:O(33,39),bold:O(1,22),dim:O(2,22),reset:O(0,0),underline:O(4,24)};function ke(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var Ae=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function je(e=21){let t=``,n=e;for(;n--;)t+=Ae[Math.random()*64|0];return t}var Me=Symbol.for(`immer-nothing`),Ne=Symbol.for(`immer-draftable`),k=Symbol.for(`immer-state`),Pe=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function A(e,...t){{let n=Pe[e],r=z(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var j=Object,M=j.getPrototypeOf,Fe=`constructor`,Ie=`prototype`,Le=`configurable`,Re=`enumerable`,ze=`writable`,Be=`value`,N=e=>!!e&&!!e[k];function P(e){return e?Ue(e)||qe(e)||!!e[Ne]||!!e[Fe]?.[Ne]||Je(e)||Ye(e):!1}var Ve=j[Ie][Fe].toString(),He=new WeakMap;function Ue(e){if(!e||!R(e))return!1;let t=M(e);if(t===null||t===j[Ie])return!0;let n=j.hasOwnProperty.call(t,Fe)&&t[Fe];if(n===Object)return!0;if(!z(n))return!1;let r=He.get(n);return r===void 0&&(r=Function.toString.call(n),He.set(n,r)),r===Ve}function We(e,t,n=!0){F(e)===0?(n?Reflect.ownKeys(e):j.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function F(e){let t=e[k];return t?t.type_:qe(e)?1:Je(e)?2:Ye(e)?3:0}var I=(e,t,n=F(e))=>n===2?e.has(t):j[Ie].hasOwnProperty.call(e,t),L=(e,t,n=F(e))=>n===2?e.get(t):e[t],Ge=(e,t,n,r=F(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ke(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var qe=Array.isArray,Je=e=>e instanceof Map,Ye=e=>e instanceof Set,R=e=>typeof e==`object`,z=e=>typeof e==`function`,Xe=e=>typeof e==`boolean`;function Ze(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qe=e=>R(e)?e?.[k]:null,B=e=>e.copy_||e.base_,$e=e=>e.modified_?e.copy_:e.base_;function et(e,t){if(Je(e))return new Map(e);if(Ye(e))return new Set(e);if(qe(e))return Array[Ie].slice.call(e);let n=Ue(e);if(t===!0||t===`class_only`&&!n){let t=j.getOwnPropertyDescriptors(e);delete t[k];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[ze]===!1&&(a[ze]=!0,a[Le]=!0),(a.get||a.set)&&(t[i]={[Le]:!0,[ze]:!0,[Re]:a[Re],[Be]:e[i]})}return j.create(M(e),t)}{let t=M(e);if(t!==null&&n)return{...e};let r=j.create(t);return j.assign(r,e)}}function tt(e,t=!1){return it(e)||N(e)||!P(e)?e:(F(e)>1&&j.defineProperties(e,{set:rt,add:rt,clear:rt,delete:rt}),j.freeze(e),t&&We(e,(e,t)=>{tt(t,!0)},!1),e)}function nt(){A(2)}var rt={[Be]:nt};function it(e){return e===null||!R(e)||j.isFrozen(e)}var at=`MapSet`,ot=`Patches`,st=`ArrayMethods`,ct={};function V(e){let t=ct[e];return t||A(0,e),t}var lt=e=>!!ct[e];function ut(e,t){ct[e]||(ct[e]=t)}var dt,ft=()=>dt,pt=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:lt(at)?V(at):void 0,arrayMethodsPlugin_:lt(st)?V(st):void 0});function mt(e,t){t&&(e.patchPlugin_=V(ot),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ht(e){gt(e),e.drafts_.forEach(vt),e.drafts_=null}function gt(e){e===dt&&(dt=e.parent_)}var _t=e=>dt=pt(dt,e);function vt(e){let t=e[k];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function yt(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[k].modified_&&(ht(t),A(4)),P(e)&&(e=bt(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[k].base_,e,t)}else e=bt(t,n);return xt(t,e,!0),ht(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Me?void 0:e}function bt(e,t){if(it(t))return t;let n=t[k];if(!n)return kt(t,e.handledSet_,e);if(!Ct(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Dt(n,e)}return n.copy_}function xt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tt(t,n)}function St(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ct=(e,t)=>e.scope_===t,wt=[];function Tt(e,t,n,r){let i=B(e),a=e.type_;if(r!==void 0&&L(i,r,a)===t){Ge(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;We(i,(e,n)=>{if(N(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??wt;for(let e of o)Ge(i,e,n,a)}function Et(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Ct(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=$e(i);Tt(e,i.draft_??i,a,n),Dt(i,r)})}function Dt(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}St(e)}}function Ot(e,t,n){let{scope_:r}=e;if(N(n)){let i=n[k];Ct(i,r)&&i.callbacks_.push(function(){Rt(e),Tt(e,n,$e(i),t)})}else P(n)&&e.callbacks_.push(function(){let i=B(e);e.type_===3?i.has(n)&&kt(n,r.handledSet_,r):L(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&kt(L(e.copy_,t,e.type_),r.handledSet_,r)})}function kt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||N(e)||t.has(e)||!P(e)||it(e)?e:(t.add(e),We(e,(r,i)=>{if(N(i)){let t=i[k];Ct(t,n)&&(Ge(e,r,$e(t),e.type_),St(t))}else P(i)&&kt(i,t,n)}),e)}function At(e,t){let n=qe(e),r={type_:+!!n,scope_:t?t.scope_:ft(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=jt;n&&(i=[r],a=Mt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var jt={get(e,t){if(t===k)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=B(e);if(!I(i,t,e.type_))return Ft(e,i,t);let a=i[t];if(e.finalized_||!P(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ze(t))return a;if(a===Nt(e.base_,t)||Pt(e,t,a)){Rt(e);let n=e.type_===1?+t:t,r=Bt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in B(e)},ownKeys(e){return Reflect.ownKeys(B(e))},set(e,t,n){let r=It(B(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Nt(B(e),t),i=r?.[k];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ke(n,r)&&(n!==void 0||I(e.base_,t,e.type_)))return!0;Rt(e),Lt(e)}return e.copy_[t]===n&&(n!==void 0||I(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Ot(e,t,n),!0)},deleteProperty(e,t){return Rt(e),Nt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Lt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=B(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ze]:!0,[Le]:e.type_!==1||t!==`length`,[Re]:r[Re],[Be]:n[t]}},defineProperty(){A(11)},getPrototypeOf(e){return M(e.base_)},setPrototypeOf(){A(12)}},Mt={};for(let e in jt){let t=jt[e];Mt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Mt.deleteProperty=function(e,t){return isNaN(parseInt(t))&&A(13),Mt.set.call(this,e,t,void 0)},Mt.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&A(14),jt.set.call(this,e[0],t,n,e[0])};function Nt(e,t){let n=e[k];return(n?B(n):e)[t]}function Pt(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!P(n)||n[k]?!1:e.baseRefs_.has(n)}function Ft(e,t,n){let r=It(t,n);return r?Be in r?r[Be]:r.get?.call(e.draft_):void 0}function It(e,t){if(!(t in e))return;let n=M(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=M(n)}}function Lt(e){e.modified_||(e.modified_=!0,e.parent_&&Lt(e.parent_))}function Rt(e){e.copy_||=(e.assigned_=new Map,et(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(z(e)&&!z(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}z(t)||A(6),n!==void 0&&!z(n)&&A(7);let r;if(P(e)){let i=_t(this),a=Bt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ht(i):gt(i)}return mt(i,n),yt(r,i)}if(!e||!R(e)){if(r=t(e),r===void 0&&(r=e),r===Me&&(r=void 0),this.autoFreeze_&&tt(r,!0),n){let t=[],i=[];V(ot).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}A(1,e)},this.produceWithPatches=(e,t)=>{if(z(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Xe(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Xe(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Xe(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){P(e)||A(8),N(e)&&(e=Vt(e));let t=_t(this),n=Bt(t,e,void 0);return n[k].isManual_=!0,gt(t),n}finishDraft(e,t){let n=e&&e[k];(!n||!n.isManual_)&&A(9);let{scope_:r}=n;return mt(r,t),yt(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=V(ot).applyPatches_;return N(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Bt(e,t,n,r){let[i,a]=Je(t)?V(at).proxyMap_(t,n):Ye(t)?V(at).proxySet_(t,n):At(t,n);return(n?.scope_??ft()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Et(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Vt(e){return N(e)||A(10,e),Ht(e)}function Ht(e){if(!P(e)||it(e))return e;let t=e[k],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=et(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=et(e,!0);return We(n,(e,t)=>{Ge(n,e,Ht(t))},r),t&&(t.finalized_=!1),n}function Ut(){Pe.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Qe(L(e,n.key_)),i=L(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||I(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=L(n,r),!R(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[k];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;We(e.assigned_,(e,l)=>{let u=L(o,e,c),f=L(s,e,c),p=l?I(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Me?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=F(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Fe)&&A(19),z(o)&&n===Ie&&A(19),o=L(o,n),(o===null||!R(o))&&A(18,i.join(`/`))}let s=F(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:A(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:A(17,a)}}),e}function u(e){if(!P(e))return e;if(qe(e))return e.map(u);if(Je(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ye(e))return new Set(Array.from(e).map(u));let t=Object.create(M(e));for(let n in e)t[n]=u(e[n]);return I(e,Ne)&&(t[Ne]=e[Ne]),t}function d(e){return N(e)?u(e):e}ut(ot,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var Wt=new zt,Gt=Wt.produce,Kt=Wt.produceWithPatches.bind(Wt),qt=Wt.applyPatches.bind(Wt),Jt=1e3;function Yt(e,t){if(e.add(t),e.size>Jt){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Xt(e){let{enablePatches:t=!1}=e;t&&Ut();let n=ke(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=je())=>{i.has(t)||(Ut(),r=qt(r,e),Yt(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=je())=>{if(!i.has(a)){if(Yt(i,a),t){let[t,i]=Kt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Gt(r,e),n.emit(`updated`,r,void 0,a)}},syncIds:i}}var Zt=typeof self==`object`?self:globalThis,Qt=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),$t=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function en(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Qt.has(e)?Zt[e]:void 0;return n(new(r??Zt.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&$t.has(a))return n(new Zt[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function tn(e){return en(new Map,e)(0)}var nn=``,{toString:rn}={},{keys:an}=Object;function on(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=rn.call(e).slice(8,-1);switch(n){case`Array`:return[1,nn];case`Object`:return[2,nn];case`Date`:return[3,nn];case`RegExp`:return[4,nn];case`Map`:return[5,nn];case`Set`:return[6,nn];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function sn([e,t]){return e===0&&(t===`function`||t===`symbol`)}function cn(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=on(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of an(r))(e||!sn(on(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(sn(on(n))||sn(on(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!sn(on(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function ln(e,t={}){let n=[];return cn(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:un,stringify:dn}=JSON,fn={json:!0,lossy:!0};function pn(e){return tn(un(e))}function mn(e){return dn(ln(e,fn))}function hn(e){return tn(e)}function gn(e){return mn(e)}function _n(e){return pn(e)}var vn=256,yn=class extends Error{name=`StreamClosedError`};function bn(e={}){let t=e.id??je(),n=Math.max(0,e.replayWindow??0),r=ke(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new yn(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=Sn(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function xn(e={}){let t=e.id??je(),n=Math.max(1,e.highWaterMark??vn),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function Sn(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}function Cn(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var wn=Math.random.bind(Math),Tn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function En(e=21){let t=``,n=e;for(;n--;)t+=Tn[wn()*64|0];return t}var Dn=6e4,On=e=>e,kn=On,{clearTimeout:An,setTimeout:jn}=globalThis;function Mn(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=On,deserialize:s=kn,resolver:c,bind:l=`rpc`,timeout:u=Dn,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Cn(),_=En();s.i=_;let v;async function y(n=s){return u>=0&&(v=jn(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{An(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(An(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var H={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`}},Nn=`__connection.json`,Pn=`__DEVFRAME_CONNECTION__`,Fn=`x-birpc-session`,In=`__rpc-dump/index.json`,Ln=`devframe:services`,Rn=`devframe_otp`,zn=`devframe_auth_token`;H.postMessage.remoteAssetsError;var Bn=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>De(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},Vn=me(Oe);function Hn(e,{method:t=`warn`}={}){console[t](Vn(e))}function Un(e){return i({...e,reporters:[Hn,...e.reporters??[]]})}var U=Un({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});async function Wn(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Gn(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Kn(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await Wn(i,n[r]);if(a.issues)throw U.DF0043({name:e,index:r,issues:Gn(a.issues)})}return r}async function qn(e,t,n){if(!t)return n;let r=await Wn(t,n);if(r.issues)throw U.DF0044({name:e,issues:Gn(r.issues)});return n}async function Jn(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function Yn(e,t){let n=e.handler;if(!n){let r=await Jn(e,t);if(!r.handler)throw U.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Kn(e.name,r,t),o=await a(...n);return await qn(e.name,i,o)}}var Xn=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Yn(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw U.DF0021({name:e.name});Zn(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw U.DF0022({name:e.name});Zn(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Yn(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw U.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Zn(e){if(e.agent&&e.jsonSerializable!==!0)throw U.DF0019({name:e.name})}function Qn(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw $n(t,`undefined`,r,e);return n}if(i===null)return n;if(typeof i==`bigint`)throw $n(t,`BigInt`,r,e);if(typeof i==`object`){if(i instanceof Map)throw $n(t,`Map`,r,e);if(i instanceof Set)throw $n(t,`Set`,r,e);if(i instanceof Date)throw $n(t,`Date`,r,e);if(Array.isArray(i))return n;let a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw $n(t,i.constructor?.name??`class instance`,r,e)}return n})}function $n(e,t,n,r){let i=er(n,r);return U.DF0020({name:e||`<anonymous>`,type:t,path:i})}function er(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var tr=`__DEVFRAME_CONNECTION_META__`,nr=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function rr(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function ir(){return rr(Pn)}function ar(){return rr(tr)}function or(e){if(e)return e;try{let e=localStorage.getItem(nr);if(e)return e}catch{}return rr(nr)}function sr(e){globalThis[Pn]=e,globalThis[tr]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&cr(e.authToken)}function cr(e){try{localStorage.setItem(nr,e)}catch{}globalThis[nr]=e;let t=ir();t&&(globalThis[Pn]={...t,authToken:e})}function lr(e){let t=ue(Nn,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function ur(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function dr(){let e=ir();if(e)return ur(e,or()??e.authToken??e.connectionMeta.authToken);let t=ar();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??lr(`./`),authToken:or(t.authToken)}}async function fr(e={}){if(e.connection){let t=ur(e.connection,or(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return sr(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:lr(t[0]??`./`),authToken:or(e.authToken??e.connectionMeta.authToken)};return sr(n),n}let n=dr();if(n){let t=ur(n,or(e.authToken??n.authToken??n.connectionMeta.authToken));return sr(t),t}let r=[];for(let n of t){let t=ue(Nn,n),i=lr(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a={connectionMeta:r,metaBaseUrl:n.url||i,authToken:or(e.authToken??r.authToken)};return sr(a),a}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var W=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function pr(e=Rn){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function mr(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function hr(e=Rn){let t=pr(e);return t&&mr(e),t}async function gr(e,t={}){let n=hr(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function _r(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Ln,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function vr(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:H.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>o(e,n),r)}}),e.client.register({name:H.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=Xt({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(H.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var yr=new Map;function br(e=yr){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Qn(n,r??``):`s:${gn(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?_n(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function xr(){}function Sr(e){let{onConnected:t=xr,onError:n=xr,onDisconnected:r=xr,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${zn}=${encodeURIComponent(e.authToken)}`);let s=br(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=r.search(/\n\n|\r\n\r\n/);if(e<0)break;let t=r.slice(0,e);r=r.slice(e+(r[e]===`\r`?4:2));let n=`message`,i=[];for(let e of t.split(/\r?\n/))e.startsWith(`:`)||(e.startsWith(`event:`)?n=e.slice(6).trimStart():e.startsWith(`data:`)&&i.push(e.slice(5).replace(/^ /,``)));i.length>0&&_(n,i.join(`
4
- `))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[Fn]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function Cr(e,t){let{channel:n,rpcOptions:r={}}=t;return Mn(e,{...n,timeout:-1,...r,proxify:!1})}function wr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function Tr(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=wr();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(H.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new W(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new W(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(H.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new W(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(H.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(H.client.connectionError,e),m(new W(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new W(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=Cr(a.functions,{channel:v,rpcOptions:o});a.register({name:H.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new W(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(H.client.connectionError,e),m(e),i.emit(H.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new W(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(H.client.connectionError,e)}return i.emit(H.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(H.client.isTrustedUpdated,!0)),t}async function C(){return c?!0:x(b??``)}async function w(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t=()=>{};return await Promise.race([d.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),c}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:C,requestTrustWithToken:x,requestTrustWithCode:S,ensureTrusted:w,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(H.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(H.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(H.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function Er(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Dr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Er(n.sse,r??`./`,location);return Tr({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Sr({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function Or(e){let t=e.cause instanceof Error?e.cause:kr(e.cause)?Or(e.cause):e.cause,n=t===void 0?Error(e.message):Error(e.message,{cause:t});n.name=e.name;for(let t of Object.keys(e))t!==`name`&&t!==`message`&&t!==`cause`&&(n[t]=e[t]);return n}function kr(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Ar(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function jr(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Mr(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Nr(e){if(e.error)throw Or(e.error);return e.output}function Pr(e){return e.some(e=>e!=null)}function Fr(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Ir(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?hn(e):e}function a(e,t){return i(Fr(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return Mr(r)?Nr(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Ar(r)){if(Pr(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(jr(r)){let e=De(n),i=r.records[e];if(i)return Nr(await s(i,r.serialization));if(r.fallback)return Nr(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Pr(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Lr(e){let t=Ir(await e.fetchJsonFromBases(In),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Rr=``;function zr(e,t){return`${e}${Rr}${t}`}function Br(e){let t=new Map,n=new Map;e.client.register({name:H.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(zr(e,n))?._push(r,i)}}),e.client.register({name:H.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=zr(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:H.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=zr(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(H.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Rr);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=zr(n,r),o=t.get(a);if(o)return o;let s=xn({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(H.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=zr(t,r),a=n.get(i);if(a)return a;let o=bn({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Vr(){}var Hr=new Map;function Ur(e){let t=e.url;e.authToken&&(t=`${t}?${zn}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Vr,onError:i=Vr,onDisconnected:a=Vr,definitions:o=Hr}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=br(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Wr(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return le(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Gr(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Wr(n.websocket,r??`./`,location);return Tr({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Ur({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Kr(e){return e.includes(`:`)}function qr(e,t){return Kr(t)?t:`${e}:${t}`}function Jr(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return{async get(e){return(await a()).value()[e]},async set(e,t){(await a()).mutate(n=>{n[e]=t})},async delete(e){(await a()).mutate(t=>{delete t[e]})},async all(){return(await a()).value()},async onChange(e){return(await a()).on(`updated`,t=>e(t))}}}function Yr(e,t){return{global:Jr(e,t,`global`),project:Jr(e,t,`project`)}}function Xr(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Kr(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(qr(t,n),...r)),callEvent:((n,...r)=>e.callEvent(qr(t,n),...r)),callOptional:((n,...r)=>e.callOptional(qr(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(qr(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(qr(t,n),r,i),upload:(n,r)=>e.streaming.upload(qr(t,n),r)}},settings:Yr(e,t),scope:e.scope}}function Zr(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none") — nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function Qr(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=ke(),a=Array.isArray(t)?t:[t],o=await fr(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Bn({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new Xn(f);async function m(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(ue(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let h={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},g=Zr(e.transport??`auto`,s),_=g===`static`?await Lr({fetchJsonFromBases:m}):g===`sse`?Dr({...h,sseOptions:e.sseOptions}):Gr({...h,wsOptions:e.wsOptions}),v;try{v=new BroadcastChannel(`devframe-auth`)}catch{}let y,b=!1;function x(e){return((...t)=>b||!y?e(...t):y.then(()=>e(...t)))}let S={events:i,get isTrusted(){return _.isTrusted},get status(){return _.status},get connectionError(){return _.connectionError},get transport(){return _.transport??g},get connection(){return o},connectionMeta:s,ensureTrusted:_.ensureTrusted,requestTrust:_.requestTrust,requestTrustWithToken:async e=>(cr(e),o={...o,authToken:e},_.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await _.requestTrustWithCode(e);if(!t)return!1;cr(t),o={...o,authToken:t};try{v?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},call:x(_.call),callEvent:x(_.callEvent),callOptional:x(_.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:()=>_.close?.()};S.sharedState=vr(S),S.streaming=Br(S),S.services=_r(S);let C=new Map;S.scope=(e=>{if(!e)return S;let t=C.get(e);return t||(t=Xr(S,e),C.set(e,t)),t}),f.rpc=S;function w(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(!(e.simpleAuth===!1||!w())&&typeof globalThis.prompt==`function`)for(;!S.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await S.requestTrustWithCode(t))return}}async function T(){let t=await _.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await gr(S,{param:n}):!1;t||r||S.isTrusted||await ee()}return y=T().then(()=>{b=!0},()=>{b=!0}),v&&(v.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&S.requestTrustWithToken(e.data.authToken)}),S}function $r(e={}){return Qr({...e,simpleAuth:!1})}function G(e,t){return ne()?(g(e,t),!0):!1}var ei=new WeakMap,ti=(...e)=>{let t=e[0],n=ie()?.proxy??ne();if(n==null&&!f())throw Error(`injectLocal must be called in setup`);return n&&ei.has(n)&&t in ei.get(n)?ei.get(n)[t]:w(...e)},K=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ni=e=>e!==void 0,ri=e=>e!=null,ii=Object.prototype.toString,ai=e=>ii.call(e)===`[object Object]`,q=()=>{},oi=si();function si(){var e,t;return K&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ci(...e){if(e.length!==1)return m(...e);let t=e[0];return typeof t==`function`?oe(x(()=>({get:t,set:q}))):y(t)}function li(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var ui=e=>e();function di(e,t={}){let n,r,i=q,a=q,s=o(!1),l=e=>{clearTimeout(e),i(),i=q},u;return Object.assign(o=>{let d=c(e),f=c(t.maxWait);return n&&l(n),d<=0||f!==void 0&&f<=0?(r&&=(l(r),void 0),s.value=!1,Promise.resolve(o())):(s.value=!0,new Promise((e,c)=>{i=t.rejectOnCancel?c:e,a=e,u=o,f&&!r&&(r=setTimeout(()=>{n&&l(n),r=void 0,s.value=!1,e(u())},f)),n=setTimeout(()=>{r&&l(r),r=void 0,s.value=!1,e(o())},d)}))},{cancel:()=>{n&&=(l(n),void 0),r&&=(l(r),void 0),s.value=!1,a=q},flush:()=>{if(s.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),s.value=!1;let e=a;i=q,a=q,e(u())}},isPending:p(s)})}function fi(e=ui,t={}){let{initialState:n=`active`}=t,r=ci(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:p(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function pi(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function mi(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function hi(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function gi(e){return Object.entries(e)}function _i(e){return Array.isArray(e)?e:[e]}function vi(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var yi=/-(\w)/g,bi=vi(e=>e.replace(yi,(e,t)=>t?t.toUpperCase():``));function xi(e){return e||ie()}function Si(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function Ci(e){return C(e)?re(new Proxy({},{get(t,n,r){return ee(Reflect.get(e.value,n,r))},set(t,n,r){return C(e.value[n])&&!C(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):re(e)}function wi(e){return Ci(b(e))}function Ti(e,t=200,n={}){return li(di(t,n),e)}function Ei(e,t=200,n={}){let r=y(c(e)),i=Ti(()=>{r.value=e.value},t,n);return v(e,()=>i()),p(r)}var Di=Ei;function Oi(e,t,n={}){let{eventFilter:r=ui,...i}=n;return v(e,li(r,t),i)}function ki(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=fi(r,{initialState:i});return{stop:Oi(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ai(e,t=!0,n){xi(n)?se(e,n):t?e():d(e)}function ji(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,l=[new Promise(a=>{s=v(e,e=>{n(e)!==t&&(s?s():d(()=>s?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&l.push(pi(a,o).then(()=>c(e)).finally(()=>s?.())),Promise.race(l)}function r(r,i){if(!C(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:l}=i??{},u=null,f=[new Promise(n=>{u=v([e,r],([e,r])=>{t!==(e===r)&&(u?u():d(()=>u?.()),n(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&f.push(pi(s,l).then(()=>c(e)).finally(()=>(u?.(),c(e)))),Promise.race(f)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(c(e))},t)}function u(e){return f(1,e)}function f(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(c(e))?{toMatch:n,toContains:l,changed:u,changedTimes:f,get not(){return ji(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:u,changedTimes:f,get not(){return ji(e,!t)}}}function Mi(e){return ji(e)}var Ni=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Pi=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function Fi(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function J(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Ii(e,t,n={}){let r=e.getFullYear(),i=e.getMonth(),a=e.getDate(),o=e.getHours(),s=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=n.customMeridiem??Fi,p=e=>e.split(` `)[1]??``,m={Yo:()=>J(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>i+1,Mo:()=>J(i+1),MM:()=>`${i+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(c(n.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(c(n.locales),{month:`long`}),D:()=>String(a),Do:()=>J(a),DD:()=>`${a}`.padStart(2,`0`),H:()=>String(o),Ho:()=>J(o),HH:()=>`${o}`.padStart(2,`0`),h:()=>`${o%12||12}`.padStart(1,`0`),ho:()=>J(o%12||12),hh:()=>`${o%12||12}`.padStart(2,`0`),m:()=>String(s),mo:()=>J(s),mm:()=>`${s}`.padStart(2,`0`),s:()=>String(l),so:()=>J(l),ss:()=>`${l}`.padStart(2,`0`),SSS:()=>`${u}`.padStart(3,`0`),d:()=>d,dd:()=>e.toLocaleDateString(c(n.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(c(n.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(c(n.locales),{weekday:`long`}),A:()=>f(o,s),AA:()=>f(o,s,!1,!0),a:()=>f(o,s,!0),aa:()=>f(o,s,!0,!0),z:()=>p(e.toLocaleDateString(c(n.locales),{timeZoneName:`shortOffset`})),zz:()=>p(e.toLocaleDateString(c(n.locales),{timeZoneName:`shortOffset`})),zzz:()=>p(e.toLocaleDateString(c(n.locales),{timeZoneName:`shortOffset`})),zzzz:()=>p(e.toLocaleDateString(c(n.locales),{timeZoneName:`longOffset`}))};return t.replace(Pi,(e,t)=>t??m[e]?.call(m)??e)}function Li(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(Ni);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function Ri(e,t=`HH:mm:ss`,n={}){return b(()=>Ii(Li(c(e)),c(t),n))}function zi(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,s=o(!1);function l(){a&&=(clearInterval(a),null)}function u(){s.value=!1,l()}function d(){let n=c(t);n<=0||(s.value=!0,i&&e(),l(),s.value&&(a=setInterval(e,n)))}return r&&K&&d(),(C(t)||typeof t==`function`)&&G(v(t,()=>{s.value&&K&&d()})),G(u),{isActive:p(s),pause:u,resume:d}}function Bi(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=o(!1),s;function l(){s&&=(clearTimeout(s),void 0)}function u(){a.value=!1,l()}function d(...n){i&&e(),l(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=void 0,e(...n)},c(t))}return r&&(a.value=!0,K&&d()),G(u),{isPending:p(a),start:d,stop:u}}function Vi(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Oi(e,t,{...a,eventFilter:di(r,{maxWait:i})})}function Hi(e,t,n){return v(e,t,{...n,immediate:!0})}function Ui(e,t,n){let r;r=C(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:s=void 0,shallow:c=!0,onError:l=globalThis.reportError??q}=r,u=o(!i),d=c?o(t):y(t),f=0;return te(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:a}),i?b(()=>(u.value=!0,d.value)):d}function Wi(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=o(),i=a({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),s=a({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(n,{attrs:i,slots:a}){return()=>{if(!r.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=r.value?.call(r,{...e.props==null?Gi(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return Si({define:i,reuse:s},[i,s])}function Gi(e){let t={};for(let n in e)t[bi(n)]=e[n];return t}function Ki(e={}){let t=0,n=y([]);function r(...r){let i=ae({key:t++,args:r,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(i),i.promise=new Promise((e,t)=>{i.resolve=t=>(i.isResolving=!0,e(t)),i.reject=t}).finally(()=>{i.promise=void 0;let e=n.value.indexOf(i);e!==-1&&n.value.splice(e,1)}),i.promise}function i(...t){return e.singleton&&n.value.length>0?n.value[0].promise:r(...t)}let o=a((t,{slots:r})=>{let i=()=>n.value.map(e=>s(_,{key:e.key},r.default?.call(r,e)));return e.transition?()=>s(ce,e.transition,i):i});return o.start=i,o}var Y=K?window:void 0,qi=K?window.document:void 0,Ji=K?window.navigator:void 0;K&&window.location;function X(e){let t=c(e);return t?.$el??t}function Z(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=b(()=>{let t=_i(c(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Hi(()=>[n.value?.map(e=>X(e))??[Y].filter(e=>e!=null),_i(c(n.value?e[1]:e[0])),_i(ee(n.value?e[2]:e[1])),c(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=ai(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var Yi=!1;function Xi(e,t,n={}){let{window:r=Y,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:q,cancel:q,trigger:q}:q;if(oi&&!Yi){Yi=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,q,e)),r.document.documentElement.addEventListener(`click`,q,e)}let l=!0,u=e=>c(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=X(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=c(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=c(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=X(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(l=!u(n)),!l){l=!0;return}t(n)}},m=!1,h=[Z(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:a}),Z(r,`pointerdown`,t=>{let n=X(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Z(r,`blur`,n=>{setTimeout(()=>{let i=X(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return s?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function Zi(){let e=o(!1),t=ie();return t&&se(()=>{e.value=!0},t),e}function Qi(e){let t=Zi();return b(()=>(t.value,!!e()))}function $i(e,t,n={}){let{window:r=Y,...i}=n,a,o=Qi(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=v(b(()=>{let t=_i(c(e)).map(X).filter(ri);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return G(d),{isSupported:o,stop:d,takeRecords:u}}function ea(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ta(...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]);let{target:i=Y,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,l=ea(t);return Z(i,a,e=>{e.repeat&&c(s)||l(e)&&n(e)},o)}function na(e,t,n={}){return ta(e,t,{...n,eventName:`keydown`})}function ra(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=Y,once:a=!1}=t,s=o(!1),l=b(()=>{let e=c(r);return e?1e3/e:null}),u=0,d=null;function f(t){if(!s.value||!i)return;u||=t;let n=t-u;if(l.value&&n<l.value){d=i.requestAnimationFrame(f);return}if(u=t,e({delta:n,timestamp:t}),a){s.value=!1,d=null;return}d=i.requestAnimationFrame(f)}function m(){!s.value&&i&&(s.value=!0,u=0,d=i.requestAnimationFrame(f))}function h(){s.value=!1,d!=null&&i&&(i.cancelAnimationFrame(d),d=null)}return n&&m(),G(h),{isActive:p(s),pause:h,resume:m}}var ia=Symbol(`vueuse-ssr-width`);function aa(){let e=f()?ti(ia,null):null;return typeof e==`number`?e:void 0}function oa(e,t={}){let{window:n=Y,ssrWidth:r=aa()}=t,i=Qi(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=o(typeof r==`number`),s=o(),l=o(!1);return te(()=>{if(a.value){a.value=!i.value;let t=c(e).split(`,`);l.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=hi(n[1])),i&&a&&(a=r<=hi(i[1])),t?!a:a});return}i.value&&(s.value=n.matchMedia(c(e)),l.value=s.value.matches)}),Z(s,`change`,e=>{l.value=e.matches},{passive:!0}),b(()=>l.value)}var sa=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function ca(e={}){let{window:t=Y}=e,n=Object.fromEntries(sa.map(e=>[e,y()])),r=e=>{var r;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of sa)n[e].value=t==null||(r=t.location)==null?void 0:r[e];return re({trigger:e,state:i,length:a,origin:o,...n})},i=y(r(`load`));for(let[e,r]of gi(n))v(r,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});if(t){let e={passive:!0};Z(t,`popstate`,()=>i.value=r(`popstate`),e),Z(t,`hashchange`,()=>i.value=r(`hashchange`),e)}return i}function la(e,t={}){let{controls:n=!1,navigator:r=Ji}=t,i=Qi(()=>r&&`permissions`in r),a=o(),s=typeof e==`string`?{name:e}:e,c=o(),l=()=>{c.value=a.value?.state??`prompt`};Z(a,`change`,l,{passive:!0});let u=mi(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(s)}catch{a.value=void 0}finally{l()}if(n)return E(a.value)}});return u(),n?{state:c,isSupported:i,query:u}:c}function ua(e={}){let{navigator:t=Ji,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,s=Qi(()=>t&&`clipboard`in t),l=la(`clipboard-read`),u=la(`clipboard-write`),d=b(()=>s.value||a),f=o(``),m=o(!1),h=o(!1),g=Bi(()=>m.value=!1,i,{immediate:!1}),_=0;async function v(){let e=!(s.value&&w(l.value));if(!e)try{f.value=await t.clipboard.readText()}catch{e=!0}e&&(f.value=C())}d.value&&n&&Z([`copy`,`cut`],v,{passive:!0});async function y(e){let n=e??c(r);if(d.value&&n!=null){h.value=!0;let e=!(s.value&&w(u.value));if(!e)try{let e=x(n);await t.clipboard.write([e])}catch{e=!0}if(e){if(typeof n==`string`)f.value=n,S(n);else{let e=++_,t=await n();t!=null&&e===_&&(f.value=t,S(t))}}m.value=!0,g.start(),h.value=!1}}function x(e){return typeof e==`string`?(f.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(f.value=e,new Blob([e],{type:`text/plain`})))})}function S(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function C(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function w(e){return e===`granted`||e===`prompt`}return{copyPending:p(h),isSupported:d,text:p(f),copied:p(m),copy:y}}function da(e){return JSON.parse(JSON.stringify(e))}var fa=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},pa=`__vueuse_ssr_handlers__`,ma=ha();function ha(){return pa in fa||(fa[pa]=fa[pa]||{}),fa[pa]}function ga(e,t){return ma[e]||t}function _a(e){return oa(`(prefers-color-scheme: dark)`,e)}function va(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`}var ya={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()}},ba=`vueuse-storage`;function xa(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:p=Y,eventFilter:m,onError:h=e=>{console.error(e)},initOnMounted:g}=r,_=(f?o:y)(typeof t==`function`?t():t),x=b(()=>c(e));if(!n)try{n=ga(`getDefaultStorage`,()=>Y?.localStorage)()}catch(e){h(e)}if(!n)return _;let S=c(t),C=va(S),w=r.serializer??ya[C],{pause:ee,resume:T}=ki(_,e=>re(e),{flush:i,deep:a,eventFilter:m});v(x,()=>E(),{flush:i});let te=!1;p&&s&&(n instanceof Storage?Z(p,`storage`,e=>{g&&!te||E(e)},{passive:!0}):Z(p,ba,e=>{g&&!te||ae(e)})),g?Ai(()=>{te=!0,E()}):E();function ne(e,t){if(p){let r={key:x.value,oldValue:e,newValue:t,storageArea:n};p.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(ba,{detail:r}))}}function re(e){try{let t=n.getItem(x.value);if(e==null)ne(t,null),n.removeItem(x.value);else{let r=w.write(e);t!==r&&(n.setItem(x.value,r),ne(t,r))}}catch(e){h(e)}}function ie(e){let t=e?e.newValue:n.getItem(x.value);if(t==null)return l&&S!=null&&n.setItem(x.value,w.write(S)),S;if(!e&&u){let e=w.read(t);return typeof u==`function`?u(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}return typeof t==`string`?w.read(t):t}function E(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){_.value=S;return}if(!(e&&e.key!==x.value)){ee();try{let t=w.write(_.value);(e===void 0||e?.newValue!==t)&&(_.value=ie(e))}catch(e){h(e)}finally{e?d(T):T()}}}}function ae(e){E(e.detail)}return _}var Sa=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Ca(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=Y,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=_a({window:i}),p=b(()=>f.value?`dark`:`light`),m=c||(o==null?ci(r):xa(o,r,a,{window:i,listenToStorageChanges:s})),h=b(()=>m.value===`auto`?p.value:m.value),g=ga(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):X(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(Sa)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,_):_(t)}v(h,y,{flush:`post`,immediate:!0}),Ai(()=>y(h.value));let x=b({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(x,{store:m,system:p,state:h})}function wa(e,t,n={}){let{window:r=Y,...i}=n,a,o=Qi(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=v(b(()=>{let t=c(e);return Array.isArray(t)?t.map(e=>X(e)):[X(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return G(u),{isSupported:o,stop:u}}function Ta(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:s=`sync`}=t,c=o(0),l=o(0),u=o(0),d=o(0),f=o(0),p=o(0),m=o(0),h=o(0);function g(){let t=X(e);if(!t){n&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();c.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return wa(e,_),v(()=>X(e),e=>!e&&_()),$i(e,_,{attributeFilter:[`style`,`class`]}),i&&Z(`scroll`,_,{capture:!0,passive:!0}),r&&Z(`resize`,_,{passive:!0}),Ai(()=>{a&&_()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function Ea(e,t={width:0,height:0},n={}){let{window:r=Y,box:i=`content-box`}=n,a=b(()=>{var t;return(t=X(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),s=o(t.width),c=o(t.height),{stop:l}=wa(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=X(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=_i(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},n);Ai(()=>{let n=X(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),o=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);s.value=n.offsetWidth-t-a,c.value=n.offsetHeight-i-o}else s.value=n.offsetWidth,c.value=n.offsetHeight}else n&&(s.value=t.width,c.value=t.height)});let u=v(()=>X(e),e=>{s.value=e?t.width:0,c.value=e?t.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}function Da(e={}){let{initialValue:t=``}=e,n=Qi(()=>typeof window<`u`&&`EyeDropper`in window),r=o(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function Oa(e,t,n={}){let{window:r=Y}=n;return xa(e,t,r?.localStorage,n)}function ka(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>ra(e,{immediate:n}):n=>zi(n,t,e)}return ra}function Aa(e={}){let{controls:t=!1,scheduler:n=ka(e)}=e,r=o(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function ja(e,t,n={}){let{window:r=Y}=n;return xa(e,t,r?.sessionStorage,n)}var Ma=0,Na=new WeakMap;function Pa(e,t={}){let n=o(!1),{document:r=qi,immediate:i=!0,manual:a=!1,id:s=`vueuse_styletag_${++Ma}`}=t,c=o(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(s)||r.createElement(`style`);e.isConnected||(e.id=s,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(Na.set(e,(Na.get(e)??0)+1),l=v(c,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{if(!r||!n.value)return;l();let e=r.getElementById(s);if(e){let t=(Na.get(e)??1)-1;t<=0?(Na.delete(e),r.head.removeChild(e)):Na.set(e,t)}n.value=!1};return i&&!a&&Ai(u),a||G(d),{id:s,css:c,unload:d,load:u,isLoaded:p(n)}}var Fa=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Ia={justNow:`just now`,past:e=>/\d/.test(e)?`${e} ago`:e,future:e=>/\d/.test(e)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function La(e){return e.toISOString().slice(0,10)}function Ra(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>zi(e,t)}return e=>zi(e,3e4)}function za(e,t={}){let{controls:n=!1,scheduler:r=Ra(t)}=t,{now:i,...a}=Aa({scheduler:r,controls:!0}),o=b(()=>Ba(new Date(c(e)),t,c(i)));return n?{timeAgo:o,...a}:o}function Ba(e,t={},n=Date.now()){let{max:r,messages:i=Ia,fullDateFormatter:a=La,units:o=Fa,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function Va(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:f}=r,p=ie(),m=n||p?.emit||(p==null||(i=p.$emit)==null?void 0:i.bind(p))||(p==null||(a=p.proxy)==null||(a=a.$emit)==null?void 0:a.bind(p?.proxy)),h=c;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>o?typeof o==`function`?o(e):da(e):e,_=()=>ni(e[t])?g(e[t]):u,x=e=>{f?f(e)&&m(h,e):m(h,e)};if(s){let n=y(_()),r=!1;return v(()=>e[t],e=>{r||(r=!0,n.value=g(e),d(()=>r=!1))}),v(n,n=>{!r&&(n!==e[t]||l)&&x(n)},{deep:l}),n}return b({get(){return _()},set(e){x(e)}})}var Ha=`nuxt:devtools`,Ua=2e3,Wa=y(!1),Ga=y(!0),Ka=o(),qa=Di(Ga,Ua),Ja={},Q=o(),Ya=Za(),Xa=new Proxy({},{get:(e,t)=>async(...e)=>(Q.value||await Ya).call(`${Ha}:${t}`,...e)});async function Za(){try{let e=await $r();Q.value=e;for(let[t,n]of Object.entries(Ja))typeof n==`function`&&$a(e,t,n);return console.log(`[nuxt-devtools] Connected to Vite DevTools RPC`),Ga.value=!1,Wa.value=!0,e}catch(e){throw Ga.value=!0,Ka.value=e,console.error(`[Nuxt DevTools] Unable to connect to Vite DevTools RPC`,e),e}}async function Qa(){let e=Q.value||await Ya;for(let[t,n]of Object.entries(Ja))typeof n==`function`&&$a(e,t,n)}function $a(e,t,n){let r={name:t,type:`event`,handler:n};e.client.register(r,!0)}var eo=t({docsBase:e,reporters:r}),to=`$s`;function no(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[r,i]=e;if(!r||typeof r!=`string`)throw eo.NUXT_E7009({key:r});if(i!==void 0&&typeof i!=`function`)throw eo.NUXT_E7007({type:typeof i});let a=to+r,o=n(),s=m(o.payload.state,a);if(i&&(o._state[a]??={_default:i}),s.value===void 0&&i){let e=i();if(C(e))return o.payload.state[a]=e,e;s.value=e}return s}var ro=o(),io;function ao(){io||=(async()=>{let{createMarkdownExit:e}=await T(async()=>{let{createMarkdownExit:e}=await import(`./vendor/markdown-exit-nzr6hp55.js`).then(e=>e.t);return{createMarkdownExit:e}},__vite__mapDeps([0,1]),import.meta.url);ro.value=e({html:!0,linkify:!0,breaks:!0})})()}function oo(e){return ao(),ro.value?ro.value.render(e):e}var so={json:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.c),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.r),__vite__mapDeps([2,1]),import.meta.url),yml:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.r),__vite__mapDeps([2,1]),import.meta.url),css:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.f),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),js:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.u),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),ts:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),cts:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),mts:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.o),__vite__mapDeps([2,1]),import.meta.url),vue:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.i),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.a),__vite__mapDeps([2,1]),import.meta.url),html:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.l),__vite__mapDeps([2,1]),import.meta.url),diff:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.d),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),bash:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),sh:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),shell:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.s),__vite__mapDeps([2,1]),import.meta.url)},co={"vitesse-dark":()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.n),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>T(()=>import(`./vendor/shiki-g3svwmfz.js`).then(e=>e.t),__vite__mapDeps([2,1]),import.meta.url)},lo=fe({langs:so,themes:co,engine:()=>pe()}),{codeToHtml:uo,codeToHast:fo,codeToTokensBase:po,codeToTokens:mo,codeToTokensWithThemes:ho,getSingletonHighlighter:go,getLastGrammarState:_o}=de(lo),vo=o(),yo=null;function bo(e,t=`text`,n){!yo&&!vo.value&&(yo=lo({langs:Object.keys(so),themes:Object.keys(co)}).then(e=>{vo.value=e}));let r=vo.value?.getLoadedLanguages().includes(t);return r?{code:vo.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}var xo=`hub:messages:add`;function So(e){return{message:e.message,level:e.level??`info`,description:e.description,labels:e.labels,category:e.category,filePosition:e.filePosition,stacktrace:e.stacktrace,notify:e.notify??!0,autoDismiss:e.autoDismiss,autoDelete:e.autoDelete}}async function Co(e){try{await(Q.value||await Ya).call(xo,So(e))}catch(e){console.error(`[nuxt-devtools] Failed to push notification`,e)}}var wo=!1;function To(){wo||(wo=!0,console.warn("[nuxt-devtools] `extendClientRpc` is deprecated. Use `onDevtoolsReady((kit) => kit.client.register(...))` from `@nuxt/devtools-kit/iframe-client`."))}function $(){return no(`devtools-client`)}function Eo(){let e=$();return b(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function Do(){let e=$();return b(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function Oo(){let e=$();return b(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var ko=y(!1);setTimeout(()=>{ko.value=!0},2e3);var Ao=b(()=>ko.value&&!$().value);function jo(){return Ca({storageKey:`nuxt-devtools-color-mode`})}function Mo(){let e=$(),t=jo();return b(()=>({host:e.value,devtools:{rpc:Xa,notify:Co,devtoolsKit:Q.value,colorMode:t.value,renderCodeHighlight(e,t){return bo(e,t)},renderMarkdown(e){return oo(e)},extendClientRpc(e,t){To();let n=n=>{for(let[r,i]of Object.entries(t))typeof i==`function`&&$a(n,`${e}:${r}`,i)};return Q.value?n(Q.value):Ya.then(n,()=>{}),new Proxy({},{get(t,n){if(typeof n==`string`)return async(...t)=>(Q.value||await Ya).call(`${e}:${n}`,...t)}})}}}))}var No=!1;function Po(){return{behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,showExperimentalFeatures:!1,showHelpButtons:!0,scale:1,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[]},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:No,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}}}var Fo=new Map;function Io(e){if(Fo.has(e))return Fo.get(e);let t=re(Po()[e]),n=l(t);return Fo.set(e,n),Xa.getOptions(e).then(n=>{Object.assign(t,n),Vi(t,async t=>{Xa.updateOptions(e,t)},{deep:!0,flush:`post`,debounce:500,maxWait:1e3})}),n}function Lo(e){return Io(e)}var Ro=Object.assign(a({__name:`NIcon`,props:{icon:{}},setup(e){return(t,n)=>(u(),S(`div`,{class:h([`n-icon`,e.icon])},null,2))}}),{__name:`NIcon`});export{Ea as A,wi as B,Ba as C,ca as D,X as E,ja as F,Di as G,G as H,Pa as I,Vi as K,za as L,Da as M,Oa as N,ua as O,Aa as P,Va as R,Ki as S,na as T,Mi as U,_i as V,Ri as W,Ga as _,$ as a,Ui as b,Do as c,no as d,Ua as f,Wa as g,Xa as h,Ao as i,Z as j,Ta as k,Mo as l,Qa as m,Lo as n,Oo as o,Ja as p,jo as r,Eo as s,Ro as t,Co as u,qa as v,Xi as w,Wi as x,Ka as y,ri as z};
@@ -1 +0,0 @@
1
- import{C as e,H as t,J as n,Qt as r,Yt as i,f as a,h as o,m as s}from"./vendor/json-editor-vue-h1waqukq.js";var c={flex:`~ gap-3`,"items-center":``},l=Object.assign(e({__name:`NIconTitle`,props:{icon:{},text:{}},setup(e){return(l,u)=>(t(),o(`div`,c,[e.icon?(t(),o(`div`,{key:0,class:i(e.icon)},null,2)):s(``,!0),n(l.$slots,`default`,{},()=>[a(`div`,null,r(e.text),1)])]))}}),{__name:`NIconTitle`});export{l as t};
@@ -1 +0,0 @@
1
- import{C as e,H as t,J as n,M as r,ct as i,d as a,h as o,m as s,p as c}from"./vendor/json-editor-vue-h1waqukq.js";import{t as l}from"./nuxt-link-nsgkom6k.js";var u={key:0,"i-carbon:arrow-up-right":``,"translate-y--1":``,"text-xs":``,op50:``},d=Object.assign(e({__name:`NLink`,props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){let d=e,f=a(()=>d.href||d.to);return(a,d)=>{let p=l;return t(),c(p,r(f.value?{href:f.value,target:e.target,rel:e.target===`_blank`?`noopener noreferrer`:void 0}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":f.value||e.underline}}),{default:i(()=>[n(a.$slots,`default`),f.value&&e.target===`_blank`?(t(),o(`div`,u)):s(``,!0)]),_:3},16,[`class`])}}}),{__name:`NLink`});export{d as t};
@@ -1 +0,0 @@
1
- import{H as e,J as t,b as n,f as r,h as i}from"./vendor/json-editor-vue-h1waqukq.js";import{t as a}from"./_plugin-vue_export-helper-d9irwgla.js";var o={},s={class:`n-loading n-panel-grids-center`},c={class:`flex flex-col animate-pulse items-center text-lg`};function l(a,o){return e(),i(`div`,s,[r(`div`,c,[o[1]||=r(`div`,{class:`i-carbon-circle-dash animate-spin text-4xl op50`},null,-1),t(a.$slots,`default`,{},()=>[o[0]||=n(` Loading... `,-1)])])])}var u=Object.assign(a(o,[[`render`,l]]),{__name:`NLoading`});export{u as t};
@@ -1 +0,0 @@
1
- import{C as e,H as t,Qt as n,Z as r,kt as i,p as a}from"./vendor/json-editor-vue-h1waqukq.js";import{t as o}from"./client-iet3i2jx.js";var s=Object.assign(e({__name:`NMarkdown`,props:{markdown:{},tag:{}},setup(e){return(s,c)=>e.markdown&&i(o)?.devtools?.renderMarkdown?(t(),a(r(e.tag||`span`),{key:0,class:`n-markdown`,innerHTML:i(o).devtools.renderMarkdown(e.markdown)},null,8,[`innerHTML`])):(t(),a(r(e.tag||`span`),{key:1,class:`n-markdown`,textContent:n(e.markdown)},null,8,[`textContent`]))}}),{__name:`NMarkdown`});export{s as t};
@@ -1 +0,0 @@
1
- import{C as e,H as t,J as n,Yt as r,f as i,h as a,m as o,p as s}from"./vendor/json-editor-vue-h1waqukq.js";import{t as c}from"./ntext-input-obq09i2s.js";var l={flex:`~ gap4 wrap`,"items-center":``},u=Object.assign(e({__name:`NNavbar`,props:{search:{},noPadding:{type:Boolean}},emits:[`update:search`],setup(e,{emit:u}){let d=u;function f(e){d(`update:search`,e.target.value)}return(u,d)=>{let p=c;return t(),a(`div`,{flex:`~ col gap2 wrap`,border:`b base`,"n-navbar-glass":``,"flex-1":``,class:r([{p4:!e.noPadding}])},[i(`div`,l,[n(u.$slots,`search`,{},()=>[e.search===void 0?o(``,!0):(t(),s(p,{key:0,placeholder:`Search...`,icon:`carbon-search`,n:`primary`,"flex-auto":``,class:r({"px-3 py-2":!e.noPadding}),value:e.search,onInput:f},null,8,[`class`,`value`]))]),n(u.$slots,`actions`)]),n(u.$slots,`default`)],2)}}}),{__name:`NNavbar`});export{u as t};
@@ -1 +0,0 @@
1
- import{H as e,J as t,h as n}from"./vendor/json-editor-vue-h1waqukq.js";import{t as r}from"./_plugin-vue_export-helper-d9irwgla.js";var i={},a={relative:``,"w-full":``};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s as default};