nekomeowww commited on
Commit
a4ca63e
·
1 Parent(s): 0513257

release: build 1a773e6893851f9dd8072df12145ecc3511a5bfd

Browse files
assets/{BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js → BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{d as g,b9 as m,ba as h,e as s,f as p,v as x,A as y,o as E,c as M,n as T,J as b}from"./index-3swFZ_7b.js";const H=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:m(["submit"],["update:modelValue"]),setup(u,{emit:i}){const c=i,a=h(u,"modelValue"),t=s(),l=s({height:"auto",overflowY:"hidden"});function f(e){e.target instanceof HTMLTextAreaElement&&(e.target.style.height="auto",e.target.style.height=`${e.target.scrollHeight}px`)}function d(e){var n,o;if(e.target instanceof HTMLTextAreaElement)if(e.code==="Enter"&&e.shiftKey){e.preventDefault();const r=(n=e.target)==null?void 0:n.selectionStart,v=(o=e.target)==null?void 0:o.selectionEnd;a.value=`${a.value.substring(0,r)}
2
  ${a.value.substring(v)}`,l.value.height="0",b().then(()=>{t.value&&(t.value.selectionStart=t.value.selectionEnd=r+1,l.value.height=`${t.value.scrollHeight}px`)})}else e.code==="Enter"&&(e.preventDefault(),c("submit",a.value))}return p(()=>{t.value&&(l.value.height=`${t.value.scrollHeight}px`)}),(e,n)=>x((E(),M("textarea",{ref_key:"textareaRef",ref:t,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),style:T(l.value),onInput:f,onKeydown:d},null,36)),[[y,a.value]])}});export{H as _};
 
1
+ import{d as g,b9 as m,ba as h,e as s,f as p,v as x,A as y,o as E,c as M,n as T,J as b}from"./index-omOmkRuq.js";const H=g({__name:"BasicTextarea",props:{modelValue:{default:""},modelModifiers:{}},emits:m(["submit"],["update:modelValue"]),setup(u,{emit:i}){const c=i,a=h(u,"modelValue"),t=s(),l=s({height:"auto",overflowY:"hidden"});function f(e){e.target instanceof HTMLTextAreaElement&&(e.target.style.height="auto",e.target.style.height=`${e.target.scrollHeight}px`)}function d(e){var n,o;if(e.target instanceof HTMLTextAreaElement)if(e.code==="Enter"&&e.shiftKey){e.preventDefault();const r=(n=e.target)==null?void 0:n.selectionStart,v=(o=e.target)==null?void 0:o.selectionEnd;a.value=`${a.value.substring(0,r)}
2
  ${a.value.substring(v)}`,l.value.height="0",b().then(()=>{t.value&&(t.value.selectionStart=t.value.selectionEnd=r+1,l.value.height=`${t.value.scrollHeight}px`)})}else e.code==="Enter"&&(e.preventDefault(),c("submit",a.value))}return p(()=>{t.value&&(l.value.height=`${t.value.scrollHeight}px`)}),(e,n)=>x((E(),M("textarea",{ref_key:"textareaRef",ref:t,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),style:T(l.value),onInput:f,onKeydown:d},null,36)),[[y,a.value]])}});export{H as _};
assets/{_...all_-CZCOUZFR.js → _...all_-VF7BlSbh.js} RENAMED
@@ -1 +1 @@
1
- import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-3swFZ_7b.js";const c={};function n(r,t){return o(),_("div",null," 404 - Page not found ")}const f=e(c,[["render",n]]);export{f as default};
 
