@heybox/hb-sdk 0.8.0-alpha.2 → 0.8.0-alpha.9

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 (71) hide show
  1. package/CHANGELOG.md +85 -430
  2. package/README.md +26 -2
  3. package/dist/cli-chunks/{build-CCLWgXyA.cjs → build-DkokKVNy.cjs} +2 -2
  4. package/dist/cli-chunks/{context-Brh56h56.cjs → context-CKzZxKbF.cjs} +1 -1
  5. package/dist/cli-chunks/{create-BZ-hi2s1.cjs → create-BQy5Jdmu.cjs} +2 -2
  6. package/dist/cli-chunks/{dev-CoSXtEYa.cjs → dev-Dik2zr5R.cjs} +60 -63
  7. package/dist/cli-chunks/doctor-Byr4uwKG.cjs +65 -0
  8. package/dist/cli-chunks/{index-BL5eEPap.cjs → index-BwGBr1ZA.cjs} +50 -30
  9. package/dist/cli-chunks/{index-CS6Q0o5C.cjs → index-Cl0XaX8e.cjs} +1 -1
  10. package/dist/cli-chunks/{index.esm-BoBHPfpq.cjs → index.esm-BYifBABc.cjs} +6 -5
  11. package/dist/cli-chunks/{login-CILLxGuf.cjs → login-Dr9lclu3.cjs} +2 -2
  12. package/dist/cli-chunks/{project-vite-Qu6Xe9Dn.cjs → project-vite-BIPrOtRO.cjs} +1 -1
  13. package/dist/cli-chunks/{remote-DRuTQ51u.cjs → remote-DXxyA14a.cjs} +4 -4
  14. package/dist/cli-chunks/{session-D-_N3WVL.cjs → session-B6Mo9eYW.cjs} +1 -1
  15. package/dist/cli-chunks/skill-f90sxv28.cjs +83 -0
  16. package/dist/cli-chunks/version-DDB_btOG.cjs +8 -0
  17. package/dist/cli.cjs +1 -1
  18. package/dist/devtools/browser-dev-host/assets/{browser-dev-host-uq-Wac6k.js → browser-dev-host-CbhA4h8z.js} +15 -15
  19. package/dist/devtools/browser-dev-host/assets/{index-KD2f3Jdz.css → index-DJFB5ySU.css} +1 -1
  20. package/dist/devtools/browser-dev-host/assets/{index-CeP6SLB3.js → index-DaqmTjSF.js} +4 -4
  21. package/dist/devtools/browser-dev-host/assets/workbench-state-wHgWRb7I.js +5 -0
  22. package/dist/devtools/browser-dev-host/index.html +3 -3
  23. package/dist/index.cjs.js +2 -2
  24. package/dist/index.esm.js +2 -2
  25. package/dist/templates/{vue3-vite-ts → vanilla-vite-js}/.gitignore.ejs +0 -1
  26. package/dist/templates/vanilla-vite-js/README.md.ejs +14 -0
  27. package/dist/templates/vanilla-vite-js/index.html.ejs +20 -0
  28. package/dist/templates/vanilla-vite-js/package.json.ejs +21 -0
  29. package/dist/templates/vanilla-vite-js/src/assets/heybox-logo.svg +8 -0
  30. package/dist/templates/vanilla-vite-js/src/main.js +39 -0
  31. package/dist/templates/vanilla-vite-js/src/styles.css +155 -0
  32. package/dist/templates/{vue3-vite-ts/vite.config.ts → vanilla-vite-js/vite.config.js} +1 -2
  33. package/dist/vite.cjs.js +1 -1
  34. package/dist/vite.esm.js +1 -1
  35. package/package.json +19 -10
  36. package/skill/SKILL.md +8 -9
  37. package/skill/references/api-protocol.md +2 -4
  38. package/skill/references/api-root.md +4 -2
  39. package/skill/references/cli.md +20 -7
  40. package/skill/references/examples.md +1 -1
  41. package/skill/references/llms-index.md +1 -1
  42. package/skill/references/recipes.md +6 -4
  43. package/skill/references/safety-boundaries.md +1 -1
  44. package/skill/skill.json +10 -5
  45. package/types/modules/share/index.d.ts +1 -1
  46. package/types/modules/share/show-share-menu.d.ts +1 -1
  47. package/types/modules/share/types.d.ts +2 -4
  48. package/types/skill-metadata.d.ts +0 -4
  49. package/dist/cli-chunks/doctor-EsCYJGhV.cjs +0 -204
  50. package/dist/devtools/browser-dev-host/assets/workbench-state-D-1U0JRq.js +0 -5
  51. package/dist/templates/vue3-vite-ts/README.md.ejs +0 -47
  52. package/dist/templates/vue3-vite-ts/index.html.ejs +0 -12
  53. package/dist/templates/vue3-vite-ts/package.json.ejs +0 -33
  54. package/dist/templates/vue3-vite-ts/src/App.vue +0 -78
  55. package/dist/templates/vue3-vite-ts/src/__tests__/App.spec.ts +0 -148
  56. package/dist/templates/vue3-vite-ts/src/auth-handoff.ts +0 -46
  57. package/dist/templates/vue3-vite-ts/src/main.ts +0 -5
  58. package/dist/templates/vue3-vite-ts/src/styles.css +0 -60
  59. package/dist/templates/vue3-vite-ts/src/vite-env.d.ts +0 -1
  60. package/dist/templates/vue3-vite-ts/tsconfig.app.json +0 -17
  61. package/dist/templates/vue3-vite-ts/tsconfig.json +0 -11
  62. package/dist/templates/vue3-vite-ts/tsconfig.node.json +0 -11
  63. package/dist/templates/vue3-vite-ts/vitest.config.ts +0 -10
  64. package/skill/scripts/check-references.mjs +0 -14
  65. package/skill/scripts/markdown-sections.mjs +0 -36
  66. package/skill/scripts/package-skill.mjs +0 -60
  67. package/skill/scripts/package-skill.sh +0 -6
  68. package/skill/scripts/skill-metadata.mjs +0 -77
  69. package/skill/scripts/sync-agent-skills-payload.mjs +0 -359
  70. package/skill/scripts/sync-references.mjs +0 -826
  71. package/skill/scripts/validate-skill.mjs +0 -263
