From 8670addcc3f39ee8b14a2761308179bd1d9a37d0 Mon Sep 17 00:00:00 2001 From: Macky Date: Sat, 8 Aug 2026 10:55:45 +0700 Subject: [PATCH] ui(icons): replace colored emoji with modern single-color line icons (lucide-vue-next) Add lucide-vue-next (stroke-based, single-color, currentColor) and swap emoji icons across nav + all main views: Settings/LogOut (App), BarChart3/Users/Plus (Analytics), LayoutDashboard (MyBoard), Sparkles/Users/Pencil (GroupEdit), Box/ListChecks/Paperclip/ PlusCircle/ArrowLeft (GroupBuilder), Target/ArrowLeft/Search (Chat/Personas/Training), User/Lock/Globe (Settings), Users/UserPlus/Info (AdminUsers). - Buttons become inline-flex for icon+text alignment. - Icons inherit currentColor (single color, modern line style). - Rebuild dist with lucide. --- frontend/dist/assets/AdminUsers-B0sl0uHS.css | 1 + frontend/dist/assets/AdminUsers-B7nEYj4N.js | 11 +++ frontend/dist/assets/AdminUsers-K3vzxj9L.js | 1 - frontend/dist/assets/AdminUsers-e5df29OL.css | 1 - frontend/dist/assets/Analytics-CyuFLItl.js | 6 ++ frontend/dist/assets/Analytics-D5VrZMJ0.css | 1 + frontend/dist/assets/Analytics-D85JjGgM.js | 1 - frontend/dist/assets/Analytics-Pg5dwyd7.css | 1 - frontend/dist/assets/Chat-Bo6laZZd.js | 6 ++ frontend/dist/assets/Chat-COdP9j9f.js | 1 - frontend/dist/assets/Chat-D9rUobmy.css | 1 - frontend/dist/assets/Chat-Dq49zqgJ.css | 1 + .../dist/assets/GroupBuilder-B8gqmNUJ.css | 1 - frontend/dist/assets/GroupBuilder-BTot24Pr.js | 21 +++++ frontend/dist/assets/GroupBuilder-BtLOuOw5.js | 1 - .../dist/assets/GroupBuilder-CpbMByEC.css | 1 + frontend/dist/assets/GroupEdit-CykIW85w.js | 4 - frontend/dist/assets/GroupEdit-D9lmggXK.css | 1 + frontend/dist/assets/GroupEdit-Db7E5OJj.js | 14 ++++ frontend/dist/assets/GroupEdit-b5HdCSuv.css | 1 - .../{Login-DpLtB9t4.js => Login-DhaEm1-6.js} | 2 +- frontend/dist/assets/MyBoard-B7ypQ1JT.css | 1 + frontend/dist/assets/MyBoard-CDLgMRNi.css | 1 - frontend/dist/assets/MyBoard-CHF7e7KE.js | 6 ++ frontend/dist/assets/MyBoard-DT8KV0ES.js | 1 - frontend/dist/assets/Personas-Be_DU4st.css | 1 - frontend/dist/assets/Personas-CRi-xjVS.js | 1 + frontend/dist/assets/Personas-CskAUbZv.css | 1 + frontend/dist/assets/Personas-ujsGrehm.js | 1 - frontend/dist/assets/Settings-BCN2EZQ5.css | 1 + frontend/dist/assets/Settings-CatYfY0I.js | 16 ++++ frontend/dist/assets/Settings-DagQxl_z.js | 1 - frontend/dist/assets/Settings-y28ROmym.css | 1 - .../{Setup-Ax3Eo5U7.js => Setup-D9lCpt9C.js} | 2 +- frontend/dist/assets/Training-BcDA5IbA.css | 1 - frontend/dist/assets/Training-CH5dgqen.js | 1 + frontend/dist/assets/Training-CIWgzyIG.js | 1 - frontend/dist/assets/Training-CeWRER6W.css | 1 + frontend/dist/assets/arrow-left-BoUMQ_f_.js | 6 ++ frontend/dist/assets/index-BhdfH8-z.js | 27 ------ frontend/dist/assets/index-Bu7f-IE2.css | 1 + frontend/dist/assets/index-C0Orcg9B.js | 82 +++++++++++++++++++ frontend/dist/assets/index-HCrojZU7.css | 1 - frontend/dist/assets/plus-Cw7xc8qj.js | 6 ++ frontend/dist/assets/target-qgda8bhm.js | 6 ++ frontend/dist/assets/users-D5qk1Nmy.js | 6 ++ frontend/dist/index.html | 4 +- frontend/package-lock.json | 11 +++ frontend/package.json | 1 + frontend/src/App.vue | 12 ++- frontend/src/style.css | 4 +- frontend/src/views/AdminUsers.vue | 7 +- frontend/src/views/Analytics.vue | 9 +- frontend/src/views/Chat.vue | 7 +- frontend/src/views/GroupBuilder.vue | 13 +-- frontend/src/views/GroupEdit.vue | 9 +- frontend/src/views/MyBoard.vue | 3 +- frontend/src/views/Personas.vue | 9 +- frontend/src/views/Settings.vue | 9 +- frontend/src/views/Training.vue | 5 +- 60 files changed, 265 insertions(+), 89 deletions(-) create mode 100644 frontend/dist/assets/AdminUsers-B0sl0uHS.css create mode 100644 frontend/dist/assets/AdminUsers-B7nEYj4N.js delete mode 100644 frontend/dist/assets/AdminUsers-K3vzxj9L.js delete mode 100644 frontend/dist/assets/AdminUsers-e5df29OL.css create mode 100644 frontend/dist/assets/Analytics-CyuFLItl.js create mode 100644 frontend/dist/assets/Analytics-D5VrZMJ0.css delete mode 100644 frontend/dist/assets/Analytics-D85JjGgM.js delete mode 100644 frontend/dist/assets/Analytics-Pg5dwyd7.css create mode 100644 frontend/dist/assets/Chat-Bo6laZZd.js delete mode 100644 frontend/dist/assets/Chat-COdP9j9f.js delete mode 100644 frontend/dist/assets/Chat-D9rUobmy.css create mode 100644 frontend/dist/assets/Chat-Dq49zqgJ.css delete mode 100644 frontend/dist/assets/GroupBuilder-B8gqmNUJ.css create mode 100644 frontend/dist/assets/GroupBuilder-BTot24Pr.js delete mode 100644 frontend/dist/assets/GroupBuilder-BtLOuOw5.js create mode 100644 frontend/dist/assets/GroupBuilder-CpbMByEC.css delete mode 100644 frontend/dist/assets/GroupEdit-CykIW85w.js create mode 100644 frontend/dist/assets/GroupEdit-D9lmggXK.css create mode 100644 frontend/dist/assets/GroupEdit-Db7E5OJj.js delete mode 100644 frontend/dist/assets/GroupEdit-b5HdCSuv.css rename frontend/dist/assets/{Login-DpLtB9t4.js => Login-DhaEm1-6.js} (92%) create mode 100644 frontend/dist/assets/MyBoard-B7ypQ1JT.css delete mode 100644 frontend/dist/assets/MyBoard-CDLgMRNi.css create mode 100644 frontend/dist/assets/MyBoard-CHF7e7KE.js delete mode 100644 frontend/dist/assets/MyBoard-DT8KV0ES.js delete mode 100644 frontend/dist/assets/Personas-Be_DU4st.css create mode 100644 frontend/dist/assets/Personas-CRi-xjVS.js create mode 100644 frontend/dist/assets/Personas-CskAUbZv.css delete mode 100644 frontend/dist/assets/Personas-ujsGrehm.js create mode 100644 frontend/dist/assets/Settings-BCN2EZQ5.css create mode 100644 frontend/dist/assets/Settings-CatYfY0I.js delete mode 100644 frontend/dist/assets/Settings-DagQxl_z.js delete mode 100644 frontend/dist/assets/Settings-y28ROmym.css rename frontend/dist/assets/{Setup-Ax3Eo5U7.js => Setup-D9lCpt9C.js} (96%) delete mode 100644 frontend/dist/assets/Training-BcDA5IbA.css create mode 100644 frontend/dist/assets/Training-CH5dgqen.js delete mode 100644 frontend/dist/assets/Training-CIWgzyIG.js create mode 100644 frontend/dist/assets/Training-CeWRER6W.css create mode 100644 frontend/dist/assets/arrow-left-BoUMQ_f_.js delete mode 100644 frontend/dist/assets/index-BhdfH8-z.js create mode 100644 frontend/dist/assets/index-Bu7f-IE2.css create mode 100644 frontend/dist/assets/index-C0Orcg9B.js delete mode 100644 frontend/dist/assets/index-HCrojZU7.css create mode 100644 frontend/dist/assets/plus-Cw7xc8qj.js create mode 100644 frontend/dist/assets/target-qgda8bhm.js create mode 100644 frontend/dist/assets/users-D5qk1Nmy.js diff --git a/frontend/dist/assets/AdminUsers-B0sl0uHS.css b/frontend/dist/assets/AdminUsers-B0sl0uHS.css new file mode 100644 index 0000000..45c544a --- /dev/null +++ b/frontend/dist/assets/AdminUsers-B0sl0uHS.css @@ -0,0 +1 @@ +.guide[data-v-924406be]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px} diff --git a/frontend/dist/assets/AdminUsers-B7nEYj4N.js b/frontend/dist/assets/AdminUsers-B7nEYj4N.js new file mode 100644 index 0000000..c64c5d8 --- /dev/null +++ b/frontend/dist/assets/AdminUsers-B7nEYj4N.js @@ -0,0 +1,11 @@ +import{k as w,_ as h,l as U,c as r,a as e,m,u as o,j as l,t as n,i as u,w as p,v,D as b,e as f,F as V,q as M,s as k,r as y,o as i,A as C}from"./index-C0Orcg9B.js";import{U as z}from"./users-D5qk1Nmy.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L=w("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N=w("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),A={class:"card guide"},B={class:"card",style:{"margin-bottom":"16px"}},D={style:{"margin-top":"0"}},I={class:"row"},j={class:"row",style:{"margin-top":"10px"}},q=["disabled"],F={key:0,class:"error"},S={key:0,class:"card empty-state"},T={style:{flex:"1"}},E={class:"badge"},H={__name:"AdminUsers",setup(P){const c=y([]),d=y(""),t=y({username:"",name:"",password:"",role:"user"});async function g(){c.value=(await k.adminListUsers()).users}async function _(){d.value="";try{await k.adminCreateUser({...t.value}),t.value={username:"",name:"",password:"",role:"user"},await g()}catch(x){d.value=x.message}}return U(g),(x,s)=>(i(),r("div",null,[e("h2",null,[m(o(z),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),l(" "+n(o(u).t("users")),1)]),e("div",A,[e("strong",null,[m(o(L),{size:17,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),s[4]||(s[4]=l(" วิธีเพิ่มผู้ใช้งาน",-1))]),s[5]||(s[5]=e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[l("กรอก "),e("strong",null,"ชื่อผู้ใช้ (สำหรับเข้าสู่ระบบ)"),l(", ชื่อ, และรหัสผ่านเริ่มต้น")]),e("li",null,[l("เลือกสิทธิ์: "),e("strong",null,"user"),l(" = ผู้เข้าฝึกขาย, "),e("strong",null,"admin"),l(" = จัดการระบบ")]),e("li",null,[l("กด "),e("strong",null,"สร้าง"),l(" — นำชื่อผู้ใช้ + รหัสผ่านไปแจ้งให้ผู้ใช้นั้นเข้าสู่ระบบได้เลย")])],-1))]),e("div",B,[e("h4",D,[m(o(N),{size:18,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),l(" + "+n(o(u).t("create"))+" "+n(o(u).t("users").toLowerCase()),1)]),e("div",I,[p(e("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>t.value.username=a),placeholder:"ชื่อผู้ใช้ (เข้าสู่ระบบ)",style:{flex:"1"}},null,512),[[v,t.value.username]]),p(e("input",{"onUpdate:modelValue":s[1]||(s[1]=a=>t.value.name=a),placeholder:"ชื่อจริง",style:{flex:"1"}},null,512),[[v,t.value.name]]),p(e("input",{"onUpdate:modelValue":s[2]||(s[2]=a=>t.value.password=a),type:"password",placeholder:"รหัสผ่านเริ่มต้น",style:{flex:"1"}},null,512),[[v,t.value.password]])]),e("div",j,[p(e("select",{"onUpdate:modelValue":s[3]||(s[3]=a=>t.value.role=a),style:{flex:"1"}},[...s[6]||(s[6]=[e("option",{value:"user"},"🙂 user — ผู้เข้าฝึก",-1),e("option",{value:"admin"},"🛠 admin — ผู้ดูแลระบบ",-1)])],512),[[b,t.value.role]]),e("button",{class:"primary",onClick:_,disabled:!t.value.username||!t.value.password},"+ "+n(o(u).t("create")),9,q)]),d.value?(i(),r("div",F,n(d.value),1)):f("",!0)]),c.value.length===0?(i(),r("div",S,[...s[7]||(s[7]=[e("strong",null,"ยังไม่มีผู้ใช้งาน",-1),e("span",null,"สร้างผู้ใช้งานคนแรกด้วยฟอร์มด้านบน",-1)])])):f("",!0),(i(!0),r(V,null,M(c.value,a=>(i(),r("div",{class:"card",key:a.id,style:{"margin-bottom":"8px",display:"flex","align-items":"center",gap:"12px"}},[e("strong",T,n(a.name)+" ("+n(a.username)+")",1),e("span",E,n(a.role),1),e("span",{class:C(["badge",a.active?"won":"lost"])},n(a.active?"active":"inactive"),3)]))),128))]))}},K=h(H,[["__scopeId","data-v-924406be"]]);export{K as default}; diff --git a/frontend/dist/assets/AdminUsers-K3vzxj9L.js b/frontend/dist/assets/AdminUsers-K3vzxj9L.js deleted file mode 100644 index 33a64bb..0000000 --- a/frontend/dist/assets/AdminUsers-K3vzxj9L.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f,k as x,c as o,a as e,t as l,u as d,i,H as w,w as u,v as c,C as U,e as g,F as k,p as V,q as y,r as p,o as n,z as h}from"./index-BhdfH8-z.js";const C={class:"card",style:{"margin-bottom":"16px"}},B={style:{"margin-top":"0"}},L={class:"row"},M={class:"row",style:{"margin-top":"10px"}},N=["disabled"],S={key:0,class:"error"},z={key:0,class:"card empty-state"},A={style:{flex:"1"}},D={class:"badge"},F={__name:"AdminUsers",setup(q){const v=p([]),r=p(""),t=p({username:"",name:"",password:"",role:"user"});async function m(){v.value=(await y.adminListUsers()).users}async function _(){r.value="";try{await y.adminCreateUser({...t.value}),t.value={username:"",name:"",password:"",role:"user"},await m()}catch(b){r.value=b.message}}return x(m),(b,a)=>(n(),o("div",null,[e("h2",null,"👥 "+l(d(i).t("users")),1),a[6]||(a[6]=w('
📋 วิธีเพิ่มผู้ใช้งาน
  1. กรอก ชื่อผู้ใช้ (สำหรับเข้าสู่ระบบ), ชื่อ, และรหัสผ่านเริ่มต้น
  2. เลือกสิทธิ์: user = ผู้เข้าฝึกขาย, admin = จัดการระบบ
  3. กด สร้าง — นำชื่อผู้ใช้ + รหัสผ่านไปแจ้งให้ผู้ใช้นั้นเข้าสู่ระบบได้เลย
',1)),e("div",C,[e("h4",B,"+ "+l(d(i).t("create"))+" "+l(d(i).t("users").toLowerCase()),1),e("div",L,[u(e("input",{"onUpdate:modelValue":a[0]||(a[0]=s=>t.value.username=s),placeholder:"ชื่อผู้ใช้ (เข้าสู่ระบบ)",style:{flex:"1"}},null,512),[[c,t.value.username]]),u(e("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>t.value.name=s),placeholder:"ชื่อจริง",style:{flex:"1"}},null,512),[[c,t.value.name]]),u(e("input",{"onUpdate:modelValue":a[2]||(a[2]=s=>t.value.password=s),type:"password",placeholder:"รหัสผ่านเริ่มต้น",style:{flex:"1"}},null,512),[[c,t.value.password]])]),e("div",M,[u(e("select",{"onUpdate:modelValue":a[3]||(a[3]=s=>t.value.role=s),style:{flex:"1"}},[...a[4]||(a[4]=[e("option",{value:"user"},"🙂 user — ผู้เข้าฝึก",-1),e("option",{value:"admin"},"🛠 admin — ผู้ดูแลระบบ",-1)])],512),[[U,t.value.role]]),e("button",{class:"primary",onClick:_,disabled:!t.value.username||!t.value.password},"+ "+l(d(i).t("create")),9,N)]),r.value?(n(),o("div",S,l(r.value),1)):g("",!0)]),v.value.length===0?(n(),o("div",z,[...a[5]||(a[5]=[e("strong",null,"ยังไม่มีผู้ใช้งาน",-1),e("span",null,"สร้างผู้ใช้งานคนแรกด้วยฟอร์มด้านบน",-1)])])):g("",!0),(n(!0),o(k,null,V(v.value,s=>(n(),o("div",{class:"card",key:s.id,style:{"margin-bottom":"8px",display:"flex","align-items":"center",gap:"12px"}},[e("strong",A,l(s.name)+" ("+l(s.username)+")",1),e("span",D,l(s.role),1),e("span",{class:h(["badge",s.active?"won":"lost"])},l(s.active?"active":"inactive"),3)]))),128))]))}},H=f(F,[["__scopeId","data-v-6b85bc80"]]);export{H as default}; diff --git a/frontend/dist/assets/AdminUsers-e5df29OL.css b/frontend/dist/assets/AdminUsers-e5df29OL.css deleted file mode 100644 index b201f54..0000000 --- a/frontend/dist/assets/AdminUsers-e5df29OL.css +++ /dev/null @@ -1 +0,0 @@ -.guide[data-v-6b85bc80]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px} diff --git a/frontend/dist/assets/Analytics-CyuFLItl.js b/frontend/dist/assets/Analytics-CyuFLItl.js new file mode 100644 index 0000000..80f3c49 --- /dev/null +++ b/frontend/dist/assets/Analytics-CyuFLItl.js @@ -0,0 +1,6 @@ +import{k,_ as C,l as V,c as u,a as s,m as i,u as a,j as m,t,i as l,n as h,w as f,v as w,p as z,e as M,F as N,q as L,s as P,x as U,r as v,o as _}from"./index-C0Orcg9B.js";import{U as j}from"./users-D5qk1Nmy.js";import{P as A}from"./plus-Cw7xc8qj.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B=k("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),S={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},T={style:{margin:"0"}},D={class:"row",style:{"margin-left":"auto",gap:"10px"}},F={class:"users-btn"},I={class:"primary"},R={class:"card filter-bar"},W={class:"muted"},q=["disabled"],E=["disabled"],O={class:"row",style:{gap:"16px",margin:"16px 0"}},G={class:"card stat"},H={class:"card stat"},J={style:{color:"var(--green)"}},K={class:"card stat"},Q={style:{color:"var(--red)"}},X={class:"card stat"},Y={class:"card stat"},Z={class:"card"},$={class:"row",style:{"justify-content":"space-between","align-items":"center"}},ss={class:"bar"},ts={class:"muted",style:{"font-size":"12px","margin-top":"6px"}},es={style:{"margin-top":"20px"}},as={key:0,class:"card empty-state"},os={class:"grid"},ls={class:"row",style:{"justify-content":"space-between"}},ns={class:"muted"},is={class:"row",style:{"margin-top":"10px",gap:"8px"}},rs={class:"badge won"},ds={class:"badge lost"},cs={class:"badge not_tried"},us={class:"muted",style:{"margin-top":"8px"}},vs={__name:"Analytics",setup(_s){const o=v({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]}),r=v(""),d=v(""),c=v(!1);async function p(){c.value=!0;try{o.value=await P.analytics({from:r.value,to:d.value})}finally{c.value=!1}}function b(){p()}function x(){r.value="",d.value="",p()}return V(p),(ps,e)=>{const g=U("router-link");return _(),u("div",null,[s("div",S,[s("div",null,[s("h2",T,[i(a(B),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),m(" "+t(a(l).t("adminOverview")),1)]),e[2]||(e[2]=s("div",{class:"muted",style:{"margin-top":"4px"}},"ภาพรวมผลการฝึกของทีมทั้งหมด — เลือกช่วงเวลาเพื่อดูสถิติ",-1))]),s("div",D,[i(g,{to:"/admin/users"},{default:h(()=>[s("button",F,[i(a(j),{size:18,"stroke-width":2}),m(" "+t(a(l).t("users")),1)])]),_:1}),i(g,{to:"/admin/new-group"},{default:h(()=>[s("button",I,[i(a(A),{size:18,"stroke-width":2}),m(" "+t(a(l).t("addProduct")),1)])]),_:1})])]),s("div",R,[s("span",W,"🗓 "+t(a(l).t("dateRange")),1),f(s("input",{type:"date","onUpdate:modelValue":e[0]||(e[0]=n=>r.value=n)},null,512),[[w,r.value]]),e[3]||(e[3]=s("span",null,"–",-1)),f(s("input",{type:"date","onUpdate:modelValue":e[1]||(e[1]=n=>d.value=n)},null,512),[[w,d.value]]),s("button",{class:"primary",onClick:b,disabled:c.value},"→ "+t(a(l).t("apply")),9,q),s("button",{onClick:x,disabled:c.value},t(a(l).t("clear")),9,E)]),s("div",O,[s("div",G,[e[4]||(e[4]=s("div",null,"Sessions",-1)),s("strong",null,t(o.value.overall.total_sessions),1)]),s("div",H,[e[5]||(e[5]=s("div",null,"Wins",-1)),s("strong",J,t(o.value.overall.wins),1)]),s("div",K,[e[6]||(e[6]=s("div",null,"Losses",-1)),s("strong",Q,t(o.value.overall.losses),1)]),s("div",X,[e[7]||(e[7]=s("div",null,"Avg score",-1)),s("strong",null,t(o.value.overall.avg_score),1)]),s("div",Y,[e[8]||(e[8]=s("div",null,"Trainees",-1)),s("strong",null,t(o.value.trainee_count),1)])]),s("div",Z,[s("div",$,[s("strong",null,t(a(l).t("closeRate")),1),s("strong",null,t(o.value.overall.close_rate)+"%",1)]),s("div",ss,[s("div",{class:"bar-fill",style:z({width:(o.value.overall.close_rate||0)+"%"})},null,4)]),s("div",ts,t(o.value.overall.wins)+" "+t(a(l).t("won").toLowerCase())+" / "+t(o.value.overall.total_sessions)+" sessions ",1)]),s("h3",es,t(a(l).t("hardestPersonas")),1),o.value.hardest_personas.length===0?(_(),u("div",as,[...e[9]||(e[9]=[s("strong",null,"No data",-1),s("span",null,"No sessions in this date range.",-1)])])):M("",!0),s("div",os,[(_(!0),u(N,null,L(o.value.hardest_personas,(n,y)=>(_(),u("div",{key:y,class:"card lift tier-card"},[s("div",ls,[s("strong",null,t(n.persona_name),1),s("span",ns,"#"+t(y+1),1)]),s("div",is,[s("span",rs,t(n.wins)+"W",1),s("span",ds,t(n.losses)+"L",1),s("span",cs,t(n.plays)+" plays",1)]),s("div",us,t(a(l).t("score"))+": "+t(n.avg_score),1)]))),128))])])}}},hs=C(vs,[["__scopeId","data-v-f2feb744"]]);export{hs as default}; diff --git a/frontend/dist/assets/Analytics-D5VrZMJ0.css b/frontend/dist/assets/Analytics-D5VrZMJ0.css new file mode 100644 index 0000000..c353a8f --- /dev/null +++ b/frontend/dist/assets/Analytics-D5VrZMJ0.css @@ -0,0 +1 @@ +.stat[data-v-f2feb744]{text-align:center;min-width:110px}.stat div[data-v-f2feb744]{color:var(--muted);font-size:12px}.stat strong[data-v-f2feb744]{font-size:20px}.filter-bar[data-v-f2feb744]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-bar input[type=date][data-v-f2feb744]{width:auto}.grid[data-v-f2feb744]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.tier-card[data-v-f2feb744]{display:flex;flex-direction:column}.badge.won[data-v-f2feb744]{background:#dcfce7;color:#166534}.badge.lost[data-v-f2feb744]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-f2feb744]{background:#eef2ff;color:#4338ca}.bar[data-v-f2feb744]{background:#eef0f5;border-radius:999px;height:10px;overflow:hidden;margin-top:10px}.bar-fill[data-v-f2feb744]{background:linear-gradient(90deg,var(--accent),var(--accent-2));height:100%;border-radius:999px;transition:width .4s ease}.users-btn[data-v-f2feb744]{display:inline-flex;align-items:center;gap:6px;background:#0ea5e9;border-color:transparent;color:#fff;font-weight:600}.users-btn[data-v-f2feb744]:not(:disabled):hover{background:#0284c7;box-shadow:0 6px 16px #0ea5e959} diff --git a/frontend/dist/assets/Analytics-D85JjGgM.js b/frontend/dist/assets/Analytics-D85JjGgM.js deleted file mode 100644 index d736531..0000000 --- a/frontend/dist/assets/Analytics-D85JjGgM.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as x,k,c as u,a as s,t,u as a,i as l,l as g,m as y,w as f,v as h,n as C,e as N,F as V,p as L,q as A,s as B,r as c,o as _}from"./index-BhdfH8-z.js";const S={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},j={style:{margin:"0"}},z={class:"row",style:{"margin-left":"auto",gap:"10px"}},D={class:"users-btn"},F={class:"primary"},M={class:"card filter-bar"},P={class:"muted"},R=["disabled"],T=["disabled"],U={class:"row",style:{gap:"16px",margin:"16px 0"}},W={class:"card stat"},q={class:"card stat"},E={style:{color:"var(--green)"}},I={class:"card stat"},O={style:{color:"var(--red)"}},G={class:"card stat"},H={class:"card stat"},J={class:"card"},K={class:"row",style:{"justify-content":"space-between","align-items":"center"}},Q={class:"bar"},X={class:"muted",style:{"font-size":"12px","margin-top":"6px"}},Y={style:{"margin-top":"20px"}},Z={key:0,class:"card empty-state"},$={class:"grid"},ss={class:"row",style:{"justify-content":"space-between"}},ts={class:"muted"},es={class:"row",style:{"margin-top":"10px",gap:"8px"}},os={class:"badge won"},as={class:"badge lost"},ls={class:"badge not_tried"},ns={class:"muted",style:{"margin-top":"8px"}},is={__name:"Analytics",setup(rs){const o=c({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]}),i=c(""),r=c(""),d=c(!1);async function v(){d.value=!0;try{o.value=await A.analytics({from:i.value,to:r.value})}finally{d.value=!1}}function w(){v()}function b(){i.value="",r.value="",v()}return k(v),(ds,e)=>{const p=B("router-link");return _(),u("div",null,[s("div",S,[s("div",null,[s("h2",j,"📊 "+t(a(l).t("adminOverview")),1),e[2]||(e[2]=s("div",{class:"muted",style:{"margin-top":"4px"}},"ภาพรวมผลการฝึกของทีมทั้งหมด — เลือกช่วงเวลาเพื่อดูสถิติ",-1))]),s("div",z,[g(p,{to:"/admin/users"},{default:y(()=>[s("button",D,"👥 "+t(a(l).t("users")),1)]),_:1}),g(p,{to:"/admin/new-group"},{default:y(()=>[s("button",F,"+ "+t(a(l).t("addProduct")),1)]),_:1})])]),s("div",M,[s("span",P,"🗓 "+t(a(l).t("dateRange")),1),f(s("input",{type:"date","onUpdate:modelValue":e[0]||(e[0]=n=>i.value=n)},null,512),[[h,i.value]]),e[3]||(e[3]=s("span",null,"–",-1)),f(s("input",{type:"date","onUpdate:modelValue":e[1]||(e[1]=n=>r.value=n)},null,512),[[h,r.value]]),s("button",{class:"primary",onClick:w,disabled:d.value},"→ "+t(a(l).t("apply")),9,R),s("button",{onClick:b,disabled:d.value},t(a(l).t("clear")),9,T)]),s("div",U,[s("div",W,[e[4]||(e[4]=s("div",null,"Sessions",-1)),s("strong",null,t(o.value.overall.total_sessions),1)]),s("div",q,[e[5]||(e[5]=s("div",null,"Wins",-1)),s("strong",E,t(o.value.overall.wins),1)]),s("div",I,[e[6]||(e[6]=s("div",null,"Losses",-1)),s("strong",O,t(o.value.overall.losses),1)]),s("div",G,[e[7]||(e[7]=s("div",null,"Avg score",-1)),s("strong",null,t(o.value.overall.avg_score),1)]),s("div",H,[e[8]||(e[8]=s("div",null,"Trainees",-1)),s("strong",null,t(o.value.trainee_count),1)])]),s("div",J,[s("div",K,[s("strong",null,t(a(l).t("closeRate")),1),s("strong",null,t(o.value.overall.close_rate)+"%",1)]),s("div",Q,[s("div",{class:"bar-fill",style:C({width:(o.value.overall.close_rate||0)+"%"})},null,4)]),s("div",X,t(o.value.overall.wins)+" "+t(a(l).t("won").toLowerCase())+" / "+t(o.value.overall.total_sessions)+" sessions ",1)]),s("h3",Y,t(a(l).t("hardestPersonas")),1),o.value.hardest_personas.length===0?(_(),u("div",Z,[...e[9]||(e[9]=[s("strong",null,"No data",-1),s("span",null,"No sessions in this date range.",-1)])])):N("",!0),s("div",$,[(_(!0),u(V,null,L(o.value.hardest_personas,(n,m)=>(_(),u("div",{key:m,class:"card lift tier-card"},[s("div",ss,[s("strong",null,t(n.persona_name),1),s("span",ts,"#"+t(m+1),1)]),s("div",es,[s("span",os,t(n.wins)+"W",1),s("span",as,t(n.losses)+"L",1),s("span",ls,t(n.plays)+" plays",1)]),s("div",ns,t(a(l).t("score"))+": "+t(n.avg_score),1)]))),128))])])}}},cs=x(is,[["__scopeId","data-v-45823937"]]);export{cs as default}; diff --git a/frontend/dist/assets/Analytics-Pg5dwyd7.css b/frontend/dist/assets/Analytics-Pg5dwyd7.css deleted file mode 100644 index 2be3d94..0000000 --- a/frontend/dist/assets/Analytics-Pg5dwyd7.css +++ /dev/null @@ -1 +0,0 @@ -.stat[data-v-45823937]{text-align:center;min-width:110px}.stat div[data-v-45823937]{color:var(--muted);font-size:12px}.stat strong[data-v-45823937]{font-size:20px}.filter-bar[data-v-45823937]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-bar input[type=date][data-v-45823937]{width:auto}.grid[data-v-45823937]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.tier-card[data-v-45823937]{display:flex;flex-direction:column}.badge.won[data-v-45823937]{background:#dcfce7;color:#166534}.badge.lost[data-v-45823937]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-45823937]{background:#eef2ff;color:#4338ca}.bar[data-v-45823937]{background:#eef0f5;border-radius:999px;height:10px;overflow:hidden;margin-top:10px}.bar-fill[data-v-45823937]{background:linear-gradient(90deg,var(--accent),var(--accent-2));height:100%;border-radius:999px;transition:width .4s ease}.users-btn[data-v-45823937]{background:#0ea5e9;border-color:transparent;color:#fff;font-weight:600}.users-btn[data-v-45823937]:not(:disabled):hover{background:#0284c7;box-shadow:0 6px 16px #0ea5e959} diff --git a/frontend/dist/assets/Chat-Bo6laZZd.js b/frontend/dist/assets/Chat-Bo6laZZd.js new file mode 100644 index 0000000..3f46c6b --- /dev/null +++ b/frontend/dist/assets/Chat-Bo6laZZd.js @@ -0,0 +1,6 @@ +import{k as G,_ as K,l as M,s as w,c as l,m as f,n as V,u as a,a as s,j as p,t,i as o,A as T,e as u,F as j,q as L,w as P,v as q,b as H,h as J,r as c,C as O,x as R,o as n}from"./index-C0Orcg9B.js";import{T as U}from"./target-qgda8bhm.js";import{A as $}from"./arrow-left-BoUMQ_f_.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q=G("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),W={class:"card guide"},X={style:{margin:"6px 0 0","line-height":"1.7"}},Y={class:"row",style:{"align-items":"center","margin-bottom":"12px"}},Z={style:{margin:"0"}},ee={key:0,class:"muted"},se=["disabled"],te={key:0,class:"spinner",style:{"margin-right":"4px"}},ae={key:0,class:"card task"},le={key:0},ne={key:0,class:"bubble msg-customer muted"},oe={key:2,class:"composer"},ie=["disabled","placeholder"],re=["disabled"],ue={key:3,class:"card debrief"},ce={key:0},de={key:0,class:"reveal-grid"},ve={class:"rk"},pe={class:"rv"},he={class:"primary",style:{"margin-top":"12px"}},_e={__name:"Chat",setup(me){const S=J(),g=S.params.gid,y=S.params.pid,r=c(null),b=c(!1),h=c([]),_=c(""),d=c(!1),i=c(null),C=c(""),z=c(null);function A(){O(()=>{k.value&&(k.value.scrollTop=k.value.scrollHeight)})}const k=c(null);M(async()=>{r.value=(await w.getPersona(g,y)).persona;const e=await w.chatStart(g,y);z.value=e.session.id,e.session.task&&(C.value=e.session.task),h.value=e.session.messages||[],b.value=!0,h.value.length&&A()});async function I(){if(_.value.trim()){d.value=!0;try{const e=await w.chatSend(g,y,_.value.trim());h.value=e.messages,_.value="",A()}catch(e){alert(e.message)}finally{d.value=!1}}}async function B(){if(confirm(o.t("finish")+"?")){d.value=!0;try{const e=await w.chatFinish(g,y);i.value=e.debrief,h.value=e.session.messages}catch(e){alert(e.message)}finally{d.value=!1}}}const D={name:"ชื่อ",tier:"ระดับ",difficulty:"ความยาก",profession:"อาชีพ",age_group:"ช่วงอายุ",location:"พื้นที่",income:"รายได้",budget:"งบประมาณ",lifestyle:"ไลฟ์สไตล์",background:"ภูมิหลัง",personality:"บุคลิก",communication_style:"สไตล์การสื่อสาร",goal:"เป้าหมาย",decision_timeline:"กรอบตัดสินใจ",pains:"ปัญหา (Pain)",objections:"ข้อโต้แย้ง",negotiation_levers:"สิ่งที่ใช้ต่อรอง",opener:"บทเปิดบทสนทนา",channel:"ช่องทาง",initiation_mode:"ใครเริ่มก่อน",product_context:"บริบทสินค้า"};function F(e){return D[e]||e}function E(e){return Array.isArray(e)?e.join(", "):e&&typeof e=="object"?JSON.stringify(e):String(e??"—")}return(e,x)=>{const N=R("router-link");return n(),l("div",null,[f(N,{to:`/groups/${a(g)}/personas`,class:"btn-back"},{default:V(()=>[f(a($),{size:16,"stroke-width":2}),p(" "+t(a(o).t("personas")),1)]),_:1},8,["to"]),s("div",W,[s("strong",null,[f(a(U),{size:17,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),p(" "+t(a(o).t("chatGuideTitle")),1)]),s("p",X,t(a(o).t("chatGuideText")),1)]),s("div",Y,[s("h2",Z,t(r.value?r.value.name:"..."),1),s("span",{class:T(["badge",r.value&&r.value.channel])},t(r.value?r.value.channel:""),3),r.value?(n(),l("span",ee,t(r.value.profession)+" · "+t(r.value.age_group),1)):u("",!0),s("button",{class:"danger",style:{"margin-left":"auto"},onClick:B,disabled:h.value.length===0||!!i.value},[d.value?(n(),l("span",te)):u("",!0),p(t(a(o).t("finish")),1)],8,se)]),b.value?u("",!0):(n(),l("div",ae,[s("strong",null,"📣 "+t(a(o).t("sellerInitiated")),1),C.value?(n(),l("div",le,t(C.value),1)):u("",!0)])),b.value?(n(),l("div",{key:1,class:"thread",ref_key:"thread",ref:k},[(n(!0),l(j,null,L(h.value,(v,m)=>(n(),l("div",{key:m,class:T(["bubble",v.role==="seller"?"msg-seller":"msg-customer"])},t(v.text),3))),128)),d.value?(n(),l("div",ne,"...")):u("",!0)],512)):u("",!0),b.value&&!i.value?(n(),l("div",oe,[P(s("input",{"onUpdate:modelValue":x[0]||(x[0]=v=>_.value=v),onKeyup:H(I,["enter"]),disabled:d.value,placeholder:a(o).t("send")},null,40,ie),[[q,_.value]]),s("button",{class:"primary",onClick:I,disabled:d.value||!_.value.trim()},t(a(o).t("send")),9,re)])):u("",!0),i.value?(n(),l("div",ue,[s("h3",null,t(a(o).t("debrief")),1),s("p",null,[s("span",{class:T(["badge",i.value.outcome])},t(i.value.outcome==="won"?a(o).t("won"):a(o).t("lost")),3),p(" — "+t(a(o).t("score"))+": ",1),s("strong",null,t(i.value.score),1)]),s("p",null,[s("strong",null,t(a(o).t("pain"))+":",1),p(" "+t(i.value.pain||"—"),1)]),s("p",null,[s("strong",null,t(a(o).t("why"))+":",1),p(" "+t(i.value.why),1)]),i.value.coaching&&i.value.coaching.length?(n(),l("div",ce,[x[1]||(x[1]=s("strong",null,"Coaching:",-1)),s("ul",null,[(n(!0),l(j,null,L(i.value.coaching,(v,m)=>(n(),l("li",{key:m},t(v),1))),128))])])):u("",!0),s("details",null,[s("summary",null,[f(a(Q),{size:15,"stroke-width":1.8,style:{"vertical-align":"-2px"}}),p(" "+t(a(o).t("reveal")),1)]),i.value.revealed_persona?(n(),l("div",de,[(n(!0),l(j,null,L(i.value.revealed_persona,(v,m)=>(n(),l("div",{key:m,class:"rev"},[s("span",ve,t(F(m)),1),s("span",pe,t(E(v)),1)]))),128))])):u("",!0)]),f(N,{to:"/"},{default:V(()=>[s("button",he,t(a(o).t("dashboard")),1)]),_:1})])):u("",!0)])}}},be=K(_e,[["__scopeId","data-v-b21475ac"]]);export{be as default}; diff --git a/frontend/dist/assets/Chat-COdP9j9f.js b/frontend/dist/assets/Chat-COdP9j9f.js deleted file mode 100644 index 40728cc..0000000 --- a/frontend/dist/assets/Chat-COdP9j9f.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as G,k as K,q as x,c as a,l as j,m as D,u as n,a as s,t,i as o,z as C,e as u,j as m,F as T,p as S,w as M,v as P,b as q,h as H,r as c,B as J,s as O,o as l}from"./index-BhdfH8-z.js";const R={class:"card guide"},U={style:{margin:"6px 0 0","line-height":"1.7"}},$={class:"row",style:{"align-items":"center","margin-bottom":"12px"}},Q={style:{margin:"0"}},W={key:0,class:"muted"},X=["disabled"],Y={key:0,class:"spinner",style:{"margin-right":"4px"}},Z={key:0,class:"card task"},ee={key:0},se={key:0,class:"bubble msg-customer muted"},te={key:2,class:"composer"},ae=["disabled","placeholder"],le=["disabled"],ne={key:3,class:"card debrief"},oe={key:0},ie={key:0,class:"reveal-grid"},re={class:"rk"},ue={class:"rv"},ce={class:"primary",style:{"margin-top":"12px"}},de={__name:"Chat",setup(ve){const B=H(),g=B.params.gid,f=B.params.pid,r=c(null),y=c(!1),_=c([]),p=c(""),d=c(!1),i=c(null),w=c(""),F=c(null);function L(){J(()=>{b.value&&(b.value.scrollTop=b.value.scrollHeight)})}const b=c(null);K(async()=>{r.value=(await x.getPersona(g,f)).persona;const e=await x.chatStart(g,f);F.value=e.session.id,e.session.task&&(w.value=e.session.task),_.value=e.session.messages||[],y.value=!0,_.value.length&&L()});async function N(){if(p.value.trim()){d.value=!0;try{const e=await x.chatSend(g,f,p.value.trim());_.value=e.messages,p.value="",L()}catch(e){alert(e.message)}finally{d.value=!1}}}async function I(){if(confirm(o.t("finish")+"?")){d.value=!0;try{const e=await x.chatFinish(g,f);i.value=e.debrief,_.value=e.session.messages}catch(e){alert(e.message)}finally{d.value=!1}}}const A={name:"ชื่อ",tier:"ระดับ",difficulty:"ความยาก",profession:"อาชีพ",age_group:"ช่วงอายุ",location:"พื้นที่",income:"รายได้",budget:"งบประมาณ",lifestyle:"ไลฟ์สไตล์",background:"ภูมิหลัง",personality:"บุคลิก",communication_style:"สไตล์การสื่อสาร",goal:"เป้าหมาย",decision_timeline:"กรอบตัดสินใจ",pains:"ปัญหา (Pain)",objections:"ข้อโต้แย้ง",negotiation_levers:"สิ่งที่ใช้ต่อรอง",opener:"บทเปิดบทสนทนา",channel:"ช่องทาง",initiation_mode:"ใครเริ่มก่อน",product_context:"บริบทสินค้า"};function E(e){return A[e]||e}function z(e){return Array.isArray(e)?e.join(", "):e&&typeof e=="object"?JSON.stringify(e):String(e??"—")}return(e,k)=>{const V=O("router-link");return l(),a("div",null,[j(V,{to:`/groups/${n(g)}/personas`,class:"btn-back"},{default:D(()=>[m("← "+t(n(o).t("personas")),1)]),_:1},8,["to"]),s("div",R,[s("strong",null,"🎯 "+t(n(o).t("chatGuideTitle")),1),s("p",U,t(n(o).t("chatGuideText")),1)]),s("div",$,[s("h2",Q,t(r.value?r.value.name:"..."),1),s("span",{class:C(["badge",r.value&&r.value.channel])},t(r.value?r.value.channel:""),3),r.value?(l(),a("span",W,t(r.value.profession)+" · "+t(r.value.age_group),1)):u("",!0),s("button",{class:"danger",style:{"margin-left":"auto"},onClick:I,disabled:_.value.length===0||!!i.value},[d.value?(l(),a("span",Y)):u("",!0),m(t(n(o).t("finish")),1)],8,X)]),y.value?u("",!0):(l(),a("div",Z,[s("strong",null,"📣 "+t(n(o).t("sellerInitiated")),1),w.value?(l(),a("div",ee,t(w.value),1)):u("",!0)])),y.value?(l(),a("div",{key:1,class:"thread",ref_key:"thread",ref:b},[(l(!0),a(T,null,S(_.value,(v,h)=>(l(),a("div",{key:h,class:C(["bubble",v.role==="seller"?"msg-seller":"msg-customer"])},t(v.text),3))),128)),d.value?(l(),a("div",se,"...")):u("",!0)],512)):u("",!0),y.value&&!i.value?(l(),a("div",te,[M(s("input",{"onUpdate:modelValue":k[0]||(k[0]=v=>p.value=v),onKeyup:q(N,["enter"]),disabled:d.value,placeholder:n(o).t("send")},null,40,ae),[[P,p.value]]),s("button",{class:"primary",onClick:N,disabled:d.value||!p.value.trim()},t(n(o).t("send")),9,le)])):u("",!0),i.value?(l(),a("div",ne,[s("h3",null,t(n(o).t("debrief")),1),s("p",null,[s("span",{class:C(["badge",i.value.outcome])},t(i.value.outcome==="won"?n(o).t("won"):n(o).t("lost")),3),m(" — "+t(n(o).t("score"))+": ",1),s("strong",null,t(i.value.score),1)]),s("p",null,[s("strong",null,t(n(o).t("pain"))+":",1),m(" "+t(i.value.pain||"—"),1)]),s("p",null,[s("strong",null,t(n(o).t("why"))+":",1),m(" "+t(i.value.why),1)]),i.value.coaching&&i.value.coaching.length?(l(),a("div",oe,[k[1]||(k[1]=s("strong",null,"Coaching:",-1)),s("ul",null,[(l(!0),a(T,null,S(i.value.coaching,(v,h)=>(l(),a("li",{key:h},t(v),1))),128))])])):u("",!0),s("details",null,[s("summary",null,"🔎 "+t(n(o).t("reveal")),1),i.value.revealed_persona?(l(),a("div",ie,[(l(!0),a(T,null,S(i.value.revealed_persona,(v,h)=>(l(),a("div",{key:h,class:"rev"},[s("span",re,t(E(h)),1),s("span",ue,t(z(v)),1)]))),128))])):u("",!0)]),j(V,{to:"/"},{default:D(()=>[s("button",ce,t(n(o).t("dashboard")),1)]),_:1})])):u("",!0)])}}},pe=G(de,[["__scopeId","data-v-16c880f2"]]);export{pe as default}; diff --git a/frontend/dist/assets/Chat-D9rUobmy.css b/frontend/dist/assets/Chat-D9rUobmy.css deleted file mode 100644 index 3b0356f..0000000 --- a/frontend/dist/assets/Chat-D9rUobmy.css +++ /dev/null @@ -1 +0,0 @@ -.thread[data-v-16c880f2]{background:#eceff4;border:1px solid var(--border);border-radius:var(--radius);padding:16px;min-height:320px;max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.bubble[data-v-16c880f2]{max-width:72%;padding:10px 14px;white-space:pre-wrap;word-break:break-word}.composer[data-v-16c880f2]{display:flex;gap:8px;margin-top:12px}.task[data-v-16c880f2]{margin-bottom:12px;background:#fff7ed;border-color:#fed7aa}.debrief[data-v-16c880f2]{margin-top:16px}.json[data-v-16c880f2]{background:#0f172a;color:#9ca3af;padding:10px;border-radius:8px;font-size:11px;overflow:auto;max-height:260px}button.danger[data-v-16c880f2]{background:var(--red);color:#fff;border:none}.guide[data-v-16c880f2]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:12px}.reveal-grid[data-v-16c880f2]{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.rev[data-v-16c880f2]{display:flex;flex-direction:column;background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:8px 10px}.rk[data-v-16c880f2]{font-size:12px;color:var(--muted)}.rv[data-v-16c880f2]{font-size:13px;color:var(--ink);margin-top:2px}@media (max-width: 640px){.reveal-grid[data-v-16c880f2]{grid-template-columns:1fr}} diff --git a/frontend/dist/assets/Chat-Dq49zqgJ.css b/frontend/dist/assets/Chat-Dq49zqgJ.css new file mode 100644 index 0000000..0a31445 --- /dev/null +++ b/frontend/dist/assets/Chat-Dq49zqgJ.css @@ -0,0 +1 @@ +.thread[data-v-b21475ac]{background:#eceff4;border:1px solid var(--border);border-radius:var(--radius);padding:16px;min-height:320px;max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.bubble[data-v-b21475ac]{max-width:72%;padding:10px 14px;white-space:pre-wrap;word-break:break-word}.composer[data-v-b21475ac]{display:flex;gap:8px;margin-top:12px}.task[data-v-b21475ac]{margin-bottom:12px;background:#fff7ed;border-color:#fed7aa}.debrief[data-v-b21475ac]{margin-top:16px}.json[data-v-b21475ac]{background:#0f172a;color:#9ca3af;padding:10px;border-radius:8px;font-size:11px;overflow:auto;max-height:260px}button.danger[data-v-b21475ac]{background:var(--red);color:#fff;border:none}.guide[data-v-b21475ac]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:12px}.reveal-grid[data-v-b21475ac]{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.rev[data-v-b21475ac]{display:flex;flex-direction:column;background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:8px 10px}.rk[data-v-b21475ac]{font-size:12px;color:var(--muted)}.rv[data-v-b21475ac]{font-size:13px;color:var(--ink);margin-top:2px}@media (max-width: 640px){.reveal-grid[data-v-b21475ac]{grid-template-columns:1fr}} diff --git a/frontend/dist/assets/GroupBuilder-B8gqmNUJ.css b/frontend/dist/assets/GroupBuilder-B8gqmNUJ.css deleted file mode 100644 index 3ebadca..0000000 --- a/frontend/dist/assets/GroupBuilder-B8gqmNUJ.css +++ /dev/null @@ -1 +0,0 @@ -.guide[data-v-c7f3b0ac]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px}.req[data-v-c7f3b0ac]{color:var(--red)} diff --git a/frontend/dist/assets/GroupBuilder-BTot24Pr.js b/frontend/dist/assets/GroupBuilder-BTot24Pr.js new file mode 100644 index 0000000..475d87f --- /dev/null +++ b/frontend/dist/assets/GroupBuilder-BTot24Pr.js @@ -0,0 +1,21 @@ +import{k as g,_ as M,c as f,m as d,n as V,a as e,u as l,j as r,t as s,i as o,w as u,v as y,D as k,e as C,x as z,r as v,s as B,g as A,o as x}from"./index-C0Orcg9B.js";import{A as P}from"./arrow-left-BoUMQ_f_.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S=g("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U=g("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q=g("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D=g("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),N={class:"card guide"},E={class:"card"},G={style:{"margin-top":"0"}},L={class:"row"},j={style:{flex:"1"}},F={value:"facebook"},I={value:"line"},O={style:{flex:"1"}},T={value:"th"},R={value:"en"},Z={key:0,class:"error"},$=["disabled"],H={__name:"GroupBuilder",setup(J){const _=A(),a=v({product:"",segment:"",description:"",channel:"facebook",language:"th"}),h=v([]),p=v(""),c=v(!1);function b(n){h.value=Array.from(n.target.files||[])}async function w(){c.value=!0,p.value="";try{const n=new FormData;n.append("product",a.value.product),n.append("segment",a.value.segment),n.append("description",a.value.description),n.append("channel",a.value.channel),n.append("language",a.value.language),h.value.forEach(i=>n.append("files",i));const m=(await B.createGroup(n)).group.id;_.push(`/admin/groups/${m}/edit`)}catch(n){p.value=n.message}finally{c.value=!1}}return(n,t)=>{const m=z("router-link");return x(),f("div",null,[d(m,{to:"/training",class:"btn-back"},{default:V(()=>[d(l(P),{size:16,"stroke-width":2}),r(" "+s(l(o).t("training")),1)]),_:1}),e("div",N,[e("strong",null,[d(l(q),{size:18,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),t[5]||(t[5]=r(" วิธีสร้างกลุ่มบุคคลต้นแบบ",-1))]),t[6]||(t[6]=e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[r("กรอก "),e("strong",null,"ชื่อ/รายละเอียดสินค้าหรือบริการ"),r(" ที่อยากให้ทีมฝึกขาย (ช่องด้านล่าง)")]),e("li",null,"(ไม่บังคับ) ระบุกลุ่มลูกค้าเป้าหมาย หรืออัปโหลดไฟล์เอกสารสินค้า .pdf/.md/.txt"),e("li",null,[r("กด "),e("strong",null,"สร้าง"),r(" — ระบบจะพาไปหน้าสร้างบุคคลต้นแบบ (ลูกค้าจำลอง)")])],-1))]),e("div",E,[e("h2",G,[d(l(S),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),r(" "+s(l(o).t("addProduct")),1)]),e("label",null,[r(s(l(o).t("product"))+" ",1),t[7]||(t[7]=e("span",{class:"req"},"*",-1))]),u(e("textarea",{"onUpdate:modelValue":t[0]||(t[0]=i=>a.value.product=i),rows:"3",placeholder:"เช่น ระบบ POS สำหรับร้านอาหาร Cloud POS for small restaurants"},null,512),[[y,a.value.product]]),e("label",null,s(l(o).t("segment")),1),u(e("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>a.value.segment=i),placeholder:"เช่น SMEs ร้านอาหารในกรุงเทพ"},null,512),[[y,a.value.segment]]),e("label",null,s(l(o).t("description")),1),u(e("textarea",{"onUpdate:modelValue":t[2]||(t[2]=i=>a.value.description=i),rows:"3",placeholder:"รายละเอียดเพิ่มเติม เช่น จุดเด่นสินค้า ราคา ฯลฯ (ไม่บังคับ)"},null,512),[[y,a.value.description]]),e("div",L,[e("div",j,[e("label",null,s(l(o).t("channel")),1),u(e("select",{"onUpdate:modelValue":t[3]||(t[3]=i=>a.value.channel=i)},[e("option",F,s(l(o).t("facebook")),1),e("option",I,s(l(o).t("line")),1)],512),[[k,a.value.channel]])]),e("div",O,[e("label",null,s(l(o).t("language")),1),u(e("select",{"onUpdate:modelValue":t[4]||(t[4]=i=>a.value.language=i)},[e("option",T,s(l(o).t("thai")),1),e("option",R,s(l(o).t("english")),1)],512),[[k,a.value.language]])])]),e("label",null,[d(l(D),{size:15,"stroke-width":1.8,style:{"vertical-align":"-2px"}}),t[8]||(t[8]=r(" ไฟล์เอกสารสินค้า (.pdf/.md/.txt) — ใช้เป็นข้อมูลให้ระบบได้",-1))]),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:b},null,32),p.value?(x(),f("div",Z,s(p.value),1)):C("",!0),e("button",{class:"primary",style:{"margin-top":"16px",display:"inline-flex","align-items":"center",gap:"6px"},disabled:c.value||!a.value.product&&!h.value.length,onClick:w},[d(l(U),{size:18,"stroke-width":2}),r(" "+s(c.value?"กำลังสร้าง…":l(o).t("create")),1)],8,$)])])}}},W=M(H,[["__scopeId","data-v-d513596d"]]);export{W as default}; diff --git a/frontend/dist/assets/GroupBuilder-BtLOuOw5.js b/frontend/dist/assets/GroupBuilder-BtLOuOw5.js deleted file mode 100644 index b6ed017..0000000 --- a/frontend/dist/assets/GroupBuilder-BtLOuOw5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as k,c as f,l as V,m as w,a as e,j as r,t as a,u as s,i as u,w as d,v as m,C as _,e as C,s as B,r as c,q as S,g as U,o as h}from"./index-BhdfH8-z.js";const N={class:"card"},D={style:{"margin-top":"0"}},E={class:"row"},G={style:{flex:"1"}},M={value:"facebook"},P={value:"line"},q={style:{flex:"1"}},F={value:"th"},O={value:"en"},T={key:0,class:"error"},j=["disabled"],A={__name:"GroupBuilder",setup(I){const b=U(),t=c({product:"",segment:"",description:"",channel:"facebook",language:"th"}),v=c([]),i=c(""),p=c(!1);function x(n){v.value=Array.from(n.target.files||[])}async function y(){p.value=!0,i.value="";try{const n=new FormData;n.append("product",t.value.product),n.append("segment",t.value.segment),n.append("description",t.value.description),n.append("channel",t.value.channel),n.append("language",t.value.language),v.value.forEach(o=>n.append("files",o));const g=(await S.createGroup(n)).group.id;b.push(`/admin/groups/${g}/edit`)}catch(n){i.value=n.message}finally{p.value=!1}}return(n,l)=>{const g=B("router-link");return h(),f("div",null,[V(g,{to:"/training",class:"btn-back"},{default:w(()=>[r("← "+a(s(u).t("training")),1)]),_:1}),l[7]||(l[7]=e("div",{class:"card guide"},[e("strong",null,"📋 วิธีสร้างกลุ่มบุคคลต้นแบบ"),e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[r("กรอก "),e("strong",null,"ชื่อ/รายละเอียดสินค้าหรือบริการ"),r(" ที่อยากให้ทีมฝึกขาย (ช่องด้านล่าง)")]),e("li",null,"(ไม่บังคับ) ระบุกลุ่มลูกค้าเป้าหมาย หรืออัปโหลดไฟล์เอกสารสินค้า .pdf/.md/.txt"),e("li",null,[r("กด "),e("strong",null,"สร้าง"),r(" — ระบบจะพาไปหน้าสร้างบุคคลต้นแบบ (ลูกค้าจำลอง)")])])],-1)),e("div",N,[e("h2",D,"📦 "+a(s(u).t("addProduct")),1),e("label",null,[r(a(s(u).t("product"))+" ",1),l[5]||(l[5]=e("span",{class:"req"},"*",-1))]),d(e("textarea",{"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.product=o),rows:"3",placeholder:"เช่น ระบบ POS สำหรับร้านอาหาร Cloud POS for small restaurants"},null,512),[[m,t.value.product]]),e("label",null,a(s(u).t("segment")),1),d(e("input",{"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.segment=o),placeholder:"เช่น SMEs ร้านอาหารในกรุงเทพ"},null,512),[[m,t.value.segment]]),e("label",null,a(s(u).t("description")),1),d(e("textarea",{"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.description=o),rows:"3",placeholder:"รายละเอียดเพิ่มเติม เช่น จุดเด่นสินค้า ราคา ฯลฯ (ไม่บังคับ)"},null,512),[[m,t.value.description]]),e("div",E,[e("div",G,[e("label",null,a(s(u).t("channel")),1),d(e("select",{"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.channel=o)},[e("option",M,a(s(u).t("facebook")),1),e("option",P,a(s(u).t("line")),1)],512),[[_,t.value.channel]])]),e("div",q,[e("label",null,a(s(u).t("language")),1),d(e("select",{"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.language=o)},[e("option",F,a(s(u).t("thai")),1),e("option",O,a(s(u).t("english")),1)],512),[[_,t.value.language]])])]),l[6]||(l[6]=e("label",null,"📎 ไฟล์เอกสารสินค้า (.pdf/.md/.txt) — ใช้เป็นข้อมูลให้ระบบได้",-1)),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:x},null,32),i.value?(h(),f("div",T,a(i.value),1)):C("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:p.value||!t.value.product&&!v.value.length,onClick:y},a(p.value?"กำลังสร้าง…":"➕ สร้างกลุ่มบุคคลต้นแบบ"),9,j)])])}}},$=k(A,[["__scopeId","data-v-c7f3b0ac"]]);export{$ as default}; diff --git a/frontend/dist/assets/GroupBuilder-CpbMByEC.css b/frontend/dist/assets/GroupBuilder-CpbMByEC.css new file mode 100644 index 0000000..31e688c --- /dev/null +++ b/frontend/dist/assets/GroupBuilder-CpbMByEC.css @@ -0,0 +1 @@ +.guide[data-v-d513596d]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px}.req[data-v-d513596d]{color:var(--red)} diff --git a/frontend/dist/assets/GroupEdit-CykIW85w.js b/frontend/dist/assets/GroupEdit-CykIW85w.js deleted file mode 100644 index baf42d0..0000000 --- a/frontend/dist/assets/GroupEdit-CykIW85w.js +++ /dev/null @@ -1,4 +0,0 @@ -import{_ as G,D as z,o as v,c as f,a as l,t as i,w as s,v as u,C as A,e as c,E as M,r as k,k as D,l as S,m as I,u as T,i as N,j as y,F as P,p as E,G as q,h as J,q as _,s as R,z as F}from"./index-BhdfH8-z.js";const H={class:"persona-form"},K={class:"muted"},Q={class:"sec"},W={class:"row"},X={class:"f"},Y={class:"f"},Z={class:"f"},h={class:"row"},ll={class:"f"},el={class:"f"},nl={class:"f"},tl={class:"sec"},ol={class:"row"},sl={class:"f"},il={class:"f"},al={class:"f"},ul={class:"sec"},rl={class:"sec"},dl={class:"row"},ml={class:"f"},vl={class:"f"},fl={key:0,class:"muted"},gl={class:"row actions"},bl=["disabled"],yl={__name:"PersonaForm",props:{persona:{type:Object,required:!0}},emits:["save","cancel"],setup(w,{emit:L}){const x=w,$=L,t=M({name:"",difficulty:1,tier:"B",profession:"",age_group:"",location:"",income:"",budget:"",lifestyle:"",background:"",personality:"",communication_style:"",goal:"",decision_timeline:"",opener:"",channel:"line",initiation_mode:"customer",special:""}),d=k(""),b=k(""),m=k(""),V=k(!1);function U(n){return Array.isArray(n)?n.join(` -`):String(n||"")}function C(n){return n.split(` -`).map(e=>e.trim()).filter(Boolean)}z(()=>x.persona,n=>{Object.assign(t,{name:(n==null?void 0:n.name)||"",difficulty:(n==null?void 0:n.difficulty)??1,tier:(n==null?void 0:n.tier)||"B",profession:(n==null?void 0:n.profession)||"",age_group:(n==null?void 0:n.age_group)||"",location:(n==null?void 0:n.location)||"",income:(n==null?void 0:n.income)||"",budget:(n==null?void 0:n.budget)||"",lifestyle:(n==null?void 0:n.lifestyle)||"",background:(n==null?void 0:n.background)||"",personality:(n==null?void 0:n.personality)||"",communication_style:(n==null?void 0:n.communication_style)||"",goal:(n==null?void 0:n.goal)||"",decision_timeline:(n==null?void 0:n.decision_timeline)||"",opener:(n==null?void 0:n.opener)||"",channel:(n==null?void 0:n.channel)||"line",initiation_mode:(n==null?void 0:n.initiation_mode)||"customer",special:(n==null?void 0:n.special)||""}),d.value=U(n==null?void 0:n.pains),b.value=U(n==null?void 0:n.objections),m.value=U(n==null?void 0:n.negotiation_levers)},{immediate:!0});function B(){$("save",{...t,pains:C(d.value),objections:C(b.value),negotiation_levers:C(m.value)})}return(n,e)=>(v(),f("div",H,[l("h3",null,i(w.persona.name||"New persona"),1),l("p",K,i(w.persona.profession)+" · "+i(w.persona.personality),1),l("div",Q,[e[28]||(e[28]=l("h4",null,"👤 ข้อมูลพื้นฐาน",-1)),l("div",W,[l("div",X,[e[21]||(e[21]=l("label",null,"ชื่อ",-1)),s(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.name=o)},null,512),[[u,t.name]])]),l("div",Y,[e[22]||(e[22]=l("label",null,"ระดับความยาก (1-5)",-1)),s(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.difficulty=o),type:"number",min:"1",max:"5"},null,512),[[u,t.difficulty,void 0,{number:!0}]])]),l("div",Z,[e[24]||(e[24]=l("label",null,"ระดับลูกค้า",-1)),s(l("select",{"onUpdate:modelValue":e[2]||(e[2]=o=>t.tier=o)},[...e[23]||(e[23]=[l("option",{value:"A"},"A — พร้อมตัดสินใจซื้อ",-1),l("option",{value:"B"},"B — ยังไม่แน่ใจ",-1),l("option",{value:"C"},"C — ไม่สนใจแต่มีปัญหา",-1)])],512),[[A,t.tier]])])]),l("div",h,[l("div",ll,[e[25]||(e[25]=l("label",null,"อาชีพ",-1)),s(l("input",{"onUpdate:modelValue":e[3]||(e[3]=o=>t.profession=o)},null,512),[[u,t.profession]])]),l("div",el,[e[26]||(e[26]=l("label",null,"ช่วงอายุ",-1)),s(l("input",{"onUpdate:modelValue":e[4]||(e[4]=o=>t.age_group=o)},null,512),[[u,t.age_group]])]),l("div",nl,[e[27]||(e[27]=l("label",null,"พื้นที่",-1)),s(l("input",{"onUpdate:modelValue":e[5]||(e[5]=o=>t.location=o)},null,512),[[u,t.location]])])])]),l("div",tl,[e[32]||(e[32]=l("h4",null,"💼 ข้อมูลลูกค้า",-1)),l("div",ol,[l("div",sl,[e[29]||(e[29]=l("label",null,"รายได้/สถานะการเงิน",-1)),s(l("input",{"onUpdate:modelValue":e[6]||(e[6]=o=>t.income=o)},null,512),[[u,t.income]])]),l("div",il,[e[30]||(e[30]=l("label",null,"งบประมาณ",-1)),s(l("input",{"onUpdate:modelValue":e[7]||(e[7]=o=>t.budget=o)},null,512),[[u,t.budget]])]),l("div",al,[e[31]||(e[31]=l("label",null,"ไลฟ์สไตล์",-1)),s(l("input",{"onUpdate:modelValue":e[8]||(e[8]=o=>t.lifestyle=o)},null,512),[[u,t.lifestyle]])])]),e[33]||(e[33]=l("label",null,"ภูมิหลัง",-1)),s(l("textarea",{"onUpdate:modelValue":e[9]||(e[9]=o=>t.background=o)},null,512),[[u,t.background]]),e[34]||(e[34]=l("label",null,"บุคลิก / วิธีพูดคุย",-1)),s(l("textarea",{"onUpdate:modelValue":e[10]||(e[10]=o=>t.personality=o)},null,512),[[u,t.personality]]),e[35]||(e[35]=l("label",null,"สไตล์การสื่อสาร",-1)),s(l("textarea",{"onUpdate:modelValue":e[11]||(e[11]=o=>t.communication_style=o)},null,512),[[u,t.communication_style]])]),l("div",ul,[e[36]||(e[36]=l("h4",null,"🎯 การขาย",-1)),e[37]||(e[37]=l("label",null,"เป้าหมาย",-1)),s(l("textarea",{"onUpdate:modelValue":e[12]||(e[12]=o=>t.goal=o)},null,512),[[u,t.goal]]),e[38]||(e[38]=l("label",null,"กรอบเวลาในการตัดสินใจ",-1)),s(l("input",{"onUpdate:modelValue":e[13]||(e[13]=o=>t.decision_timeline=o)},null,512),[[u,t.decision_timeline]]),e[39]||(e[39]=l("label",null,"Pain (ปัญหา) แบบ 1 ต่อบรรทัด",-1)),s(l("textarea",{"onUpdate:modelValue":e[14]||(e[14]=o=>d.value=o),placeholder:`เช่น ต้นทุนสูงเกินไป -ระบบล้าสมัย`},null,512),[[u,d.value]]),e[40]||(e[40]=l("label",null,"ข้อโต้แย้ง (Objections) 1 ต่อบรรทัด",-1)),s(l("textarea",{"onUpdate:modelValue":e[15]||(e[15]=o=>b.value=o)},null,512),[[u,b.value]]),e[41]||(e[41]=l("label",null,"สิ่งที่ใช้ต่อรอง (เช่น ส่วนลด, ฟรีติดตั้ง)",-1)),s(l("textarea",{"onUpdate:modelValue":e[16]||(e[16]=o=>m.value=o)},null,512),[[u,m.value]]),e[42]||(e[42]=l("label",null,"ช่องทางสำหรับลูกค้าเปิดบทสนทนา (opener)",-1)),s(l("textarea",{"onUpdate:modelValue":e[17]||(e[17]=o=>t.opener=o)},null,512),[[u,t.opener]])]),l("div",rl,[e[47]||(e[47]=l("h4",null,"📡 ช่องทาง & โหมด",-1)),l("div",dl,[l("div",ml,[e[44]||(e[44]=l("label",null,"ช่องทาง",-1)),s(l("select",{"onUpdate:modelValue":e[18]||(e[18]=o=>t.channel=o)},[...e[43]||(e[43]=[l("option",{value:"line"},"LINE",-1),l("option",{value:"facebook"},"Facebook",-1)])],512),[[A,t.channel]])]),l("div",vl,[e[46]||(e[46]=l("label",null,"ใครเริ่มคุยก่อน",-1)),s(l("select",{"onUpdate:modelValue":e[19]||(e[19]=o=>t.initiation_mode=o)},[...e[45]||(e[45]=[l("option",{value:"customer"},"ลูกค้าทักก่อน",-1),l("option",{value:"seller"},"เราต้องเริ่มขาย (เชิงรุก)",-1)])],512),[[A,t.initiation_mode]])])]),t.special?(v(),f("label",fl,"พิเศษ: "+i(t.special),1)):c("",!0)]),l("div",gl,[l("button",{class:"primary",onClick:B,disabled:V.value},i(V.value?"กำลังบันทึก…":"💾 บันทึกบุคคลต้นแบบ"),9,bl),l("button",{onClick:e[20]||(e[20]=o=>n.$emit("cancel"))},"ปิด")])]))}},kl=G(yl,[["__scopeId","data-v-738758fc"]]),xl={class:"row",style:{"align-items":"center","margin-bottom":"8px"}},Vl={style:{margin:"0"}},cl={class:"row",style:{"margin-left":"auto",gap:"10px"}},wl=["disabled"],$l={key:0,class:"spinner"},Ul={key:0,class:"muted"},Cl={key:1,class:"error",style:{margin:"12px 0"}},pl={key:2,class:"card empty-state"},_l={class:"grid"},Bl={class:"row",style:{"justify-content":"space-between","align-items":"center"}},jl={class:"diff"},Al={class:"muted"},Nl={class:"muted"},Pl=["onClick"],El={class:"modal"},Ll={__name:"GroupEdit",setup(w){const x=J().params.gid,$=k(null),t=k([]),d=k(!1),b=k(""),m=k(null);async function V(){const a=await _.getGroup(x);$.value=a.group,t.value=(await _.listPersonas(x)).personas}function U(a){return t.value.filter(r=>r.tier===a)}function C(a){return N.t(a==="A"?"tierA":a==="B"?"tierB":"tierC")}function B(a){return{A:"tier-a",B:"tier-b",C:"tier-c"}[a]||""}async function n(){d.value=!0,b.value="";try{const a=await _.analyzeGroup(x);t.value=a.personas,await V()}catch(a){b.value=a.message}finally{d.value=!1}}function e(a){m.value=JSON.parse(JSON.stringify(a))}async function o(a){d.value=!0;try{await _.updatePersona(x,m.value.id,a),m.value=null,await V()}catch(r){b.value=r.message}finally{d.value=!1}}return D(V),(a,r)=>{const O=R("router-link");return v(),f("div",null,[S(O,{to:"/training",class:"btn-back"},{default:I(()=>[y("← "+i(T(N).t("training")),1)]),_:1}),l("div",xl,[l("h2",Vl,"🛠 "+i(T(N).t("managePersonas")),1),l("div",cl,[l("button",{onClick:n,disabled:d.value,class:"primary"},[d.value?(v(),f("span",$l)):c("",!0),y(i(d.value?"กำลังสร้าง…":"✨ สร้าง/วิเคราะห์บุคคลต้นแบบ"),1)],8,wl)])]),$.value?(v(),f("p",Ul,[r[2]||(r[2]=y("สินค้า: ",-1)),l("strong",null,i($.value.title),1)])):c("",!0),b.value?(v(),f("div",Cl,i(b.value),1)):c("",!0),r[4]||(r[4]=l("div",{class:"card guide"},[l("strong",null,"วิธีใช้หน้านี้"),l("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[l("li",null,[y("กดปุ่ม "),l("strong",null,"✨ สร้าง/วิเคราะห์บุคคลต้นแบบ"),y(" เพื่อให้ระบบสร้างลูกค้าจำลอง 15 คน (ระดับ A/B/C)")]),l("li",null,[y("แต่ละการ์ดคือลูกค้าจำลอง 1 คน — กด "),l("strong",null,"✏️ แก้ไข"),y(" เพื่อปรับรายละเอียดให้ตรงใจ")]),l("li",null,[y("เมื่อพร้อมให้ผู้ใช้ฝึก กด "),l("strong",null,"เปิดใช้งาน"),y(" (ยังทำในขั้นถัดไป)")])])],-1)),t.value.length===0&&!d.value?(v(),f("div",pl,[...r[3]||(r[3]=[l("strong",null,"ยังไม่มีบุคคลต้นแบบ",-1),l("span",null,'กด "✨ สร้าง/วิเคราะห์บุคคลต้นแบบ" เพื่อให้ระบบสร้างลูกค้าจำลองให้',-1)])])):c("",!0),(v(),f(P,null,E(["A","B","C"],p=>l("div",{key:p,style:{"margin-bottom":"20px"}},[l("h4",null,i(C(p)),1),l("div",_l,[(v(!0),f(P,null,E(U(p),g=>(v(),f("div",{key:g.id,class:"card pcard"},[l("div",Bl,[l("strong",null,i(g.name),1),l("span",{class:F(["badge",B(g.tier)])},i(g.tier),3)]),l("div",jl,[(v(),f(P,null,E(5,j=>l("span",{key:j,class:F(["star",{on:j<=(g.difficulty||1)}])},"★",2)),64))]),l("div",Al,i(g.profession)+" · "+i(g.age_group)+" · "+i(g.location),1),l("div",Nl,i(g.channel)+" · "+i(g.initiation_mode==="seller"?"เริ่มขายเอง":"ลูกค้าทักก่อน"),1),l("button",{class:"edit-btn",onClick:j=>e(g)},"✏️ แก้ไขรายละเอียด",8,Pl)]))),128))])])),64)),m.value?(v(),f("div",{key:3,class:"modal-backdrop",onClick:r[1]||(r[1]=q(p=>m.value=null,["self"]))},[l("div",El,[S(kl,{persona:m.value,onSave:o,onCancel:r[0]||(r[0]=p=>m.value=null)},null,8,["persona"])])])):c("",!0)])}}},Tl=G(Ll,[["__scopeId","data-v-812ba03f"]]);export{Tl as default}; diff --git a/frontend/dist/assets/GroupEdit-D9lmggXK.css b/frontend/dist/assets/GroupEdit-D9lmggXK.css new file mode 100644 index 0000000..ba265c9 --- /dev/null +++ b/frontend/dist/assets/GroupEdit-D9lmggXK.css @@ -0,0 +1 @@ +.sec[data-v-738758fc]{margin-top:20px}.sec h4[data-v-738758fc]{margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border)}.row[data-v-738758fc]{display:flex;gap:12px;flex-wrap:wrap}.f[data-v-738758fc]{flex:1;min-width:140px}label[data-v-738758fc]{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}input[data-v-738758fc],select[data-v-738758fc],textarea[data-v-738758fc]{width:100%}.actions[data-v-738758fc]{margin-top:20px}.grid[data-v-c682ddb6]{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.pcard[data-v-c682ddb6]{display:flex;flex-direction:column}.edit-btn[data-v-c682ddb6]{margin-top:auto;display:inline-flex;align-items:center;gap:6px}.star[data-v-c682ddb6]{color:#d8dbe3}.star.on[data-v-c682ddb6]{color:#f59e0b}.badge.tier-a[data-v-c682ddb6]{background:#dcfce7;color:#166534}.badge.tier-b[data-v-c682ddb6]{background:#fef9c3;color:#854d0e}.badge.tier-c[data-v-c682ddb6]{background:#fee2e2;color:#991b1b}.guide[data-v-c682ddb6]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px}.modal-backdrop[data-v-c682ddb6]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;justify-content:center;align-items:flex-start;padding:40px 16px;z-index:50;overflow:auto}.modal[data-v-c682ddb6]{background:#fff;border-radius:14px;padding:24px;width:100%;max-width:720px;box-shadow:0 20px 50px #00000040} diff --git a/frontend/dist/assets/GroupEdit-Db7E5OJj.js b/frontend/dist/assets/GroupEdit-Db7E5OJj.js new file mode 100644 index 0000000..fd09975 --- /dev/null +++ b/frontend/dist/assets/GroupEdit-Db7E5OJj.js @@ -0,0 +1,14 @@ +import{k as T,_ as F,E as O,o as m,c as f,a as e,t as i,w as o,v as u,D as M,e as _,G as I,r as k,l as q,m as j,n as D,u as c,j as y,i as B,B as J,F as N,q as P,H,h as R,s as z,x as K,A as E}from"./index-C0Orcg9B.js";import{U as Q}from"./users-D5qk1Nmy.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W=T("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X=T("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),Y={class:"persona-form"},Z={class:"muted"},h={class:"sec"},ee={class:"row"},le={class:"f"},te={class:"f"},ne={class:"f"},se={class:"row"},oe={class:"f"},ie={class:"f"},ae={class:"f"},ue={class:"sec"},re={class:"row"},de={class:"f"},me={class:"f"},ve={class:"f"},fe={class:"sec"},ge={class:"sec"},ye={class:"row"},be={class:"f"},ke={class:"f"},ce={key:0,class:"muted"},xe={class:"row actions"},we=["disabled"],pe={__name:"PersonaForm",props:{persona:{type:Object,required:!0}},emits:["save","cancel"],setup(p,{emit:S}){const x=p,V=S,n=I({name:"",difficulty:1,tier:"B",profession:"",age_group:"",location:"",income:"",budget:"",lifestyle:"",background:"",personality:"",communication_style:"",goal:"",decision_timeline:"",opener:"",channel:"line",initiation_mode:"customer",special:""}),d=k(""),b=k(""),v=k(""),w=k(!1);function U(t){return Array.isArray(t)?t.join(` +`):String(t||"")}function $(t){return t.split(` +`).map(l=>l.trim()).filter(Boolean)}O(()=>x.persona,t=>{Object.assign(n,{name:(t==null?void 0:t.name)||"",difficulty:(t==null?void 0:t.difficulty)??1,tier:(t==null?void 0:t.tier)||"B",profession:(t==null?void 0:t.profession)||"",age_group:(t==null?void 0:t.age_group)||"",location:(t==null?void 0:t.location)||"",income:(t==null?void 0:t.income)||"",budget:(t==null?void 0:t.budget)||"",lifestyle:(t==null?void 0:t.lifestyle)||"",background:(t==null?void 0:t.background)||"",personality:(t==null?void 0:t.personality)||"",communication_style:(t==null?void 0:t.communication_style)||"",goal:(t==null?void 0:t.goal)||"",decision_timeline:(t==null?void 0:t.decision_timeline)||"",opener:(t==null?void 0:t.opener)||"",channel:(t==null?void 0:t.channel)||"line",initiation_mode:(t==null?void 0:t.initiation_mode)||"customer",special:(t==null?void 0:t.special)||""}),d.value=U(t==null?void 0:t.pains),b.value=U(t==null?void 0:t.objections),v.value=U(t==null?void 0:t.negotiation_levers)},{immediate:!0});function A(){V("save",{...n,pains:$(d.value),objections:$(b.value),negotiation_levers:$(v.value)})}return(t,l)=>(m(),f("div",Y,[e("h3",null,i(p.persona.name||"New persona"),1),e("p",Z,i(p.persona.profession)+" · "+i(p.persona.personality),1),e("div",h,[l[28]||(l[28]=e("h4",null,"👤 ข้อมูลพื้นฐาน",-1)),e("div",ee,[e("div",le,[l[21]||(l[21]=e("label",null,"ชื่อ",-1)),o(e("input",{"onUpdate:modelValue":l[0]||(l[0]=s=>n.name=s)},null,512),[[u,n.name]])]),e("div",te,[l[22]||(l[22]=e("label",null,"ระดับความยาก (1-5)",-1)),o(e("input",{"onUpdate:modelValue":l[1]||(l[1]=s=>n.difficulty=s),type:"number",min:"1",max:"5"},null,512),[[u,n.difficulty,void 0,{number:!0}]])]),e("div",ne,[l[24]||(l[24]=e("label",null,"ระดับลูกค้า",-1)),o(e("select",{"onUpdate:modelValue":l[2]||(l[2]=s=>n.tier=s)},[...l[23]||(l[23]=[e("option",{value:"A"},"A — พร้อมตัดสินใจซื้อ",-1),e("option",{value:"B"},"B — ยังไม่แน่ใจ",-1),e("option",{value:"C"},"C — ไม่สนใจแต่มีปัญหา",-1)])],512),[[M,n.tier]])])]),e("div",se,[e("div",oe,[l[25]||(l[25]=e("label",null,"อาชีพ",-1)),o(e("input",{"onUpdate:modelValue":l[3]||(l[3]=s=>n.profession=s)},null,512),[[u,n.profession]])]),e("div",ie,[l[26]||(l[26]=e("label",null,"ช่วงอายุ",-1)),o(e("input",{"onUpdate:modelValue":l[4]||(l[4]=s=>n.age_group=s)},null,512),[[u,n.age_group]])]),e("div",ae,[l[27]||(l[27]=e("label",null,"พื้นที่",-1)),o(e("input",{"onUpdate:modelValue":l[5]||(l[5]=s=>n.location=s)},null,512),[[u,n.location]])])])]),e("div",ue,[l[32]||(l[32]=e("h4",null,"💼 ข้อมูลลูกค้า",-1)),e("div",re,[e("div",de,[l[29]||(l[29]=e("label",null,"รายได้/สถานะการเงิน",-1)),o(e("input",{"onUpdate:modelValue":l[6]||(l[6]=s=>n.income=s)},null,512),[[u,n.income]])]),e("div",me,[l[30]||(l[30]=e("label",null,"งบประมาณ",-1)),o(e("input",{"onUpdate:modelValue":l[7]||(l[7]=s=>n.budget=s)},null,512),[[u,n.budget]])]),e("div",ve,[l[31]||(l[31]=e("label",null,"ไลฟ์สไตล์",-1)),o(e("input",{"onUpdate:modelValue":l[8]||(l[8]=s=>n.lifestyle=s)},null,512),[[u,n.lifestyle]])])]),l[33]||(l[33]=e("label",null,"ภูมิหลัง",-1)),o(e("textarea",{"onUpdate:modelValue":l[9]||(l[9]=s=>n.background=s)},null,512),[[u,n.background]]),l[34]||(l[34]=e("label",null,"บุคลิก / วิธีพูดคุย",-1)),o(e("textarea",{"onUpdate:modelValue":l[10]||(l[10]=s=>n.personality=s)},null,512),[[u,n.personality]]),l[35]||(l[35]=e("label",null,"สไตล์การสื่อสาร",-1)),o(e("textarea",{"onUpdate:modelValue":l[11]||(l[11]=s=>n.communication_style=s)},null,512),[[u,n.communication_style]])]),e("div",fe,[l[36]||(l[36]=e("h4",null,"🎯 การขาย",-1)),l[37]||(l[37]=e("label",null,"เป้าหมาย",-1)),o(e("textarea",{"onUpdate:modelValue":l[12]||(l[12]=s=>n.goal=s)},null,512),[[u,n.goal]]),l[38]||(l[38]=e("label",null,"กรอบเวลาในการตัดสินใจ",-1)),o(e("input",{"onUpdate:modelValue":l[13]||(l[13]=s=>n.decision_timeline=s)},null,512),[[u,n.decision_timeline]]),l[39]||(l[39]=e("label",null,"Pain (ปัญหา) แบบ 1 ต่อบรรทัด",-1)),o(e("textarea",{"onUpdate:modelValue":l[14]||(l[14]=s=>d.value=s),placeholder:`เช่น ต้นทุนสูงเกินไป +ระบบล้าสมัย`},null,512),[[u,d.value]]),l[40]||(l[40]=e("label",null,"ข้อโต้แย้ง (Objections) 1 ต่อบรรทัด",-1)),o(e("textarea",{"onUpdate:modelValue":l[15]||(l[15]=s=>b.value=s)},null,512),[[u,b.value]]),l[41]||(l[41]=e("label",null,"สิ่งที่ใช้ต่อรอง (เช่น ส่วนลด, ฟรีติดตั้ง)",-1)),o(e("textarea",{"onUpdate:modelValue":l[16]||(l[16]=s=>v.value=s)},null,512),[[u,v.value]]),l[42]||(l[42]=e("label",null,"ช่องทางสำหรับลูกค้าเปิดบทสนทนา (opener)",-1)),o(e("textarea",{"onUpdate:modelValue":l[17]||(l[17]=s=>n.opener=s)},null,512),[[u,n.opener]])]),e("div",ge,[l[47]||(l[47]=e("h4",null,"📡 ช่องทาง & โหมด",-1)),e("div",ye,[e("div",be,[l[44]||(l[44]=e("label",null,"ช่องทาง",-1)),o(e("select",{"onUpdate:modelValue":l[18]||(l[18]=s=>n.channel=s)},[...l[43]||(l[43]=[e("option",{value:"line"},"LINE",-1),e("option",{value:"facebook"},"Facebook",-1)])],512),[[M,n.channel]])]),e("div",ke,[l[46]||(l[46]=e("label",null,"ใครเริ่มคุยก่อน",-1)),o(e("select",{"onUpdate:modelValue":l[19]||(l[19]=s=>n.initiation_mode=s)},[...l[45]||(l[45]=[e("option",{value:"customer"},"ลูกค้าทักก่อน",-1),e("option",{value:"seller"},"เราต้องเริ่มขาย (เชิงรุก)",-1)])],512),[[M,n.initiation_mode]])])]),n.special?(m(),f("label",ce,"พิเศษ: "+i(n.special),1)):_("",!0)]),e("div",xe,[e("button",{class:"primary",onClick:A,disabled:w.value},i(w.value?"กำลังบันทึก…":"💾 บันทึกบุคคลต้นแบบ"),9,we),e("button",{onClick:l[20]||(l[20]=s=>t.$emit("cancel"))},"ปิด")])]))}},Ve=F(pe,[["__scopeId","data-v-738758fc"]]),Ue={class:"row",style:{"align-items":"center","margin-bottom":"8px"}},$e={style:{margin:"0"}},Ce={class:"row",style:{"margin-left":"auto",gap:"10px"}},Be=["disabled"],_e={key:0,class:"spinner"},je={key:0,class:"muted"},ze={key:1,class:"error",style:{margin:"12px 0"}},Ae={key:2,class:"card empty-state"},Le={class:"grid"},Me={class:"row",style:{"justify-content":"space-between","align-items":"center"}},Ne={class:"diff"},Pe={class:"muted"},Se={class:"muted"},Ee=["onClick"],Te={class:"modal"},Fe={__name:"GroupEdit",setup(p){const x=R().params.gid,V=k(null),n=k([]),d=k(!1),b=k(""),v=k(null);async function w(){const a=await z.getGroup(x);V.value=a.group,n.value=(await z.listPersonas(x)).personas}function U(a){return n.value.filter(r=>r.tier===a)}function $(a){return B.t(a==="A"?"tierA":a==="B"?"tierB":"tierC")}function A(a){return{A:"tier-a",B:"tier-b",C:"tier-c"}[a]||""}async function t(){d.value=!0,b.value="";try{const a=await z.analyzeGroup(x);n.value=a.personas,await w()}catch(a){b.value=a.message}finally{d.value=!1}}function l(a){v.value=JSON.parse(JSON.stringify(a))}async function s(a){d.value=!0;try{await z.updatePersona(x,v.value.id,a),v.value=null,await w()}catch(r){b.value=r.message}finally{d.value=!1}}return q(w),(a,r)=>{const G=K("router-link");return m(),f("div",null,[j(G,{to:"/training",class:"btn-back"},{default:D(()=>[y("← "+i(c(B).t("training")),1)]),_:1}),e("div",Ue,[e("h2",$e,[j(c(Q),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),y(" "+i(c(B).t("managePersonas")),1)]),e("div",Ce,[e("button",{onClick:t,disabled:d.value,class:"primary"},[d.value?(m(),f("span",_e)):(m(),J(c(X),{key:1,size:18,"stroke-width":1.8})),y(" "+i(d.value?"กำลังสร้าง…":c(B).t("analyze")),1)],8,Be)])]),V.value?(m(),f("p",je,[r[2]||(r[2]=y("สินค้า: ",-1)),e("strong",null,i(V.value.title),1)])):_("",!0),b.value?(m(),f("div",ze,i(b.value),1)):_("",!0),r[4]||(r[4]=e("div",{class:"card guide"},[e("strong",null,"วิธีใช้หน้านี้"),e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[y("กดปุ่ม "),e("strong",null,"✨ สร้าง/วิเคราะห์บุคคลต้นแบบ"),y(" เพื่อให้ระบบสร้างลูกค้าจำลอง 15 คน (ระดับ A/B/C)")]),e("li",null,[y("แต่ละการ์ดคือลูกค้าจำลอง 1 คน — กด "),e("strong",null,"✏️ แก้ไข"),y(" เพื่อปรับรายละเอียดให้ตรงใจ")]),e("li",null,[y("เมื่อพร้อมให้ผู้ใช้ฝึก กด "),e("strong",null,"เปิดใช้งาน"),y(" (ยังทำในขั้นถัดไป)")])])],-1)),n.value.length===0&&!d.value?(m(),f("div",Ae,[...r[3]||(r[3]=[e("strong",null,"ยังไม่มีบุคคลต้นแบบ",-1),e("span",null,'กด "✨ สร้าง/วิเคราะห์บุคคลต้นแบบ" เพื่อให้ระบบสร้างลูกค้าจำลองให้',-1)])])):_("",!0),(m(),f(N,null,P(["A","B","C"],C=>e("div",{key:C,style:{"margin-bottom":"20px"}},[e("h4",null,i($(C)),1),e("div",Le,[(m(!0),f(N,null,P(U(C),g=>(m(),f("div",{key:g.id,class:"card pcard"},[e("div",Me,[e("strong",null,i(g.name),1),e("span",{class:E(["badge",A(g.tier)])},i(g.tier),3)]),e("div",Ne,[(m(),f(N,null,P(5,L=>e("span",{key:L,class:E(["star",{on:L<=(g.difficulty||1)}])},"★",2)),64))]),e("div",Pe,i(g.profession)+" · "+i(g.age_group)+" · "+i(g.location),1),e("div",Se,i(g.channel)+" · "+i(g.initiation_mode==="seller"?"เริ่มขายเอง":"ลูกค้าทักก่อน"),1),e("button",{class:"edit-btn",onClick:L=>l(g)},[j(c(W),{size:15,"stroke-width":1.8}),y(" "+i(c(B).t("edit")),1)],8,Ee)]))),128))])])),64)),v.value?(m(),f("div",{key:3,class:"modal-backdrop",onClick:r[1]||(r[1]=H(C=>v.value=null,["self"]))},[e("div",Te,[j(Ve,{persona:v.value,onSave:s,onCancel:r[0]||(r[0]=C=>v.value=null)},null,8,["persona"])])])):_("",!0)])}}},Ie=F(Fe,[["__scopeId","data-v-c682ddb6"]]);export{Ie as default}; diff --git a/frontend/dist/assets/GroupEdit-b5HdCSuv.css b/frontend/dist/assets/GroupEdit-b5HdCSuv.css deleted file mode 100644 index 6aea95c..0000000 --- a/frontend/dist/assets/GroupEdit-b5HdCSuv.css +++ /dev/null @@ -1 +0,0 @@ -.sec[data-v-738758fc]{margin-top:20px}.sec h4[data-v-738758fc]{margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border)}.row[data-v-738758fc]{display:flex;gap:12px;flex-wrap:wrap}.f[data-v-738758fc]{flex:1;min-width:140px}label[data-v-738758fc]{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}input[data-v-738758fc],select[data-v-738758fc],textarea[data-v-738758fc]{width:100%}.actions[data-v-738758fc]{margin-top:20px}.grid[data-v-812ba03f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.pcard[data-v-812ba03f]{display:flex;flex-direction:column}.edit-btn[data-v-812ba03f]{margin-top:auto}.star[data-v-812ba03f]{color:#d8dbe3}.star.on[data-v-812ba03f]{color:#f59e0b}.badge.tier-a[data-v-812ba03f]{background:#dcfce7;color:#166534}.badge.tier-b[data-v-812ba03f]{background:#fef9c3;color:#854d0e}.badge.tier-c[data-v-812ba03f]{background:#fee2e2;color:#991b1b}.guide[data-v-812ba03f]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px}.modal-backdrop[data-v-812ba03f]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;justify-content:center;align-items:flex-start;padding:40px 16px;z-index:50;overflow:auto}.modal[data-v-812ba03f]{background:#fff;border-radius:14px;padding:24px;width:100%;max-width:720px;box-shadow:0 20px 50px #00000040} diff --git a/frontend/dist/assets/Login-DpLtB9t4.js b/frontend/dist/assets/Login-DhaEm1-6.js similarity index 92% rename from frontend/dist/assets/Login-DpLtB9t4.js rename to frontend/dist/assets/Login-DhaEm1-6.js index dfed5c3..2d0ee62 100644 --- a/frontend/dist/assets/Login-DpLtB9t4.js +++ b/frontend/dist/assets/Login-DhaEm1-6.js @@ -1 +1 @@ -import{_ as b,c as d,a as e,t as s,u as c,i as o,w as y,v as x,b as w,d as k,e as S,r as l,f,g as V,h as B,o as v}from"./index-BhdfH8-z.js";const C={class:"login-wrap"},D={class:"card login-card"},K={class:"pw-wrap"},E=["type"],L=["aria-label"],M={key:0,class:"error",role:"alert"},N=["disabled"],R={key:0,class:"spinner"},U={key:1},q={__name:"Login",setup(H){const g=B(),_=V(),n=l(""),u=l(""),a=l(!1),r=l(""),i=l(!1);async function m(){r.value="",i.value=!0;try{await f.login(n.value.trim(),u.value),f.mustSetup?_.push({path:"/setup"}):_.push(g.query.redirect||"/")}catch{r.value=o.t("loginError")}finally{i.value=!1}}return(h,t)=>(v(),d("div",C,[e("div",D,[e("h1",null,"🎯 "+s(c(o).t("app")),1),t[3]||(t[3]=e("p",{class:"muted",style:{"margin-top":"-8px"}},"Sales training simulator",-1)),e("label",null,s(c(o).t("username")),1),y(e("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>n.value=p),type:"text",autocomplete:"username",onKeyup:w(m,["enter"])},null,544),[[x,n.value]]),e("label",null,s(c(o).t("password")),1),e("div",K,[y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=p=>u.value=p),type:a.value?"text":"password",autocomplete:"current-password",onKeyup:w(m,["enter"])},null,40,E),[[k,u.value]]),e("button",{type:"button",class:"pw-toggle",onClick:t[2]||(t[2]=p=>a.value=!a.value),"aria-label":a.value?"Hide password":"Show password"},s(a.value?"🙈":"👁"),9,L)]),r.value?(v(),d("div",M,s(r.value),1)):S("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:i.value||!n.value||!u.value,onClick:m},[i.value?(v(),d("span",R)):(v(),d("span",U,s(c(o).t("login")),1))],8,N)])]))}},P=b(q,[["__scopeId","data-v-f7904d9f"]]);export{P as default}; +import{_ as b,c as d,a as e,t as s,u as c,i as o,w as y,v as x,b as w,d as k,e as S,r as l,f,g as V,h as B,o as v}from"./index-C0Orcg9B.js";const C={class:"login-wrap"},D={class:"card login-card"},K={class:"pw-wrap"},E=["type"],L=["aria-label"],M={key:0,class:"error",role:"alert"},N=["disabled"],R={key:0,class:"spinner"},U={key:1},q={__name:"Login",setup(H){const g=B(),_=V(),n=l(""),u=l(""),a=l(!1),r=l(""),i=l(!1);async function m(){r.value="",i.value=!0;try{await f.login(n.value.trim(),u.value),f.mustSetup?_.push({path:"/setup"}):_.push(g.query.redirect||"/")}catch{r.value=o.t("loginError")}finally{i.value=!1}}return(h,t)=>(v(),d("div",C,[e("div",D,[e("h1",null,"🎯 "+s(c(o).t("app")),1),t[3]||(t[3]=e("p",{class:"muted",style:{"margin-top":"-8px"}},"Sales training simulator",-1)),e("label",null,s(c(o).t("username")),1),y(e("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>n.value=p),type:"text",autocomplete:"username",onKeyup:w(m,["enter"])},null,544),[[x,n.value]]),e("label",null,s(c(o).t("password")),1),e("div",K,[y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=p=>u.value=p),type:a.value?"text":"password",autocomplete:"current-password",onKeyup:w(m,["enter"])},null,40,E),[[k,u.value]]),e("button",{type:"button",class:"pw-toggle",onClick:t[2]||(t[2]=p=>a.value=!a.value),"aria-label":a.value?"Hide password":"Show password"},s(a.value?"🙈":"👁"),9,L)]),r.value?(v(),d("div",M,s(r.value),1)):S("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:i.value||!n.value||!u.value,onClick:m},[i.value?(v(),d("span",R)):(v(),d("span",U,s(c(o).t("login")),1))],8,N)])]))}},P=b(q,[["__scopeId","data-v-f7904d9f"]]);export{P as default}; diff --git a/frontend/dist/assets/MyBoard-B7ypQ1JT.css b/frontend/dist/assets/MyBoard-B7ypQ1JT.css new file mode 100644 index 0000000..e248053 --- /dev/null +++ b/frontend/dist/assets/MyBoard-B7ypQ1JT.css @@ -0,0 +1 @@ +.stat-row[data-v-6767b6b8]{gap:16px}.stat[data-v-6767b6b8]{text-align:center;min-width:100px}.stat span[data-v-6767b6b8]{display:block;font-size:12px;color:var(--muted)}.stat strong[data-v-6767b6b8]{font-size:26px}.stat.won strong[data-v-6767b6b8]{color:var(--green)}.stat.lost strong[data-v-6767b6b8]{color:var(--red)} diff --git a/frontend/dist/assets/MyBoard-CDLgMRNi.css b/frontend/dist/assets/MyBoard-CDLgMRNi.css deleted file mode 100644 index 766510c..0000000 --- a/frontend/dist/assets/MyBoard-CDLgMRNi.css +++ /dev/null @@ -1 +0,0 @@ -.stat-row[data-v-b92138a0]{gap:16px}.stat[data-v-b92138a0]{text-align:center;min-width:100px}.stat span[data-v-b92138a0]{display:block;font-size:12px;color:var(--muted)}.stat strong[data-v-b92138a0]{font-size:26px}.stat.won strong[data-v-b92138a0]{color:var(--green)}.stat.lost strong[data-v-b92138a0]{color:var(--red)} diff --git a/frontend/dist/assets/MyBoard-CHF7e7KE.js b/frontend/dist/assets/MyBoard-CHF7e7KE.js new file mode 100644 index 0000000..970053d --- /dev/null +++ b/frontend/dist/assets/MyBoard-CHF7e7KE.js @@ -0,0 +1,6 @@ +import{k as x,_ as f,l as k,s as p,c as r,a as t,m as b,u as e,j as B,t as s,i as a,e as v,w as N,y as D,F as S,q as T,r as h,z as c,o as i,A as V}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z=x("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),L={style:{margin:"0"}},M={key:0,class:"row stat-row"},j={class:"card stat"},C={class:"card stat won"},F={class:"card stat lost"},I={class:"card stat"},q={key:1,class:"card"},A={key:2,class:"card empty-state"},E={class:"card",style:{"margin-top":"20px"}},G={style:{"margin-top":"0"}},H={__name:"MyBoard",setup(J){const o=h([]),u=h([]),y=h(!0),m=c(()=>o.value.length),_=c(()=>o.value.filter(n=>n.my_outcome==="won").length),g=c(()=>o.value.filter(n=>n.my_outcome==="lost").length),w=c(()=>o.value.filter(n=>n.my_outcome==="not_tried").length);return k(async()=>{try{o.value=(await p.myBoard()).board||[],u.value=(await p.mySessions()).sessions||[]}finally{y.value=!1}}),(n,l)=>(i(),r("div",null,[t("div",null,[t("h2",L,[b(e(z),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),B(" "+s(e(a).t("myDashboard")),1)]),l[0]||(l[0]=t("div",{class:"muted",style:{"margin-top":"4px","margin-bottom":"16px"}},"สรุปผลการฝึกของตัวคุณเอง — ดูว่าปิดการขายได้กี่ครั้ง ยังฝึกกับใครบ้าง",-1))]),y.value?v("",!0):(i(),r("div",M,[t("div",j,[t("span",null,s(e(a).t("total")),1),t("strong",null,s(m.value),1)]),t("div",C,[t("span",null,s(e(a).t("won")),1),t("strong",null,s(_.value),1)]),t("div",F,[t("span",null,s(e(a).t("lost")),1),t("strong",null,s(g.value),1)]),t("div",I,[t("span",null,s(e(a).t("notTried")),1),t("strong",null,s(w.value),1)])])),y.value?(i(),r("div",q,[...l[1]||(l[1]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):o.value.length===0?(i(),r("div",A,[...l[2]||(l[2]=[t("strong",null,"No practice yet",-1),t("span",null,"Go to Training and try closing a sale with a persona.",-1)])])):v("",!0),N(t("div",E,[t("h3",G,s(e(a).t("mySessions")),1),(i(!0),r(S,null,T(u.value,d=>(i(),r("div",{key:d.id,style:{display:"flex","justify-content":"space-between",padding:"8px 0","border-bottom":"1px solid var(--border)"}},[t("span",null,s(d.persona_name),1),t("span",{class:V(["badge",d.outcome])},s(d.outcome==="won"?e(a).t("won"):e(a).t("lost")),3)]))),128))],512),[[D,u.value.length]])]))}},O=f(H,[["__scopeId","data-v-6767b6b8"]]);export{O as default}; diff --git a/frontend/dist/assets/MyBoard-DT8KV0ES.js b/frontend/dist/assets/MyBoard-DT8KV0ES.js deleted file mode 100644 index 413fd54..0000000 --- a/frontend/dist/assets/MyBoard-DT8KV0ES.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f,k as x,q as v,c as r,a as t,t as s,u as e,i as a,e as _,w as b,x as k,F as B,p as S,r as m,y as u,o as i,z as D}from"./index-BhdfH8-z.js";const M={style:{margin:"0"}},N={key:0,class:"row stat-row"},T={class:"card stat"},z={class:"card stat won"},C={class:"card stat lost"},F={class:"card stat"},V={key:1,class:"card"},j={key:2,class:"card empty-state"},q={class:"card",style:{"margin-top":"20px"}},E={style:{"margin-top":"0"}},G={__name:"MyBoard",setup(I){const o=m([]),c=m([]),p=m(!0),y=u(()=>o.value.length),g=u(()=>o.value.filter(n=>n.my_outcome==="won").length),h=u(()=>o.value.filter(n=>n.my_outcome==="lost").length),w=u(()=>o.value.filter(n=>n.my_outcome==="not_tried").length);return x(async()=>{try{o.value=(await v.myBoard()).board||[],c.value=(await v.mySessions()).sessions||[]}finally{p.value=!1}}),(n,l)=>(i(),r("div",null,[t("div",null,[t("h2",M,"📈 "+s(e(a).t("myDashboard")),1),l[0]||(l[0]=t("div",{class:"muted",style:{"margin-top":"4px","margin-bottom":"16px"}},"สรุปผลการฝึกของตัวคุณเอง — ดูว่าปิดการขายได้กี่ครั้ง ยังฝึกกับใครบ้าง",-1))]),p.value?_("",!0):(i(),r("div",N,[t("div",T,[t("span",null,s(e(a).t("total")),1),t("strong",null,s(y.value),1)]),t("div",z,[t("span",null,s(e(a).t("won")),1),t("strong",null,s(g.value),1)]),t("div",C,[t("span",null,s(e(a).t("lost")),1),t("strong",null,s(h.value),1)]),t("div",F,[t("span",null,s(e(a).t("notTried")),1),t("strong",null,s(w.value),1)])])),p.value?(i(),r("div",V,[...l[1]||(l[1]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):o.value.length===0?(i(),r("div",j,[...l[2]||(l[2]=[t("strong",null,"No practice yet",-1),t("span",null,"Go to Training and try closing a sale with a persona.",-1)])])):_("",!0),b(t("div",q,[t("h3",E,s(e(a).t("mySessions")),1),(i(!0),r(B,null,S(c.value,d=>(i(),r("div",{key:d.id,style:{display:"flex","justify-content":"space-between",padding:"8px 0","border-bottom":"1px solid var(--border)"}},[t("span",null,s(d.persona_name),1),t("span",{class:D(["badge",d.outcome])},s(d.outcome==="won"?e(a).t("won"):e(a).t("lost")),3)]))),128))],512),[[k,c.value.length]])]))}},A=f(G,[["__scopeId","data-v-b92138a0"]]);export{A as default}; diff --git a/frontend/dist/assets/Personas-Be_DU4st.css b/frontend/dist/assets/Personas-Be_DU4st.css deleted file mode 100644 index 3966539..0000000 --- a/frontend/dist/assets/Personas-Be_DU4st.css +++ /dev/null @@ -1 +0,0 @@ -.grid[data-v-0fa25205]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.pcard[data-v-0fa25205]{display:flex;flex-direction:column;min-height:190px}.diff[data-v-0fa25205]{margin:8px 0}.star[data-v-0fa25205]{color:#d8dbe3}.star.on[data-v-0fa25205]{color:#f59e0b}.badge.won[data-v-0fa25205]{background:#dcfce7;color:#166534}.badge.lost[data-v-0fa25205]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-0fa25205]{background:#eef2ff;color:#4338ca}.guide[data-v-0fa25205]{background:#eef2ff;border-color:#c7d2fe;margin:12px 0 16px} diff --git a/frontend/dist/assets/Personas-CRi-xjVS.js b/frontend/dist/assets/Personas-CRi-xjVS.js new file mode 100644 index 0000000..10649ca --- /dev/null +++ b/frontend/dist/assets/Personas-CRi-xjVS.js @@ -0,0 +1 @@ +import{_ as T,l as $,c as r,m as d,n as m,a as t,t as s,u as e,i as n,f as g,j as _,e as w,F as y,q as p,h as L,s as N,x as V,r as b,o as a,S as I,A as h,B as A}from"./index-C0Orcg9B.js";import{T as S}from"./target-qgda8bhm.js";import{A as j}from"./arrow-left-BoUMQ_f_.js";const F={class:"row",style:{"align-items":"center"}},q={style:{margin:"0"}},D={class:"muted",style:{"margin-left":"auto"}},E={key:0,class:"card guide"},M={key:1,class:"row",style:{margin:"12px 0",gap:"10px"}},R={class:"primary"},G={class:"grid"},H={class:"row",style:{"justify-content":"space-between"}},J={class:"diff"},K={class:"muted"},O={class:"muted"},Q={class:"muted"},U={class:"muted",style:{"margin-top":"6px"}},W={class:"primary",style:{width:"100%"}},X={class:"primary",style:{width:"100%"}},Y={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},Z={__name:"Personas",setup(tt){const c=L().params.gid,k=b([]),B=b(!0);async function C(){try{k.value=(await N.listPersonas(c)).personas}finally{B.value=!1}}function z(l){return k.value.filter(i=>i.tier===l)}function P(l){return n.t(l==="A"?"tierA":l==="B"?"tierB":"tierC")}function v(l){return l==="won"?n.t("won"):l==="lost"?n.t("lost"):n.t("notTried")}return $(C),(l,i)=>{const u=V("router-link");return a(),r("div",null,[d(u,{to:"/training",class:"btn-back"},{default:m(()=>[d(e(j),{size:16,"stroke-width":2}),_(" "+s(e(n).t("training")),1)]),_:1}),t("div",F,[t("h2",q,s(e(n).t("personas")),1),t("span",D,s(e(n).t("selectPersona")),1)]),e(g).isAdmin?w("",!0):(a(),r("div",E,[t("strong",null,[d(e(S),{size:17,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),i[0]||(i[0]=_(" วิธีฝึก",-1))]),i[1]||(i[1]=t("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[t("li",null,"เลือกลูกค้าจำลอง (บุคคลต้นแบบ) คนหนึ่งที่อยากฝึกด้วย"),t("li",null,"ระดับ A ง่ายสุด → ระดับ C ยากสุด (ดูจากดาว ★ ความยาก)"),t("li",null,"กดปุ่มสำหรับฝึกแชทกับลูกค้าคนนั้น (ฝึกได้คนละครั้งเท่านั้น)")],-1))])),e(g).isAdmin?(a(),r("div",M,[d(u,{to:`/admin/groups/${e(c)}/edit`},{default:m(()=>[t("button",R,[d(e(I),{size:18,"stroke-width":1.8}),_(" "+s(e(n).t("managePersonas")),1)])]),_:1},8,["to"]),i[2]||(i[2]=t("span",{class:"muted"},"Admin: จัดการรายละเอียดบุคคลต้นแบบได้ที่นี่",-1))])):w("",!0),(a(),r(y,null,p(["A","B","C"],f=>t("div",{key:f,style:{margin:"20px 0"}},[t("h4",null,s(P(f)),1),t("div",G,[(a(!0),r(y,null,p(z(f),o=>(a(),r("div",{key:o.id,class:"card pcard lift"},[t("div",H,[t("strong",null,s(o.name),1),t("span",{class:h(["badge",o.my_outcome])},s(v(o.my_outcome)),3)]),t("div",J,[(a(),r(y,null,p(5,x=>t("span",{key:x,class:h(["star",{on:x<=(o.difficulty||1)}])},"★",2)),64)),t("span",K,s(e(n).t("difficulty"))+" "+s(o.difficulty||1)+"/5",1)]),t("div",O,[_(s(o.profession)+" · "+s(o.age_group)+" · "+s(o.location),1),i[3]||(i[3]=t("br",null,null,-1)),t("span",{class:h(["badge",o.channel])},s(o.channel),3),t("span",Q," · "+s(o.initiation_mode==="seller"?e(n).t("sellerInitiated"):e(n).t("customerInitiated")),1)]),t("div",U,s(o.product_context),1),e(g).isAdmin?(a(),A(u,{key:0,to:`/groups/${e(c)}/chat/${o.id}`,style:{"margin-top":"auto"}},{default:m(()=>[t("button",W,s(e(n).t("chat")),1)]),_:1},8,["to"])):(a(),r(y,{key:1},[o.my_outcome==="not_tried"?(a(),A(u,{key:0,to:`/groups/${e(c)}/chat/${o.id}`,style:{"margin-top":"auto"}},{default:m(()=>[t("button",X,s(e(n).t("chat")),1)]),_:1},8,["to"])):(a(),r("div",Y,"✓ "+s(e(n).t("trained"))+" ("+s(v(o.my_outcome))+")",1))],64))]))),128))])])),64))])}}},at=T(Z,[["__scopeId","data-v-46d50c99"]]);export{at as default}; diff --git a/frontend/dist/assets/Personas-CskAUbZv.css b/frontend/dist/assets/Personas-CskAUbZv.css new file mode 100644 index 0000000..bc7df06 --- /dev/null +++ b/frontend/dist/assets/Personas-CskAUbZv.css @@ -0,0 +1 @@ +.grid[data-v-46d50c99]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.pcard[data-v-46d50c99]{display:flex;flex-direction:column;min-height:190px}.diff[data-v-46d50c99]{margin:8px 0}.star[data-v-46d50c99]{color:#d8dbe3}.star.on[data-v-46d50c99]{color:#f59e0b}.badge.won[data-v-46d50c99]{background:#dcfce7;color:#166534}.badge.lost[data-v-46d50c99]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-46d50c99]{background:#eef2ff;color:#4338ca}.guide[data-v-46d50c99]{background:#eef2ff;border-color:#c7d2fe;margin:12px 0 16px} diff --git a/frontend/dist/assets/Personas-ujsGrehm.js b/frontend/dist/assets/Personas-ujsGrehm.js deleted file mode 100644 index 6980774..0000000 --- a/frontend/dist/assets/Personas-ujsGrehm.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as N,k as V,c as i,l as k,m as u,a as t,t as s,u as a,i as n,f as y,e as b,F as _,p as f,h as z,q as I,s as L,r as x,o,j as w,z as p,A}from"./index-BhdfH8-z.js";const T={class:"row",style:{"align-items":"center"}},j={style:{margin:"0"}},F={class:"muted",style:{"margin-left":"auto"}},q={key:0,class:"card guide"},D={key:1,class:"row",style:{margin:"12px 0",gap:"10px"}},E={class:"primary"},M={class:"grid"},R={class:"row",style:{"justify-content":"space-between"}},S={class:"diff"},G={class:"muted"},H={class:"muted"},J={class:"muted"},K={class:"muted",style:{"margin-top":"6px"}},O={class:"primary",style:{width:"100%"}},Q={class:"primary",style:{width:"100%"}},U={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},W={__name:"Personas",setup(X){const d=z().params.gid,g=x([]),B=x(!0);async function C(){try{g.value=(await I.listPersonas(d)).personas}finally{B.value=!1}}function P(l){return g.value.filter(r=>r.tier===l)}function $(l){return n.t(l==="A"?"tierA":l==="B"?"tierB":"tierC")}function h(l){return l==="won"?n.t("won"):l==="lost"?n.t("lost"):n.t("notTried")}return V(C),(l,r)=>{const c=L("router-link");return o(),i("div",null,[k(c,{to:"/training",class:"btn-back"},{default:u(()=>[w("← "+s(a(n).t("training")),1)]),_:1}),t("div",T,[t("h2",j,s(a(n).t("personas")),1),t("span",F,s(a(n).t("selectPersona")),1)]),a(y).isAdmin?b("",!0):(o(),i("div",q,[...r[0]||(r[0]=[t("strong",null,"🎯 วิธีฝึก",-1),t("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[t("li",null,"เลือกลูกค้าจำลอง (บุคคลต้นแบบ) คนหนึ่งที่อยากฝึกด้วย"),t("li",null,"ระดับ A ง่ายสุด → ระดับ C ยากสุด (ดูจากดาว ★ ความยาก)"),t("li",null,"กดปุ่มสำหรับฝึกแชทกับลูกค้าคนนั้น (ฝึกได้คนละครั้งเท่านั้น)")],-1)])])),a(y).isAdmin?(o(),i("div",D,[k(c,{to:`/admin/groups/${a(d)}/edit`},{default:u(()=>[t("button",E,"🛠 "+s(a(n).t("managePersonas")),1)]),_:1},8,["to"]),r[1]||(r[1]=t("span",{class:"muted"},"Admin: full persona data + edit available here.",-1))])):b("",!0),(o(),i(_,null,f(["A","B","C"],m=>t("div",{key:m,style:{margin:"20px 0"}},[t("h4",null,s($(m)),1),t("div",M,[(o(!0),i(_,null,f(P(m),e=>(o(),i("div",{key:e.id,class:"card pcard lift"},[t("div",R,[t("strong",null,s(e.name),1),t("span",{class:p(["badge",e.my_outcome])},s(h(e.my_outcome)),3)]),t("div",S,[(o(),i(_,null,f(5,v=>t("span",{key:v,class:p(["star",{on:v<=(e.difficulty||1)}])},"★",2)),64)),t("span",G,s(a(n).t("difficulty"))+" "+s(e.difficulty||1)+"/5",1)]),t("div",H,[w(s(e.profession)+" · "+s(e.age_group)+" · "+s(e.location),1),r[2]||(r[2]=t("br",null,null,-1)),t("span",{class:p(["badge",e.channel])},s(e.channel),3),t("span",J," · "+s(e.initiation_mode==="seller"?a(n).t("sellerInitiated"):a(n).t("customerInitiated")),1)]),t("div",K,s(e.product_context),1),a(y).isAdmin?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",O,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i(_,{key:1},[e.my_outcome==="not_tried"?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",Q,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i("div",U,"✓ "+s(a(n).t("trained"))+" ("+s(h(e.my_outcome))+")",1))],64))]))),128))])])),64))])}}},tt=N(W,[["__scopeId","data-v-0fa25205"]]);export{tt as default}; diff --git a/frontend/dist/assets/Settings-BCN2EZQ5.css b/frontend/dist/assets/Settings-BCN2EZQ5.css new file mode 100644 index 0000000..f376ee8 --- /dev/null +++ b/frontend/dist/assets/Settings-BCN2EZQ5.css @@ -0,0 +1 @@ +.active[data-v-4a5a3af4]{border-color:var(--accent);color:var(--accent);font-weight:600}.ok[data-v-4a5a3af4]{color:var(--green);font-size:13px;margin-top:10px}.error[data-v-4a5a3af4]{margin-top:10px} diff --git a/frontend/dist/assets/Settings-CatYfY0I.js b/frontend/dist/assets/Settings-CatYfY0I.js new file mode 100644 index 0000000..7bf7dd5 --- /dev/null +++ b/frontend/dist/assets/Settings-CatYfY0I.js @@ -0,0 +1,16 @@ +import{k as z,_ as T,r as c,f as i,c as h,a as e,m as k,u as a,S as $,j as v,t as o,i as s,w as x,v as b,e as V,A as S,s as U,o as w}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j=z("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D=z("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E=z("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),I={class:"card"},A={style:{"margin-top":"0"}},G={class:"muted"},H=["value"],O={class:"row",style:{gap:"10px","margin-top":"16px"}},q=["disabled"],F={key:0,class:"spinner"},J={class:"card",style:{"margin-top":"16px"}},K={style:{"margin-top":"0"}},Q={class:"row",style:{gap:"10px","margin-top":"16px"}},R=["disabled"],W={key:0,class:"spinner"},X={class:"card",style:{"margin-top":"16px"}},Y={style:{"margin-top":"0"}},Z={class:"row"},ee={key:0,class:"error",role:"alert"},ae={key:1,class:"ok",role:"status"},se={__name:"Settings",setup(te){var C,M;const y=c(((C=i.user)==null?void 0:C.name)||""),p=c(((M=i.user)==null?void 0:M.email)||""),u=c(""),_=c(""),r=c(""),m=c(""),g=c(!1),f=c(!1);async function B(){var d,t;r.value="",m.value="",g.value=!0;try{const n={};if(y.value&&y.value!==((d=i.user)==null?void 0:d.name)&&(n.name=y.value),p.value&&p.value!==((t=i.user)==null?void 0:t.email)&&(n.email=p.value),Object.keys(n).length){const l=await U.updateProfile(n);i.user=l.user,m.value=s.t("saved")}}catch(n){r.value=n.message}finally{g.value=!1}}async function N(){var d,t,n;if(r.value="",m.value="",u.value.length<4){r.value=s.t("passwordTooShort");return}if(u.value!==_.value){r.value=s.t("passwordMismatch");return}f.value=!0;try{const l=((d=i.user)==null?void 0:d.username)||((t=i.user)==null?void 0:t.id)||"",L=await U.setup({username:l,email:p.value||((n=i.user)==null?void 0:n.email),password:u.value});i.user=L.user,u.value="",_.value="",m.value=s.t("saved")}catch(l){r.value=l.message}finally{f.value=!1}}function P(d){s.set(d)}return(d,t)=>{var n;return w(),h("div",null,[e("h2",null,[k(a($),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),v(" "+o(a(s).t("settings")),1)]),e("div",I,[e("h3",A,[k(a(E),{size:18,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),v(" "+o(a(s).t("profile")),1)]),e("label",null,[v(o(a(s).t("username"))+" ",1),e("span",G,"("+o(a(s).t("readonly"))+")",1)]),e("input",{value:((n=a(i).user)==null?void 0:n.username)||"",disabled:""},null,8,H),e("label",null,o(a(s).t("name")),1),x(e("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>y.value=l),type:"text"},null,512),[[b,y.value]]),e("label",null,o(a(s).t("email")),1),x(e("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>p.value=l),type:"email"},null,512),[[b,p.value]]),e("div",O,[e("button",{class:"primary",disabled:g.value,onClick:B},[g.value?(w(),h("span",F)):V("",!0),v(o(a(s).t("saveProfile")),1)],8,q)])]),e("div",J,[e("h3",K,[k(a(D),{size:18,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),v(" "+o(a(s).t("changePassword")),1)]),e("label",null,o(a(s).t("newPassword")),1),x(e("input",{"onUpdate:modelValue":t[2]||(t[2]=l=>u.value=l),type:"password",autocomplete:"new-password"},null,512),[[b,u.value]]),e("label",null,o(a(s).t("confirmPassword")),1),x(e("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>_.value=l),type:"password",autocomplete:"new-password"},null,512),[[b,_.value]]),e("div",Q,[e("button",{class:"primary",disabled:f.value||!u.value||u.value!==_.value,onClick:N},[f.value?(w(),h("span",W)):V("",!0),v(o(a(s).t("save")),1)],8,R)])]),e("div",X,[e("h3",Y,[k(a(j),{size:18,"stroke-width":1.8,style:{"vertical-align":"-3px"}}),v(" "+o(a(s).t("language")),1)]),e("div",Z,[e("button",{class:S({active:a(s).locale==="th"}),onClick:t[4]||(t[4]=l=>P("th"))},"ไทย",2),e("button",{class:S({active:a(s).locale==="en"}),onClick:t[5]||(t[5]=l=>P("en"))},"English",2)])]),r.value?(w(),h("div",ee,o(r.value),1)):V("",!0),m.value?(w(),h("div",ae,"✅ "+o(m.value),1)):V("",!0)])}}},oe=T(se,[["__scopeId","data-v-4a5a3af4"]]);export{oe as default}; diff --git a/frontend/dist/assets/Settings-DagQxl_z.js b/frontend/dist/assets/Settings-DagQxl_z.js deleted file mode 100644 index 7167d0e..0000000 --- a/frontend/dist/assets/Settings-DagQxl_z.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as j,r as v,f as u,c as y,a as e,t as o,u as l,i as s,j as x,w as h,v as b,e as k,z as B,q as S,o as f}from"./index-BhdfH8-z.js";const z={class:"card"},D={style:{"margin-top":"0"}},E={class:"muted"},M=["value"],$={class:"row",style:{gap:"10px","margin-top":"16px"}},q=["disabled"],I={key:0,class:"spinner"},L={class:"card",style:{"margin-top":"16px"}},O={style:{"margin-top":"0"}},A={class:"row",style:{gap:"10px","margin-top":"16px"}},F=["disabled"],G={key:0,class:"spinner"},H={class:"card",style:{"margin-top":"16px"}},J={style:{"margin-top":"0"}},K={class:"row"},Q={key:0,class:"error",role:"alert"},R={key:1,class:"ok",role:"status"},W={__name:"Settings",setup(X){var V,C;const m=v(((V=u.user)==null?void 0:V.name)||""),c=v(((C=u.user)==null?void 0:C.email)||""),i=v(""),_=v(""),r=v(""),p=v(""),w=v(!1),g=v(!1);async function U(){var d,a;r.value="",p.value="",w.value=!0;try{const n={};if(m.value&&m.value!==((d=u.user)==null?void 0:d.name)&&(n.name=m.value),c.value&&c.value!==((a=u.user)==null?void 0:a.email)&&(n.email=c.value),Object.keys(n).length){const t=await S.updateProfile(n);u.user=t.user,p.value=s.t("saved")}}catch(n){r.value=n.message}finally{w.value=!1}}async function N(){var d,a,n;if(r.value="",p.value="",i.value.length<4){r.value=s.t("passwordTooShort");return}if(i.value!==_.value){r.value=s.t("passwordMismatch");return}g.value=!0;try{const t=((d=u.user)==null?void 0:d.username)||((a=u.user)==null?void 0:a.id)||"",T=await S.setup({username:t,email:c.value||((n=u.user)==null?void 0:n.email),password:i.value});u.user=T.user,i.value="",_.value="",p.value=s.t("saved")}catch(t){r.value=t.message}finally{g.value=!1}}function P(d){s.set(d)}return(d,a)=>{var n;return f(),y("div",null,[e("h2",null,"⚙️ "+o(l(s).t("settings")),1),e("div",z,[e("h3",D,"👤 "+o(l(s).t("profile")),1),e("label",null,[x(o(l(s).t("username"))+" ",1),e("span",E,"("+o(l(s).t("readonly"))+")",1)]),e("input",{value:((n=l(u).user)==null?void 0:n.username)||"",disabled:""},null,8,M),e("label",null,o(l(s).t("name")),1),h(e("input",{"onUpdate:modelValue":a[0]||(a[0]=t=>m.value=t),type:"text"},null,512),[[b,m.value]]),e("label",null,o(l(s).t("email")),1),h(e("input",{"onUpdate:modelValue":a[1]||(a[1]=t=>c.value=t),type:"email"},null,512),[[b,c.value]]),e("div",$,[e("button",{class:"primary",disabled:w.value,onClick:U},[w.value?(f(),y("span",I)):k("",!0),x(o(l(s).t("saveProfile")),1)],8,q)])]),e("div",L,[e("h3",O,"🔒 "+o(l(s).t("changePassword")),1),e("label",null,o(l(s).t("newPassword")),1),h(e("input",{"onUpdate:modelValue":a[2]||(a[2]=t=>i.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,i.value]]),e("label",null,o(l(s).t("confirmPassword")),1),h(e("input",{"onUpdate:modelValue":a[3]||(a[3]=t=>_.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,_.value]]),e("div",A,[e("button",{class:"primary",disabled:g.value||!i.value||i.value!==_.value,onClick:N},[g.value?(f(),y("span",G)):k("",!0),x(o(l(s).t("save")),1)],8,F)])]),e("div",H,[e("h3",J,"🌐 "+o(l(s).t("language")),1),e("div",K,[e("button",{class:B({active:l(s).locale==="th"}),onClick:a[4]||(a[4]=t=>P("th"))},"ไทย",2),e("button",{class:B({active:l(s).locale==="en"}),onClick:a[5]||(a[5]=t=>P("en"))},"English",2)])]),r.value?(f(),y("div",Q,o(r.value),1)):k("",!0),p.value?(f(),y("div",R,"✅ "+o(p.value),1)):k("",!0)])}}},Z=j(W,[["__scopeId","data-v-2dca72e5"]]);export{Z as default}; diff --git a/frontend/dist/assets/Settings-y28ROmym.css b/frontend/dist/assets/Settings-y28ROmym.css deleted file mode 100644 index a21b3fc..0000000 --- a/frontend/dist/assets/Settings-y28ROmym.css +++ /dev/null @@ -1 +0,0 @@ -.active[data-v-2dca72e5]{border-color:var(--accent);color:var(--accent);font-weight:600}.ok[data-v-2dca72e5]{color:var(--green);font-size:13px;margin-top:10px}.error[data-v-2dca72e5]{margin-top:10px} diff --git a/frontend/dist/assets/Setup-Ax3Eo5U7.js b/frontend/dist/assets/Setup-D9lCpt9C.js similarity index 96% rename from frontend/dist/assets/Setup-Ax3Eo5U7.js rename to frontend/dist/assets/Setup-D9lCpt9C.js index 14c66e4..83af619 100644 --- a/frontend/dist/assets/Setup-Ax3Eo5U7.js +++ b/frontend/dist/assets/Setup-D9lCpt9C.js @@ -1 +1 @@ -import{_ as x,c as v,a as e,t,u as s,i as a,j as S,f as _,w,v as f,b as y,e as V,r,g as K,o as m}from"./index-BhdfH8-z.js";const T={class:"setup-wrap"},B={class:"card setup-card"},N={class:"muted"},U={key:0,class:"error",role:"alert"},C=["disabled"],D={key:0,class:"spinner"},M={key:1},P={__name:"Setup",setup(j){const k=K(),i=r(""),l=r(""),p=r(""),o=r(""),d=r(!1);async function c(){if(o.value="",l.value.length<4){o.value=a.t("passwordTooShort");return}if(l.value!==p.value){o.value=a.t("passwordMismatch");return}d.value=!0;try{await _.finishSetup(i.value.trim(),l.value),k.push("/")}catch(h){o.value=h.message}finally{d.value=!1}}return(h,u)=>{var b,g;return m(),v("div",T,[e("div",B,[e("h1",null,"🔐 "+t(s(a).t("setupTitle")),1),e("p",N,[S(t(s(a).t("setupSubtitle"))+" ",1),e("strong",null,t(((b=s(_).user)==null?void 0:b.name)||((g=s(_).user)==null?void 0:g.username)),1)]),e("label",null,t(s(a).t("email")),1),w(e("input",{"onUpdate:modelValue":u[0]||(u[0]=n=>i.value=n),type:"email",autocomplete:"email",onKeyup:y(c,["enter"])},null,544),[[f,i.value]]),e("label",null,t(s(a).t("newPassword")),1),w(e("input",{"onUpdate:modelValue":u[1]||(u[1]=n=>l.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,l.value]]),e("label",null,t(s(a).t("confirmPassword")),1),w(e("input",{"onUpdate:modelValue":u[2]||(u[2]=n=>p.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,p.value]]),o.value?(m(),v("div",U,t(o.value),1)):V("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:d.value||!i.value||!l.value||l.value!==p.value,onClick:c},[d.value?(m(),v("span",D)):(m(),v("span",M,t(s(a).t("save")),1))],8,C)])])}}},I=x(P,[["__scopeId","data-v-f190e120"]]);export{I as default}; +import{_ as x,c as v,a as e,t,u as s,i as a,j as S,f as _,w,v as f,b as y,e as V,r,g as K,o as m}from"./index-C0Orcg9B.js";const T={class:"setup-wrap"},B={class:"card setup-card"},N={class:"muted"},U={key:0,class:"error",role:"alert"},C=["disabled"],D={key:0,class:"spinner"},M={key:1},P={__name:"Setup",setup(j){const k=K(),i=r(""),l=r(""),p=r(""),o=r(""),d=r(!1);async function c(){if(o.value="",l.value.length<4){o.value=a.t("passwordTooShort");return}if(l.value!==p.value){o.value=a.t("passwordMismatch");return}d.value=!0;try{await _.finishSetup(i.value.trim(),l.value),k.push("/")}catch(h){o.value=h.message}finally{d.value=!1}}return(h,u)=>{var b,g;return m(),v("div",T,[e("div",B,[e("h1",null,"🔐 "+t(s(a).t("setupTitle")),1),e("p",N,[S(t(s(a).t("setupSubtitle"))+" ",1),e("strong",null,t(((b=s(_).user)==null?void 0:b.name)||((g=s(_).user)==null?void 0:g.username)),1)]),e("label",null,t(s(a).t("email")),1),w(e("input",{"onUpdate:modelValue":u[0]||(u[0]=n=>i.value=n),type:"email",autocomplete:"email",onKeyup:y(c,["enter"])},null,544),[[f,i.value]]),e("label",null,t(s(a).t("newPassword")),1),w(e("input",{"onUpdate:modelValue":u[1]||(u[1]=n=>l.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,l.value]]),e("label",null,t(s(a).t("confirmPassword")),1),w(e("input",{"onUpdate:modelValue":u[2]||(u[2]=n=>p.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,p.value]]),o.value?(m(),v("div",U,t(o.value),1)):V("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:d.value||!i.value||!l.value||l.value!==p.value,onClick:c},[d.value?(m(),v("span",D)):(m(),v("span",M,t(s(a).t("save")),1))],8,C)])])}}},I=x(P,[["__scopeId","data-v-f190e120"]]);export{I as default}; diff --git a/frontend/dist/assets/Training-BcDA5IbA.css b/frontend/dist/assets/Training-BcDA5IbA.css deleted file mode 100644 index 1174786..0000000 --- a/frontend/dist/assets/Training-BcDA5IbA.css +++ /dev/null @@ -1 +0,0 @@ -.grid[data-v-901c9d3d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.train-card[data-v-901c9d3d]{display:flex;flex-direction:column;height:100%}.badge.ready[data-v-901c9d3d]{background:#dcfce7;color:#166534}.badge.draft[data-v-901c9d3d]{background:#fef9c3;color:#854d0e}button.soft[data-v-901c9d3d]{background:#f1f3f9;border-color:transparent}.badge.facebook[data-v-901c9d3d]{background:#e0f2fe;color:#0369a1}.badge.line[data-v-901c9d3d]{background:#dcfce7;color:#15803d} diff --git a/frontend/dist/assets/Training-CH5dgqen.js b/frontend/dist/assets/Training-CH5dgqen.js new file mode 100644 index 0000000..09c7552 --- /dev/null +++ b/frontend/dist/assets/Training-CH5dgqen.js @@ -0,0 +1 @@ +import{_ as w,l as b,s as A,f as l,c as r,a as t,m as _,u as s,j as m,t as e,i as o,B as y,n as h,e as f,F as C,q as N,r as g,x as P,o as i,A as v}from"./index-C0Orcg9B.js";import{T}from"./target-qgda8bhm.js";import{P as B}from"./plus-Cw7xc8qj.js";const z={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},V={style:{margin:"0"}},j={style:{"margin-left":"auto"}},F={class:"primary"},L={class:"muted"},S={key:0,class:"card",style:{"min-height":"80px"}},$={key:1,class:"card empty-state"},q={key:0},D={key:1},E={class:"grid"},G={class:"card lift train-card"},I={class:"row",style:{"justify-content":"space-between"}},M={class:"muted",style:{margin:"6px 0 12px"}},H={class:"row",style:{gap:"8px"}},J={class:"muted"},K={class:"primary",style:{width:"100%","margin-top":"12px"}},O={__name:"Training",setup(Q){const c=g([]),u=g(!0);function k(a){return a.sales_kit&&a.sales_kit.productName||a.input&&a.input.product||""}function x(a){return a.personas||a.persona_count||0}return b(async()=>{try{const a=(await A.listGroups()).groups||[];c.value=l.isAdmin?a:a.filter(d=>d.status==="ready")}finally{u.value=!1}}),(a,d)=>{const p=P("router-link");return i(),r("div",null,[t("div",z,[t("h2",V,[_(s(T),{size:22,"stroke-width":1.8,style:{"vertical-align":"-4px"}}),m(" "+e(s(o).t("training")),1)]),t("div",j,[s(l).isAdmin?(i(),y(p,{key:0,to:"/admin/new-group"},{default:h(()=>[t("button",F,[_(s(B),{size:18,"stroke-width":2}),m(" "+e(s(o).t("addProduct")),1)])]),_:1})):f("",!0)])]),t("p",L,e(s(o).t("trainingSubtitle")),1),u.value?(i(),r("div",S,[...d[0]||(d[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):c.value.length===0?(i(),r("div",$,[t("strong",null,e(s(o).t("noTraining")),1),s(l).isAdmin?(i(),r("span",q,'Click "'+e(s(o).t("addProduct"))+'" to create a persona group.',1)):(i(),r("span",D,"Ask an admin to create a persona group first."))])):f("",!0),t("div",E,[(i(!0),r(C,null,N(c.value,n=>(i(),y(p,{key:n.id,to:s(l).isAdmin?`/admin/groups/${n.id}/edit`:`/groups/${n.id}/personas`,style:{"text-decoration":"none"}},{default:h(()=>[t("div",G,[t("div",I,[t("strong",null,e(n.title),1),t("span",{class:v(["badge",n.status==="ready"?"ready":"draft"])},e(n.status),3)]),t("div",M,e(k(n)),1),t("div",H,[t("span",{class:v(["badge",n.channel||"line"])},e(n.channel||"line"),3),t("span",J,e(x(n))+" "+e(s(o).t("personas").toLowerCase()),1)]),t("button",K,e(s(l).isAdmin?n.status==="ready"?s(o).t("managePersonas"):s(o).t("analyze"):s(o).t("selectPersona")),1)])]),_:2},1032,["to"]))),128))])])}}},X=w(O,[["__scopeId","data-v-1e5bd92b"]]);export{X as default}; diff --git a/frontend/dist/assets/Training-CIWgzyIG.js b/frontend/dist/assets/Training-CIWgzyIG.js deleted file mode 100644 index be21aac..0000000 --- a/frontend/dist/assets/Training-CIWgzyIG.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as k,k as x,q as w,f as d,c as r,a as t,t as e,u as s,i as o,A as _,m,e as y,F as b,p as A,r as h,s as C,o as i,z as f}from"./index-BhdfH8-z.js";const B={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},N={style:{margin:"0"}},P={style:{"margin-left":"auto"}},z={class:"primary"},T={class:"muted"},F={key:0,class:"card",style:{"min-height":"80px"}},L={key:1,class:"card empty-state"},S={key:0},V={key:1},$={class:"grid"},j={class:"card lift train-card"},q={class:"row",style:{"justify-content":"space-between"}},D={class:"muted",style:{margin:"6px 0 12px"}},E={class:"row",style:{gap:"8px"}},G={class:"muted"},I={class:"primary",style:{width:"100%","margin-top":"12px"}},M={__name:"Training",setup(H){const c=h([]),u=h(!0);function v(a){return a.sales_kit&&a.sales_kit.productName||a.input&&a.input.product||""}function g(a){return a.personas||a.persona_count||0}return x(async()=>{try{const a=(await w.listGroups()).groups||[];c.value=d.isAdmin?a:a.filter(l=>l.status==="ready")}finally{u.value=!1}}),(a,l)=>{const p=C("router-link");return i(),r("div",null,[t("div",B,[t("h2",N,"🎯 "+e(s(o).t("training")),1),t("div",P,[s(d).isAdmin?(i(),_(p,{key:0,to:"/admin/new-group"},{default:m(()=>[t("button",z,"+ "+e(s(o).t("addProduct")),1)]),_:1})):y("",!0)])]),t("p",T,e(s(o).t("trainingSubtitle")),1),u.value?(i(),r("div",F,[...l[0]||(l[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):c.value.length===0?(i(),r("div",L,[t("strong",null,e(s(o).t("noTraining")),1),s(d).isAdmin?(i(),r("span",S,'Click "'+e(s(o).t("addProduct"))+'" to create a persona group.',1)):(i(),r("span",V,"Ask an admin to create a persona group first."))])):y("",!0),t("div",$,[(i(!0),r(b,null,A(c.value,n=>(i(),_(p,{key:n.id,to:s(d).isAdmin?`/admin/groups/${n.id}/edit`:`/groups/${n.id}/personas`,style:{"text-decoration":"none"}},{default:m(()=>[t("div",j,[t("div",q,[t("strong",null,e(n.title),1),t("span",{class:f(["badge",n.status==="ready"?"ready":"draft"])},e(n.status),3)]),t("div",D,e(v(n)),1),t("div",E,[t("span",{class:f(["badge",n.channel||"line"])},e(n.channel||"line"),3),t("span",G,e(g(n))+" "+e(s(o).t("personas").toLowerCase()),1)]),t("button",I,e(s(d).isAdmin?n.status==="ready"?s(o).t("managePersonas"):s(o).t("analyze"):s(o).t("selectPersona")),1)])]),_:2},1032,["to"]))),128))])])}}},K=k(M,[["__scopeId","data-v-901c9d3d"]]);export{K as default}; diff --git a/frontend/dist/assets/Training-CeWRER6W.css b/frontend/dist/assets/Training-CeWRER6W.css new file mode 100644 index 0000000..44fb63e --- /dev/null +++ b/frontend/dist/assets/Training-CeWRER6W.css @@ -0,0 +1 @@ +.grid[data-v-1e5bd92b]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.train-card[data-v-1e5bd92b]{display:flex;flex-direction:column;height:100%}.badge.ready[data-v-1e5bd92b]{background:#dcfce7;color:#166534}.badge.draft[data-v-1e5bd92b]{background:#fef9c3;color:#854d0e}button.soft[data-v-1e5bd92b]{background:#f1f3f9;border-color:transparent}.badge.facebook[data-v-1e5bd92b]{background:#e0f2fe;color:#0369a1}.badge.line[data-v-1e5bd92b]{background:#dcfce7;color:#15803d} diff --git a/frontend/dist/assets/arrow-left-BoUMQ_f_.js b/frontend/dist/assets/arrow-left-BoUMQ_f_.js new file mode 100644 index 0000000..bd5e1f0 --- /dev/null +++ b/frontend/dist/assets/arrow-left-BoUMQ_f_.js @@ -0,0 +1,6 @@ +import{k as e}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t=e("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);export{t as A}; diff --git a/frontend/dist/assets/index-BhdfH8-z.js b/frontend/dist/assets/index-BhdfH8-z.js deleted file mode 100644 index 90c9c41..0000000 --- a/frontend/dist/assets/index-BhdfH8-z.js +++ /dev/null @@ -1,27 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DpLtB9t4.js","assets/Login-D3svPLnW.css","assets/Setup-Ax3Eo5U7.js","assets/Setup-BdS_6JlN.css","assets/Analytics-D85JjGgM.js","assets/Analytics-Pg5dwyd7.css","assets/MyBoard-DT8KV0ES.js","assets/MyBoard-CDLgMRNi.css","assets/Training-CIWgzyIG.js","assets/Training-BcDA5IbA.css","assets/Personas-ujsGrehm.js","assets/Personas-Be_DU4st.css","assets/Chat-COdP9j9f.js","assets/Chat-D9rUobmy.css","assets/Settings-DagQxl_z.js","assets/Settings-y28ROmym.css","assets/GroupBuilder-BtLOuOw5.js","assets/GroupBuilder-B8gqmNUJ.css","assets/GroupEdit-CykIW85w.js","assets/GroupEdit-b5HdCSuv.css","assets/AdminUsers-K3vzxj9L.js","assets/AdminUsers-e5df29OL.css"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** -* @vue/shared v3.5.41 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Us(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},Ut=[],ze=()=>{},oi=()=>!1,Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,$=(e,t)=>Io.call(e,t),V=Array.isArray,Bt=e=>En(e)==="[object Map]",Yt=e=>En(e)==="[object Set]",cr=e=>En(e)==="[object Date]",B=e=>typeof e=="function",se=e=>typeof e=="string",Ye=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",li=e=>(q(e)||B(e))&&B(e.then)&&B(e.catch),ci=Object.prototype.toString,En=e=>ci.call(e),No=e=>En(e).slice(8,-1),ai=e=>En(e)==="[object Object]",js=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Do=/-\w/g,ve=$n(e=>e.replace(Do,t=>t.slice(1).toUpperCase())),Mo=/\B([A-Z])/g,vt=$n(e=>e.replace(Mo,"-$1").toLowerCase()),qn=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),is=$n(e=>e?`on${qn(e)}`:""),qe=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ar;const Yn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gs(e){if(V(e)){const t={};for(let n=0;n{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(se(e))t=e;else if(V(e))for(let n=0;n_t(n,t))}const di=e=>!!(e&&e.__v_isRef===!0),wt=e=>se(e)?e:e==null?"":V(e)||q(e)&&(e.toString===ci||!B(e.toString))?di(e)?wt(e.value):JSON.stringify(e,hi,2):String(e),hi=(e,t)=>di(t)?hi(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[os(s,i)+" =>"]=r,n),{})}:Yt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>os(n))}:Ye(t)?os(t):q(t)&&!V(t)&&!ai(t)?String(t):t,os=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.41 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ue;class Go{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ue&&(ue.active?(this.parent=ue,this.index=(ue.scopes||(ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(ue===this)ue=this.prevScope;else{let t=ue;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cn;){let t=cn;for(cn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function _i(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),$s(s),Ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function As(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!As(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Ie;Z=e,Ie=!0;try{_i(e);const r=e.fn(e._value);(t.version===0||qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Z=n,Ie=s,yi(e),e.flags&=-3}}function $s(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)$s(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ie=!0;const bi=[];function ot(){bi.push(Ie),Ie=!1}function lt(){const e=bi.pop();Ie=e===void 0?!0:e}function ur(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let pn=0;class Wo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Z||!Ie||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new Wo(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,Ei(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=s)}return n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){Ks();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ws()}}}function Ei(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ei(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ws=new WeakMap,Pt=Symbol(""),Rs=Symbol(""),gn=Symbol("");function de(e,t,n){if(Ie&&Z){let s=ws.get(e);s||ws.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new qs),r.map=s,r.key=n),r.track()}}function st(e,t,n,s,r,i){const o=ws.get(e);if(!o){pn++;return}const l=c=>{c&&c.trigger()};if(Ks(),t==="clear")o.forEach(l);else{const c=V(e),f=c&&js(n);if(c&&n==="length"){const u=Number(s);o.forEach((h,g)=>{(g==="length"||g===gn||!Ye(g)&&g>=u)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(gn)),t){case"add":c?f&&l(o.get("length")):(l(o.get(Pt)),Bt(e)&&l(o.get(Rs)));break;case"delete":c||(l(o.get(Pt)),Bt(e)&&l(o.get(Rs)));break;case"set":Bt(e)&&l(o.get(Pt));break}}Ws()}function Mt(e){const t=W(e);return t===e?t:(de(t,"iterate",gn),Ce(e)?t:t.map(De))}function Jn(e){return de(e=W(e),"iterate",gn),e}function We(e,t){return ct(e)?Kt(Ct(e)?De(t):t):De(t)}const $o={__proto__:null,[Symbol.iterator](){return cs(this,Symbol.iterator,e=>We(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>V(t)?Mt(t):t))},entries(){return cs(this,"entries",e=>(e[1]=We(this,e[1]),e))},every(e,t){return Qe(this,"every",e,t,void 0,arguments)},filter(e,t){return Qe(this,"filter",e,t,n=>n.map(s=>We(this,s)),arguments)},find(e,t){return Qe(this,"find",e,t,n=>We(this,n),arguments)},findIndex(e,t){return Qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qe(this,"findLast",e,t,n=>We(this,n),arguments)},findLastIndex(e,t){return Qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return as(this,"includes",e)},indexOf(...e){return as(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return as(this,"lastIndexOf",e)},map(e,t){return Qe(this,"map",e,t,void 0,arguments)},pop(){return Zt(this,"pop")},push(...e){return Zt(this,"push",e)},reduce(e,...t){return fr(this,"reduce",e,t)},reduceRight(e,...t){return fr(this,"reduceRight",e,t)},shift(){return Zt(this,"shift")},some(e,t){return Qe(this,"some",e,t,void 0,arguments)},splice(...e){return Zt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return Zt(this,"unshift",e)},values(){return cs(this,"values",e=>We(this,e))}};function cs(e,t,n){const s=Jn(e),r=s[t]();return s!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const qo=Array.prototype;function Qe(e,t,n,s,r,i){const o=Jn(e),l=o!==e&&!Ce(e),c=o[t];if(c!==qo[t]){const h=c.apply(e,i);return l?De(h):h}let f=n;o!==e&&(l?f=function(h,g){return n.call(this,We(e,h),g,e)}:n.length>2&&(f=function(h,g){return n.call(this,h,g,e)}));const u=c.call(o,f,s);return l&&r?r(u):u}function fr(e,t,n,s){const r=Jn(e),i=r!==e&&!Ce(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(f,u,h){return l&&(l=!1,f=We(e,f)),n.call(this,f,We(e,u),h,e)}):n.length>3&&(o=function(f,u,h){return n.call(this,f,u,h,e)}));const c=r[t](o,...s);return l?We(e,c):c}function as(e,t,n){const s=W(e);de(s,"iterate",gn);const r=s[t](...n);return(r===-1||r===!1)&&Js(n[0])?(n[0]=W(n[0]),s[t](...n)):r}function Zt(e,t,n=[]){ot(),Ks();const s=W(e)[t].apply(e,n);return Ws(),lt(),s}const zo=Us("__proto__,__v_isRef,__isVue"),Si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function Yo(e){Ye(e)||(e=String(e));const t=W(this);return de(t,"has",e),t.hasOwnProperty(e)}class Ai{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?il:Ti:i?xi:Ri).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=V(t);if(!r){let c;if(o&&(c=$o[n]))return c;if(n==="hasOwnProperty")return Yo}const l=Reflect.get(t,n,pe(t)?t:s);if((Ye(n)?Si.has(n):zo(n))||(r||de(t,"get",n),i))return l;if(pe(l)){const c=o&&js(n)?l:l.value;return r&&q(c)?Ts(c):c}return q(l)?r?Ts(l):Jt(l):l}}class wi extends Ai{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=V(t)&&js(n);if(!this._isShallow){const f=ct(i);if(!Ce(s)&&!ct(s)&&(i=W(i),s=W(s)),!o&&pe(i)&&!pe(s))return f||(i.value=s),!0}const l=o?Number(n)e,wn=e=>Reflect.getPrototypeOf(e);function el(e,t,n){return function(...s){const r=this.__v_raw,i=W(r),o=Bt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),u=n?xs:t?Kt:De;return!t&&de(i,"iterate",c?Rs:Pt),fe(Object.create(f),{next(){const{value:h,done:g}=f.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}}})}}function Rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tl(e,t){const n={get(r){const i=this.__v_raw,o=W(i),l=W(r);e||(qe(r,l)&&de(o,"get",r),de(o,"get",l));const{has:c}=wn(o),f=t?xs:e?Kt:De;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&de(W(r),"iterate",Pt),r.size},has(r){const i=this.__v_raw,o=W(i),l=W(r);return e||(qe(r,l)&&de(o,"has",r),de(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=W(l),f=t?xs:e?Kt:De;return!e&&de(c,"iterate",Pt),l.forEach((u,h)=>r.call(i,f(u),f(h),o))}};return fe(n,e?{add:Rn("add"),set:Rn("set"),delete:Rn("delete"),clear:Rn("clear")}:{add(r){const i=W(this),o=wn(i),l=W(r),c=!t&&!Ce(r)&&!ct(r)?l:r;return o.has.call(i,c)||qe(r,c)&&o.has.call(i,r)||qe(l,c)&&o.has.call(i,l)||(i.add(c),st(i,"add",c,c)),this},set(r,i){!t&&!Ce(i)&&!ct(i)&&(i=W(i));const o=W(this),{has:l,get:c}=wn(o);let f=l.call(o,r);f||(r=W(r),f=l.call(o,r));const u=c.call(o,r);return o.set(r,i),f?qe(i,u)&&st(o,"set",r,i):st(o,"add",r,i),this},delete(r){const i=W(this),{has:o,get:l}=wn(i);let c=o.call(i,r);c||(r=W(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&st(i,"delete",r,void 0),f},clear(){const r=W(this),i=r.size!==0,o=r.clear();return i&&st(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=el(r,e,t)}),n}function zs(e,t){const n=tl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get($(n,r)&&r in s?n:s,r,i)}const nl={get:zs(!1,!1)},sl={get:zs(!1,!0)},rl={get:zs(!0,!1)};const Ri=new WeakMap,xi=new WeakMap,Ti=new WeakMap,il=new WeakMap;function ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jt(e){return ct(e)?e:Ys(e,!1,Qo,nl,Ri)}function Pi(e){return Ys(e,!1,Zo,sl,xi)}function Ts(e){return Ys(e,!0,Xo,rl,Ti)}function Ys(e,t,n,s,r){if(!q(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=ol(No(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Ct(e){return ct(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ct(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function Js(e){return e?!!e.__v_raw:!1}function W(e){const t=e&&e.__v_raw;return t?W(t):e}function ll(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&ui(e,"__v_skip",!0),e}const De=e=>q(e)?Jt(e):e,Kt=e=>q(e)?Ts(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function cl(e){return Ci(e,!1)}function al(e){return Ci(e,!0)}function Ci(e,t){return pe(e)?e:new ul(e,t)}class ul{constructor(t,n){this.dep=new qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:W(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ce(t)||ct(t);t=s?t:W(t),qe(t,n)&&(this._rawValue=t,this._value=s?t:De(t),this.dep.trigger())}}function _e(e){return pe(e)?e.value:e}const fl={get:(e,t,n)=>t==="__v_raw"?e:_e(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return pe(r)&&!pe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Oi(e){return Ct(e)?e:new Proxy(e,fl)}class dl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return mi(this,!0),!0}get value(){const t=this.dep.track();return vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hl(e,t,n=!1){let s,r;return B(e)?s=e:(s=e.get,r=e.set),new dl(s,r,n)}const xn={},Mn=new WeakMap;let Rt;function pl(e,t=!1,n=Rt){if(n){let s=Mn.get(n);s||Mn.set(n,s=[]),s.push(e)}}function gl(e,t,n=X){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=O=>r?O:Ce(O)||r===!1||r===0?rt(O,1):rt(O);let u,h,g,m,I=!1,R=!1;if(pe(e)?(h=()=>e.value,I=Ce(e)):Ct(e)?(h=()=>f(e),I=!0):V(e)?(R=!0,I=e.some(O=>Ct(O)||Ce(O)),h=()=>e.map(O=>{if(pe(O))return O.value;if(Ct(O))return f(O);if(B(O))return c?c(O,2):O()})):B(e)?t?h=c?()=>c(e,2):e:h=()=>{if(g){ot();try{g()}finally{lt()}}const O=Rt;Rt=u;try{return c?c(e,3,[m]):e(m)}finally{Rt=O}}:h=ze,t&&r){const O=h,J=r===!0?1/0:r;h=()=>rt(O(),J)}const U=ko(),F=()=>{u.stop(),U&&U.active&&Bs(U.effects,u)};if(i&&t){const O=t;t=(...J)=>{const ie=O(...J);return F(),ie}}let P=R?new Array(e.length).fill(xn):xn;const N=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const J=u.run();if(O||r||I||(R?J.some((ie,ee)=>qe(ie,P[ee])):qe(J,P))){g&&g();const ie=Rt;Rt=u;try{const ee=[J,P===xn?void 0:R&&P[0]===xn?[]:P,m];P=J,c?c(t,3,ee):t(...ee)}finally{Rt=ie}}}else u.run()};return l&&l(N),u=new pi(h),u.scheduler=o?()=>o(N,!1):N,m=O=>pl(O,!1,u),g=u.onStop=()=>{const O=Mn.get(u);if(O){if(c)c(O,4);else for(const J of O)J();Mn.delete(u)}},t?s?N(!0):P=u.run():o?o(N.bind(null,!0),!0):u.run(),F.pause=u.pause.bind(u),F.resume=u.resume.bind(u),F.stop=F,F}function rt(e,t=1/0,n){if(t<=0||!q(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,pe(e))rt(e.value,t,n);else if(V(e))for(let s=0;s{rt(s,t,n)});else if(ai(e)){for(const s in e)rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rt(e[s],t,n)}return e}/** -* @vue/runtime-core v3.5.41 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Sn(e,t,n,s){try{return s?e(...s):e()}catch(r){Qn(r,t,n)}}function Me(e,t,n,s){if(B(e)){const r=Sn(e,t,n,s);return r&&li(r)&&r.catch(i=>{Qn(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i>>1,r=ye[s],i=mn(r);i=mn(n)?ye.push(e):ye.splice(_l(t),0,e),e.flags|=1,Ni()}}function Ni(){Ln||(Ln=Ii.then(Mi))}function yl(e){if(!V(e))gt&&e.id===-1?gt.splice(Lt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1);else for(let t=0;tmn(n)-mn(s));if(Gt.length=0,gt){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Ke=0;Ke{s._d&&Un(-1);const i=Vn(t),o=Ot.length;let l;try{l=e(...r)}finally{for(let c=Ot.length;c>o;c--)lo();Vn(i),s._d&&Un(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Su(e,t){if(Ae===null)return e;const n=ns(Ae),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&B(t)?t.call(s&&s.proxy):t}}const vl=Symbol.for("v-scx"),bl=()=>Ne(vl);function In(e,t,n){return Vi(e,t,n)}function Vi(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=fe({},n),c=t&&s||!t&&i!=="post";let f;if(vn){if(i==="sync"){const m=bl();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ze,m.resume=ze,m.pause=ze,m}}const u=he;l.call=(m,I,R)=>Me(m,u,I,R);let h=!1;i==="post"?l.scheduler=m=>{Ee(m,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():Xs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const g=gl(e,t,l);return vn&&(f?f.push(g):c&&g()),g}function El(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Fi(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=An(this),l=Vi(r,i.bind(s),n);return o(),l}function Fi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,us=Symbol("_leaveCb");function Al(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==at){t=n;break}}return t}function Hi(e){if(!er(e))return Xn(e.type)&&e.children?Al(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&B(n.default))return n.default()}}function Zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Zs(Xn(n.type)&&Hi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ui(e,t){return B(e)?fe({name:e.name},t,{setup:e}):e}function Bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Fn=new WeakMap;function un(e,t,n,s,r=!1){if(V(e)){e.forEach((R,U)=>un(R,t&&(V(t)?t[U]:t),n,s,r));return}if(fn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&un(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ns(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,u=l.refs===X?l.refs={}:l.refs,h=l.setupState,g=W(h),m=h===X?oi:R=>hr(u,R)?!1:$(g,R),I=(R,U)=>!(U&&hr(u,U));if(f!=null&&f!==c){if(pr(t),se(f))u[f]=null,m(f)&&(h[f]=null);else if(pe(f)){const R=t;I(f,R.k)&&(f.value=null),R.k&&(u[R.k]=null)}}if(B(c))Sn(c,l,12,[o,u]);else{const R=se(c),U=pe(c);if(R||U){const F=()=>{if(e.f){const P=R?m(c)?h[c]:u[c]:I()||!e.k?c.value:u[e.k];if(r)V(P)&&Bs(P,i);else if(V(P))P.includes(i)||P.push(i);else if(R)u[c]=[i],m(c)&&(h[c]=u[c]);else{const N=[i];I(c,e.k)&&(c.value=N),e.k&&(u[e.k]=N)}}else R?(u[c]=o,m(c)&&(h[c]=o)):U&&(I(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){const P=()=>{F(),Fn.delete(e)};P.id=-1,Fn.set(e,P),Ee(P,n)}else pr(e),F()}}}function pr(e){const t=Fn.get(e);t&&(t.flags|=8,Fn.delete(e))}Yn().requestIdleCallback;Yn().cancelIdleCallback;const fn=e=>!!e.type.__asyncLoader,er=e=>e.type.__isKeepAlive;function wl(e,t){ji(e,"a",t)}function Rl(e,t){ji(e,"da",t)}function ji(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)er(r.parent.vnode)&&xl(s,t,n,r),r=r.parent}}function xl(e,t,n,s){const r=Zn(t,e,s,!0);ki(()=>{Bs(s[t],r)},n)}function Zn(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ot();const l=An(n),c=Me(t,n,e,o);return l(),lt(),c});return s?r.unshift(i):r.push(i),i}}const ut=e=>(t,n=he)=>{(!vn||e==="sp")&&Zn(e,(...s)=>t(...s),n)},Tl=ut("bm"),Gi=ut("m"),Pl=ut("bu"),Cl=ut("u"),Ol=ut("bum"),ki=ut("um"),Il=ut("sp"),Nl=ut("rtg"),Dl=ut("rtc");function Ml(e,t=he){Zn("ec",e,t)}const Ll="components";function gr(e,t){return Fl(Ll,e,!0,t)||e}const Vl=Symbol.for("v-ndc");function Fl(e,t,n=!0,s=!1){const r=Ae||he;if(r){const i=r.type;{const l=Ec(i,!1);if(l&&(l===t||l===ve(t)||l===qn(ve(t))))return i}const o=mr(r[e]||i[e],t)||mr(r.appContext[e],t);return!o&&s?i:o}}function mr(e,t){return e&&(e[t]||e[ve(t)]||e[qn(ve(t))])}function Au(e,t,n,s){let r;const i=n,o=V(e);if(o||se(e)){const l=o&&Ct(e);let c=!1,f=!1;l&&(c=!Ce(e),f=ct(e),e=Jn(e)),r=new Array(e.length);for(let u=0,h=e.length;ut(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;ce?uo(e)?ns(e):Ps(e.parent):null,dn=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ps(e.parent),$root:e=>Ps(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wi(e),$forceUpdate:e=>e.f||(e.f=()=>{Xs(e.update)}),$nextTick:e=>e.n||(e.n=Qs.bind(e.proxy)),$watch:e=>El.bind(e)}),fs=(e,t)=>e!==X&&!e.__isScriptSetup&&$(e,t),Hl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(fs(s,t))return o[t]=1,s[t];if(r!==X&&$(r,t))return o[t]=2,r[t];if($(i,t))return o[t]=3,i[t];if(n!==X&&$(n,t))return o[t]=4,n[t];Cs&&(o[t]=0)}}const f=dn[t];let u,h;if(f)return t==="$attrs"&&de(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==X&&$(n,t))return o[t]=4,n[t];if(h=c.config.globalProperties,$(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return fs(r,t)?(r[t]=n,!0):s!==X&&$(s,t)?(s[t]=n,!0):$(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==X&&l[0]!=="$"&&$(e,l)||fs(t,l)||$(i,l)||$(s,l)||$(dn,l)||$(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _r(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function Ul(e){const t=Wi(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&yr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:u,beforeMount:h,mounted:g,beforeUpdate:m,updated:I,activated:R,deactivated:U,beforeDestroy:F,beforeUnmount:P,destroyed:N,unmounted:O,render:J,renderTracked:ie,renderTriggered:ee,errorCaptured:Ve,serverPrefetch:ft,expose:Fe,inheritAttrs:dt,components:bt,directives:He,filters:Qt}=t;if(f&&Bl(f,s,null),o)for(const z in o){const k=o[z];B(k)&&(s[z]=k.bind(n))}if(r){const z=r.call(n,n);q(z)&&(e.data=Jt(z))}if(Cs=!0,i)for(const z in i){const k=i[z],Je=B(k)?k.bind(n,n):B(k.get)?k.get.bind(n,n):ze,ht=!B(k)&&B(k.set)?k.set.bind(n):ze,Ue=Oe({get:Je,set:ht});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:be=>Ue.value=be})}if(l)for(const z in l)Ki(l[z],s,n,z);if(c){const z=B(c)?c.call(n):c;Reflect.ownKeys(z).forEach(k=>{On(k,z[k])})}u&&yr(u,e,"c");function le(z,k){V(k)?k.forEach(Je=>z(Je.bind(n))):k&&z(k.bind(n))}if(le(Tl,h),le(Gi,g),le(Pl,m),le(Cl,I),le(wl,R),le(Rl,U),le(Ml,Ve),le(Dl,ie),le(Nl,ee),le(Ol,P),le(ki,O),le(Il,ft),V(Fe))if(Fe.length){const z=e.exposed||(e.exposed={});Fe.forEach(k=>{Object.defineProperty(z,k,{get:()=>n[k],set:Je=>n[k]=Je,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===ze&&(e.render=J),dt!=null&&(e.inheritAttrs=dt),bt&&(e.components=bt),He&&(e.directives=He),ft&&Bi(e)}function Bl(e,t,n=ze){V(e)&&(e=Os(e));for(const s in e){const r=e[s];let i;q(r)?"default"in r?i=Ne(r.from||s,r.default,!0):i=Ne(r.from||s):i=Ne(r),pe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function yr(e,t,n){Me(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ki(e,t,n,s){let r=s.includes(".")?Fi(n,s):()=>n[s];if(se(e)){const i=t[e];B(i)&&In(r,i)}else if(B(e))In(r,e.bind(n));else if(q(e))if(V(e))e.forEach(i=>Ki(i,t,n,s));else{const i=B(e.handler)?e.handler.bind(n):t[e.handler];B(i)&&In(r,i,e)}}function Wi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>Hn(c,f,o,!0)),Hn(c,t,o)),q(t)&&i.set(t,c),c}function Hn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Hn(e,i,n,!0),r&&r.forEach(o=>Hn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=jl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const jl={data:vr,props:br,emits:br,methods:sn,computed:sn,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:sn,directives:sn,watch:kl,provide:vr,inject:Gl};function vr(e,t){return t?e?function(){return fe(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Gl(e,t){return sn(Os(e),Os(t))}function Os(e){if(V(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ve(t)}Modifiers`]||e[`${vt(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&$l(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>se(u)?u.trim():u)),o.number&&(r=n.map(zn)));let l,c=s[l=is(t)]||s[l=is(ve(t))];!c&&i&&(c=s[l=is(vt(t))]),c&&Me(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(f,e,6,r)}}const zl=new WeakMap;function qi(e,t,n=!1){const s=n?zl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!B(e)){const c=f=>{const u=qi(f,t,!0);u&&(l=!0,fe(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(q(e)&&s.set(e,null),null):(V(i)?i.forEach(c=>o[c]=null):fe(o,i),q(e)&&s.set(e,o),o)}function es(e,t){return!e||!Kn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,vt(t))||$(e,t))}function Er(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:u,props:h,data:g,setupState:m,ctx:I,inheritAttrs:R}=e,U=Vn(e);let F,P;try{if(n.shapeFlag&4){const O=r||s,J=O;F=$e(f.call(J,O,u,h,m,g,I)),P=l}else{const O=t;F=$e(O.length>1?O(h,{attrs:l,slots:o,emit:c}):O(h,null)),P=t.props?l:Yl(l)}}catch(O){Ot.length=0,Qn(O,e,1),F=ce(at)}let N=F;if(P&&R!==!1){const O=Object.keys(P),{shapeFlag:J}=N;O.length&&J&7&&(i&&O.some(Wn)&&(P=Jl(P,i)),N=Wt(N,P,!1,!0))}if(n.dirs&&(N=Wt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition){const O=Xn(N.type)&&Hi(N)||N;Zs(O,n.transition)}return F=N,Vn(U),F}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Jl=(e,t)=>{const n={};for(const s in e)(!Wn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ql(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Sr(s,o,f):!!o;if(c&8){const u=t.dynamicProps;for(let h=0;hObject.create(Yi),Qi=e=>Object.getPrototypeOf(e)===Yi;function Zl(e,t,n,s=!1){const r={},i=Ji();e.propsDefaults=Object.create(null),Xi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Pi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function ec(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=W(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,m]=Zi(h,t,!0);fe(o,g),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return q(e)&&s.set(e,Ut),Ut;if(V(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",nr=e=>V(e)?e.map($e):[$e(e)],nc=(e,t,n)=>{if(t._n)return t;const s=Vt((...r)=>nr(t(...r)),n);return s._c=!1,s},eo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(tr(r))continue;const i=e[r];if(B(i))t[r]=nc(r,i,s);else if(i!=null){const o=nr(i);t[r]=()=>o}}},to=(e,t)=>{const n=nr(t);e.slots.default=()=>n},no=(e,t,n)=>{for(const s in t)(n||!tr(s))&&(e[s]=t[s])},sc=(e,t,n)=>{const s=e.slots=Ji();if(e.vnode.shapeFlag&32){const r=t._;r?(no(s,t,n),n&&ui(s,"_",r,!0)):eo(t,s)}else t&&to(e,t)},rc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:no(r,t,n):(i=!t.$stable,eo(t,r)),o=t}else t&&(to(e,t),o={default:1});if(i)for(const l in r)!tr(l)&&o[l]==null&&delete r[l]},Ee=ac;function ic(e){return oc(e)}function oc(e,t){const n=Yn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:u,parentNode:h,nextSibling:g,setScopeId:m=ze,insertStaticContent:I}=e,R=(a,d,p,y=null,b=null,_=null,w=void 0,A=null,S=!!d.dynamicChildren)=>{if(a===d)return;a&&!en(a,d)&&(y=v(a),be(a,b,_,!0),a=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:E,ref:L,shapeFlag:T}=d;switch(E){case ts:U(a,d,p,y);break;case at:F(a,d,p,y);break;case Nn:a==null&&P(d,p,y,w);break;case tt:bt(a,d,p,y,b,_,w,A,S);break;default:T&1?J(a,d,p,y,b,_,w,A,S):T&6?He(a,d,p,y,b,_,w,A,S):(T&64||T&128)&&E.process(a,d,p,y,b,_,w,A,S,D)}L!=null&&b?un(L,a&&a.ref,_,d||a,!d):L==null&&a&&a.ref!=null&&un(a.ref,null,_,a,!0)},U=(a,d,p,y)=>{if(a==null)s(d.el=l(d.children),p,y);else{const b=d.el=a.el;d.children!==a.children&&f(b,d.children)}},F=(a,d,p,y)=>{a==null?s(d.el=c(d.children||""),p,y):d.el=a.el},P=(a,d,p,y)=>{[a.el,a.anchor]=I(a.children,d,p,y,a.el,a.anchor)},N=({el:a,anchor:d},p,y)=>{let b;for(;a&&a!==d;)b=g(a),s(a,p,y),a=b;s(d,p,y)},O=({el:a,anchor:d})=>{let p;for(;a&&a!==d;)p=g(a),r(a),a=p;r(d)},J=(a,d,p,y,b,_,w,A,S)=>{if(d.type==="svg"?w="svg":d.type==="math"&&(w="mathml"),a==null)ie(d,p,y,b,_,w,A,S);else{const E=a.el&&a.el._isVueCE?a.el:null;try{E&&E._beginPatch(),ft(a,d,b,_,w,A,S)}finally{E&&E._endPatch()}}},ie=(a,d,p,y,b,_,w,A)=>{let S,E;const{props:L,shapeFlag:T,transition:M,dirs:H}=a;if(S=a.el=o(a.type,_,L&&L.is,L),T&8?u(S,a.children):T&16&&Ve(a.children,S,null,y,b,ds(a,_),w,A),H&&St(a,null,y,"created"),ee(S,a,a.scopeId,w,y),L){for(const Q in L)Q!=="value"&&!ln(Q)&&i(S,Q,null,L[Q],_,y);"value"in L&&i(S,"value",null,L.value,_),(E=L.onVnodeBeforeMount)&&ke(E,y,a)}H&&St(a,null,y,"beforeMount");const G=lc(b,M);G&&M.beforeEnter(S),s(S,d,p),((E=L&&L.onVnodeMounted)||G||H)&&Ee(()=>{try{E&&ke(E,y,a),G&&M.enter(S),H&&St(a,null,y,"mounted")}finally{}},b)},ee=(a,d,p,y,b)=>{if(p&&m(a,p),y)for(let _=0;_{for(let E=S;E{const A=d.el=a.el;let{patchFlag:S,dynamicChildren:E,dirs:L}=d;S|=a.patchFlag&16;const T=a.props||X,M=d.props||X;let H;if(p&&At(p,!1),(H=M.onVnodeBeforeUpdate)&&ke(H,p,d,a),L&&St(d,a,p,"beforeUpdate"),p&&At(p,!0),E&&(!a.dynamicChildren||a.dynamicChildren.length!==E.length)&&(S=0,w=!1,E=null),(T.innerHTML&&M.innerHTML==null||T.textContent&&M.textContent==null)&&u(A,""),E?Fe(a.dynamicChildren,E,A,p,y,ds(d,b),_):w||k(a,d,A,null,p,y,ds(d,b),_,!1),S>0){if(S&16)dt(A,T,M,p,b);else if(S&2&&T.class!==M.class&&i(A,"class",null,M.class,b),S&4&&i(A,"style",T.style,M.style,b),S&8){const G=d.dynamicProps;for(let Q=0;Q{H&&ke(H,p,d,a),L&&St(d,a,p,"updated")},y)},Fe=(a,d,p,y,b,_,w)=>{for(let A=0;A{if(d!==p){if(d!==X)for(const _ in d)!ln(_)&&!(_ in p)&&i(a,_,d[_],null,b,y);for(const _ in p){if(ln(_))continue;const w=p[_],A=d[_];w!==A&&_!=="value"&&i(a,_,A,w,b,y)}"value"in p&&i(a,"value",d.value,p.value,b)}},bt=(a,d,p,y,b,_,w,A,S)=>{const E=d.el=a?a.el:l(""),L=d.anchor=a?a.anchor:l("");let{patchFlag:T,dynamicChildren:M,slotScopeIds:H}=d;H&&(A=A?A.concat(H):H),a==null?(s(E,p,y),s(L,p,y),Ve(d.children||[],p,L,b,_,w,A,S)):T>0&&T&64&&M&&a.dynamicChildren&&a.dynamicChildren.length===M.length?(Fe(a.dynamicChildren,M,p,b,_,w,A),(d.key!=null||b&&d===b.subTree)&&so(a,d,!0)):k(a,d,p,L,b,_,w,A,S)},He=(a,d,p,y,b,_,w,A,S)=>{d.slotScopeIds=A,a==null?d.shapeFlag&512?b.ctx.activate(d,p,y,w,S):Qt(d,p,y,b,_,w,S):It(a,d,S)},Qt=(a,d,p,y,b,_,w)=>{const A=a.component=gc(a,y,b);if(er(a)&&(A.ctx.renderer=D),_c(A,!1,w),A.asyncDep){if(b&&b.registerDep(A,le,w),!a.el){const S=A.subTree=ce(at);F(null,S,d,p),a.placeholder=S.el}}else le(A,a,d,p,b,_,w)},It=(a,d,p)=>{const y=d.component=a.component;if(Ql(a,d,p))if(y.asyncDep&&!y.asyncResolved){z(y,d,p);return}else y.next=d,y.update();else d.el=a.el,y.vnode=d},le=(a,d,p,y,b,_,w)=>{const A=()=>{if(a.isMounted){let{next:T,bu:M,u:H,parent:G,vnode:Q}=a;{const je=ro(a);if(je){T&&(T.el=Q.el,z(a,T,w)),je.asyncDep.then(()=>{Ee(()=>{a.isUnmounted||E()},b)});return}}let Y=T,re;At(a,!1),T?(T.el=Q.el,z(a,T,w)):T=Q,M&&Cn(M),(re=T.props&&T.props.onVnodeBeforeUpdate)&&ke(re,G,T,Q),At(a,!0);const ae=Er(a),Be=a.subTree;a.subTree=ae,R(Be,ae,h(Be.el),v(Be),a,b,_),T.el=ae.el,Y===null&&Xl(a,ae.el),H&&Ee(H,b),(re=T.props&&T.props.onVnodeUpdated)&&Ee(()=>ke(re,G,T,Q),b)}else{let T;const{el:M,props:H}=d,{bm:G,m:Q,parent:Y,root:re,type:ae}=a,Be=fn(d);At(a,!1),G&&Cn(G),!Be&&(T=H&&H.onVnodeBeforeMount)&&ke(T,Y,d),At(a,!0);{re.ce&&re.ce._hasShadowRoot()&&re.ce._injectChildStyle(ae,a.parent?a.parent.type:void 0);const je=a.subTree=Er(a);R(null,je,p,y,a,b,_),d.el=je.el}if(Q&&Ee(Q,b),!Be&&(T=H&&H.onVnodeMounted)){const je=d;Ee(()=>ke(T,Y,je),b)}(d.shapeFlag&256||Y&&fn(Y.vnode)&&Y.vnode.shapeFlag&256)&&a.a&&Ee(a.a,b),a.isMounted=!0,d=p=y=null}};a.scope.on();const S=a.effect=new pi(A);a.scope.off();const E=a.update=S.run.bind(S),L=a.job=S.runIfDirty.bind(S);L.i=a,L.id=a.uid,S.scheduler=()=>Xs(L),At(a,!0),E()},z=(a,d,p)=>{d.component=a;const y=a.vnode.props;a.vnode=d,a.next=null,ec(a,d.props,y,p),rc(a,d.children,p),ot(),dr(a),lt()},k=(a,d,p,y,b,_,w,A,S=!1)=>{const E=a&&a.children,L=a?a.shapeFlag:0,T=d.children,{patchFlag:M,shapeFlag:H}=d;if(M>0){if(M&128){ht(E,T,p,y,b,_,w,A,S);return}else if(M&256){Je(E,T,p,y,b,_,w,A,S);return}}H&8?(L&16&&xe(E,b,_),T!==E&&u(p,T)):L&16?H&16?ht(E,T,p,y,b,_,w,A,S):xe(E,b,_,!0):(L&8&&u(p,""),H&16&&Ve(T,p,y,b,_,w,A,S))},Je=(a,d,p,y,b,_,w,A,S)=>{a=a||Ut,d=d||Ut;const E=a.length,L=d.length,T=Math.min(E,L);let M;for(M=0;ML?xe(a,b,_,!0,!1,T):Ve(d,p,y,b,_,w,A,S,T)},ht=(a,d,p,y,b,_,w,A,S)=>{let E=0;const L=d.length;let T=a.length-1,M=L-1;for(;E<=T&&E<=M;){const H=a[E],G=d[E]=S?nt(d[E]):$e(d[E]);if(en(H,G))R(H,G,p,null,b,_,w,A,S);else break;E++}for(;E<=T&&E<=M;){const H=a[T],G=d[M]=S?nt(d[M]):$e(d[M]);if(en(H,G))R(H,G,p,null,b,_,w,A,S);else break;T--,M--}if(E>T){if(E<=M){const H=M+1,G=HM)for(;E<=T;)be(a[E],b,_,!0),E++;else{const H=E,G=E,Q=new Map;for(E=G;E<=M;E++){const Se=d[E]=S?nt(d[E]):$e(d[E]);Se.key!=null&&Q.set(Se.key,E)}let Y,re=0;const ae=M-G+1;let Be=!1,je=0;const Xt=new Array(ae);for(E=0;E=ae){be(Se,b,_,!0);continue}let Ge;if(Se.key!=null)Ge=Q.get(Se.key);else for(Y=G;Y<=M;Y++)if(Xt[Y-G]===0&&en(Se,d[Y])){Ge=Y;break}Ge===void 0?be(Se,b,_,!0):(Xt[Ge-G]=E+1,Ge>=je?je=Ge:Be=!0,R(Se,d[Ge],p,null,b,_,w,A,S),re++)}const ir=Be?cc(Xt):Ut;for(Y=ir.length-1,E=ae-1;E>=0;E--){const Se=G+E,Ge=d[Se],or=d[Se+1],lr=Se+1{const{el:_,type:w,transition:A,children:S,shapeFlag:E}=a;if(E&6){Ue(a.component.subTree,d,p,y);return}if(E&128){a.suspense.move(d,p,y);return}if(E&64){w.move(a,d,p,D);return}if(w===tt){s(_,d,p);for(let T=0;TA.enter(_),b));else{const{leave:T,delayLeave:M,afterLeave:H}=A,G=()=>{a.ctx.isUnmounted?r(_):s(_,d,p)},Q=()=>{const Y=_._isLeaving||!!_[us];_._isLeaving&&_[us](!0),A.persisted&&!Y?G():T(_,()=>{G(),H&&H()})};M?M(_,G,Q):Q()}else s(_,d,p)},be=(a,d,p,y=!1,b=!1)=>{const{type:_,props:w,ref:A,children:S,dynamicChildren:E,shapeFlag:L,patchFlag:T,dirs:M,cacheIndex:H,memo:G}=a;if(T===-2&&(b=!1),A!=null&&(ot(),un(A,null,p,a,!0),lt()),H!=null&&(d.renderCache[H]=void 0),L&256){d.ctx.deactivate(a);return}const Q=L&1&&M,Y=!fn(a);let re;if(Y&&(re=w&&w.onVnodeBeforeUnmount)&&ke(re,d,a),L&6)Et(a.component,p,y);else{if(L&128){a.suspense.unmount(p,y);return}Q&&St(a,null,d,"beforeUnmount"),L&64?a.type.remove(a,d,p,D,y):E&&!E.hasOnce&&(_!==tt||T>0&&T&64)?xe(E,d,p,!1,!0):(_===tt&&T&384||!b&&L&16)&&xe(S,d,p),y&&Nt(a)}const ae=G!=null&&H==null;(Y&&(re=w&&w.onVnodeUnmounted)||Q||ae)&&Ee(()=>{re&&ke(re,d,a),Q&&St(a,null,d,"unmounted"),ae&&(a.el=null)},p)},Nt=a=>{const{type:d,el:p,anchor:y,transition:b}=a;if(d===tt){Dt(p,y);return}if(d===Nn){O(a);return}const _=()=>{r(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:w,delayLeave:A}=b,S=()=>w(p,_);A?A(a.el,_,S):S()}else _()},Dt=(a,d)=>{let p;for(;a!==d;)p=g(a),r(a),a=p;r(d)},Et=(a,d,p)=>{const{bum:y,scope:b,job:_,subTree:w,um:A,m:S,a:E}=a;wr(S),wr(E),y&&Cn(y),b.stop(),_&&(_.flags|=8,be(w,a,d,p)),A&&Ee(A,d),Ee(()=>{a.isUnmounted=!0},d)},xe=(a,d,p,y=!1,b=!1,_=0)=>{for(let w=_;w{if(a.shapeFlag&6)return v(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=g(a.anchor||a.el),p=d&&d[Sl];return p?g(p):d};let C=!1;const x=(a,d,p)=>{let y;a==null?d._vnode&&(be(d._vnode,null,null,!0),y=d._vnode.component):R(d._vnode||null,a,d,null,null,null,p),d._vnode=a,C||(C=!0,dr(y),Di(),C=!1)},D={p:R,um:be,m:Ue,r:Nt,mt:Qt,mc:Ve,pc:k,pbc:Fe,n:v,o:e};return{render:x,hydrate:void 0,createApp:Wl(x)}}function ds({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function At({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function so(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ro(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ro(t)}function wr(e){if(e)for(let t=0;te.__isSuspense;function ac(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):yl(e)}const tt=Symbol.for("v-fgt"),ts=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Nn=Symbol.for("v-stc"),Ot=[];let we=null;function rn(e=!1){Ot.push(we=e?null:[])}function lo(){Ot.pop(),we=Ot[Ot.length-1]||null}let _n=1;function Un(e,t=!1){_n+=e,e<0&&we&&t&&(we.hasOnce=!0)}function co(e){return e.dynamicChildren=_n>0?we||Ut:null,lo(),_n>0&&we&&we.push(e),e}function Rr(e,t,n,s,r,i){return co(xt(e,t,n,s,r,i,!0))}function Ns(e,t,n,s,r){return co(ce(e,t,n,s,r,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const ao=({key:e})=>e??null,Dn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||pe(e)||B(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function xt(e,t=null,n=null,s=0,r=null,i=e===tt?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ao(t),ref:t&&Dn(t),scopeId:Li,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ae};return l?(jn(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),_n>0&&!o&&we&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&we.push(c),c}const ce=uc;function uc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Vl)&&(e=at),Bn(e)){const l=Wt(e,t,!0);return n&&jn(l,n),_n>0&&!i&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag=-2,l}if(Sc(e)&&(e=e.__vccOpts),t){t=fc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=jt(l)),q(c)&&(Js(c)&&!V(c)&&(c=fe({},c)),t.style=Gs(c))}const o=se(e)?1:oo(e)?128:Xn(e)?64:q(e)?4:B(e)?2:0;return xt(e,t,n,s,r,o,i,!0)}function fc(e){return e?Js(e)||Qi(e)?fe({},e):e:null}function Wt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?dc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&ao(f),ref:t&&t.ref?n&&i?V(i)?i.concat(Dn(t)):[i,Dn(t)]:Dn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Zs(u,c.clone(u)),u}function Ft(e=" ",t=0){return ce(ts,null,e,t)}function wu(e,t){const n=ce(Nn,null,e);return n.staticCount=t,n}function xr(e="",t=!1){return t?(rn(),Ns(at,null,e)):ce(at,null,e)}function $e(e){return e==null||typeof e=="boolean"?ce(at):V(e)?ce(tt,null,e.slice()):Bn(e)?nt(e):ce(ts,null,String(e))}function nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function jn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),jn(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Qi(t)?t._ctx=Ae:r===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(B(t)){if(s&65){jn(e,{default:t});return}t={default:t,_ctx:Ae},n=32}else t=String(t),s&64?(n=16,t=[Ft(t)]):n=8;e.children=t,e.shapeFlag|=n}function dc(...e){const t={};for(let n=0;nhe||Ae;let Gn,yn;{const e=Yn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Gn=t("__VUE_INSTANCE_SETTERS__",n=>he=n),yn=t("__VUE_SSR_SETTERS__",n=>vn=n)}const An=e=>{const t=he;return Gn(e),e.scope.on(),()=>{e.scope.off(),Gn(t)}},Tr=()=>{he&&he.scope.off(),Gn(null)};function uo(e){return e.vnode.shapeFlag&4}let vn=!1;function _c(e,t=!1,n=!1){t&&yn(t);const{props:s,children:r}=e.vnode,i=uo(e);Zl(e,s,i,t),sc(e,r,n||t);const o=i?yc(e,t):void 0;return t&&yn(!1),o}function yc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hl);const{setup:s}=n;if(s){ot();const r=e.setupContext=s.length>1?bc(e):null,i=An(e),o=Sn(s,e,0,[e.props,r]),l=li(o);if(lt(),i(),(l||e.sp)&&!fn(e)&&Bi(e),l){if(o.then(Tr,Tr),t)return o.then(c=>{yn(!0);try{Pr(e,c,t)}finally{yn(!1)}}).catch(c=>{Qn(c,e,0)});e.asyncDep=o}else Pr(e,o)}else fo(e)}function Pr(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:q(t)&&(e.setupState=Oi(t)),fo(e)}function fo(e,t,n){const s=e.type;e.render||(e.render=s.render||ze);{const r=An(e);ot();try{Ul(e)}finally{lt(),r()}}}const vc={get(e,t){return de(e,"get",""),e[t]}};function bc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,vc),slots:e.slots,emit:e.emit,expose:t}}function ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(ll(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function Ec(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return B(e)&&"__vccOpts"in e}const Oe=(e,t)=>hl(e,t,vn);function ho(e,t,n){try{Un(-1);const s=arguments.length;return s===2?q(t)&&!V(t)?Bn(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bn(n)&&(n=[n]),ce(e,t,n))}finally{Un(1)}}const Ac="3.5.41";/** -* @vue/runtime-dom v3.5.41 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ds;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{Ds=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const po=Ds?e=>Ds.createHTML(e):e=>e,wc="http://www.w3.org/2000/svg",Rc="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,Or=et&&et.createElement("template"),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?et.createElementNS(wc,e):t==="mathml"?et.createElementNS(Rc,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Or.innerHTML=po(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Or.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tc=Symbol("_vtc");function Pc(e,t,n){const s=e[Tc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kn=Symbol("_vod"),go=Symbol("_vsh"),Ru={name:"show",beforeMount(e,{value:t},{transition:n}){e[kn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),tn(e,!0),s.enter(e)):s.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[kn]:"none",e[go]=!t}const Cc=Symbol(""),Oc=/(?:^|;)\s*display\s*:/;function Ic(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Dc(e,o,!se(t)&&t?t[o]:void 0,l)||on(s,o,l):on(s,o,"")}}else if(r){if(t!==n){const o=s[Cc];o&&(n+=";"+o),s.cssText=n,i=Oc.test(n)}}else t&&e.removeAttribute("style");kn in e&&(e[kn]=i?s.display:"",e[go]&&(s.display="none"))}const Ir=/\s*!important$/;function on(e,t,n){if(V(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Nc(e,t);Ir.test(n)?e.setProperty(vt(s),n.replace(Ir,""),"important"):e[s]=n}}const Nr=["Webkit","Moz","ms"],hs={};function Nc(e,t){const n=hs[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return hs[t]=s;s=qn(s);for(let r=0;rps||(Uc.then(()=>ps=0),ps=Date.now());function jc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(V(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Pc(e,s,o):t==="style"?Ic(e,n,s):Kn(t)?Wn(t)||Lc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kc(e,t,s,o))?(Lr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mr(e,t,s,o,i,t!=="value")):e._isVueCE&&(Kc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!se(s)))?Lr(e,ve(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Mr(e,t,s,o))};function kc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fr(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Fr(t)&&se(n)?!1:t in e}function Kc(e,t){const n=e._def.props;if(!n)return!1;const s=ve(t);return Array.isArray(n)?n.some(r=>ve(r)===s):Object.keys(n).some(r=>ve(r)===s)}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Cn(t,n):t};function Wc(e){e.target.composing=!0}function Hr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Re=Symbol("_assign"),Tn=Symbol("_initialValue");function gs(e,t,n){return t&&(e=e.trim()),n&&(e=zn(e)),e}const Ur={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Tn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Tn]=e.defaultValue.replace(/\r\n?/g,` -`))),e[Re]=yt(r);const i=s||r.props&&r.props.type==="number";it(e,t?"change":"input",o=>{o.target.composing||e[Re](gs(e.value,n,i))}),(n||i)&&it(e,"change",()=>{e.value=gs(e.value,n,i)}),t||(it(e,"compositionstart",Wc),it(e,"compositionend",Hr),it(e,"change",Hr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Tn];delete e[Tn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Re](gs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Re]=yt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},$c={deep:!0,created(e,t,n){e[Re]=yt(n),it(e,"change",()=>{const s=e._modelValue,r=$t(e),i=e.checked,o=e[Re];if(V(s)){const l=ks(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Yt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(mo(e,i))})},mounted:Br,beforeUpdate(e,t,n){e[Re]=yt(n),Br(e,t,n)}};function Br(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=ks(t,s.props.value)>-1;else if(Yt(t))r=t.has(s.props.value);else{if(t===n)return;r=_t(t,mo(e,!0))}e.checked!==r&&(e.checked=r)}const qc={created(e,{value:t},n){e.checked=_t(t,n.props.value),e[Re]=yt(n),it(e,"change",()=>{e[Re]($t(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Re]=yt(s),t!==n&&(e.checked=_t(t,s.props.value))}},zc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,it(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?zn($t(i)):$t(i));e[Re](e.multiple?Yt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,Qs(()=>{e._assigning=!1})}),e[Re]=yt(s)},mounted(e,{value:t}){jr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Re]=yt(n)},updated(e,{value:t}){e._assigning||jr(e,t)}};function jr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Yt(t))){for(let r=0,i=e.options.length;rString(f)===String(l)):o.selected=ks(t,l)>-1}else o.selected=t.has(l);else if(_t($t(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function $t(e){return"_value"in e?e._value:e.value}function mo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xu={created(e,t,n){Pn(e,t,n,null,"created")},mounted(e,t,n){Pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Pn(e,t,n,s,"updated")}};function Yc(e,t){switch(e){case"SELECT":return zc;case"TEXTAREA":return Ur;default:switch(t){case"checkbox":return $c;case"radio":return qc;default:return Ur}}}function Pn(e,t,n,s,r){const o=Yc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Jc=["ctrl","shift","alt","meta"],Qc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Jc.some(n=>e[`${n}Key`]&&!t.includes(n))},Tu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=vt(r.key);if(t.some(o=>o===i||Xc[o]===i))return e(r)})},Zc=fe({patchProp:Gc},xc);let Gr;function ea(){return Gr||(Gr=ic(Zc))}const ta=(...e)=>{const t=ea().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=sa(s);if(!r)return;const i=t._component;!B(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,na(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function na(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sa(e){return se(e)?document.querySelector(e):e}/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Ht=typeof document<"u";function _o(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ra(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_o(e.default)}const K=Object.assign;function ms(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const hn=()=>{},Le=Array.isArray;function kr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const yo=/#/g,ia=/&/g,oa=/\//g,la=/=/g,ca=/\?/g,vo=/\+/g,aa=/%5B/g,ua=/%5D/g,bo=/%5E/g,fa=/%60/g,Eo=/%7B/g,da=/%7C/g,So=/%7D/g,ha=/%20/g;function sr(e){return e==null?"":encodeURI(""+e).replace(da,"|").replace(aa,"[").replace(ua,"]")}function pa(e){return sr(e).replace(Eo,"{").replace(So,"}").replace(bo,"^")}function Ms(e){return sr(e).replace(vo,"%2B").replace(ha,"+").replace(yo,"%23").replace(ia,"%26").replace(fa,"`").replace(Eo,"{").replace(So,"}").replace(bo,"^")}function ga(e){return Ms(e).replace(la,"%3D")}function ma(e){return sr(e).replace(yo,"%23").replace(ca,"%3F")}function _a(e){return ma(e).replace(oa,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ya=/\/$/,va=e=>e.replace(ya,"");function _s(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Aa(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:bn(o)}}function ba(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ea(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&qt(t.matched[s],n.matched[r])&&Ao(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ao(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sa(e[n],t[n]))return!1;return!0}function Sa(e,t){return Le(e)?Wr(e,t):Le(t)?Wr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Wr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Aa(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ls=function(e){return e.pop="pop",e.push="push",e}({}),ys=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function wa(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),va(e)}const Ra=/^[^#]+#/;function xa(e,t){return e.replace(Ra,"#")+t}function Ta(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ss=()=>({left:window.scrollX,top:window.scrollY});function Pa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ta(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $r(e,t){return(history.state?history.state.position-t:-1)+e}const Vs=new Map;function Ca(e,t){Vs.set(e,t)}function Oa(e){const t=Vs.get(e);return Vs.delete(e),t}function Ia(e){return typeof e=="string"||e&&typeof e=="object"}function wo(e){return typeof e=="string"||typeof e=="symbol"}let ne=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ro=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function zt(e,t){return K(new Error,{type:e,[Ro]:!0},t)}function Xe(e,t){return e instanceof Error&&Ro in e&&(t==null||!!(e.type&t))}const Na=["params","query","hash"];function Da(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Na)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ma(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Ms(r)):[s&&Ms(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function La(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Va=Symbol(""),zr=Symbol(""),rs=Symbol(""),rr=Symbol(""),Fs=Symbol("");function nn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=g=>{g===!1?c(zt(ne.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?c(g):Ia(g)?c(zt(ne.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(o&&s.enterCallbacks[r]===o&&typeof g=="function"&&o.push(g),l())},u=i(()=>e.call(s&&s.instances[r],t,n,f));let h=Promise.resolve(u);e.length<3&&(h=h.then(f)),h.catch(g=>c(g))})}function vs(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(_o(c)){const f=(c.__vccOpts||c)[t];f&&i.push(mt(f,n,s,o,l,r))}else{let f=c();i.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=ra(u)?u.default:u;o.mods[l]=u,o.components[l]=h;const g=(h.__vccOpts||h)[t];return g&&mt(g,n,s,o,l,r)()}))}}return i}function Fa(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oqt(f,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(f=>qt(f,c))||r.push(c))}return[n,s,r]}/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let Ha=()=>location.protocol+"//"+location.host;function xo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Kr(l,"")}return Kr(n,e)+s+r}function Ua(e,t,n,s){let r=[],i=[],o=null;const l=({state:g})=>{const m=xo(e,location),I=n.value,R=t.value;let U=0;if(g){if(n.value=m,t.value=g,o&&o===I){o=null;return}U=R?g.position-R.position:0}else s(m);r.forEach(F=>{F(n.value,I,{delta:U,type:Ls.pop,direction:U?U>0?ys.forward:ys.back:ys.unknown})})};function c(){o=n.value}function f(g){r.push(g);const m=()=>{const I=r.indexOf(g);I>-1&&r.splice(I,1)};return i.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(K({},g.state,{scroll:ss()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:h}}function Yr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ss():null}}function Ba(e){const{history:t,location:n}=window,s={value:xo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ha()+e+c;try{t[u?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[u?"replace":"assign"](g)}}function o(c,f){i(c,K({},t.state,Yr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=K({},r.value,t.state,{forward:c,scroll:ss()});i(u.current,u,!0),i(c,K({},Yr(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function ja(e){e=wa(e);const t=Ba(e),n=Ua(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=K({location:"",base:e,go:s,createHref:xa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Tt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var oe=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(oe||{});const Ga={type:Tt.Static,value:""},ka=/[a-zA-Z0-9_]/;function Ka(e){if(!e)return[[]];if(e==="/")return[[Ga]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=oe.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,f="",u="";function h(){f&&(n===oe.Static?i.push({type:Tt.Static,value:f}):n===oe.Param||n===oe.ParamRegExp||n===oe.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Tt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=c}for(;lt.length?t.length===1&&t[0]===me.Static+me.Segment?1:-1:0}function To(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Ya={strict:!1,end:!0,sensitive:!1};function Ja(e,t,n){const s=qa(Ka(e.path),n),r=K(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qa(e,t){const n=[],s=new Map;t=kr(Ya,t);function r(h){return s.get(h)}function i(h,g,m){const I=!m,R=Zr(h);R.aliasOf=m&&m.record;const U=kr(t,h),F=[R];if("alias"in h){const O=typeof h.alias=="string"?[h.alias]:h.alias;for(const J of O)F.push(Zr(K({},R,{components:m?m.record.components:R.components,path:J,aliasOf:m?m.record:R})))}let P,N;for(const O of F){const{path:J}=O;if(g&&J[0]!=="/"){const ie=g.record.path,ee=ie[ie.length-1]==="/"?"":"/";O.path=g.record.path+(J&&ee+J)}if(P=Ja(O,g,U),m?m.alias.push(P):(N=N||P,N!==P&&N.alias.push(P),I&&h.name&&!ei(P)&&o(h.name)),Po(P)&&c(P),R.children){const ie=R.children;for(let ee=0;ee{o(N)}:hn}function o(h){if(wo(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(o),g.alias.forEach(o))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return n}function c(h){const g=eu(h,n);n.splice(g,0,h),h.record.name&&!ei(h)&&s.set(h.record.name,h)}function f(h,g){let m,I={},R,U;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw zt(ne.MATCHER_NOT_FOUND,{location:h});U=m.record.name,I=K(Xr(g.params,m.keys.filter(N=>!N.optional).concat(m.parent?m.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),h.params&&Xr(h.params,m.keys.map(N=>N.name))),R=m.stringify(I)}else if(h.path!=null)R=h.path,m=n.find(N=>N.re.test(R)),m&&(I=m.parse(R),U=m.record.name);else{if(m=g.name?s.get(g.name):n.find(N=>N.re.test(g.path)),!m)throw zt(ne.MATCHER_NOT_FOUND,{location:h,currentLocation:g});U=m.record.name,I=K({},g.params,h.params),R=m.stringify(I)}const F=[];let P=m;for(;P;)F.unshift(P.record),P=P.parent;return{name:U,path:R,params:I,matched:F,meta:Za(F)}}e.forEach(h=>i(h));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:f,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Xr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Zr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xa(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Xa(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ei(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Za(e){return e.reduce((t,n)=>K(t,n.meta),{})}function eu(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;To(e,t[i])<0?s=i:n=i+1}const r=tu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function tu(e){let t=e;for(;t=t.parent;)if(Po(t)&&To(e,t)===0)return t}function Po({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ti(e){const t=Ne(rs),n=Ne(rr),s=Oe(()=>{const c=_e(e.to);return t.resolve(c)}),r=Oe(()=>{const{matched:c}=s.value,{length:f}=c,u=c[f-1],h=n.matched;if(!u||!h.length)return-1;const g=h.findIndex(qt.bind(null,u));if(g>-1)return g;const m=ni(c[f-2]);return f>1&&ni(u)===m&&h[h.length-1].path!==m?h.findIndex(qt.bind(null,c[f-2])):g}),i=Oe(()=>r.value>-1&&ou(n.params,s.value.params)),o=Oe(()=>r.value>-1&&r.value===n.matched.length-1&&Ao(n.params,s.value.params));function l(c={}){if(iu(c)){const f=t[_e(e.replace)?"replace":"push"](_e(e.to)).catch(hn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:Oe(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function nu(e){return e.length===1?e[0]:e}const su=Ui({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ti,setup(e,{slots:t}){const n=Jt(ti(e)),{options:s}=Ne(rs),r=Oe(()=>({[si(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[si(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&nu(t.default(n));return e.custom?i:ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),ru=su;function iu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ou(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function ni(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const si=(e,t,n)=>e??t??n,lu=Ui({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ne(Fs),r=Oe(()=>e.route||s.value),i=Ne(zr,0),o=Oe(()=>{let f=_e(i);const{matched:u}=r.value;let h;for(;(h=u[f])&&!h.components;)f++;return f}),l=Oe(()=>r.value.matched[o.value]);On(zr,Oe(()=>o.value+1)),On(Va,l),On(Fs,r);const c=cl();return In(()=>[c.value,l.value,e.name],([f,u,h],[g,m,I])=>{u&&(u.instances[h]=f,m&&m!==u&&f&&f===g&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),f&&u&&(!m||!qt(u,m)||!g)&&(u.enterCallbacks[h]||[]).forEach(R=>R(f))},{flush:"post"}),()=>{const f=r.value,u=e.name,h=l.value,g=h&&h.components[u];if(!g)return ri(n.default,{Component:g,route:f});const m=h.props[u],I=m?m===!0?f.params:typeof m=="function"?m(f):m:null,U=ho(g,K({},I,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[u]=null)},ref:c}));return ri(n.default,{Component:U,route:f})||U}}});function ri(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const cu=lu;function au(e){const t=Qa(e.routes,e),n=e.parseQuery||Ma,s=e.stringifyQuery||qr,r=e.history,i=nn(),o=nn(),l=nn(),c=al(pt);let f=pt;Ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ms.bind(null,v=>""+v),h=ms.bind(null,_a),g=ms.bind(null,bn);function m(v,C){let x,D;return wo(v)?(x=t.getRecordMatcher(v),D=C):D=v,t.addRoute(D,x)}function I(v){const C=t.getRecordMatcher(v);C&&t.removeRoute(C)}function R(){return t.getRoutes().map(v=>v.record)}function U(v){return!!t.getRecordMatcher(v)}function F(v,C){if(C=K({},C||c.value),typeof v=="string"){const p=_s(n,v,C.path),y=t.resolve({path:p.path},C),b=r.createHref(p.fullPath);return K(p,y,{params:g(y.params),hash:bn(p.hash),redirectedFrom:void 0,href:b})}let x;if(v.path!=null)x=K({},v,{path:_s(n,v.path,C.path).path});else{const p=K({},v.params);for(const y in p)p[y]==null&&delete p[y];x=K({},v,{params:h(p)}),C.params=h(C.params)}const D=t.resolve(x,C),j=v.hash||"";D.params=u(g(D.params));const a=ba(s,K({},v,{hash:pa(j),path:D.path})),d=r.createHref(a);return K({fullPath:a,hash:j,query:s===qr?La(v.query):v.query||{}},D,{redirectedFrom:void 0,href:d})}function P(v){return typeof v=="string"?_s(n,v,c.value.path):K({},v)}function N(v,C){if(f!==v)return zt(ne.NAVIGATION_CANCELLED,{from:C,to:v})}function O(v){return ee(v)}function J(v){return O(K(P(v),{replace:!0}))}function ie(v,C){const x=v.matched[v.matched.length-1];if(x&&x.redirect){const{redirect:D}=x;let j=typeof D=="function"?D(v,C):D;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=P(j):{path:j},j.params={}),K({query:v.query,hash:v.hash,params:j.path!=null?{}:v.params},j)}}function ee(v,C){const x=f=F(v),D=c.value,j=v.state,a=v.force,d=v.replace===!0,p=ie(x,D);if(p)return ee(K(P(p),{state:typeof p=="object"?K({},j,p.state):j,force:a,replace:d}),C||x);const y=x;y.redirectedFrom=C;let b;return!a&&Ea(s,D,x)&&(b=zt(ne.NAVIGATION_DUPLICATED,{to:y,from:D}),Ue(D,D,!0,!1)),(b?Promise.resolve(b):Fe(y,D)).catch(_=>Xe(_)?Xe(_,ne.NAVIGATION_GUARD_REDIRECT)?_:ht(_):k(_,y,D)).then(_=>{if(_){if(Xe(_,ne.NAVIGATION_GUARD_REDIRECT))return ee(K({replace:d},P(_.to),{state:typeof _.to=="object"?K({},j,_.to.state):j,force:a}),C||y)}else _=bt(y,D,!0,d,j);return dt(y,D,_),_})}function Ve(v,C){const x=N(v,C);return x?Promise.reject(x):Promise.resolve()}function ft(v){const C=Dt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(v):v()}function Fe(v,C){let x;const[D,j,a]=Fa(v,C);x=vs(D.reverse(),"beforeRouteLeave",v,C);for(const p of D)p.leaveGuards.forEach(y=>{x.push(mt(y,v,C))});const d=Ve.bind(null,v,C);return x.push(d),xe(x).then(()=>{x=[];for(const p of i.list())x.push(mt(p,v,C));return x.push(d),xe(x)}).then(()=>{x=vs(j,"beforeRouteUpdate",v,C);for(const p of j)p.updateGuards.forEach(y=>{x.push(mt(y,v,C))});return x.push(d),xe(x)}).then(()=>{x=[];for(const p of a)if(p.beforeEnter)if(Le(p.beforeEnter))for(const y of p.beforeEnter)x.push(mt(y,v,C));else x.push(mt(p.beforeEnter,v,C));return x.push(d),xe(x)}).then(()=>(v.matched.forEach(p=>p.enterCallbacks={}),x=vs(a,"beforeRouteEnter",v,C,ft),x.push(d),xe(x))).then(()=>{x=[];for(const p of o.list())x.push(mt(p,v,C));return x.push(d),xe(x)}).catch(p=>Xe(p,ne.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function dt(v,C,x){l.list().forEach(D=>ft(()=>D(v,C,x)))}function bt(v,C,x,D,j){const a=N(v,C);if(a)return a;const d=C===pt,p=Ht?history.state:{};x&&(D||d?r.replace(v.fullPath,K({scroll:d&&p&&p.scroll},j)):r.push(v.fullPath,j)),c.value=v,Ue(v,C,x,d),ht()}let He;function Qt(){He||(He=r.listen((v,C,x)=>{if(!Et.listening)return;const D=F(v),j=ie(D,Et.currentRoute.value);if(j){ee(K(j,{replace:!0,force:!0}),D).catch(hn);return}f=D;const a=c.value;Ht&&Ca($r(a.fullPath,x.delta),ss()),Fe(D,a).catch(d=>Xe(d,ne.NAVIGATION_ABORTED|ne.NAVIGATION_CANCELLED)?d:Xe(d,ne.NAVIGATION_GUARD_REDIRECT)?(ee(K(P(d.to),{force:!0}),D).then(p=>{Xe(p,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&!x.delta&&x.type===Ls.pop&&r.go(-1,!1)}).catch(hn),Promise.reject()):(x.delta&&r.go(-x.delta,!1),k(d,D,a))).then(d=>{d=d||bt(D,a,!1),d&&(x.delta&&!Xe(d,ne.NAVIGATION_CANCELLED)?r.go(-x.delta,!1):x.type===Ls.pop&&Xe(d,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),dt(D,a,d)}).catch(hn)}))}let It=nn(),le=nn(),z;function k(v,C,x){ht(v);const D=le.list();return D.length?D.forEach(j=>j(v,C,x)):console.error(v),Promise.reject(v)}function Je(){return z&&c.value!==pt?Promise.resolve():new Promise((v,C)=>{It.add([v,C])})}function ht(v){return z||(z=!v,Qt(),It.list().forEach(([C,x])=>v?x(v):C()),It.reset()),v}function Ue(v,C,x,D){const{scrollBehavior:j}=e;if(!Ht||!j)return Promise.resolve();const a=!x&&Oa($r(v.fullPath,0))||(D||!x)&&history.state&&history.state.scroll||null;return Qs().then(()=>j(v,C,a)).then(d=>d&&Pa(d)).catch(d=>k(d,v,C))}const be=v=>r.go(v);let Nt;const Dt=new Set,Et={currentRoute:c,listening:!0,addRoute:m,removeRoute:I,clearRoutes:t.clearRoutes,hasRoute:U,getRoutes:R,resolve:F,options:e,push:O,replace:J,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:le.add,isReady:Je,install(v){v.component("RouterLink",ru),v.component("RouterView",cu),v.config.globalProperties.$router=Et,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>_e(c)}),Ht&&!Nt&&c.value===pt&&(Nt=!0,O(r.location).catch(D=>{}));const C={};for(const D in pt)Object.defineProperty(C,D,{get:()=>c.value[D],enumerable:!0});v.provide(rs,Et),v.provide(rr,Pi(C)),v.provide(Fs,c);const x=v.unmount;Dt.add(v),v.unmount=function(){Dt.delete(v),Dt.size<1&&(f=pt,He&&He(),He=null,c.value=pt,Nt=!1,z=!1),x()}}};function xe(v){return v.reduce((C,x)=>C.then(()=>ft(x)),Promise.resolve())}return Et}function uu(){return Ne(rs)}function Cu(e){return Ne(rr)}const Hs="st_token";function Co(){return localStorage.getItem(Hs)}function bs(e){e?localStorage.setItem(Hs,e):localStorage.removeItem(Hs)}async function te(e,t,n,s=!1){const r={},i=Co();i&&(r.Authorization=`Bearer ${i}`);let o=n;!s&&n!==void 0&&n!==null&&(r["Content-Type"]="application/json",o=JSON.stringify(n));const l=await fetch(t,{method:e,headers:r,body:o});let c=null;try{c=await l.json()}catch{}if(!l.ok){const f=c&&(c.error||c.message)||`HTTP ${l.status}`;throw new Error(f)}return c}const Es={login:(e,t)=>te("POST","/api/auth/login",{username:e,password:t}),me:()=>te("GET","/api/auth/me"),setup:e=>te("POST","/api/auth/setup",e),updateProfile:e=>te("PATCH","/api/auth/profile",e),adminCreateUser:e=>te("POST","/api/admin/users",e),adminListUsers:()=>te("GET","/api/admin/users"),adminUpdateUser:(e,t)=>te("PUT",`/api/admin/users/${e}`,t),createGroup:e=>te("POST","/api/groups",e,!0),listGroups:()=>te("GET","/api/groups"),getGroup:e=>te("GET",`/api/groups/${e}`),analyzeGroup:e=>te("POST",`/api/groups/${e}/analyze`),listPersonas:e=>te("GET",`/api/groups/${e}/personas`),getPersona:(e,t)=>te("GET",`/api/groups/${e}/personas/${t}`),updatePersona:(e,t,n)=>te("PUT",`/api/groups/${e}/personas/${t}`,n),chatStart:(e,t)=>te("POST",`/api/chat/${e}/personas/${t}/chat/start`),chatSend:(e,t,n)=>te("POST",`/api/chat/${e}/personas/${t}/chat/send`,{text:n}),chatFinish:(e,t)=>te("POST",`/api/chat/${e}/personas/${t}/chat/finish`),mySessions:()=>te("GET","/api/chat/sessions"),myBoard:()=>te("GET","/api/me/board"),weakAreas:()=>te("GET","/api/me/weak-areas"),myPersonas:()=>te("GET","/api/me/personas"),generatePersona:e=>te("POST","/api/me/personas/generate",e),analytics:(e={})=>{const t=new URLSearchParams;e.from&&t.set("from",e.from),e.to&&t.set("to",e.to);const n=t.toString();return te("GET",`/api/analytics${n?`?${n}`:""}`)}},Pe=Jt({user:null,token:Co(),mustSetup:!1,get role(){return this.user?this.user.role:null},get isAdmin(){return this.role==="admin"||this.role==="super_admin"},async load(){var e;if(!this.token)return null;try{const t=await Es.me();return this.user=t.user,this.mustSetup=!!((e=t.user)!=null&&e.must_setup),this.user}catch{return this.user=null,this.mustSetup=!1,bs(null),null}},async login(e,t){const n=await Es.login(e,t);return this.token=n.token,bs(n.token),this.user=n.user,this.mustSetup=!!n.must_setup,n.user},async finishSetup(e,t){const n=await Es.setup({username:this.user.username||this.user.id,email:e,password:t});return this.user=n.user,this.mustSetup=!1,n.user},logout(){this.user=null,this.token=null,this.mustSetup=!1,bs(null)}}),Ss={en:{app:"Sales Trainer",login:"Login",logout:"Logout",username:"Username",email:"Email",password:"Password",newPassword:"New password",confirmPassword:"Confirm password",save:"Save",passwordTooShort:"Password must be at least 4 characters",passwordMismatch:"Passwords do not match",setupTitle:"Set up your account",setupSubtitle:"First login for ",loginError:"Invalid credentials",dashboard:"Dashboard",training:"Training",myDashboard:"My dashboard",adminOverview:"Admin overview",settings:"Settings",account:"Account",profile:"Profile",readonly:"read-only",name:"Display name",saveProfile:"Save profile",changePassword:"Change password",optional:"optional",saved:"Saved",total:"Total",dateRange:"Date range",apply:"Apply",clear:"Clear",hardestPersonas:"Hardest personas",closeRate:"Close rate",managePersonas:"Manage personas",difficulty:"Difficulty",trained:"Trained",addProduct:"Add product",trainingSubtitle:"Pick a product group, then choose a persona to practice closing the sale.",noTraining:"No training groups available",groups:"Persona Groups",myTraining:"My Training",adminTools:"Admin Tools",users:"Users",analytics:"Analytics",groupBuilder:"Group Builder",create:"Create",analyze:"Analyze",manual:"Manual",edit:"Edit",product:"Product",segment:"Initial customer segment (optional)",description:"Additional description / scenario (optional)",channel:"Channel",facebook:"Facebook",line:"LINE",language:"Language",thai:"Thai",english:"English",personas:"Personas",tierA:"Tier A — Ready to buy",tierB:"Tier B — Unsure",tierC:"Tier C — Not interested but has pain",selectPersona:"Select a persona to practice",chatGuideTitle:"How to practice",chatGuideText:'You are playing the salesperson. Chat with this customer and try to close the sale. Ask about their needs, solve their pain, and handle their objections. When you are done, press "Finish & get result" to see your score and coaching.',chat:"Chat",start:"Start",send:"Send",finish:"Finish & get result",debrief:"Result & Coaching",won:"Won",lost:"Lost",notTried:"Not tried",score:"Score",pain:"Pain",why:"Reason",reveal:"Revealed persona details",generatePersona:"Generate my persona",weakAreas:"My weak areas",mySessions:"My sessions",openSaleTask:"The customer did NOT message first. You must open the sale.",sellerInitiated:"You must open the sale (outbound)",customerInitiated:"The customer will message you first"},th:{app:"ระบบฝึกทักษะการขาย",login:"เข้าสู่ระบบ",logout:"ออกจากระบบ",username:"ชื่อผู้ใช้",email:"อีเมล",password:"รหัสผ่าน",newPassword:"รหัสผ่านใหม่",confirmPassword:"ยืนยันรหัสผ่าน",save:"บันทึก",passwordTooShort:"รหัสผ่านต้องมีความยาวอย่างน้อย 4 ตัวอักษร",passwordMismatch:"รหัสผ่านที่ยืนยันไม่ตรงกัน",setupTitle:"ตั้งค่าบัญชีของคุณ",setupSubtitle:"เข้าสู่ระบบครั้งแรกสำหรับ ",loginError:"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง กรุณาลองอีกครั้ง",dashboard:"หน้าหลัก",training:"การฝึก",myDashboard:"ภาพรวมผลการฝึก",adminOverview:"ภาพรวมผู้ดูแล",settings:"การตั้งค่า",account:"บัญชี",profile:"ข้อมูลส่วนตัว",readonly:"อ่านอย่างเดียว",name:"ชื่อที่แสดง",saveProfile:"บันทึกข้อมูล",changePassword:"เปลี่ยนรหัสผ่าน",optional:"ไม่บังคับ",saved:"บันทึกเรียบร้อย",total:"ทั้งหมด",dateRange:"ช่วงเวลา",apply:"กรอง",clear:"ล้าง",hardestPersonas:"บุคคลต้นแบบที่ขายยากที่สุด",closeRate:"อัตราปิดการขาย",managePersonas:"จัดการบุคคลต้นแบบ",difficulty:"ระดับความยาก",trained:"ฝึกแล้ว",addProduct:"เพิ่มสินค้า",trainingSubtitle:"เลือกกลุ่มสินค้า แล้วเลือกบุคคลต้นแบบเพื่อฝึกปิดการขาย",noTraining:"ยังไม่มีกลุ่มฝึก",groups:"กลุ่มบุคคลต้นแบบลูกค้า (Persona)",myTraining:"ประวัติการฝึก",adminTools:"เครื่องมือผู้ดูแลระบบ",users:"ผู้ใช้งาน",analytics:"สถิติ",groupBuilder:"สร้างกลุ่มบุคคลต้นแบบ",create:"สร้าง",analyze:"วิเคราะห์",manual:"ระบุเอง",edit:"แก้ไข",product:"สินค้า/บริการ",segment:"กลุ่มลูกค้าเป้าหมายเบื้องต้น (ไม่บังคับ)",description:"คำอธิบายหรือรายละเอียดเพิ่มเติม (ไม่บังคับ)",channel:"ช่องทางติดต่อ",facebook:"Facebook",line:"LINE",language:"ภาษา",thai:"ไทย",english:"อังกฤษ",personas:"บุคคลต้นแบบ",tierA:"ระดับ A — พร้อมตัดสินใจซื้อ",tierB:"ระดับ B — ยังไม่แน่ใจ",tierC:"ระดับ C — ไม่สนใจแต่มีปัญหา",selectPersona:"เลือกบุคคลต้นแบบเพื่อฝึก",chatGuideTitle:"วิธีฝึก",chatGuideText:'คุณรับบทเป็นพนักงานขาย พูดคุยกับลูกค้าคนนี้เพื่อพยายามปิดการขายให้ได้ สอบถามความต้องการ แก้ไขปัญหาของลูกค้า และรับมือกับข้อโต้แย้ง เมื่อพอใจแล้วกด "สรุปผล" เพื่อดูคะแนนและข้อเสนอแนะ',chat:"แชท",start:"เริ่มต้น",send:"ส่ง",finish:"สรุปผล",debrief:"ผลลัพธ์และข้อเสนอแนะ",won:"ปิดการขายได้",lost:"ปิดการขายไม่ได้",notTried:"ยังไม่ได้ฝึก",score:"คะแนน",pain:"ปัญหาของลูกค้า",why:"เหตุผล",reveal:"รายละเอียดบุคคลต้นแบบที่ถูกซ่อนไว้",generatePersona:"สร้างบุคคลต้นแบบเพิ่มเติม",weakAreas:"จุดอ่อนที่ควรฝึกเพิ่มเติม",mySessions:"ประวัติการฝึกของฉัน",openSaleTask:"ลูกค้ายังไม่ได้ทักเข้ามา คุณต้องเป็นฝ่ายเริ่มบทสนทนาการขายเอง",sellerInitiated:"คุณต้องเริ่มการขายในเชิงรุก",customerInitiated:"ลูกค้าจะติดต่อเข้ามาก่อน"}},Ze=Jt({locale:localStorage.getItem("locale")||"th",t(e){return Ss[this.locale]&&Ss[this.locale][e]||Ss.en[e]||e},set(e){this.locale=e,localStorage.setItem("locale",e)}}),fu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},du={class:"app"},hu={key:0,class:"topnav"},pu={class:"tabs"},gu={class:"nav-right"},mu={class:"main"},_u={__name:"App",setup(e){const t=uu();function n(){Ze.set(Ze.locale==="th"?"en":"th")}function s(){Pe.logout(),t.push("/login")}return Gi(()=>{Pe.token&&!Pe.user&&Pe.load()}),(r,i)=>{const o=gr("router-link"),l=gr("router-view");return rn(),Rr("div",du,[_e(Pe).user?(rn(),Rr("nav",hu,[ce(o,{to:"/",class:"brand"},{default:Vt(()=>[Ft("🎯 "+wt(_e(Ze).t("app")),1)]),_:1}),xt("div",pu,[_e(Pe).isAdmin?(rn(),Ns(o,{key:0,to:"/",class:jt(["tab",{active:r.$route.path==="/"}])},{default:Vt(()=>[Ft(wt(_e(Ze).t("adminOverview")),1)]),_:1},8,["class"])):xr("",!0),ce(o,{to:"/my/board",class:jt(["tab",{active:r.$route.path==="/my/board"}])},{default:Vt(()=>[Ft(wt(_e(Ze).t("myDashboard")),1)]),_:1},8,["class"]),ce(o,{to:"/training",class:jt(["tab",{active:r.$route.path==="/training"}])},{default:Vt(()=>[Ft(wt(_e(Ze).t("training")),1)]),_:1},8,["class"])]),xt("div",gu,[xt("button",{onClick:n,class:"lang"},wt(_e(Ze).locale==="th"?"EN":"TH"),1),ce(o,{to:"/settings",class:"icon-btn",title:"Settings"},{default:Vt(()=>[...i[0]||(i[0]=[Ft("⚙️",-1)])]),_:1}),xt("button",{onClick:s,class:"logout-btn"},"⏻ "+wt(_e(Ze).t("logout")),1)])])):xr("",!0),xt("main",mu,[(rn(),Ns(l,{key:_e(Ze).locale}))])])}}},yu=fu(_u,[["__scopeId","data-v-836c19dc"]]),vu="modulepreload",bu=function(e){return"/"+e},ii={},Te=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=bu(c),c in ii)return;ii[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":vu,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Eu=[{path:"/login",component:()=>Te(()=>import("./Login-DpLtB9t4.js"),__vite__mapDeps([0,1])),meta:{public:!0}},{path:"/setup",component:()=>Te(()=>import("./Setup-Ax3Eo5U7.js"),__vite__mapDeps([2,3]))},{path:"/",component:()=>Te(()=>import("./Analytics-D85JjGgM.js"),__vite__mapDeps([4,5])),meta:{admin:!0}},{path:"/my/board",component:()=>Te(()=>import("./MyBoard-DT8KV0ES.js"),__vite__mapDeps([6,7]))},{path:"/training",component:()=>Te(()=>import("./Training-CIWgzyIG.js"),__vite__mapDeps([8,9]))},{path:"/groups/:gid/personas",component:()=>Te(()=>import("./Personas-ujsGrehm.js"),__vite__mapDeps([10,11]))},{path:"/groups/:gid/chat/:pid",component:()=>Te(()=>import("./Chat-COdP9j9f.js"),__vite__mapDeps([12,13]))},{path:"/settings",component:()=>Te(()=>import("./Settings-DagQxl_z.js"),__vite__mapDeps([14,15]))},{path:"/admin/new-group",component:()=>Te(()=>import("./GroupBuilder-BtLOuOw5.js"),__vite__mapDeps([16,17])),meta:{admin:!0}},{path:"/admin/groups/:gid/edit",component:()=>Te(()=>import("./GroupEdit-CykIW85w.js"),__vite__mapDeps([18,19])),meta:{admin:!0}},{path:"/admin/users",component:()=>Te(()=>import("./AdminUsers-K3vzxj9L.js"),__vite__mapDeps([20,21])),meta:{admin:!0}},{path:"/admin/analytics",component:()=>Te(()=>import("./Analytics-D85JjGgM.js"),__vite__mapDeps([4,5])),meta:{admin:!0}}],Oo=au({history:ja(),routes:Eu});Oo.beforeEach(async e=>e.meta.public?!0:(Pe.user||await Pe.load(),Pe.user?Pe.mustSetup&&e.path!=="/setup"?{path:"/setup"}:e.path==="/"&&!Pe.isAdmin?{path:"/my/board"}:e.meta.admin&&!Pe.isAdmin?{path:"/my/board"}:!0:{path:"/login",query:{redirect:e.fullPath}}));ta(yu).use(Oo).mount("#app");export{Ns as A,Qs as B,zc as C,In as D,Jt as E,tt as F,Tu as G,wu as H,fu as _,xt as a,Pu as b,Rr as c,xu as d,xr as e,Pe as f,uu as g,Cu as h,Ze as i,Ft as j,Gi as k,ce as l,Vt as m,Gs as n,rn as o,Au as p,Es as q,cl as r,gr as s,wt as t,_e as u,Ur as v,Su as w,Ru as x,Oe as y,jt as z}; diff --git a/frontend/dist/assets/index-Bu7f-IE2.css b/frontend/dist/assets/index-Bu7f-IE2.css new file mode 100644 index 0000000..76c2cfe --- /dev/null +++ b/frontend/dist/assets/index-Bu7f-IE2.css @@ -0,0 +1 @@ +.topnav[data-v-25816f6a]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;flex-wrap:wrap}.brand[data-v-25816f6a]{font-weight:800;text-decoration:none;color:var(--ink);white-space:nowrap}.tabs[data-v-25816f6a]{display:flex;gap:4px;flex-wrap:wrap}.tab[data-v-25816f6a]{text-decoration:none;color:var(--muted);padding:8px 16px;border-radius:10px;font-weight:600;font-size:14px;white-space:nowrap}.tab[data-v-25816f6a]:hover{background:#f1f3f9;color:var(--ink)}.tab.active[data-v-25816f6a]{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff}.nav-right[data-v-25816f6a]{display:flex;align-items:center;gap:8px}.lang[data-v-25816f6a],.logout-btn[data-v-25816f6a]{padding:8px 12px}.logout-btn[data-v-25816f6a]{display:inline-flex;align-items:center;gap:6px}.icon-btn[data-v-25816f6a]{text-decoration:none;display:inline-flex;align-items:center;padding:6px 10px;border-radius:8px;color:var(--ink)}.icon-btn[data-v-25816f6a]:hover{background:#f1f3f9}.main[data-v-25816f6a]{max-width:1080px;margin:0 auto;padding:24px}@media (max-width: 640px){.topnav[data-v-25816f6a]{padding:10px 12px}.tab[data-v-25816f6a]{padding:8px 12px;font-size:13px}.logout-btn span[data-v-25816f6a]{display:none}}:root{--bg: #f6f7fb;--card: #ffffff;--border: #e5e8ef;--ink: #1a1d29;--muted: #6b7280;--accent: #4f46e5;--accent-2: #7c3aed;--green: #16a34a;--red: #dc2626;--amber: #d97706;--radius: 14px;--shadow: 0 1px 3px rgba(20, 24, 40, .08)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans Thai,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}#app{min-height:100vh}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}button{font-family:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);padding:10px 16px;border-radius:10px;font-size:14px;color:var(--ink)}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border:none}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:14px}label{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}.row{display:flex;gap:12px;flex-wrap:wrap}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.A{background:#dcfce7;color:#166534}.badge.B{background:#fef9c3;color:#854d0e}.badge.C{background:#fee2e2;color:#991b1b}.badge.won{background:#dcfce7;color:#166534}.badge.lost{background:#fee2e2;color:#991b1b}.badge.not_tried{background:#eef2ff;color:#4338ca}.error{color:var(--red);font-size:13px}.muted{color:var(--muted)}.msg-seller{background:var(--accent);color:#fff;align-self:flex-end;border-radius:16px 16px 4px}.msg-customer{background:#fff;align-self:flex-start;border-radius:16px 16px 16px 4px;border:1px solid var(--border)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit}a:focus{outline:2px solid var(--accent);outline-offset:2px}button{min-height:44px;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,opacity .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:not(:disabled):hover{box-shadow:0 4px 12px #1418281a}button:not(:disabled):active{transform:scale(.97)}button.primary:not(:disabled):hover{box-shadow:0 6px 18px #4f46e559}button.soft{background:#f1f3f9;border-color:transparent;color:var(--ink)}button.soft:not(:disabled):hover{background:#e6eaf3}button svg,.icon-btn svg,.brand svg{vertical-align:-2px}input,select,textarea{min-height:44px;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f46e526}textarea{min-height:88px;resize:vertical}.card.lift{transition:transform .2s ease,box-shadow .25s ease}.card.lift:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1418281a}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.btn-back{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;margin-bottom:12px;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:13px;text-decoration:none}.btn-back:hover{color:var(--ink);border-color:var(--accent)}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{border-radius:8px;background:linear-gradient(90deg,#eef0f5 25%,#e2e5ec 37%,#eef0f5 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state strong{display:block;margin-bottom:4px;color:var(--ink)}.field-error{color:var(--red);font-size:12px;margin-top:4px}@media (max-width: 640px){.main{padding:16px}.row{gap:10px}.msg-seller,.msg-customer{max-width:84%}} diff --git a/frontend/dist/assets/index-C0Orcg9B.js b/frontend/dist/assets/index-C0Orcg9B.js new file mode 100644 index 0000000..b1fa3fa --- /dev/null +++ b/frontend/dist/assets/index-C0Orcg9B.js @@ -0,0 +1,82 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DhaEm1-6.js","assets/Login-D3svPLnW.css","assets/Setup-D9lCpt9C.js","assets/Setup-BdS_6JlN.css","assets/Analytics-CyuFLItl.js","assets/users-D5qk1Nmy.js","assets/plus-Cw7xc8qj.js","assets/Analytics-D5VrZMJ0.css","assets/MyBoard-CHF7e7KE.js","assets/MyBoard-B7ypQ1JT.css","assets/Training-CH5dgqen.js","assets/target-qgda8bhm.js","assets/Training-CeWRER6W.css","assets/Personas-CRi-xjVS.js","assets/arrow-left-BoUMQ_f_.js","assets/Personas-CskAUbZv.css","assets/Chat-Bo6laZZd.js","assets/Chat-Dq49zqgJ.css","assets/Settings-CatYfY0I.js","assets/Settings-BCN2EZQ5.css","assets/GroupBuilder-BTot24Pr.js","assets/GroupBuilder-CpbMByEC.css","assets/GroupEdit-Db7E5OJj.js","assets/GroupEdit-D9lmggXK.css","assets/AdminUsers-B7nEYj4N.js","assets/AdminUsers-B0sl0uHS.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.41 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function js(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},Ut=[],Ye=()=>{},ui=()=>!1,$n=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wn=e=>e.startsWith("onUpdate:"),de=Object.assign,ks=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lo=Object.prototype.hasOwnProperty,W=(e,t)=>Lo.call(e,t),V=Array.isArray,Bt=e=>Sn(e)==="[object Map]",Yt=e=>Sn(e)==="[object Set]",ur=e=>Sn(e)==="[object Date]",B=e=>typeof e=="function",se=e=>typeof e=="string",Je=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",fi=e=>(q(e)||B(e))&&B(e.then)&&B(e.catch),di=Object.prototype.toString,Sn=e=>di.call(e),Vo=e=>Sn(e).slice(8,-1),hi=e=>Sn(e)==="[object Object]",Gs=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cn=js(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fo=/-\w/g,ve=qn(e=>e.replace(Fo,t=>t.slice(1).toUpperCase())),Ho=/\B([A-Z])/g,vt=qn(e=>e.replace(Ho,"-$1").toLowerCase()),zn=qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=qn(e=>e?`on${zn(e)}`:""),ze=(e,t)=>!Object.is(e,t),In=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Yn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fr;const Jn=()=>fr||(fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ks(e){if(V(e)){const t={};for(let n=0;n{if(n){const s=n.split(Bo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(se(e))t=e;else if(V(e))for(let n=0;n_t(n,t))}const mi=e=>!!(e&&e.__v_isRef===!0),At=e=>se(e)?e:e==null?"":V(e)||q(e)&&(e.toString===di||!B(e.toString))?mi(e)?At(e.value):JSON.stringify(e,_i,2):String(e),_i=(e,t)=>mi(t)?_i(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[ls(s,i)+" =>"]=r,n),{})}:Yt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:Je(t)?ls(t):q(t)&&!V(t)&&!hi(t)?String(t):t,ls=(e,t="")=>{var n;return Je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.41 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let fe;class Wo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&fe&&(fe.active?(this.parent=fe,this.index=(fe.scopes||(fe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(fe===this)fe=this.prevScope;else{let t=fe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(un){let t=un;for(un=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),zs(s),zo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xs(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Ie;Z=e,Ie=!0;try{Ei(e);const r=e.fn(e._value);(t.version===0||ze(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Z=n,Ie=s,wi(e),e.flags&=-3}}function zs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)zs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ie=!0;const Ai=[];function ot(){Ai.push(Ie),Ie=!1}function lt(){const e=Ai.pop();Ie=e===void 0?!0:e}function dr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let gn=0;class Yo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ys{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Z||!Ie||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new Yo(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,xi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=s)}return n}trigger(t){this.version++,gn++,this.notify(t)}notify(t){Ws();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{qs()}}}function xi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)xi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Rs=new WeakMap,Ct=Symbol(""),Ts=Symbol(""),mn=Symbol("");function he(e,t,n){if(Ie&&Z){let s=Rs.get(e);s||Rs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Ys),r.map=s,r.key=n),r.track()}}function st(e,t,n,s,r,i){const o=Rs.get(e);if(!o){gn++;return}const l=c=>{c&&c.trigger()};if(Ws(),t==="clear")o.forEach(l);else{const c=V(e),f=c&&Gs(n);if(c&&n==="length"){const u=Number(s);o.forEach((h,g)=>{(g==="length"||g===mn||!Je(g)&&g>=u)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(mn)),t){case"add":c?f&&l(o.get("length")):(l(o.get(Ct)),Bt(e)&&l(o.get(Ts)));break;case"delete":c||(l(o.get(Ct)),Bt(e)&&l(o.get(Ts)));break;case"set":Bt(e)&&l(o.get(Ct));break}}qs()}function Dt(e){const t=$(e);return t===e?t:(he(t,"iterate",mn),Pe(e)?t:t.map(Me))}function Qn(e){return he(e=$(e),"iterate",mn),e}function We(e,t){return ct(e)?Kt(Pt(e)?Me(t):t):Me(t)}const Jo={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>We(this,e))},concat(...e){return Dt(this).concat(...e.map(t=>V(t)?Dt(t):t))},entries(){return as(this,"entries",e=>(e[1]=We(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,n=>n.map(s=>We(this,s)),arguments)},find(e,t){return Xe(this,"find",e,t,n=>We(this,n),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,n=>We(this,n),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return us(this,"includes",e)},indexOf(...e){return us(this,"indexOf",e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return us(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return Zt(this,"pop")},push(...e){return Zt(this,"push",e)},reduce(e,...t){return hr(this,"reduce",e,t)},reduceRight(e,...t){return hr(this,"reduceRight",e,t)},shift(){return Zt(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return Zt(this,"splice",e)},toReversed(){return Dt(this).toReversed()},toSorted(e){return Dt(this).toSorted(e)},toSpliced(...e){return Dt(this).toSpliced(...e)},unshift(...e){return Zt(this,"unshift",e)},values(){return as(this,"values",e=>We(this,e))}};function as(e,t,n){const s=Qn(e),r=s[t]();return s!==e&&!Pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const Qo=Array.prototype;function Xe(e,t,n,s,r,i){const o=Qn(e),l=o!==e&&!Pe(e),c=o[t];if(c!==Qo[t]){const h=c.apply(e,i);return l?Me(h):h}let f=n;o!==e&&(l?f=function(h,g){return n.call(this,We(e,h),g,e)}:n.length>2&&(f=function(h,g){return n.call(this,h,g,e)}));const u=c.call(o,f,s);return l&&r?r(u):u}function hr(e,t,n,s){const r=Qn(e),i=r!==e&&!Pe(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(f,u,h){return l&&(l=!1,f=We(e,f)),n.call(this,f,We(e,u),h,e)}):n.length>3&&(o=function(f,u,h){return n.call(this,f,u,h,e)}));const c=r[t](o,...s);return l?We(e,c):c}function us(e,t,n){const s=$(e);he(s,"iterate",mn);const r=s[t](...n);return(r===-1||r===!1)&&Xs(n[0])?(n[0]=$(n[0]),s[t](...n)):r}function Zt(e,t,n=[]){ot(),Ws();const s=$(e)[t].apply(e,n);return qs(),lt(),s}const Xo=js("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function Zo(e){Je(e)||(e=String(e));const t=$(this);return he(t,"has",e),t.hasOwnProperty(e)}class Ti{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?al:Ii:i?Oi:Pi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=V(t);if(!r){let c;if(o&&(c=Jo[n]))return c;if(n==="hasOwnProperty")return Zo}const l=Reflect.get(t,n,ge(t)?t:s);if((Je(n)?Ri.has(n):Xo(n))||(r||he(t,"get",n),i))return l;if(ge(l)){const c=o&&Gs(n)?l:l.value;return r&&q(c)?Ps(c):c}return q(l)?r?Ps(l):Jt(l):l}}class Ci extends Ti{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=V(t)&&Gs(n);if(!this._isShallow){const f=ct(i);if(!Pe(s)&&!ct(s)&&(i=$(i),s=$(s)),!o&&ge(i)&&!ge(s))return f||(i.value=s),!0}const l=o?Number(n)e,Rn=e=>Reflect.getPrototypeOf(e);function rl(e,t,n){return function(...s){const r=this.__v_raw,i=$(r),o=Bt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),u=n?Cs:t?Kt:Me;return!t&&he(i,"iterate",c?Ts:Ct),de(Object.create(f),{next(){const{value:h,done:g}=f.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}}})}}function Tn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function il(e,t){const n={get(r){const i=this.__v_raw,o=$(i),l=$(r);e||(ze(r,l)&&he(o,"get",r),he(o,"get",l));const{has:c}=Rn(o),f=t?Cs:e?Kt:Me;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&he($(r),"iterate",Ct),r.size},has(r){const i=this.__v_raw,o=$(i),l=$(r);return e||(ze(r,l)&&he(o,"has",r),he(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=$(l),f=t?Cs:e?Kt:Me;return!e&&he(c,"iterate",Ct),l.forEach((u,h)=>r.call(i,f(u),f(h),o))}};return de(n,e?{add:Tn("add"),set:Tn("set"),delete:Tn("delete"),clear:Tn("clear")}:{add(r){const i=$(this),o=Rn(i),l=$(r),c=!t&&!Pe(r)&&!ct(r)?l:r;return o.has.call(i,c)||ze(r,c)&&o.has.call(i,r)||ze(l,c)&&o.has.call(i,l)||(i.add(c),st(i,"add",c,c)),this},set(r,i){!t&&!Pe(i)&&!ct(i)&&(i=$(i));const o=$(this),{has:l,get:c}=Rn(o);let f=l.call(o,r);f||(r=$(r),f=l.call(o,r));const u=c.call(o,r);return o.set(r,i),f?ze(i,u)&&st(o,"set",r,i):st(o,"add",r,i),this},delete(r){const i=$(this),{has:o,get:l}=Rn(i);let c=o.call(i,r);c||(r=$(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&st(i,"delete",r,void 0),f},clear(){const r=$(this),i=r.size!==0,o=r.clear();return i&&st(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=rl(r,e,t)}),n}function Js(e,t){const n=il(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(W(n,r)&&r in s?n:s,r,i)}const ol={get:Js(!1,!1)},ll={get:Js(!1,!0)},cl={get:Js(!0,!1)};const Pi=new WeakMap,Oi=new WeakMap,Ii=new WeakMap,al=new WeakMap;function ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jt(e){return ct(e)?e:Qs(e,!1,tl,ol,Pi)}function Ni(e){return Qs(e,!1,sl,ll,Oi)}function Ps(e){return Qs(e,!0,nl,cl,Ii)}function Qs(e,t,n,s,r){if(!q(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=ul(Vo(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Pt(e){return ct(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function ct(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function Xs(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function fl(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&pi(e,"__v_skip",!0),e}const Me=e=>q(e)?Jt(e):e,Kt=e=>q(e)?Ps(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function dl(e){return Mi(e,!1)}function hl(e){return Mi(e,!0)}function Mi(e,t){return ge(e)?e:new pl(e,t)}class pl{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$(t),this._value=n?t:Me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||ct(t);t=s?t:$(t),ze(t,n)&&(this._rawValue=t,this._value=s?t:Me(t),this.dep.trigger())}}function ae(e){return ge(e)?e.value:e}const gl={get:(e,t,n)=>t==="__v_raw"?e:ae(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ge(r)&&!ge(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Di(e){return Pt(e)?e:new Proxy(e,gl)}class ml{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return bi(this,!0),!0}get value(){const t=this.dep.track();return Si(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _l(e,t,n=!1){let s,r;return B(e)?s=e:(s=e.get,r=e.set),new ml(s,r,n)}const Cn={},Ln=new WeakMap;let xt;function yl(e,t=!1,n=xt){if(n){let s=Ln.get(n);s||Ln.set(n,s=[]),s.push(e)}}function vl(e,t,n=X){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=O=>r?O:Pe(O)||r===!1||r===0?rt(O,1):rt(O);let u,h,g,m,I=!1,x=!1;if(ge(e)?(h=()=>e.value,I=Pe(e)):Pt(e)?(h=()=>f(e),I=!0):V(e)?(x=!0,I=e.some(O=>Pt(O)||Pe(O)),h=()=>e.map(O=>{if(ge(O))return O.value;if(Pt(O))return f(O);if(B(O))return c?c(O,2):O()})):B(e)?t?h=c?()=>c(e,2):e:h=()=>{if(g){ot();try{g()}finally{lt()}}const O=xt;xt=u;try{return c?c(e,3,[m]):e(m)}finally{xt=O}}:h=Ye,t&&r){const O=h,J=r===!0?1/0:r;h=()=>rt(O(),J)}const U=qo(),F=()=>{u.stop(),U&&U.active&&ks(U.effects,u)};if(i&&t){const O=t;t=(...J)=>{const ie=O(...J);return F(),ie}}let C=x?new Array(e.length).fill(Cn):Cn;const N=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const J=u.run();if(O||r||I||(x?J.some((ie,ee)=>ze(ie,C[ee])):ze(J,C))){g&&g();const ie=xt;xt=u;try{const ee=[J,C===Cn?void 0:x&&C[0]===Cn?[]:C,m];C=J,c?c(t,3,ee):t(...ee)}finally{xt=ie}}}else u.run()};return l&&l(N),u=new yi(h),u.scheduler=o?()=>o(N,!1):N,m=O=>yl(O,!1,u),g=u.onStop=()=>{const O=Ln.get(u);if(O){if(c)c(O,4);else for(const J of O)J();Ln.delete(u)}},t?s?N(!0):C=u.run():o?o(N.bind(null,!0),!0):u.run(),F.pause=u.pause.bind(u),F.resume=u.resume.bind(u),F.stop=F,F}function rt(e,t=1/0,n){if(t<=0||!q(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ge(e))rt(e.value,t,n);else if(V(e))for(let s=0;s{rt(s,t,n)});else if(hi(e)){for(const s in e)rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rt(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.41 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function An(e,t,n,s){try{return s?e(...s):e()}catch(r){Xn(r,t,n)}}function De(e,t,n,s){if(B(e)){const r=An(e,t,n,s);return r&&fi(r)&&r.catch(i=>{Xn(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i>>1,r=ye[s],i=_n(r);i=_n(n)?ye.push(e):ye.splice(El(t),0,e),e.flags|=1,Vi()}}function Vi(){Vn||(Vn=Li.then(Hi))}function wl(e){if(!V(e))gt&&e.id===-1?gt.splice(Lt+1,0,e):e.flags&1||(kt.push(e),e.flags|=1);else for(let t=0;t_n(n)-_n(s));if(kt.length=0,gt){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Hi(e){try{for($e=0;$e{s._d&&Bn(-1);const i=Fn(t),o=Ot.length;let l;try{l=e(...r)}finally{for(let c=Ot.length;c>o;c--)fo();Fn(i),s._d&&Bn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Mu(e,t){if(Se===null)return e;const n=ss(Se),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&B(t)?t.call(s&&s.proxy):t}}const Sl=Symbol.for("v-scx"),Al=()=>Ne(Sl);function Mn(e,t,n){return Bi(e,t,n)}function Bi(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=de({},n),c=t&&s||!t&&i!=="post";let f;if(bn){if(i==="sync"){const m=Al();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=Ye,m.resume=Ye,m.pause=Ye,m}}const u=pe;l.call=(m,I,x)=>De(m,u,I,x);let h=!1;i==="post"?l.scheduler=m=>{Ee(m,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():er(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const g=vl(e,t,l);return bn&&(f?f.push(g):c&&g()),g}function xl(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?ji(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=xn(this),l=Bi(r,i.bind(s),n);return o(),l}function ji(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,fs=Symbol("_leaveCb");function Tl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==at){t=n;break}}return t}function ki(e){if(!nr(e))return Zn(e.type)&&e.children?Tl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&B(n.default))return n.default()}}function tr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;tr(Zn(n.type)&&ki(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gi(e,t){return B(e)?de({name:e.name},t,{setup:e}):e}function Ki(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Hn=new WeakMap;function fn(e,t,n,s,r=!1){if(V(e)){e.forEach((x,U)=>fn(x,t&&(V(t)?t[U]:t),n,s,r));return}if(dn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&fn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ss(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,u=l.refs===X?l.refs={}:l.refs,h=l.setupState,g=$(h),m=h===X?ui:x=>gr(u,x)?!1:W(g,x),I=(x,U)=>!(U&&gr(u,U));if(f!=null&&f!==c){if(mr(t),se(f))u[f]=null,m(f)&&(h[f]=null);else if(ge(f)){const x=t;I(f,x.k)&&(f.value=null),x.k&&(u[x.k]=null)}}if(B(c))An(c,l,12,[o,u]);else{const x=se(c),U=ge(c);if(x||U){const F=()=>{if(e.f){const C=x?m(c)?h[c]:u[c]:I()||!e.k?c.value:u[e.k];if(r)V(C)&&ks(C,i);else if(V(C))C.includes(i)||C.push(i);else if(x)u[c]=[i],m(c)&&(h[c]=u[c]);else{const N=[i];I(c,e.k)&&(c.value=N),e.k&&(u[e.k]=N)}}else x?(u[c]=o,m(c)&&(h[c]=o)):U&&(I(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){const C=()=>{F(),Hn.delete(e)};C.id=-1,Hn.set(e,C),Ee(C,n)}else mr(e),F()}}}function mr(e){const t=Hn.get(e);t&&(t.flags|=8,Hn.delete(e))}Jn().requestIdleCallback;Jn().cancelIdleCallback;const dn=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function Cl(e,t){$i(e,"a",t)}function Pl(e,t){$i(e,"da",t)}function $i(e,t,n=pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(es(t,s,n),n){let r=n.parent;for(;r&&r.parent;)nr(r.parent.vnode)&&Ol(s,t,n,r),r=r.parent}}function Ol(e,t,n,s){const r=es(t,e,s,!0);qi(()=>{ks(s[t],r)},n)}function es(e,t,n=pe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ot();const l=xn(n),c=De(t,n,e,o);return l(),lt(),c});return s?r.unshift(i):r.push(i),i}}const ut=e=>(t,n=pe)=>{(!bn||e==="sp")&&es(e,(...s)=>t(...s),n)},Il=ut("bm"),Wi=ut("m"),Nl=ut("bu"),Ml=ut("u"),Dl=ut("bum"),qi=ut("um"),Ll=ut("sp"),Vl=ut("rtg"),Fl=ut("rtc");function Hl(e,t=pe){es("ec",e,t)}const Ul="components";function _r(e,t){return jl(Ul,e,!0,t)||e}const Bl=Symbol.for("v-ndc");function jl(e,t,n=!0,s=!1){const r=Se||pe;if(r){const i=r.type;{const l=xc(i,!1);if(l&&(l===t||l===ve(t)||l===zn(ve(t))))return i}const o=yr(r[e]||i[e],t)||yr(r.appContext[e],t);return!o&&s?i:o}}function yr(e,t){return e&&(e[t]||e[ve(t)]||e[zn(ve(t))])}function Du(e,t,n,s){let r;const i=n,o=V(e);if(o||se(e)){const l=o&&Pt(e);let c=!1,f=!1;l&&(c=!Pe(e),f=ct(e),e=Qn(e)),r=new Array(e.length);for(let u=0,h=e.length;ut(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;ce?go(e)?ss(e):Os(e.parent):null,hn=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Os(e.parent),$root:e=>Os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yi(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=Zs.bind(e.proxy)),$watch:e=>xl.bind(e)}),ds=(e,t)=>e!==X&&!e.__isScriptSetup&&W(e,t),kl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ds(s,t))return o[t]=1,s[t];if(r!==X&&W(r,t))return o[t]=2,r[t];if(W(i,t))return o[t]=3,i[t];if(n!==X&&W(n,t))return o[t]=4,n[t];Is&&(o[t]=0)}}const f=hn[t];let u,h;if(f)return t==="$attrs"&&he(e.attrs,"get",""),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==X&&W(n,t))return o[t]=4,n[t];if(h=c.config.globalProperties,W(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return ds(r,t)?(r[t]=n,!0):s!==X&&W(s,t)?(s[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==X&&l[0]!=="$"&&W(e,l)||ds(t,l)||W(i,l)||W(s,l)||W(hn,l)||W(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vr(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Is=!0;function Gl(e){const t=Yi(e),n=e.proxy,s=e.ctx;Is=!1,t.beforeCreate&&br(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:u,beforeMount:h,mounted:g,beforeUpdate:m,updated:I,activated:x,deactivated:U,beforeDestroy:F,beforeUnmount:C,destroyed:N,unmounted:O,render:J,renderTracked:ie,renderTriggered:ee,errorCaptured:Ve,serverPrefetch:ft,expose:Fe,inheritAttrs:dt,components:bt,directives:He,filters:Qt}=t;if(f&&Kl(f,s,null),o)for(const z in o){const G=o[z];B(G)&&(s[z]=G.bind(n))}if(r){const z=r.call(n,n);q(z)&&(e.data=Jt(z))}if(Is=!0,i)for(const z in i){const G=i[z],Qe=B(G)?G.bind(n,n):B(G.get)?G.get.bind(n,n):Ye,ht=!B(G)&&B(G.set)?G.set.bind(n):Ye,Ue=Oe({get:Qe,set:ht});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:be=>Ue.value=be})}if(l)for(const z in l)zi(l[z],s,n,z);if(c){const z=B(c)?c.call(n):c;Reflect.ownKeys(z).forEach(G=>{Nn(G,z[G])})}u&&br(u,e,"c");function ce(z,G){V(G)?G.forEach(Qe=>z(Qe.bind(n))):G&&z(G.bind(n))}if(ce(Il,h),ce(Wi,g),ce(Nl,m),ce(Ml,I),ce(Cl,x),ce(Pl,U),ce(Hl,Ve),ce(Fl,ie),ce(Vl,ee),ce(Dl,C),ce(qi,O),ce(Ll,ft),V(Fe))if(Fe.length){const z=e.exposed||(e.exposed={});Fe.forEach(G=>{Object.defineProperty(z,G,{get:()=>n[G],set:Qe=>n[G]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===Ye&&(e.render=J),dt!=null&&(e.inheritAttrs=dt),bt&&(e.components=bt),He&&(e.directives=He),ft&&Ki(e)}function Kl(e,t,n=Ye){V(e)&&(e=Ns(e));for(const s in e){const r=e[s];let i;q(r)?"default"in r?i=Ne(r.from||s,r.default,!0):i=Ne(r.from||s):i=Ne(r),ge(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function br(e,t,n){De(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function zi(e,t,n,s){let r=s.includes(".")?ji(n,s):()=>n[s];if(se(e)){const i=t[e];B(i)&&Mn(r,i)}else if(B(e))Mn(r,e.bind(n));else if(q(e))if(V(e))e.forEach(i=>zi(i,t,n,s));else{const i=B(e.handler)?e.handler.bind(n):t[e.handler];B(i)&&Mn(r,i,e)}}function Yi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>Un(c,f,o,!0)),Un(c,t,o)),q(t)&&i.set(t,c),c}function Un(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Un(e,i,n,!0),r&&r.forEach(o=>Un(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=$l[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const $l={data:Er,props:wr,emits:wr,methods:rn,computed:rn,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:rn,directives:rn,watch:ql,provide:Er,inject:Wl};function Er(e,t){return t?e?function(){return de(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Wl(e,t){return rn(Ns(e),Ns(t))}function Ns(e){if(V(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ve(t)}Modifiers`]||e[`${vt(t)}Modifiers`];function Ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&Jl(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>se(u)?u.trim():u)),o.number&&(r=n.map(Yn)));let l,c=s[l=os(t)]||s[l=os(ve(t))];!c&&i&&(c=s[l=os(vt(t))]),c&&De(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,De(f,e,6,r)}}const Xl=new WeakMap;function Qi(e,t,n=!1){const s=n?Xl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!B(e)){const c=f=>{const u=Qi(f,t,!0);u&&(l=!0,de(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(q(e)&&s.set(e,null),null):(V(i)?i.forEach(c=>o[c]=null):de(o,i),q(e)&&s.set(e,o),o)}function ts(e,t){return!e||!$n(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,vt(t))||W(e,t))}function Sr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:u,props:h,data:g,setupState:m,ctx:I,inheritAttrs:x}=e,U=Fn(e);let F,C;try{if(n.shapeFlag&4){const O=r||s,J=O;F=qe(f.call(J,O,u,h,m,g,I)),C=l}else{const O=t;F=qe(O.length>1?O(h,{attrs:l,slots:o,emit:c}):O(h,null)),C=t.props?l:Zl(l)}}catch(O){Ot.length=0,Xn(O,e,1),F=le(at)}let N=F;if(C&&x!==!1){const O=Object.keys(C),{shapeFlag:J}=N;O.length&&J&7&&(i&&O.some(Wn)&&(C=ec(C,i)),N=$t(N,C,!1,!0))}if(n.dirs&&(N=$t(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition){const O=Zn(N.type)&&ki(N)||N;tr(O,n.transition)}return F=N,Fn(U),F}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},ec=(e,t)=>{const n={};for(const s in e)(!Wn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ar(s,o,f):!!o;if(c&8){const u=t.dynamicProps;for(let h=0;hObject.create(Zi),to=e=>Object.getPrototypeOf(e)===Zi;function sc(e,t,n,s=!1){const r={},i=eo();e.propsDefaults=Object.create(null),no(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Ni(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function rc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=$(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,m]=so(h,t,!0);de(o,g),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return q(e)&&s.set(e,Ut),Ut;if(V(i))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",rr=e=>V(e)?e.map(qe):[qe(e)],oc=(e,t,n)=>{if(t._n)return t;const s=Vt((...r)=>rr(t(...r)),n);return s._c=!1,s},ro=(e,t,n)=>{const s=e._ctx;for(const r in e){if(sr(r))continue;const i=e[r];if(B(i))t[r]=oc(r,i,s);else if(i!=null){const o=rr(i);t[r]=()=>o}}},io=(e,t)=>{const n=rr(t);e.slots.default=()=>n},oo=(e,t,n)=>{for(const s in t)(n||!sr(s))&&(e[s]=t[s])},lc=(e,t,n)=>{const s=e.slots=eo();if(e.vnode.shapeFlag&32){const r=t._;r?(oo(s,t,n),n&&pi(s,"_",r,!0)):ro(t,s)}else t&&io(e,t)},cc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:oo(r,t,n):(i=!t.$stable,ro(t,r)),o=t}else t&&(io(e,t),o={default:1});if(i)for(const l in r)!sr(l)&&o[l]==null&&delete r[l]},Ee=hc;function ac(e){return uc(e)}function uc(e,t){const n=Jn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:u,parentNode:h,nextSibling:g,setScopeId:m=Ye,insertStaticContent:I}=e,x=(a,d,p,y=null,b=null,_=null,A=void 0,S=null,w=!!d.dynamicChildren)=>{if(a===d)return;a&&!en(a,d)&&(y=v(a),be(a,b,_,!0),a=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:E,ref:L,shapeFlag:T}=d;switch(E){case ns:U(a,d,p,y);break;case at:F(a,d,p,y);break;case ps:a==null&&C(d,p,y,A);break;case tt:bt(a,d,p,y,b,_,A,S,w);break;default:T&1?J(a,d,p,y,b,_,A,S,w):T&6?He(a,d,p,y,b,_,A,S,w):(T&64||T&128)&&E.process(a,d,p,y,b,_,A,S,w,M)}L!=null&&b?fn(L,a&&a.ref,_,d||a,!d):L==null&&a&&a.ref!=null&&fn(a.ref,null,_,a,!0)},U=(a,d,p,y)=>{if(a==null)s(d.el=l(d.children),p,y);else{const b=d.el=a.el;d.children!==a.children&&f(b,d.children)}},F=(a,d,p,y)=>{a==null?s(d.el=c(d.children||""),p,y):d.el=a.el},C=(a,d,p,y)=>{[a.el,a.anchor]=I(a.children,d,p,y,a.el,a.anchor)},N=({el:a,anchor:d},p,y)=>{let b;for(;a&&a!==d;)b=g(a),s(a,p,y),a=b;s(d,p,y)},O=({el:a,anchor:d})=>{let p;for(;a&&a!==d;)p=g(a),r(a),a=p;r(d)},J=(a,d,p,y,b,_,A,S,w)=>{if(d.type==="svg"?A="svg":d.type==="math"&&(A="mathml"),a==null)ie(d,p,y,b,_,A,S,w);else{const E=a.el&&a.el._isVueCE?a.el:null;try{E&&E._beginPatch(),ft(a,d,b,_,A,S,w)}finally{E&&E._endPatch()}}},ie=(a,d,p,y,b,_,A,S)=>{let w,E;const{props:L,shapeFlag:T,transition:D,dirs:H}=a;if(w=a.el=o(a.type,_,L&&L.is,L),T&8?u(w,a.children):T&16&&Ve(a.children,w,null,y,b,hs(a,_),A,S),H&&wt(a,null,y,"created"),ee(w,a,a.scopeId,A,y),L){for(const Q in L)Q!=="value"&&!cn(Q)&&i(w,Q,null,L[Q],_,y);"value"in L&&i(w,"value",null,L.value,_),(E=L.onVnodeBeforeMount)&&Ge(E,y,a)}H&&wt(a,null,y,"beforeMount");const k=fc(b,D);k&&D.beforeEnter(w),s(w,d,p),((E=L&&L.onVnodeMounted)||k||H)&&Ee(()=>{try{E&&Ge(E,y,a),k&&D.enter(w),H&&wt(a,null,y,"mounted")}finally{}},b)},ee=(a,d,p,y,b)=>{if(p&&m(a,p),y)for(let _=0;_{for(let E=w;E{const S=d.el=a.el;let{patchFlag:w,dynamicChildren:E,dirs:L}=d;w|=a.patchFlag&16;const T=a.props||X,D=d.props||X;let H;if(p&&St(p,!1),(H=D.onVnodeBeforeUpdate)&&Ge(H,p,d,a),L&&wt(d,a,p,"beforeUpdate"),p&&St(p,!0),E&&(!a.dynamicChildren||a.dynamicChildren.length!==E.length)&&(w=0,A=!1,E=null),(T.innerHTML&&D.innerHTML==null||T.textContent&&D.textContent==null)&&u(S,""),E?Fe(a.dynamicChildren,E,S,p,y,hs(d,b),_):A||G(a,d,S,null,p,y,hs(d,b),_,!1),w>0){if(w&16)dt(S,T,D,p,b);else if(w&2&&T.class!==D.class&&i(S,"class",null,D.class,b),w&4&&i(S,"style",T.style,D.style,b),w&8){const k=d.dynamicProps;for(let Q=0;Q{H&&Ge(H,p,d,a),L&&wt(d,a,p,"updated")},y)},Fe=(a,d,p,y,b,_,A)=>{for(let S=0;S{if(d!==p){if(d!==X)for(const _ in d)!cn(_)&&!(_ in p)&&i(a,_,d[_],null,b,y);for(const _ in p){if(cn(_))continue;const A=p[_],S=d[_];A!==S&&_!=="value"&&i(a,_,S,A,b,y)}"value"in p&&i(a,"value",d.value,p.value,b)}},bt=(a,d,p,y,b,_,A,S,w)=>{const E=d.el=a?a.el:l(""),L=d.anchor=a?a.anchor:l("");let{patchFlag:T,dynamicChildren:D,slotScopeIds:H}=d;H&&(S=S?S.concat(H):H),a==null?(s(E,p,y),s(L,p,y),Ve(d.children||[],p,L,b,_,A,S,w)):T>0&&T&64&&D&&a.dynamicChildren&&a.dynamicChildren.length===D.length?(Fe(a.dynamicChildren,D,p,b,_,A,S),(d.key!=null||b&&d===b.subTree)&&lo(a,d,!0)):G(a,d,p,L,b,_,A,S,w)},He=(a,d,p,y,b,_,A,S,w)=>{d.slotScopeIds=S,a==null?d.shapeFlag&512?b.ctx.activate(d,p,y,A,w):Qt(d,p,y,b,_,A,w):It(a,d,w)},Qt=(a,d,p,y,b,_,A)=>{const S=a.component=vc(a,y,b);if(nr(a)&&(S.ctx.renderer=M),Ec(S,!1,A),S.asyncDep){if(b&&b.registerDep(S,ce,A),!a.el){const w=S.subTree=le(at);F(null,w,d,p),a.placeholder=w.el}}else ce(S,a,d,p,b,_,A)},It=(a,d,p)=>{const y=d.component=a.component;if(tc(a,d,p))if(y.asyncDep&&!y.asyncResolved){z(y,d,p);return}else y.next=d,y.update();else d.el=a.el,y.vnode=d},ce=(a,d,p,y,b,_,A)=>{const S=()=>{if(a.isMounted){let{next:T,bu:D,u:H,parent:k,vnode:Q}=a;{const je=co(a);if(je){T&&(T.el=Q.el,z(a,T,A)),je.asyncDep.then(()=>{Ee(()=>{a.isUnmounted||E()},b)});return}}let Y=T,re;St(a,!1),T?(T.el=Q.el,z(a,T,A)):T=Q,D&&In(D),(re=T.props&&T.props.onVnodeBeforeUpdate)&&Ge(re,k,T,Q),St(a,!0);const ue=Sr(a),Be=a.subTree;a.subTree=ue,x(Be,ue,h(Be.el),v(Be),a,b,_),T.el=ue.el,Y===null&&nc(a,ue.el),H&&Ee(H,b),(re=T.props&&T.props.onVnodeUpdated)&&Ee(()=>Ge(re,k,T,Q),b)}else{let T;const{el:D,props:H}=d,{bm:k,m:Q,parent:Y,root:re,type:ue}=a,Be=dn(d);St(a,!1),k&&In(k),!Be&&(T=H&&H.onVnodeBeforeMount)&&Ge(T,Y,d),St(a,!0);{re.ce&&re.ce._hasShadowRoot()&&re.ce._injectChildStyle(ue,a.parent?a.parent.type:void 0);const je=a.subTree=Sr(a);x(null,je,p,y,a,b,_),d.el=je.el}if(Q&&Ee(Q,b),!Be&&(T=H&&H.onVnodeMounted)){const je=d;Ee(()=>Ge(T,Y,je),b)}(d.shapeFlag&256||Y&&dn(Y.vnode)&&Y.vnode.shapeFlag&256)&&a.a&&Ee(a.a,b),a.isMounted=!0,d=p=y=null}};a.scope.on();const w=a.effect=new yi(S);a.scope.off();const E=a.update=w.run.bind(w),L=a.job=w.runIfDirty.bind(w);L.i=a,L.id=a.uid,w.scheduler=()=>er(L),St(a,!0),E()},z=(a,d,p)=>{d.component=a;const y=a.vnode.props;a.vnode=d,a.next=null,rc(a,d.props,y,p),cc(a,d.children,p),ot(),pr(a),lt()},G=(a,d,p,y,b,_,A,S,w=!1)=>{const E=a&&a.children,L=a?a.shapeFlag:0,T=d.children,{patchFlag:D,shapeFlag:H}=d;if(D>0){if(D&128){ht(E,T,p,y,b,_,A,S,w);return}else if(D&256){Qe(E,T,p,y,b,_,A,S,w);return}}H&8?(L&16&&Re(E,b,_),T!==E&&u(p,T)):L&16?H&16?ht(E,T,p,y,b,_,A,S,w):Re(E,b,_,!0):(L&8&&u(p,""),H&16&&Ve(T,p,y,b,_,A,S,w))},Qe=(a,d,p,y,b,_,A,S,w)=>{a=a||Ut,d=d||Ut;const E=a.length,L=d.length,T=Math.min(E,L);let D;for(D=0;DL?Re(a,b,_,!0,!1,T):Ve(d,p,y,b,_,A,S,w,T)},ht=(a,d,p,y,b,_,A,S,w)=>{let E=0;const L=d.length;let T=a.length-1,D=L-1;for(;E<=T&&E<=D;){const H=a[E],k=d[E]=w?nt(d[E]):qe(d[E]);if(en(H,k))x(H,k,p,null,b,_,A,S,w);else break;E++}for(;E<=T&&E<=D;){const H=a[T],k=d[D]=w?nt(d[D]):qe(d[D]);if(en(H,k))x(H,k,p,null,b,_,A,S,w);else break;T--,D--}if(E>T){if(E<=D){const H=D+1,k=HD)for(;E<=T;)be(a[E],b,_,!0),E++;else{const H=E,k=E,Q=new Map;for(E=k;E<=D;E++){const we=d[E]=w?nt(d[E]):qe(d[E]);we.key!=null&&Q.set(we.key,E)}let Y,re=0;const ue=D-k+1;let Be=!1,je=0;const Xt=new Array(ue);for(E=0;E=ue){be(we,b,_,!0);continue}let ke;if(we.key!=null)ke=Q.get(we.key);else for(Y=k;Y<=D;Y++)if(Xt[Y-k]===0&&en(we,d[Y])){ke=Y;break}ke===void 0?be(we,b,_,!0):(Xt[ke-k]=E+1,ke>=je?je=ke:Be=!0,x(we,d[ke],p,null,b,_,A,S,w),re++)}const lr=Be?dc(Xt):Ut;for(Y=lr.length-1,E=ue-1;E>=0;E--){const we=k+E,ke=d[we],cr=d[we+1],ar=we+1{const{el:_,type:A,transition:S,children:w,shapeFlag:E}=a;if(E&6){Ue(a.component.subTree,d,p,y);return}if(E&128){a.suspense.move(d,p,y);return}if(E&64){A.move(a,d,p,M);return}if(A===tt){s(_,d,p);for(let T=0;TS.enter(_),b));else{const{leave:T,delayLeave:D,afterLeave:H}=S,k=()=>{a.ctx.isUnmounted?r(_):s(_,d,p)},Q=()=>{const Y=_._isLeaving||!!_[fs];_._isLeaving&&_[fs](!0),S.persisted&&!Y?k():T(_,()=>{k(),H&&H()})};D?D(_,k,Q):Q()}else s(_,d,p)},be=(a,d,p,y=!1,b=!1)=>{const{type:_,props:A,ref:S,children:w,dynamicChildren:E,shapeFlag:L,patchFlag:T,dirs:D,cacheIndex:H,memo:k}=a;if(T===-2&&(b=!1),S!=null&&(ot(),fn(S,null,p,a,!0),lt()),H!=null&&(d.renderCache[H]=void 0),L&256){d.ctx.deactivate(a);return}const Q=L&1&&D,Y=!dn(a);let re;if(Y&&(re=A&&A.onVnodeBeforeUnmount)&&Ge(re,d,a),L&6)Et(a.component,p,y);else{if(L&128){a.suspense.unmount(p,y);return}Q&&wt(a,null,d,"beforeUnmount"),L&64?a.type.remove(a,d,p,M,y):E&&!E.hasOnce&&(_!==tt||T>0&&T&64)?Re(E,d,p,!1,!0):(_===tt&&T&384||!b&&L&16)&&Re(w,d,p),y&&Nt(a)}const ue=k!=null&&H==null;(Y&&(re=A&&A.onVnodeUnmounted)||Q||ue)&&Ee(()=>{re&&Ge(re,d,a),Q&&wt(a,null,d,"unmounted"),ue&&(a.el=null)},p)},Nt=a=>{const{type:d,el:p,anchor:y,transition:b}=a;if(d===tt){Mt(p,y);return}if(d===ps){O(a);return}const _=()=>{r(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:A,delayLeave:S}=b,w=()=>A(p,_);S?S(a.el,_,w):w()}else _()},Mt=(a,d)=>{let p;for(;a!==d;)p=g(a),r(a),a=p;r(d)},Et=(a,d,p)=>{const{bum:y,scope:b,job:_,subTree:A,um:S,m:w,a:E}=a;Rr(w),Rr(E),y&&In(y),b.stop(),_&&(_.flags|=8,be(A,a,d,p)),S&&Ee(S,d),Ee(()=>{a.isUnmounted=!0},d)},Re=(a,d,p,y=!1,b=!1,_=0)=>{for(let A=_;A{if(a.shapeFlag&6)return v(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=g(a.anchor||a.el),p=d&&d[Rl];return p?g(p):d};let P=!1;const R=(a,d,p)=>{let y;a==null?d._vnode&&(be(d._vnode,null,null,!0),y=d._vnode.component):x(d._vnode||null,a,d,null,null,null,p),d._vnode=a,P||(P=!0,pr(y),Fi(),P=!1)},M={p:x,um:be,m:Ue,r:Nt,mt:Qt,mc:Ve,pc:G,pbc:Fe,n:v,o:e};return{render:R,hydrate:void 0,createApp:Yl(R)}}function hs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function St({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function lo(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function co(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:co(t)}function Rr(e){if(e)for(let t=0;te.__isSuspense;function hc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):wl(e)}const tt=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),ps=Symbol.for("v-stc"),Ot=[];let Ae=null;function on(e=!1){Ot.push(Ae=e?null:[])}function fo(){Ot.pop(),Ae=Ot[Ot.length-1]||null}let yn=1;function Bn(e,t=!1){yn+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function ho(e){return e.dynamicChildren=yn>0?Ae||Ut:null,fo(),yn>0&&Ae&&Ae.push(e),e}function Tr(e,t,n,s,r,i){return ho(Rt(e,t,n,s,r,i,!0))}function Ds(e,t,n,s,r){return ho(le(e,t,n,s,r,!0))}function jn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const po=({key:e})=>e??null,Dn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||ge(e)||B(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function Rt(e,t=null,n=null,s=0,r=null,i=e===tt?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&po(t),ref:t&&Dn(t),scopeId:Ui,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Se};return l?(kn(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),yn>0&&!o&&Ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ae.push(c),c}const le=pc;function pc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Bl)&&(e=at),jn(e)){const l=$t(e,t,!0);return n&&kn(l,n),yn>0&&!i&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(Rc(e)&&(e=e.__vccOpts),t){t=gc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=jt(l)),q(c)&&(Xs(c)&&!V(c)&&(c=de({},c)),t.style=Ks(c))}const o=se(e)?1:uo(e)?128:Zn(e)?64:q(e)?4:B(e)?2:0;return Rt(e,t,n,s,r,o,i,!0)}function gc(e){return e?Xs(e)||to(e)?de({},e):e:null}function $t(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?mc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&po(f),ref:t&&t.ref?n&&i?V(i)?i.concat(Dn(t)):[i,Dn(t)]:Dn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&tr(u,c.clone(u)),u}function Ft(e=" ",t=0){return le(ns,null,e,t)}function Cr(e="",t=!1){return t?(on(),Ds(at,null,e)):le(at,null,e)}function qe(e){return e==null||typeof e=="boolean"?le(at):V(e)?le(tt,null,e.slice()):jn(e)?nt(e):le(ns,null,String(e))}function nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function kn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),kn(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!to(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(B(t)){if(s&65){kn(e,{default:t});return}t={default:t,_ctx:Se},n=32}else t=String(t),s&64?(n=16,t=[Ft(t)]):n=8;e.children=t,e.shapeFlag|=n}function mc(...e){const t={};for(let n=0;npe||Se;let Gn,vn;{const e=Jn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Gn=t("__VUE_INSTANCE_SETTERS__",n=>pe=n),vn=t("__VUE_SSR_SETTERS__",n=>bn=n)}const xn=e=>{const t=pe;return Gn(e),e.scope.on(),()=>{e.scope.off(),Gn(t)}},Pr=()=>{pe&&pe.scope.off(),Gn(null)};function go(e){return e.vnode.shapeFlag&4}let bn=!1;function Ec(e,t=!1,n=!1){t&&vn(t);const{props:s,children:r}=e.vnode,i=go(e);sc(e,s,i,t),lc(e,r,n||t);const o=i?wc(e,t):void 0;return t&&vn(!1),o}function wc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,kl);const{setup:s}=n;if(s){ot();const r=e.setupContext=s.length>1?Ac(e):null,i=xn(e),o=An(s,e,0,[e.props,r]),l=fi(o);if(lt(),i(),(l||e.sp)&&!dn(e)&&Ki(e),l){if(o.then(Pr,Pr),t)return o.then(c=>{vn(!0);try{Or(e,c,t)}finally{vn(!1)}}).catch(c=>{Xn(c,e,0)});e.asyncDep=o}else Or(e,o)}else mo(e)}function Or(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:q(t)&&(e.setupState=Di(t)),mo(e)}function mo(e,t,n){const s=e.type;e.render||(e.render=s.render||Ye);{const r=xn(e);ot();try{Gl(e)}finally{lt(),r()}}}const Sc={get(e,t){return he(e,"get",""),e[t]}};function Ac(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sc),slots:e.slots,emit:e.emit,expose:t}}function ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Di(fl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}})):e.proxy}function xc(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Rc(e){return B(e)&&"__vccOpts"in e}const Oe=(e,t)=>_l(e,t,bn);function En(e,t,n){try{Bn(-1);const s=arguments.length;return s===2?q(t)&&!V(t)?jn(t)?le(e,null,[t]):le(e,t):le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&jn(n)&&(n=[n]),le(e,t,n))}finally{Bn(1)}}const Tc="3.5.41";/** +* @vue/runtime-dom v3.5.41 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ls;const Ir=typeof window<"u"&&window.trustedTypes;if(Ir)try{Ls=Ir.createPolicy("vue",{createHTML:e=>e})}catch{}const _o=Ls?e=>Ls.createHTML(e):e=>e,Cc="http://www.w3.org/2000/svg",Pc="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,Nr=et&&et.createElement("template"),Oc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?et.createElementNS(Cc,e):t==="mathml"?et.createElementNS(Pc,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Nr.innerHTML=_o(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Nr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ic=Symbol("_vtc");function Nc(e,t,n){const s=e[Ic];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),yo=Symbol("_vsh"),Lu={name:"show",beforeMount(e,{value:t},{transition:n}){e[Kn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),tn(e,!0),s.enter(e)):s.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[Kn]:"none",e[yo]=!t}const Mc=Symbol(""),Dc=/(?:^|;)\s*display\s*:/;function Lc(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&ln(s,l,"")}else for(const o in t)n[o]==null&&ln(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Fc(e,o,!se(t)&&t?t[o]:void 0,l)||ln(s,o,l):ln(s,o,"")}}else if(r){if(t!==n){const o=s[Mc];o&&(n+=";"+o),s.cssText=n,i=Dc.test(n)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?s.display:"",e[yo]&&(s.display="none"))}const Mr=/\s*!important$/;function ln(e,t,n){if(V(n))n.forEach(s=>ln(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Vc(e,t);Mr.test(n)?e.setProperty(vt(s),n.replace(Mr,""),"important"):e[s]=n}}const Dr=["Webkit","Moz","ms"],gs={};function Vc(e,t){const n=gs[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return gs[t]=s;s=zn(s);for(let r=0;rms||(Gc.then(()=>ms=0),ms=Date.now());function $c(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(V(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Nc(e,s,o):t==="style"?Lc(e,n,s):$n(t)?Wn(t)||Uc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qc(e,t,s,o))?(Fr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vr(e,t,s,o,i,t!=="value")):e._isVueCE&&(zc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!se(s)))?Fr(e,ve(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Vr(e,t,s,o))};function qc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ur(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ur(t)&&se(n)?!1:t in e}function zc(e,t){const n=e._def.props;if(!n)return!1;const s=ve(t);return Array.isArray(n)?n.some(r=>ve(r)===s):Object.keys(n).some(r=>ve(r)===s)}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>In(t,n):t};function Yc(e){e.target.composing=!0}function Br(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xe=Symbol("_assign"),Pn=Symbol("_initialValue");function _s(e,t,n){return t&&(e=e.trim()),n&&(e=Yn(e)),e}const jr={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Pn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Pn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[xe]=yt(r);const i=s||r.props&&r.props.type==="number";it(e,t?"change":"input",o=>{o.target.composing||e[xe](_s(e.value,n,i))}),(n||i)&&it(e,"change",()=>{e.value=_s(e.value,n,i)}),t||(it(e,"compositionstart",Yc),it(e,"compositionend",Br),it(e,"change",Br))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Pn];delete e[Pn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[xe](_s(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[xe]=yt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Yn(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},Jc={deep:!0,created(e,t,n){e[xe]=yt(n),it(e,"change",()=>{const s=e._modelValue,r=Wt(e),i=e.checked,o=e[xe];if(V(s)){const l=$s(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Yt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(vo(e,i))})},mounted:kr,beforeUpdate(e,t,n){e[xe]=yt(n),kr(e,t,n)}};function kr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=$s(t,s.props.value)>-1;else if(Yt(t))r=t.has(s.props.value);else{if(t===n)return;r=_t(t,vo(e,!0))}e.checked!==r&&(e.checked=r)}const Qc={created(e,{value:t},n){e.checked=_t(t,n.props.value),e[xe]=yt(n),it(e,"change",()=>{e[xe](Wt(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[xe]=yt(s),t!==n&&(e.checked=_t(t,s.props.value))}},Xc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,it(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Yn(Wt(i)):Wt(i));e[xe](e.multiple?Yt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,Zs(()=>{e._assigning=!1})}),e[xe]=yt(s)},mounted(e,{value:t}){Gr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xe]=yt(n)},updated(e,{value:t}){e._assigning||Gr(e,t)}};function Gr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Yt(t))){for(let r=0,i=e.options.length;rString(f)===String(l)):o.selected=$s(t,l)>-1}else o.selected=t.has(l);else if(_t(Wt(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wt(e){return"_value"in e?e._value:e.value}function vo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Vu={created(e,t,n){On(e,t,n,null,"created")},mounted(e,t,n){On(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){On(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){On(e,t,n,s,"updated")}};function Zc(e,t){switch(e){case"SELECT":return Xc;case"TEXTAREA":return jr;default:switch(t){case"checkbox":return Jc;case"radio":return Qc;default:return jr}}}function On(e,t,n,s,r){const o=Zc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const ea=["ctrl","shift","alt","meta"],ta={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ea.some(n=>e[`${n}Key`]&&!t.includes(n))},Fu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=vt(r.key);if(t.some(o=>o===i||na[o]===i))return e(r)})},sa=de({patchProp:Wc},Oc);let Kr;function ra(){return Kr||(Kr=ac(sa))}const ia=(...e)=>{const t=ra().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=la(s);if(!r)return;const i=t._component;!B(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,oa(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function oa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function la(e){return se(e)?document.querySelector(e):e}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Ht=typeof document<"u";function bo(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ca(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bo(e.default)}const K=Object.assign;function ys(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const pn=()=>{},Le=Array.isArray;function $r(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Eo=/#/g,aa=/&/g,ua=/\//g,fa=/=/g,da=/\?/g,wo=/\+/g,ha=/%5B/g,pa=/%5D/g,So=/%5E/g,ga=/%60/g,Ao=/%7B/g,ma=/%7C/g,xo=/%7D/g,_a=/%20/g;function ir(e){return e==null?"":encodeURI(""+e).replace(ma,"|").replace(ha,"[").replace(pa,"]")}function ya(e){return ir(e).replace(Ao,"{").replace(xo,"}").replace(So,"^")}function Vs(e){return ir(e).replace(wo,"%2B").replace(_a,"+").replace(Eo,"%23").replace(aa,"%26").replace(ga,"`").replace(Ao,"{").replace(xo,"}").replace(So,"^")}function va(e){return Vs(e).replace(fa,"%3D")}function ba(e){return ir(e).replace(Eo,"%23").replace(da,"%3F")}function Ea(e){return ba(e).replace(ua,"%2F")}function wn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const wa=/\/$/,Sa=e=>e.replace(wa,"");function vs(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Ta(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:wn(o)}}function Aa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Wr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xa(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&qt(t.matched[s],n.matched[r])&&Ro(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ro(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ra(e[n],t[n]))return!1;return!0}function Ra(e,t){return Le(e)?qr(e,t):Le(t)?qr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function qr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ta(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Fs=function(e){return e.pop="pop",e.push="push",e}({}),bs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Ca(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sa(e)}const Pa=/^[^#]+#/;function Oa(e,t){return e.replace(Pa,"#")+t}function Ia(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const rs=()=>({left:window.scrollX,top:window.scrollY});function Na(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ia(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zr(e,t){return(history.state?history.state.position-t:-1)+e}const Hs=new Map;function Ma(e,t){Hs.set(e,t)}function Da(e){const t=Hs.get(e);return Hs.delete(e),t}function La(e){return typeof e=="string"||e&&typeof e=="object"}function To(e){return typeof e=="string"||typeof e=="symbol"}let ne=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Co=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function zt(e,t){return K(new Error,{type:e,[Co]:!0},t)}function Ze(e,t){return e instanceof Error&&Co in e&&(t==null||!!(e.type&t))}const Va=["params","query","hash"];function Fa(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Va)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ha(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Vs(r)):[s&&Vs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Ua(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Ba=Symbol(""),Jr=Symbol(""),is=Symbol(""),or=Symbol(""),Us=Symbol("");function nn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=g=>{g===!1?c(zt(ne.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?c(g):La(g)?c(zt(ne.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(o&&s.enterCallbacks[r]===o&&typeof g=="function"&&o.push(g),l())},u=i(()=>e.call(s&&s.instances[r],t,n,f));let h=Promise.resolve(u);e.length<3&&(h=h.then(f)),h.catch(g=>c(g))})}function Es(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(bo(c)){const f=(c.__vccOpts||c)[t];f&&i.push(mt(f,n,s,o,l,r))}else{let f=c();i.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=ca(u)?u.default:u;o.mods[l]=u,o.components[l]=h;const g=(h.__vccOpts||h)[t];return g&&mt(g,n,s,o,l,r)()}))}}return i}function ja(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oqt(f,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(f=>qt(f,c))||r.push(c))}return[n,s,r]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let ka=()=>location.protocol+"//"+location.host;function Po(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Wr(l,"")}return Wr(n,e)+s+r}function Ga(e,t,n,s){let r=[],i=[],o=null;const l=({state:g})=>{const m=Po(e,location),I=n.value,x=t.value;let U=0;if(g){if(n.value=m,t.value=g,o&&o===I){o=null;return}U=x?g.position-x.position:0}else s(m);r.forEach(F=>{F(n.value,I,{delta:U,type:Fs.pop,direction:U?U>0?bs.forward:bs.back:bs.unknown})})};function c(){o=n.value}function f(g){r.push(g);const m=()=>{const I=r.indexOf(g);I>-1&&r.splice(I,1)};return i.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(K({},g.state,{scroll:rs()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:h}}function Qr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?rs():null}}function Ka(e){const{history:t,location:n}=window,s={value:Po(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:ka()+e+c;try{t[u?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[u?"replace":"assign"](g)}}function o(c,f){i(c,K({},t.state,Qr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=K({},r.value,t.state,{forward:c,scroll:rs()});i(u.current,u,!0),i(c,K({},Qr(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function $a(e){e=Ca(e);const t=Ka(e),n=Ga(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=K({location:"",base:e,go:s,createHref:Oa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Tt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var oe=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(oe||{});const Wa={type:Tt.Static,value:""},qa=/[a-zA-Z0-9_]/;function za(e){if(!e)return[[]];if(e==="/")return[[Wa]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=oe.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,f="",u="";function h(){f&&(n===oe.Static?i.push({type:Tt.Static,value:f}):n===oe.Param||n===oe.ParamRegExp||n===oe.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Tt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=c}for(;lt.length?t.length===1&&t[0]===_e.Static+_e.Segment?1:-1:0}function Oo(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Za={strict:!1,end:!0,sensitive:!1};function eu(e,t,n){const s=Qa(za(e.path),n),r=K(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function tu(e,t){const n=[],s=new Map;t=$r(Za,t);function r(h){return s.get(h)}function i(h,g,m){const I=!m,x=ti(h);x.aliasOf=m&&m.record;const U=$r(t,h),F=[x];if("alias"in h){const O=typeof h.alias=="string"?[h.alias]:h.alias;for(const J of O)F.push(ti(K({},x,{components:m?m.record.components:x.components,path:J,aliasOf:m?m.record:x})))}let C,N;for(const O of F){const{path:J}=O;if(g&&J[0]!=="/"){const ie=g.record.path,ee=ie[ie.length-1]==="/"?"":"/";O.path=g.record.path+(J&&ee+J)}if(C=eu(O,g,U),m?m.alias.push(C):(N=N||C,N!==C&&N.alias.push(C),I&&h.name&&!ni(C)&&o(h.name)),Io(C)&&c(C),x.children){const ie=x.children;for(let ee=0;ee{o(N)}:pn}function o(h){if(To(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(o),g.alias.forEach(o))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return n}function c(h){const g=ru(h,n);n.splice(g,0,h),h.record.name&&!ni(h)&&s.set(h.record.name,h)}function f(h,g){let m,I={},x,U;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw zt(ne.MATCHER_NOT_FOUND,{location:h});U=m.record.name,I=K(ei(g.params,m.keys.filter(N=>!N.optional).concat(m.parent?m.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),h.params&&ei(h.params,m.keys.map(N=>N.name))),x=m.stringify(I)}else if(h.path!=null)x=h.path,m=n.find(N=>N.re.test(x)),m&&(I=m.parse(x),U=m.record.name);else{if(m=g.name?s.get(g.name):n.find(N=>N.re.test(g.path)),!m)throw zt(ne.MATCHER_NOT_FOUND,{location:h,currentLocation:g});U=m.record.name,I=K({},g.params,h.params),x=m.stringify(I)}const F=[];let C=m;for(;C;)F.unshift(C.record),C=C.parent;return{name:U,path:x,params:I,matched:F,meta:su(F)}}e.forEach(h=>i(h));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:f,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function ei(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ti(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:nu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function nu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ni(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function su(e){return e.reduce((t,n)=>K(t,n.meta),{})}function ru(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;Oo(e,t[i])<0?s=i:n=i+1}const r=iu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function iu(e){let t=e;for(;t=t.parent;)if(Io(t)&&Oo(e,t)===0)return t}function Io({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function si(e){const t=Ne(is),n=Ne(or),s=Oe(()=>{const c=ae(e.to);return t.resolve(c)}),r=Oe(()=>{const{matched:c}=s.value,{length:f}=c,u=c[f-1],h=n.matched;if(!u||!h.length)return-1;const g=h.findIndex(qt.bind(null,u));if(g>-1)return g;const m=ri(c[f-2]);return f>1&&ri(u)===m&&h[h.length-1].path!==m?h.findIndex(qt.bind(null,c[f-2])):g}),i=Oe(()=>r.value>-1&&uu(n.params,s.value.params)),o=Oe(()=>r.value>-1&&r.value===n.matched.length-1&&Ro(n.params,s.value.params));function l(c={}){if(au(c)){const f=t[ae(e.replace)?"replace":"push"](ae(e.to)).catch(pn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:Oe(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function ou(e){return e.length===1?e[0]:e}const lu=Gi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:si,setup(e,{slots:t}){const n=Jt(si(e)),{options:s}=Ne(is),r=Oe(()=>({[ii(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ii(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&ou(t.default(n));return e.custom?i:En("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),cu=lu;function au(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function uu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function ri(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ii=(e,t,n)=>e??t??n,fu=Gi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ne(Us),r=Oe(()=>e.route||s.value),i=Ne(Jr,0),o=Oe(()=>{let f=ae(i);const{matched:u}=r.value;let h;for(;(h=u[f])&&!h.components;)f++;return f}),l=Oe(()=>r.value.matched[o.value]);Nn(Jr,Oe(()=>o.value+1)),Nn(Ba,l),Nn(Us,r);const c=dl();return Mn(()=>[c.value,l.value,e.name],([f,u,h],[g,m,I])=>{u&&(u.instances[h]=f,m&&m!==u&&f&&f===g&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),f&&u&&(!m||!qt(u,m)||!g)&&(u.enterCallbacks[h]||[]).forEach(x=>x(f))},{flush:"post"}),()=>{const f=r.value,u=e.name,h=l.value,g=h&&h.components[u];if(!g)return oi(n.default,{Component:g,route:f});const m=h.props[u],I=m?m===!0?f.params:typeof m=="function"?m(f):m:null,U=En(g,K({},I,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[u]=null)},ref:c}));return oi(n.default,{Component:U,route:f})||U}}});function oi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const du=fu;function hu(e){const t=tu(e.routes,e),n=e.parseQuery||Ha,s=e.stringifyQuery||Yr,r=e.history,i=nn(),o=nn(),l=nn(),c=hl(pt);let f=pt;Ht&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ys.bind(null,v=>""+v),h=ys.bind(null,Ea),g=ys.bind(null,wn);function m(v,P){let R,M;return To(v)?(R=t.getRecordMatcher(v),M=P):M=v,t.addRoute(M,R)}function I(v){const P=t.getRecordMatcher(v);P&&t.removeRoute(P)}function x(){return t.getRoutes().map(v=>v.record)}function U(v){return!!t.getRecordMatcher(v)}function F(v,P){if(P=K({},P||c.value),typeof v=="string"){const p=vs(n,v,P.path),y=t.resolve({path:p.path},P),b=r.createHref(p.fullPath);return K(p,y,{params:g(y.params),hash:wn(p.hash),redirectedFrom:void 0,href:b})}let R;if(v.path!=null)R=K({},v,{path:vs(n,v.path,P.path).path});else{const p=K({},v.params);for(const y in p)p[y]==null&&delete p[y];R=K({},v,{params:h(p)}),P.params=h(P.params)}const M=t.resolve(R,P),j=v.hash||"";M.params=u(g(M.params));const a=Aa(s,K({},v,{hash:ya(j),path:M.path})),d=r.createHref(a);return K({fullPath:a,hash:j,query:s===Yr?Ua(v.query):v.query||{}},M,{redirectedFrom:void 0,href:d})}function C(v){return typeof v=="string"?vs(n,v,c.value.path):K({},v)}function N(v,P){if(f!==v)return zt(ne.NAVIGATION_CANCELLED,{from:P,to:v})}function O(v){return ee(v)}function J(v){return O(K(C(v),{replace:!0}))}function ie(v,P){const R=v.matched[v.matched.length-1];if(R&&R.redirect){const{redirect:M}=R;let j=typeof M=="function"?M(v,P):M;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=C(j):{path:j},j.params={}),K({query:v.query,hash:v.hash,params:j.path!=null?{}:v.params},j)}}function ee(v,P){const R=f=F(v),M=c.value,j=v.state,a=v.force,d=v.replace===!0,p=ie(R,M);if(p)return ee(K(C(p),{state:typeof p=="object"?K({},j,p.state):j,force:a,replace:d}),P||R);const y=R;y.redirectedFrom=P;let b;return!a&&xa(s,M,R)&&(b=zt(ne.NAVIGATION_DUPLICATED,{to:y,from:M}),Ue(M,M,!0,!1)),(b?Promise.resolve(b):Fe(y,M)).catch(_=>Ze(_)?Ze(_,ne.NAVIGATION_GUARD_REDIRECT)?_:ht(_):G(_,y,M)).then(_=>{if(_){if(Ze(_,ne.NAVIGATION_GUARD_REDIRECT))return ee(K({replace:d},C(_.to),{state:typeof _.to=="object"?K({},j,_.to.state):j,force:a}),P||y)}else _=bt(y,M,!0,d,j);return dt(y,M,_),_})}function Ve(v,P){const R=N(v,P);return R?Promise.reject(R):Promise.resolve()}function ft(v){const P=Mt.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(v):v()}function Fe(v,P){let R;const[M,j,a]=ja(v,P);R=Es(M.reverse(),"beforeRouteLeave",v,P);for(const p of M)p.leaveGuards.forEach(y=>{R.push(mt(y,v,P))});const d=Ve.bind(null,v,P);return R.push(d),Re(R).then(()=>{R=[];for(const p of i.list())R.push(mt(p,v,P));return R.push(d),Re(R)}).then(()=>{R=Es(j,"beforeRouteUpdate",v,P);for(const p of j)p.updateGuards.forEach(y=>{R.push(mt(y,v,P))});return R.push(d),Re(R)}).then(()=>{R=[];for(const p of a)if(p.beforeEnter)if(Le(p.beforeEnter))for(const y of p.beforeEnter)R.push(mt(y,v,P));else R.push(mt(p.beforeEnter,v,P));return R.push(d),Re(R)}).then(()=>(v.matched.forEach(p=>p.enterCallbacks={}),R=Es(a,"beforeRouteEnter",v,P,ft),R.push(d),Re(R))).then(()=>{R=[];for(const p of o.list())R.push(mt(p,v,P));return R.push(d),Re(R)}).catch(p=>Ze(p,ne.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function dt(v,P,R){l.list().forEach(M=>ft(()=>M(v,P,R)))}function bt(v,P,R,M,j){const a=N(v,P);if(a)return a;const d=P===pt,p=Ht?history.state:{};R&&(M||d?r.replace(v.fullPath,K({scroll:d&&p&&p.scroll},j)):r.push(v.fullPath,j)),c.value=v,Ue(v,P,R,d),ht()}let He;function Qt(){He||(He=r.listen((v,P,R)=>{if(!Et.listening)return;const M=F(v),j=ie(M,Et.currentRoute.value);if(j){ee(K(j,{replace:!0,force:!0}),M).catch(pn);return}f=M;const a=c.value;Ht&&Ma(zr(a.fullPath,R.delta),rs()),Fe(M,a).catch(d=>Ze(d,ne.NAVIGATION_ABORTED|ne.NAVIGATION_CANCELLED)?d:Ze(d,ne.NAVIGATION_GUARD_REDIRECT)?(ee(K(C(d.to),{force:!0}),M).then(p=>{Ze(p,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&!R.delta&&R.type===Fs.pop&&r.go(-1,!1)}).catch(pn),Promise.reject()):(R.delta&&r.go(-R.delta,!1),G(d,M,a))).then(d=>{d=d||bt(M,a,!1),d&&(R.delta&&!Ze(d,ne.NAVIGATION_CANCELLED)?r.go(-R.delta,!1):R.type===Fs.pop&&Ze(d,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),dt(M,a,d)}).catch(pn)}))}let It=nn(),ce=nn(),z;function G(v,P,R){ht(v);const M=ce.list();return M.length?M.forEach(j=>j(v,P,R)):console.error(v),Promise.reject(v)}function Qe(){return z&&c.value!==pt?Promise.resolve():new Promise((v,P)=>{It.add([v,P])})}function ht(v){return z||(z=!v,Qt(),It.list().forEach(([P,R])=>v?R(v):P()),It.reset()),v}function Ue(v,P,R,M){const{scrollBehavior:j}=e;if(!Ht||!j)return Promise.resolve();const a=!R&&Da(zr(v.fullPath,0))||(M||!R)&&history.state&&history.state.scroll||null;return Zs().then(()=>j(v,P,a)).then(d=>d&&Na(d)).catch(d=>G(d,v,P))}const be=v=>r.go(v);let Nt;const Mt=new Set,Et={currentRoute:c,listening:!0,addRoute:m,removeRoute:I,clearRoutes:t.clearRoutes,hasRoute:U,getRoutes:x,resolve:F,options:e,push:O,replace:J,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:ce.add,isReady:Qe,install(v){v.component("RouterLink",cu),v.component("RouterView",du),v.config.globalProperties.$router=Et,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>ae(c)}),Ht&&!Nt&&c.value===pt&&(Nt=!0,O(r.location).catch(M=>{}));const P={};for(const M in pt)Object.defineProperty(P,M,{get:()=>c.value[M],enumerable:!0});v.provide(is,Et),v.provide(or,Ni(P)),v.provide(Us,c);const R=v.unmount;Mt.add(v),v.unmount=function(){Mt.delete(v),Mt.size<1&&(f=pt,He&&He(),He=null,c.value=pt,Nt=!1,z=!1),R()}}};function Re(v){return v.reduce((P,R)=>P.then(()=>ft(R)),Promise.resolve())}return Et}function pu(){return Ne(is)}function Uu(e){return Ne(or)}/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const li=e=>e==="";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mu=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ci=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _u=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yu=e=>{const t=_u(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var sn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vu=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:r,"stroke-width":i,size:o=sn.width,color:l=sn.stroke,...c},{slots:f})=>En("svg",{...sn,...c,width:o,height:o,stroke:l,"stroke-width":li(n)||li(s)||n===!0||s===!0?Number(r||i||sn["stroke-width"])*24/Number(o):r||i||sn["stroke-width"],class:mu("lucide",c.class,...e?[`lucide-${ci(yu(e))}-icon`,`lucide-${ci(e)}`]:["lucide-icon"]),...!f.default&&!gu(c)&&{"aria-hidden":"true"}},[...t.map(u=>En(...u)),...f.default?[f.default()]:[]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const No=(e,t)=>(n,{slots:s,attrs:r})=>En(vu,{...r,...n,iconNode:t,name:e},s);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bu=No("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eu=No("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Bs="st_token";function Mo(){return localStorage.getItem(Bs)}function ws(e){e?localStorage.setItem(Bs,e):localStorage.removeItem(Bs)}async function te(e,t,n,s=!1){const r={},i=Mo();i&&(r.Authorization=`Bearer ${i}`);let o=n;!s&&n!==void 0&&n!==null&&(r["Content-Type"]="application/json",o=JSON.stringify(n));const l=await fetch(t,{method:e,headers:r,body:o});let c=null;try{c=await l.json()}catch{}if(!l.ok){const f=c&&(c.error||c.message)||`HTTP ${l.status}`;throw new Error(f)}return c}const Ss={login:(e,t)=>te("POST","/api/auth/login",{username:e,password:t}),me:()=>te("GET","/api/auth/me"),setup:e=>te("POST","/api/auth/setup",e),updateProfile:e=>te("PATCH","/api/auth/profile",e),adminCreateUser:e=>te("POST","/api/admin/users",e),adminListUsers:()=>te("GET","/api/admin/users"),adminUpdateUser:(e,t)=>te("PUT",`/api/admin/users/${e}`,t),createGroup:e=>te("POST","/api/groups",e,!0),listGroups:()=>te("GET","/api/groups"),getGroup:e=>te("GET",`/api/groups/${e}`),analyzeGroup:e=>te("POST",`/api/groups/${e}/analyze`),listPersonas:e=>te("GET",`/api/groups/${e}/personas`),getPersona:(e,t)=>te("GET",`/api/groups/${e}/personas/${t}`),updatePersona:(e,t,n)=>te("PUT",`/api/groups/${e}/personas/${t}`,n),chatStart:(e,t)=>te("POST",`/api/chat/${e}/personas/${t}/chat/start`),chatSend:(e,t,n)=>te("POST",`/api/chat/${e}/personas/${t}/chat/send`,{text:n}),chatFinish:(e,t)=>te("POST",`/api/chat/${e}/personas/${t}/chat/finish`),mySessions:()=>te("GET","/api/chat/sessions"),myBoard:()=>te("GET","/api/me/board"),weakAreas:()=>te("GET","/api/me/weak-areas"),myPersonas:()=>te("GET","/api/me/personas"),generatePersona:e=>te("POST","/api/me/personas/generate",e),analytics:(e={})=>{const t=new URLSearchParams;e.from&&t.set("from",e.from),e.to&&t.set("to",e.to);const n=t.toString();return te("GET",`/api/analytics${n?`?${n}`:""}`)}},Ce=Jt({user:null,token:Mo(),mustSetup:!1,get role(){return this.user?this.user.role:null},get isAdmin(){return this.role==="admin"||this.role==="super_admin"},async load(){var e;if(!this.token)return null;try{const t=await Ss.me();return this.user=t.user,this.mustSetup=!!((e=t.user)!=null&&e.must_setup),this.user}catch{return this.user=null,this.mustSetup=!1,ws(null),null}},async login(e,t){const n=await Ss.login(e,t);return this.token=n.token,ws(n.token),this.user=n.user,this.mustSetup=!!n.must_setup,n.user},async finishSetup(e,t){const n=await Ss.setup({username:this.user.username||this.user.id,email:e,password:t});return this.user=n.user,this.mustSetup=!1,n.user},logout(){this.user=null,this.token=null,this.mustSetup=!1,ws(null)}}),As={en:{app:"Sales Trainer",login:"Login",logout:"Logout",username:"Username",email:"Email",password:"Password",newPassword:"New password",confirmPassword:"Confirm password",save:"Save",passwordTooShort:"Password must be at least 4 characters",passwordMismatch:"Passwords do not match",setupTitle:"Set up your account",setupSubtitle:"First login for ",loginError:"Invalid credentials",dashboard:"Dashboard",training:"Training",myDashboard:"My dashboard",adminOverview:"Admin overview",settings:"Settings",account:"Account",profile:"Profile",readonly:"read-only",name:"Display name",saveProfile:"Save profile",changePassword:"Change password",optional:"optional",saved:"Saved",total:"Total",dateRange:"Date range",apply:"Apply",clear:"Clear",hardestPersonas:"Hardest personas",closeRate:"Close rate",managePersonas:"Manage personas",difficulty:"Difficulty",trained:"Trained",addProduct:"Add product",trainingSubtitle:"Pick a product group, then choose a persona to practice closing the sale.",noTraining:"No training groups available",groups:"Persona Groups",myTraining:"My Training",adminTools:"Admin Tools",users:"Users",analytics:"Analytics",groupBuilder:"Group Builder",create:"Create",analyze:"Analyze",manual:"Manual",edit:"Edit",product:"Product",segment:"Initial customer segment (optional)",description:"Additional description / scenario (optional)",channel:"Channel",facebook:"Facebook",line:"LINE",language:"Language",thai:"Thai",english:"English",personas:"Personas",tierA:"Tier A — Ready to buy",tierB:"Tier B — Unsure",tierC:"Tier C — Not interested but has pain",selectPersona:"Select a persona to practice",chatGuideTitle:"How to practice",chatGuideText:'You are playing the salesperson. Chat with this customer and try to close the sale. Ask about their needs, solve their pain, and handle their objections. When you are done, press "Finish & get result" to see your score and coaching.',chat:"Chat",start:"Start",send:"Send",finish:"Finish & get result",debrief:"Result & Coaching",won:"Won",lost:"Lost",notTried:"Not tried",score:"Score",pain:"Pain",why:"Reason",reveal:"Revealed persona details",generatePersona:"Generate my persona",weakAreas:"My weak areas",mySessions:"My sessions",openSaleTask:"The customer did NOT message first. You must open the sale.",sellerInitiated:"You must open the sale (outbound)",customerInitiated:"The customer will message you first"},th:{app:"ระบบฝึกทักษะการขาย",login:"เข้าสู่ระบบ",logout:"ออกจากระบบ",username:"ชื่อผู้ใช้",email:"อีเมล",password:"รหัสผ่าน",newPassword:"รหัสผ่านใหม่",confirmPassword:"ยืนยันรหัสผ่าน",save:"บันทึก",passwordTooShort:"รหัสผ่านต้องมีความยาวอย่างน้อย 4 ตัวอักษร",passwordMismatch:"รหัสผ่านที่ยืนยันไม่ตรงกัน",setupTitle:"ตั้งค่าบัญชีของคุณ",setupSubtitle:"เข้าสู่ระบบครั้งแรกสำหรับ ",loginError:"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง กรุณาลองอีกครั้ง",dashboard:"หน้าหลัก",training:"การฝึก",myDashboard:"ภาพรวมผลการฝึก",adminOverview:"ภาพรวมผู้ดูแล",settings:"การตั้งค่า",account:"บัญชี",profile:"ข้อมูลส่วนตัว",readonly:"อ่านอย่างเดียว",name:"ชื่อที่แสดง",saveProfile:"บันทึกข้อมูล",changePassword:"เปลี่ยนรหัสผ่าน",optional:"ไม่บังคับ",saved:"บันทึกเรียบร้อย",total:"ทั้งหมด",dateRange:"ช่วงเวลา",apply:"กรอง",clear:"ล้าง",hardestPersonas:"บุคคลต้นแบบที่ขายยากที่สุด",closeRate:"อัตราปิดการขาย",managePersonas:"จัดการบุคคลต้นแบบ",difficulty:"ระดับความยาก",trained:"ฝึกแล้ว",addProduct:"เพิ่มสินค้า",trainingSubtitle:"เลือกกลุ่มสินค้า แล้วเลือกบุคคลต้นแบบเพื่อฝึกปิดการขาย",noTraining:"ยังไม่มีกลุ่มฝึก",groups:"กลุ่มบุคคลต้นแบบลูกค้า (Persona)",myTraining:"ประวัติการฝึก",adminTools:"เครื่องมือผู้ดูแลระบบ",users:"ผู้ใช้งาน",analytics:"สถิติ",groupBuilder:"สร้างกลุ่มบุคคลต้นแบบ",create:"สร้าง",analyze:"วิเคราะห์",manual:"ระบุเอง",edit:"แก้ไข",product:"สินค้า/บริการ",segment:"กลุ่มลูกค้าเป้าหมายเบื้องต้น (ไม่บังคับ)",description:"คำอธิบายหรือรายละเอียดเพิ่มเติม (ไม่บังคับ)",channel:"ช่องทางติดต่อ",facebook:"Facebook",line:"LINE",language:"ภาษา",thai:"ไทย",english:"อังกฤษ",personas:"บุคคลต้นแบบ",tierA:"ระดับ A — พร้อมตัดสินใจซื้อ",tierB:"ระดับ B — ยังไม่แน่ใจ",tierC:"ระดับ C — ไม่สนใจแต่มีปัญหา",selectPersona:"เลือกบุคคลต้นแบบเพื่อฝึก",chatGuideTitle:"วิธีฝึก",chatGuideText:'คุณรับบทเป็นพนักงานขาย พูดคุยกับลูกค้าคนนี้เพื่อพยายามปิดการขายให้ได้ สอบถามความต้องการ แก้ไขปัญหาของลูกค้า และรับมือกับข้อโต้แย้ง เมื่อพอใจแล้วกด "สรุปผล" เพื่อดูคะแนนและข้อเสนอแนะ',chat:"แชท",start:"เริ่มต้น",send:"ส่ง",finish:"สรุปผล",debrief:"ผลลัพธ์และข้อเสนอแนะ",won:"ปิดการขายได้",lost:"ปิดการขายไม่ได้",notTried:"ยังไม่ได้ฝึก",score:"คะแนน",pain:"ปัญหาของลูกค้า",why:"เหตุผล",reveal:"รายละเอียดบุคคลต้นแบบที่ถูกซ่อนไว้",generatePersona:"สร้างบุคคลต้นแบบเพิ่มเติม",weakAreas:"จุดอ่อนที่ควรฝึกเพิ่มเติม",mySessions:"ประวัติการฝึกของฉัน",openSaleTask:"ลูกค้ายังไม่ได้ทักเข้ามา คุณต้องเป็นฝ่ายเริ่มบทสนทนาการขายเอง",sellerInitiated:"คุณต้องเริ่มการขายในเชิงรุก",customerInitiated:"ลูกค้าจะติดต่อเข้ามาก่อน"}},Ke=Jt({locale:localStorage.getItem("locale")||"th",t(e){return As[this.locale]&&As[this.locale][e]||As.en[e]||e},set(e){this.locale=e,localStorage.setItem("locale",e)}}),wu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Su={class:"app"},Au={key:0,class:"topnav"},xu={class:"tabs"},Ru={class:"nav-right"},Tu={class:"main"},Cu={__name:"App",setup(e){const t=pu();function n(){Ke.set(Ke.locale==="th"?"en":"th")}function s(){Ce.logout(),t.push("/login")}return Wi(()=>{Ce.token&&!Ce.user&&Ce.load()}),(r,i)=>{const o=_r("router-link"),l=_r("router-view");return on(),Tr("div",Su,[ae(Ce).user?(on(),Tr("nav",Au,[le(o,{to:"/",class:"brand"},{default:Vt(()=>[Ft(At(ae(Ke).t("app")),1)]),_:1}),Rt("div",xu,[ae(Ce).isAdmin?(on(),Ds(o,{key:0,to:"/",class:jt(["tab",{active:r.$route.path==="/"}])},{default:Vt(()=>[Ft(At(ae(Ke).t("adminOverview")),1)]),_:1},8,["class"])):Cr("",!0),le(o,{to:"/my/board",class:jt(["tab",{active:r.$route.path==="/my/board"}])},{default:Vt(()=>[Ft(At(ae(Ke).t("myDashboard")),1)]),_:1},8,["class"]),le(o,{to:"/training",class:jt(["tab",{active:r.$route.path==="/training"}])},{default:Vt(()=>[Ft(At(ae(Ke).t("training")),1)]),_:1},8,["class"])]),Rt("div",Ru,[Rt("button",{onClick:n,class:"lang"},At(ae(Ke).locale==="th"?"EN":"TH"),1),le(o,{to:"/settings",class:"icon-btn",title:ae(Ke).t("settings")},{default:Vt(()=>[le(ae(Eu),{size:20,"stroke-width":1.8})]),_:1},8,["title"]),Rt("button",{onClick:s,class:"logout-btn"},[le(ae(bu),{size:18,"stroke-width":1.8}),Ft(" "+At(ae(Ke).t("logout")),1)])])])):Cr("",!0),Rt("main",Tu,[(on(),Ds(l,{key:ae(Ke).locale}))])])}}},Pu=wu(Cu,[["__scopeId","data-v-25816f6a"]]),Ou="modulepreload",Iu=function(e){return"/"+e},ai={},Te=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=Iu(c),c in ai)return;ai[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Ou,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Nu=[{path:"/login",component:()=>Te(()=>import("./Login-DhaEm1-6.js"),__vite__mapDeps([0,1])),meta:{public:!0}},{path:"/setup",component:()=>Te(()=>import("./Setup-D9lCpt9C.js"),__vite__mapDeps([2,3]))},{path:"/",component:()=>Te(()=>import("./Analytics-CyuFLItl.js"),__vite__mapDeps([4,5,6,7])),meta:{admin:!0}},{path:"/my/board",component:()=>Te(()=>import("./MyBoard-CHF7e7KE.js"),__vite__mapDeps([8,9]))},{path:"/training",component:()=>Te(()=>import("./Training-CH5dgqen.js"),__vite__mapDeps([10,11,6,12]))},{path:"/groups/:gid/personas",component:()=>Te(()=>import("./Personas-CRi-xjVS.js"),__vite__mapDeps([13,11,14,15]))},{path:"/groups/:gid/chat/:pid",component:()=>Te(()=>import("./Chat-Bo6laZZd.js"),__vite__mapDeps([16,11,14,17]))},{path:"/settings",component:()=>Te(()=>import("./Settings-CatYfY0I.js"),__vite__mapDeps([18,19]))},{path:"/admin/new-group",component:()=>Te(()=>import("./GroupBuilder-BTot24Pr.js"),__vite__mapDeps([20,14,21])),meta:{admin:!0}},{path:"/admin/groups/:gid/edit",component:()=>Te(()=>import("./GroupEdit-Db7E5OJj.js"),__vite__mapDeps([22,5,23])),meta:{admin:!0}},{path:"/admin/users",component:()=>Te(()=>import("./AdminUsers-B7nEYj4N.js"),__vite__mapDeps([24,5,25])),meta:{admin:!0}},{path:"/admin/analytics",component:()=>Te(()=>import("./Analytics-CyuFLItl.js"),__vite__mapDeps([4,5,6,7])),meta:{admin:!0}}],Do=hu({history:$a(),routes:Nu});Do.beforeEach(async e=>e.meta.public?!0:(Ce.user||await Ce.load(),Ce.user?Ce.mustSetup&&e.path!=="/setup"?{path:"/setup"}:e.path==="/"&&!Ce.isAdmin?{path:"/my/board"}:e.meta.admin&&!Ce.isAdmin?{path:"/my/board"}:!0:{path:"/login",query:{redirect:e.fullPath}}));ia(Pu).use(Do).mount("#app");export{jt as A,Ds as B,Zs as C,Xc as D,Mn as E,tt as F,Jt as G,Fu as H,Eu as S,wu as _,Rt as a,Hu as b,Tr as c,Vu as d,Cr as e,Ce as f,pu as g,Uu as h,Ke as i,Ft as j,No as k,Wi as l,le as m,Vt as n,on as o,Ks as p,Du as q,dl as r,Ss as s,At as t,ae as u,jr as v,Mu as w,_r as x,Lu as y,Oe as z}; diff --git a/frontend/dist/assets/index-HCrojZU7.css b/frontend/dist/assets/index-HCrojZU7.css deleted file mode 100644 index 5620e9c..0000000 --- a/frontend/dist/assets/index-HCrojZU7.css +++ /dev/null @@ -1 +0,0 @@ -.topnav[data-v-836c19dc]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;flex-wrap:wrap}.brand[data-v-836c19dc]{font-weight:800;text-decoration:none;color:var(--ink);white-space:nowrap}.tabs[data-v-836c19dc]{display:flex;gap:4px;flex-wrap:wrap}.tab[data-v-836c19dc]{text-decoration:none;color:var(--muted);padding:8px 16px;border-radius:10px;font-weight:600;font-size:14px;white-space:nowrap}.tab[data-v-836c19dc]:hover{background:#f1f3f9;color:var(--ink)}.tab.active[data-v-836c19dc]{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff}.nav-right[data-v-836c19dc]{display:flex;align-items:center;gap:8px}.lang[data-v-836c19dc],.logout-btn[data-v-836c19dc]{padding:8px 12px}.icon-btn[data-v-836c19dc]{text-decoration:none;font-size:18px;padding:6px 10px;border-radius:8px}.icon-btn[data-v-836c19dc]:hover{background:#f1f3f9}.main[data-v-836c19dc]{max-width:1080px;margin:0 auto;padding:24px}@media (max-width: 640px){.topnav[data-v-836c19dc]{padding:10px 12px}.tab[data-v-836c19dc]{padding:8px 12px;font-size:13px}.logout-btn span[data-v-836c19dc]{display:none}}:root{--bg: #f6f7fb;--card: #ffffff;--border: #e5e8ef;--ink: #1a1d29;--muted: #6b7280;--accent: #4f46e5;--accent-2: #7c3aed;--green: #16a34a;--red: #dc2626;--amber: #d97706;--radius: 14px;--shadow: 0 1px 3px rgba(20, 24, 40, .08)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans Thai,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}#app{min-height:100vh}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}button{font-family:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);padding:10px 16px;border-radius:10px;font-size:14px;color:var(--ink)}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border:none}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:14px}label{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}.row{display:flex;gap:12px;flex-wrap:wrap}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.A{background:#dcfce7;color:#166534}.badge.B{background:#fef9c3;color:#854d0e}.badge.C{background:#fee2e2;color:#991b1b}.badge.won{background:#dcfce7;color:#166534}.badge.lost{background:#fee2e2;color:#991b1b}.badge.not_tried{background:#eef2ff;color:#4338ca}.error{color:var(--red);font-size:13px}.muted{color:var(--muted)}.msg-seller{background:var(--accent);color:#fff;align-self:flex-end;border-radius:16px 16px 4px}.msg-customer{background:#fff;align-self:flex-start;border-radius:16px 16px 16px 4px;border:1px solid var(--border)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit}a:focus{outline:2px solid var(--accent);outline-offset:2px}button{min-height:44px;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,opacity .2s ease}button:not(:disabled):hover{box-shadow:0 4px 12px #1418281a}button:not(:disabled):active{transform:scale(.97)}button.primary:not(:disabled):hover{box-shadow:0 6px 18px #4f46e559}button.soft{background:#f1f3f9;border-color:transparent;color:var(--ink)}button.soft:not(:disabled):hover{background:#e6eaf3}input,select,textarea{min-height:44px;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f46e526}textarea{min-height:88px;resize:vertical}.card.lift{transition:transform .2s ease,box-shadow .25s ease}.card.lift:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1418281a}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.btn-back{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;margin-bottom:12px;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:13px;text-decoration:none}.btn-back:hover{color:var(--ink);border-color:var(--accent)}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{border-radius:8px;background:linear-gradient(90deg,#eef0f5 25%,#e2e5ec 37%,#eef0f5 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state strong{display:block;margin-bottom:4px;color:var(--ink)}.field-error{color:var(--red);font-size:12px;margin-top:4px}@media (max-width: 640px){.main{padding:16px}.row{gap:10px}.msg-seller,.msg-customer{max-width:84%}} diff --git a/frontend/dist/assets/plus-Cw7xc8qj.js b/frontend/dist/assets/plus-Cw7xc8qj.js new file mode 100644 index 0000000..d2f764e --- /dev/null +++ b/frontend/dist/assets/plus-Cw7xc8qj.js @@ -0,0 +1,6 @@ +import{k as e}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a=e("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);export{a as P}; diff --git a/frontend/dist/assets/target-qgda8bhm.js b/frontend/dist/assets/target-qgda8bhm.js new file mode 100644 index 0000000..04acc22 --- /dev/null +++ b/frontend/dist/assets/target-qgda8bhm.js @@ -0,0 +1,6 @@ +import{k as c}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const e=c("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);export{e as T}; diff --git a/frontend/dist/assets/users-D5qk1Nmy.js b/frontend/dist/assets/users-D5qk1Nmy.js new file mode 100644 index 0000000..0d577c4 --- /dev/null +++ b/frontend/dist/assets/users-D5qk1Nmy.js @@ -0,0 +1,6 @@ +import{k as e}from"./index-C0Orcg9B.js";/** + * @license lucide-vue-next v1.0.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r=e("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);export{r as U}; diff --git a/frontend/dist/index.html b/frontend/dist/index.html index c12fb98..25332c7 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -4,8 +4,8 @@ Sales Trainer - - + +
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index efad61b..740b955 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,6 +8,7 @@ "name": "sales-trainer-frontend", "version": "0.1.0", "dependencies": { + "lucide-vue-next": "^1.0.0", "vue": "^3.4.0", "vue-router": "^4.3.0" }, @@ -1071,6 +1072,16 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/lucide-vue-next": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lucide-vue-next/-/lucide-vue-next-1.0.0.tgz", + "integrity": "sha512-V6SPvx1IHTj/UY+FrIYWV5faISsPSb8BnWSFDxAtezWKvWc9ZZ40PDrdu1/Qb5vg4lHWr1hs1BAMGVGm6V1Xdg==", + "deprecated": "Package deprecated. Please use @lucide/vue instead.", + "license": "ISC", + "peerDependencies": { + "vue": ">=3.0.1" + } + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", diff --git a/frontend/package.json b/frontend/package.json index 076933d..d1bf5b0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "lucide-vue-next": "^1.0.0", "vue": "^3.4.0", "vue-router": "^4.3.0" }, diff --git a/frontend/src/App.vue b/frontend/src/App.vue index a173a00..b14e5c1 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,7 +1,7 @@