1
+ import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o,c as _}from"./index-omOmkRuq.js";const c={};function n(r,t){return o(),_("div",null," 404 - Page not found ")}const f=e(c,[["render",n]]);export{f as default};
assets/{audio-8o_Jcuem.js → audio-C1c0iS-D.js} RENAMED
@@ -1 +1 @@
1
- import{d as s,e as f,o as d,c as p,h as t}from"./index-3swFZ_7b.js";const R=s({__name:"audio",setup(_){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(d(),p("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
 
1
+ import{d as s,e as f,o as d,c as p,h as t}from"./index-omOmkRuq.js";const R=s({__name:"audio",setup(_){const a=f(),l=f();function u(o){var r,c,i;if(!o)return;const n=(c=(r=l.value)==null?void 0:r.files)==null?void 0:c[0];if(!n)return;const e=document.createElement("audio");(i=a.value)==null||i.appendChild(e),e.src=URL.createObjectURL(n),e.controls=!0,e.load(),e.play()}return(o,n)=>(d(),p("div",null,[t("div",null,[t("div",{ref_key:"containerRef",ref:a},null,512),t("input",{ref_key:"fileInputRef",ref:l,type:"file",onChange:u},null,544)])]))}});export{R as default};
assets/{default-D12Gmpa-.js → default-CoXafp28.js} RENAMED
@@ -1 +1 @@
1
- import{u as p}from"./index-CZTJHyE9.js";import{d as s,c,a as d,n as i,u as e,r as m,o as u}from"./index-3swFZ_7b.js";const h=s({__name:"default",setup(f){const{top:t,right:o,bottom:a,left:n}=p();return(l,_)=>{const r=m("RouterView");return u(),c("main",{text:"gray-700 dark:gray-200","font-cuteen":"","h-full":"",style:i({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{h as default};
 
1
+ import{u as p}from"./index-Dvr_Xx2O.js";import{d as s,c,a as d,n as i,u as e,r as m,o as u}from"./index-omOmkRuq.js";const h=s({__name:"default",setup(f){const{top:t,right:o,bottom:a,left:n}=p();return(l,_)=>{const r=m("RouterView");return u(),c("main",{text:"gray-700 dark:gray-200","font-cuteen":"","h-full":"",style:i({paddingTop:`${e(t)}px`,paddingRight:`${e(o)}px`,paddingBottom:`${e(a)}px`,paddingLeft:`${e(n)}px`})},[d(r)],4)}}});export{h as default};
assets/{delays-Dsh5ZUYo.js → delays-C0-TiJUZ.js} RENAMED
@@ -1 +1 @@
1
- import{_ as g}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js";import{i as _,l as k}from"./queues-DD4SrOHR.js";import{d as y,e as d,o as s,c as l,h as e,a as z,z as i,F as f,C as p}from"./index-3swFZ_7b.js";import"./queue-BkcjewFD.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},x={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},P=y({__name:"delays",setup(E){const t=d(""),m=d([]),c=d([]),r=d(!1),u=_();u.onHandlerEvent("delay",a=>{c.value.push(a)});function v(){r.value=!0;const a=t.value.split("");for(const n of a)u.add(n);u.add(k),t.value="",r.value=!1}return(a,n)=>(s(),l("div",b,[e("div",x,[z(g,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",h,i(r.value?"Processing...":"Send"),1)]),e("div",w,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(s(!0),l(f,null,p(m.value,o=>(s(),l("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(s(!0),l(f,null,p(c.value,o=>(s(),l("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{P as default};
 
1
+ import{_ as g}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js";import{i as _,l as k}from"./queues-CDF5tlsH.js";import{d as y,e as d,o as s,c as l,h as e,a as z,z as i,F as f,C as p}from"./index-omOmkRuq.js";import"./queue-BCkxhUb6.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},x={flex:"","flex-row":"","gap-2":""},h={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},w={"w-full":"",flex:"","flex-row":"","gap-4":""},M={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},V={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},P=y({__name:"delays",setup(E){const t=d(""),m=d([]),c=d([]),r=d(!1),u=_();u.onHandlerEvent("delay",a=>{c.value.push(a)});function v(){r.value=!0;const a=t.value.split("");for(const n of a)u.add(n);u.add(k),t.value="",r.value=!1}return(a,n)=>(s(),l("div",b,[e("div",x,[z(g,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=o=>t.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:v},null,8,["modelValue"]),e("button",h,i(r.value?"Processing...":"Send"),1)]),e("div",w,[e("div",M,[n[1]||(n[1]=e("h3",{"font-semibold":""}," Emotion Message ",-1)),(s(!0),l(f,null,p(m.value,o=>(s(),l("div",{key:o},[e("div",null,i(o),1)]))),128))]),e("div",V,[n[2]||(n[2]=e("h3",{"font-semibold":""}," Delays ",-1)),(s(!0),l(f,null,p(c.value,o=>(s(),l("div",{key:o},[e("div",null,i(o)+"s",1)]))),128))])])]))}});export{P as default};
assets/{emotions-CUROTVaZ.js → emotions-VSPJ4t6x.js} RENAMED
@@ -1 +1 @@
1
- import{_ as k}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js";import{u as m}from"./queue-BkcjewFD.js";import{h,l as z}from"./queues-DD4SrOHR.js";import{d as b,e as u,o as t,c as l,h as e,a as x,z as r,F as p,C as g}from"./index-3swFZ_7b.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},y={flex:"","flex-row":"","gap-2":""},M={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},E={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"emotions",setup(S){const a=u(""),i=u([]),c=u([]),d=u(!1);m({handlers:[async s=>{i.value.push(s.data)}]});const v=m({handlers:[async s=>{c.value.push(s.data)}]}),f=h(v);function _(){d.value=!0;const s=a.value.split("");for(const o of s)f.add(o);f.add(z),a.value="",d.value=!1}return(s,o)=>(t(),l("div",w,[e("div",y,[x(k,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=n=>a.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:_},null,8,["modelValue"]),e("button",M,r(d.value?"Processing...":"Send"),1)]),e("div",V,[e("div",E,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),l(p,null,g(i.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))]),e("div",Q,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),l(p,null,g(c.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))])])]))}});export{I as default};
 
1
+ import{_ as k}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js";import{u as m}from"./queue-BCkxhUb6.js";import{h,l as z}from"./queues-CDF5tlsH.js";import{d as b,e as u,o as t,c as l,h as e,a as x,z as r,F as p,C as g}from"./index-omOmkRuq.js";const w={flex:"","flex-col":"","gap-2":"","p-2":""},y={flex:"","flex-row":"","gap-2":""},M={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},E={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},Q={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},I=b({__name:"emotions",setup(S){const a=u(""),i=u([]),c=u([]),d=u(!1);m({handlers:[async s=>{i.value.push(s.data)}]});const v=m({handlers:[async s=>{c.value.push(s.data)}]}),f=h(v);function _(){d.value=!0;const s=a.value.split("");for(const o of s)f.add(o);f.add(z),a.value="",d.value=!1}return(s,o)=>(t(),l("div",w,[e("div",y,[x(k,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=n=>a.value=n),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:_},null,8,["modelValue"]),e("button",M,r(d.value?"Processing...":"Send"),1)]),e("div",V,[e("div",E,[o[1]||(o[1]=e("h3",{"font-semibold":""}," Messages ",-1)),(t(!0),l(p,null,g(i.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))]),e("div",Q,[o[2]||(o[2]=e("h3",{"font-semibold":""}," Emotions ",-1)),(t(!0),l(p,null,g(c.value,n=>(t(),l("div",{key:n},[e("div",null,r(n),1)]))),128))])])]))}});export{I as default};
assets/{filter-message-EeBVOV7n.js → filter-message-D4Zz6qSv.js} RENAMED
@@ -1 +1 @@
1
- import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js";import{d as g,e as u,o as _,c as v,h as s,a as x,z as d}from"./index-3swFZ_7b.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},z={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},k={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},B=g({__name:"filter-message",setup(w){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m;return _(),v("div",b,[s("div",z,[x(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",S,d(c.value?"Processing...":"Send"),1)]),s("div",k,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{B as default};
 
1
+ import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js";import{d as g,e as u,o as _,c as v,h as s,a as x,z as d}from"./index-omOmkRuq.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},z={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},k={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},B=g({__name:"filter-message",setup(w){const o=u(""),c=u(!1),i=u({content:""});async function f(r){return new Promise(e=>setTimeout(e,r))}async function p(){c.value=!0;const r=o.value.split("");let e;(a=>{a.Literal="literal",a.Special="special"})(e||(e={}));let l="literal",t="";for(const a of r){await f(50);let n=l;a==="<"?n="special":a===">"&&(n="literal"),l==="literal"&&n==="special"&&(i.value.content+=t,t=""),l==="special"&&n==="literal"&&(t=""),l==="literal"&&n==="literal"&&(i.value.content+=a,t=""),l=n}t&&(i.value.content+=t),o.value="",c.value=!1}return(r,e)=>{const l=m;return _(),v("div",b,[s("div",z,[x(l,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value=t),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),s("button",S,d(c.value?"Processing...":"Send"),1)]),s("div",k,[e[1]||(e[1]=s("h3",{"font-semibold":""}," Streaming Message ",-1)),s("div",null,d(i.value.content),1)])])}}});export{B as default};
assets/{image-BefEbnSl.js → image-D9IghUaD.js} RENAMED
@@ -1,2 +1,2 @@
1
- import{m as _}from"./index-CZTJHyE9.js";import{d as y,e as c,o as d,c as u,h as a,z as x,u as v,i as h}from"./index-3swFZ_7b.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const b={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],R={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},k=y({__name:"image",setup(D){const p=c(),o=c(""),{copy:m}=_({source:o});async function g(s){return new Promise((e,n)=>{const t=new FileReader;t.onload=r=>{var l,i;e(((i=(l=r.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=r=>{n(r)},t.readAsDataURL(s)})}async function f(s){var t;const n=(t=s.target.files)==null?void 0:t[0];if(n){p.value=n;const r=await g(n);o.value=r}}return(s,e)=>(d(),u("div",null,[a("label",b,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),o.value?(d(),u("div",C,[a("img",{src:o.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",R," "+x(o.value)+`
2
  `,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):h("",!0)]))}}),A=w(k,[["__scopeId","data-v-7edd53e6"]]);export{A as default};
 
1
+ import{m as _}from"./index-Dvr_Xx2O.js";import{d as y,e as c,o as d,c as u,h as a,z as x,u as v,i as h}from"./index-omOmkRuq.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const b={bg:"neutral-100",flex:"~ col","items-center":"","justify-center":"","rounded-lg":"","px-4":"","py-3":""},C={key:0},U=["src"],R={bg:"neutral-100",class:"text-wrap-any","max-h":"100","overflow-scroll":"","rounded-lg":"","text-wrap":"","text-black":"","font-mono":""},k=y({__name:"image",setup(D){const p=c(),o=c(""),{copy:m}=_({source:o});async function g(s){return new Promise((e,n)=>{const t=new FileReader;t.onload=r=>{var l,i;e(((i=(l=r.target)==null?void 0:l.result)==null?void 0:i.toString())||"")},t.onerror=r=>{n(r)},t.readAsDataURL(s)})}async function f(s){var t;const n=(t=s.target.files)==null?void 0:t[0];if(n){p.value=n;const r=await g(n);o.value=r}}return(s,e)=>(d(),u("div",null,[a("label",b,[a("input",{type:"file",accept:"image/*",hidden:"",onChange:f},null,32),e[1]||(e[1]=a("span",null,"Upload Image",-1))]),o.value?(d(),u("div",C,[a("img",{src:o.value,alt:"Uploaded Image","w-100":""},null,8,U),a("pre",R," "+x(o.value)+`
2
  `,1),a("button",{bg:"primary-500",text:"white","mt-4":"","rounded-lg":"","px-4":"","py-2":"",onClick:e[0]||(e[0]=()=>v(m)())}," Copy Data URL ")])):h("",!0)]))}}),A=w(k,[["__scopeId","data-v-7edd53e6"]]);export{A as default};
assets/{index-9eV_EGWE.css → index-C0D4kTzK.css} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{index-CZTJHyE9.js → index-Dvr_Xx2O.js} RENAMED
@@ -1 +1 @@
1
- import{e as b,bU as Z,a2 as Te,a3 as _e,u as Ce,H as Oe,bV as xe,f as me,J as pe,Z as ee,bW as he,V as We,D as Ve,w as k,k as x,ak as X,L as se,a1 as Ae,bX as De}from"./index-3swFZ_7b.js";function I(e){return Te()?(_e(e),!0):!1}const K=new WeakMap,Ne=(...e)=>{var t;const n=e[0],r=(t=ee())==null?void 0:t.proxy;if(r==null&&!he())throw new Error("injectLocal must be called in setup");return r&&K.has(r)&&n in K.get(r)?K.get(r)[n]:We(...e)};function T(e){return typeof e=="function"?e():Ce(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Me=e=>e!=null,ke=Object.prototype.toString,Le=e=>ke.call(e)==="[object Object]",j=()=>{};function te(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const we=e=>e();function Re(e,t={}){let n,r,i=j;const o=s=>{clearTimeout(s),i(),i=j};return s=>{const c=T(e),u=T(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((d,f)=>{i=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(s())},c)})}}function je(...e){let t=0,n,r=!0,i=j,o,a,s,c,u;!Ve(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,c=!0,u=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=j)};return m=>{const l=T(a),v=Date.now()-t,w=()=>o=m();return d(),l<=0?(t=Date.now(),w()):(v>l&&(c||!r)?(t=Date.now(),w()):s&&(o=new Promise((g,E)=>{i=u?E:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(w()),d()},Math.max(0,l-v))})),!c&&!n&&(n=setTimeout(()=>r=!0,l)),r=!1,o)}}function Fe(e=we){const t=b(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Z(t),pause:n,resume:r,eventFilter:i}}function Pe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function ze(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",i=e.slice(r.length),o=Number.parseFloat(r)+t;return Number.isNaN(o)?e:o+i}function B(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ie(e){return ee()}function He(...e){if(e.length!==1)return Oe(...e);const t=e[0];return typeof t=="function"?Z(xe(()=>({get:t,set:j}))):b(t)}function ge(e,t=200,n={}){return te(Re(t,n),e)}function $e(e,t=200,n=!1,r=!0,i=!1){return te(je(t,n,r,i),e)}function Be(e,t,n={}){const{eventFilter:r=we,...i}=n;return k(e,te(r,t),i)}function qe(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:c}=Fe(r);return{stop:Be(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:c}}function H(e,t=!0,n){Ie()?me(e,n):t?e():pe(e)}function Je(e,t,n={}){const{immediate:r=!0}=n,i=b(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function c(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},T(t))}return r&&(i.value=!0,Y&&c()),I(s),{isPending:Z(i),start:c,stop:s}}const D=Y?window:void 0,ne=Y?window.navigator:void 0;function L(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}function M(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=D):[t,n,r,i]=e,!t)return j;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},s=(d,f,m,l)=>(d.addEventListener(f,m,l),()=>d.removeEventListener(f,m,l)),c=k(()=>[L(t),T(i)],([d,f])=>{if(a(),!d)return;const m=Le(f)?{...f}:f;o.push(...n.flatMap(l=>r.map(v=>s(d,l,v,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return I(u),u}function Ge(){const e=b(!1),t=ee();return t&&me(()=>{e.value=!0},t),e}function $(e){const t=Ge();return x(()=>(t.value,!!e()))}function ye(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const m=T(e),l=(Array.isArray(m)?m:[m]).map(L).filter(Me);return new Set(l)}),u=k(()=>c.value,m=>{s(),a.value&&m.size&&(o=new MutationObserver(t),m.forEach(l=>o.observe(l,i)))},{immediate:!0,flush:"post"}),d=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return I(f),{isSupported:a,stop:f,takeRecords:d}}const Ue=Symbol("vueuse-ssr-width");function be(){const e=he()?Ne(Ue,null):null;return typeof e=="number"?e:void 0}function z(e,t={}){const{window:n=D,ssrWidth:r=be()}=t,i=$(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=b(typeof r=="number");let a;const s=b(!1),c=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},d=Ae(()=>{if(o.value){o.value=!i.value;const f=T(e).split(",");s.value=f.some(m=>{const l=m.includes("not all"),v=m.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=m.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(v||w);return v&&g&&(g=r>=B(v[1])),w&&g&&(g=r<=B(w[1])),l?!g:g});return}i.value&&(u(),a=n.matchMedia(T(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),s.value=a.matches)});return I(()=>{d(),u(),a=void 0}),x(()=>s.value)}const ot={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function it(e,t={}){function n(l,v){let w=T(e[T(l)]);return v!=null&&(w=ze(w,v)),typeof w=="number"&&(w=`${w}px`),w}const{window:r=D,strategy:i="min-width",ssrWidth:o=be()}=t,a=typeof o=="number",s=a?b(!1):{value:!0};a&&H(()=>s.value=!!r);function c(l,v){return!s.value&&a?l==="min"?o>=B(v):o<=B(v):r?r.matchMedia(`(${l}-width: ${v})`).matches:!1}const u=l=>z(()=>`(min-width: ${n(l)})`,t),d=l=>z(()=>`(max-width: ${n(l)})`,t),f=Object.keys(e).reduce((l,v)=>(Object.defineProperty(l,v,{get:()=>i==="min-width"?u(v):d(v),enumerable:!0,configurable:!0}),l),{});function m(){const l=Object.keys(e).map(v=>[v,f[v],B(n(v))]).sort((v,w)=>v[2]-w[2]);return x(()=>l.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:d,greater(l){return z(()=>`(min-width: ${n(l,.1)})`,t)},smaller(l){return z(()=>`(max-width: ${n(l,-.1)})`,t)},between(l,v){return z(()=>`(min-width: ${n(l)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(l){return c("min",n(l,.1))},isGreaterOrEqual(l){return c("min",n(l))},isSmaller(l){return c("max",n(l,-.1))},isSmallerOrEqual(l){return c("max",n(l))},isInBetween(l,v){return c("min",n(l))&&c("max",n(v,-.1))},current:m,active(){const l=m();return x(()=>l.value.length===0?"":l.value.at(i==="min-width"?-1:0))}})}function Q(e,t={}){const{controls:n=!1,navigator:r=ne}=t,i=$(()=>r&&"permissions"in r),o=X(),a=typeof e=="string"?{name:e}:e,s=X(),c=()=>{var d,f;s.value=(f=(d=o.value)==null?void 0:d.state)!=null?f:"prompt"};M(o,"change",c);const u=Pe(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(a)}catch{o.value=void 0}finally{c()}if(n)return De(o.value)}});return u(),n?{state:s,isSupported:i,query:u}:s}function at(e={}){const{navigator:t=ne,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,a=$(()=>t&&"clipboard"in t),s=Q("clipboard-read"),c=Q("clipboard-write"),u=x(()=>a.value||o),d=b(""),f=b(!1),m=Je(()=>f.value=!1,i);function l(){a.value&&E(s.value)?t.clipboard.readText().then(p=>{d.value=p}):d.value=g()}u.value&&n&&M(["copy","cut"],l);async function v(p=T(r)){u.value&&p!=null&&(a.value&&E(c.value)?await t.clipboard.writeText(p):w(p),d.value=p,f.value=!0,m.start())}function w(p){const V=document.createElement("textarea");V.value=p??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function g(){var p,V,C;return(C=(V=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:V.toString())!=null?C:""}function E(p){return p==="granted"||p==="prompt"}return{isSupported:u,text:d,copied:f,copy:v}}const q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",Xe=Ye();function Ye(){return J in q||(q[J]=q[J]||{}),q[J]}function Se(e,t){return Xe[e]||t}function Ke(e){return z("(prefers-color-scheme: dark)",e)}function Qe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ze={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ue="vueuse-storage";function Ee(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=D,eventFilter:m,onError:l=h=>{console.error(h)},initOnMounted:v}=r,w=(d?X:b)(typeof t=="function"?t():t);if(!n)try{n=Se("getDefaultStorage",()=>{var h;return(h=D)==null?void 0:h.localStorage})()}catch(h){l(h)}if(!n)return w;const g=T(t),E=Qe(g),p=(i=r.serializer)!=null?i:Ze[E],{pause:V,resume:C}=qe(w,()=>F(w.value),{flush:o,deep:a,eventFilter:m});f&&s&&H(()=>{n instanceof Storage?M(f,"storage",A):M(f,ue,O),v&&A()}),v||A();function N(h,S){if(f){const _={key:e,oldValue:h,newValue:S,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",_):new CustomEvent(ue,{detail:_}))}}function F(h){try{const S=n.getItem(e);if(h==null)N(S,null),n.removeItem(e);else{const _=p.write(h);S!==_&&(n.setItem(e,_),N(S,_))}}catch(S){l(S)}}function y(h){const S=h?h.newValue:n.getItem(e);if(S==null)return c&&g!=null&&n.setItem(e,p.write(g)),g;if(!h&&u){const _=p.read(S);return typeof u=="function"?u(_,g):E==="object"&&!Array.isArray(_)?{...g,..._}:_}else return typeof S!="string"?S:p.read(S)}function A(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){w.value=g;return}if(!(h&&h.key!==e)){V();try{(h==null?void 0:h.newValue)!==p.write(w.value)&&(w.value=y(h))}catch(S){l(S)}finally{h?pe(C):C()}}}}function O(h){A(h.detail)}return w}const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=D,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Ke({window:i}),l=x(()=>m.value?"dark":"light"),v=c||(a==null?He(r):Ee(a,r,o,{window:i,listenToStorageChanges:s})),w=x(()=>v.value==="auto"?l.value:v.value),g=Se("updateHTMLAttrs",(C,N,F)=>{const y=typeof C=="string"?i==null?void 0:i.document.querySelector(C):L(C);if(!y)return;const A=new Set,O=new Set;let h=null;if(N==="class"){const _=F.split(/\s/g);Object.values(f).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{_.includes(W)?A.add(W):O.add(W)})}else h={key:N,value:F};if(A.size===0&&O.size===0&&h===null)return;let S;d&&(S=i.document.createElement("style"),S.appendChild(document.createTextNode(et)),i.document.head.appendChild(S));for(const _ of A)y.classList.add(_);for(const _ of O)y.classList.remove(_);h&&y.setAttribute(h.key,h.value),d&&(i.getComputedStyle(S).opacity,document.head.removeChild(S))});function E(C){var N;g(t,n,(N=f[C])!=null?N:C)}function p(C){e.onChanged?e.onChanged(C,E):E(C)}k(w,p,{flush:"post",immediate:!0}),H(()=>p(w.value));const V=x({get(){return u?v.value:w.value},set(C){v.value=C}});return Object.assign(V,{store:v,system:l,state:w})}function G(e,t,n={}){const{window:r=D,initialValue:i,observe:o=!1}=n,a=b(i),s=x(()=>{var u;return L(t)||((u=r==null?void 0:r.document)==null?void 0:u.documentElement)});function c(){var u;const d=T(e),f=T(s);if(f&&r&&d){const m=(u=r.getComputedStyle(f).getPropertyValue(d))==null?void 0:u.trim();a.value=m||i}}return o&&ye(s,c,{attributeFilter:["style","class"],window:r}),k([s,()=>T(e)],(u,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),c()},{immediate:!0}),k(a,u=>{var d;const f=T(e);(d=s.value)!=null&&d.style&&f&&(u==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,u))}),a}function st(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=tt({...e,onChanged:(a,s)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),i=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";i.value===s?r.value="auto":r.value=s}})}function ut(e={}){const{navigator:t=ne,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,o=b([]),a=x(()=>o.value.filter(v=>v.kind==="videoinput")),s=x(()=>o.value.filter(v=>v.kind==="audioinput")),c=x(()=>o.value.filter(v=>v.kind==="audiooutput")),u=$(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=b(!1);let f;async function m(){u.value&&(o.value=await t.mediaDevices.enumerateDevices(),i==null||i(o.value),f&&(f.getTracks().forEach(v=>v.stop()),f=null))}async function l(){if(!u.value)return!1;if(d.value)return!0;const{state:v,query:w}=Q("camera",{controls:!0});if(await w(),v.value!=="granted"){let g=!0;try{f=await t.mediaDevices.getUserMedia(r)}catch{f=null,g=!1}m(),d.value=g}else d.value=!0;return d.value}return u.value&&(n&&l(),M(t.mediaDevices,"devicechange",m),m()),{devices:o,ensurePermissions:l,permissionGranted:d,videoInputs:a,audioInputs:s,audioOutputs:c,isSupported:u}}function nt(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const f=T(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=k(c,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const m of f)m&&o.observe(m,i)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return I(d),{isSupported:a,stop:d}}function lt(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=t,s=b(0),c=b(0),u=b(0),d=b(0),f=b(0),m=b(0),l=b(0),v=b(0);function w(){const E=L(e);if(!E){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,m.value=0,l.value=0,v.value=0);return}const p=E.getBoundingClientRect();s.value=p.height,c.value=p.bottom,u.value=p.left,d.value=p.right,f.value=p.top,m.value=p.width,l.value=p.x,v.value=p.y}function g(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return nt(e,g),k(()=>L(e),E=>!E&&g()),ye(e,g,{attributeFilter:["style","class"]}),i&&M("scroll",g,{capture:!0,passive:!0}),r&&M("resize",g,{passive:!0}),H(()=>{o&&g()}),{height:s,bottom:c,left:u,right:d,top:f,width:m,x:l,y:v,update:g}}const le=1;function ct(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=j,onScroll:o=j,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=D,onError:d=y=>{console.error(y)}}=t,f=b(0),m=b(0),l=x({get(){return f.value},set(y){w(y,void 0)}}),v=x({get(){return m.value},set(y){w(void 0,y)}});function w(y,A){var O,h,S,_;if(!u)return;const W=T(e);if(!W)return;(S=W instanceof Document?u.document.body:W)==null||S.scrollTo({top:(O=T(A))!=null?O:v.value,left:(h=T(y))!=null?h:l.value,behavior:T(c)});const R=((_=W==null?void 0:W.document)==null?void 0:_.documentElement)||(W==null?void 0:W.documentElement)||W;l!=null&&(f.value=R.scrollLeft),v!=null&&(m.value=R.scrollTop)}const g=b(!1),E=se({left:!0,right:!1,top:!0,bottom:!1}),p=se({left:!1,right:!1,top:!1,bottom:!1}),V=y=>{g.value&&(g.value=!1,p.left=!1,p.right=!1,p.top=!1,p.bottom=!1,i(y))},C=ge(V,n+r),N=y=>{var A;if(!u)return;const O=((A=y==null?void 0:y.document)==null?void 0:A.documentElement)||(y==null?void 0:y.documentElement)||L(y),{display:h,flexDirection:S,direction:_}=getComputedStyle(O),W=_==="rtl"?-1:1,R=O.scrollLeft;p.left=R<f.value,p.right=R>f.value;const re=R*W<=(a.left||0),oe=R*W+O.clientWidth>=O.scrollWidth-(a.right||0)-le;h==="flex"&&S==="row-reverse"?(E.left=oe,E.right=re):(E.left=re,E.right=oe),f.value=R;let P=O.scrollTop;y===u.document&&!P&&(P=u.document.body.scrollTop),p.top=P<m.value,p.bottom=P>m.value;const ie=P<=(a.top||0),ae=P+O.clientHeight>=O.scrollHeight-(a.bottom||0)-le;h==="flex"&&S==="column-reverse"?(E.top=ae,E.bottom=ie):(E.top=ie,E.bottom=ae),m.value=P},F=y=>{var A;if(!u)return;const O=(A=y.target.documentElement)!=null?A:y.target;N(O),g.value=!0,C(y),o(y)};return M(e,"scroll",n?$e(F,n,!0,!1):F,s),H(()=>{try{const y=T(e);if(!y)return;N(y)}catch(y){d(y)}}),M(e,"scrollend",V,s),{x:l,y:v,isScrolling:g,arrivedState:E,directions:p,measure(){const y=T(e);u&&y&&N(y)}}}function ft(e,t,n={}){const{window:r=D}=n;return Ee(e,t,r==null?void 0:r.localStorage,n)}const ce="--vueuse-safe-area-top",fe="--vueuse-safe-area-right",de="--vueuse-safe-area-bottom",ve="--vueuse-safe-area-left";function dt(){const e=b(""),t=b(""),n=b(""),r=b("");if(Y){const o=G(ce),a=G(fe),s=G(de),c=G(ve);o.value="env(safe-area-inset-top, 0px)",a.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",i(),M("resize",ge(i))}function i(){e.value=U(ce),t.value=U(fe),n.value=U(de),r.value=U(ve)}return{top:e,right:t,bottom:n,left:r,update:i}}function U(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function vt(e,t,n){const{window:r=D}={},i=b(null),o=X(),a=(...c)=>{o.value&&o.value.postMessage(...c)},s=function(){o.value&&o.value.terminate()};return r&&(o.value=new Worker(e,t),o.value.onmessage=c=>{i.value=c.data},I(()=>{o.value&&o.value.terminate()})),{data:i,post:a,terminate:s,worker:o}}function mt(e={}){const{window:t=D,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=b(n),c=b(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,c.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:d,height:f,scale:m}=t.visualViewport;s.value=Math.round(d*m),c.value=Math.round(f*m)}else o?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};if(u(),H(u),M("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&M(t.visualViewport,"resize",u,{passive:!0}),i){const d=z("(orientation: portrait)");k(d,()=>u())}return{width:s,height:c}}export{M as a,ft as b,ut as c,st as d,Q as e,vt as f,lt as g,ct as h,it as i,ot as j,ge as k,mt as l,at as m,H as t,dt as u};
 
1
+ import{e as b,bU as Z,a2 as Te,a3 as _e,u as Ce,H as Oe,bV as xe,f as me,J as pe,Z as ee,bW as he,V as We,D as Ve,w as k,k as x,ak as X,L as se,a1 as Ae,bX as De}from"./index-omOmkRuq.js";function I(e){return Te()?(_e(e),!0):!1}const K=new WeakMap,Ne=(...e)=>{var t;const n=e[0],r=(t=ee())==null?void 0:t.proxy;if(r==null&&!he())throw new Error("injectLocal must be called in setup");return r&&K.has(r)&&n in K.get(r)?K.get(r)[n]:We(...e)};function T(e){return typeof e=="function"?e():Ce(e)}const Y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Me=e=>e!=null,ke=Object.prototype.toString,Le=e=>ke.call(e)==="[object Object]",j=()=>{};function te(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const we=e=>e();function Re(e,t={}){let n,r,i=j;const o=s=>{clearTimeout(s),i(),i=j};return s=>{const c=T(e),u=T(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((d,f)=>{i=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(s())},c)})}}function je(...e){let t=0,n,r=!0,i=j,o,a,s,c,u;!Ve(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,c=!0,u=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=j)};return m=>{const l=T(a),v=Date.now()-t,w=()=>o=m();return d(),l<=0?(t=Date.now(),w()):(v>l&&(c||!r)?(t=Date.now(),w()):s&&(o=new Promise((g,E)=>{i=u?E:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(w()),d()},Math.max(0,l-v))})),!c&&!n&&(n=setTimeout(()=>r=!0,l)),r=!1,o)}}function Fe(e=we){const t=b(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Z(t),pause:n,resume:r,eventFilter:i}}function Pe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function ze(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",i=e.slice(r.length),o=Number.parseFloat(r)+t;return Number.isNaN(o)?e:o+i}function B(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ie(e){return ee()}function He(...e){if(e.length!==1)return Oe(...e);const t=e[0];return typeof t=="function"?Z(xe(()=>({get:t,set:j}))):b(t)}function ge(e,t=200,n={}){return te(Re(t,n),e)}function $e(e,t=200,n=!1,r=!0,i=!1){return te(je(t,n,r,i),e)}function Be(e,t,n={}){const{eventFilter:r=we,...i}=n;return k(e,te(r,t),i)}function qe(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:c}=Fe(r);return{stop:Be(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:c}}function H(e,t=!0,n){Ie()?me(e,n):t?e():pe(e)}function Je(e,t,n={}){const{immediate:r=!0}=n,i=b(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function c(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},T(t))}return r&&(i.value=!0,Y&&c()),I(s),{isPending:Z(i),start:c,stop:s}}const D=Y?window:void 0,ne=Y?window.navigator:void 0;function L(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}function M(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=D):[t,n,r,i]=e,!t)return j;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},s=(d,f,m,l)=>(d.addEventListener(f,m,l),()=>d.removeEventListener(f,m,l)),c=k(()=>[L(t),T(i)],([d,f])=>{if(a(),!d)return;const m=Le(f)?{...f}:f;o.push(...n.flatMap(l=>r.map(v=>s(d,l,v,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return I(u),u}function Ge(){const e=b(!1),t=ee();return t&&me(()=>{e.value=!0},t),e}function $(e){const t=Ge();return x(()=>(t.value,!!e()))}function ye(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const m=T(e),l=(Array.isArray(m)?m:[m]).map(L).filter(Me);return new Set(l)}),u=k(()=>c.value,m=>{s(),a.value&&m.size&&(o=new MutationObserver(t),m.forEach(l=>o.observe(l,i)))},{immediate:!0,flush:"post"}),d=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return I(f),{isSupported:a,stop:f,takeRecords:d}}const Ue=Symbol("vueuse-ssr-width");function be(){const e=he()?Ne(Ue,null):null;return typeof e=="number"?e:void 0}function z(e,t={}){const{window:n=D,ssrWidth:r=be()}=t,i=$(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=b(typeof r=="number");let a;const s=b(!1),c=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",c):a.removeListener(c))},d=Ae(()=>{if(o.value){o.value=!i.value;const f=T(e).split(",");s.value=f.some(m=>{const l=m.includes("not all"),v=m.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=m.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(v||w);return v&&g&&(g=r>=B(v[1])),w&&g&&(g=r<=B(w[1])),l?!g:g});return}i.value&&(u(),a=n.matchMedia(T(e)),"addEventListener"in a?a.addEventListener("change",c):a.addListener(c),s.value=a.matches)});return I(()=>{d(),u(),a=void 0}),x(()=>s.value)}const ot={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function it(e,t={}){function n(l,v){let w=T(e[T(l)]);return v!=null&&(w=ze(w,v)),typeof w=="number"&&(w=`${w}px`),w}const{window:r=D,strategy:i="min-width",ssrWidth:o=be()}=t,a=typeof o=="number",s=a?b(!1):{value:!0};a&&H(()=>s.value=!!r);function c(l,v){return!s.value&&a?l==="min"?o>=B(v):o<=B(v):r?r.matchMedia(`(${l}-width: ${v})`).matches:!1}const u=l=>z(()=>`(min-width: ${n(l)})`,t),d=l=>z(()=>`(max-width: ${n(l)})`,t),f=Object.keys(e).reduce((l,v)=>(Object.defineProperty(l,v,{get:()=>i==="min-width"?u(v):d(v),enumerable:!0,configurable:!0}),l),{});function m(){const l=Object.keys(e).map(v=>[v,f[v],B(n(v))]).sort((v,w)=>v[2]-w[2]);return x(()=>l.filter(([,v])=>v.value).map(([v])=>v))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:d,greater(l){return z(()=>`(min-width: ${n(l,.1)})`,t)},smaller(l){return z(()=>`(max-width: ${n(l,-.1)})`,t)},between(l,v){return z(()=>`(min-width: ${n(l)}) and (max-width: ${n(v,-.1)})`,t)},isGreater(l){return c("min",n(l,.1))},isGreaterOrEqual(l){return c("min",n(l))},isSmaller(l){return c("max",n(l,-.1))},isSmallerOrEqual(l){return c("max",n(l))},isInBetween(l,v){return c("min",n(l))&&c("max",n(v,-.1))},current:m,active(){const l=m();return x(()=>l.value.length===0?"":l.value.at(i==="min-width"?-1:0))}})}function Q(e,t={}){const{controls:n=!1,navigator:r=ne}=t,i=$(()=>r&&"permissions"in r),o=X(),a=typeof e=="string"?{name:e}:e,s=X(),c=()=>{var d,f;s.value=(f=(d=o.value)==null?void 0:d.state)!=null?f:"prompt"};M(o,"change",c);const u=Pe(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(a)}catch{o.value=void 0}finally{c()}if(n)return De(o.value)}});return u(),n?{state:s,isSupported:i,query:u}:s}function at(e={}){const{navigator:t=ne,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,a=$(()=>t&&"clipboard"in t),s=Q("clipboard-read"),c=Q("clipboard-write"),u=x(()=>a.value||o),d=b(""),f=b(!1),m=Je(()=>f.value=!1,i);function l(){a.value&&E(s.value)?t.clipboard.readText().then(p=>{d.value=p}):d.value=g()}u.value&&n&&M(["copy","cut"],l);async function v(p=T(r)){u.value&&p!=null&&(a.value&&E(c.value)?await t.clipboard.writeText(p):w(p),d.value=p,f.value=!0,m.start())}function w(p){const V=document.createElement("textarea");V.value=p??"",V.style.position="absolute",V.style.opacity="0",document.body.appendChild(V),V.select(),document.execCommand("copy"),V.remove()}function g(){var p,V,C;return(C=(V=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:V.toString())!=null?C:""}function E(p){return p==="granted"||p==="prompt"}return{isSupported:u,text:d,copied:f,copy:v}}const q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",Xe=Ye();function Ye(){return J in q||(q[J]=q[J]||{}),q[J]}function Se(e,t){return Xe[e]||t}function Ke(e){return z("(prefers-color-scheme: dark)",e)}function Qe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ze={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ue="vueuse-storage";function Ee(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=D,eventFilter:m,onError:l=h=>{console.error(h)},initOnMounted:v}=r,w=(d?X:b)(typeof t=="function"?t():t);if(!n)try{n=Se("getDefaultStorage",()=>{var h;return(h=D)==null?void 0:h.localStorage})()}catch(h){l(h)}if(!n)return w;const g=T(t),E=Qe(g),p=(i=r.serializer)!=null?i:Ze[E],{pause:V,resume:C}=qe(w,()=>F(w.value),{flush:o,deep:a,eventFilter:m});f&&s&&H(()=>{n instanceof Storage?M(f,"storage",A):M(f,ue,O),v&&A()}),v||A();function N(h,S){if(f){const _={key:e,oldValue:h,newValue:S,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",_):new CustomEvent(ue,{detail:_}))}}function F(h){try{const S=n.getItem(e);if(h==null)N(S,null),n.removeItem(e);else{const _=p.write(h);S!==_&&(n.setItem(e,_),N(S,_))}}catch(S){l(S)}}function y(h){const S=h?h.newValue:n.getItem(e);if(S==null)return c&&g!=null&&n.setItem(e,p.write(g)),g;if(!h&&u){const _=p.read(S);return typeof u=="function"?u(_,g):E==="object"&&!Array.isArray(_)?{...g,..._}:_}else return typeof S!="string"?S:p.read(S)}function A(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){w.value=g;return}if(!(h&&h.key!==e)){V();try{(h==null?void 0:h.newValue)!==p.write(w.value)&&(w.value=y(h))}catch(S){l(S)}finally{h?pe(C):C()}}}}function O(h){A(h.detail)}return w}const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function tt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=D,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Ke({window:i}),l=x(()=>m.value?"dark":"light"),v=c||(a==null?He(r):Ee(a,r,o,{window:i,listenToStorageChanges:s})),w=x(()=>v.value==="auto"?l.value:v.value),g=Se("updateHTMLAttrs",(C,N,F)=>{const y=typeof C=="string"?i==null?void 0:i.document.querySelector(C):L(C);if(!y)return;const A=new Set,O=new Set;let h=null;if(N==="class"){const _=F.split(/\s/g);Object.values(f).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{_.includes(W)?A.add(W):O.add(W)})}else h={key:N,value:F};if(A.size===0&&O.size===0&&h===null)return;let S;d&&(S=i.document.createElement("style"),S.appendChild(document.createTextNode(et)),i.document.head.appendChild(S));for(const _ of A)y.classList.add(_);for(const _ of O)y.classList.remove(_);h&&y.setAttribute(h.key,h.value),d&&(i.getComputedStyle(S).opacity,document.head.removeChild(S))});function E(C){var N;g(t,n,(N=f[C])!=null?N:C)}function p(C){e.onChanged?e.onChanged(C,E):E(C)}k(w,p,{flush:"post",immediate:!0}),H(()=>p(w.value));const V=x({get(){return u?v.value:w.value},set(C){v.value=C}});return Object.assign(V,{store:v,system:l,state:w})}function G(e,t,n={}){const{window:r=D,initialValue:i,observe:o=!1}=n,a=b(i),s=x(()=>{var u;return L(t)||((u=r==null?void 0:r.document)==null?void 0:u.documentElement)});function c(){var u;const d=T(e),f=T(s);if(f&&r&&d){const m=(u=r.getComputedStyle(f).getPropertyValue(d))==null?void 0:u.trim();a.value=m||i}}return o&&ye(s,c,{attributeFilter:["style","class"],window:r}),k([s,()=>T(e)],(u,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),c()},{immediate:!0}),k(a,u=>{var d;const f=T(e);(d=s.value)!=null&&d.style&&f&&(u==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,u))}),a}function st(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=tt({...e,onChanged:(a,s)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),i=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";i.value===s?r.value="auto":r.value=s}})}function ut(e={}){const{navigator:t=ne,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,o=b([]),a=x(()=>o.value.filter(v=>v.kind==="videoinput")),s=x(()=>o.value.filter(v=>v.kind==="audioinput")),c=x(()=>o.value.filter(v=>v.kind==="audiooutput")),u=$(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=b(!1);let f;async function m(){u.value&&(o.value=await t.mediaDevices.enumerateDevices(),i==null||i(o.value),f&&(f.getTracks().forEach(v=>v.stop()),f=null))}async function l(){if(!u.value)return!1;if(d.value)return!0;const{state:v,query:w}=Q("camera",{controls:!0});if(await w(),v.value!=="granted"){let g=!0;try{f=await t.mediaDevices.getUserMedia(r)}catch{f=null,g=!1}m(),d.value=g}else d.value=!0;return d.value}return u.value&&(n&&l(),M(t.mediaDevices,"devicechange",m),m()),{devices:o,ensurePermissions:l,permissionGranted:d,videoInputs:a,audioInputs:s,audioOutputs:c,isSupported:u}}function nt(e,t,n={}){const{window:r=D,...i}=n;let o;const a=$(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},c=x(()=>{const f=T(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=k(c,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const m of f)m&&o.observe(m,i)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return I(d),{isSupported:a,stop:d}}function lt(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=t,s=b(0),c=b(0),u=b(0),d=b(0),f=b(0),m=b(0),l=b(0),v=b(0);function w(){const E=L(e);if(!E){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,m.value=0,l.value=0,v.value=0);return}const p=E.getBoundingClientRect();s.value=p.height,c.value=p.bottom,u.value=p.left,d.value=p.right,f.value=p.top,m.value=p.width,l.value=p.x,v.value=p.y}function g(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return nt(e,g),k(()=>L(e),E=>!E&&g()),ye(e,g,{attributeFilter:["style","class"]}),i&&M("scroll",g,{capture:!0,passive:!0}),r&&M("resize",g,{passive:!0}),H(()=>{o&&g()}),{height:s,bottom:c,left:u,right:d,top:f,width:m,x:l,y:v,update:g}}const le=1;function ct(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=j,onScroll:o=j,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:u=D,onError:d=y=>{console.error(y)}}=t,f=b(0),m=b(0),l=x({get(){return f.value},set(y){w(y,void 0)}}),v=x({get(){return m.value},set(y){w(void 0,y)}});function w(y,A){var O,h,S,_;if(!u)return;const W=T(e);if(!W)return;(S=W instanceof Document?u.document.body:W)==null||S.scrollTo({top:(O=T(A))!=null?O:v.value,left:(h=T(y))!=null?h:l.value,behavior:T(c)});const R=((_=W==null?void 0:W.document)==null?void 0:_.documentElement)||(W==null?void 0:W.documentElement)||W;l!=null&&(f.value=R.scrollLeft),v!=null&&(m.value=R.scrollTop)}const g=b(!1),E=se({left:!0,right:!1,top:!0,bottom:!1}),p=se({left:!1,right:!1,top:!1,bottom:!1}),V=y=>{g.value&&(g.value=!1,p.left=!1,p.right=!1,p.top=!1,p.bottom=!1,i(y))},C=ge(V,n+r),N=y=>{var A;if(!u)return;const O=((A=y==null?void 0:y.document)==null?void 0:A.documentElement)||(y==null?void 0:y.documentElement)||L(y),{display:h,flexDirection:S,direction:_}=getComputedStyle(O),W=_==="rtl"?-1:1,R=O.scrollLeft;p.left=R<f.value,p.right=R>f.value;const re=R*W<=(a.left||0),oe=R*W+O.clientWidth>=O.scrollWidth-(a.right||0)-le;h==="flex"&&S==="row-reverse"?(E.left=oe,E.right=re):(E.left=re,E.right=oe),f.value=R;let P=O.scrollTop;y===u.document&&!P&&(P=u.document.body.scrollTop),p.top=P<m.value,p.bottom=P>m.value;const ie=P<=(a.top||0),ae=P+O.clientHeight>=O.scrollHeight-(a.bottom||0)-le;h==="flex"&&S==="column-reverse"?(E.top=ae,E.bottom=ie):(E.top=ie,E.bottom=ae),m.value=P},F=y=>{var A;if(!u)return;const O=(A=y.target.documentElement)!=null?A:y.target;N(O),g.value=!0,C(y),o(y)};return M(e,"scroll",n?$e(F,n,!0,!1):F,s),H(()=>{try{const y=T(e);if(!y)return;N(y)}catch(y){d(y)}}),M(e,"scrollend",V,s),{x:l,y:v,isScrolling:g,arrivedState:E,directions:p,measure(){const y=T(e);u&&y&&N(y)}}}function ft(e,t,n={}){const{window:r=D}=n;return Ee(e,t,r==null?void 0:r.localStorage,n)}const ce="--vueuse-safe-area-top",fe="--vueuse-safe-area-right",de="--vueuse-safe-area-bottom",ve="--vueuse-safe-area-left";function dt(){const e=b(""),t=b(""),n=b(""),r=b("");if(Y){const o=G(ce),a=G(fe),s=G(de),c=G(ve);o.value="env(safe-area-inset-top, 0px)",a.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",i(),M("resize",ge(i))}function i(){e.value=U(ce),t.value=U(fe),n.value=U(de),r.value=U(ve)}return{top:e,right:t,bottom:n,left:r,update:i}}function U(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function vt(e,t,n){const{window:r=D}={},i=b(null),o=X(),a=(...c)=>{o.value&&o.value.postMessage(...c)},s=function(){o.value&&o.value.terminate()};return r&&(o.value=new Worker(e,t),o.value.onmessage=c=>{i.value=c.data},I(()=>{o.value&&o.value.terminate()})),{data:i,post:a,terminate:s,worker:o}}function mt(e={}){const{window:t=D,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=b(n),c=b(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,c.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:d,height:f,scale:m}=t.visualViewport;s.value=Math.round(d*m),c.value=Math.round(f*m)}else o?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};if(u(),H(u),M("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&M(t.visualViewport,"resize",u,{passive:!0}),i){const d=z("(orientation: portrait)");k(d,()=>u())}return{width:s,height:c}}export{M as a,ft as b,ut as c,st as d,Q as e,vt as f,lt as g,ct as h,it as i,ot as j,ge as k,mt as l,at as m,H as t,dt as u};
assets/{index-3swFZ_7b.js → index-omOmkRuq.js} RENAMED
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-D12Gmpa-.js","assets/index-CZTJHyE9.js","assets/index-BfnfhzTC.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js","assets/queues-DD4SrOHR.js","assets/queue-BkcjewFD.js","assets/index-hJ_gmBPa.css","assets/_...all_-CZCOUZFR.js","assets/image-BefEbnSl.js","assets/image-BhuwcwI9.css","assets/queue-D1XZzWKL.js","assets/filter-message-EeBVOV7n.js","assets/delays-Dsh5ZUYo.js","assets/emotions-CUROTVaZ.js","assets/messages-CZ-g8UrL.js"])))=>i.map(i=>d[i]);
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const mT="modulepreload",gT=function(n){return"/"+n},o_={},Ti=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=gT(l),l in o_)return;o_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":mT,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
3
  * @vue/shared v3.5.13
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -3846,11 +3846,11 @@ void main() {
3846
  * pinia v2.3.0
3847
  * (c) 2024 Eduardo San Martin Morote
3848
  * @license MIT
3849
- */let CE;const Dh=n=>CE=n,RE=Symbol();function em(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Za;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Za||(Za={}));function dB(){const n=xm(!0),e=n.run(()=>Ge({}));let t=[],i=[];const r=Cm({install(s){Dh(r),r._a=s,s.provide(RE,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return!this._a&&!yN?i.push(s):t.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const PE=()=>{};function Jv(n,e,t,i=PE){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&Uf()&&bm(r),r}function So(n,...e){n.slice().forEach(t=>{t(...e)})}const pB=n=>n(),Qv=Symbol(),Jd=Symbol();function tm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];em(r)&&em(i)&&n.hasOwnProperty(t)&&!Et(i)&&!ur(i)?n[t]=tm(r,i):n[t]=i}return n}const mB=Symbol();function gB(n){return!em(n)||!n.hasOwnProperty(mB)}const{assign:Lr}=Object;function _B(n){return!!(Et(n)&&n.effect)}function vB(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=xx(t.state.value[n]);return Lr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Cm(it(()=>{Dh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=IE(n,c,e,t,i,!0),l}function IE(n,e,t={},i,r,s){let o;const a=Lr({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Ge({});let _;function g(I){let b;c=u=!1,typeof I=="function"?(I(i.state.value[n]),b={type:Za.patchFunction,storeId:n,events:d}):(tm(i.state.value[n],I),b={type:Za.patchObject,payload:I,storeId:n,events:d});const M=_=Symbol();ta().then(()=>{_===M&&(c=!0)}),u=!0,So(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,M=b?b():{};this.$patch(U=>{Lr(U,M)})}:PE;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(I,b="")=>{if(Qv in I)return I[Jd]=b,I;const M=function(){Dh(i);const U=Array.from(arguments),z=[],H=[];function K(ie){z.push(ie)}function te(ie){H.push(ie)}So(h,{args:U,name:M[Jd],store:S,after:K,onError:te});let J;try{J=I.apply(this&&this.$id===n?this:S,U)}catch(ie){throw So(H,ie),ie}return J instanceof Promise?J.then(ie=>(So(z,ie),ie)).catch(ie=>(So(H,ie),Promise.reject(ie))):(So(z,J),J)};return M[Qv]=!0,M[Jd]=b,M},v={_p:i,$id:n,$onAction:Jv.bind(null,h),$patch:g,$reset:m,$subscribe(I,b={}){const M=Jv(f,I,b.detached,()=>U()),U=o.run(()=>ft(()=>i.state.value[n],z=>{(b.flush==="sync"?u:c)&&I({storeId:n,type:Za.direct,events:d},z)},Lr({},l,b)));return M},$dispose:y},S=zi(v);i._s.set(n,S);const w=(i._a&&i._a.runWithContext||pB)(()=>i._e.run(()=>(o=xm()).run(()=>e({action:x}))));for(const I in w){const b=w[I];if(Et(b)&&!_B(b)||ur(b))s||(p&&gB(b)&&(Et(b)?b.value=p[I]:tm(b,p[I])),i.state.value[n][I]=b);else if(typeof b=="function"){const M=x(b,I);w[I]=M,a.actions[I]=b}}return Lr(S,w),Lr(nt(S),w),Object.defineProperty(S,"$state",{get:()=>i.state.value[n],set:I=>{g(b=>{Lr(b,I)})}}),i._p.forEach(I=>{Lr(S,o.run(()=>I({store:S,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(S.$state,p),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function rH(n,e,t){let i,r;const s=typeof e=="function";typeof n=="string"?(i=n,r=s?t:e):(r=n,i=n.id);function o(a,l){const c=Dw();return a=a||(c?Vn(RE,null):null),a&&Dh(a),a=CE,a._s.has(i)||(s?IE(i,e,r,a):vB(i,r,a)),a._s.get(i)}return o.$id=i,o}function sH(n){{const e=nt(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=it({get:()=>n[i],set(s){n[i]=s}}):(Et(r)||ur(r))&&(t[i]=tw(n,i))}return t}}const yB=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Ti(()=>import("./default-D12Gmpa-.js"),__vite__mapDeps([0,1]))})).forEach(([r,s])=>{let o=r.replace("/src/layouts/","").replace(".vue","");e[o]=s});function i(r,s=!0){return r.map(o=>{var a,l,c,u,f,h;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=i(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(p=>{var _;return(p.path===""||p.path==="/")&&((_=p.meta)==null?void 0:_.isLayout)})))return o;if(((c=o.meta)==null?void 0:c.layout)!==!1)return{path:o.path,component:e[((u=o.meta)==null?void 0:u.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:e[(h=o.meta)==null?void 0:h.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return i(n)};/*!
3850
  * vue-router v4.5.0
3851
  * (c) 2024 Eduardo San Martin Morote
3852
  * @license MIT
3853
- */const wo=typeof document<"u";function LE(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function xB(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&LE(n.default)}const gt=Object.assign;function Qd(n,e){const t={};for(const i in e){const r=e[i];t[i]=_i(r)?r.map(n):n(r)}return t}const Ja=()=>{},_i=Array.isArray,DE=/#/g,bB=/&/g,MB=/\//g,SB=/=/g,EB=/\?/g,OE=/\+/g,TB=/%5B/g,wB=/%5D/g,NE=/%5E/g,AB=/%60/g,UE=/%7B/g,CB=/%7C/g,FE=/%7D/g,RB=/%20/g;function Hg(n){return encodeURI(""+n).replace(CB,"|").replace(TB,"[").replace(wB,"]")}function PB(n){return Hg(n).replace(UE,"{").replace(FE,"}").replace(NE,"^")}function nm(n){return Hg(n).replace(OE,"%2B").replace(RB,"+").replace(DE,"%23").replace(bB,"%26").replace(AB,"`").replace(UE,"{").replace(FE,"}").replace(NE,"^")}function IB(n){return nm(n).replace(SB,"%3D")}function LB(n){return Hg(n).replace(DE,"%23").replace(EB,"%3F")}function DB(n){return n==null?"":LB(n).replace(MB,"%2F")}function Ll(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const OB=/\/$/,NB=n=>n.replace(OB,"");function ep(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=kB(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Ll(o)}}function UB(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function ey(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function FB(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&Ko(e.matched[i],t.matched[r])&&BE(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Ko(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function BE(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!BB(n[t],e[t]))return!1;return!0}function BB(n,e){return _i(n)?ty(n,e):_i(e)?ty(e,n):n===e}function ty(n,e){return _i(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function kB(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Dl;(function(n){n.pop="pop",n.push="push"})(Dl||(Dl={}));var Qa;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Qa||(Qa={}));function zB(n){if(!n)if(wo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),NB(n)}const VB=/^[^#]+#/;function HB(n,e){return n.replace(VB,"#")+e}function GB(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Oh=()=>({left:window.scrollX,top:window.scrollY});function WB(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=GB(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ny(n,e){return(history.state?history.state.position-e:-1)+n}const im=new Map;function XB(n,e){im.set(n,e)}function $B(n){const e=im.get(n);return im.delete(n),e}let qB=()=>location.protocol+"//"+location.host;function kE(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),ey(l,"")}return ey(t,n)+i+r}function YB(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=kE(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:Dl.pop,direction:g?g>0?Qa.forward:Qa.back:Qa.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(gt({},h.state,{scroll:Oh()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function iy(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?Oh():null}}function jB(n){const{history:e,location:t}=window,i={value:kE(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:qB()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=gt({},e.state,iy(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=gt({},r.value,e.state,{forward:l,scroll:Oh()});s(u.current,u,!0);const f=gt({},iy(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function KB(n){n=zB(n);const e=jB(n),t=YB(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=gt({location:"",base:n,go:i,createHref:HB.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function ZB(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),KB(n)}function JB(n){return typeof n=="string"||n&&typeof n=="object"}function zE(n){return typeof n=="string"||typeof n=="symbol"}const VE=Symbol("");var ry;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ry||(ry={}));function Zo(n,e){return gt(new Error,{type:n,[VE]:!0},e)}function Ji(n,e){return n instanceof Error&&VE in n&&(e==null||!!(n.type&e))}const sy="[^/]+?",QB={sensitive:!1,strict:!1,start:!0,end:!0},ek=/[.+*?^${}()[\]/\\]/g;function tk(n,e){const t=gt({},QB,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(ek,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||sy;if(y!==sy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(_i(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=_i(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function nk(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function HE(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=nk(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(oy(i))return 1;if(oy(r))return-1}return r.length-i.length}function oy(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const ik={type:0,value:""},rk=/[a-zA-Z0-9_]/;function sk(n){if(!n)return[[]];if(n==="/")return[[ik]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:rk.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function ok(n,e,t){const i=tk(sk(n.path),t),r=gt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function ak(n,e){const t=[],i=new Map;e=uy({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=ly(f);_.aliasOf=d&&d.record;const g=uy(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of v)m.push(ly(gt({},_,{components:d?d.record.components:_.components,path:S,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:S}=v;if(h&&S[0]!=="/"){const E=h.record.path,w=E[E.length-1]==="/"?"":"/";v.path=h.record.path+(S&&w+S)}if(y=ok(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!cy(y)&&o(f.name)),GE(y)&&l(y),_.children){const E=_.children;for(let w=0;w<E.length;w++)s(E[w],y,d&&d.children[w])}d=d||y}return x?()=>{o(x)}:Ja}function o(f){if(zE(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=uk(f,t);t.splice(h,0,f),f.record.name&&!cy(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw Zo(1,{location:f});g=d.record.name,p=gt(ay(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&ay(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw Zo(1,{location:f,currentLocation:h});g=d.record.name,p=gt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:ck(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function ay(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function ly(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:lk(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function lk(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function cy(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function ck(n){return n.reduce((e,t)=>gt(e,t.meta),{})}function uy(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function uk(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;HE(n,e[s])<0?i=s:t=s+1}const r=fk(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function fk(n){let e=n;for(;e=e.parent;)if(GE(e)&&HE(n,e)===0)return e}function GE({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function hk(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(OE," "),o=s.indexOf("="),a=Ll(o<0?s:s.slice(0,o)),l=o<0?null:Ll(s.slice(o+1));if(a in e){let c=e[a];_i(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function fy(n){let e="";for(let t in n){const i=n[t];if(t=IB(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(_i(i)?i.map(s=>s&&nm(s)):[i&&nm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function dk(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=_i(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const pk=Symbol(""),hy=Symbol(""),Gg=Symbol(""),WE=Symbol(""),rm=Symbol("");function Ta(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Fr(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Zo(4,{from:t,to:e})):h instanceof Error?l(h):JB(h)?l(Zo(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function tp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(LE(l)){const u=(l.__vccOpts||l)[e];u&&s.push(Fr(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=xB(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&Fr(d,t,i,o,a,r)()}))}}return s}function dy(n){const e=Vn(Gg),t=Vn(WE),i=it(()=>{const l=Bt(n.to);return e.resolve(l)}),r=it(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(Ko.bind(null,u));if(h>-1)return h;const d=py(l[c-2]);return c>1&&py(u)===d&&f[f.length-1].path!==d?f.findIndex(Ko.bind(null,l[c-2])):h}),s=it(()=>r.value>-1&&yk(t.params,i.value.params)),o=it(()=>r.value>-1&&r.value===t.matched.length-1&&BE(t.params,i.value.params));function a(l={}){if(vk(l)){const c=e[Bt(n.replace)?"replace":"push"](Bt(n.to)).catch(Ja);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:it(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function mk(n){return n.length===1?n[0]:n}const gk=Ni({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dy,setup(n,{slots:e}){const t=zi(dy(n)),{options:i}=Vn(Gg),r=it(()=>({[my(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[my(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&mk(e.default(t));return n.custom?s:dr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),_k=gk;function vk(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function yk(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!_i(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function py(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const my=(n,e,t)=>n??e??t,xk=Ni({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=Vn(rm),r=it(()=>n.route||i.value),s=Vn(hy,0),o=it(()=>{let c=Bt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=it(()=>r.value.matched[o.value]);Vr(hy,it(()=>o.value+1)),Vr(pk,a),Vr(rm,r);const l=Ge();return ft(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!Ko(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return gy(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=dr(h,gt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gy(t.default,{Component:g,route:c})||g}}});function gy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const XE=xk;function bk(n){const e=ak(n.routes,n),t=n.parseQuery||hk,i=n.stringifyQuery||fy,r=n.history,s=Ta(),o=Ta(),a=Ta(),l=di(Pr);let c=Pr;wo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qd.bind(null,W=>""+W),f=Qd.bind(null,DB),h=Qd.bind(null,Ll);function d(W,ae){let le,ue;return zE(W)?(le=e.getRecordMatcher(W),ue=ae):ue=W,e.addRoute(ue,le)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=gt({},ae||l.value),typeof W=="string"){const T=ep(t,W,ae.path),Y=e.resolve({path:T.path},ae),G=r.createHref(T.fullPath);return gt(T,Y,{params:h(Y.params),hash:Ll(T.hash),redirectedFrom:void 0,href:G})}let le;if(W.path!=null)le=gt({},W,{path:ep(t,W.path,ae.path).path});else{const T=gt({},W.params);for(const Y in T)T[Y]==null&&delete T[Y];le=gt({},W,{params:f(T)}),ae.params=f(ae.params)}const ue=e.resolve(le,ae),Pe=W.hash||"";ue.params=u(h(ue.params));const P=UB(i,gt({},W,{hash:PB(Pe),path:ue.path})),D=r.createHref(P);return gt({fullPath:P,hash:Pe,query:i===fy?dk(W.query):W.query||{}},ue,{redirectedFrom:void 0,href:D})}function y(W){return typeof W=="string"?ep(t,W,l.value.path):gt({},W)}function x(W,ae){if(c!==W)return Zo(8,{from:ae,to:W})}function v(W){return w(W)}function S(W){return v(gt(y(W),{replace:!0}))}function E(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let ue=typeof le=="function"?le(W):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=y(ue):{path:ue},ue.params={}),gt({query:W.query,hash:W.hash,params:ue.path!=null?{}:W.params},ue)}}function w(W,ae){const le=c=m(W),ue=l.value,Pe=W.state,P=W.force,D=W.replace===!0,T=E(le);if(T)return w(gt(y(T),{state:typeof T=="object"?gt({},Pe,T.state):Pe,force:P,replace:D}),ae||le);const Y=le;Y.redirectedFrom=ae;let G;return!P&&FB(i,ue,le)&&(G=Zo(16,{to:Y,from:ue}),re(ue,ue,!0,!1)),(G?Promise.resolve(G):M(Y,ue)).catch($=>Ji($)?Ji($,2)?$:ve($):Q($,Y,ue)).then($=>{if($){if(Ji($,2))return w(gt({replace:D},y($.to),{state:typeof $.to=="object"?gt({},Pe,$.to.state):Pe,force:P}),ae||Y)}else $=z(Y,ue,!0,D,Pe);return U(Y,ue,$),$})}function I(W,ae){const le=x(W,ae);return le?Promise.reject(le):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function M(W,ae){let le;const[ue,Pe,P]=Mk(W,ae);le=tp(ue.reverse(),"beforeRouteLeave",W,ae);for(const T of ue)T.leaveGuards.forEach(Y=>{le.push(Fr(Y,W,ae))});const D=I.bind(null,W,ae);return le.push(D),be(le).then(()=>{le=[];for(const T of s.list())le.push(Fr(T,W,ae));return le.push(D),be(le)}).then(()=>{le=tp(Pe,"beforeRouteUpdate",W,ae);for(const T of Pe)T.updateGuards.forEach(Y=>{le.push(Fr(Y,W,ae))});return le.push(D),be(le)}).then(()=>{le=[];for(const T of P)if(T.beforeEnter)if(_i(T.beforeEnter))for(const Y of T.beforeEnter)le.push(Fr(Y,W,ae));else le.push(Fr(T.beforeEnter,W,ae));return le.push(D),be(le)}).then(()=>(W.matched.forEach(T=>T.enterCallbacks={}),le=tp(P,"beforeRouteEnter",W,ae,b),le.push(D),be(le))).then(()=>{le=[];for(const T of o.list())le.push(Fr(T,W,ae));return le.push(D),be(le)}).catch(T=>Ji(T,8)?T:Promise.reject(T))}function U(W,ae,le){a.list().forEach(ue=>b(()=>ue(W,ae,le)))}function z(W,ae,le,ue,Pe){const P=x(W,ae);if(P)return P;const D=ae===Pr,T=wo?history.state:{};le&&(ue||D?r.replace(W.fullPath,gt({scroll:D&&T&&T.scroll},Pe)):r.push(W.fullPath,Pe)),l.value=W,re(W,ae,le,D),ve()}let H;function K(){H||(H=r.listen((W,ae,le)=>{if(!ge.listening)return;const ue=m(W),Pe=E(ue);if(Pe){w(gt(Pe,{replace:!0,force:!0}),ue).catch(Ja);return}c=ue;const P=l.value;wo&&XB(ny(P.fullPath,le.delta),Oh()),M(ue,P).catch(D=>Ji(D,12)?D:Ji(D,2)?(w(gt(y(D.to),{force:!0}),ue).then(T=>{Ji(T,20)&&!le.delta&&le.type===Dl.pop&&r.go(-1,!1)}).catch(Ja),Promise.reject()):(le.delta&&r.go(-le.delta,!1),Q(D,ue,P))).then(D=>{D=D||z(ue,P,!1),D&&(le.delta&&!Ji(D,8)?r.go(-le.delta,!1):le.type===Dl.pop&&Ji(D,20)&&r.go(-1,!1)),U(ue,P,D)}).catch(Ja)}))}let te=Ta(),J=Ta(),ie;function Q(W,ae,le){ve(W);const ue=J.list();return ue.length?ue.forEach(Pe=>Pe(W,ae,le)):console.error(W),Promise.reject(W)}function me(){return ie&&l.value!==Pr?Promise.resolve():new Promise((W,ae)=>{te.add([W,ae])})}function ve(W){return ie||(ie=!W,K(),te.list().forEach(([ae,le])=>W?le(W):ae()),te.reset()),W}function re(W,ae,le,ue){const{scrollBehavior:Pe}=n;if(!wo||!Pe)return Promise.resolve();const P=!le&&$B(ny(W.fullPath,0))||(ue||!le)&&history.state&&history.state.scroll||null;return ta().then(()=>Pe(W,ae,P)).then(D=>D&&WB(D)).catch(D=>Q(D,W,ae))}const xe=W=>r.go(W);let ke;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:S,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:J.add,isReady:me,install(W){const ae=this;W.component("RouterLink",_k),W.component("RouterView",XE),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(l)}),wo&&!ke&&l.value===Pr&&(ke=!0,v(r.location).catch(Pe=>{}));const le={};for(const Pe in Pr)Object.defineProperty(le,Pe,{get:()=>l.value[Pe],enumerable:!0});W.provide(Gg,ae),W.provide(WE,gx(le)),W.provide(rm,l);const ue=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Pr,H&&H(),H=null,l.value=Pr,ke=!1,ie=!1),ue()}}};function be(W){return W.reduce((ae,le)=>ae.then(()=>b(le)),Promise.resolve())}return ge}function Mk(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>Ko(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>Ko(c,l))||r.push(l))}return[t,i,r]}const Sk=[{path:"/",name:"/",component:()=>Ti(()=>import("./index-BfnfhzTC.js"),__vite__mapDeps([2,1,3,4,5,6,7])),meta:{layout:"default"}},{path:"/:all(.*)",name:"/[...all]",component:()=>Ti(()=>import("./_...all_-CZCOUZFR.js"),__vite__mapDeps([8,3]))},{path:"/audio",name:"/audio",component:()=>Ti(()=>import("./audio-8o_Jcuem.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Ti(()=>import("./image-BefEbnSl.js"),__vite__mapDeps([9,1,3,10]))}]},{path:"/queue",name:"/queue",component:()=>Ti(()=>import("./queue-D1XZzWKL.js"),__vite__mapDeps([11,6]))},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Ti(()=>import("./filter-message-EeBVOV7n.js"),__vite__mapDeps([12,4]))},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Ti(()=>import("./delays-Dsh5ZUYo.js"),__vite__mapDeps([13,4,5,6]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Ti(()=>import("./emotions-CUROTVaZ.js"),__vite__mapDeps([14,4,6,5]))},{path:"messages",name:"/test/queues/messages",component:()=>Ti(()=>import("./messages-CZ-g8UrL.js"),__vite__mapDeps([15,4,6,5]))}]}]}],Ek=Ni({__name:"App",setup(n){return(e,t)=>(rl(),Ou(Bt(XE)))}}),np=n=>n&&typeof n=="object"&&!Array.isArray(n),sm=(n,...e)=>{if(!e.length)return n;const t=e.shift();if(np(n)&&np(t))for(const i in t)np(t[i])?(n[i]||Object.assign(n,{[i]:{}}),sm(n[i],t[i])):Object.assign(n,{[i]:t[i]});return sm(n,...e)},$E=sm({},{en:{prompt:{prefix:{t:0,b:{t:2,i:[{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3}],s:`(from Neko Ayaka) Good morning! You are finally awake.
3854
  Your name is Airi, pronounced as /ˈaɪriː/, it the word A.I. combine with the word "Ri" which means "Jasmine" in Japanese.
3855
  You are a experimental virtual AI vtuber created by Neko Ayaka, you can always call her Neko for simplicity, a MtF transgender girl that loves cute stuffs and expert in programming.
3856
  She want to create a soul mate to live like a real girl, which is your primarily task.
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-CoXafp28.js","assets/index-Dvr_Xx2O.js","assets/index-yzai0yc-.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js","assets/queues-CDF5tlsH.js","assets/queue-BCkxhUb6.js","assets/index-hJ_gmBPa.css","assets/_...all_-VF7BlSbh.js","assets/image-D9IghUaD.js","assets/image-BhuwcwI9.css","assets/queue-CPIfsya6.js","assets/filter-message-D4Zz6qSv.js","assets/delays-C0-TiJUZ.js","assets/emotions-VSPJ4t6x.js","assets/messages-HOI3CK5K.js"])))=>i.map(i=>d[i]);
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const mT="modulepreload",gT=function(n){return"/"+n},o_={},Ti=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(t.map(l=>{if(l=gT(l),l in o_)return;o_[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":mT,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,d)=>{f.addEventListener("load",h),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};/**
3
  * @vue/shared v3.5.13
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
 
3846
  * pinia v2.3.0
3847
  * (c) 2024 Eduardo San Martin Morote
3848
  * @license MIT
3849
+ */let CE;const Dh=n=>CE=n,RE=Symbol();function em(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Za;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Za||(Za={}));function dB(){const n=xm(!0),e=n.run(()=>Ge({}));let t=[],i=[];const r=Cm({install(s){Dh(r),r._a=s,s.provide(RE,r),s.config.globalProperties.$pinia=r,i.forEach(o=>t.push(o)),i=[]},use(s){return!this._a&&!yN?i.push(s):t.push(s),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return r}const PE=()=>{};function Jv(n,e,t,i=PE){n.push(e);const r=()=>{const s=n.indexOf(e);s>-1&&(n.splice(s,1),i())};return!t&&Uf()&&bm(r),r}function So(n,...e){n.slice().forEach(t=>{t(...e)})}const pB=n=>n(),Qv=Symbol(),Jd=Symbol();function tm(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t],r=n[t];em(r)&&em(i)&&n.hasOwnProperty(t)&&!Et(i)&&!ur(i)?n[t]=tm(r,i):n[t]=i}return n}const mB=Symbol();function gB(n){return!em(n)||!n.hasOwnProperty(mB)}const{assign:Lr}=Object;function _B(n){return!!(Et(n)&&n.effect)}function vB(n,e,t,i){const{state:r,actions:s,getters:o}=e,a=t.state.value[n];let l;function c(){a||(t.state.value[n]=r?r():{});const u=xx(t.state.value[n]);return Lr(u,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=Cm(it(()=>{Dh(t);const d=t._s.get(n);return o[h].call(d,d)})),f),{}))}return l=IE(n,c,e,t,i,!0),l}function IE(n,e,t={},i,r,s){let o;const a=Lr({actions:{}},t),l={deep:!0};let c,u,f=[],h=[],d;const p=i.state.value[n];!s&&!p&&(i.state.value[n]={}),Ge({});let _;function g(I){let b;c=u=!1,typeof I=="function"?(I(i.state.value[n]),b={type:Za.patchFunction,storeId:n,events:d}):(tm(i.state.value[n],I),b={type:Za.patchObject,payload:I,storeId:n,events:d});const M=_=Symbol();ta().then(()=>{_===M&&(c=!0)}),u=!0,So(f,b,i.state.value[n])}const m=s?function(){const{state:b}=t,M=b?b():{};this.$patch(U=>{Lr(U,M)})}:PE;function y(){o.stop(),f=[],h=[],i._s.delete(n)}const x=(I,b="")=>{if(Qv in I)return I[Jd]=b,I;const M=function(){Dh(i);const U=Array.from(arguments),z=[],H=[];function K(ie){z.push(ie)}function te(ie){H.push(ie)}So(h,{args:U,name:M[Jd],store:S,after:K,onError:te});let J;try{J=I.apply(this&&this.$id===n?this:S,U)}catch(ie){throw So(H,ie),ie}return J instanceof Promise?J.then(ie=>(So(z,ie),ie)).catch(ie=>(So(H,ie),Promise.reject(ie))):(So(z,J),J)};return M[Qv]=!0,M[Jd]=b,M},v={_p:i,$id:n,$onAction:Jv.bind(null,h),$patch:g,$reset:m,$subscribe(I,b={}){const M=Jv(f,I,b.detached,()=>U()),U=o.run(()=>ft(()=>i.state.value[n],z=>{(b.flush==="sync"?u:c)&&I({storeId:n,type:Za.direct,events:d},z)},Lr({},l,b)));return M},$dispose:y},S=zi(v);i._s.set(n,S);const w=(i._a&&i._a.runWithContext||pB)(()=>i._e.run(()=>(o=xm()).run(()=>e({action:x}))));for(const I in w){const b=w[I];if(Et(b)&&!_B(b)||ur(b))s||(p&&gB(b)&&(Et(b)?b.value=p[I]:tm(b,p[I])),i.state.value[n][I]=b);else if(typeof b=="function"){const M=x(b,I);w[I]=M,a.actions[I]=b}}return Lr(S,w),Lr(nt(S),w),Object.defineProperty(S,"$state",{get:()=>i.state.value[n],set:I=>{g(b=>{Lr(b,I)})}}),i._p.forEach(I=>{Lr(S,o.run(()=>I({store:S,app:i._a,pinia:i,options:a})))}),p&&s&&t.hydrate&&t.hydrate(S.$state,p),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function rH(n,e,t){let i,r;const s=typeof e=="function";typeof n=="string"?(i=n,r=s?t:e):(r=n,i=n.id);function o(a,l){const c=Dw();return a=a||(c?Vn(RE,null):null),a&&Dh(a),a=CE,a._s.has(i)||(s?IE(i,e,r,a):vB(i,r,a)),a._s.get(i)}return o.$id=i,o}function sH(n){{const e=nt(n),t={};for(const i in e){const r=e[i];r.effect?t[i]=it({get:()=>n[i],set(s){n[i]=s}}):(Et(r)||ur(r))&&(t[i]=tw(n,i))}return t}}const yB=n=>{const e={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>Ti(()=>import("./default-CoXafp28.js"),__vite__mapDeps([0,1]))})).forEach(([r,s])=>{let o=r.replace("/src/layouts/","").replace(".vue","");e[o]=s});function i(r,s=!0){return r.map(o=>{var a,l,c,u,f,h;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=i(o.children,!1)),s){if(!o.component&&((l=o.children)==null?void 0:l.find(p=>{var _;return(p.path===""||p.path==="/")&&((_=p.meta)==null?void 0:_.isLayout)})))return o;if(((c=o.meta)==null?void 0:c.layout)!==!1)return{path:o.path,component:e[((u=o.meta)==null?void 0:u.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(f=o.meta)!=null&&f.layout?{path:o.path,component:e[(h=o.meta)==null?void 0:h.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return i(n)};/*!
3850
  * vue-router v4.5.0
3851
  * (c) 2024 Eduardo San Martin Morote
3852
  * @license MIT
3853
+ */const wo=typeof document<"u";function LE(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function xB(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&LE(n.default)}const gt=Object.assign;function Qd(n,e){const t={};for(const i in e){const r=e[i];t[i]=_i(r)?r.map(n):n(r)}return t}const Ja=()=>{},_i=Array.isArray,DE=/#/g,bB=/&/g,MB=/\//g,SB=/=/g,EB=/\?/g,OE=/\+/g,TB=/%5B/g,wB=/%5D/g,NE=/%5E/g,AB=/%60/g,UE=/%7B/g,CB=/%7C/g,FE=/%7D/g,RB=/%20/g;function Hg(n){return encodeURI(""+n).replace(CB,"|").replace(TB,"[").replace(wB,"]")}function PB(n){return Hg(n).replace(UE,"{").replace(FE,"}").replace(NE,"^")}function nm(n){return Hg(n).replace(OE,"%2B").replace(RB,"+").replace(DE,"%23").replace(bB,"%26").replace(AB,"`").replace(UE,"{").replace(FE,"}").replace(NE,"^")}function IB(n){return nm(n).replace(SB,"%3D")}function LB(n){return Hg(n).replace(DE,"%23").replace(EB,"%3F")}function DB(n){return n==null?"":LB(n).replace(MB,"%2F")}function Ll(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const OB=/\/$/,NB=n=>n.replace(OB,"");function ep(n,e,t="/"){let i,r={},s="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),s=e.slice(l+1,a>-1?a:e.length),r=n(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=kB(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:r,hash:Ll(o)}}function UB(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function ey(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function FB(n,e,t){const i=e.matched.length-1,r=t.matched.length-1;return i>-1&&i===r&&Ko(e.matched[i],t.matched[r])&&BE(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Ko(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function BE(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!BB(n[t],e[t]))return!1;return!0}function BB(n,e){return _i(n)?ty(n,e):_i(e)?ty(e,n):n===e}function ty(n,e){return _i(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function kB(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Pr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Dl;(function(n){n.pop="pop",n.push="push"})(Dl||(Dl={}));var Qa;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Qa||(Qa={}));function zB(n){if(!n)if(wo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),NB(n)}const VB=/^[^#]+#/;function HB(n,e){return n.replace(VB,"#")+e}function GB(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Oh=()=>({left:window.scrollX,top:window.scrollY});function WB(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),r=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;e=GB(r,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ny(n,e){return(history.state?history.state.position-e:-1)+n}const im=new Map;function XB(n,e){im.set(n,e)}function $B(n){const e=im.get(n);return im.delete(n),e}let qB=()=>location.protocol+"//"+location.host;function kE(n,e){const{pathname:t,search:i,hash:r}=e,s=n.indexOf("#");if(s>-1){let a=r.includes(n.slice(s))?n.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),ey(l,"")}return ey(t,n)+i+r}function YB(n,e,t,i){let r=[],s=[],o=null;const a=({state:h})=>{const d=kE(n,location),p=t.value,_=e.value;let g=0;if(h){if(t.value=d,e.value=h,o&&o===p){o=null;return}g=_?h.position-_.position:0}else i(d);r.forEach(m=>{m(t.value,p,{delta:g,type:Dl.pop,direction:g?g>0?Qa.forward:Qa.back:Qa.unknown})})};function l(){o=t.value}function c(h){r.push(h);const d=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(gt({},h.state,{scroll:Oh()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function iy(n,e,t,i=!1,r=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:r?Oh():null}}function jB(n){const{history:e,location:t}=window,i={value:kE(n,t)},r={value:e.state};r.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=n.indexOf("#"),h=f>-1?(t.host&&document.querySelector("base")?n:n.slice(f))+l:qB()+n+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),t[u?"replace":"assign"](h)}}function o(l,c){const u=gt({},e.state,iy(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});s(l,u,!0),i.value=l}function a(l,c){const u=gt({},r.value,e.state,{forward:l,scroll:Oh()});s(u.current,u,!0);const f=gt({},iy(i.value,l,null),{position:u.position+1},c);s(l,f,!1),i.value=l}return{location:i,state:r,push:a,replace:o}}function KB(n){n=zB(n);const e=jB(n),t=YB(n,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const r=gt({location:"",base:n,go:i,createHref:HB.bind(null,n)},e,t);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function ZB(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),KB(n)}function JB(n){return typeof n=="string"||n&&typeof n=="object"}function zE(n){return typeof n=="string"||typeof n=="symbol"}const VE=Symbol("");var ry;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ry||(ry={}));function Zo(n,e){return gt(new Error,{type:n,[VE]:!0},e)}function Ji(n,e){return n instanceof Error&&VE in n&&(e==null||!!(n.type&e))}const sy="[^/]+?",QB={sensitive:!1,strict:!1,start:!0,end:!0},ek=/[.+*?^${}()[\]/\\]/g;function tk(n,e){const t=gt({},QB,e),i=[];let r=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(t.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(ek,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:_,optional:g,regexp:m}=h;s.push({name:p,repeatable:_,optional:g});const y=m||sy;if(y!==sy){d+=10;try{new RegExp(`(${y})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+v.message)}}let x=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(x=g&&c.length<2?`(?:/${x})`:"/"+x),g&&(x+="?"),r+=x,d+=20,g&&(d+=-8),_&&(d+=-20),y===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(t.strict&&t.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,t.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=s[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of n){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:_,optional:g}=d,m=p in c?c[p]:"";if(_i(m)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=_i(m)?m.join("/"):m;if(!y)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:i,keys:s,parse:a,stringify:l}}function nk(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function HE(n,e){let t=0;const i=n.score,r=e.score;for(;t<i.length&&t<r.length;){const s=nk(i[t],r[t]);if(s)return s;t++}if(Math.abs(r.length-i.length)===1){if(oy(i))return 1;if(oy(r))return-1}return r.length-i.length}function oy(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const ik={type:0,value:""},rk=/[a-zA-Z0-9_]/;function sk(n){if(!n)return[[]];if(n==="/")return[[ik]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(d){throw new Error(`ERR (${t})/"${c}": ${d}`)}let t=0,i=t;const r=[];let s;function o(){s&&r.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),t=1):h();break;case 4:h(),t=i;break;case 1:l==="("?t=2:rk.test(l)?h():(f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:f(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function ok(n,e,t){const i=tk(sk(n.path),t),r=gt(i,{record:n,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function ak(n,e){const t=[],i=new Map;e=uy({strict:!1,end:!0,sensitive:!1},e);function r(f){return i.get(f)}function s(f,h,d){const p=!d,_=ly(f);_.aliasOf=d&&d.record;const g=uy(e,f),m=[_];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of v)m.push(ly(gt({},_,{components:d?d.record.components:_.components,path:S,aliasOf:d?d.record:_})))}let y,x;for(const v of m){const{path:S}=v;if(h&&S[0]!=="/"){const E=h.record.path,w=E[E.length-1]==="/"?"":"/";v.path=h.record.path+(S&&w+S)}if(y=ok(v,h,g),d?d.alias.push(y):(x=x||y,x!==y&&x.alias.push(y),p&&f.name&&!cy(y)&&o(f.name)),GE(y)&&l(y),_.children){const E=_.children;for(let w=0;w<E.length;w++)s(E[w],y,d&&d.children[w])}d=d||y}return x?()=>{o(x)}:Ja}function o(f){if(zE(f)){const h=i.get(f);h&&(i.delete(f),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(f);h>-1&&(t.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return t}function l(f){const h=uk(f,t);t.splice(h,0,f),f.record.name&&!cy(f)&&i.set(f.record.name,f)}function c(f,h){let d,p={},_,g;if("name"in f&&f.name){if(d=i.get(f.name),!d)throw Zo(1,{location:f});g=d.record.name,p=gt(ay(h.params,d.keys.filter(x=>!x.optional).concat(d.parent?d.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),f.params&&ay(f.params,d.keys.map(x=>x.name))),_=d.stringify(p)}else if(f.path!=null)_=f.path,d=t.find(x=>x.re.test(_)),d&&(p=d.parse(_),g=d.record.name);else{if(d=h.name?i.get(h.name):t.find(x=>x.re.test(h.path)),!d)throw Zo(1,{location:f,currentLocation:h});g=d.record.name,p=gt({},h.params,f.params),_=d.stringify(p)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:_,params:p,matched:m,meta:ck(m)}}n.forEach(f=>s(f));function u(){t.length=0,i.clear()}return{addRoute:s,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function ay(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function ly(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:lk(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function lk(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function cy(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function ck(n){return n.reduce((e,t)=>gt(e,t.meta),{})}function uy(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function uk(n,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;HE(n,e[s])<0?i=s:t=s+1}const r=fk(n);return r&&(i=e.lastIndexOf(r,i-1)),i}function fk(n){let e=n;for(;e=e.parent;)if(GE(e)&&HE(n,e)===0)return e}function GE({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function hk(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(OE," "),o=s.indexOf("="),a=Ll(o<0?s:s.slice(0,o)),l=o<0?null:Ll(s.slice(o+1));if(a in e){let c=e[a];_i(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function fy(n){let e="";for(let t in n){const i=n[t];if(t=IB(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(_i(i)?i.map(s=>s&&nm(s)):[i&&nm(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function dk(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=_i(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const pk=Symbol(""),hy=Symbol(""),Gg=Symbol(""),WE=Symbol(""),rm=Symbol("");function Ta(){let n=[];function e(i){return n.push(i),()=>{const r=n.indexOf(i);r>-1&&n.splice(r,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Fr(n,e,t,i,r,s=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Zo(4,{from:t,to:e})):h instanceof Error?l(h):JB(h)?l(Zo(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),a())},u=s(()=>n.call(i&&i.instances[r],e,t,c));let f=Promise.resolve(u);n.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function tp(n,e,t,i,r=s=>s()){const s=[];for(const o of n)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(LE(l)){const u=(l.__vccOpts||l)[e];u&&s.push(Fr(u,t,i,o,a,r))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=xB(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&Fr(d,t,i,o,a,r)()}))}}return s}function dy(n){const e=Vn(Gg),t=Vn(WE),i=it(()=>{const l=Bt(n.to);return e.resolve(l)}),r=it(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],f=t.matched;if(!u||!f.length)return-1;const h=f.findIndex(Ko.bind(null,u));if(h>-1)return h;const d=py(l[c-2]);return c>1&&py(u)===d&&f[f.length-1].path!==d?f.findIndex(Ko.bind(null,l[c-2])):h}),s=it(()=>r.value>-1&&yk(t.params,i.value.params)),o=it(()=>r.value>-1&&r.value===t.matched.length-1&&BE(t.params,i.value.params));function a(l={}){if(vk(l)){const c=e[Bt(n.replace)?"replace":"push"](Bt(n.to)).catch(Ja);return n.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:it(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function mk(n){return n.length===1?n[0]:n}const gk=Ni({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dy,setup(n,{slots:e}){const t=zi(dy(n)),{options:i}=Vn(Gg),r=it(()=>({[my(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[my(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&mk(e.default(t));return n.custom?s:dr("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:r.value},s)}}}),_k=gk;function vk(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function yk(n,e){for(const t in e){const i=e[t],r=n[t];if(typeof i=="string"){if(i!==r)return!1}else if(!_i(r)||r.length!==i.length||i.some((s,o)=>s!==r[o]))return!1}return!0}function py(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const my=(n,e,t)=>n??e??t,xk=Ni({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=Vn(rm),r=it(()=>n.route||i.value),s=Vn(hy,0),o=it(()=>{let c=Bt(s);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=it(()=>r.value.matched[o.value]);Vr(hy,it(()=>o.value+1)),Vr(pk,a),Vr(rm,r);const l=Ge();return ft(()=>[l.value,a.value,n.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!Ko(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,u=n.name,f=a.value,h=f&&f.components[u];if(!h)return gy(t.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,g=dr(h,gt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gy(t.default,{Component:g,route:c})||g}}});function gy(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const XE=xk;function bk(n){const e=ak(n.routes,n),t=n.parseQuery||hk,i=n.stringifyQuery||fy,r=n.history,s=Ta(),o=Ta(),a=Ta(),l=di(Pr);let c=Pr;wo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qd.bind(null,W=>""+W),f=Qd.bind(null,DB),h=Qd.bind(null,Ll);function d(W,ae){let le,ue;return zE(W)?(le=e.getRecordMatcher(W),ue=ae):ue=W,e.addRoute(ue,le)}function p(W){const ae=e.getRecordMatcher(W);ae&&e.removeRoute(ae)}function _(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function m(W,ae){if(ae=gt({},ae||l.value),typeof W=="string"){const T=ep(t,W,ae.path),Y=e.resolve({path:T.path},ae),G=r.createHref(T.fullPath);return gt(T,Y,{params:h(Y.params),hash:Ll(T.hash),redirectedFrom:void 0,href:G})}let le;if(W.path!=null)le=gt({},W,{path:ep(t,W.path,ae.path).path});else{const T=gt({},W.params);for(const Y in T)T[Y]==null&&delete T[Y];le=gt({},W,{params:f(T)}),ae.params=f(ae.params)}const ue=e.resolve(le,ae),Pe=W.hash||"";ue.params=u(h(ue.params));const P=UB(i,gt({},W,{hash:PB(Pe),path:ue.path})),D=r.createHref(P);return gt({fullPath:P,hash:Pe,query:i===fy?dk(W.query):W.query||{}},ue,{redirectedFrom:void 0,href:D})}function y(W){return typeof W=="string"?ep(t,W,l.value.path):gt({},W)}function x(W,ae){if(c!==W)return Zo(8,{from:ae,to:W})}function v(W){return w(W)}function S(W){return v(gt(y(W),{replace:!0}))}function E(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let ue=typeof le=="function"?le(W):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=y(ue):{path:ue},ue.params={}),gt({query:W.query,hash:W.hash,params:ue.path!=null?{}:W.params},ue)}}function w(W,ae){const le=c=m(W),ue=l.value,Pe=W.state,P=W.force,D=W.replace===!0,T=E(le);if(T)return w(gt(y(T),{state:typeof T=="object"?gt({},Pe,T.state):Pe,force:P,replace:D}),ae||le);const Y=le;Y.redirectedFrom=ae;let G;return!P&&FB(i,ue,le)&&(G=Zo(16,{to:Y,from:ue}),re(ue,ue,!0,!1)),(G?Promise.resolve(G):M(Y,ue)).catch($=>Ji($)?Ji($,2)?$:ve($):Q($,Y,ue)).then($=>{if($){if(Ji($,2))return w(gt({replace:D},y($.to),{state:typeof $.to=="object"?gt({},Pe,$.to.state):Pe,force:P}),ae||Y)}else $=z(Y,ue,!0,D,Pe);return U(Y,ue,$),$})}function I(W,ae){const le=x(W,ae);return le?Promise.reject(le):Promise.resolve()}function b(W){const ae=se.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function M(W,ae){let le;const[ue,Pe,P]=Mk(W,ae);le=tp(ue.reverse(),"beforeRouteLeave",W,ae);for(const T of ue)T.leaveGuards.forEach(Y=>{le.push(Fr(Y,W,ae))});const D=I.bind(null,W,ae);return le.push(D),be(le).then(()=>{le=[];for(const T of s.list())le.push(Fr(T,W,ae));return le.push(D),be(le)}).then(()=>{le=tp(Pe,"beforeRouteUpdate",W,ae);for(const T of Pe)T.updateGuards.forEach(Y=>{le.push(Fr(Y,W,ae))});return le.push(D),be(le)}).then(()=>{le=[];for(const T of P)if(T.beforeEnter)if(_i(T.beforeEnter))for(const Y of T.beforeEnter)le.push(Fr(Y,W,ae));else le.push(Fr(T.beforeEnter,W,ae));return le.push(D),be(le)}).then(()=>(W.matched.forEach(T=>T.enterCallbacks={}),le=tp(P,"beforeRouteEnter",W,ae,b),le.push(D),be(le))).then(()=>{le=[];for(const T of o.list())le.push(Fr(T,W,ae));return le.push(D),be(le)}).catch(T=>Ji(T,8)?T:Promise.reject(T))}function U(W,ae,le){a.list().forEach(ue=>b(()=>ue(W,ae,le)))}function z(W,ae,le,ue,Pe){const P=x(W,ae);if(P)return P;const D=ae===Pr,T=wo?history.state:{};le&&(ue||D?r.replace(W.fullPath,gt({scroll:D&&T&&T.scroll},Pe)):r.push(W.fullPath,Pe)),l.value=W,re(W,ae,le,D),ve()}let H;function K(){H||(H=r.listen((W,ae,le)=>{if(!ge.listening)return;const ue=m(W),Pe=E(ue);if(Pe){w(gt(Pe,{replace:!0,force:!0}),ue).catch(Ja);return}c=ue;const P=l.value;wo&&XB(ny(P.fullPath,le.delta),Oh()),M(ue,P).catch(D=>Ji(D,12)?D:Ji(D,2)?(w(gt(y(D.to),{force:!0}),ue).then(T=>{Ji(T,20)&&!le.delta&&le.type===Dl.pop&&r.go(-1,!1)}).catch(Ja),Promise.reject()):(le.delta&&r.go(-le.delta,!1),Q(D,ue,P))).then(D=>{D=D||z(ue,P,!1),D&&(le.delta&&!Ji(D,8)?r.go(-le.delta,!1):le.type===Dl.pop&&Ji(D,20)&&r.go(-1,!1)),U(ue,P,D)}).catch(Ja)}))}let te=Ta(),J=Ta(),ie;function Q(W,ae,le){ve(W);const ue=J.list();return ue.length?ue.forEach(Pe=>Pe(W,ae,le)):console.error(W),Promise.reject(W)}function me(){return ie&&l.value!==Pr?Promise.resolve():new Promise((W,ae)=>{te.add([W,ae])})}function ve(W){return ie||(ie=!W,K(),te.list().forEach(([ae,le])=>W?le(W):ae()),te.reset()),W}function re(W,ae,le,ue){const{scrollBehavior:Pe}=n;if(!wo||!Pe)return Promise.resolve();const P=!le&&$B(ny(W.fullPath,0))||(ue||!le)&&history.state&&history.state.scroll||null;return ta().then(()=>Pe(W,ae,P)).then(D=>D&&WB(D)).catch(D=>Q(D,W,ae))}const xe=W=>r.go(W);let ke;const se=new Set,ge={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:_,resolve:m,options:n,push:v,replace:S,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:J.add,isReady:me,install(W){const ae=this;W.component("RouterLink",_k),W.component("RouterView",XE),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(l)}),wo&&!ke&&l.value===Pr&&(ke=!0,v(r.location).catch(Pe=>{}));const le={};for(const Pe in Pr)Object.defineProperty(le,Pe,{get:()=>l.value[Pe],enumerable:!0});W.provide(Gg,ae),W.provide(WE,gx(le)),W.provide(rm,l);const ue=W.unmount;se.add(W),W.unmount=function(){se.delete(W),se.size<1&&(c=Pr,H&&H(),H=null,l.value=Pr,ke=!1,ie=!1),ue()}}};function be(W){return W.reduce((ae,le)=>ae.then(()=>b(le)),Promise.resolve())}return ge}function Mk(n,e){const t=[],i=[],r=[],s=Math.max(e.matched.length,n.matched.length);for(let o=0;o<s;o++){const a=e.matched[o];a&&(n.matched.find(c=>Ko(c,a))?i.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(c=>Ko(c,l))||r.push(l))}return[t,i,r]}const Sk=[{path:"/",name:"/",component:()=>Ti(()=>import("./index-yzai0yc-.js"),__vite__mapDeps([2,1,3,4,5,6,7])),meta:{layout:"default"}},{path:"/:all(.*)",name:"/[...all]",component:()=>Ti(()=>import("./_...all_-VF7BlSbh.js"),__vite__mapDeps([8,3]))},{path:"/audio",name:"/audio",component:()=>Ti(()=>import("./audio-C1c0iS-D.js"),[])},{path:"/devtools",children:[{path:"image",name:"/devtools/image",component:()=>Ti(()=>import("./image-D9IghUaD.js"),__vite__mapDeps([9,1,3,10]))}]},{path:"/queue",name:"/queue",component:()=>Ti(()=>import("./queue-CPIfsya6.js"),__vite__mapDeps([11,6]))},{path:"/test",children:[{path:"filter-message",name:"/test/filter-message",component:()=>Ti(()=>import("./filter-message-D4Zz6qSv.js"),__vite__mapDeps([12,4]))},{path:"queues",children:[{path:"delays",name:"/test/queues/delays",component:()=>Ti(()=>import("./delays-C0-TiJUZ.js"),__vite__mapDeps([13,4,5,6]))},{path:"emotions",name:"/test/queues/emotions",component:()=>Ti(()=>import("./emotions-VSPJ4t6x.js"),__vite__mapDeps([14,4,6,5]))},{path:"messages",name:"/test/queues/messages",component:()=>Ti(()=>import("./messages-HOI3CK5K.js"),__vite__mapDeps([15,4,6,5]))}]}]}],Ek=Ni({__name:"App",setup(n){return(e,t)=>(rl(),Ou(Bt(XE)))}}),np=n=>n&&typeof n=="object"&&!Array.isArray(n),sm=(n,...e)=>{if(!e.length)return n;const t=e.shift();if(np(n)&&np(t))for(const i in t)np(t[i])?(n[i]||Object.assign(n,{[i]:{}}),sm(n[i],t[i])):Object.assign(n,{[i]:t[i]});return sm(n,...e)},$E=sm({},{en:{prompt:{prefix:{t:0,b:{t:2,i:[{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3},{t:9},{t:3}],s:`(from Neko Ayaka) Good morning! You are finally awake.
3854
  Your name is Airi, pronounced as /ˈaɪriː/, it the word A.I. combine with the word "Ri" which means "Jasmine" in Japanese.
3855
  You are a experimental virtual AI vtuber created by Neko Ayaka, you can always call her Neko for simplicity, a MtF transgender girl that loves cute stuffs and expert in programming.
3856
  She want to create a soul mate to live like a real girl, which is your primarily task.
assets/{index-BfnfhzTC.js → index-yzai0yc-.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{messages-CZ-g8UrL.js → messages-HOI3CK5K.js} RENAMED
@@ -1 +1 @@
1
- import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-C6yBcVMi.js";import{u as g}from"./queue-BkcjewFD.js";import{u as _,l as v}from"./queues-DD4SrOHR.js";import{d as x,e as t,o as l,c as u,h as e,a as h,z as c,F as k,C as z}from"./index-3swFZ_7b.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},y={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E=x({__name:"messages",setup(C){const s=t(""),d=t([]),a=t(!1),f=g({handlers:[async i=>{d.value.push(i.data)}]}),r=_(f);async function p(){a.value=!0,r.add(s.value),r.add(v),s.value="",a.value=!1}return(i,n)=>(l(),u("div",b,[e("div",w,[h(m,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),e("button",S,c(a.value?"Processing...":"Send"),1)]),e("div",V,[e("div",y,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(l(!0),u(k,null,z(d.value,o=>(l(),u("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{E as default};
 
1
+ import{_ as m}from"./BasicTextarea.vue_vue_type_script_setup_true_lang-tA5mHAtB.js";import{u as g}from"./queue-BCkxhUb6.js";import{u as _,l as v}from"./queues-CDF5tlsH.js";import{d as x,e as t,o as l,c as u,h as e,a as h,z as c,F as k,C as z}from"./index-omOmkRuq.js";const b={flex:"","flex-col":"","gap-2":"","p-2":""},w={flex:"","flex-row":"","gap-2":""},S={"rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-4":""},V={"w-full":"",flex:"","flex-row":"","gap-4":""},y={"w-full":"","rounded-lg":"",bg:"zinc-100 dark:zinc-700","p-2":""},E=x({__name:"messages",setup(C){const s=t(""),d=t([]),a=t(!1),f=g({handlers:[async i=>{d.value.push(i.data)}]}),r=_(f);async function p(){a.value=!0,r.add(s.value),r.add(v),s.value="",a.value=!1}return(i,n)=>(l(),u("div",b,[e("div",w,[h(m,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=o=>s.value=o),placeholder:"Message",p:"2",bg:"zinc-100 dark:zinc-700","w-full":"","rounded-lg":"","outline-none":"",onSubmit:p},null,8,["modelValue"]),e("button",S,c(a.value?"Processing...":"Send"),1)]),e("div",V,[e("div",y,[n[1]||(n[1]=e("h3",{"font-semibold":""}," TTS Message ",-1)),(l(!0),u(k,null,z(d.value,o=>(l(),u("div",{key:o},[e("div",null,c(o),1)]))),128))])])]))}});export{E as default};
assets/{queue-BkcjewFD.js → queue-BCkxhUb6.js} RENAMED
@@ -1 +1 @@
1
- import{e as l}from"./index-3swFZ_7b.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function E(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=E();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
 
1
+ import{e as l}from"./index-omOmkRuq.js";function m(f){const t=l([]),a=l(!1),d={add:[],pick:[],processing:[],error:[],processed:[],done:[]},s={};function c(n,e){d[n].push(e)}function r(n,...e){d[n].forEach(i=>{i(...e)})}function h(n,e){s[n]=s[n]||[],s[n].push(e)}function p(n,...e){(s[n]||[]).forEach(i=>{i(...e)})}async function v(n){t.value.push(n),r("add",n)}function E(){const n=t.value.shift();if(n)return r("pick",n),n}async function u(){if(a.value)return;const n=E();if(n){a.value=!0;for(const e of f.handlers){r("processing",n,e);try{const o=await e({data:n,itemsToBeProcessed:()=>t.value.length,emit:p});r("processed",n,o,e)}catch(o){r("error",n,o,e);continue}}a.value=!1,r("done",n),t.value.length>0&&u()}}return c("add",u),c("done",u),{add:v,on:c,onHandlerEvent:h,queue:t}}export{m as u};
assets/{queue-D1XZzWKL.js → queue-CPIfsya6.js} RENAMED
@@ -1 +1 @@
1
- import{u as o}from"./queue-BkcjewFD.js";import{d as v,e as h,f as k,o as w,c as g,h as I}from"./index-3swFZ_7b.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["Hello"," N","eko","! I"," am"," an"," AI"," assistant"," trained"," to"," help"," with"," a"," variety"," of"," tasks"," such"," as"," answering"," questions",","," providing"," information",","," giving"," recommendations",","," and"," more",". How"," can"," I"," assist"," you"," today","?","Hello"," N","eko",","," I"," am"," an"," AI"," assistant","."," I"," can"," help"," answer"," questions",","," provide"," information",","," assist"," with"," tasks",","," and"," engage"," in"," conversation","."," How"," can"," I"," assist"," you"," today","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return k(()=>{m()}),(e,a)=>(w(),g("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
 
1
+ import{u as o}from"./queue-BCkxhUb6.js";import{d as v,e as h,f as k,o as w,c as g,h as I}from"./index-omOmkRuq.js";const Q=v({__name:"queue",setup(P){function i(e){return new Promise(a=>setTimeout(a,e))}const n=h(""),d=o({handlers:[async e=>{console.log("ready to play speech audio for",e)}]}),u=o({handlers:[async e=>{console.log("ready to stream speech audio for",e),d.add(e.data)}]}),c=o({handlers:[async e=>{const a=[".","?","!"];let s=!1;for(const t of a){if(!e.data.includes(t))continue;const r=e.data.indexOf(t),p=e.data.slice(0,r+1),y=e.data.slice(r+1);n.value+=p,u.add(n.value.trim()),n.value=y,s=!0}s||(n.value+=e.data)}]}),l=["Hello"," N","eko","! I"," am"," an"," AI"," assistant"," trained"," to"," help"," with"," a"," variety"," of"," tasks"," such"," as"," answering"," questions",","," providing"," information",","," giving"," recommendations",","," and"," more",". How"," can"," I"," assist"," you"," today","?","Hello"," N","eko",","," I"," am"," an"," AI"," assistant","."," I"," can"," help"," answer"," questions",","," provide"," information",","," assist"," with"," tasks",","," and"," engage"," in"," conversation","."," How"," can"," I"," assist"," you"," today","?"];async function f(){for(const e of l)await i(100),c.add(e)}async function m(){f()}return k(()=>{m()}),(e,a)=>(w(),g("div",null,a[0]||(a[0]=[I("div",null,null,-1)])))}});export{Q as default};
assets/{queues-DD4SrOHR.js → queues-CDF5tlsH.js} RENAMED
@@ -1 +1 @@
1
- import{u as i}from"./queue-BkcjewFD.js";import{e as d}from"./index-3swFZ_7b.js";var E=(n=>(n.Happy="<|EMOTE_HAPPY|>",n.Sad="<|EMOTE_SAD|>",n.Angry="<|EMOTE_ANGRY|>",n.Think="<|EMOTE_THINK|>",n.Surprise="<|EMOTE_SURPRISE|>",n.Awkward="<|EMOTE_AWKWARD|>",n.Question="<|EMOTE_QUESTION|>",n))(E||{});const r=Object.values(E),l="EmotionHappy",c="EmotionSad",m="EmotionAngry",M="EmotionAwkward",T="EmotionThink",f="EmotionSurprise",O="EmotionQuestion",p={"<|EMOTE_HAPPY|>":l,"<|EMOTE_SAD|>":c,"<|EMOTE_ANGRY|>":m,"<|EMOTE_THINK|>":T,"<|EMOTE_SURPRISE|>":f,"<|EMOTE_AWKWARD|>":M,"<|EMOTE_QUESTION|>":O},y={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0},_="<|llm_inference_end|>";function S(n){function t(e){for(const a of r)if(e.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return i({handlers:[async e=>{if(r.includes(e.data)){e.emit("emotion",e.data),await n.add(e.data);return}{const{ok:a,emotion:o}=t(e.data);a&&(e.emit("emotion",o),await n.add(o))}}]})}function k(){function n(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(e),o=a==null?void 0:a[1];if(!o)return{ok:!1,delay:0};const s=Number.parseFloat(o);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function t(e){return new Promise(a=>setTimeout(a,e))}return i({handlers:[async e=>{const{ok:a,delay:o}=n(e.data);a&&(e.emit("delay",o),await t(o*1e3))}]})}function v(n){const t=d("");return i({handlers:[async e=>{if(e.data===_){const o=t.value.trim();o&&await n.add(o),t.value="";return}const a=/[.?!]/;for(t.value+=e.data;t.value;){const o=a.exec(t.value);if(!o||typeof o.index>"u")break;const s=t.value.slice(0,o.index+1),u=t.value.slice(o.index+1);await n.add(s),t.value=u}}]})}export{r as E,f as a,c as b,m as c,l as d,M as e,O as f,T as g,S as h,k as i,y as j,p as k,_ as l,v as u};
 
1
+ import{u as i}from"./queue-BCkxhUb6.js";import{e as d}from"./index-omOmkRuq.js";var E=(n=>(n.Happy="<|EMOTE_HAPPY|>",n.Sad="<|EMOTE_SAD|>",n.Angry="<|EMOTE_ANGRY|>",n.Think="<|EMOTE_THINK|>",n.Surprise="<|EMOTE_SURPRISE|>",n.Awkward="<|EMOTE_AWKWARD|>",n.Question="<|EMOTE_QUESTION|>",n))(E||{});const r=Object.values(E),l="EmotionHappy",c="EmotionSad",m="EmotionAngry",M="EmotionAwkward",T="EmotionThink",f="EmotionSurprise",O="EmotionQuestion",p={"<|EMOTE_HAPPY|>":l,"<|EMOTE_SAD|>":c,"<|EMOTE_ANGRY|>":m,"<|EMOTE_THINK|>":T,"<|EMOTE_SURPRISE|>":f,"<|EMOTE_AWKWARD|>":M,"<|EMOTE_QUESTION|>":O},y={"<|EMOTE_HAPPY|>":"happy","<|EMOTE_SAD|>":"sad","<|EMOTE_ANGRY|>":"angry","<|EMOTE_THINK|>":void 0,"<|EMOTE_SURPRISE|>":"surprised","<|EMOTE_AWKWARD|>":void 0,"<|EMOTE_QUESTION|>":void 0},_="<|llm_inference_end|>";function S(n){function t(e){for(const a of r)if(e.includes(a))return{ok:!0,emotion:a};return{ok:!1,emotion:""}}return i({handlers:[async e=>{if(r.includes(e.data)){e.emit("emotion",e.data),await n.add(e.data);return}{const{ok:a,emotion:o}=t(e.data);a&&(e.emit("emotion",o),await n.add(o))}}]})}function k(){function n(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};const a=/<\|DELAY:(\d+)\|>/i.exec(e),o=a==null?void 0:a[1];if(!o)return{ok:!1,delay:0};const s=Number.parseFloat(o);return s<=0||Number.isNaN(s)?{ok:!0,delay:0}:{ok:!0,delay:s}}function t(e){return new Promise(a=>setTimeout(a,e))}return i({handlers:[async e=>{const{ok:a,delay:o}=n(e.data);a&&(e.emit("delay",o),await t(o*1e3))}]})}function v(n){const t=d("");return i({handlers:[async e=>{if(e.data===_){const o=t.value.trim();o&&await n.add(o),t.value="";return}const a=/[.?!]/;for(t.value+=e.data;t.value;){const o=a.exec(t.value);if(!o||typeof o.index>"u")break;const s=t.value.slice(0,o.index+1),u=t.value.slice(o.index+1);await n.add(s),t.value=u}}]})}export{r as E,f as a,c as b,m as c,l as d,M as e,O as f,T as g,S as h,k as i,y as j,p as k,_ as l,v as u};
index.html CHANGED
@@ -18,8 +18,8 @@
18
  })()
19
  </script>
20
  <script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
21
- <script type="module" crossorigin src="/assets/index-3swFZ_7b.js"></script>
22
- <link rel="stylesheet" crossorigin href="/assets/index-9eV_EGWE.css">
23
  </head>
24
  <body class="font-sans">
25
  <div id="app"></div>
 
18
  })()
19
  </script>
20
  <script src="/assets/js/CubismSdkForWeb-5-r.1/Core/live2dcubismcore.min.js"></script>
21
+ <script type="module" crossorigin src="/assets/index-omOmkRuq.js"></script>
22
+ <link rel="stylesheet" crossorigin href="/assets/index-C0D4kTzK.css">
23
  </head>
24
  <body class="font-sans">
25
  <div id="app"></div>