@@ -0,0 +1,5 @@
1
+ function nn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const q={},ut=[],He=()=>{},zn=()=>!1,rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),on=e=>e.startsWith("onUpdate:"),ue=Object.assign,ln=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},xi=Object.prototype.hasOwnProperty,$=(e,t)=>xi.call(e,t),F=Array.isArray,at=e=>Vt(e)==="[object Map]",Qn=e=>Vt(e)==="[object Set]",En=e=>Vt(e)==="[object Date]",L=e=>typeof e=="function",re=e=>typeof e=="string",Te=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",Xn=e=>(W(e)||L(e))&&L(e.then)&&L(e.catch),Zn=Object.prototype.toString,Vt=e=>Zn.call(e),wi=e=>Vt(e).slice(8,-1),er=e=>Vt(e)==="[object Object]",cs=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ct=nn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),us=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ti=/-\w/g,je=us(e=>e.replace(Ti,t=>t.slice(1).toUpperCase())),Si=/\B([A-Z])/g,Bt=us(e=>e.replace(Si,"-$1").toLowerCase()),fn=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qt=us(e=>e?`on${fn(e)}`:""),Ce=(e,t)=>!Object.is(e,t),Rs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},tr=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ci=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$l=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let An;const as=()=>An||(An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hs(e){if(F(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=re(n)?Ri(n):hs(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(re(e)||W(e))return e}const Ei=/;(?![^(]*\))/g,Ai=/:([^]+)/,Pi=/\/\*[^]*?\*\//g;function Ri(e){const t={};return e.replace(Pi,"").split(Ei).forEach(s=>{if(s){const n=s.split(Ai);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ds(e){let t="";if(re(e))t=e;else if(F(e))for(let s=0;s<e.length;s++){const n=ds(e[s]);n&&(t+=n+" ")}else if(W(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function Wl(e){if(!e)return null;let{class:t,style:s}=e;return t&&!re(t)&&(e.class=ds(t)),s&&(e.style=hs(s)),e}const Oi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ul=nn(Oi);function Kl(e){return!!e||e===""}function Ii(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=cn(e[n],t[n]);return s}function cn(e,t){if(e===t)return!0;let s=En(e),n=En(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Te(e),n=Te(t),s||n)return e===t;if(s=F(e),n=F(t),s||n)return s&&n?Ii(e,t):!1;if(s=W(e),n=W(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!cn(e[o],t[o]))return!1}}return String(e)===String(t)}const sr=e=>!!(e&&e.__v_isRef===!0),Fi=e=>re(e)?e:e==null?"":F(e)||W(e)&&(e.toString===Zn||!L(e.toString))?sr(e)?Fi(e.value):JSON.stringify(e,nr,2):String(e),nr=(e,t)=>sr(t)?nr(e,t.value):at(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Os(n,i)+" =>"]=r,s),{})}:Qn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Os(s))}:Te(t)?Os(t):W(t)&&!F(t)&&!er(t)?String(t):t,Os=(e,t="")=>{var s;return Te(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let se;class rr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&se&&(se.active?(this.parent=se,this.index=(se.scopes||(se.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=se;try{return se=this,t()}finally{se=s}}}on(){++this._on===1&&(this.prevScope=se,se=this)}off(){if(this._on>0&&--this._on===0){if(se===this)se=this.prevScope;else{let t=se;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ql(e){return new rr(e)}function Mi(){return se}function Gl(e,t=!1){se&&se.cleanups.push(e)}let z;const Is=new WeakSet;class ir{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,se&&(se.active?se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Is.has(this)&&(Is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pn(this),fr(this);const t=z,s=Ee;z=this,Ee=!0;try{return this.fn()}finally{cr(this),z=t,Ee=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)hn(t);this.deps=this.depsTail=void 0,Pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let or=0,Et,At;function lr(e,t=!1){if(e.flags|=8,t){e.next=At,At=e;return}e.next=Et,Et=e}function un(){or++}function an(){if(--or>0)return;if(At){let t=At;for(At=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function fr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),hn(n),Li(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ur(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ur(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ft)||(e.globalVersion=Ft,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bs(e))))return;e.flags|=2;const t=e.dep,s=z,n=Ee;z=e,Ee=!0;try{fr(e);const r=e.fn(e._value);(t.version===0||Ce(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{z=s,Ee=n,cr(e),e.flags&=-3}}function hn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)hn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ee=!0;const ar=[];function Ue(){ar.push(Ee),Ee=!1}function Ke(){const e=ar.pop();Ee=e===void 0?!0:e}function Pn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=z;z=void 0;try{t()}finally{z=s}}}let Ft=0;class ki{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ps{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!z||!Ee||z===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==z)s=this.activeLink=new ki(z,this),z.deps?(s.prevDep=z.depsTail,z.depsTail.nextDep=s,z.depsTail=s):z.deps=z.depsTail=s,hr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=z.depsTail,s.nextDep=void 0,z.depsTail.nextDep=s,z.depsTail=s,z.deps===s&&(z.deps=n)}return s}trigger(t){this.version++,Ft++,this.notify(t)}notify(t){un();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{an()}}}function hr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)hr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ts=new WeakMap,ot=Symbol(""),$s=Symbol(""),Mt=Symbol("");function le(e,t,s){if(Ee&&z){let n=ts.get(e);n||ts.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new ps),r.map=n,r.key=s),r.track()}}function $e(e,t,s,n,r,i){const o=ts.get(e);if(!o){Ft++;return}const l=c=>{c&&c.trigger()};if(un(),t==="clear")o.forEach(l);else{const c=F(e),h=c&&cs(s);if(c&&s==="length"){const u=Number(n);o.forEach((d,v)=>{(v==="length"||v===Mt||!Te(v)&&v>=u)&&l(d)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),h&&l(o.get(Mt)),t){case"add":c?h&&l(o.get("length")):(l(o.get(ot)),at(e)&&l(o.get($s)));break;case"delete":c||(l(o.get(ot)),at(e)&&l(o.get($s)));break;case"set":at(e)&&l(o.get(ot));break}}an()}function Di(e,t){const s=ts.get(e);return s&&s.get(t)}function ft(e){const t=N(e);return t===e?t:(le(t,"iterate",Mt),ve(e)?t:t.map(Ae))}function gs(e){return le(e=N(e),"iterate",Mt),e}function ke(e,t){return qe(e)?gt(lt(e)?Ae(t):t):Ae(t)}const Hi={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>ke(this,e))},concat(...e){return ft(this).concat(...e.map(t=>F(t)?ft(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=ke(this,e[1]),e))},every(e,t){return Ve(this,"every",e,t,void 0,arguments)},filter(e,t){return Ve(this,"filter",e,t,s=>s.map(n=>ke(this,n)),arguments)},find(e,t){return Ve(this,"find",e,t,s=>ke(this,s),arguments)},findIndex(e,t){return Ve(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ve(this,"findLast",e,t,s=>ke(this,s),arguments)},findLastIndex(e,t){return Ve(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ve(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ms(this,"includes",e)},indexOf(...e){return Ms(this,"indexOf",e)},join(e){return ft(this).join(e)},lastIndexOf(...e){return Ms(this,"lastIndexOf",e)},map(e,t){return Ve(this,"map",e,t,void 0,arguments)},pop(){return xt(this,"pop")},push(...e){return xt(this,"push",e)},reduce(e,...t){return Rn(this,"reduce",e,t)},reduceRight(e,...t){return Rn(this,"reduceRight",e,t)},shift(){return xt(this,"shift")},some(e,t){return Ve(this,"some",e,t,void 0,arguments)},splice(...e){return xt(this,"splice",e)},toReversed(){return ft(this).toReversed()},toSorted(e){return ft(this).toSorted(e)},toSpliced(...e){return ft(this).toSpliced(...e)},unshift(...e){return xt(this,"unshift",e)},values(){return Fs(this,"values",e=>ke(this,e))}};function Fs(e,t,s){const n=gs(e),r=n[t]();return n!==e&&!ve(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ji=Array.prototype;function Ve(e,t,s,n,r,i){const o=gs(e),l=o!==e&&!ve(e),c=o[t];if(c!==ji[t]){const d=c.apply(e,i);return l?Ae(d):d}let h=s;o!==e&&(l?h=function(d,v){return s.call(this,ke(e,d),v,e)}:s.length>2&&(h=function(d,v){return s.call(this,d,v,e)}));const u=c.call(o,h,n);return l&&r?r(u):u}function Rn(e,t,s,n){const r=gs(e),i=r!==e&&!ve(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(h,u,d){return l&&(l=!1,h=ke(e,h)),s.call(this,h,ke(e,u),d,e)}):s.length>3&&(o=function(h,u,d){return s.call(this,h,u,d,e)}));const c=r[t](o,...n);return l?ke(e,c):c}function Ms(e,t,s){const n=N(e);le(n,"iterate",Mt);const r=n[t](...s);return(r===-1||r===!1)&&ys(s[0])?(s[0]=N(s[0]),n[t](...s)):r}function xt(e,t,s=[]){Ue(),un();const n=N(e)[t].apply(e,s);return an(),Ke(),n}const Ni=nn("__proto__,__v_isRef,__isVue"),dr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Te));function Vi(e){Te(e)||(e=String(e));const t=N(this);return le(t,"has",e),t.hasOwnProperty(e)}class pr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?vr:yr:i?br:mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=F(t);if(!r){let c;if(o&&(c=Hi[s]))return c;if(s==="hasOwnProperty")return Vi}const l=Reflect.get(t,s,ne(t)?t:n);if((Te(s)?dr.has(s):Ni(s))||(r||le(t,"get",s),i))return l;if(ne(l)){const c=o&&cs(s)?l:l.value;return r&&W(c)?Us(c):c}return W(l)?r?Us(l):ms(l):l}}class gr extends pr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=F(t)&&cs(s);if(!this._isShallow){const h=qe(i);if(!ve(n)&&!qe(n)&&(i=N(i),n=N(n)),!o&&ne(i)&&!ne(n))return h||(i.value=n),!0}const l=o?Number(s)<t.length:$(t,s),c=Reflect.set(t,s,n,ne(t)?t:r);return t===N(r)&&(l?Ce(n,i)&&$e(t,"set",s,n):$e(t,"add",s,n)),c}deleteProperty(t,s){const n=$(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&$e(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Te(s)||!dr.has(s))&&le(t,"has",s),n}ownKeys(t){return le(t,"iterate",F(t)?"length":ot),Reflect.ownKeys(t)}}class _r extends pr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Bi=new gr,$i=new _r,Wi=new gr(!0),Ui=new _r(!0),Ws=e=>e,Gt=e=>Reflect.getPrototypeOf(e);function Ki(e,t,s){return function(...n){const r=this.__v_raw,i=N(r),o=at(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=r[e](...n),u=s?Ws:t?gt:Ae;return!t&&le(i,"iterate",c?$s:ot),ue(Object.create(h),{next(){const{value:d,done:v}=h.next();return v?{value:d,done:v}:{value:l?[u(d[0]),u(d[1])]:u(d),done:v}}})}}function Jt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function qi(e,t){const s={get(r){const i=this.__v_raw,o=N(i),l=N(r);e||(Ce(r,l)&&le(o,"get",r),le(o,"get",l));const{has:c}=Gt(o),h=t?Ws:e?gt:Ae;if(c.call(o,r))return h(i.get(r));if(c.call(o,l))return h(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&le(N(r),"iterate",ot),r.size},has(r){const i=this.__v_raw,o=N(i),l=N(r);return e||(Ce(r,l)&&le(o,"has",r),le(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=N(l),h=t?Ws:e?gt:Ae;return!e&&le(c,"iterate",ot),l.forEach((u,d)=>r.call(i,h(u),h(d),o))}};return ue(s,e?{add:Jt("add"),set:Jt("set"),delete:Jt("delete"),clear:Jt("clear")}:{add(r){const i=N(this),o=Gt(i),l=N(r),c=!t&&!ve(r)&&!qe(r)?l:r;return o.has.call(i,c)||Ce(r,c)&&o.has.call(i,r)||Ce(l,c)&&o.has.call(i,l)||(i.add(c),$e(i,"add",c,c)),this},set(r,i){!t&&!ve(i)&&!qe(i)&&(i=N(i));const o=N(this),{has:l,get:c}=Gt(o);let h=l.call(o,r);h||(r=N(r),h=l.call(o,r));const u=c.call(o,r);return o.set(r,i),h?Ce(i,u)&&$e(o,"set",r,i):$e(o,"add",r,i),this},delete(r){const i=N(this),{has:o,get:l}=Gt(i);let c=o.call(i,r);c||(r=N(r),c=o.call(i,r)),l&&l.call(i,r);const h=i.delete(r);return c&&$e(i,"delete",r,void 0),h},clear(){const r=N(this),i=r.size!==0,o=r.clear();return i&&$e(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ki(r,e,t)}),s}function _s(e,t){const s=qi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get($(s,r)&&r in n?s:n,r,i)}const Gi={get:_s(!1,!1)},Ji={get:_s(!1,!0)},Yi={get:_s(!0,!1)},zi={get:_s(!0,!0)},mr=new WeakMap,br=new WeakMap,yr=new WeakMap,vr=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(wi(e))}function ms(e){return qe(e)?e:bs(e,!1,Bi,Gi,mr)}function Zi(e){return bs(e,!1,Wi,Ji,br)}function Us(e){return bs(e,!0,$i,Yi,yr)}function Jl(e){return bs(e,!0,Ui,zi,vr)}function bs(e,t,s,n,r){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Xi(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?n:s);return r.set(e,l),l}function lt(e){return qe(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function qe(e){return!!(e&&e.__v_isReadonly)}function ve(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function eo(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&tr(e,"__v_skip",!0),e}const Ae=e=>W(e)?ms(e):e,gt=e=>W(e)?Us(e):e;function ne(e){return e?e.__v_isRef===!0:!1}function to(e){return xr(e,!1)}function Yl(e){return xr(e,!0)}function xr(e,t){return ne(e)?e:new so(e,t)}class so{constructor(t,s){this.dep=new ps,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:N(t),this._value=s?t:Ae(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ve(t)||qe(t);t=n?t:N(t),Ce(t,s)&&(this._rawValue=t,this._value=n?t:Ae(t),this.dep.trigger())}}function zl(e){e.dep&&e.dep.trigger()}function dn(e){return ne(e)?e.value:e}function Ql(e){return L(e)?e():dn(e)}const no={get:(e,t,s)=>t==="__v_raw"?e:dn(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ne(r)&&!ne(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function wr(e){return lt(e)?e:new Proxy(e,no)}class ro{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new ps,{get:n,set:r}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xl(e){return new ro(e)}function Zl(e){const t=F(e)?new Array(e.length):{};for(const s in e)t[s]=Tr(e,s);return t}class io{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Te(s)?s:String(s),this._raw=N(t);let r=!0,i=t;if(!F(t)||Te(this._key)||!cs(this._key))do r=!ys(i)||ve(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=dn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ne(this._raw[this._key])){const s=this._object[this._key];if(ne(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return Di(this._raw,this._key)}}class oo{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ef(e,t,s){return ne(e)?e:L(e)?new oo(e):W(e)&&arguments.length>1?Tr(e,t,s):to(e)}function Tr(e,t,s){return new io(e,t,s)}class lo{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ps(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ft-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return lr(this,!0),!0}get value(){const t=this.dep.track();return ur(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fo(e,t,s=!1){let n,r;return L(e)?n=e:(n=e.get,r=e.set),new lo(n,r,s)}const Yt={},ss=new WeakMap;let st;function co(e,t=!1,s=st){if(s){let n=ss.get(s);n||ss.set(s,n=[]),n.push(e)}}function uo(e,t,s=q){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=s,h=A=>r?A:ve(A)||r===!1||r===0?We(A,1):We(A);let u,d,v,T,O=!1,C=!1;if(ne(e)?(d=()=>e.value,O=ve(e)):lt(e)?(d=()=>h(e),O=!0):F(e)?(C=!0,O=e.some(A=>lt(A)||ve(A)),d=()=>e.map(A=>{if(ne(A))return A.value;if(lt(A))return h(A);if(L(A))return c?c(A,2):A()})):L(e)?t?d=c?()=>c(e,2):e:d=()=>{if(v){Ue();try{v()}finally{Ke()}}const A=st;st=u;try{return c?c(e,3,[T]):e(T)}finally{st=A}}:d=He,t&&r){const A=d,U=r===!0?1/0:r;d=()=>We(A(),U)}const D=Mi(),H=()=>{u.stop(),D&&D.active&&ln(D.effects,u)};if(i&&t){const A=t;t=(...U)=>{A(...U),H()}}let I=C?new Array(e.length).fill(Yt):Yt;const V=A=>{if(!(!(u.flags&1)||!u.dirty&&!A))if(t){const U=u.run();if(r||O||(C?U.some((te,k)=>Ce(te,I[k])):Ce(U,I))){v&&v();const te=st;st=u;try{const k=[U,I===Yt?void 0:C&&I[0]===Yt?[]:I,T];I=U,c?c(t,3,k):t(...k)}finally{st=te}}}else u.run()};return l&&l(V),u=new ir(d),u.scheduler=o?()=>o(V,!1):V,T=A=>co(A,!1,u),v=u.onStop=()=>{const A=ss.get(u);if(A){if(c)c(A,4);else for(const U of A)U();ss.delete(u)}},t?n?V(!0):I=u.run():o?o(V.bind(null,!0),!0):u.run(),H.pause=u.pause.bind(u),H.resume=u.resume.bind(u),H.stop=H,H}function We(e,t=1/0,s){if(t<=0||!W(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ne(e))We(e.value,t,s);else if(F(e))for(let n=0;n<e.length;n++)We(e[n],t,s);else if(Qn(e)||at(e))e.forEach(n=>{We(n,t,s)});else if(er(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}function $t(e,t,s,n){try{return n?e(...n):e()}catch(r){vs(r,t,s)}}function Ne(e,t,s,n){if(L(e)){const r=$t(e,t,s,n);return r&&Xn(r)&&r.catch(i=>{vs(i,t,s)}),r}if(F(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ne(e[i],t,s,n));return r}}function vs(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||q;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,c,h)===!1)return}l=l.parent}if(i){Ue(),$t(i,null,10,[e,c,h]),Ke();return}}ao(e,s,r,n,o)}function ao(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ge=[];let Me=-1;const ht=[];let Ye=null,ct=0;const Sr=Promise.resolve();let ns=null;function ho(e){const t=ns||Sr;return e?t.then(this?e.bind(this):e):t}function po(e){let t=Me+1,s=ge.length;for(;t<s;){const n=t+s>>>1,r=ge[n],i=Lt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function pn(e){if(!(e.flags&1)){const t=Lt(e),s=ge[ge.length-1];!s||!(e.flags&2)&&t>=Lt(s)?ge.push(e):ge.splice(po(t),0,e),e.flags|=1,Cr()}}function Cr(){ns||(ns=Sr.then(Ar))}function go(e){F(e)?ht.push(...e):Ye&&e.id===-1?Ye.splice(ct+1,0,e):e.flags&1||(ht.push(e),e.flags|=1),Cr()}function On(e,t,s=Me+1){for(;s<ge.length;s++){const n=ge[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ge.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Er(e){if(ht.length){const t=[...new Set(ht)].sort((s,n)=>Lt(s)-Lt(n));if(ht.length=0,Ye){Ye.push(...t);return}for(Ye=t,ct=0;ct<Ye.length;ct++){const s=Ye[ct];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ye=null,ct=0}}const Lt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ar(e){try{for(Me=0;Me<ge.length;Me++){const t=ge[Me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$t(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Me<ge.length;Me++){const t=ge[Me];t&&(t.flags&=-2)}Me=-1,ge.length=0,Er(),ns=null,(ge.length||ht.length)&&Ar()}}let oe=null,Pr=null;function rs(e){const t=oe;return oe=e,Pr=e&&e.type.__scopeId||null,t}function _o(e,t=oe,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&ls(-1);const i=rs(t);let o;try{o=e(...r)}finally{rs(i),n._d&&ls(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function tf(e,t){if(oe===null)return e;const s=As(oe),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=q]=t[r];i&&(L(i)&&(i={mounted:i,updated:i}),i.deep&&We(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[n];c&&(Ue(),Ne(c,s,8,[e.el,l,e,t]),Ke())}}function mo(e,t){if(ce){let s=ce.provides;const n=ce.parent&&ce.parent.provides;n===s&&(s=ce.provides=Object.create(n)),s[e]=t}}function Xt(e,t,s=!1){const n=Es();if(n||pt){let r=pt?pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&L(t)?t.call(n&&n.proxy):t}}const bo=Symbol.for("v-scx"),yo=()=>Xt(bo);function sf(e,t){return xs(e,null,t)}function nf(e,t){return xs(e,null,{flush:"post"})}function Ls(e,t,s){return xs(e,t,s)}function xs(e,t,s=q){const{immediate:n,deep:r,flush:i,once:o}=s,l=ue({},s),c=t&&n||!t&&i!=="post";let h;if(Ht){if(i==="sync"){const T=yo();h=T.__watcherHandles||(T.__watcherHandles=[])}else if(!c){const T=()=>{};return T.stop=He,T.resume=He,T.pause=He,T}}const u=ce;l.call=(T,O,C)=>Ne(T,u,O,C);let d=!1;i==="post"?l.scheduler=T=>{pe(T,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(T,O)=>{O?T():pn(T)}),l.augmentJob=T=>{t&&(T.flags|=4),d&&(T.flags|=2,u&&(T.id=u.uid,T.i=u))};const v=uo(e,t,l);return Ht&&(h?h.push(v):c&&v()),v}function vo(e,t,s){const n=this.proxy,r=re(e)?e.includes(".")?Rr(n,e):()=>n[e]:e.bind(n,n);let i;L(t)?i=t:(i=t.handler,s=t);const o=Wt(this),l=xs(r,i.bind(n),s);return o(),l}function Rr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Je=new WeakMap,Or=Symbol("_vte"),Ir=e=>e.__isTeleport,nt=e=>e&&(e.disabled||e.disabled===""),xo=e=>e&&(e.defer||e.defer===""),In=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fn=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ks=(e,t)=>{const s=e&&e.to;return re(s)?t?t(s):null:s},wo={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,i,o,l,c,h){const{mc:u,pc:d,pbc:v,o:{insert:T,querySelector:O,createText:C,createComment:D,parentNode:H}}=h,I=nt(t.props);let{dynamicChildren:V}=t;const A=(k,G,P)=>{k.shapeFlag&16&&u(k.children,G,P,r,i,o,l,c)},U=(k=t)=>{const G=nt(k.props),P=k.target=Ks(k.props,O),B=qs(P,k,C,T);P&&(o!=="svg"&&In(P)?o="svg":o!=="mathml"&&Fn(P)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(P),G||(A(k,P,B),Tt(k,!1)))},te=k=>{const G=()=>{if(Je.get(k)===G){if(Je.delete(k),nt(k.props)){const P=H(k.el)||s;A(k,P,k.anchor),Tt(k,!0)}U(k)}};Je.set(k,G),pe(G,i)};if(e==null){const k=t.el=C(""),G=t.anchor=C("");if(T(k,s,n),T(G,s,n),xo(t.props)||i&&i.pendingBranch){te(t);return}I&&(A(t,s,G),Tt(t,!0)),U()}else{t.el=e.el;const k=t.anchor=e.anchor,G=Je.get(e);if(G){G.flags|=8,Je.delete(e),te(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,B=t.targetAnchor=e.targetAnchor,Q=nt(e.props),ae=Q?s:P,xe=Q?k:B;if(o==="svg"||In(P)?o="svg":(o==="mathml"||Fn(P))&&(o="mathml"),V?(v(e.dynamicChildren,V,ae,r,i,o,l),mn(e,t,!0)):c||d(e,t,ae,xe,r,i,o,l,!1),I)Q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):zt(t,s,k,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Se=t.target=Ks(t.props,O);Se&&zt(t,Se,null,h,0)}else Q&&zt(t,P,B,h,1);Tt(t,I)}},remove(e,t,s,{um:n,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:h,targetAnchor:u,target:d,props:v}=e;let T=i||!nt(v);const O=Je.get(e);if(O&&(O.flags|=8,Je.delete(e),T=!1),d&&(r(h),r(u)),i&&r(c),o&16)for(let C=0;C<l.length;C++){const D=l[C];n(D,t,s,T,!!D.dynamicChildren)}},move:zt,hydrate:To};function zt(e,t,s,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:c,children:h,props:u}=e,d=i===2;if(d&&n(o,t,s),!Je.has(e)&&(!d||nt(u))&&c&16)for(let v=0;v<h.length;v++)r(h[v],t,s,2);d&&n(l,t,s)}function To(e,t,s,n,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:h,createText:u}},d){function v(D,H){let I=H;for(;I;){if(I&&I.nodeType===8){if(I.data==="teleport start anchor")t.targetStart=I;else if(I.data==="teleport anchor"){t.targetAnchor=I,D._lpa=t.targetAnchor&&o(t.targetAnchor);break}}I=o(I)}}function T(D,H){H.anchor=d(o(D),H,l(D),s,n,r,i)}const O=t.target=Ks(t.props,c),C=nt(t.props);if(O){const D=O._lpa||O.firstChild;t.shapeFlag&16&&(C?(T(e,t),v(O,D),t.targetAnchor||qs(O,t,u,h,l(e)===O?e:null)):(t.anchor=o(e),v(O,D),t.targetAnchor||qs(O,t,u,h),d(D&&o(D),t,O,s,n,r,i))),Tt(t,C)}else C&&t.shapeFlag&16&&(T(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const rf=wo;function Tt(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function qs(e,t,s,n,r=null){const i=t.targetStart=s(""),o=t.targetAnchor=s("");return i[Or]=o,e&&(n(i,e,r),n(o,e,r)),o}const Le=Symbol("_leaveCb"),wt=Symbol("_enterCb");function So(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jr(()=>{e.isMounted=!0}),Nr(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],Co={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Fr=e=>{const t=e.subTree;return t.component?Fr(t.component):t},Eo={name:"BaseTransition",props:Co,setup(e,{slots:t}){const s=Es(),n=So();return()=>{const r=t.default&&kr(t.default(),!0),i=r&&r.length?Mr(r):s.subTree?pl():void 0;if(!i)return;const o=N(e),{mode:l}=o;if(n.isLeaving)return ks(i);const c=Mn(i);if(!c)return ks(i);let h=Gs(c,o,n,s,d=>h=d);c.type!==fe&&kt(c,h);let u=s.subTree&&Mn(s.subTree);if(u&&u.type!==fe&&!rt(u,c)&&Fr(s).type!==fe){let d=Gs(u,o,n,s);if(kt(u,d),l==="out-in"&&c.type!==fe)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,u=void 0},ks(i);l==="in-out"&&c.type!==fe?d.delayLeave=(v,T,O)=>{const C=Lr(n,u);C[String(u.key)]=u,v[Le]=()=>{T(),v[Le]=void 0,delete h.delayedLeave,u=void 0},h.delayedLeave=()=>{O(),delete h.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Mr(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==fe){t=s;break}}return t}const of=Eo;function Lr(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Gs(e,t,s,n,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:v,onLeave:T,onAfterLeave:O,onLeaveCancelled:C,onBeforeAppear:D,onAppear:H,onAfterAppear:I,onAppearCancelled:V}=t,A=String(e.key),U=Lr(s,e),te=(P,B)=>{P&&Ne(P,n,9,B)},k=(P,B)=>{const Q=B[1];te(P,B),F(P)?P.every(ae=>ae.length<=1)&&Q():P.length<=1&&Q()},G={mode:o,persisted:l,beforeEnter(P){let B=c;if(!s.isMounted)if(i)B=D||c;else return;P[Le]&&P[Le](!0);const Q=U[A];Q&&rt(e,Q)&&Q.el[Le]&&Q.el[Le](),te(B,[P])},enter(P){if(U[A]===e)return;let B=h,Q=u,ae=d;if(!s.isMounted)if(i)B=H||h,Q=I||u,ae=V||d;else return;let xe=!1;P[wt]=Ut=>{xe||(xe=!0,Ut?te(ae,[P]):te(Q,[P]),G.delayedLeave&&G.delayedLeave(),P[wt]=void 0)};const Se=P[wt].bind(null,!1);B?k(B,[P,Se]):Se()},leave(P,B){const Q=String(e.key);if(P[wt]&&P[wt](!0),s.isUnmounting)return B();te(v,[P]);let ae=!1;P[Le]=Se=>{ae||(ae=!0,B(),Se?te(C,[P]):te(O,[P]),P[Le]=void 0,U[Q]===e&&delete U[Q])};const xe=P[Le].bind(null,!1);U[Q]=e,T?k(T,[P,xe]):xe()},clone(P){const B=Gs(P,t,s,n,r);return r&&r(B),B}};return G}function ks(e){if(ws(e))return e=Qe(e),e.children=null,e}function Mn(e){if(!ws(e))return Ir(e.type)&&e.children?Mr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function kt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function kr(e,t=!1,s){let n=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=s==null?o.key:String(s)+String(o.key!=null?o.key:i);o.type===ye?(o.patchFlag&128&&r++,n=n.concat(kr(o.children,t,l))):(t||o.type!==fe)&&n.push(l!=null?Qe(o,{key:l}):o)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function lf(e,t){return L(e)?ue({name:e.name},t,{setup:e}):e}function ff(){const e=Es();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Dr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ln(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const is=new WeakMap;function Pt(e,t,s,n,r=!1){if(F(e)){e.forEach((C,D)=>Pt(C,t&&(F(t)?t[D]:t),s,n,r));return}if(dt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?As(n.component):n.el,o=r?null:i,{i:l,r:c}=e,h=t&&t.r,u=l.refs===q?l.refs={}:l.refs,d=l.setupState,v=N(d),T=d===q?zn:C=>Ln(u,C)?!1:$(v,C),O=(C,D)=>!(D&&Ln(u,D));if(h!=null&&h!==c){if(kn(t),re(h))u[h]=null,T(h)&&(d[h]=null);else if(ne(h)){const C=t;O(h,C.k)&&(h.value=null),C.k&&(u[C.k]=null)}}if(L(c))$t(c,l,12,[o,u]);else{const C=re(c),D=ne(c);if(C||D){const H=()=>{if(e.f){const I=C?T(c)?d[c]:u[c]:O()||!e.k?c.value:u[e.k];if(r)F(I)&&ln(I,i);else if(F(I))I.includes(i)||I.push(i);else if(C)u[c]=[i],T(c)&&(d[c]=u[c]);else{const V=[i];O(c,e.k)&&(c.value=V),e.k&&(u[e.k]=V)}}else C?(u[c]=o,T(c)&&(d[c]=o)):D&&(O(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){const I=()=>{H(),is.delete(e)};I.id=-1,is.set(e,I),pe(I,s)}else kn(e),H()}}}function kn(e){const t=is.get(e);t&&(t.flags|=8,is.delete(e))}as().requestIdleCallback;as().cancelIdleCallback;const dt=e=>!!e.type.__asyncLoader,ws=e=>e.type.__isKeepAlive;function Ao(e,t){Hr(e,"a",t)}function Po(e,t){Hr(e,"da",t)}function Hr(e,t,s=ce){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ts(t,n,s),s){let r=s.parent;for(;r&&r.parent;)ws(r.parent.vnode)&&Ro(n,t,s,r),r=r.parent}}function Ro(e,t,s,n){const r=Ts(t,e,n,!0);Vr(()=>{ln(n[t],r)},s)}function Ts(e,t,s=ce,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ue();const l=Wt(s),c=Ne(t,s,e,o);return l(),Ke(),c});return n?r.unshift(i):r.push(i),i}}const Ge=e=>(t,s=ce)=>{(!Ht||e==="sp")&&Ts(e,(...n)=>t(...n),s)},Oo=Ge("bm"),jr=Ge("m"),Io=Ge("bu"),Fo=Ge("u"),Nr=Ge("bum"),Vr=Ge("um"),Mo=Ge("sp"),Lo=Ge("rtg"),ko=Ge("rtc");function Do(e,t=ce){Ts("ec",e,t)}const Ho="components",Br=Symbol.for("v-ndc");function cf(e){return re(e)?jo(Ho,e,!1)||e:e||Br}function jo(e,t,s=!0,n=!1){const r=oe||ce;if(r){const i=r.type;{const l=wl(i,!1);if(l&&(l===t||l===je(t)||l===fn(je(t))))return i}const o=Dn(r[e]||i[e],t)||Dn(r.appContext[e],t);return!o&&n?i:o}}function Dn(e,t){return e&&(e[t]||e[je(t)]||e[fn(je(t))])}function uf(e,t,s,n){let r;const i=s,o=F(e);if(o||re(e)){const l=o&&lt(e);let c=!1,h=!1;l&&(c=!ve(e),h=qe(e),e=gs(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(c?h?gt(Ae(e[u])):Ae(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(W(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];r[c]=t(e[u],u,c,i)}}else r=[];return r}function af(e,t,s={},n,r){if(oe.ce||oe.parent&&dt(oe.parent)&&oe.parent.ce){const h=Object.keys(s).length>0;return Zs(),en(ye,null,[me("slot",s,n&&n())],h?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Zs();const o=i&&$r(i(s)),l=s.key||o&&o.key,c=en(ye,{key:(l&&!Te(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function $r(e){return e.some(t=>Dt(t)?!(t.type===fe||t.type===ye&&!$r(t.children)):!0)?e:null}function hf(e,t){const s={};for(const n in e)s[Qt(n)]=e[n];return s}const Js=e=>e?ci(e)?As(e):Js(e.parent):null,Rt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Js(e.parent),$root:e=>Js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Kr(e),$forceUpdate:e=>e.f||(e.f=()=>{pn(e.update)}),$nextTick:e=>e.n||(e.n=ho.bind(e.proxy)),$watch:e=>vo.bind(e)}),Ds=(e,t)=>e!==q&&!e.__isScriptSetup&&$(e,t),No={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Ds(n,t))return o[t]=1,n[t];if(r!==q&&$(r,t))return o[t]=2,r[t];if($(i,t))return o[t]=3,i[t];if(s!==q&&$(s,t))return o[t]=4,s[t];zs&&(o[t]=0)}}const h=Rt[t];let u,d;if(h)return t==="$attrs"&&le(e.attrs,"get",""),h(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==q&&$(s,t))return o[t]=4,s[t];if(d=c.config.globalProperties,$(d,t))return d[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Ds(r,t)?(r[t]=s,!0):n!==q&&$(n,t)?(n[t]=s,!0):$(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let c;return!!(s[l]||e!==q&&l[0]!=="$"&&$(e,l)||Ds(t,l)||$(i,l)||$(n,l)||$(Rt,l)||$(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:$(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function df(){return Wr().slots}function pf(){return Wr().attrs}function Wr(e){const t=Es();return t.setupContext||(t.setupContext=ai(t))}function Ys(e){return F(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function gf(e,t){const s=Ys(e);for(const n in t){if(n.startsWith("__skip"))continue;let r=s[n];r?F(r)||L(r)?r=s[n]={type:r,default:t[n]}:r.default=t[n]:r===null&&(r=s[n]={default:t[n]}),r&&t[`__skip_${n}`]&&(r.skipFactory=!0)}return s}let zs=!0;function Vo(e){const t=Kr(e),s=e.proxy,n=e.ctx;zs=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:h,created:u,beforeMount:d,mounted:v,beforeUpdate:T,updated:O,activated:C,deactivated:D,beforeDestroy:H,beforeUnmount:I,destroyed:V,unmounted:A,render:U,renderTracked:te,renderTriggered:k,errorCaptured:G,serverPrefetch:P,expose:B,inheritAttrs:Q,components:ae,directives:xe,filters:Se}=t;if(h&&Bo(h,n,null),o)for(const X in o){const J=o[X];L(J)&&(n[X]=J.bind(s))}if(r){const X=r.call(s,s);W(X)&&(e.data=ms(X))}if(zs=!0,i)for(const X in i){const J=i[X],Xe=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):He,Kt=!L(J)&&L(J.set)?J.set.bind(s):He,Ze=mt({get:Xe,set:Kt});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:Pe=>Ze.value=Pe})}if(l)for(const X in l)Ur(l[X],n,s,X);if(c){const X=L(c)?c.call(s):c;Reflect.ownKeys(X).forEach(J=>{mo(J,X[J])})}u&&Hn(u,e,"c");function he(X,J){F(J)?J.forEach(Xe=>X(Xe.bind(s))):J&&X(J.bind(s))}if(he(Oo,d),he(jr,v),he(Io,T),he(Fo,O),he(Ao,C),he(Po,D),he(Do,G),he(ko,te),he(Lo,k),he(Nr,I),he(Vr,A),he(Mo,P),F(B))if(B.length){const X=e.exposed||(e.exposed={});B.forEach(J=>{Object.defineProperty(X,J,{get:()=>s[J],set:Xe=>s[J]=Xe,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===He&&(e.render=U),Q!=null&&(e.inheritAttrs=Q),ae&&(e.components=ae),xe&&(e.directives=xe),P&&Dr(e)}function Bo(e,t,s=He){F(e)&&(e=Qs(e));for(const n in e){const r=e[n];let i;W(r)?"default"in r?i=Xt(r.from||n,r.default,!0):i=Xt(r.from||n):i=Xt(r),ne(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Hn(e,t,s){Ne(F(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ur(e,t,s,n){let r=n.includes(".")?Rr(s,n):()=>s[n];if(re(e)){const i=t[e];L(i)&&Ls(r,i)}else if(L(e))Ls(r,e.bind(s));else if(W(e))if(F(e))e.forEach(i=>Ur(i,t,s,n));else{const i=L(e.handler)?e.handler.bind(s):t[e.handler];L(i)&&Ls(r,i,e)}}function Kr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(h=>os(c,h,o,!0)),os(c,t,o)),W(t)&&i.set(t,c),c}function os(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&os(e,i,s,!0),r&&r.forEach(o=>os(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=$o[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const $o={data:jn,props:Nn,emits:Nn,methods:St,computed:St,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:St,directives:St,watch:Uo,provide:jn,inject:Wo};function jn(e,t){return t?e?function(){return ue(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Wo(e,t){return St(Qs(e),Qs(t))}function Qs(e){if(F(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function de(e,t){return e?[...new Set([].concat(e,t))]:t}function St(e,t){return e?ue(Object.create(null),e,t):t}function Nn(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:ue(Object.create(null),Ys(e),Ys(t??{})):t}function Uo(e,t){if(!e)return t;if(!t)return e;const s=ue(Object.create(null),e);for(const n in t)s[n]=de(e[n],t[n]);return s}function qr(){return{app:null,config:{isNativeTag:zn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ko=0;function qo(e,t){return function(n,r=null){L(n)||(n=ue({},n)),r!=null&&!W(r)&&(r=null);const i=qr(),o=new WeakSet,l=[];let c=!1;const h=i.app={_uid:Ko++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Cl,get config(){return i.config},set config(u){},use(u,...d){return o.has(u)||(u&&L(u.install)?(o.add(u),u.install(h,...d)):L(u)&&(o.add(u),u(h,...d))),h},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),h},component(u,d){return d?(i.components[u]=d,h):i.components[u]},directive(u,d){return d?(i.directives[u]=d,h):i.directives[u]},mount(u,d,v){if(!c){const T=h._ceVNode||me(n,r);return T.appContext=i,v===!0?v="svg":v===!1&&(v=void 0),e(T,u,v),c=!0,h._container=u,u.__vue_app__=h,As(T.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Ne(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,d){return i.provides[u]=d,h},runWithContext(u){const d=pt;pt=h;try{return u()}finally{pt=d}}};return h}}let pt=null;const Go=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${Bt(t)}Modifiers`];function Jo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||q;let r=s;const i=t.startsWith("update:"),o=i&&Go(n,t.slice(7));o&&(o.trim&&(r=s.map(u=>re(u)?u.trim():u)),o.number&&(r=s.map(Ci)));let l,c=n[l=Qt(t)]||n[l=Qt(je(t))];!c&&i&&(c=n[l=Qt(Bt(t))]),c&&Ne(c,e,6,r);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ne(h,e,6,r)}}const Yo=new WeakMap;function Gr(e,t,s=!1){const n=s?Yo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!L(e)){const c=h=>{const u=Gr(h,t,!0);u&&(l=!0,ue(o,u))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(W(e)&&n.set(e,null),null):(F(i)?i.forEach(c=>o[c]=null):ue(o,i),W(e)&&n.set(e,o),o)}function Ss(e,t){return!e||!rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,Bt(t))||$(e,t))}function Vn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:h,renderCache:u,props:d,data:v,setupState:T,ctx:O,inheritAttrs:C}=e,D=rs(e);let H,I;try{if(s.shapeFlag&4){const A=r||n,U=A;H=De(h.call(U,A,u,d,T,v,O)),I=l}else{const A=t;H=De(A.length>1?A(d,{attrs:l,slots:o,emit:c}):A(d,null)),I=t.props?l:zo(l)}}catch(A){Ot.length=0,vs(A,e,1),H=me(fe)}let V=H;if(I&&C!==!1){const A=Object.keys(I),{shapeFlag:U}=V;A.length&&U&7&&(i&&A.some(on)&&(I=Qo(I,i)),V=Qe(V,I,!1,!0))}return s.dirs&&(V=Qe(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(s.dirs):s.dirs),s.transition&&kt(V,s.transition),H=V,rs(D),H}const zo=e=>{let t;for(const s in e)(s==="class"||s==="style"||rn(s))&&((t||(t={}))[s]=e[s]);return t},Qo=(e,t)=>{const s={};for(const n in e)(!on(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Xo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Bn(n,o,h):!!o;if(c&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const v=u[d];if(Jr(o,n,v)&&!Ss(h,v))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Bn(n,o,h):!0:!!o;return!1}function Bn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(Jr(t,e,i)&&!Ss(s,i))return!0}return!1}function Jr(e,t,s){const n=e[s],r=t[s];return s==="style"&&W(n)&&W(r)?!cn(n,r):n!==r}function Zo({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Yr={},zr=()=>Object.create(Yr),Qr=e=>Object.getPrototypeOf(e)===Yr;function el(e,t,s,n=!1){const r={},i=zr();e.propsDefaults=Object.create(null),Xr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Zi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function tl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=N(r),[c]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let v=u[d];if(Ss(e.emitsOptions,v))continue;const T=t[v];if(c)if($(i,v))T!==i[v]&&(i[v]=T,h=!0);else{const O=je(v);r[O]=Xs(c,l,O,T,e,!1)}else T!==i[v]&&(i[v]=T,h=!0)}}}else{Xr(e,t,r,i)&&(h=!0);let u;for(const d in l)(!t||!$(t,d)&&((u=Bt(d))===d||!$(t,u)))&&(c?s&&(s[d]!==void 0||s[u]!==void 0)&&(r[d]=Xs(c,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!$(t,d))&&(delete i[d],h=!0)}h&&$e(e.attrs,"set","")}function Xr(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Ct(c))continue;const h=t[c];let u;r&&$(r,u=je(c))?!i||!i.includes(u)?s[u]=h:(l||(l={}))[u]=h:Ss(e.emitsOptions,c)||(!(c in n)||h!==n[c])&&(n[c]=h,o=!0)}if(i){const c=N(s),h=l||q;for(let u=0;u<i.length;u++){const d=i[u];s[d]=Xs(r,c,d,h[d],e,!$(h,d))}}return o}function Xs(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=$(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&L(c)){const{propsDefaults:h}=r;if(s in h)n=h[s];else{const u=Wt(r);n=h[s]=c.call(null,t),u()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===Bt(s))&&(n=!0))}return n}const sl=new WeakMap;function Zr(e,t,s=!1){const n=s?sl:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!L(e)){const u=d=>{c=!0;const[v,T]=Zr(d,t,!0);ue(o,v),T&&l.push(...T)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return W(e)&&n.set(e,ut),ut;if(F(i))for(let u=0;u<i.length;u++){const d=je(i[u]);$n(d)&&(o[d]=q)}else if(i)for(const u in i){const d=je(u);if($n(d)){const v=i[u],T=o[d]=F(v)||L(v)?{type:v}:ue({},v),O=T.type;let C=!1,D=!0;if(F(O))for(let H=0;H<O.length;++H){const I=O[H],V=L(I)&&I.name;if(V==="Boolean"){C=!0;break}else V==="String"&&(D=!1)}else C=L(O)&&O.name==="Boolean";T[0]=C,T[1]=D,(C||$(T,"default"))&&l.push(d)}}const h=[o,l];return W(e)&&n.set(e,h),h}function $n(e){return e[0]!=="$"&&!Ct(e)}const gn=e=>e==="_"||e==="_ctx"||e==="$stable",_n=e=>F(e)?e.map(De):[De(e)],nl=(e,t,s)=>{if(t._n)return t;const n=_o((...r)=>_n(t(...r)),s);return n._c=!1,n},ei=(e,t,s)=>{const n=e._ctx;for(const r in e){if(gn(r))continue;const i=e[r];if(L(i))t[r]=nl(r,i,n);else if(i!=null){const o=_n(i);t[r]=()=>o}}},ti=(e,t)=>{const s=_n(t);e.slots.default=()=>s},si=(e,t,s)=>{for(const n in t)(s||!gn(n))&&(e[n]=t[n])},rl=(e,t,s)=>{const n=e.slots=zr();if(e.vnode.shapeFlag&32){const r=t._;r?(si(n,t,s),s&&tr(n,"_",r,!0)):ei(t,n)}else t&&ti(e,t)},il=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=q;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:si(r,t,s):(i=!t.$stable,ei(t,r)),o=t}else t&&(ti(e,t),o={default:1});if(i)for(const l in r)!gn(l)&&o[l]==null&&delete r[l]},pe=cl;function _f(e){return ol(e)}function ol(e,t){const s=as();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:h,setElementText:u,parentNode:d,nextSibling:v,setScopeId:T=He,insertStaticContent:O}=e,C=(f,a,p,b=null,g=null,_=null,w=void 0,x=null,y=!!a.dynamicChildren)=>{if(f===a)return;f&&!rt(f,a)&&(b=qt(f),Pe(f,g,_,!0),f=null),a.patchFlag===-2&&(y=!1,a.dynamicChildren=null);const{type:m,ref:R,shapeFlag:S}=a;switch(m){case Cs:D(f,a,p,b);break;case fe:H(f,a,p,b);break;case js:f==null&&I(a,p,b,w);break;case ye:ae(f,a,p,b,g,_,w,x,y);break;default:S&1?U(f,a,p,b,g,_,w,x,y):S&6?xe(f,a,p,b,g,_,w,x,y):(S&64||S&128)&&m.process(f,a,p,b,g,_,w,x,y,yt)}R!=null&&g?Pt(R,f&&f.ref,_,a||f,!a):R==null&&f&&f.ref!=null&&Pt(f.ref,null,_,f,!0)},D=(f,a,p,b)=>{if(f==null)n(a.el=l(a.children),p,b);else{const g=a.el=f.el;a.children!==f.children&&h(g,a.children)}},H=(f,a,p,b)=>{f==null?n(a.el=c(a.children||""),p,b):a.el=f.el},I=(f,a,p,b)=>{[f.el,f.anchor]=O(f.children,a,p,b,f.el,f.anchor)},V=({el:f,anchor:a},p,b)=>{let g;for(;f&&f!==a;)g=v(f),n(f,p,b),f=g;n(a,p,b)},A=({el:f,anchor:a})=>{let p;for(;f&&f!==a;)p=v(f),r(f),f=p;r(a)},U=(f,a,p,b,g,_,w,x,y)=>{if(a.type==="svg"?w="svg":a.type==="math"&&(w="mathml"),f==null)te(a,p,b,g,_,w,x,y);else{const m=f.el&&f.el._isVueCE?f.el:null;try{m&&m._beginPatch(),P(f,a,g,_,w,x,y)}finally{m&&m._endPatch()}}},te=(f,a,p,b,g,_,w,x)=>{let y,m;const{props:R,shapeFlag:S,transition:E,dirs:M}=f;if(y=f.el=o(f.type,_,R&&R.is,R),S&8?u(y,f.children):S&16&&G(f.children,y,null,b,g,Hs(f,_),w,x),M&&et(f,null,b,"created"),k(y,f,f.scopeId,w,b),R){for(const K in R)K!=="value"&&!Ct(K)&&i(y,K,null,R[K],_,b);"value"in R&&i(y,"value",null,R.value,_),(m=R.onVnodeBeforeMount)&&Fe(m,b,f)}M&&et(f,null,b,"beforeMount");const j=ll(g,E);j&&E.beforeEnter(y),n(y,a,p),((m=R&&R.onVnodeMounted)||j||M)&&pe(()=>{m&&Fe(m,b,f),j&&E.enter(y),M&&et(f,null,b,"mounted")},g)},k=(f,a,p,b,g)=>{if(p&&T(f,p),b)for(let _=0;_<b.length;_++)T(f,b[_]);if(g){let _=g.subTree;if(a===_||ii(_.type)&&(_.ssContent===a||_.ssFallback===a)){const w=g.vnode;k(f,w,w.scopeId,w.slotScopeIds,g.parent)}}},G=(f,a,p,b,g,_,w,x,y=0)=>{for(let m=y;m<f.length;m++){const R=f[m]=x?Be(f[m]):De(f[m]);C(null,R,a,p,b,g,_,w,x)}},P=(f,a,p,b,g,_,w)=>{const x=a.el=f.el;let{patchFlag:y,dynamicChildren:m,dirs:R}=a;y|=f.patchFlag&16;const S=f.props||q,E=a.props||q;let M;if(p&&tt(p,!1),(M=E.onVnodeBeforeUpdate)&&Fe(M,p,a,f),R&&et(a,f,p,"beforeUpdate"),p&&tt(p,!0),(S.innerHTML&&E.innerHTML==null||S.textContent&&E.textContent==null)&&u(x,""),m?B(f.dynamicChildren,m,x,p,b,Hs(a,g),_):w||J(f,a,x,null,p,b,Hs(a,g),_,!1),y>0){if(y&16)Q(x,S,E,p,g);else if(y&2&&S.class!==E.class&&i(x,"class",null,E.class,g),y&4&&i(x,"style",S.style,E.style,g),y&8){const j=a.dynamicProps;for(let K=0;K<j.length;K++){const Y=j[K],ee=S[Y],ie=E[Y];(ie!==ee||Y==="value")&&i(x,Y,ee,ie,g,p)}}y&1&&f.children!==a.children&&u(x,a.children)}else!w&&m==null&&Q(x,S,E,p,g);((M=E.onVnodeUpdated)||R)&&pe(()=>{M&&Fe(M,p,a,f),R&&et(a,f,p,"updated")},b)},B=(f,a,p,b,g,_,w)=>{for(let x=0;x<a.length;x++){const y=f[x],m=a[x],R=y.el&&(y.type===ye||!rt(y,m)||y.shapeFlag&198)?d(y.el):p;C(y,m,R,null,b,g,_,w,!0)}},Q=(f,a,p,b,g)=>{if(a!==p){if(a!==q)for(const _ in a)!Ct(_)&&!(_ in p)&&i(f,_,a[_],null,g,b);for(const _ in p){if(Ct(_))continue;const w=p[_],x=a[_];w!==x&&_!=="value"&&i(f,_,x,w,g,b)}"value"in p&&i(f,"value",a.value,p.value,g)}},ae=(f,a,p,b,g,_,w,x,y)=>{const m=a.el=f?f.el:l(""),R=a.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:E,slotScopeIds:M}=a;M&&(x=x?x.concat(M):M),f==null?(n(m,p,b),n(R,p,b),G(a.children||[],p,R,g,_,w,x,y)):S>0&&S&64&&E&&f.dynamicChildren&&f.dynamicChildren.length===E.length?(B(f.dynamicChildren,E,p,g,_,w,x),(a.key!=null||g&&a===g.subTree)&&mn(f,a,!0)):J(f,a,p,R,g,_,w,x,y)},xe=(f,a,p,b,g,_,w,x,y)=>{a.slotScopeIds=x,f==null?a.shapeFlag&512?g.ctx.activate(a,p,b,w,y):Se(a,p,b,g,_,w,y):Ut(f,a,y)},Se=(f,a,p,b,g,_,w)=>{const x=f.component=bl(f,b,g);if(ws(f)&&(x.ctx.renderer=yt),yl(x,!1,w),x.asyncDep){if(g&&g.registerDep(x,he,w),!f.el){const y=x.subTree=me(fe);H(null,y,a,p),f.placeholder=y.el}}else he(x,f,a,p,g,_,w)},Ut=(f,a,p)=>{const b=a.component=f.component;if(Xo(f,a,p))if(b.asyncDep&&!b.asyncResolved){X(b,a,p);return}else b.next=a,b.update();else a.el=f.el,b.vnode=a},he=(f,a,p,b,g,_,w)=>{const x=()=>{if(f.isMounted){let{next:S,bu:E,u:M,parent:j,vnode:K}=f;{const Oe=ni(f);if(Oe){S&&(S.el=K.el,X(f,S,w)),Oe.asyncDep.then(()=>{pe(()=>{f.isUnmounted||m()},g)});return}}let Y=S,ee;tt(f,!1),S?(S.el=K.el,X(f,S,w)):S=K,E&&Rs(E),(ee=S.props&&S.props.onVnodeBeforeUpdate)&&Fe(ee,j,S,K),tt(f,!0);const ie=Vn(f),Re=f.subTree;f.subTree=ie,C(Re,ie,d(Re.el),qt(Re),f,g,_),S.el=ie.el,Y===null&&Zo(f,ie.el),M&&pe(M,g),(ee=S.props&&S.props.onVnodeUpdated)&&pe(()=>Fe(ee,j,S,K),g)}else{let S;const{el:E,props:M}=a,{bm:j,m:K,parent:Y,root:ee,type:ie}=f,Re=dt(a);tt(f,!1),j&&Rs(j),!Re&&(S=M&&M.onVnodeBeforeMount)&&Fe(S,Y,a),tt(f,!0);{ee.ce&&ee.ce._hasShadowRoot()&&ee.ce._injectChildStyle(ie,f.parent?f.parent.type:void 0);const Oe=f.subTree=Vn(f);C(null,Oe,p,b,f,g,_),a.el=Oe.el}if(K&&pe(K,g),!Re&&(S=M&&M.onVnodeMounted)){const Oe=a;pe(()=>Fe(S,Y,Oe),g)}(a.shapeFlag&256||Y&&dt(Y.vnode)&&Y.vnode.shapeFlag&256)&&f.a&&pe(f.a,g),f.isMounted=!0,a=p=b=null}};f.scope.on();const y=f.effect=new ir(x);f.scope.off();const m=f.update=y.run.bind(y),R=f.job=y.runIfDirty.bind(y);R.i=f,R.id=f.uid,y.scheduler=()=>pn(R),tt(f,!0),m()},X=(f,a,p)=>{a.component=f;const b=f.vnode.props;f.vnode=a,f.next=null,tl(f,a.props,b,p),il(f,a.children,p),Ue(),On(f),Ke()},J=(f,a,p,b,g,_,w,x,y=!1)=>{const m=f&&f.children,R=f?f.shapeFlag:0,S=a.children,{patchFlag:E,shapeFlag:M}=a;if(E>0){if(E&128){Kt(m,S,p,b,g,_,w,x,y);return}else if(E&256){Xe(m,S,p,b,g,_,w,x,y);return}}M&8?(R&16&&bt(m,g,_),S!==m&&u(p,S)):R&16?M&16?Kt(m,S,p,b,g,_,w,x,y):bt(m,g,_,!0):(R&8&&u(p,""),M&16&&G(S,p,b,g,_,w,x,y))},Xe=(f,a,p,b,g,_,w,x,y)=>{f=f||ut,a=a||ut;const m=f.length,R=a.length,S=Math.min(m,R);let E;for(E=0;E<S;E++){const M=a[E]=y?Be(a[E]):De(a[E]);C(f[E],M,p,null,g,_,w,x,y)}m>R?bt(f,g,_,!0,!1,S):G(a,p,b,g,_,w,x,y,S)},Kt=(f,a,p,b,g,_,w,x,y)=>{let m=0;const R=a.length;let S=f.length-1,E=R-1;for(;m<=S&&m<=E;){const M=f[m],j=a[m]=y?Be(a[m]):De(a[m]);if(rt(M,j))C(M,j,p,null,g,_,w,x,y);else break;m++}for(;m<=S&&m<=E;){const M=f[S],j=a[E]=y?Be(a[E]):De(a[E]);if(rt(M,j))C(M,j,p,null,g,_,w,x,y);else break;S--,E--}if(m>S){if(m<=E){const M=E+1,j=M<R?a[M].el:b;for(;m<=E;)C(null,a[m]=y?Be(a[m]):De(a[m]),p,j,g,_,w,x,y),m++}}else if(m>E)for(;m<=S;)Pe(f[m],g,_,!0),m++;else{const M=m,j=m,K=new Map;for(m=j;m<=E;m++){const be=a[m]=y?Be(a[m]):De(a[m]);be.key!=null&&K.set(be.key,m)}let Y,ee=0;const ie=E-j+1;let Re=!1,Oe=0;const vt=new Array(ie);for(m=0;m<ie;m++)vt[m]=0;for(m=M;m<=S;m++){const be=f[m];if(ee>=ie){Pe(be,g,_,!0);continue}let Ie;if(be.key!=null)Ie=K.get(be.key);else for(Y=j;Y<=E;Y++)if(vt[Y-j]===0&&rt(be,a[Y])){Ie=Y;break}Ie===void 0?Pe(be,g,_,!0):(vt[Ie-j]=m+1,Ie>=Oe?Oe=Ie:Re=!0,C(be,a[Ie],p,null,g,_,w,x,y),ee++)}const Tn=Re?fl(vt):ut;for(Y=Tn.length-1,m=ie-1;m>=0;m--){const be=j+m,Ie=a[be],Sn=a[be+1],Cn=be+1<R?Sn.el||ri(Sn):b;vt[m]===0?C(null,Ie,p,Cn,g,_,w,x,y):Re&&(Y<0||m!==Tn[Y]?Ze(Ie,p,Cn,2):Y--)}}},Ze=(f,a,p,b,g=null)=>{const{el:_,type:w,transition:x,children:y,shapeFlag:m}=f;if(m&6){Ze(f.component.subTree,a,p,b);return}if(m&128){f.suspense.move(a,p,b);return}if(m&64){w.move(f,a,p,yt);return}if(w===ye){n(_,a,p);for(let S=0;S<y.length;S++)Ze(y[S],a,p,b);n(f.anchor,a,p);return}if(w===js){V(f,a,p);return}if(b!==2&&m&1&&x)if(b===0)x.beforeEnter(_),n(_,a,p),pe(()=>x.enter(_),g);else{const{leave:S,delayLeave:E,afterLeave:M}=x,j=()=>{f.ctx.isUnmounted?r(_):n(_,a,p)},K=()=>{_._isLeaving&&_[Le](!0),S(_,()=>{j(),M&&M()})};E?E(_,j,K):K()}else n(_,a,p)},Pe=(f,a,p,b=!1,g=!1)=>{const{type:_,props:w,ref:x,children:y,dynamicChildren:m,shapeFlag:R,patchFlag:S,dirs:E,cacheIndex:M,memo:j}=f;if(S===-2&&(g=!1),x!=null&&(Ue(),Pt(x,null,p,f,!0),Ke()),M!=null&&(a.renderCache[M]=void 0),R&256){a.ctx.deactivate(f);return}const K=R&1&&E,Y=!dt(f);let ee;if(Y&&(ee=w&&w.onVnodeBeforeUnmount)&&Fe(ee,a,f),R&6)vi(f.component,p,b);else{if(R&128){f.suspense.unmount(p,b);return}K&&et(f,null,a,"beforeUnmount"),R&64?f.type.remove(f,a,p,yt,b):m&&!m.hasOnce&&(_!==ye||S>0&&S&64)?bt(m,a,p,!1,!0):(_===ye&&S&384||!g&&R&16)&&bt(y,a,p),b&&xn(f)}const ie=j!=null&&M==null;(Y&&(ee=w&&w.onVnodeUnmounted)||K||ie)&&pe(()=>{ee&&Fe(ee,a,f),K&&et(f,null,a,"unmounted"),ie&&(f.el=null)},p)},xn=f=>{const{type:a,el:p,anchor:b,transition:g}=f;if(a===ye){yi(p,b);return}if(a===js){A(f);return}const _=()=>{r(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(f.shapeFlag&1&&g&&!g.persisted){const{leave:w,delayLeave:x}=g,y=()=>w(p,_);x?x(f.el,_,y):y()}else _()},yi=(f,a)=>{let p;for(;f!==a;)p=v(f),r(f),f=p;r(a)},vi=(f,a,p)=>{const{bum:b,scope:g,job:_,subTree:w,um:x,m:y,a:m}=f;Wn(y),Wn(m),b&&Rs(b),g.stop(),_&&(_.flags|=8,Pe(w,f,a,p)),x&&pe(x,a),pe(()=>{f.isUnmounted=!0},a)},bt=(f,a,p,b=!1,g=!1,_=0)=>{for(let w=_;w<f.length;w++)Pe(f[w],a,p,b,g)},qt=f=>{if(f.shapeFlag&6)return qt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const a=v(f.anchor||f.el),p=a&&a[Or];return p?v(p):a};let Ps=!1;const wn=(f,a,p)=>{let b;f==null?a._vnode&&(Pe(a._vnode,null,null,!0),b=a._vnode.component):C(a._vnode||null,f,a,null,null,null,p),a._vnode=f,Ps||(Ps=!0,On(b),Er(),Ps=!1)},yt={p:C,um:Pe,m:Ze,r:xn,mt:Se,mc:G,pc:J,pbc:B,n:qt,o:e};return{render:wn,hydrate:void 0,createApp:qo(wn)}}function Hs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ll(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function mn(e,t,s=!1){const n=e.children,r=t.children;if(F(n)&&F(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Be(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&mn(o,l)),l.type===Cs&&(l.patchFlag===-1&&(l=r[i]=Be(l)),l.el=o.el),l.type===fe&&!l.el&&(l.el=o.el)}}function fl(e){const t=e.slice(),s=[0];let n,r,i,o,l;const c=e.length;for(n=0;n<c;n++){const h=e[n];if(h!==0){if(r=s[s.length-1],e[r]<h){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<h?i=l+1:o=l;h<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ni(t)}function Wn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ri(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ri(t.subTree):null}const ii=e=>e.__isSuspense;function cl(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):go(e)}const ye=Symbol.for("v-fgt"),Cs=Symbol.for("v-txt"),fe=Symbol.for("v-cmt"),js=Symbol.for("v-stc"),Ot=[];let _e=null;function Zs(e=!1){Ot.push(_e=e?null:[])}function ul(){Ot.pop(),_e=Ot[Ot.length-1]||null}let _t=1;function ls(e,t=!1){_t+=e,e<0&&_e&&t&&(_e.hasOnce=!0)}function oi(e){return e.dynamicChildren=_t>0?_e||ut:null,ul(),_t>0&&_e&&_e.push(e),e}function mf(e,t,s,n,r,i){return oi(fi(e,t,s,n,r,i,!0))}function en(e,t,s,n,r){return oi(me(e,t,s,n,r,!0))}function Dt(e){return e?e.__v_isVNode===!0:!1}function rt(e,t){return e.type===t.type&&e.key===t.key}const li=({key:e})=>e??null,Zt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ne(e)||L(e)?{i:oe,r:e,k:t,f:!!s}:e:null);function fi(e,t=null,s=null,n=0,r=null,i=e===ye?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&li(t),ref:t&&Zt(t),scopeId:Pr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:oe};return l?(bn(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=re(s)?8:16),_t>0&&!o&&_e&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&_e.push(c),c}const me=al;function al(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===Br)&&(e=fe),Dt(e)){const l=Qe(e,t,!0);return s&&bn(l,s),_t>0&&!i&&_e&&(l.shapeFlag&6?_e[_e.indexOf(e)]=l:_e.push(l)),l.patchFlag=-2,l}if(Tl(e)&&(e=e.__vccOpts),t){t=hl(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=ds(l)),W(c)&&(ys(c)&&!F(c)&&(c=ue({},c)),t.style=hs(c))}const o=re(e)?1:ii(e)?128:Ir(e)?64:W(e)?4:L(e)?2:0;return fi(e,t,s,n,r,o,i,!0)}function hl(e){return e?ys(e)||Qr(e)?ue({},e):e:null}function Qe(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,h=t?gl(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&li(h),ref:t&&t.ref?s&&i?F(i)?i.concat(Zt(t)):[i,Zt(t)]:Zt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qe(e.ssContent),ssFallback:e.ssFallback&&Qe(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&kt(u,c.clone(u)),u}function dl(e=" ",t=0){return me(Cs,null,e,t)}function pl(e="",t=!1){return t?(Zs(),en(fe,null,e)):me(fe,null,e)}function De(e){return e==null||typeof e=="boolean"?me(fe):F(e)?me(ye,null,e.slice()):Dt(e)?Be(e):me(Cs,null,String(e))}function Be(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qe(e)}function bn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(F(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),bn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Qr(t)?t._ctx=oe:r===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:oe},s=32):(t=String(t),n&64?(s=16,t=[dl(t)]):s=8);e.children=t,e.shapeFlag|=s}function gl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ds([t.class,n.class]));else if(r==="style")t.style=hs([t.style,n.style]);else if(rn(r)){const i=t[r],o=n[r];o&&i!==o&&!(F(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!on(r)&&(t[r]=o)}else r!==""&&(t[r]=n[r])}return t}function Fe(e,t,s,n=null){Ne(e,t,7,[s,n])}const _l=qr();let ml=0;function bl(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||_l,i={uid:ml++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new rr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zr(n,r),emitsOptions:Gr(n,r),emit:null,emitted:null,propsDefaults:q,inheritAttrs:n.inheritAttrs,ctx:q,data:q,props:q,attrs:q,slots:q,refs:q,setupState:q,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Jo.bind(null,i),e.ce&&e.ce(i),i}let ce=null;const Es=()=>ce||oe;let fs,tn;{const e=as(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};fs=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),tn=t("__VUE_SSR_SETTERS__",s=>Ht=s)}const Wt=e=>{const t=ce;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},Un=()=>{ce&&ce.scope.off(),fs(null)};function ci(e){return e.vnode.shapeFlag&4}let Ht=!1;function yl(e,t=!1,s=!1){t&&tn(t);const{props:n,children:r}=e.vnode,i=ci(e);el(e,n,i,t),rl(e,r,s||t);const o=i?vl(e,t):void 0;return t&&tn(!1),o}function vl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,No);const{setup:n}=s;if(n){Ue();const r=e.setupContext=n.length>1?ai(e):null,i=Wt(e),o=$t(n,e,0,[e.props,r]),l=Xn(o);if(Ke(),i(),(l||e.sp)&&!dt(e)&&Dr(e),l){if(o.then(Un,Un),t)return o.then(c=>{Kn(e,c)}).catch(c=>{vs(c,e,0)});e.asyncDep=o}else Kn(e,o)}else ui(e)}function Kn(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=wr(t)),ui(e)}function ui(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const r=Wt(e);Ue();try{Vo(e)}finally{Ke(),r()}}}const xl={get(e,t){return le(e,"get",""),e[t]}};function ai(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xl),slots:e.slots,emit:e.emit,expose:t}}function As(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wr(eo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Rt)return Rt[s](e)},has(t,s){return s in t||s in Rt}})):e.proxy}function wl(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function Tl(e){return L(e)&&"__vccOpts"in e}const mt=(e,t)=>fo(e,t,Ht);function bf(e,t,s){try{ls(-1);const n=arguments.length;return n===2?W(t)&&!F(t)?Dt(t)?me(e,null,[t]):me(e,t):me(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Dt(s)&&(s=[s]),me(e,t,s))}finally{ls(1)}}function yf(e,t,s,n){const r=s[n];if(r&&Sl(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=n,s[n]=i}function Sl(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(Ce(s[n],t[n]))return!1;return _t>0&&_e&&_e.push(e),!0}const Cl="3.5.34",qn="hb-sdk-feedback-style",El=2e3,Al={light:20,medium:40,heavy:80},Pl=120,Rl=`
2
+ .host-overlay-layer.hb-sdk-feedback-vibrate-flash {
3
+ background: rgba(255, 255, 255, 0.22);
4
+ }
5
+ `;let es,jt,It,ze,it;const sn=new Set;function vf(e){return es=e,jt&&e(jt),()=>{es===e&&(es=void 0)}}function Nt(e){jt=e,es?.(e)}function yn(){It!==void 0&&(window.clearTimeout(It),It=void 0)}function xf(e){return yn(),Nt({kind:"toast",...e}),It=window.setTimeout(()=>{It=void 0,jt?.kind==="toast"&&Nt(void 0)},El),Promise.resolve()}function wf(e){return yn(),Nt({kind:"loading",dismissible:e?.dismissible===!0}),Promise.resolve()}function Tf(){return jt?.kind==="loading"&&Nt(void 0),Promise.resolve()}function Sf(){yn(),Nt(void 0);for(const e of[...sn])e();it!==void 0&&(window.clearTimeout(it),it=void 0),ze?.classList.remove("hb-sdk-feedback-vibrate-flash"),ze=void 0}async function Cf(e,t){Ol();const s=t?.signal;if(!await Ml(Math.max(0,e.delay),s)||s?.aborted)return;Il();const r=navigator.vibrate;if(typeof r=="function")try{r.call(navigator,Al[e.intensity])}catch{}}function Ef(e){document.documentElement.dataset.screenshotChromeHidden=e?"true":"false"}function Ol(){if(document.getElementById(qn))return;const e=document.createElement("style");e.id=qn,e.textContent=Rl,document.head.appendChild(e)}function Il(){const e=Fl();it!==void 0&&window.clearTimeout(it),ze&&ze!==e&&ze.classList.remove("hb-sdk-feedback-vibrate-flash"),ze=e,e.classList.add("hb-sdk-feedback-vibrate-flash"),it=window.setTimeout(()=>{e.classList.remove("hb-sdk-feedback-vibrate-flash"),ze===e&&(ze=void 0),it=void 0},Pl)}function Fl(){return document.querySelector("#host-overlay-layer")??document.body}function Ml(e,t){return t?.aborted?Promise.resolve(!1):e<=0?Promise.resolve(!0):new Promise(s=>{let n,r=!1;const i=c=>{r||(r=!0,n!==void 0&&window.clearTimeout(n),t?.removeEventListener("abort",o),sn.delete(l),s(c))},o=()=>i(!1),l=()=>i(!1);n=window.setTimeout(()=>i(!0),e),sn.add(l),t?.addEventListener("abort",o,{once:!0})})}const Ns={width:440,height:956},Gn={top:1.32,right:3.4,bottom:1.32,left:3.4},Vs={width:410,height:914},Jn={top:2.05,right:4.8,bottom:1.8,left:4.1};function Yn(e,t,s){const n=e.width/(1-(t.left+t.right)/100),r=e.height/(1-(t.top+t.bottom)/100),i=s.width*s.radiusWidthRatio;return{frameWidth:n,frameHeight:r,frameAssetWidth:s.width,frameAssetHeight:s.height,screenRadius:{x:i*(n/s.width),y:i*(r/s.height)}}}const hi=[{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",screenWidth:Ns.width,screenHeight:Ns.height,...Yn(Ns,Gn,{width:415,height:843,radiusWidthRatio:.122126436781609}),maxPresentationScale:1,pixelRatio:3,statusBarHeight:55,safeAreaInsets:{top:55,right:0,bottom:34,left:0},screenRect:Gn,toolbarLeft:53.67,platform:"ios"},{id:"pixel-9-pro",label:"Pixel 9 Pro",screenWidth:Vs.width,screenHeight:Vs.height,...Yn(Vs,Jn,{width:353,height:745,radiusWidthRatio:.126666666666667}),maxPresentationScale:1,pixelRatio:2.625,statusBarHeight:50,safeAreaInsets:{top:50,right:0,bottom:24,left:0},screenRect:Jn,toolbarLeft:44.69,platform:"android"}],Ll=hi[0];function vn(e){return hi.find(t=>t.id===e)??Ll}const di="hb-sdk:browser-dev-host:device",pi="hb-sdk:browser-dev-host:diagnostics-width",kl=new URL(location.href).searchParams.get("device"),Z=ms({activeTab:"logs",devicePresetId:vn(kl??Nl()).id,logs:[],storage:[],storageError:"",queries:{logs:"",storage:"",problems:""},followLogs:!0,pausedLogCount:0,problemClearWatermark:0,diagnosticsWidth:Vl(),miniProgram:{bound:!1,iconUrl:"",name:"未绑定小程序",detail:""},account:{authenticated:!1,avatar:"",nickname:"未登录"},navigationBarStyle:"light",screenshotChromeHidden:!1,runtimeStatus:"idle",qrOpen:!1});let gi=0;const Af=mt(()=>vn(Z.devicePresetId)),Pf=mt(()=>{const e=Z.queries.logs.trim().toLocaleLowerCase();return e?Z.logs.filter(t=>`${t.method} ${_i(t.detail)}`.toLocaleLowerCase().includes(e)):Z.logs}),Dl=mt(()=>{const e=new Map;for(const t of Z.logs){if(t.id<=Z.problemClearWatermark||!Hl(t))continue;const s=jl(t),n=e.get(s);if(n){n.count+=1;continue}e.set(s,{...t,count:1})}return[...e.values()]}),Rf=mt(()=>bi(Z.storage,Z.queries.storage,e=>`${e.key} ${e.area} ${e.serializedValue}`)),Of=mt(()=>bi(Dl.value,Z.queries.problems,e=>`${e.method} ${_i(e.detail)}`));function If(e){Z.devicePresetId=vn(e).id;try{localStorage.setItem(di,e)}catch{}}function Ff(e,t){Z.logs.push({id:++gi,method:e,detail:t,timestamp:Date.now()}),Z.followLogs||(Z.pausedLogCount+=1),Z.logs.length>100&&Z.logs.splice(0,Z.logs.length-100)}function Mf(){Z.logs.length=0,Z.pausedLogCount=0}function Lf(){Z.problemClearWatermark=gi}function kf(e){Z.followLogs=e,e&&(Z.pausedLogCount=0)}function Df(e){const t=Math.min(560,Math.max(320,Math.round(e)));Z.diagnosticsWidth=t;try{localStorage.setItem(pi,String(t))}catch{}}function _i(e){try{return JSON.stringify(e,null,2)??""}catch{return"[无法序列化]"}}function Hl(e){return/error|failed|security|violation|blocked/i.test(e.method)?!0:mi(e.detail)?e.detail.outcome==="error"||e.detail.outcome==="denied":!1}function jl(e){if(!mi(e.detail))return e.method;const t=e.detail,s=typeof t.code=="string"?t.code:"",n=["method","origin","pathname"].map(r=>typeof t[r]=="string"?t[r]:"").find(Boolean)??"";return`${e.method}\0${s}\0${n}`}function mi(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nl(){try{return localStorage.getItem(di)}catch{return null}}function Vl(){try{const e=Number(localStorage.getItem(pi));return Number.isFinite(e)&&e>0?Math.min(560,Math.max(320,e)):400}catch{return 400}}function bi(e,t,s){const n=t.trim().toLocaleLowerCase();return n?e.filter(r=>s(r).toLocaleLowerCase().includes(n)):e}export{hs as $,bf as A,of as B,fe as C,hi as D,Tf as E,ye as F,Bt as G,Kl as H,Xt as I,Rs as J,F as K,L,on as M,W as N,rn as O,ne as P,Ul as Q,re as R,Te as S,rf as T,Ci as U,eo as V,gf as W,gl as X,ho as Y,ds as Z,Wl as _,Co as a,Nr as a0,jr as a1,Gl as a2,Vr as a3,Fo as a4,Zs as a5,Dl as a6,mo as a7,Ff as a8,ms as a9,df as aA,Cf as aB,Ls as aC,sf as aD,nf as aE,_o as aF,tf as aG,yf as aH,Z as aI,to as aa,vf as ab,uf as ac,af as ad,Sf as ae,cf as af,_i as ag,Ef as ah,If as ai,Df as aj,kf as ak,Jl as al,Yl as am,wf as an,xf as ao,Fi as ap,Qt as aq,hf as ar,$l as as,ef as at,Zl as au,Ql as av,zl as aw,dn as ax,pf as ay,ff as az,Af as b,Ne as c,je as d,fn as e,Mf as f,Lf as g,Qe as h,mt as i,fi as j,en as k,pl as l,mf as m,_f as n,dl as o,me as p,Xl as q,lf as r,ql as s,ue as t,Pf as u,Of as v,Rf as w,Es as x,Mi as y,hl as z};
@@ -5,9 +5,9 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta name="theme-color" content="#f4f5f7" />
7
7
  <title>小程序工坊调试台</title>
8
- <script type="module" crossorigin src="/assets/index-CeP6SLB3.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/workbench-state-D-1U0JRq.js">
10
- <link rel="stylesheet" crossorigin href="/assets/index-KD2f3Jdz.css">
8
+ <script type="module" crossorigin src="/assets/index-DaqmTjSF.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/workbench-state-wHgWRb7I.js">
10
+ <link rel="stylesheet" crossorigin href="/assets/index-DJFB5ySU.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="app"></div>
package/dist/index.cjs.js CHANGED
@@ -785,7 +785,7 @@ function createMessageId() {
785
785
  /** 构建时替换为当前发布包的实际版本。 */
786
786
  const HB_SDK_VERSION = typeof undefined === 'string'
787
787
  ? undefined
788
- : '0.8.0-alpha.2';
788
+ : '0.8.0-alpha.9';
789
789
 
790
790
  const DEFAULT_TIMEOUT = 10000;
791
791
  const HANDSHAKE_RETRY_INTERVAL = 250;
@@ -2485,7 +2485,7 @@ function screenshot(requester, options) {
2485
2485
  }
2486
2486
 
2487
2487
  /**
2488
- * 展示基础分享面板。
2488
+ * 展示以当前小程序通用分享页为落地页的基础分享面板。
2489
2489
  *
2490
2490
  * @param requester - 底层 bridge 请求能力。
2491
2491
  * @param options - 基础分享参数。
package/dist/index.esm.js CHANGED
@@ -781,7 +781,7 @@ function createMessageId() {
781
781
  /** 构建时替换为当前发布包的实际版本。 */
782
782
  const HB_SDK_VERSION = typeof undefined === 'string'
783
783
  ? undefined
784
- : '0.8.0-alpha.2';
784
+ : '0.8.0-alpha.9';
785
785
 
786
786
  const DEFAULT_TIMEOUT = 10000;
787
787
  const HANDSHAKE_RETRY_INTERVAL = 250;
@@ -2481,7 +2481,7 @@ function screenshot(requester, options) {
2481
2481
  }
2482
2482
 
2483
2483
  /**
2484
- * 展示基础分享面板。
2484
+ * 展示以当前小程序通用分享页为落地页的基础分享面板。
2485
2485
  *
2486
2486
  * @param requester - 底层 bridge 请求能力。
2487
2487
  * @param options - 基础分享参数。
@@ -1,5 +1,4 @@
1
1
  node_modules
2
2
  dist
3
- coverage
4
3
  *.local
5
4
  .DS_Store
@@ -0,0 +1,14 @@
1
+ # <%= projectName %>
2
+
3
+ ## 命令
4
+
5
+ ```bash
6
+ npm install
7
+ npm run dev
8
+ npm run build
9
+ npm run deploy -- --release-note "更新说明"
10
+ ```
11
+
12
+ `vite.config.js` 默认声明 `android`、`ios`、`ohos`。发布前请在每个声明的平台完成真机验收;需要支持桌面平台时,由项目自行加入并验收。
13
+
14
+ 更多内容见 [CLI 指南](https://docs.xiaoheihe.cn/hb_sdk/guide/cli) 和 [SDK 文档](https://docs.xiaoheihe.cn/hb_sdk/)。
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
+ <title><%= projectName %></title>
7
+ </head>
8
+ <body>
9
+ <main class="page">
10
+ <div class="content">
11
+ <img class="logo" src="/src/assets/heybox-logo.svg" alt="小黑盒" />
12
+ <h1>Hello, World!</h1>
13
+ <p class="welcome">欢迎来到小黑盒小程序工坊</p>
14
+ <button type="button" data-testid="greeting-button">打个招呼</button>
15
+ <p class="error" data-testid="greeting-error" role="status" aria-live="polite"></p>
16
+ </div>
17
+ </main>
18
+ <script type="module" src="/src/main.js"></script>
19
+ </body>
20
+ </html>
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "<%= packageName %>",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "heybox": {
7
+ "miniProgramId": ""
8
+ },
9
+ "scripts": {
10
+ "hb-sdk": "hb-sdk",
11
+ "dev": "hb-sdk dev",
12
+ "build": "hb-sdk build",
13
+ "deploy": "hb-sdk remote deploy"
14
+ },
15
+ "dependencies": {
16
+ "@heybox/hb-sdk": "^<%= sdkVersion %>"
17
+ },
18
+ "devDependencies": {
19
+ "vite": "^8.0.12"
20
+ }
21
+ }
@@ -0,0 +1,8 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ fill-rule="evenodd"
4
+ clip-rule="evenodd"
5
+ d="M16.5 6.59477C16.5 6.43342 16.3831 6.23597 16.2396 6.15586L10.2098 2.76306C10.0663 2.68296 9.94826 2.61751 9.94595 2.61864C9.94363 2.61977 9.82561 2.55433 9.68212 2.47422L8.89989 2.03418C8.75641 1.95407 8.63953 2.01952 8.63953 2.18086V8.42036C8.63953 8.5817 8.77376 8.71259 8.93923 8.71259H10.9584C11.1251 8.71259 11.2593 8.5817 11.2593 8.42036V6.74032C11.2593 6.57897 11.3762 6.51353 11.5197 6.59364L13.6187 7.7761C13.7622 7.85621 13.8791 8.05366 13.8791 8.21501V14.8562C13.8791 15.0175 13.9959 15.083 14.1394 15.0029L16.2396 13.8215C16.3831 13.7414 16.5 13.544 16.5 13.3826V6.59477ZM9.03937 11.2825C8.87383 11.2825 8.73954 11.4133 8.73954 11.5745L8.74301 13.2518C8.74301 13.413 8.62609 13.4784 8.48254 13.3983L6.3814 12.2181C6.23901 12.1381 6.12208 11.9408 6.12208 11.7796V5.14365C6.12208 4.98246 6.00516 4.91708 5.86161 4.99711L3.76047 6.17732C3.61692 6.25735 3.5 6.45462 3.5 6.61581V13.3972C3.5 13.5584 3.61692 13.7557 3.76047 13.8357L8.02642 16.2344C8.16997 16.3145 8.2869 16.381 8.2869 16.3821C8.2869 16.3832 8.40266 16.4497 8.54621 16.5298L11.1 17.9658C11.2435 18.0459 11.3605 17.9805 11.3605 17.8193V11.5745C11.3593 11.4133 11.225 11.2825 11.0595 11.2825H9.03937Z"
6
+ fill="#14191E"
7
+ />
8
+ </svg>
@@ -0,0 +1,39 @@
1
+ import hbSDK from '@heybox/hb-sdk';
2
+ import './styles.css';
3
+
4
+ const greetingButton = document.querySelector('[data-testid="greeting-button"]');
5
+ const greetingError = document.querySelector('[data-testid="greeting-error"]');
6
+ const colorScheme = window.matchMedia('(prefers-color-scheme: dark)');
7
+
8
+ async function greet() {
9
+ greetingButton.disabled = true;
10
+ greetingButton.setAttribute('aria-busy', 'true');
11
+ greetingError.textContent = '';
12
+
13
+ try {
14
+ await hbSDK.ui.showToast({
15
+ message: '欢迎来到小黑盒小程序工坊',
16
+ status: 'success',
17
+ });
18
+ } catch (error) {
19
+ console.error('无法显示欢迎提示', error);
20
+ greetingError.textContent = '欢迎提示无法显示,请重试';
21
+ } finally {
22
+ greetingButton.disabled = false;
23
+ greetingButton.setAttribute('aria-busy', 'false');
24
+ }
25
+ }
26
+
27
+ function syncNavigationBar() {
28
+ hbSDK.viewport
29
+ .setNavigationBarStyle({ foregroundStyle: colorScheme.matches ? 'light' : 'dark' })
30
+ .catch((error) => console.error('无法同步导航栏样式', error));
31
+ }
32
+
33
+ greetingButton.addEventListener('click', greet);
34
+ if (typeof colorScheme.addEventListener === 'function') {
35
+ colorScheme.addEventListener('change', syncNavigationBar);
36
+ } else if (typeof colorScheme.addListener === 'function') {
37
+ colorScheme.addListener(syncNavigationBar);
38
+ }
39
+ syncNavigationBar();
@@ -0,0 +1,155 @@
1
+ :root {
2
+ --page-background: #f7f8f9;
3
+ --text-primary: #14191e;
4
+ --text-secondary: #64696e;
5
+ --button-background: #14191e;
6
+ --button-foreground: #ffffff;
7
+ --button-hover: #393d40;
8
+ --button-pressed: #000000;
9
+ --button-disabled: #c8cdd2;
10
+ --focus-ring: #009015;
11
+ --error: #c92228;
12
+ color-scheme: light dark;
13
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
14
+ color: var(--text-primary);
15
+ background: var(--page-background);
16
+ }
17
+
18
+ * {
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ html,
23
+ body {
24
+ margin: 0;
25
+ min-width: 0;
26
+ min-height: 100%;
27
+ background: var(--page-background);
28
+ }
29
+
30
+ body {
31
+ min-height: 100vh;
32
+ min-height: 100dvh;
33
+ }
34
+
35
+ .page {
36
+ display: grid;
37
+ min-height: 100vh;
38
+ min-height: 100dvh;
39
+ place-items: center;
40
+ padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom))
41
+ max(24px, env(safe-area-inset-left));
42
+ }
43
+
44
+ .content {
45
+ width: min(100%, 360px);
46
+ text-align: center;
47
+ }
48
+
49
+ .logo {
50
+ display: block;
51
+ width: 36px;
52
+ height: 36px;
53
+ margin: 0 auto 32px;
54
+ object-fit: contain;
55
+ }
56
+
57
+ h1 {
58
+ margin: 0;
59
+ color: var(--text-primary);
60
+ font-size: 32px;
61
+ line-height: 1.25;
62
+ letter-spacing: 0;
63
+ }
64
+
65
+ .welcome {
66
+ margin: 12px 0 32px;
67
+ color: var(--text-secondary);
68
+ font-size: 16px;
69
+ line-height: 1.5;
70
+ }
71
+
72
+ button {
73
+ width: 160px;
74
+ min-height: 48px;
75
+ border: 0;
76
+ border-radius: 6px;
77
+ color: var(--button-foreground);
78
+ background: var(--button-background);
79
+ font: inherit;
80
+ font-weight: 600;
81
+ cursor: pointer;
82
+ transition:
83
+ background-color 160ms ease,
84
+ transform 160ms ease;
85
+ }
86
+
87
+ button:active:not(:disabled) {
88
+ background: var(--button-pressed);
89
+ transform: scale(0.98);
90
+ }
91
+
92
+ button:focus-visible {
93
+ outline: 3px solid var(--focus-ring);
94
+ outline-offset: 3px;
95
+ }
96
+
97
+ button:disabled {
98
+ background: var(--button-disabled);
99
+ cursor: wait;
100
+ }
101
+
102
+ .error {
103
+ min-height: 24px;
104
+ margin: 12px 0 0;
105
+ color: var(--error);
106
+ font-size: 14px;
107
+ line-height: 24px;
108
+ }
109
+
110
+ @media (hover: hover) {
111
+ button:hover:not(:disabled) {
112
+ background: var(--button-hover);
113
+ }
114
+ }
115
+
116
+ @media (prefers-color-scheme: dark) {
117
+ :root {
118
+ --page-background: #14191e;
119
+ --text-primary: #f7f8f9;
120
+ --text-secondary: #91959a;
121
+ --button-background: #f7f8f9;
122
+ --button-foreground: #14191e;
123
+ --button-hover: #ffffff;
124
+ --button-pressed: #c4c8cc;
125
+ --button-disabled: #696e72;
126
+ --focus-ring: #32b846;
127
+ --error: #fa3c4b;
128
+ }
129
+
130
+ .logo {
131
+ filter: invert(1);
132
+ }
133
+ }
134
+
135
+ @media (max-height: 420px) and (orientation: landscape) {
136
+ .page {
137
+ place-items: start center;
138
+ padding-top: max(20px, env(safe-area-inset-top));
139
+ padding-bottom: max(20px, env(safe-area-inset-bottom));
140
+ }
141
+
142
+ .logo {
143
+ margin-bottom: 16px;
144
+ }
145
+
146
+ .welcome {
147
+ margin-bottom: 20px;
148
+ }
149
+ }
150
+
151
+ @media (prefers-reduced-motion: reduce) {
152
+ button {
153
+ transition: none;
154
+ }
155
+ }
@@ -1,8 +1,7 @@
1
- import vue from '@vitejs/plugin-vue';
2
1
  import { miniappManifest } from '@heybox/hb-sdk/vite';
3
2
  import { defineConfig } from 'vite';
4
3
 
5
4
  export default defineConfig({
6
5
  base: './',
7
- plugins: [vue(), miniappManifest({ platforms: ['android', 'ios', 'ohos'] })],
6
+ plugins: [miniappManifest({ platforms: ['android', 'ios', 'ohos'] })],
8
7
  });
package/dist/vite.cjs.js CHANGED
@@ -8,7 +8,7 @@ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentS
8
8
  /** 构建时替换为当前发布包的实际版本。 */
9
9
  const HB_SDK_VERSION = typeof undefined === 'string'
10
10
  ? undefined
11
- : '0.8.0-alpha.2';
11
+ : '0.8.0-alpha.9';
12
12
 
13
13
  var re = {exports: {}};
14
14
 
package/dist/vite.esm.js CHANGED
@@ -5,7 +5,7 @@ import { AsyncLocalStorage } from 'node:async_hooks';
5
5
  /** 构建时替换为当前发布包的实际版本。 */
6
6
  const HB_SDK_VERSION = typeof undefined === 'string'
7
7
  ? undefined
8
- : '0.8.0-alpha.2';
8
+ : '0.8.0-alpha.9';
9
9
 
10
10
  var re = {exports: {}};
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heybox/hb-sdk",
3
- "version": "0.8.0-alpha.2",
3
+ "version": "0.8.0-alpha.9",
4
4
  "sideEffects": [
5
5
  "./src/index.ts",
6
6
  "./src/core/singleton.ts",
@@ -53,12 +53,16 @@
53
53
  "keywords": [],
54
54
  "author": "",
55
55
  "license": "ISC",
56
+ "engines": {
57
+ "node": ">=22.20.0"
58
+ },
56
59
  "dependencies": {
57
60
  "@msgpack/msgpack": "2.8.0",
58
61
  "parse5": "^7.3.0",
62
+ "skills": "1.5.23",
59
63
  "undici": "^7.28.0",
60
64
  "ws": "^8.18.0",
61
- "@heybox/hb-sdk-protocol": "0.8.0-alpha.2"
65
+ "@heybox/hb-sdk-protocol": "0.8.0-alpha.9"
62
66
  },
63
67
  "peerDependencies": {
64
68
  "vite": ">=5"
@@ -93,6 +97,7 @@
93
97
  "get-port": "^7.1.0",
94
98
  "happy-dom": "^19.0.2",
95
99
  "lucide-vue-next": "1.0.0",
100
+ "markdown-it": "^14.1.0",
96
101
  "open": "^10.2.0",
97
102
  "ora": "^5.4.1",
98
103
  "picocolors": "^1.1.1",
@@ -108,13 +113,13 @@
108
113
  "vue-tsc": "^3.3.7",
109
114
  "vite": "^8.0.12",
110
115
  "vitest": "^3.2.4",
111
- "@heybox-domain/heybox-vue3-ui": "~0.1.0",
112
- "@heybox/runtime-policy": "~0.2.0",
113
116
  "@heybox-domain/heybox-theme": "~0.1.0",
114
- "@heybox/runtime-transport-fetch": "~0.2.0",
115
- "@heybox/hb-api": "~1.25.23",
117
+ "@heybox-domain/heybox-vue3-ui": "~0.1.0",
118
+ "@heybox/hb-api": "~1.28.1",
119
+ "@heybox/hb-sdk-runtime": "~0.8.0-alpha.9",
116
120
  "@heybox/runtime": "~0.2.0",
117
- "@heybox/hb-sdk-runtime": "~0.8.0-alpha.2"
121
+ "@heybox/runtime-policy": "~0.2.0",
122
+ "@heybox/runtime-transport-fetch": "~0.2.0"
118
123
  },
119
124
  "publishConfig": {
120
125
  "registry": "https://registry.npmjs.org/",
@@ -162,7 +167,7 @@
162
167
  "build:templates": "node scripts/copy-cli-templates.cjs",
163
168
  "build:types": "tsc -p tsconfig.dts.json",
164
169
  "check:boundary": "node scripts/check-boundary.cjs",
165
- "check:docs-sync": "pnpm -w exec hbexec hb-sdk check",
170
+ "check:docs-sync": "pnpm --filter @heybox-docs/docs-hb_sdk run check:reference && node scripts/skill/check-references.mjs && node scripts/skill/validate-skill.mjs",
166
171
  "check:compatibility-evidence": "node scripts/validate-compatibility-evidence.mjs",
167
172
  "check:api-semver": "node ../../ops/jobs/hb-sdk-docs-contract/semantic-diff.cjs",
168
173
  "clean": "rimraf ./dist && rimraf ./types",
@@ -171,17 +176,21 @@
171
176
  "test:types:browser-dev-host": "vue-tsc -p tsconfig.browser-dev-host.json --noEmit --pretty false",
172
177
  "test:types": "pnpm run test:types:characterization && pnpm run test:types:browser-dev-host",
173
178
  "test:e2e:browser-dev-host": "pnpm run build:browser-dev-host && NODE_OPTIONS='--conditions=heybox' vitest run --config vitest.browser-dev-host-e2e.config.ts",
179
+ "test:create-template:artifact": "node scripts/test-create-template-artifact.mjs",
174
180
  "test:unit:coverage": "NODE_OPTIONS='--conditions=heybox' vitest run --coverage",
175
181
  "test:vite": "pnpm run build:hb-sdk-protocol && pnpm run build:hb-api-contract && vitest run --config vitest.vite.config.ts",
176
182
  "test:watch": "NODE_OPTIONS='--conditions=heybox' vitest",
177
183
  "changelog:draft": "node scripts/changelog-draft.cjs",
178
184
  "check:changelog": "node scripts/check-changelog.cjs",
179
- "test:release": "node --test scripts/release-family.test.cjs ../../ops/jobs/publish-changed-packages/publish.test.cjs ../../ops/jobs/release-hb-sdk/docs-release-contract.test.cjs",
185
+ "release:verify-tarball": "node scripts/skill/verify-tarball-install.mjs",
186
+ "test:release": "node --test scripts/public-changelog.test.mjs scripts/public-changelog-workflow.test.cjs scripts/release-family.test.cjs ../../ops/jobs/publish-changed-packages/publish.test.cjs ../../ops/jobs/release-hb-sdk/docs-release-contract.test.cjs ../../ops/jobs/release-hb-sdk/stable-promote-coordinator.test.cjs",
180
187
  "test:compatibility-evidence": "node --test scripts/validate-compatibility-evidence.test.mjs",
181
188
  "release:prepare": "node scripts/release-prepare.cjs",
182
189
  "release:tag": "node scripts/release-tag.cjs",
183
190
  "release:family:dry-run": "node ../../ops/jobs/publish-changed-packages/publish.cjs --dry-run",
184
191
  "release:family:promote": "node ../../ops/jobs/publish-changed-packages/publish.cjs --family-action promote",
185
- "release:family:rollback": "node ../../ops/jobs/publish-changed-packages/publish.cjs --family-action rollback"
192
+ "release:family:rollback": "node ../../ops/jobs/publish-changed-packages/publish.cjs --family-action rollback",
193
+ "release:stable:promote": "node ../../ops/jobs/release-hb-sdk/stable-promote-coordinator.cjs --action promote",
194
+ "release:stable:rollback": "node ../../ops/jobs/release-hb-sdk/stable-promote-coordinator.cjs --action rollback"
186
195
  }
187
196
  }