fogact 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +244 -0
  3. package/README.zh-CN.md +244 -0
  4. package/bin/cli.js +9 -0
  5. package/bin/web-server.js +1434 -0
  6. package/config/upstream.example.json +14 -0
  7. package/frontend/activate.html +249 -0
  8. package/frontend/admin/admin-panel-v2.js +1899 -0
  9. package/frontend/admin/index.html +705 -0
  10. package/frontend/assets/market-ui.css +1876 -0
  11. package/frontend/color-test.html +136 -0
  12. package/frontend/index.html +191 -0
  13. package/frontend/user/assets/AnnouncementDetail-Dvxmwz0A.js +12 -0
  14. package/frontend/user/assets/Announcements-CS1tF2mx.js +11 -0
  15. package/frontend/user/assets/CardBind-CsCxihhP.js +21 -0
  16. package/frontend/user/assets/CardContent.vue_vue_type_script_setup_true_lang-D2L-uqSl.js +1 -0
  17. package/frontend/user/assets/CardDescription.vue_vue_type_script_setup_true_lang-D-v5Pl7F.js +1 -0
  18. package/frontend/user/assets/CardTitle.vue_vue_type_script_setup_true_lang-a0CCN6D5.js +1 -0
  19. package/frontend/user/assets/Dashboard-rPsmltm5.js +51 -0
  20. package/frontend/user/assets/DashboardLayout-BUCWGlXC.css +1 -0
  21. package/frontend/user/assets/DashboardLayout-DDkxHYFj.js +80 -0
  22. package/frontend/user/assets/Input.vue_vue_type_script_setup_true_lang-B0SyPmYb.js +6 -0
  23. package/frontend/user/assets/Label.vue_vue_type_script_setup_true_lang-CxYORSgN.js +1 -0
  24. package/frontend/user/assets/Progress.vue_vue_type_script_setup_true_lang-2_QbPsEQ.js +1 -0
  25. package/frontend/user/assets/QuotaPack-B_tJ7Psm.js +6 -0
  26. package/frontend/user/assets/Renewal-BSDhDmwv.js +6 -0
  27. package/frontend/user/assets/ScrollArea.vue_vue_type_script_setup_true_lang-DMYwcfpz.js +1 -0
  28. package/frontend/user/assets/Separator.vue_vue_type_script_setup_true_lang-Ckg8EXj_.js +1 -0
  29. package/frontend/user/assets/Settings-CBdAa3lw.js +11 -0
  30. package/frontend/user/assets/TooltipTrigger.vue_vue_type_script_setup_true_lang-DtSBjzGo.js +16 -0
  31. package/frontend/user/assets/Welcome-7IfzEli4.css +1 -0
  32. package/frontend/user/assets/Welcome-Dtfp6oER.js +1 -0
  33. package/frontend/user/assets/_plugin-vue_export-helper-5cjT4u0R.js +16 -0
  34. package/frontend/user/assets/activity-wYWtyqTJ.js +6 -0
  35. package/frontend/user/assets/announcement-35mOnjRL.js +16 -0
  36. package/frontend/user/assets/calendar-BFNuCata.js +6 -0
  37. package/frontend/user/assets/chart-vendor-CULJE59K.js +37 -0
  38. package/frontend/user/assets/chevron-down-kDbuU1Py.js +6 -0
  39. package/frontend/user/assets/chevron-right-BayASIm0.js +6 -0
  40. package/frontend/user/assets/eye-CY62vip0.js +6 -0
  41. package/frontend/user/assets/gauge-C5NQ-mV8.js +6 -0
  42. package/frontend/user/assets/index-B8QSyYhS.css +1 -0
  43. package/frontend/user/assets/index-Da98HOxL.js +91 -0
  44. package/frontend/user/assets/link-2-DT5R5nGO.js +6 -0
  45. package/frontend/user/assets/package-rUbExUEn.js +6 -0
  46. package/frontend/user/assets/plus-CQc6C8wG.js +11 -0
  47. package/frontend/user/assets/refresh-cw-Y9hCloPL.js +6 -0
  48. package/frontend/user/assets/useUserPageRefresh-BYZvpNR9.js +1 -0
  49. package/frontend/user/assets/zap-l5zbZqrM.js +11 -0
  50. package/frontend/user/index.html +67 -0
  51. package/install.sh +402 -0
  52. package/lib/commands/activate.js +144 -0
  53. package/lib/commands/restore.js +102 -0
  54. package/lib/commands/test.js +40 -0
  55. package/lib/config/claude.js +81 -0
  56. package/lib/config/codex.js +164 -0
  57. package/lib/config/upstream.js +79 -0
  58. package/lib/index.js +164 -0
  59. package/lib/platforms/claude-code.js +35 -0
  60. package/lib/platforms/codex-cli.js +35 -0
  61. package/lib/platforms/editor-codex.js +138 -0
  62. package/lib/platforms/index.js +32 -0
  63. package/lib/platforms/openclaw.js +118 -0
  64. package/lib/platforms/opencode.js +89 -0
  65. package/lib/services/activation-orchestrator.js +666 -0
  66. package/lib/services/backup-service.js +162 -0
  67. package/lib/services/cliproxy-api.js +174 -0
  68. package/lib/services/database.js +461 -0
  69. package/lib/services/newapi.js +97 -0
  70. package/lib/services/node-service.js +49 -0
  71. package/lib/utils/json-file.js +33 -0
  72. package/package.json +53 -0
@@ -0,0 +1,80 @@
1
+ import{v as as,r as Z,d as Te,j as ye,c as Sr,D as q,y as _,E as A,G as xe,u as g,w as Rt,L as br,H as D,C as dt,z as vt,n as hn,f as is,m as Vl,l as fi,p as aa,O as Mt,Y as on,a9 as Ul,$ as Ea,_ as dn,i as jl,Z as _l,A as H,P as ce,Q as Ae,x as Se,F as en,B as ro,J as et,a7 as Kl,aa as nr,ab as Vt,ac as Ge,ad as Rr,ae as Sa,af as Xl,ag as ss,T as tn,ah as Gl,ai as ls,U as Hl,aj as Jt,ak as us,al as di,am as Wl,an as zl,ao as Yl,ap as Jl,aq as ql,ar as Eo,as as Ql,at as Zl,au as eu,av as Pn,N as tu,I as nu}from"./chart-vendor-CULJE59K.js";import{c as $t,i as ru,r as ou,g as mn,d as au,e as So,f as Un,h as Tt,P as Tn,j as ba,k as ia,l as cs,S as pi,m as iu,n as su,D as lu,o as uu,F as cu,p as fu,q as du,s as pu,v as hu,w as oo,x as mu,I as vu,y as In,z as gu,T as yu,B as Eu,C as rr,E as or,G as ar,H as ir,J as Bt,M as sr,_ as ke,N as lr,O as Ta,Q as Ia,R as fs,U as Su,V as xa,W as we,X as qt,Y as bu,Z as Tu,$ as Oa,u as Ca,K as Iu,L as xu,t as Et,b as ds,a as Ou,a0 as ps,a1 as Cu,a2 as hi,a3 as Nu,a4 as Au,a5 as Pu}from"./index-Da98HOxL.js";import{M as hs,P as Du,C as Ru,u as wu}from"./announcement-35mOnjRL.js";import{_ as mi}from"./Separator.vue_vue_type_script_setup_true_lang-Ckg8EXj_.js";import{C as ms}from"./chevron-right-BayASIm0.js";import{u as Na,_ as vi}from"./ScrollArea.vue_vue_type_script_setup_true_lang-DMYwcfpz.js";import{P as Mu,a as Lu,b as $u,c as Fu,C as gi,_ as wr,d as Mr,e as Lr,f as $r,S as vs,g as gs}from"./TooltipTrigger.vue_vue_type_script_setup_true_lang-DtSBjzGo.js";import{_ as ku}from"./Progress.vue_vue_type_script_setup_true_lang-2_QbPsEQ.js";import{_ as sa,E as Bu}from"./Input.vue_vue_type_script_setup_true_lang-B0SyPmYb.js";import{_ as la}from"./Label.vue_vue_type_script_setup_true_lang-CxYORSgN.js";import{P as ao,L as Vu}from"./plus-CQc6C8wG.js";import{E as Uu}from"./eye-CY62vip0.js";import{C as ju,S as yi,M as Ei,_ as ys}from"./_plugin-vue_export-helper-5cjT4u0R.js";import{P as _u}from"./package-rUbExUEn.js";import{G as Ku}from"./gauge-C5NQ-mV8.js";import{u as Xu}from"./useUserPageRefresh-BYZvpNR9.js";import{R as Gu}from"./refresh-cw-Y9hCloPL.js";/**
2
+ * @license lucide-vue-next v0.468.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Hu=$t("CopyIcon",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
7
+ * @license lucide-vue-next v0.468.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Wu=$t("EllipsisIcon",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
12
+ * @license lucide-vue-next v0.468.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const zu=$t("LayoutDashboardIcon",[["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"}]]);/**
17
+ * @license lucide-vue-next v0.468.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const Si=$t("LogOutIcon",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
22
+ * @license lucide-vue-next v0.468.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const Yu=$t("MenuIcon",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
27
+ * @license lucide-vue-next v0.468.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const Ju=$t("PanelLeftCloseIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
32
+ * @license lucide-vue-next v0.468.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const qu=$t("PanelLeftOpenIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
37
+ * @license lucide-vue-next v0.468.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const Qu=$t("PencilIcon",[["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"}]]);/**
42
+ * @license lucide-vue-next v0.468.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const Zu=$t("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
47
+ * @license lucide-vue-next v0.468.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const ec=$t("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),tc=["INPUT","TEXTAREA"];function bi(e,t,n,o={}){if(!t||o.enableIgnoredElement&&tc.includes(t.nodeName))return null;const{arrowKeyOptions:a="both",attributeName:i="[data-reka-collection-item]",itemsArray:r=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:f=!1}=o,[c,d,p,h,m,v]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],y=p||h,E=c||d;if(!m&&!v&&(!y&&!E||a==="vertical"&&E||a==="horizontal"&&y))return null;const x=n?Array.from(n.querySelectorAll(i)):r;if(!x.length)return null;u&&e.preventDefault();let b=null;return E||y?b=Es(x,t,{goForward:y?h:l==="ltr"?c:d,loop:s}):m?b=x.at(0)||null:v&&(b=x.at(-1)||null),f&&(b==null||b.focus()),b}function Es(e,t,n,o=e.includes(t)?e.length:e.length+1){if(--o===0)return null;const a=e.indexOf(t);let i;if(a===-1?i=n.goForward?0:e.length-1:i=n.goForward?a+1:a-1,!n.loop&&(i<0||i>=e.length))return null;const r=(i+e.length)%e.length,s=e[r];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?Es(e,s,n,o):s:null}let Xo=0;function nc(){as(e=>{if(!ru)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Ti()),document.body.insertAdjacentElement("beforeend",t[1]??Ti()),Xo++,e(()=>{Xo===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Xo--})})}function Ti(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function rc(e){const t=ou("",1e3);return{search:t,handleTypeaheadSearch:(a,i)=>{t.value=t.value+a;{const r=mn(),s=i.map(d=>{var p,h;return{...d,textValue:((p=d.value)==null?void 0:p.textValue)??((h=d.ref.textContent)==null?void 0:h.trim())??""}}),l=s.find(d=>d.ref===r),u=s.map(d=>d.textValue),f=ac(u,t.value,l==null?void 0:l.textValue),c=s.find(d=>d.textValue===f);return c&&c.ref.focus(),c==null?void 0:c.ref}},resetTypeahead:()=>{t.value=""}}}function oc(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ac(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let r=oc(e,Math.max(i,0));a.length===1&&(r=r.filter(u=>u!==n));const l=r.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return l!==n?l:void 0}function Ii(){const e=Z(),t=Te(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:au(e)});return{primitiveElement:e,currentElement:t}}const[Ss,ic]=Un("CollapsibleRoot");var sc=ye({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(e,{expose:t,emit:n}){const o=e,i=So(o,"open",n,{defaultValue:o.defaultOpen,passive:o.open===void 0}),{disabled:r,unmountOnHide:s}=Sr(o);return ic({contentId:"",disabled:r,open:i,unmountOnHide:s,onOpenToggle:()=>{r.value||(i.value=!i.value)}}),t({open:i}),Tt(),(l,u)=>(_(),q(g(Tn),{as:l.as,"as-child":o.asChild,"data-state":g(i)?"open":"closed","data-disabled":g(r)?"":void 0},{default:A(()=>[xe(l.$slots,"default",{open:g(i)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),lc=sc,uc=ye({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(e,{emit:t}){const n=e,o=t,a=Ss();a.contentId||(a.contentId=ba(void 0,"reka-collapsible-content"));const i=Z(),{forwardRef:r,currentElement:s}=Tt(),l=Z(0),u=Z(0),f=Te(()=>a.open.value),c=Z(f.value),d=Z();Rt(()=>{var h;return[f.value,(h=i.value)==null?void 0:h.present]},async()=>{await hn();const h=s.value;if(!h)return;d.value=d.value||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const m=h.getBoundingClientRect();u.value=m.height,l.value=m.width,c.value||(h.style.transitionDuration=d.value.transitionDuration,h.style.animationName=d.value.animationName)},{immediate:!0});const p=Te(()=>c.value&&a.open.value);return br(()=>{requestAnimationFrame(()=>{c.value=!1})}),ia(s,"beforematch",h=>{requestAnimationFrame(()=>{a.onOpenToggle(),o("contentFound")})}),(h,m)=>(_(),q(g(cs),{ref_key:"presentRef",ref:i,present:h.forceMount||g(a).open.value,"force-mount":!0},{default:A(({present:v})=>{var y;return[D(g(Tn),dt(h.$attrs,{id:g(a).contentId,ref:g(r),"as-child":n.asChild,as:h.as,hidden:v?void 0:g(a).unmountOnHide.value?"":"until-found","data-state":p.value?void 0:g(a).open.value?"open":"closed","data-disabled":(y=g(a).disabled)!=null&&y.value?"":void 0,style:{"--reka-collapsible-content-height":`${u.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:A(()=>[!g(a).unmountOnHide.value||v?xe(h.$slots,"default",{key:0}):vt("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]}),_:3},8,["present"]))}}),cc=uc,fc=ye({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Tt();const n=Ss();return(o,a)=>{var i,r;return _(),q(g(Tn),{type:o.as==="button"?"button":void 0,as:o.as,"as-child":t.asChild,"aria-controls":g(n).contentId,"aria-expanded":g(n).open.value,"data-state":g(n).open.value?"open":"closed","data-disabled":(i=g(n).disabled)!=null&&i.value?"":void 0,disabled:(r=g(n).disabled)==null?void 0:r.value,onClick:g(n).onOpenToggle},{default:A(()=>[xe(o.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}}),dc=fc;const xi="data-reka-collection-item";function bs(e={}){const{key:t="",isProvider:n=!1}=e,o=`${t}CollectionProvider`;let a;if(n){const f=Z(new Map);a={collectionRef:Z(),itemMap:f},aa(o,a)}else a=is(o);const i=(f=!1)=>{const c=a.collectionRef.value;if(!c)return[];const d=Array.from(c.querySelectorAll(`[${xi}]`)),h=Array.from(a.itemMap.value.values()).sort((m,v)=>d.indexOf(m.ref)-d.indexOf(v.ref));return f?h:h.filter(m=>m.ref.dataset.disabled!=="")},r=ye({name:"CollectionSlot",inheritAttrs:!1,setup(f,{slots:c,attrs:d}){const{primitiveElement:p,currentElement:h}=Ii();return Rt(h,()=>{a.collectionRef.value=h.value}),()=>fi(pi,{ref:p,...d},c)}}),s=ye({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(f,{slots:c,attrs:d}){const{primitiveElement:p,currentElement:h}=Ii();return as(m=>{if(h.value){const v=Vl(h.value);a.itemMap.value.set(v,{ref:h.value,value:f.value}),m(()=>a.itemMap.value.delete(v))}}),()=>fi(pi,{...d,[xi]:"",ref:p},c)}}),l=Te(()=>Array.from(a.itemMap.value.values())),u=Te(()=>a.itemMap.value.size);return{getItems:i,reactiveItems:l,itemMapSize:u,CollectionSlot:r,CollectionItem:s}}const pc="rovingFocusGroup.onEntryFocus",hc={bubbles:!1,cancelable:!0};function mc(e,t=!1){const n=mn();for(const o of e)if(o===n||(o.focus({preventScroll:t}),mn()!==n))return}const[$m,vc]=Un("RovingFocusGroup");var gc=ye({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const o=e,a=n,{loop:i,orientation:r,dir:s}=Sr(o),l=Na(s),u=So(o,"currentTabStopId",a,{defaultValue:o.defaultCurrentTabStopId,passive:o.currentTabStopId===void 0}),f=Z(!1),c=Z(!1),d=Z(0),{getItems:p,CollectionSlot:h}=bs({isProvider:!0});function m(y){const E=!c.value;if(y.currentTarget&&y.target===y.currentTarget&&E&&!f.value){const x=new CustomEvent(pc,hc);if(y.currentTarget.dispatchEvent(x),a("entryFocus",x),!x.defaultPrevented){const b=p().map(S=>S.ref).filter(S=>S.dataset.disabled!==""),C=b.find(S=>S.getAttribute("data-active")===""),P=b.find(S=>S.getAttribute("data-highlighted")===""),K=b.find(S=>S.id===u.value),$=[C,P,K,...b].filter(Boolean);mc($,o.preventScrollOnEntryFocus)}}c.value=!1}function v(){setTimeout(()=>{c.value=!1},1)}return t({getItems:p}),vc({loop:i,dir:l,orientation:r,currentTabStopId:u,onItemFocus:y=>{u.value=y},onItemShiftTab:()=>{f.value=!0},onFocusableItemAdd:()=>{d.value++},onFocusableItemRemove:()=>{d.value--}}),(y,E)=>(_(),q(g(h),null,{default:A(()=>[D(g(Tn),{tabindex:f.value||d.value===0?-1:0,"data-orientation":g(r),as:y.as,"as-child":y.asChild,dir:g(l),style:{outline:"none"},onMousedown:E[0]||(E[0]=x=>c.value=!0),onMouseup:v,onFocus:m,onBlur:E[1]||(E[1]=x=>f.value=!1)},{default:A(()=>[xe(y.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),yc=gc,Ec=ye({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,o)=>(_(),q(g(Mu),Mt(on(t)),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),Sc=Ec;function bc(){const e=Z(!1);return br(()=>{ia("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),ia(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const Tc=iu(bc),[bo,Ic]=Un(["MenuRoot","MenuSub"],"MenuContext"),[Aa,xc]=Un("MenuRoot");var Oc=ye({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t,{modal:a,dir:i}=Sr(n),r=Na(i),s=So(n,"open",o),l=Z(),u=Tc();return Ic({open:s,onOpenChange:f=>{s.value=f},content:l,onContentChange:f=>{l.value=f}}),xc({onClose:()=>{s.value=!1},isUsingKeyboardRef:u,dir:r,modal:a}),(f,c)=>(_(),q(g(Lu),null,{default:A(()=>[xe(f.$slots,"default")]),_:3}))}}),Cc=Oc;const[Ts,Nc]=Un("MenuContent");var Ac=ye({__name:"MenuContentImpl",props:Ul({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Fu}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,o=t,a=bo(),i=Aa(),{trapFocus:r,disableOutsidePointerEvents:s,loop:l}=Sr(n);nc(),su(s.value);const u=Z(""),f=Z(0),c=Z(0),d=Z(null),p=Z("right"),h=Z(0),m=Z(null),v=Z(),{forwardRef:y,currentElement:E}=Tt(),{handleTypeaheadSearch:x}=rc(),b=Z();function C(O){const w=bi(O,b.value||mn(),E.value,{loop:l.value,arrowKeyOptions:"vertical",dir:i==null?void 0:i.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});w&&(b.value=w,w.scrollIntoView({block:"nearest"}))}function P(){b.value&&b.value.click()}const K=Z(),$=Z();Rt(b,O=>{$.value&&(O===void 0||O!==$.value.trigger.value)&&($.value.onOpenChange(!1),$.value=void 0)}),Rt(E,O=>{a.onContentChange(O)}),Ea(()=>{window.clearTimeout(f.value)});function S(O){var V,Q;return p.value===((V=d.value)==null?void 0:V.side)&&fu(O,(Q=d.value)==null?void 0:Q.area)}async function L(O){var w;o("openAutoFocus",O),!O.defaultPrevented&&(O.preventDefault(),(w=E.value)==null||w.focus({preventScroll:!0}))}function k(O){var X;if(O.defaultPrevented)return;const w=O.target,V=w.closest("[data-reka-menu-content]")===O.currentTarget,Q=["input","textarea"].includes(w.tagName.toLowerCase()),me=O.ctrlKey||O.altKey||O.metaKey,ie=O.key.length===1,W=bi(O,mn(),E.value,{loop:l.value,arrowKeyOptions:"vertical",dir:i==null?void 0:i.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(W)return W==null?void 0:W.focus();if(O.code==="Space")return;const N=((X=v.value)==null?void 0:X.getItems())??[];if(V&&(O.key==="Tab"&&O.preventDefault(),!me&&ie&&!Q&&x(O.key,N)),O.target!==E.value||!du.includes(O.key))return;O.preventDefault();const U=[...N.map(se=>se.ref)];pu.includes(O.key)&&U.reverse(),hu(U)}function j(O){var w,V;(V=(w=O==null?void 0:O.currentTarget)==null?void 0:w.contains)!=null&&V.call(w,O.target)||(window.clearTimeout(f.value),u.value="")}function M(O){var Q;if(!oo(O))return;const w=O.target,V=h.value!==O.clientX;if((Q=O==null?void 0:O.currentTarget)!=null&&Q.contains(w)&&V){const me=O.clientX>h.value?"right":"left";p.value=me,h.value=O.clientX}}function F(O){oo(O)&&K.value&&K.value.focus()}return Nc({onItemEnter:O=>!!S(O),onItemLeave:O=>{var V,Q;if(S(O))return;["INPUT","TEXTAREA"].includes(((V=mn())==null?void 0:V.tagName)||"")||(Q=E.value)==null||Q.focus(),m.value=null},onTriggerLeave:O=>!!S(O),searchRef:u,highlightedElement:b,onKeydownNavigation:C,onKeydownEnter:P,filterElement:K,onFilterElementChange:O=>{K.value=O},activeSubmenuContext:$,pointerGraceTimerRef:c,onPointerGraceIntentChange:O=>{d.value=O}}),(O,w)=>(_(),q(g(cu),{"as-child":"",trapped:g(r),onMountAutoFocus:L,onUnmountAutoFocus:w[7]||(w[7]=V=>o("closeAutoFocus",V))},{default:A(()=>[D(g(lu),{"as-child":"","disable-outside-pointer-events":g(s),onEscapeKeyDown:w[2]||(w[2]=V=>o("escapeKeyDown",V)),onPointerDownOutside:w[3]||(w[3]=V=>o("pointerDownOutside",V)),onFocusOutside:w[4]||(w[4]=V=>o("focusOutside",V)),onInteractOutside:w[5]||(w[5]=V=>o("interactOutside",V)),onDismiss:w[6]||(w[6]=V=>o("dismiss"))},{default:A(()=>[D(g(yc),{ref_key:"rovingFocusGroupRef",ref:v,"current-tab-stop-id":m.value,"onUpdate:currentTabStopId":w[0]||(w[0]=V=>m.value=V),"as-child":"",orientation:"vertical",dir:g(i).dir.value,loop:g(l),onEntryFocus:w[1]||(w[1]=V=>{o("entryFocus",V),g(i).isUsingKeyboardRef.value||V.preventDefault()})},{default:A(()=>[D(g($u),{ref:g(y),role:"menu",as:O.as,"as-child":O.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":g(uu)(g(a).open.value),dir:g(i).dir.value,side:O.side,"side-offset":O.sideOffset,align:O.align,"align-offset":O.alignOffset,"avoid-collisions":O.avoidCollisions,"collision-boundary":O.collisionBoundary,"collision-padding":O.collisionPadding,"arrow-padding":O.arrowPadding,"prioritize-position":O.prioritizePosition,"position-strategy":O.positionStrategy,"update-position-strategy":O.updatePositionStrategy,sticky:O.sticky,"hide-when-detached":O.hideWhenDetached,reference:O.reference,onKeydown:k,onBlur:j,onPointermove:M,onPointerenter:F},{default:A(()=>[xe(O.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Is=Ac,Pc=ye({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Ts(),{forwardRef:o,currentElement:a}=Tt(),{CollectionItem:i}=bs(),r=Z(!1),s=Te(()=>r.value||n.highlightedElement.value===a.value);async function l(f){var c;if(!(f.defaultPrevented||!oo(f))){if(t.disabled)n.onItemLeave(f);else if(!n.onItemEnter(f)){const p=f.currentTarget;n.highlightedElement.value=p,["INPUT","TEXTAREA"].includes(((c=mn())==null?void 0:c.tagName)||"")||p.focus({preventScroll:!0})}}}async function u(f){await hn(),!f.defaultPrevented&&oo(f)&&n.onItemLeave(f)}return(f,c)=>(_(),q(g(i),{value:{textValue:f.textValue}},{default:A(()=>[D(g(Tn),dt({ref:g(o),role:"menuitem",tabindex:"-1"},f.$attrs,{as:f.as,"as-child":f.asChild,"aria-disabled":f.disabled||void 0,"data-disabled":f.disabled?"":void 0,"data-highlighted":s.value?"":void 0,onPointermove:l,onPointerleave:u,onFocus:c[0]||(c[0]=async d=>{await hn(),!(d.defaultPrevented||f.disabled)&&(r.value=!0,g(n).highlightedElement.value=d.currentTarget)}),onBlur:c[1]||(c[1]=async d=>{await hn(),!d.defaultPrevented&&(r.value=!1)})}),{default:A(()=>[xe(f.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),Dc=Pc,Rc=ye({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:a,currentElement:i}=Tt(),r=Aa(),s=Ts(),l=Z(!1);async function u(){const f=i.value;if(!n.disabled&&f){const c=new CustomEvent(vu,{bubbles:!0,cancelable:!0});o("select",c),await hn(),c.defaultPrevented?l.value=!1:r.onClose()}}return(f,c)=>(_(),q(Dc,dt(n,{ref:g(a),onClick:u,onPointerdown:c[0]||(c[0]=()=>{l.value=!0}),onPointerup:c[1]||(c[1]=async d=>{var p;await hn(),!d.defaultPrevented&&(l.value||(p=d.currentTarget)==null||p.click())}),onKeydown:c[2]||(c[2]=async d=>{const p=g(s).searchRef.value!=="";f.disabled||p&&d.key===" "||g(mu).includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}),{default:A(()=>[xe(f.$slots,"default")]),_:3},16))}}),wc=Rc,Mc=ye({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,a=In(n,o),i=bo(),{forwardRef:r,currentElement:s}=Tt();return gu(s),(l,u)=>(_(),q(Is,dt(g(a),{ref:g(r),"trap-focus":g(i).open.value,"disable-outside-pointer-events":g(i).open.value,"disable-outside-scroll":!0,onDismiss:u[0]||(u[0]=f=>g(i).onOpenChange(!1)),onFocusOutside:u[1]||(u[1]=dn(f=>o("focusOutside",f),["prevent"]))}),{default:A(()=>[xe(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),Lc=Mc,$c=ye({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=In(e,t),i=bo();return(r,s)=>(_(),q(Is,dt(g(a),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:s[0]||(s[0]=l=>g(i).onOpenChange(!1))}),{default:A(()=>[xe(r.$slots,"default")]),_:3},16))}}),Fc=$c,kc=ye({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=In(e,t),i=bo(),r=Aa();return(s,l)=>(_(),q(g(cs),{present:s.forceMount||g(i).open.value},{default:A(()=>[g(r).modal.value?(_(),q(Lc,Mt(dt({key:0},{...s.$attrs,...g(a)})),{default:A(()=>[xe(s.$slots,"default")]),_:3},16)):(_(),q(Fc,Mt(dt({key:1},{...s.$attrs,...g(a)})),{default:A(()=>[xe(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Bc=kc,Vc=ye({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(_(),q(g(yu),Mt(on(t)),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),Uc=Vc,jc=ye({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,o)=>(_(),q(g(Tn),dt(t,{role:"separator","aria-orientation":"horizontal"}),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),_c=jc;const[xs,Kc]=Un("DropdownMenuRoot");var Xc=ye({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;Tt();const a=So(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=Z(),{modal:r,dir:s}=Sr(n),l=Na(s);return Kc({open:a,onOpenChange:u=>{a.value=u},onOpenToggle:()=>{a.value=!a.value},triggerId:"",triggerElement:i,contentId:"",modal:r,dir:l}),(u,f)=>(_(),q(g(Cc),{open:g(a),"onUpdate:open":f[0]||(f[0]=c=>jl(a)?a.value=c:null),dir:g(l),modal:g(r)},{default:A(()=>[xe(u.$slots,"default",{open:g(a)})]),_:3},8,["open","dir","modal"]))}}),Gc=Xc,Hc=ye({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const a=In(e,t);Tt();const i=xs(),r=Z(!1);function s(l){l.defaultPrevented||(r.value||setTimeout(()=>{var u;(u=i.triggerElement.value)==null||u.focus()},0),r.value=!1,l.preventDefault())}return i.contentId||(i.contentId=ba(void 0,"reka-dropdown-menu-content")),(l,u)=>{var f;return _(),q(g(Bc),dt(g(a),{id:g(i).contentId,"aria-labelledby":(f=g(i))==null?void 0:f.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:s,onInteractOutside:u[0]||(u[0]=c=>{var m;if(c.defaultPrevented)return;const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,h=d.button===2||p;(!g(i).modal.value||h)&&(r.value=!0),(m=g(i).triggerElement.value)!=null&&m.contains(c.target)&&c.preventDefault()})}),{default:A(()=>[xe(l.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Wc=Hc,zc=ye({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,a=Eu(t);return Tt(),(i,r)=>(_(),q(g(wc),Mt(on({...n,...g(a)})),{default:A(()=>[xe(i.$slots,"default")]),_:3},16))}}),Yc=zc,Jc=ye({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,o)=>(_(),q(g(Uc),Mt(on(t)),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),qc=Jc,Qc=ye({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Tt(),(n,o)=>(_(),q(g(_c),Mt(on(t)),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),Zc=Qc,ef=ye({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=xs(),{forwardRef:o,currentElement:a}=Tt();return br(()=>{n.triggerElement=a}),n.triggerId||(n.triggerId=ba(void 0,"reka-dropdown-menu-trigger")),(i,r)=>(_(),q(g(Sc),{"as-child":""},{default:A(()=>[D(g(Tn),{id:g(n).triggerId,ref:g(o),type:i.as==="button"?"button":void 0,"as-child":t.asChild,as:i.as,"aria-haspopup":"menu","aria-expanded":g(n).open.value,"aria-controls":g(n).open.value?g(n).contentId:void 0,"data-disabled":i.disabled?"":void 0,disabled:i.disabled,"data-state":g(n).open.value?"open":"closed",onClick:r[0]||(r[0]=async s=>{var l;!i.disabled&&s.button===0&&s.ctrlKey===!1&&((l=g(n))==null||l.onOpenToggle(),await hn(),g(n).open.value&&s.preventDefault())}),onKeydown:r[1]||(r[1]=_l(s=>{i.disabled||(["Enter"," "].includes(s.key)&&g(n).onOpenToggle(),s.key==="ArrowDown"&&g(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())},["enter","space","arrow-down"]))},{default:A(()=>[xe(i.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),tf=ef;const nf={class:"px-6 py-5 sm:px-7 sm:py-5"},rf={class:"flex items-start gap-4 sm:items-center"},of={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-primary/15 bg-primary/10 text-primary shadow-sm"},af={class:"min-w-0 flex-1"},sf={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},lf={class:"min-w-0"},uf={class:"space-y-2.5 px-6 py-3.5 sm:px-7 sm:py-4"},cf=["onClick"],ff={class:"min-w-0 flex-1"},df={class:"flex flex-wrap items-center gap-2 text-[11px] text-muted-foreground sm:text-xs"},pf={class:"inline-flex items-center gap-1 text-muted-foreground"},hf={class:"mt-1.5 line-clamp-1 text-sm font-medium leading-6 text-foreground transition-colors group-hover:text-primary sm:text-[15px]"},mf={key:0,class:"mt-0.5 line-clamp-1 text-xs leading-5 text-muted-foreground sm:text-sm"},vf={key:0,class:"pt-1 text-xs leading-5 text-muted-foreground"},gf=ye({__name:"AnnouncementNoticeDialog",props:{open:{type:Boolean},items:{}},emits:["update:open","close-once","close-today","view-announcement","view-all"],setup(e,{emit:t}){const n=e,o=t,a=Te(()=>n.items.slice(0,5));function i(c){return new Date(c).toLocaleString("zh-CN",{hour12:!1,year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"})}function r(c){o("update:open",c),c||o("close-once")}function s(){o("update:open",!1),o("close-once")}function l(){o("update:open",!1),o("close-today")}function u(){o("update:open",!1),o("view-all")}function f(c){o("update:open",!1),o("view-announcement",c)}return(c,d)=>(_(),q(g(lr),{open:e.open,"onUpdate:open":r},{default:A(()=>[D(g(rr),{onOpenAutoFocus:d[0]||(d[0]=dn(()=>{},["prevent"])),class:"overflow-hidden border-border/60 bg-card/95 p-0 shadow-xl backdrop-blur supports-[backdrop-filter]:bg-card/90 sm:max-w-[860px]"},{default:A(()=>[H("div",nf,[D(g(or),{class:"text-left"},{default:A(()=>[H("div",rf,[H("div",of,[D(g(hs),{class:"h-4.5 w-4.5"})]),H("div",af,[H("div",sf,[H("div",lf,[D(g(ar),{class:"text-lg font-semibold tracking-tight text-foreground"},{default:A(()=>[...d[1]||(d[1]=[ce(" 你有新的公告待查看 ",-1)])]),_:1}),D(g(ir),{class:"mt-1 text-sm leading-6 text-muted-foreground"},{default:A(()=>[...d[2]||(d[2]=[ce(" 关闭仅本次生效,今日关闭会在明天恢复提醒。 ",-1)])]),_:1})]),D(g(Bt),{variant:"outline",class:"w-fit shrink-0 rounded-full border-primary/15 bg-primary/5 px-3 py-1 text-[11px] font-medium text-primary"},{default:A(()=>[ce(Ae(e.items.length)+" 条待查看 ",1)]),_:1})])])])]),_:1})]),D(g(mi),{class:"opacity-60"}),H("div",uf,[(_(!0),Se(en,null,ro(a.value,p=>(_(),Se("button",{key:p.id,type:"button",class:"group flex w-full items-center gap-4 rounded-2xl border border-border/60 bg-background/35 px-4 py-3 text-left transition-colors hover:bg-muted/35 sm:px-5",onClick:h=>f(p.id)},[H("div",ff,[H("div",df,[D(g(Bt),{variant:"outline",class:"rounded-full border-primary/20 bg-primary/10 text-[11px] text-primary"},{default:A(()=>[...d[3]||(d[3]=[ce(" 系统公告 ",-1)])]),_:1}),p.isPinned?(_(),q(g(Bt),{key:0,variant:"outline",class:"rounded-full border-orange-500/30 bg-orange-500/10 text-[11px] font-medium text-orange-600"},{default:A(()=>[D(g(Du),{class:"h-3 w-3"}),d[4]||(d[4]=ce("置顶 ",-1))]),_:1})):vt("",!0),H("span",pf,[D(g(Ru),{class:"h-3.5 w-3.5"}),ce(" "+Ae(i(p.publishedAt)),1)])]),H("h3",hf,Ae(p.title),1),p.intro?(_(),Se("p",mf,Ae(p.intro),1)):vt("",!0)]),D(g(ms),{class:"h-4 w-4 shrink-0 self-center text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-foreground"})],8,cf))),128)),e.items.length>a.value.length?(_(),Se("p",vf," 还有 "+Ae(e.items.length-a.value.length)+" 条未读公告,可前往公告页查看完整列表。 ",1)):vt("",!0)]),D(g(mi),{class:"opacity-60"}),D(g(sr),{class:"gap-2 bg-background/20 px-6 py-3 sm:px-7 sm:flex-row sm:justify-end"},{default:A(()=>[D(g(ke),{variant:"outline",size:"sm",class:"border-border/60",onClick:s},{default:A(()=>[...d[5]||(d[5]=[ce(" 关闭 ",-1)])]),_:1}),D(g(ke),{variant:"secondary",size:"sm",class:"border border-border/60 bg-secondary/60 text-secondary-foreground hover:bg-secondary/80",onClick:l},{default:A(()=>[...d[6]||(d[6]=[ce(" 今日关闭 ",-1)])]),_:1}),D(g(ke),{size:"sm",onClick:u},{default:A(()=>[...d[7]||(d[7]=[ce(" 查看公告 ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]))}}),yf=ye({__name:"Collapsible",props:{defaultOpen:{type:Boolean},open:{type:Boolean},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{emit:t}){const a=In(e,t);return(i,r)=>(_(),q(g(lc),Mt(on(g(a))),{default:A(({open:s})=>[xe(i.$slots,"default",{open:s})]),_:3},16))}}),Ef=ye({__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(_(),q(g(cc),dt(t,{class:"overflow-hidden transition-all data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down"}),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),Sf=ye({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(_(),q(g(dc),Mt(on(t)),{default:A(()=>[xe(n.$slots,"default")]),_:3},16))}}),bf=ye({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const a=In(e,t);return(i,r)=>(_(),q(g(Gc),Mt(on(g(a))),{default:A(()=>[xe(i.$slots,"default")]),_:3},16))}}),Tf=ye({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,a=Ta(n,"class"),i=In(a,o);return(r,s)=>(_(),q(g(qc),null,{default:A(()=>[D(g(Wc),dt(g(i),{class:g(Ia)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:A(()=>[xe(r.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Go=ye({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(e){const t=e,n=Ta(t,"class"),o=fs(n);return(a,i)=>(_(),q(g(Yc),dt(g(o),{class:g(Ia)("relative flex cursor-pointer select-none items-center rounded-sm gap-2 px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",e.inset&&"pl-8",t.class)}),{default:A(()=>[xe(a.$slots,"default")]),_:3},16,["class"]))}}),If=ye({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ta(t,"class");return(o,a)=>(_(),q(g(Zc),dt(g(n),{class:g(Ia)("-mx-1 my-1 h-px bg-muted",t.class)}),null,16,["class"]))}}),xf=ye({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const n=fs(e);return(o,a)=>(_(),q(g(tf),dt({class:"outline-none"},g(n)),{default:A(()=>[xe(o.$slots,"default")]),_:3},16))}}),Of={class:"mb-1.5 flex items-center justify-between gap-2"},Cf={class:"flex min-w-0 items-center gap-1.5 pr-2"},Nf={class:"text-sm font-medium truncate"},Af={key:0,class:"mb-2 flex items-center gap-2"},Pf=["title"],Df={class:"truncate"},Rf={key:1,class:"mb-2 flex items-center gap-2"},wf=["title"],Mf={key:3,class:"space-y-1.5 animate-pulse"},Lf={key:4,class:"space-y-1.5"},$f={class:"flex items-center gap-1 text-[11px] font-medium text-red-700 dark:text-red-400"},Ff={class:"flex items-center gap-2 mb-1"},kf={class:"text-[10px] text-muted-foreground tabular-nums shrink-0"},Bf={class:"text-[11px] leading-5 text-foreground/85"},Vf=ye({__name:"ApiKeyCard",props:{storedKey:{},keyInfo:{},isActive:{type:Boolean},isInvalid:{type:Boolean},isDragging:{type:Boolean}},emits:["click","edit","delete","copy"],setup(e,{emit:t}){const n=e,o=t,a=Te(()=>Su(n.storedKey.key)),i=Te(()=>{var h;return((h=n.keyInfo)==null?void 0:h.status)||(n.isInvalid?"invalid":"")}),r=Te(()=>xa(i.value)),s=Te(()=>{const h=n.keyInfo;if(!(h!=null&&h.quota))return 0;const m=h.billing_type,v=h.quota;if(m==="duration"){const y=v.daily_quota||0,E=Math.max(0,y-(v.daily_spent||0)),x=we(v.quota_pack_expires_at)&&v.quota_pack||0,b=we(v.quota_pack_expires_at)&&v.quota_pack_remaining||0,C=y+x,P=E+b;return C>0?Math.round((C-P)/C*100):0}if(m==="quota"){const y=v.total_quota||0,E=v.remaining_quota||0,x=we(v.quota_pack_expires_at)&&v.quota_pack||0,b=we(v.quota_pack_expires_at)&&v.quota_pack_remaining||0,C=y+x,P=E+b;return C>0?Math.round((C-P)/C*100):0}if(m==="count"){const y=v.max_requests||0,E=v.remaining_count||0,x=we(v.requests_pack_expires_at)&&v.requests_pack||0,b=we(v.requests_pack_expires_at)&&v.requests_pack_remaining||0,C=y+x,P=E+b;return C>0?Math.round((C-P)/C*100):0}return 0}),l=Te(()=>{const h=n.keyInfo;if(!(h!=null&&h.quota))return"";const m=h.billing_type,v=h.quota;if(m==="duration"){const y=v.daily_quota||0,E=Math.max(0,y-(v.daily_spent||0)),x=we(v.quota_pack_expires_at)&&v.quota_pack||0,b=we(v.quota_pack_expires_at)&&v.quota_pack_remaining||0;return`剩余 ${qt(E+b)} / ${qt(y+x)}`}if(m==="quota"){const y=v.total_quota||0,E=v.remaining_quota||0,x=we(v.quota_pack_expires_at)&&v.quota_pack||0,b=we(v.quota_pack_expires_at)&&v.quota_pack_remaining||0;return`剩余 ${qt(E+b)} / ${qt(y+x)}`}if(m==="count"){const y=v.max_requests||0,E=v.remaining_count||0,x=we(v.requests_pack_expires_at)&&v.requests_pack||0,b=we(v.requests_pack_expires_at)&&v.requests_pack_remaining||0;return`剩余 ${E+b} / ${y+x} 次`}return""}),u=Te(()=>{var h;return bu(((h=n.keyInfo)==null?void 0:h.service_type)||"")}),f=Te(()=>s.value>80?"bg-destructive":s.value>50?"bg-[hsl(var(--warning))]":"bg-primary"),c=Te(()=>{var m,v,y,E,x,b;return((m=n.keyInfo)==null?void 0:m.status)==="disabled"?"已禁用":n.isInvalid&&!((v=n.keyInfo)!=null&&v.status)?"已失效":(E=(y=n.keyInfo)==null?void 0:y.timestamps)!=null&&E.activated_at?Tu((b=(x=n.keyInfo)==null?void 0:x.timestamps)==null?void 0:b.expires_at)||"永久有效":"待激活"}),d=Te(()=>{var m,v,y;if(c.value==="已过期"||c.value==="已禁用"||c.value==="已失效")return"text-destructive";if(c.value==="待激活")return((m=n.keyInfo)==null?void 0:m.status)==="linked"?"text-blue-500":"text-amber-500";const h=(y=(v=n.keyInfo)==null?void 0:v.timestamps)==null?void 0:y.expires_at;return h&&new Date(h).getTime()-Date.now()<=1440*60*1e3?"text-[hsl(var(--warning))]":"text-muted-foreground"});function p(h){h.stopPropagation(),o("copy")}return(h,m)=>(_(),Se("div",{class:et(["group relative rounded-xl border px-3 py-2.5 cursor-pointer transition-[background-color,border-color] duration-200 select-none [-webkit-tap-highlight-color:transparent]",[e.isActive?"bg-primary/[0.06] shadow-sm shadow-primary/10 ring-1 ring-primary/15 border-primary/20":"border-border/60 hover:bg-muted/50 hover:shadow-sm",e.isDragging?"cursor-grabbing":""]]),onClick:m[4]||(m[4]=v=>o("click"))},[H("div",Of,[H("div",Cf,[e.keyInfo||e.isInvalid?(_(),Se("span",{key:0,class:et(["w-1.5 h-1.5 rounded-full flex-shrink-0",r.value])},null,2)):vt("",!0),H("span",Nf,Ae(e.storedKey.name),1)]),D(g(bf),null,{default:A(()=>[D(g(xf),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:et(["no-drag h-6 w-6 flex-shrink-0 opacity-0 transition-opacity group-hover:opacity-100",e.isActive?"opacity-60":""]),onClick:m[0]||(m[0]=dn(()=>{},["stop"]))},{default:A(()=>[D(g(Wu),{class:"h-3.5 w-3.5"})]),_:1},8,["class"])]),_:1}),D(g(Tf),{align:"end",class:"w-36"},{default:A(()=>[D(g(Go),{onClick:m[1]||(m[1]=dn(v=>o("edit"),["stop"]))},{default:A(()=>[D(g(Qu),{class:"h-3.5 w-3.5 mr-2"}),m[5]||(m[5]=ce(" 编辑 ",-1))]),_:1}),D(g(Go),{onClick:m[2]||(m[2]=dn(v=>p(v),["stop"]))},{default:A(()=>[D(g(Hu),{class:"h-3.5 w-3.5 mr-2"}),m[6]||(m[6]=ce(" 复制 Key ",-1))]),_:1}),D(g(If)),D(g(Go),{class:"text-destructive focus:text-destructive",onClick:m[3]||(m[3]=dn(v=>o("delete"),["stop"]))},{default:A(()=>[D(g(ec),{class:"h-3.5 w-3.5 mr-2"}),m[7]||(m[7]=ce(" 删除 ",-1))]),_:1})]),_:1})]),_:1})]),e.keyInfo?(_(),Se("div",Af,[H("p",{class:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",title:a.value},Ae(a.value),9,Pf),D(g(Bt),{variant:"outline",class:et(["max-w-[8rem] shrink-0 rounded-md px-1.5 py-0 text-[10px] font-semibold h-[18px]",g(Oa)(e.keyInfo.service_type).badge]),title:u.value},{default:A(()=>[H("span",Df,Ae(u.value),1)]),_:1},8,["class","title"])])):e.isInvalid&&!e.keyInfo?(_(),Se("div",Rf,[H("p",{class:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",title:a.value},Ae(a.value),9,wf),D(g(Bt),{variant:"outline",class:"h-[18px] shrink-0 rounded-md border-red-200 bg-red-50 px-1.5 py-0 text-[10px] text-red-700 dark:border-red-500/30 dark:bg-red-500/10 dark:text-red-400"},{default:A(()=>[...m[8]||(m[8]=[ce(" 已失效 ",-1)])]),_:1})])):(_(),Se(en,{key:2},[m[9]||(m[9]=H("div",{class:"mb-1.5 h-3 w-4/5 animate-pulse rounded bg-muted"},null,-1)),m[10]||(m[10]=H("div",{class:"mb-2 flex items-center gap-2 animate-pulse"},[H("div",{class:"h-3 flex-1 rounded bg-muted"}),H("div",{class:"h-[18px] w-16 shrink-0 rounded-md bg-muted"})],-1))],64)),!e.keyInfo&&!e.isInvalid?(_(),Se("div",Mf,[...m[11]||(m[11]=[Kl('<div class="flex items-center gap-2"><div class="h-1.5 flex-1 rounded-full bg-muted"></div><div class="h-3 w-6 rounded bg-muted"></div></div><div class="h-3 w-4/5 rounded bg-muted"></div><div class="h-3 w-24 rounded bg-muted"></div>',3)])])):e.isInvalid&&!e.keyInfo?(_(),Se("div",Lf,[m[13]||(m[13]=H("div",{class:"flex items-center gap-2"},[H("div",{class:"h-1.5 flex-1 rounded-full bg-red-100 dark:bg-red-500/15"}),H("span",{class:"text-[10px] font-medium text-red-700 dark:text-red-400"}," 失效 ")],-1)),m[14]||(m[14]=H("p",{class:"text-[11px] leading-5 text-red-700 dark:text-red-400"}," 该 Key 已失效,请移除后重新添加。 ",-1)),H("p",$f,[D(g(gi),{class:"h-3 w-3 shrink-0 opacity-70"}),m[12]||(m[12]=ce(" 已失效 ",-1))])])):(_(),Se(en,{key:5},[H("div",Ff,[D(g(ku),{"model-value":s.value,class:"h-1.5 flex-1","indicator-class":f.value},null,8,["model-value","indicator-class"]),H("span",kf,Ae(s.value)+"%",1)]),H("p",Bf,Ae(l.value),1),H("p",{class:et(["mt-1 flex items-center gap-1 text-[11px] font-medium leading-tight",d.value])},[D(g(gi),{class:"h-3 w-3 shrink-0 opacity-60"}),ce(" "+Ae(c.value),1)],2)],64))],2))}}),Uf={class:"space-y-2"},jf={class:"relative"},_f=["disabled"],Kf={class:"space-y-2"},Xf=ye({__name:"AddKeyDialog",props:{open:{type:Boolean}},emits:["update:open","added"],setup(e,{emit:t}){const n=e,o=t,a=Ca(),i=Z(""),r=Z(""),s=Z(!1),l=Z(!1);Rt(()=>n.open,c=>{c&&(i.value="",r.value="",s.value=!1,a.clearError())});async function u(){const c=i.value.trim();if(!c){Et.error("请输入 API Key");return}l.value=!0;const d=await a.addKey(c,r.value.trim());d?(o("update:open",!1),o("added"),d==="switched"?Et.info("该 Key 已存在,已为您切换"):Et.success("添加成功")):Et.error("添加失败",a.error||"请检查 API Key"),l.value=!1}function f(){o("update:open",!1)}return(c,d)=>(_(),q(g(lr),{open:e.open,"onUpdate:open":f},{default:A(()=>[D(g(rr),{class:"sm:max-w-md"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),{class:"flex items-center gap-2"},{default:A(()=>[D(g(ao),{class:"h-5 w-5 text-primary"}),d[3]||(d[3]=ce(" 添加 API Key ",-1))]),_:1}),D(g(ir),null,{default:A(()=>[...d[4]||(d[4]=[ce(" 输入您的 API Key 以查看使用情况 ",-1)])]),_:1})]),_:1}),H("form",{onSubmit:dn(u,["prevent"]),class:"space-y-4"},[H("div",Uf,[D(g(la),{for:"addkey-apikey",class:"flex items-center gap-2"},{default:A(()=>[D(g(Iu),{class:"h-4 w-4 text-primary"}),d[5]||(d[5]=ce(" API Key ",-1))]),_:1}),H("div",jf,[D(g(sa),{id:"addkey-apikey",modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=p=>i.value=p),type:s.value?"text":"password",placeholder:"请输入您的 API Key",class:"pr-10",disabled:l.value,autocomplete:"off"},null,8,["modelValue","type","disabled"]),H("button",{type:"button",class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",onClick:d[1]||(d[1]=p=>s.value=!s.value),disabled:l.value},[s.value?(_(),q(g(Bu),{key:1,class:"h-4 w-4"})):(_(),q(g(Uu),{key:0,class:"h-4 w-4"}))],8,_f)])]),H("div",Kf,[D(g(la),{for:"addkey-name"},{default:A(()=>[...d[6]||(d[6]=[ce("自定义名称(选填)",-1)])]),_:1}),D(g(sa),{id:"addkey-name",modelValue:r.value,"onUpdate:modelValue":d[2]||(d[2]=p=>r.value=p),placeholder:"例如:我的 Claude Key",disabled:l.value},null,8,["modelValue","disabled"])]),D(g(sr),null,{default:A(()=>[D(g(ke),{type:"button",variant:"outline",onClick:f,disabled:l.value},{default:A(()=>[...d[7]||(d[7]=[ce(" 取消 ",-1)])]),_:1},8,["disabled"]),D(g(ke),{type:"submit",disabled:l.value||!i.value.trim()},{default:A(()=>[l.value?(_(),q(g(xu),{key:0,class:"h-4 w-4 animate-spin"})):(_(),q(g(ao),{key:1,class:"h-4 w-4"})),d[8]||(d[8]=ce(" 添加 ",-1))]),_:1},8,["disabled"])]),_:1})],32)]),_:1})]),_:1},8,["open"]))}});function Gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function To(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var Gr={exports:{}},Ho={exports:{}},Wo={};/**
52
+ * @vue/compiler-core v3.5.25
53
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
54
+ * @license MIT
55
+ **/const Mn=Symbol(""),wn=Symbol(""),Io=Symbol(""),hr=Symbol(""),Pa=Symbol(""),rn=Symbol(""),Da=Symbol(""),Ra=Symbol(""),xo=Symbol(""),Oo=Symbol(""),jn=Symbol(""),Co=Symbol(""),wa=Symbol(""),No=Symbol(""),Ao=Symbol(""),Po=Symbol(""),Do=Symbol(""),Ro=Symbol(""),wo=Symbol(""),Ma=Symbol(""),La=Symbol(""),Tr=Symbol(""),mr=Symbol(""),Mo=Symbol(""),Lo=Symbol(""),Ln=Symbol(""),_n=Symbol(""),$o=Symbol(""),io=Symbol(""),Os=Symbol(""),so=Symbol(""),vr=Symbol(""),Cs=Symbol(""),Ns=Symbol(""),Fo=Symbol(""),As=Symbol(""),Ps=Symbol(""),ko=Symbol(""),$a=Symbol(""),yn={[Mn]:"Fragment",[wn]:"Teleport",[Io]:"Suspense",[hr]:"KeepAlive",[Pa]:"BaseTransition",[rn]:"openBlock",[Da]:"createBlock",[Ra]:"createElementBlock",[xo]:"createVNode",[Oo]:"createElementVNode",[jn]:"createCommentVNode",[Co]:"createTextVNode",[wa]:"createStaticVNode",[No]:"resolveComponent",[Ao]:"resolveDynamicComponent",[Po]:"resolveDirective",[Do]:"resolveFilter",[Ro]:"withDirectives",[wo]:"renderList",[Ma]:"renderSlot",[La]:"createSlots",[Tr]:"toDisplayString",[mr]:"mergeProps",[Mo]:"normalizeClass",[Lo]:"normalizeStyle",[Ln]:"normalizeProps",[_n]:"guardReactiveProps",[$o]:"toHandlers",[io]:"camelize",[Os]:"capitalize",[so]:"toHandlerKey",[vr]:"setBlockTracking",[Cs]:"pushScopeId",[Ns]:"popScopeId",[Fo]:"withCtx",[As]:"unref",[Ps]:"isRef",[ko]:"withMemo",[$a]:"isMemoSame"};function Ds(e){Object.getOwnPropertySymbols(e).forEach(t=>{yn[t]=e[t]})}const Hf={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Wf={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},zf={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Yf={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},He={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Rs(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:He}}function $n(e,t,n,o,a,i,r,s=!1,l=!1,u=!1,f=He){return e&&(s?(e.helper(rn),e.helper(bn(e.inSSR,u))):e.helper(Sn(e.inSSR,u)),r&&e.helper(Ro)),{type:13,tag:t,props:n,children:o,patchFlag:a,dynamicProps:i,directives:r,isBlock:s,disableTracking:l,isComponent:u,loc:f}}function nn(e,t=He){return{type:17,loc:t,elements:e}}function gt(e,t=He){return{type:15,loc:t,properties:e}}function _e(e,t){return{type:16,loc:He,key:Ge(e)?ae(e,!0):e,value:t}}function ae(e,t=!1,n=He,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Jf(e,t){return{type:5,loc:t,content:Ge(e)?ae(e,!1,t):e}}function St(e,t=He){return{type:8,loc:t,children:e}}function Xe(e,t=[],n=He){return{type:14,loc:n,callee:e,arguments:t}}function En(e,t=void 0,n=!1,o=!1,a=He){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:a}}function lo(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:He}}function ws(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:He}}function Ms(e){return{type:21,body:e,loc:He}}function qf(e){return{type:22,elements:e,loc:He}}function Qf(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:He}}function Zf(e,t){return{type:24,left:e,right:t,loc:He}}function ed(e){return{type:25,expressions:e,loc:He}}function td(e){return{type:26,returns:e,loc:He}}function Sn(e,t){return e||t?xo:Oo}function bn(e,t){return e||t?Da:Ra}function Bo(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Sn(o,e.isComponent)),t(rn),t(bn(o,e.isComponent)))}const Oi=new Uint8Array([123,123]),Ci=new Uint8Array([125,125]);function Ni(e){return e>=97&&e<=122||e>=65&&e<=90}function mt(e){return e===32||e===10||e===9||e===12||e===13}function Ht(e){return e===47||e===62||mt(e)}function uo(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class nd{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Oi,this.delimiterClose=Ci,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Oi,this.delimiterClose=Ci}getPos(t){let n=1,o=t+1;for(let a=this.newlines.length-1;a>=0;a--){const i=this.newlines[a];if(t>i){n=a+2,o=t-i;break}}return{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Ht(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||mt(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qe.TitleEnd||this.currentSequence===qe.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===qe.Cdata[this.sequenceIndex]?++this.sequenceIndex===qe.Cdata.length&&(this.state=28,this.currentSequence=qe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Ni(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Ht(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ht(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(uo("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){mt(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Ni(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||mt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):mt(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):mt(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Ht(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Ht(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Ht(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Ht(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Ht(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):mt(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):mt(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){mt(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=qe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===qe.ScriptEnd[3]?this.startSpecial(qe.ScriptEnd,4):t===qe.StyleEnd[3]?this.startSpecial(qe.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===qe.TitleEnd[3]?this.startSpecial(qe.TitleEnd,4):t===qe.TextareaEnd[3]?this.startSpecial(qe.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const rd={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},od={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function ua(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function vn(e,t){const n=ua("MODE",t),o=ua(e,t);return n===3?o===!0:o!==!1}function Fn(e,t,n,...o){return vn(e,t)}function ad(e,t,n,...o){if(ua(e,t)==="suppress-warning")return;const{message:i,link:r}=od[e],s=`(deprecation ${e}) ${typeof i=="function"?i(...o):i}${r?`
56
+ Details: ${r}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function Fa(e){throw e}function Ls(e){}function Pe(e,t,n,o){const a=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(a));return i.code=e,i.loc=t,i}const id={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},sd={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
57
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function ld(e,t,n=!1,o=[],a=Object.create(null)){}function ud(e,t,n){return!1}function cd(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function fd(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function dd(e,t){for(const n of e.params)for(const o of Dt(n))t(o)}function $s(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const a of o.declarations)for(const i of Dt(a.id))t(i)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else pd(o)?hd(o,!0,t):o.type==="SwitchStatement"&&md(o,!0,t)}function pd(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function hd(e,t,n){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const a of o.declarations)for(const i of Dt(a.id))n(i)}function md(e,t,n){for(const o of e.cases){for(const a of o.consequent)if(a.type==="VariableDeclaration"&&(a.kind==="var"?t:!t))for(const i of a.declarations)for(const r of Dt(i.id))n(r);$s(o,n)}}function Dt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?Dt(o.argument,t):Dt(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&Dt(o,t)});break;case"RestElement":Dt(e.argument,t);break;case"AssignmentPattern":Dt(e.left,t);break}return t}const vd=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Fs=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,gd=(e,t)=>Fs(t)&&t.key===e,ks=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Bs(e){return ks.includes(e.type)?Bs(e.expression):e}const at=e=>e.type===4&&e.isStatic;function ka(e){switch(e){case"Teleport":case"teleport":return wn;case"Suspense":case"suspense":return Io;case"KeepAlive":case"keep-alive":return hr;case"BaseTransition":case"base-transition":return Pa}}const yd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Ir=e=>!yd.test(e),Ba=/[A-Za-z_$\xA0-\uFFFF]/,Ed=/[\.\?\w$\xA0-\uFFFF]/,Sd=/\s+[.[]\s*|\s*[.[]\s+/g,Vs=e=>e.type===4?e.content:e.loc.source,Us=e=>{const t=Vs(e).trim().replace(Sd,s=>s.trim());let n=0,o=[],a=0,i=0,r=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")o.push(n),n=1,a++;else if(l==="(")o.push(n),n=2,i++;else if(!(s===0?Ba:Ed).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?a++:l==="]"&&(--a||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")i++;else if(l===")"){if(s===t.length-1)return!1;--i||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!a&&!i},bd=nr,Va=Us,Td=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,js=e=>Td.test(Vs(e)),Id=nr,_s=js;function xd(e,t,n=t.length){return Ks({offset:e.offset,line:e.line,column:e.column},t,n)}function Ks(e,t,n=t.length){let o=0,a=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(o++,a=i);return e.offset+=n,e.line+=o,e.column=a===-1?e.column+n:n-a,e}function Od(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ot(e,t,n=!1){for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===7&&(n||a.exp)&&(Ge(t)?a.name===t:t.test(a.name)))return a}}function xr(e,t,n=!1,o=!1){for(let a=0;a<e.props.length;a++){const i=e.props[a];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||o))return i}else if(i.name==="bind"&&(i.exp||o)&&Qt(i.arg,t))return i}}function Qt(e,t){return!!(e&&at(e)&&e.content===t)}function Xs(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Hr(e){return e.type===5||e.type===2}function ca(e){return e.type===7&&e.name==="pre"}function Ua(e){return e.type===7&&e.name==="slot"}function kn(e){return e.type===1&&e.tagType===3}function gr(e){return e.type===1&&e.tagType===2}const Cd=new Set([Ln,_n]);function Gs(e,t=[]){if(e&&!Ge(e)&&e.type===14){const n=e.callee;if(!Ge(n)&&Cd.has(n))return Gs(e.arguments[0],t.concat(e))}return[e,t]}function yr(e,t,n){let o,a=e.type===13?e.props:e.arguments[2],i=[],r;if(a&&!Ge(a)&&a.type===14){const s=Gs(a);a=s[0],i=s[1],r=i[i.length-1]}if(a==null||Ge(a))o=gt([t]);else if(a.type===14){const s=a.arguments[0];!Ge(s)&&s.type===15?Ai(t,s)||s.properties.unshift(t):a.callee===$o?o=Xe(n.helper(mr),[gt([t]),a]):a.arguments.unshift(gt([t])),!o&&(o=a)}else a.type===15?(Ai(t,a)||a.properties.unshift(t),o=a):(o=Xe(n.helper(mr),[gt([t]),a]),r&&r.callee===_n&&(r=i[i.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Ai(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(a=>a.key.type===4&&a.key.content===o)}return n}function Bn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function Ct(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(Ct(o.arg,t)||Ct(o.exp,t)))return!0}return e.children.some(n=>Ct(n,t));case 11:return Ct(e.source,t)?!0:e.children.some(n=>Ct(n,t));case 9:return e.branches.some(n=>Ct(n,t));case 10:return Ct(e.condition,t)?!0:e.children.some(n=>Ct(n,t));case 4:return!e.isStatic&&Ir(e.content)&&!!t[e.content];case 8:return e.children.some(n=>ls(n)&&Ct(n,t));case 5:case 12:return Ct(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Hs(e){return e.type===14&&e.callee===ko?e.arguments[1].returns:e}const Ws=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ja(e){for(let t=0;t<e.length;t++)if(!mt(e.charCodeAt(t)))return!1;return!0}function Vo(e){return e.type===2&&ja(e.content)||e.type===12&&Vo(e.content)}function _a(e){return e.type===3||Vo(e)}const zs={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Rr,isPreTag:Rr,isIgnoreNewlineTag:Rr,isCustomElement:Rr,onError:Fa,onWarn:Ls,comments:!1,prefixIdentifiers:!1};let Ie=zs,Er=null,Ut="",Ze=null,pe=null,ct="",kt=-1,cn=-1,Ka=0,Wt=!1,fa=null;const Re=[],Ve=new nd(Re,{onerr:Ft,ontext(e,t){Fr(Je(e,t),e,t)},ontextentity(e,t,n){Fr(e,t,n)},oninterpolation(e,t){if(Wt)return Fr(Je(e,t),e,t);let n=e+Ve.delimiterOpen.length,o=t-Ve.delimiterClose.length;for(;mt(Ut.charCodeAt(n));)n++;for(;mt(Ut.charCodeAt(o-1));)o--;let a=Je(n,o);a.includes("&")&&(a=Ie.decodeEntities(a,!1)),da({type:5,content:zr(a,!1,je(n,o)),loc:je(e,t)})},onopentagname(e,t){const n=Je(e,t);Ze={type:1,tag:n,ns:Ie.getNamespace(n,Re[0],Ie.ns),tagType:0,props:[],children:[],loc:je(e-1,t),codegenNode:void 0}},onopentagend(e){Di(e)},onclosetag(e,t){const n=Je(e,t);if(!Ie.isVoidTag(n)){let o=!1;for(let a=0;a<Re.length;a++)if(Re[a].tag.toLowerCase()===n.toLowerCase()){o=!0,a>0&&Ft(24,Re[0].loc.start.offset);for(let r=0;r<=a;r++){const s=Re.shift();Wr(s,t,r<a)}break}o||Ft(23,Ys(e,60))}},onselfclosingtag(e){const t=Ze.tag;Ze.isSelfClosing=!0,Di(e),Re[0]&&Re[0].tag===t&&Wr(Re.shift(),e)},onattribname(e,t){pe={type:6,name:Je(e,t),nameLoc:je(e,t),value:void 0,loc:je(e)}},ondirname(e,t){const n=Je(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Wt&&o===""&&Ft(26,e),Wt||o==="")pe={type:6,name:n,nameLoc:je(e,t),value:void 0,loc:je(e)};else if(pe={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[ae("prop")]:[],loc:je(e)},o==="pre"){Wt=Ve.inVPre=!0,fa=Ze;const a=Ze.props;for(let i=0;i<a.length;i++)a[i].type===7&&(a[i]=Fd(a[i]))}},ondirarg(e,t){if(e===t)return;const n=Je(e,t);if(Wt&&!ca(pe))pe.name+=n,pn(pe.nameLoc,t);else{const o=n[0]!=="[";pe.arg=zr(o?n:n.slice(1,-1),o,je(e,t),o?3:0)}},ondirmodifier(e,t){const n=Je(e,t);if(Wt&&!ca(pe))pe.name+="."+n,pn(pe.nameLoc,t);else if(pe.name==="slot"){const o=pe.arg;o&&(o.content+="."+n,pn(o.loc,t))}else{const o=ae(n,!0,je(e,t));pe.modifiers.push(o)}},onattribdata(e,t){ct+=Je(e,t),kt<0&&(kt=e),cn=t},onattribentity(e,t,n){ct+=e,kt<0&&(kt=t),cn=n},onattribnameend(e){const t=pe.loc.start.offset,n=Je(t,e);pe.type===7&&(pe.rawName=n),Ze.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Ft(2,t)},onattribend(e,t){if(Ze&&pe){if(pn(pe.loc,t),e!==0)if(ct.includes("&")&&(ct=Ie.decodeEntities(ct,!0)),pe.type===6)pe.name==="class"&&(ct=qs(ct).trim()),e===1&&!ct&&Ft(13,t),pe.value={type:2,content:ct,loc:e===1?je(kt,cn):je(kt-1,cn+1)},Ve.inSFCRoot&&Ze.tag==="template"&&pe.name==="lang"&&ct&&ct!=="html"&&Ve.enterRCDATA(uo("</template"),0);else{let n=0;pe.exp=zr(ct,!1,je(kt,cn),0,n),pe.name==="for"&&(pe.forParseResult=Ad(pe.exp));let o=-1;pe.name==="bind"&&(o=pe.modifiers.findIndex(a=>a.content==="sync"))>-1&&Fn("COMPILER_V_BIND_SYNC",Ie,pe.loc,pe.arg.loc.source)&&(pe.name="model",pe.modifiers.splice(o,1))}(pe.type!==7||pe.name!=="pre")&&Ze.props.push(pe)}ct="",kt=cn=-1},oncomment(e,t){Ie.comments&&da({type:3,content:Je(e,t),loc:je(e-4,t+3)})},onend(){const e=Ut.length;for(let t=0;t<Re.length;t++)Wr(Re[t],e-1),Ft(24,Re[t].loc.start.offset)},oncdata(e,t){Re[0].ns!==0?Fr(Je(e,t),e,t):Ft(1,e-9)},onprocessinginstruction(e){(Re[0]?Re[0].ns:Ie.ns)===0&&Ft(21,e-1)}}),Pi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Nd=/^\(|\)$/g;function Ad(e){const t=e.loc,n=e.content,o=n.match(Ws);if(!o)return;const[,a,i]=o,r=(c,d,p=!1)=>{const h=t.start.offset+d,m=h+c.length;return zr(c,!1,je(h,m),0,p?1:0)},s={source:r(i.trim(),n.indexOf(i,a.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=a.trim().replace(Nd,"").trim();const u=a.indexOf(l),f=l.match(Pi);if(f){l=l.replace(Pi,"").trim();const c=f[1].trim();let d;if(c&&(d=n.indexOf(c,u+l.length),s.key=r(c,d,!0)),f[2]){const p=f[2].trim();p&&(s.index=r(p,n.indexOf(p,s.key?d+c.length:u+l.length),!0))}}return l&&(s.value=r(l,u,!0)),s}function Je(e,t){return Ut.slice(e,t)}function Di(e){Ve.inSFCRoot&&(Ze.innerLoc=je(e+1,e+1)),da(Ze);const{tag:t,ns:n}=Ze;n===0&&Ie.isPreTag(t)&&Ka++,Ie.isVoidTag(t)?Wr(Ze,e):(Re.unshift(Ze),(n===1||n===2)&&(Ve.inXML=!0)),Ze=null}function Fr(e,t,n){{const i=Re[0]&&Re[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=Ie.decodeEntities(e,!1))}const o=Re[0]||Er,a=o.children[o.children.length-1];a&&a.type===2?(a.content+=e,pn(a.loc,n)):o.children.push({type:2,content:e,loc:je(t,n)})}function Wr(e,t,n=!1){n?pn(e.loc,Ys(t,60)):pn(e.loc,Pd(t,62)+1),Ve.inSFCRoot&&(e.children.length?e.innerLoc.end=Vt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Vt({},e.innerLoc.start),e.innerLoc.source=Je(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:a,children:i}=e;if(Wt||(o==="slot"?e.tagType=2:Ri(e)?e.tagType=3:Rd(e)&&(e.tagType=1)),Ve.inRCDATA||(e.children=Js(i)),a===0&&Ie.isIgnoreNewlineTag(o)){const r=i[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}a===0&&Ie.isPreTag(o)&&Ka--,fa===e&&(Wt=Ve.inVPre=!1,fa=null),Ve.inXML&&(Re[0]?Re[0].ns:Ie.ns)===0&&(Ve.inXML=!1);{const r=e.props;if(!Ve.inSFCRoot&&vn("COMPILER_NATIVE_TEMPLATE",Ie)&&e.tag==="template"&&!Ri(e)){const l=Re[0]||Er,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const s=r.find(l=>l.type===6&&l.name==="inline-template");s&&Fn("COMPILER_INLINE_TEMPLATE",Ie,s.loc)&&e.children.length&&(s.value={type:2,content:Je(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Pd(e,t){let n=e;for(;Ut.charCodeAt(n)!==t&&n<Ut.length-1;)n++;return n}function Ys(e,t){let n=e;for(;Ut.charCodeAt(n)!==t&&n>=0;)n--;return n}const Dd=new Set(["if","else","else-if","for","slot"]);function Ri({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Dd.has(t[n].name))return!0}return!1}function Rd({tag:e,props:t}){if(Ie.isCustomElement(e))return!1;if(e==="component"||wd(e.charCodeAt(0))||ka(e)||Ie.isBuiltInComponent&&Ie.isBuiltInComponent(e)||Ie.isNativeTag&&!Ie.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(Fn("COMPILER_IS_ON_ELEMENT",Ie,o.loc))return!0}}else if(o.name==="bind"&&Qt(o.arg,"is")&&Fn("COMPILER_IS_ON_ELEMENT",Ie,o.loc))return!0}return!1}function wd(e){return e>64&&e<91}const Md=/\r\n/g;function Js(e){const t=Ie.whitespace!=="preserve";let n=!1;for(let o=0;o<e.length;o++){const a=e[o];if(a.type===2)if(Ka)a.content=a.content.replace(Md,`
58
+ `);else if(ja(a.content)){const i=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!i||!r||t&&(i===3&&(r===3||r===1)||i===1&&(r===3||r===1&&Ld(a.content)))?(n=!0,e[o]=null):a.content=" "}else t&&(a.content=qs(a.content))}return n?e.filter(Boolean):e}function Ld(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function qs(e){let t="",n=!1;for(let o=0;o<e.length;o++)mt(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function da(e){(Re[0]||Er).children.push(e)}function je(e,t){return{start:Ve.getPos(e),end:t==null?t:Ve.getPos(t),source:t==null?t:Je(e,t)}}function $d(e){return je(e.start.offset,e.end.offset)}function pn(e,t){e.end=Ve.getPos(t),e.source=Je(e.start.offset,t)}function Fd(e){const t={type:6,name:e.rawName,nameLoc:je(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function zr(e,t=!1,n,o=0,a=0){return ae(e,t,n,o)}function Ft(e,t,n){Ie.onError(Pe(e,je(t,t)))}function kd(){Ve.reset(),Ze=null,pe=null,ct="",kt=-1,cn=-1,Re.length=0}function Xa(e,t){if(kd(),Ut=e,Ie=Vt({},zs),t){let a;for(a in t)t[a]!=null&&(Ie[a]=t[a])}Ve.mode=Ie.parseMode==="html"?1:Ie.parseMode==="sfc"?2:0,Ve.inXML=Ie.ns===1||Ie.ns===2;const n=t&&t.delimiters;n&&(Ve.delimiterOpen=uo(n[0]),Ve.delimiterClose=uo(n[1]));const o=Er=Rs([],e);return Ve.parse(Ut),o.loc=je(0,e.length),o.children=Js(o.children),Er=null,o}function Bd(e,t){Yr(e,void 0,t,!!Qs(e))}function Qs(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!gr(t[0])?t[0]:null}function Yr(e,t,n,o=!1,a=!1){const{children:i}=e,r=[];for(let f=0;f<i.length;f++){const c=i[f];if(c.type===1&&c.tagType===0){const d=o?0:ft(c,n);if(d>0){if(d>=2){c.codegenNode.patchFlag=-1,r.push(c);continue}}else{const p=c.codegenNode;if(p.type===13){const h=p.patchFlag;if((h===void 0||h===512||h===1)&&el(c,n)>=2){const m=tl(c);m&&(p.props=n.hoist(m))}p.dynamicProps&&(p.dynamicProps=n.hoist(p.dynamicProps))}}}else if(c.type===12&&(o?0:ft(c,n))>=2){c.codegenNode.type===14&&c.codegenNode.arguments.length>0&&c.codegenNode.arguments.push("-1"),r.push(c);continue}if(c.type===1){const d=c.tagType===1;d&&n.scopes.vSlot++,Yr(c,e,n,!1,a),d&&n.scopes.vSlot--}else if(c.type===11)Yr(c,e,n,c.children.length===1,!0);else if(c.type===9)for(let d=0;d<c.branches.length;d++)Yr(c.branches[d],e,n,c.branches[d].children.length===1,a)}let s=!1;if(r.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Jt(e.codegenNode.children))e.codegenNode.children=l(nn(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Jt(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=u(e.codegenNode,"default");f&&(f.returns=l(nn(f.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Jt(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=ot(e,"slot",!0),c=f&&f.arg&&u(t.codegenNode,f.arg);c&&(c.returns=l(nn(c.returns)),s=!0)}}if(!s)for(const f of r)f.codegenNode=n.cache(f.codegenNode);function l(f){const c=n.cache(f);return c.needArraySpread=!0,c}function u(f,c){if(f.children&&!Jt(f.children)&&f.children.type===15){const d=f.children.properties.find(p=>p.key===c||p.key.content===c);return d&&d.value}}r.length&&n.transformHoist&&n.transformHoist(i,n,e)}function ft(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const a=e.codegenNode;if(a.type!==13||a.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(a.patchFlag===void 0){let r=3;const s=el(e,t);if(s===0)return n.set(e,0),0;s<r&&(r=s);for(let l=0;l<e.children.length;l++){const u=ft(e.children[l],t);if(u===0)return n.set(e,0),0;u<r&&(r=u)}if(r>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const f=ft(u.exp,t);if(f===0)return n.set(e,0),0;f<r&&(r=f)}}if(a.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(rn),t.removeHelper(bn(t.inSSR,a.isComponent)),a.isBlock=!1,t.helper(Sn(t.inSSR,a.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ft(e.content,t);case 4:return e.constType;case 8:let i=3;for(let r=0;r<e.children.length;r++){const s=e.children[r];if(Ge(s)||Sa(s))continue;const l=ft(s,t);if(l===0)return 0;l<i&&(i=l)}return i;case 20:return 2;default:return 0}}const Vd=new Set([Mo,Lo,Ln,_n]);function Zs(e,t){if(e.type===14&&!Ge(e.callee)&&Vd.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ft(n,t);if(n.type===14)return Zs(n,t)}return 0}function el(e,t){let n=3;const o=tl(e);if(o&&o.type===15){const{properties:a}=o;for(let i=0;i<a.length;i++){const{key:r,value:s}=a[i],l=ft(r,t);if(l===0)return l;l<n&&(n=l);let u;if(s.type===4?u=ft(s,t):s.type===14?u=Zs(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function tl(e){const t=e.codegenNode;if(t.type===13)return t.props}function nl(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:a=!1,cacheHandlers:i=!1,nodeTransforms:r=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=nr,isCustomElement:f=nr,expressionPlugins:c=[],scopeId:d=null,slotted:p=!0,ssr:h=!1,inSSR:m=!1,ssrCssVars:v="",bindingMetadata:y=Gl,inline:E=!1,isTS:x=!1,onError:b=Fa,onWarn:C=Ls,compatConfig:P}){const K=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),$={filename:t,selfName:K&&ss(tn(K[1])),prefixIdentifiers:n,hoistStatic:o,hmr:a,cacheHandlers:i,nodeTransforms:r,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:f,expressionPlugins:c,scopeId:d,slotted:p,ssr:h,inSSR:m,ssrCssVars:v,bindingMetadata:y,inline:E,isTS:x,onError:b,onWarn:C,compatConfig:P,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(S){const L=$.helpers.get(S)||0;return $.helpers.set(S,L+1),S},removeHelper(S){const L=$.helpers.get(S);if(L){const k=L-1;k?$.helpers.set(S,k):$.helpers.delete(S)}},helperString(S){return`_${yn[$.helper(S)]}`},replaceNode(S){$.parent.children[$.childIndex]=$.currentNode=S},removeNode(S){const L=$.parent.children,k=S?L.indexOf(S):$.currentNode?$.childIndex:-1;!S||S===$.currentNode?($.currentNode=null,$.onNodeRemoved()):$.childIndex>k&&($.childIndex--,$.onNodeRemoved()),$.parent.children.splice(k,1)},onNodeRemoved:nr,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Ge(S)&&(S=ae(S)),$.hoists.push(S);const L=ae(`_hoisted_${$.hoists.length}`,!1,S.loc,2);return L.hoisted=S,L},cache(S,L=!1,k=!1){const j=ws($.cached.length,S,L,k);return $.cached.push(j),j}};return $.filters=new Set,$}function rl(e,t){const n=nl(e,t);Or(e,n),t.hoistStatic&&Bd(e,n),t.ssr||Ud(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Ud(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const a=Qs(e);if(a&&a.codegenNode){const i=a.codegenNode;i.type===13&&Bo(i,t),e.codegenNode=i}else e.codegenNode=o[0]}else if(o.length>1){let a=64;e.codegenNode=$n(t,n(Mn),void 0,e.children,a,void 0,void 0,!0,void 0,!1)}}function jd(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const a=e.children[n];Ge(a)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,Or(a,t))}}function Or(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const r=n[i](e,t);if(r&&(Jt(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(jn);break;case 5:t.ssr||t.helper(Tr);break;case 9:for(let i=0;i<e.branches.length;i++)Or(e.branches[i],t);break;case 10:case 11:case 1:case 0:jd(e,t);break}t.currentNode=e;let a=o.length;for(;a--;)o[a]()}function Ga(e,t){const n=Ge(e)?o=>o===e:o=>e.test(o);return(o,a)=>{if(o.type===1){const{props:i}=o;if(o.tagType===3&&i.some(Ua))return;const r=[];for(let s=0;s<i.length;s++){const l=i[s];if(l.type===7&&n(l.name)){i.splice(s,1),s--;const u=t(o,l,a);u&&r.push(u)}}return r}}}const Uo="/*@__PURE__*/",ol=e=>`${yn[e]}: _${yn[e]}`;function _d(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:a="template.vue.html",scopeId:i=null,optimizeImports:r=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:f=!1,isTS:c=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:o,filename:a,scopeId:i,optimizeImports:r,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:f,isTS:c,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${yn[m]}`},push(m,v=-2,y){p.code+=m},indent(){h(++p.indentLevel)},deindent(m=!1){m?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(m){p.push(`
59
+ `+" ".repeat(m),0)}return p}function al(e,t={}){const n=_d(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:a,prefixIdentifiers:i,indent:r,deindent:s,newline:l,scopeId:u,ssr:f}=n,c=Array.from(e.helpers),d=c.length>0,p=!i&&o!=="module";Kd(e,n);const m=f?"ssrRender":"render",y=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(a(`function ${m}(${y}) {`),r(),p&&(a("with (_ctx) {"),r(),d&&(a(`const { ${c.map(ol).join(", ")} } = _Vue
60
+ `,-1),l())),e.components.length&&(zo(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(zo(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),zo(e.filters,"filter",n),l()),e.temps>0){a("let ");for(let E=0;E<e.temps;E++)a(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(a(`
61
+ `,0),l()),f||a("return "),e.codegenNode?nt(e.codegenNode,n):a("null"),p&&(s(),a("}")),s(),a("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Kd(e,t){const{ssr:n,prefixIdentifiers:o,push:a,newline:i,runtimeModuleName:r,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,f=Array.from(e.helpers);if(f.length>0&&(a(`const _Vue = ${u}
62
+ `,-1),e.hoists.length)){const c=[xo,Oo,jn,Co,wa].filter(d=>f.includes(d)).map(ol).join(", ");a(`const { ${c} } = _Vue
63
+ `,-1)}Xd(e.hoists,t),i(),a("return ")}function zo(e,t,{helper:n,push:o,newline:a,isTS:i}){const r=n(t==="filter"?Do:t==="component"?No:Po);for(let s=0;s<e.length;s++){let l=e[s];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),o(`const ${Bn(l,t)} = ${r}(${JSON.stringify(l)}${u?", true":""})${i?"!":""}`),s<e.length-1&&a()}}function Xd(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let a=0;a<e.length;a++){const i=e[a];i&&(n(`const _hoisted_${a+1} = `),nt(i,t),o())}t.pure=!1}function Ha(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Cr(e,t,n),n&&t.deindent(),t.push("]")}function Cr(e,t,n=!1,o=!0){const{push:a,newline:i}=t;for(let r=0;r<e.length;r++){const s=e[r];Ge(s)?a(s,-3):Jt(s)?Ha(s,t):nt(s,t),r<e.length-1&&(n?(o&&a(","),i()):o&&a(", "))}}function nt(e,t){if(Ge(e)){t.push(e,-3);return}if(Sa(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:nt(e.codegenNode,t);break;case 2:Gd(e,t);break;case 4:il(e,t);break;case 5:Hd(e,t);break;case 12:nt(e.codegenNode,t);break;case 8:sl(e,t);break;case 3:zd(e,t);break;case 13:Yd(e,t);break;case 14:qd(e,t);break;case 15:Qd(e,t);break;case 17:Zd(e,t);break;case 18:ep(e,t);break;case 19:tp(e,t);break;case 20:np(e,t);break;case 21:Cr(e.body,t,!0,!1);break}}function Gd(e,t){t.push(JSON.stringify(e.content),-3,e)}function il(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Hd(e,t){const{push:n,helper:o,pure:a}=t;a&&n(Uo),n(`${o(Tr)}(`),nt(e.content,t),n(")")}function sl(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];Ge(o)?t.push(o,-3):nt(o,t)}}function Wd(e,t){const{push:n}=t;if(e.type===8)n("["),sl(e,t),n("]");else if(e.isStatic){const o=Ir(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function zd(e,t){const{push:n,helper:o,pure:a}=t;a&&n(Uo),n(`${o(jn)}(${JSON.stringify(e.content)})`,-3,e)}function Yd(e,t){const{push:n,helper:o,pure:a}=t,{tag:i,props:r,children:s,patchFlag:l,dynamicProps:u,directives:f,isBlock:c,disableTracking:d,isComponent:p}=e;let h;l&&(h=String(l)),f&&n(o(Ro)+"("),c&&n(`(${o(rn)}(${d?"true":""}), `),a&&n(Uo);const m=c?bn(t.inSSR,p):Sn(t.inSSR,p);n(o(m)+"(",-2,e),Cr(Jd([i,r,s,h,u]),t),n(")"),c&&n(")"),f&&(n(", "),nt(f,t),n(")"))}function Jd(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function qd(e,t){const{push:n,helper:o,pure:a}=t,i=Ge(e.callee)?e.callee:o(e.callee);a&&n(Uo),n(i+"(",-2,e),Cr(e.arguments,t),n(")")}function Qd(e,t){const{push:n,indent:o,deindent:a,newline:i}=t,{properties:r}=e;if(!r.length){n("{}",-2,e);return}const s=r.length>1||!1;n(s?"{":"{ "),s&&o();for(let l=0;l<r.length;l++){const{key:u,value:f}=r[l];Wd(u,t),n(": "),nt(f,t),l<r.length-1&&(n(","),i())}s&&a(),n(s?"}":" }")}function Zd(e,t){Ha(e.elements,t)}function ep(e,t){const{push:n,indent:o,deindent:a}=t,{params:i,returns:r,body:s,newline:l,isSlot:u}=e;u&&n(`_${yn[Fo]}(`),n("(",-2,e),Jt(i)?Cr(i,t):i&&nt(i,t),n(") => "),(l||s)&&(n("{"),o()),r?(l&&n("return "),Jt(r)?Ha(r,t):nt(r,t)):s&&nt(s,t),(l||s)&&(a(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function tp(e,t){const{test:n,consequent:o,alternate:a,newline:i}=e,{push:r,indent:s,deindent:l,newline:u}=t;if(n.type===4){const c=!Ir(n.content);c&&r("("),il(n,t),c&&r(")")}else r("("),nt(n,t),r(")");i&&s(),t.indentLevel++,i||r(" "),r("? "),nt(o,t),t.indentLevel--,i&&u(),i||r(" "),r(": ");const f=a.type===19;f||t.indentLevel++,nt(a,t),f||t.indentLevel--,i&&l(!0)}function np(e,t){const{push:n,helper:o,indent:a,deindent:i,newline:r}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(a(),n(`${o(vr)}(-1`),e.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${e.index}] = `),nt(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),r(),n(`${o(vr)}(1),`),r(),n(`_cache[${e.index}]`),i()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const rp=(e,t)=>{if(e.type===5)e.content=Jr(e.content,t);else if(e.type===1){const n=ot(e,"memo");for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===7&&a.name!=="for"){const i=a.exp,r=a.arg;i&&i.type===4&&!(a.name==="on"&&r)&&!(n&&r&&r.type===4&&r.content==="key")&&(a.exp=Jr(i,t,a.name==="slot")),r&&r.type===4&&!r.isStatic&&(a.arg=Jr(r,t))}}}};function Jr(e,t,n=!1,o=!1,a=Object.create(t.identifiers)){return e}function ll(e){return Ge(e)?e:e.type===4?e.content:e.children.map(ll).join("")}const op=Ga(/^(?:if|else|else-if)$/,(e,t,n)=>ul(e,t,n,(o,a,i)=>{const r=n.parent.children;let s=r.indexOf(o),l=0;for(;s-->=0;){const u=r[s];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(i)o.codegenNode=Mi(a,l,n);else{const u=ap(o.codegenNode);u.alternate=Mi(a,l+o.branches.length-1,n)}}}));function ul(e,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const a=t.exp?t.exp.loc:e.loc;n.onError(Pe(28,t.loc)),t.exp=ae("true",!1,a)}if(t.name==="if"){const a=wi(e,t),i={type:9,loc:$d(e.loc),branches:[a]};if(n.replaceNode(i),o)return o(i,a,!0)}else{const a=n.parent.children;let i=a.indexOf(e);for(;i-->=-1;){const r=a[i];if(r&&_a(r)){n.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&n.onError(Pe(30,e.loc)),n.removeNode();const s=wi(e,t);r.branches.push(s);const l=o&&o(r,s,!1);Or(s,n),l&&l(),n.currentNode=null}else n.onError(Pe(30,e.loc));break}}}function wi(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!ot(e,"for")?e.children:[e],userKey:xr(e,"key"),isTemplateIf:n}}function Mi(e,t,n){return e.condition?lo(e.condition,Li(e,t,n),Xe(n.helper(jn),['""',"true"])):Li(e,t,n)}function Li(e,t,n){const{helper:o}=n,a=_e("key",ae(`${t}`,!1,He,2)),{children:i}=e,r=i[0];if(i.length!==1||r.type!==1)if(i.length===1&&r.type===11){const l=r.codegenNode;return yr(l,a,n),l}else return $n(n,o(Mn),gt([a]),i,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=r.codegenNode,u=Hs(l);return u.type===13&&Bo(u,n),yr(u,a,n),l}}function ap(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ip=Ga("for",(e,t,n)=>{const{helper:o,removeHelper:a}=n;return cl(e,t,n,i=>{const r=Xe(o(wo),[i.source]),s=kn(e),l=ot(e,"memo"),u=xr(e,"key",!1,!0);u&&u.type;let f=u&&(u.type===6?u.value?ae(u.value.content,!0):void 0:u.exp);const c=u&&f?_e("key",f):null,d=i.source.type===4&&i.source.constType>0,p=d?64:u?128:256;return i.codegenNode=$n(n,o(Mn),void 0,r,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let h;const{children:m}=i,v=m.length!==1||m[0].type!==1,y=gr(e)?e:s&&e.children.length===1&&gr(e.children[0])?e.children[0]:null;if(y?(h=y.codegenNode,s&&c&&yr(h,c,n)):v?h=$n(n,o(Mn),c?gt([c]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(h=m[0].codegenNode,s&&c&&yr(h,c,n),h.isBlock!==!d&&(h.isBlock?(a(rn),a(bn(n.inSSR,h.isComponent))):a(Sn(n.inSSR,h.isComponent))),h.isBlock=!d,h.isBlock?(o(rn),o(bn(n.inSSR,h.isComponent))):o(Sn(n.inSSR,h.isComponent))),l){const E=En(co(i.parseResult,[ae("_cached")]));E.body=Ms([St(["const _memo = (",l.exp,")"]),St(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString($a)}(_cached, _memo)) return _cached`]),St(["const _item = ",h]),ae("_item.memo = _memo"),ae("return _item")]),r.arguments.push(E,ae("_cache"),ae(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(En(co(i.parseResult),h,!0))}})});function cl(e,t,n,o){if(!t.exp){n.onError(Pe(31,t.loc));return}const a=t.forParseResult;if(!a){n.onError(Pe(32,t.loc));return}Wa(a);const{addIdentifiers:i,removeIdentifiers:r,scopes:s}=n,{source:l,value:u,key:f,index:c}=a,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:f,objectIndexAlias:c,parseResult:a,children:kn(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const p=o&&o(d);return()=>{s.vFor--,p&&p()}}function Wa(e,t){e.finalized||(e.finalized=!0)}function co({value:e,key:t,index:n},o=[]){return sp([e,t,n,...o])}function sp(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||ae("_".repeat(o+1),!1))}const $i=ae("undefined",!1),fl=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=ot(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},lp=(e,t)=>{let n;if(kn(e)&&e.props.some(Ua)&&(n=ot(e,"for"))){const o=n.forParseResult;if(o){Wa(o);const{value:a,key:i,index:r}=o,{addIdentifiers:s,removeIdentifiers:l}=t;return a&&s(a),i&&s(i),r&&s(r),()=>{a&&l(a),i&&l(i),r&&l(r)}}}},up=(e,t,n,o)=>En(e,n,!1,!0,n.length?n[0].loc:o);function dl(e,t,n=up){t.helper(Fo);const{children:o,loc:a}=e,i=[],r=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=ot(e,"slot",!0);if(l){const{arg:v,exp:y}=l;v&&!at(v)&&(s=!0),i.push(_e(v||ae("default",!0),n(y,void 0,o,a)))}let u=!1,f=!1;const c=[],d=new Set;let p=0;for(let v=0;v<o.length;v++){const y=o[v];let E;if(!kn(y)||!(E=ot(y,"slot",!0))){y.type!==3&&c.push(y);continue}if(l){t.onError(Pe(37,E.loc));break}u=!0;const{children:x,loc:b}=y,{arg:C=ae("default",!0),exp:P,loc:K}=E;let $;at(C)?$=C?C.content:"default":s=!0;const S=ot(y,"for"),L=n(P,S,x,b);let k,j;if(k=ot(y,"if"))s=!0,r.push(lo(k.exp,kr(C,L,p++),$i));else if(j=ot(y,/^else(?:-if)?$/,!0)){let M=v,F;for(;M--&&(F=o[M],!!_a(F)););if(F&&kn(F)&&ot(F,/^(?:else-)?if$/)){let O=r[r.length-1];for(;O.alternate.type===19;)O=O.alternate;O.alternate=j.exp?lo(j.exp,kr(C,L,p++),$i):kr(C,L,p++)}else t.onError(Pe(30,j.loc))}else if(S){s=!0;const M=S.forParseResult;M?(Wa(M),r.push(Xe(t.helper(wo),[M.source,En(co(M),kr(C,L),!0)]))):t.onError(Pe(32,S.loc))}else{if($){if(d.has($)){t.onError(Pe(38,K));continue}d.add($),$==="default"&&(f=!0)}i.push(_e(C,L))}}if(!l){const v=(y,E)=>{const x=n(y,void 0,E,a);return t.compatConfig&&(x.isNonScopedSlot=!0),_e("default",x)};u?c.length&&!c.every(Vo)&&(f?t.onError(Pe(39,c[0].loc)):i.push(v(void 0,c))):i.push(v(void 0,o))}const h=s?2:qr(e.children)?3:1;let m=gt(i.concat(_e("_",ae(h+"",!1))),a);return r.length&&(m=Xe(t.helper(La),[m,nn(r)])),{slots:m,hasDynamicSlots:s}}function kr(e,t,n){const o=[_e("name",e),_e("fn",t)];return n!=null&&o.push(_e("key",ae(String(n),!0))),gt(o)}function qr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||qr(n.children))return!0;break;case 9:if(qr(n.branches))return!0;break;case 10:case 11:if(qr(n.children))return!0;break}}return!1}const pl=new WeakMap,hl=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:a}=e,i=e.tagType===1;let r=i?ml(e,t):`"${o}"`;const s=ls(r)&&r.callee===Ao;let l,u,f=0,c,d,p,h=s||r===wn||r===Io||!i&&(o==="svg"||o==="foreignObject"||o==="math");if(a.length>0){const m=za(e,t,void 0,i,s);l=m.props,f=m.patchFlag,d=m.dynamicPropNames;const v=m.directives;p=v&&v.length?nn(v.map(y=>vl(y,t))):void 0,m.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(r===hr&&(h=!0,f|=1024),i&&r!==wn&&r!==hr){const{slots:v,hasDynamicSlots:y}=dl(e,t);u=v,y&&(f|=1024)}else if(e.children.length===1&&r!==wn){const v=e.children[0],y=v.type,E=y===5||y===8;E&&ft(v,t)===0&&(f|=1),E||y===2?u=v:u=e.children}else u=e.children;d&&d.length&&(c=fp(d)),e.codegenNode=$n(t,r,l,u,f===0?void 0:f,c,p,!!h,!1,i,e.loc)};function ml(e,t,n=!1){let{tag:o}=e;const a=pa(o),i=xr(e,"is",!1,!0);if(i)if(a||vn("COMPILER_IS_ON_ELEMENT",t)){let s;if(i.type===6?s=i.value&&ae(i.value.content,!0):(s=i.exp,s||(s=ae("is",!1,i.arg.loc))),s)return Xe(t.helper(Ao),[s])}else i.type===6&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const r=ka(o)||t.isBuiltInComponent(o);return r?(n||t.helper(r),r):(t.helper(No),t.components.add(o),Bn(o,"component"))}function za(e,t,n=e.props,o,a,i=!1){const{tag:r,loc:s,children:l}=e;let u=[];const f=[],c=[],d=l.length>0;let p=!1,h=0,m=!1,v=!1,y=!1,E=!1,x=!1,b=!1;const C=[],P=L=>{u.length&&(f.push(gt(Fi(u),s)),u=[]),L&&f.push(L)},K=()=>{t.scopes.vFor>0&&u.push(_e(ae("ref_for",!0),ae("true")))},$=({key:L,value:k})=>{if(at(L)){const j=L.content,M=us(j);if(M&&(!o||a)&&j.toLowerCase()!=="onclick"&&j!=="onUpdate:modelValue"&&!di(j)&&(E=!0),M&&di(j)&&(b=!0),M&&k.type===14&&(k=k.arguments[0]),k.type===20||(k.type===4||k.type===8)&&ft(k,t)>0)return;j==="ref"?m=!0:j==="class"?v=!0:j==="style"?y=!0:j!=="key"&&!C.includes(j)&&C.push(j),o&&(j==="class"||j==="style")&&!C.includes(j)&&C.push(j)}else x=!0};for(let L=0;L<n.length;L++){const k=n[L];if(k.type===6){const{loc:j,name:M,nameLoc:F,value:O}=k;let w=!0;if(M==="ref"&&(m=!0,K()),M==="is"&&(pa(r)||O&&O.content.startsWith("vue:")||vn("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(_e(ae(M,!0,F),ae(O?O.content:"",w,O?O.loc:j)))}else{const{name:j,arg:M,exp:F,loc:O,modifiers:w}=k,V=j==="bind",Q=j==="on";if(j==="slot"){o||t.onError(Pe(40,O));continue}if(j==="once"||j==="memo"||j==="is"||V&&Qt(M,"is")&&(pa(r)||vn("COMPILER_IS_ON_ELEMENT",t))||Q&&i)continue;if((V&&Qt(M,"key")||Q&&d&&Qt(M,"vue:before-update"))&&(p=!0),V&&Qt(M,"ref")&&K(),!M&&(V||Q)){if(x=!0,F)if(V){if(P(),vn("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(F);continue}K(),P(),f.push(F)}else P({type:14,loc:O,callee:t.helper($o),arguments:o?[F]:[F,"true"]});else t.onError(Pe(V?34:35,O));continue}V&&w.some(ie=>ie.content==="prop")&&(h|=32);const me=t.directiveTransforms[j];if(me){const{props:ie,needRuntime:W}=me(k,e,t);!i&&ie.forEach($),Q&&M&&!at(M)?P(gt(ie,s)):u.push(...ie),W&&(c.push(k),Sa(W)&&pl.set(k,W))}else Xl(j)||(c.push(k),d&&(p=!0))}}let S;if(f.length?(P(),f.length>1?S=Xe(t.helper(mr),f,s):S=f[0]):u.length&&(S=gt(Fi(u),s)),x?h|=16:(v&&!o&&(h|=2),y&&!o&&(h|=4),C.length&&(h|=8),E&&(h|=32)),!p&&(h===0||h===32)&&(m||b||c.length>0)&&(h|=512),!t.inSSR&&S)switch(S.type){case 15:let L=-1,k=-1,j=!1;for(let O=0;O<S.properties.length;O++){const w=S.properties[O].key;at(w)?w.content==="class"?L=O:w.content==="style"&&(k=O):w.isHandlerKey||(j=!0)}const M=S.properties[L],F=S.properties[k];j?S=Xe(t.helper(Ln),[S]):(M&&!at(M.value)&&(M.value=Xe(t.helper(Mo),[M.value])),F&&(y||F.value.type===4&&F.value.content.trim()[0]==="["||F.value.type===17)&&(F.value=Xe(t.helper(Lo),[F.value])));break;case 14:break;default:S=Xe(t.helper(Ln),[Xe(t.helper(_n),[S])]);break}return{props:S,directives:c,patchFlag:h,dynamicPropNames:C,shouldUseBlock:p}}function Fi(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const a=e[o];if(a.key.type===8||!a.key.isStatic){n.push(a);continue}const i=a.key.content,r=t.get(i);r?(i==="style"||i==="class"||us(i))&&cp(r,a):(t.set(i,a),n.push(a))}return n}function cp(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=nn([e.value,t.value],e.loc)}function vl(e,t){const n=[],o=pl.get(e);o?n.push(t.helperString(o)):(t.helper(Po),t.directives.add(e.name),n.push(Bn(e.name,"directive")));const{loc:a}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=ae("true",!1,a);n.push(gt(e.modifiers.map(r=>_e(r,i)),a))}return nn(n,e.loc)}function fp(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}function pa(e){return e==="component"||e==="Component"}const dp=(e,t)=>{if(gr(e)){const{children:n,loc:o}=e,{slotName:a,slotProps:i}=gl(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",a,"{}","undefined","true"];let s=2;i&&(r[2]=i,s=3),n.length&&(r[3]=En([],n,!1,!1,o),s=4),t.scopeId&&!t.slotted&&(s=5),r.splice(s),e.codegenNode=Xe(t.helper(Ma),r,o)}};function gl(e,t){let n='"default"',o;const a=[];for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6)r.value&&(r.name==="name"?n=JSON.stringify(r.value.content):(r.name=tn(r.name),a.push(r)));else if(r.name==="bind"&&Qt(r.arg,"name")){if(r.exp)n=r.exp;else if(r.arg&&r.arg.type===4){const s=tn(r.arg.content);n=r.exp=ae(s,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&at(r.arg)&&(r.arg.content=tn(r.arg.content)),a.push(r)}if(a.length>0){const{props:i,directives:r}=za(e,t,a,!1,!1);o=i,r.length&&t.onError(Pe(36,r[0].loc))}return{slotName:n,slotProps:o}}const Ya=(e,t,n,o)=>{const{loc:a,modifiers:i,arg:r}=e;!e.exp&&!i.length&&n.onError(Pe(35,a));let s;if(r.type===4)if(r.isStatic){let c=r.content;c.startsWith("vue:")&&(c=`vnode-${c.slice(4)}`);const d=t.tagType!==0||c.startsWith("vnode")||!/[A-Z]/.test(c)?Hl(tn(c)):`on:${c}`;s=ae(d,!0,r.loc)}else s=St([`${n.helperString(so)}(`,r,")"]);else s=r,s.children.unshift(`${n.helperString(so)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const c=Va(l),d=!(c||_s(l)),p=l.content.includes(";");(d||u&&c)&&(l=St([`${d?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let f={props:[_e(s,l||ae("() => {}",!1,a))]};return o&&(f=o(f)),u&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(c=>c.key.isHandlerKey=!0),f},yl=(e,t,n)=>{const{modifiers:o,loc:a}=e,i=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),o.some(s=>s.content==="camel")&&(i.type===4?i.isStatic?i.content=tn(i.content):i.content=`${n.helperString(io)}(${i.content})`:(i.children.unshift(`${n.helperString(io)}(`),i.children.push(")"))),n.inSSR||(o.some(s=>s.content==="prop")&&ki(i,"."),o.some(s=>s.content==="attr")&&ki(i,"^")),{props:[_e(i,r)]}},ki=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},pp=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let o,a=!1;for(let i=0;i<n.length;i++){const r=n[i];if(Hr(r)){a=!0;for(let s=i+1;s<n.length;s++){const l=n[s];if(Hr(l))o||(o=n[i]=St([r],r.loc)),o.children.push(" + ",l),n.splice(s,1),s--;else{o=void 0;break}}}}if(!(!a||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const r=n[i];if(Hr(r)||r.type===8){const s=[];(r.type!==2||r.content!==" ")&&s.push(r),!t.ssr&&ft(r,t)===0&&s.push("1"),n[i]={type:12,content:r,loc:r.loc,codegenNode:Xe(t.helper(Co),s)}}}}},Bi=new WeakSet,hp=(e,t)=>{if(e.type===1&&ot(e,"once",!0))return Bi.has(e)||t.inVOnce||t.inSSR?void 0:(Bi.add(e),t.inVOnce=!0,t.helper(vr),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},Ja=(e,t,n)=>{const{exp:o,arg:a}=e;if(!o)return n.onError(Pe(41,e.loc)),Br();const i=o.loc.source.trim(),r=o.type===4?o.content:i,s=n.bindingMetadata[i];if(s==="props"||s==="props-aliased")return n.onError(Pe(44,o.loc)),Br();if(!r.trim()||!Va(o))return n.onError(Pe(42,o.loc)),Br();const l=a||ae("modelValue",!0),u=a?at(a)?`onUpdate:${tn(a.content)}`:St(['"onUpdate:" + ',a]):"onUpdate:modelValue";let f;const c=n.isTS?"($event: any)":"$event";f=St([`${c} => ((`,o,") = $event)"]);const d=[_e(l,e.exp),_e(u,f)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(m=>m.content).map(m=>(Ir(m)?m:JSON.stringify(m))+": true").join(", "),h=a?at(a)?`${a.content}Modifiers`:St([a,' + "Modifiers"']):"modelModifiers";d.push(_e(h,ae(`{ ${p} }`,!1,e.loc,2)))}return Br(d)};function Br(e=[]){return{props:e}}const mp=/[\w).+\-_$\]]/,vp=(e,t)=>{vn("COMPILER_FILTERS",t)&&(e.type===5?fo(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&fo(n.exp,t)}))};function fo(e,t){if(e.type===4)Vi(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?Vi(o,t):o.type===8?fo(e,t):o.type===5&&fo(o.content,t))}}function Vi(e,t){const n=e.content;let o=!1,a=!1,i=!1,r=!1,s=0,l=0,u=0,f=0,c,d,p,h,m=[];for(p=0;p<n.length;p++)if(d=c,c=n.charCodeAt(p),o)c===39&&d!==92&&(o=!1);else if(a)c===34&&d!==92&&(a=!1);else if(i)c===96&&d!==92&&(i=!1);else if(r)c===47&&d!==92&&(r=!1);else if(c===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!s&&!l&&!u)h===void 0?(f=p+1,h=n.slice(0,p).trim()):v();else{switch(c){case 34:a=!0;break;case 39:o=!0;break;case 96:i=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(c===47){let y=p-1,E;for(;y>=0&&(E=n.charAt(y),E===" ");y--);(!E||!mp.test(E))&&(r=!0)}}h===void 0?h=n.slice(0,p).trim():f!==0&&v();function v(){m.push(n.slice(f,p).trim()),f=p+1}if(m.length){for(p=0;p<m.length;p++)h=gp(h,m[p],t);e.content=h,e.ast=void 0}}function gp(e,t,n){n.helper(Do);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${Bn(t,"filter")}(${e})`;{const a=t.slice(0,o),i=t.slice(o+1);return n.filters.add(a),`${Bn(a,"filter")}(${e}${i!==")"?","+i:i}`}}const Ui=new WeakSet,yp=(e,t)=>{if(e.type===1){const n=ot(e,"memo");return!n||Ui.has(e)||t.inSSR?void 0:(Ui.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&Bo(o,t),e.codegenNode=Xe(t.helper(ko),[n.exp,En(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}},El=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const o=n.arg;if(o.type!==4||!o.isStatic)t.onError(Pe(52,o.loc)),n.exp=ae("",!0,o.loc);else{const a=tn(o.content);(Ba.test(a[0])||a[0]==="-")&&(n.exp=ae(a,!1,o.loc))}}}};function Sl(e){return[[El,hp,op,yp,ip,vp,dp,hl,fl,pp],{on:Ya,bind:yl,model:Ja}]}function bl(e,t={}){const n=t.onError||Fa,o=t.mode==="module";t.prefixIdentifiers===!0?n(Pe(47)):o&&n(Pe(48));const a=!1;t.cacheHandlers&&n(Pe(49)),t.scopeId&&!o&&n(Pe(50));const i=Vt({},t,{prefixIdentifiers:a}),r=Ge(e)?Xa(e,i):e,[s,l]=Sl();return rl(r,Vt({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Vt({},l,t.directiveTransforms||{})})),al(r,i)}const Ep={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},Tl=()=>({props:[]});/**
64
+ * @vue/compiler-dom v3.5.25
65
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
66
+ * @license MIT
67
+ **/const qa=Symbol(""),Qa=Symbol(""),Za=Symbol(""),ei=Symbol(""),po=Symbol(""),ti=Symbol(""),ni=Symbol(""),ri=Symbol(""),oi=Symbol(""),ai=Symbol("");Ds({[qa]:"vModelRadio",[Qa]:"vModelCheckbox",[Za]:"vModelText",[ei]:"vModelSelect",[po]:"vModelDynamic",[ti]:"withModifiers",[ni]:"withKeys",[ri]:"vShow",[oi]:"Transition",[ai]:"TransitionGroup"});let On;function Sp(e,t=!1){return On||(On=document.createElement("div")),t?(On.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,On.children[0].getAttribute("foo")):(On.innerHTML=e,On.textContent)}const ii={parseMode:"html",isVoidTag:Jl,isNativeTag:e=>Wl(e)||zl(e)||Yl(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Sp,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return oi;if(e==="TransitionGroup"||e==="transition-group")return ai},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(a=>a.type===6&&a.name==="encoding"&&a.value!=null&&(a.value.content==="text/html"||a.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},Il=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ae("style",!0,t.loc),exp:bp(t.value.content,t.loc),modifiers:[],loc:t.loc})})},bp=(e,t)=>{const n=ql(e);return ae(JSON.stringify(n),!1,t,3)};function jt(e,t){return Pe(e,t)}const Tp={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},Ip={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},xp=(e,t,n)=>{const{exp:o,loc:a}=e;return o||n.onError(jt(53,a)),t.children.length&&(n.onError(jt(54,a)),t.children.length=0),{props:[_e(ae("innerHTML",!0,a),o||ae("",!0))]}},Op=(e,t,n)=>{const{exp:o,loc:a}=e;return o||n.onError(jt(55,a)),t.children.length&&(n.onError(jt(56,a)),t.children.length=0),{props:[_e(ae("textContent",!0),o?ft(o,n)>0?o:Xe(n.helperString(Tr),[o],a):ae("",!0))]}},Cp=(e,t,n)=>{const o=Ja(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(jt(58,e.arg.loc));const{tag:a}=t,i=n.isCustomElement(a);if(a==="input"||a==="textarea"||a==="select"||i){let r=Za,s=!1;if(a==="input"||i){const l=xr(t,"type");if(l){if(l.type===7)r=po;else if(l.value)switch(l.value.content){case"radio":r=qa;break;case"checkbox":r=Qa;break;case"file":s=!0,n.onError(jt(59,e.loc));break}}else Xs(t)&&(r=po)}else a==="select"&&(r=ei);s||(o.needRuntime=n.helper(r))}else n.onError(jt(57,e.loc));return o.props=o.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),o},Np=Eo("passive,once,capture"),Ap=Eo("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Pp=Eo("left,right"),xl=Eo("onkeyup,onkeydown,onkeypress"),Dp=(e,t,n,o)=>{const a=[],i=[],r=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&Fn("COMPILER_V_ON_NATIVE",n)||Np(l)?r.push(l):Pp(l)?at(e)?xl(e.content.toLowerCase())?a.push(l):i.push(l):(a.push(l),i.push(l)):Ap(l)?i.push(l):a.push(l)}return{keyModifiers:a,nonKeyModifiers:i,eventOptionModifiers:r}},ji=(e,t)=>at(e)&&e.content.toLowerCase()==="onclick"?ae(t,!0):e.type!==4?St(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Rp=(e,t,n)=>Ya(e,t,n,o=>{const{modifiers:a}=e;if(!a.length)return o;let{key:i,value:r}=o.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:u}=Dp(i,a,n,e.loc);if(l.includes("right")&&(i=ji(i,"onContextmenu")),l.includes("middle")&&(i=ji(i,"onMouseup")),l.length&&(r=Xe(n.helper(ti),[r,JSON.stringify(l)])),s.length&&(!at(i)||xl(i.content.toLowerCase()))&&(r=Xe(n.helper(ni),[r,JSON.stringify(s)])),u.length){const f=u.map(ss).join("");i=at(i)?ae(`${i.content}${f}`,!0):St(["(",i,`) + "${f}"`])}return{props:[_e(i,r)]}}),wp=(e,t,n)=>{const{exp:o,loc:a}=e;return o||n.onError(jt(61,a)),{props:[],needRuntime:n.helper(ri)}},Mp=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},Ol=[Il],Cl={cloak:Tl,html:xp,text:Op,model:Cp,on:Rp,show:wp};function Lp(e,t={}){return bl(e,Vt({},ii,t,{nodeTransforms:[Mp,...Ol,...t.nodeTransforms||[]],directiveTransforms:Vt({},Cl,t.directiveTransforms||{}),transformHoist:null}))}function $p(e,t={}){return Xa(e,Vt({},ii,t))}const Fp=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:Pa,BindingTypes:Ep,CAMELIZE:io,CAPITALIZE:Os,CREATE_BLOCK:Da,CREATE_COMMENT:jn,CREATE_ELEMENT_BLOCK:Ra,CREATE_ELEMENT_VNODE:Oo,CREATE_SLOTS:La,CREATE_STATIC:wa,CREATE_TEXT:Co,CREATE_VNODE:xo,CompilerDeprecationTypes:rd,ConstantTypes:Yf,DOMDirectiveTransforms:Cl,DOMErrorCodes:Tp,DOMErrorMessages:Ip,DOMNodeTransforms:Ol,ElementTypes:zf,ErrorCodes:id,FRAGMENT:Mn,GUARD_REACTIVE_PROPS:_n,IS_MEMO_SAME:$a,IS_REF:Ps,KEEP_ALIVE:hr,MERGE_PROPS:mr,NORMALIZE_CLASS:Mo,NORMALIZE_PROPS:Ln,NORMALIZE_STYLE:Lo,Namespaces:Hf,NodeTypes:Wf,OPEN_BLOCK:rn,POP_SCOPE_ID:Ns,PUSH_SCOPE_ID:Cs,RENDER_LIST:wo,RENDER_SLOT:Ma,RESOLVE_COMPONENT:No,RESOLVE_DIRECTIVE:Po,RESOLVE_DYNAMIC_COMPONENT:Ao,RESOLVE_FILTER:Do,SET_BLOCK_TRACKING:vr,SUSPENSE:Io,TELEPORT:wn,TO_DISPLAY_STRING:Tr,TO_HANDLERS:$o,TO_HANDLER_KEY:so,TRANSITION:oi,TRANSITION_GROUP:ai,TS_NODE_TYPES:ks,UNREF:As,V_MODEL_CHECKBOX:Qa,V_MODEL_DYNAMIC:po,V_MODEL_RADIO:qa,V_MODEL_SELECT:ei,V_MODEL_TEXT:Za,V_ON_WITH_KEYS:ni,V_ON_WITH_MODIFIERS:ti,V_SHOW:ri,WITH_CTX:Fo,WITH_DIRECTIVES:Ro,WITH_MEMO:ko,advancePositionWithClone:xd,advancePositionWithMutation:Ks,assert:Od,baseCompile:bl,baseParse:Xa,buildDirectiveArgs:vl,buildProps:za,buildSlots:dl,checkCompatEnabled:Fn,compile:Lp,convertToBlock:Bo,createArrayExpression:nn,createAssignmentExpression:Zf,createBlockStatement:Ms,createCacheExpression:ws,createCallExpression:Xe,createCompilerError:Pe,createCompoundExpression:St,createConditionalExpression:lo,createDOMCompilerError:jt,createForLoopParams:co,createFunctionExpression:En,createIfStatement:Qf,createInterpolation:Jf,createObjectExpression:gt,createObjectProperty:_e,createReturnStatement:td,createRoot:Rs,createSequenceExpression:ed,createSimpleExpression:ae,createStructuralDirectiveTransform:Ga,createTemplateLiteral:qf,createTransformContext:nl,createVNodeCall:$n,errorMessages:sd,extractIdentifiers:Dt,findDir:ot,findProp:xr,forAliasRE:Ws,generate:al,generateCodeFrame:Ql,getBaseTransformPreset:Sl,getConstantType:ft,getMemoedVNodeCall:Hs,getVNodeBlockHelper:bn,getVNodeHelper:Sn,hasDynamicKeyVBind:Xs,hasScopeRef:Ct,helperNameMap:yn,injectProp:yr,isAllWhitespace:ja,isCommentOrWhitespace:_a,isCoreComponent:ka,isFnExpression:_s,isFnExpressionBrowser:js,isFnExpressionNode:Id,isFunctionType:vd,isInDestructureAssignment:cd,isInNewExpression:fd,isMemberExpression:Va,isMemberExpressionBrowser:Us,isMemberExpressionNode:bd,isReferencedIdentifier:ud,isSimpleIdentifier:Ir,isSlotOutlet:gr,isStaticArgOf:Qt,isStaticExp:at,isStaticProperty:Fs,isStaticPropertyKey:gd,isTemplateNode:kn,isText:Hr,isVPre:ca,isVSlot:Ua,isWhitespaceText:Vo,locStub:He,noopDirectiveTransform:Tl,parse:$p,parserOptions:ii,processExpression:Jr,processFor:cl,processIf:ul,processSlotOutlet:gl,registerRuntimeHelpers:Ds,resolveComponentType:ml,stringifyExpression:ll,toValidAssetId:Bn,trackSlotScopes:fl,trackVForSlotScopes:lp,transform:rl,transformBind:yl,transformElement:hl,transformExpression:rp,transformModel:Ja,transformOn:Ya,transformStyle:Il,transformVBindShorthand:El,traverseNode:Or,unwrapTSNode:Bs,validFirstIdentCharRE:Ba,walkBlockDeclarations:$s,walkFunctionParams:dd,walkIdentifiers:ld,warnDeprecation:ad},Symbol.toStringTag,{value:"Module"})),kp=To(Fp),Bp=To(Zl),Vp=To(eu);/**
68
+ * vue v3.5.25
69
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
70
+ * @license MIT
71
+ **/var _i;function Up(){return _i||(_i=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=kp,n=Bp,o=Vp;function a(l){var u=Object.create(null);if(l)for(var f in l)u[f]=l[f];return u.default=l,Object.freeze(u)}var i=a(n);const r=Object.create(null);function s(l,u){if(!o.isString(l))if(l.nodeType)l=l.innerHTML;else return o.NOOP;const f=o.genCacheKey(l,u),c=r[f];if(c)return c;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const d=o.extend({hoistStatic:!0,onError:void 0,onWarn:o.NOOP},u);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=m=>!!customElements.get(m));const{code:p}=t.compile(l,d),h=new Function("Vue",p)(i);return h._rc=!0,r[f]=h}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(Wo)),Wo}var Ki;function jp(){return Ki||(Ki=1,Ho.exports=Up()),Ho.exports}/**!
72
+ * Sortable 1.14.0
73
+ * @author RubaXa <trash@rubaxa.org>
74
+ * @author owenm <owen23355@gmail.com>
75
+ * @license MIT
76
+ */function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(o){_p(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Qr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qr=function(t){return typeof t}:Qr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function _p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},bt.apply(this,arguments)}function Kp(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Xp(e,t){if(e==null)return{};var n=Kp(e,t),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Gp(e){return Hp(e)||Wp(e)||zp(e)||Yp()}function Hp(e){if(Array.isArray(e))return ha(e)}function Wp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zp(e,t){if(e){if(typeof e=="string")return ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ha(e,t)}}function ha(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Yp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Jp="1.14.0";function _t(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Kt=_t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nr=_t(/Edge/i),Gi=_t(/firefox/i),ur=_t(/safari/i)&&!_t(/chrome/i)&&!_t(/android/i),Nl=_t(/iP(ad|od|hone)/i),qp=_t(/chrome/i)&&_t(/android/i),Al={capture:!1,passive:!1};function he(e,t,n){e.addEventListener(t,n,!Kt&&Al)}function de(e,t,n){e.removeEventListener(t,n,!Kt&&Al)}function ho(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Qp(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nt(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ho(e,t):ho(e,t))||o&&e===n)return e;if(e===n)break}while(e=Qp(e))}return null}var Hi=/\s+/g;function Le(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Hi," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Hi," ")}}function Y(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function gn(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Y(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Pl(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,i=o.length;if(n)for(;a<i;a++)n(o[a],a);return o}return[]}function wt(){var e=document.scrollingElement;return e||document.documentElement}function Me(e,t,n,o,a){if(!(!e.getBoundingClientRect&&e!==window)){var i,r,s,l,u,f,c;if(e!==window&&e.parentNode&&e!==wt()?(i=e.getBoundingClientRect(),r=i.top,s=i.left,l=i.bottom,u=i.right,f=i.height,c=i.width):(r=0,s=0,l=window.innerHeight,u=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!Kt))do if(a&&a.getBoundingClientRect&&(Y(a,"transform")!=="none"||n&&Y(a,"position")!=="static")){var d=a.getBoundingClientRect();r-=d.top+parseInt(Y(a,"border-top-width")),s-=d.left+parseInt(Y(a,"border-left-width")),l=r+i.height,u=s+i.width;break}while(a=a.parentNode);if(o&&e!==window){var p=gn(a||e),h=p&&p.a,m=p&&p.d;p&&(r/=m,s/=h,c/=h,f/=m,l=r+f,u=s+c)}return{top:r,left:s,bottom:l,right:u,width:c,height:f}}}function Wi(e,t,n){for(var o=Zt(e,!0),a=Me(e)[t];o;){var i=Me(o)[n],r=void 0;if(r=a>=i,!r)return o;if(o===wt())break;o=Zt(o,!1)}return!1}function Vn(e,t,n,o){for(var a=0,i=0,r=e.children;i<r.length;){if(r[i].style.display!=="none"&&r[i]!==te.ghost&&(o||r[i]!==te.dragged)&&Nt(r[i],n.draggable,e,!1)){if(a===t)return r[i];a++}i++}return null}function si(e,t){for(var n=e.lastElementChild;n&&(n===te.ghost||Y(n,"display")==="none"||t&&!ho(n,t));)n=n.previousElementSibling;return n||null}function Be(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!t||ho(e,t))&&n++;return n}function zi(e){var t=0,n=0,o=wt();if(e)do{var a=gn(e),i=a.a,r=a.d;t+=e.scrollLeft*i,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function Zp(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function Zt(e,t){if(!e||!e.getBoundingClientRect)return wt();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=Y(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return wt();if(o||t)return n;o=!0}}while(n=n.parentNode);return wt()}function eh(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Yo(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var cr;function Dl(e,t){return function(){if(!cr){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),cr=setTimeout(function(){cr=void 0},t)}}}function th(){clearTimeout(cr),cr=void 0}function Rl(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function li(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Yi(e,t){Y(e,"position","absolute"),Y(e,"top",t.top),Y(e,"left",t.left),Y(e,"width",t.width),Y(e,"height",t.height)}function Jo(e){Y(e,"position",""),Y(e,"top",""),Y(e,"left",""),Y(e,"width",""),Y(e,"height","")}var tt="Sortable"+new Date().getTime();function nh(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(Y(a,"display")==="none"||a===te.ghost)){e.push({target:a,rect:Me(a)});var i=Lt({},e[e.length-1].rect);if(a.thisAnimationDuration){var r=gn(a,!0);r&&(i.top-=r.f,i.left-=r.e)}a.fromRect=i}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(Zp(e,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var i=!1,r=0;e.forEach(function(s){var l=0,u=s.target,f=u.fromRect,c=Me(u),d=u.prevFromRect,p=u.prevToRect,h=s.rect,m=gn(u,!0);m&&(c.top-=m.f,c.left-=m.e),u.toRect=c,u.thisAnimationDuration&&Yo(d,c)&&!Yo(f,c)&&(h.top-c.top)/(h.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(l=oh(h,d,p,a.options)),Yo(c,f)||(u.prevFromRect=f,u.prevToRect=c,l||(l=a.options.animation),a.animate(u,h,c,l)),l&&(i=!0,r=Math.max(r,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),e=[]},animate:function(o,a,i,r){if(r){Y(o,"transition",""),Y(o,"transform","");var s=gn(this.el),l=s&&s.a,u=s&&s.d,f=(a.left-i.left)/(l||1),c=(a.top-i.top)/(u||1);o.animatingX=!!f,o.animatingY=!!c,Y(o,"transform","translate3d("+f+"px,"+c+"px,0)"),this.forRepaintDummy=rh(o),Y(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Y(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){Y(o,"transition",""),Y(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function rh(e){return e.offsetWidth}function oh(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var Cn=[],qo={initializeByDefault:!0},Ar={mount:function(t){for(var n in qo)qo.hasOwnProperty(n)&&!(n in t)&&(t[n]=qo[n]);Cn.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Cn.push(t)},pluginEvent:function(t,n,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var i=t+"Global";Cn.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][i]&&n[r.pluginName][i](Lt({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](Lt({sortable:n},o)))})},initializePlugins:function(t,n,o,a){Cn.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,bt(o,u.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,n){var o={};return Cn.forEach(function(a){typeof a.eventProperties=="function"&&bt(o,a.eventProperties.call(n[a.pluginName],t))}),o},modifyOption:function(t,n,o){var a;return Cn.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(a=i.optionListeners[n].call(t[i.pluginName],o))}),a}};function Qn(e){var t=e.sortable,n=e.rootEl,o=e.name,a=e.targetEl,i=e.cloneEl,r=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,f=e.oldDraggableIndex,c=e.newDraggableIndex,d=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[tt],!!t){var m,v=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Kt&&!Nr?m=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(o,!0,!0)),m.to=r||n,m.from=s||n,m.item=a||n,m.clone=i,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=f,m.newDraggableIndex=c,m.originalEvent=d,m.pullMode=p?p.lastPutMode:void 0;var E=Lt(Lt({},h),Ar.getEventProperties(o,t));for(var x in E)m[x]=E[x];n&&n.dispatchEvent(m),v[y]&&v[y].call(t,m)}}var ah=["evt"],lt=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,i=Xp(o,ah);Ar.pluginEvent.bind(te)(t,n,Lt({dragEl:G,parentEl:$e,ghostEl:le,rootEl:De,nextEl:fn,lastDownEl:Zr,cloneEl:Fe,cloneHidden:Yt,dragStarted:Zn,putSortable:Ye,activeSortable:te.active,originalEvent:a,oldIndex:Rn,oldDraggableIndex:fr,newIndex:ht,newDraggableIndex:zt,hideGhostForTarget:$l,unhideGhostForTarget:Fl,cloneNowHidden:function(){Yt=!0},cloneNowShown:function(){Yt=!1},dispatchSortableEvent:function(s){rt({sortable:n,name:s,originalEvent:a})}},i))};function rt(e){Qn(Lt({putSortable:Ye,cloneEl:Fe,targetEl:G,rootEl:De,oldIndex:Rn,oldDraggableIndex:fr,newIndex:ht,newDraggableIndex:zt},e))}var G,$e,le,De,fn,Zr,Fe,Yt,Rn,ht,fr,zt,Vr,Ye,Dn=!1,mo=!1,vo=[],ln,xt,Qo,Zo,Ji,qi,Zn,Nn,dr,pr=!1,Ur=!1,eo,Qe,ea=[],ma=!1,go=[],jo=typeof document<"u",jr=Nl,Qi=Nr||Kt?"cssFloat":"float",ih=jo&&!qp&&!Nl&&"draggable"in document.createElement("div"),wl=(function(){if(jo){if(Kt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),Ml=function(t,n){var o=Y(t),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Vn(t,0,n),r=Vn(t,1,n),s=i&&Y(i),l=r&&Y(r),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Me(i).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Me(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var c=s.float==="left"?"left":"right";return r&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=a&&o[Qi]==="none"||r&&o[Qi]==="none"&&u+f>a)?"vertical":"horizontal"},sh=function(t,n,o){var a=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,s=o?n.left:n.top,l=o?n.right:n.bottom,u=o?n.width:n.height;return a===s||i===l||a+r/2===s+u/2},lh=function(t,n){var o;return vo.some(function(a){var i=a[tt].options.emptyInsertThreshold;if(!(!i||si(a))){var r=Me(a),s=t>=r.left-i&&t<=r.right+i,l=n>=r.top-i&&n<=r.bottom+i;if(s&&l)return o=a}}),o},Ll=function(t){function n(i,r){return function(s,l,u,f){var c=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(r||c))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return n(i(s,l,u,f),r)(s,l,u,f);var d=(r?s:l).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var o={},a=t.group;(!a||Qr(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=n(a.pull,!0),o.checkPut=n(a.put),o.revertClone=a.revertClone,t.group=o},$l=function(){!wl&&le&&Y(le,"display","none")},Fl=function(){!wl&&le&&Y(le,"display","")};jo&&document.addEventListener("click",function(e){if(mo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),mo=!1,!1},!0);var un=function(t){if(G){t=t.touches?t.touches[0]:t;var n=lh(t.clientX,t.clientY);if(n){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[tt]._onDragOver(o)}}},uh=function(t){G&&G.parentNode[tt]._isOutsideThisEl(t.target)};function te(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=bt({},t),e[tt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ml(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,s){r.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:te.supportPointer!==!1&&"PointerEvent"in window&&!ur,emptyInsertThreshold:5};Ar.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ll(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:ih,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?he(e,"pointerdown",this._onTapStart):(he(e,"mousedown",this._onTapStart),he(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(e,"dragover",this),he(e,"dragenter",this)),vo.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,nh())}te.prototype={constructor:te,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Nn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,a=this.options,i=a.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,f=a.filter;if(gh(o),!G&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||a.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ur&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Nt(l,a.draggable,o,!1),!(l&&l.animated)&&Zr!==l)){if(Rn=Be(l),fr=Be(l,a.draggable),typeof f=="function"){if(f.call(this,t,l,this)){rt({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:o,fromEl:o}),lt("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=Nt(u,c.trim(),o,!1),c)return rt({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:o,toEl:o}),lt("filter",n,{evt:t}),!0}),f)){i&&t.cancelable&&t.preventDefault();return}a.handle&&!Nt(u,a.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,o){var a=this,i=a.el,r=a.options,s=i.ownerDocument,l;if(o&&!G&&o.parentNode===i){var u=Me(o);if(De=i,G=o,$e=G.parentNode,fn=G.nextSibling,Zr=o,Vr=r.group,te.dragged=G,ln={target:G,clientX:(n||t).clientX,clientY:(n||t).clientY},Ji=ln.clientX-u.left,qi=ln.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,G.style["will-change"]="all",l=function(){if(lt("delayEnded",a,{evt:t}),te.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Gi&&a.nativeDraggable&&(G.draggable=!0),a._triggerDragStart(t,n),rt({sortable:a,name:"choose",originalEvent:t}),Le(G,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){Pl(G,f.trim(),ta)}),he(s,"dragover",un),he(s,"mousemove",un),he(s,"touchmove",un),he(s,"mouseup",a._onDrop),he(s,"touchend",a._onDrop),he(s,"touchcancel",a._onDrop),Gi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),lt("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nr||Kt))){if(te.eventCanceled){this._onDrop();return}he(s,"mouseup",a._disableDelayedDrag),he(s,"touchend",a._disableDelayedDrag),he(s,"touchcancel",a._disableDelayedDrag),he(s,"mousemove",a._delayedDragTouchMoveHandler),he(s,"touchmove",a._delayedDragTouchMoveHandler),r.supportPointer&&he(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,r.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&ta(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;de(t,"mouseup",this._disableDelayedDrag),de(t,"touchend",this._disableDelayedDrag),de(t,"touchcancel",this._disableDelayedDrag),de(t,"mousemove",this._delayedDragTouchMoveHandler),de(t,"touchmove",this._delayedDragTouchMoveHandler),de(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):n?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(G,"dragend",this),he(De,"dragstart",this._onDragStart));try{document.selection?to(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Dn=!1,De&&G){lt("dragStarted",this,{evt:n}),this.nativeDraggable&&he(document,"dragover",uh);var o=this.options;!t&&Le(G,o.dragClass,!1),Le(G,o.ghostClass,!0),te.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(xt){this._lastX=xt.clientX,this._lastY=xt.clientY,$l();for(var t=document.elementFromPoint(xt.clientX,xt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(xt.clientX,xt.clientY),t!==n);)n=t;if(G.parentNode[tt]._isOutsideThisEl(t),n)do{if(n[tt]){var o=void 0;if(o=n[tt]._onDragOver({clientX:xt.clientX,clientY:xt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Fl()}},_onTouchMove:function(t){if(ln){var n=this.options,o=n.fallbackTolerance,a=n.fallbackOffset,i=t.touches?t.touches[0]:t,r=le&&gn(le,!0),s=le&&r&&r.a,l=le&&r&&r.d,u=jr&&Qe&&zi(Qe),f=(i.clientX-ln.clientX+a.x)/(s||1)+(u?u[0]-ea[0]:0)/(s||1),c=(i.clientY-ln.clientY+a.y)/(l||1)+(u?u[1]-ea[1]:0)/(l||1);if(!te.active&&!Dn){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(le){r?(r.e+=f-(Qo||0),r.f+=c-(Zo||0)):r={a:1,b:0,c:0,d:1,e:f,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");Y(le,"webkitTransform",d),Y(le,"mozTransform",d),Y(le,"msTransform",d),Y(le,"transform",d),Qo=f,Zo=c,xt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!le){var t=this.options.fallbackOnBody?document.body:De,n=Me(G,!0,jr,!0,t),o=this.options;if(jr){for(Qe=t;Y(Qe,"position")==="static"&&Y(Qe,"transform")==="none"&&Qe!==document;)Qe=Qe.parentNode;Qe!==document.body&&Qe!==document.documentElement?(Qe===document&&(Qe=wt()),n.top+=Qe.scrollTop,n.left+=Qe.scrollLeft):Qe=wt(),ea=zi(Qe)}le=G.cloneNode(!0),Le(le,o.ghostClass,!1),Le(le,o.fallbackClass,!0),Le(le,o.dragClass,!0),Y(le,"transition",""),Y(le,"transform",""),Y(le,"box-sizing","border-box"),Y(le,"margin",0),Y(le,"top",n.top),Y(le,"left",n.left),Y(le,"width",n.width),Y(le,"height",n.height),Y(le,"opacity","0.8"),Y(le,"position",jr?"absolute":"fixed"),Y(le,"zIndex","100000"),Y(le,"pointerEvents","none"),te.ghost=le,t.appendChild(le),Y(le,"transform-origin",Ji/parseInt(le.style.width)*100+"% "+qi/parseInt(le.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,a=t.dataTransfer,i=o.options;if(lt("dragStart",this,{evt:t}),te.eventCanceled){this._onDrop();return}lt("setupClone",this),te.eventCanceled||(Fe=li(G),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),Le(Fe,this.options.chosenClass,!1),te.clone=Fe),o.cloneId=to(function(){lt("clone",o),!te.eventCanceled&&(o.options.removeCloneOnHide||De.insertBefore(Fe,G),o._hideClone(),rt({sortable:o,name:"clone"}))}),!n&&Le(G,i.dragClass,!0),n?(mo=!0,o._loopId=setInterval(o._emulateDragOver,50)):(de(document,"mouseup",o._onDrop),de(document,"touchend",o._onDrop),de(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(o,a,G)),he(document,"drop",o),Y(G,"transform","translateZ(0)")),Dn=!0,o._dragStartId=to(o._dragStarted.bind(o,n,t)),he(document,"selectstart",o),Zn=!0,ur&&Y(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,a,i,r,s=this.options,l=s.group,u=te.active,f=Vr===l,c=s.sort,d=Ye||u,p,h=this,m=!1;if(ma)return;function v(Q,me){lt(Q,h,Lt({evt:t,isOwner:f,axis:p?"vertical":"horizontal",revert:r,dragRect:a,targetRect:i,canSort:c,fromSortable:d,target:o,completed:E,onMove:function(W,N){return _r(De,n,G,a,W,Me(W),t,N)},changed:x},me))}function y(){v("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function E(Q){return v("dragOverCompleted",{insertion:Q}),Q&&(f?u._hideClone():u._showClone(h),h!==d&&(Le(G,Ye?Ye.options.ghostClass:u.options.ghostClass,!1),Le(G,s.ghostClass,!0)),Ye!==h&&h!==te.active?Ye=h:h===te.active&&Ye&&(Ye=null),d===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){v("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(o===G&&!G.animated||o===n&&!o.animated)&&(Nn=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(G.parentNode[tt]._isOutsideThisEl(t.target),!Q&&un(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function x(){ht=Be(G),zt=Be(G,s.draggable),rt({sortable:h,name:"change",toEl:n,newIndex:ht,newDraggableIndex:zt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=Nt(o,s.draggable,n,!0),v("dragOver"),te.eventCanceled)return m;if(G.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return E(!1);if(mo=!1,u&&!s.disabled&&(f?c||(r=$e!==De):Ye===this||(this.lastPutMode=Vr.checkPull(this,u,G,t))&&l.checkPut(this,u,G,t))){if(p=this._getDirection(t,o)==="vertical",a=Me(G),v("dragOverValid"),te.eventCanceled)return m;if(r)return $e=De,y(),this._hideClone(),v("revert"),te.eventCanceled||(fn?De.insertBefore(G,fn):De.appendChild(G)),E(!0);var b=si(n,s.draggable);if(!b||ph(t,p,this)&&!b.animated){if(b===G)return E(!1);if(b&&n===t.target&&(o=b),o&&(i=Me(o)),_r(De,n,G,a,o,i,t,!!o)!==!1)return y(),n.appendChild(G),$e=n,x(),E(!0)}else if(b&&dh(t,p,this)){var C=Vn(n,0,s,!0);if(C===G)return E(!1);if(o=C,i=Me(o),_r(De,n,G,a,o,i,t,!1)!==!1)return y(),n.insertBefore(G,C),$e=n,x(),E(!0)}else if(o.parentNode===n){i=Me(o);var P=0,K,$=G.parentNode!==n,S=!sh(G.animated&&G.toRect||a,o.animated&&o.toRect||i,p),L=p?"top":"left",k=Wi(o,"top","top")||Wi(G,"top","top"),j=k?k.scrollTop:void 0;Nn!==o&&(K=i[L],pr=!1,Ur=!S&&s.invertSwap||$),P=hh(t,o,i,p,S?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ur,Nn===o);var M;if(P!==0){var F=Be(G);do F-=P,M=$e.children[F];while(M&&(Y(M,"display")==="none"||M===le))}if(P===0||M===o)return E(!1);Nn=o,dr=P;var O=o.nextElementSibling,w=!1;w=P===1;var V=_r(De,n,G,a,o,i,t,w);if(V!==!1)return(V===1||V===-1)&&(w=V===1),ma=!0,setTimeout(fh,30),y(),w&&!O?n.appendChild(G):o.parentNode.insertBefore(G,w?O:o),k&&Rl(k,0,j-k.scrollTop),$e=G.parentNode,K!==void 0&&!Ur&&(eo=Math.abs(K-Me(o)[L])),x(),E(!0)}if(n.contains(G))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){de(document,"mousemove",this._onTouchMove),de(document,"touchmove",this._onTouchMove),de(document,"pointermove",this._onTouchMove),de(document,"dragover",un),de(document,"mousemove",un),de(document,"touchmove",un)},_offUpEvents:function(){var t=this.el.ownerDocument;de(t,"mouseup",this._onDrop),de(t,"touchend",this._onDrop),de(t,"pointerup",this._onDrop),de(t,"touchcancel",this._onDrop),de(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(ht=Be(G),zt=Be(G,o.draggable),lt("drop",this,{evt:t}),$e=G&&G.parentNode,ht=Be(G),zt=Be(G,o.draggable),te.eventCanceled){this._nulling();return}Dn=!1,Ur=!1,pr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),va(this.cloneId),va(this._dragStartId),this.nativeDraggable&&(de(document,"drop",this),de(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ur&&Y(document.body,"user-select",""),Y(G,"transform",""),t&&(Zn&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(De===$e||Ye&&Ye.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),G&&(this.nativeDraggable&&de(G,"dragend",this),ta(G),G.style["will-change"]="",Zn&&!Dn&&Le(G,Ye?Ye.options.ghostClass:this.options.ghostClass,!1),Le(G,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:t}),De!==$e?(ht>=0&&(rt({rootEl:$e,name:"add",toEl:$e,fromEl:De,originalEvent:t}),rt({sortable:this,name:"remove",toEl:$e,originalEvent:t}),rt({rootEl:$e,name:"sort",toEl:$e,fromEl:De,originalEvent:t}),rt({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Ye&&Ye.save()):ht!==Rn&&ht>=0&&(rt({sortable:this,name:"update",toEl:$e,originalEvent:t}),rt({sortable:this,name:"sort",toEl:$e,originalEvent:t})),te.active&&((ht==null||ht===-1)&&(ht=Rn,zt=fr),rt({sortable:this,name:"end",toEl:$e,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){lt("nulling",this),De=G=$e=le=fn=Fe=Zr=Yt=ln=xt=Zn=ht=zt=Rn=fr=Nn=dr=Ye=Vr=te.dragged=te.ghost=te.clone=te.active=null,go.forEach(function(t){t.checked=!0}),go.length=Qo=Zo=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),ch(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,a=0,i=o.length,r=this.options;a<i;a++)n=o[a],Nt(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||vh(n));return t},sort:function(t,n){var o={},a=this.el;this.toArray().forEach(function(i,r){var s=a.children[r];Nt(s,this.options.draggable,a,!1)&&(o[i]=s)},this),n&&this.captureAnimationState(),t.forEach(function(i){o[i]&&(a.removeChild(o[i]),a.appendChild(o[i]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Nt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var a=Ar.modifyOption(this,t,n);typeof a<"u"?o[t]=a:o[t]=n,t==="group"&&Ll(o)},destroy:function(){lt("destroy",this);var t=this.el;t[tt]=null,de(t,"mousedown",this._onTapStart),de(t,"touchstart",this._onTapStart),de(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(de(t,"dragover",this),de(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),vo.splice(vo.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Yt){if(lt("hideClone",this),te.eventCanceled)return;Y(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Yt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Yt){if(lt("showClone",this),te.eventCanceled)return;G.parentNode==De&&!this.options.group.revertClone?De.insertBefore(Fe,G):fn?De.insertBefore(Fe,fn):De.appendChild(Fe),this.options.group.revertClone&&this.animate(G,Fe),Y(Fe,"display",""),Yt=!1}}};function ch(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function _r(e,t,n,o,a,i,r,s){var l,u=e[tt],f=u.options.onMove,c;return window.CustomEvent&&!Kt&&!Nr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=a||t,l.relatedRect=i||Me(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),f&&(c=f.call(u,l,r)),c}function ta(e){e.draggable=!1}function fh(){ma=!1}function dh(e,t,n){var o=Me(Vn(n.el,0,n.options,!0)),a=10;return t?e.clientX<o.left-a||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-a||e.clientY<o.bottom&&e.clientX<o.left}function ph(e,t,n){var o=Me(si(n.el,n.options.draggable)),a=10;return t?e.clientX>o.right+a||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+a}function hh(e,t,n,o,a,i,r,s){var l=o?e.clientY:e.clientX,u=o?n.height:n.width,f=o?n.top:n.left,c=o?n.bottom:n.right,d=!1;if(!r){if(s&&eo<u*a){if(!pr&&(dr===1?l>f+u*i/2:l<c-u*i/2)&&(pr=!0),pr)d=!0;else if(dr===1?l<f+eo:l>c-eo)return-dr}else if(l>f+u*(1-a)/2&&l<c-u*(1-a)/2)return mh(t)}return d=d||r,d&&(l<f+u*i/2||l>c-u*i/2)?l>f+u/2?1:-1:0}function mh(e){return Be(G)<Be(e)?1:-1}function vh(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function gh(e){go.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&go.push(o)}}function to(e){return setTimeout(e,0)}function va(e){return clearTimeout(e)}jo&&he(document,"touchmove",function(e){(te.active||Dn)&&e.cancelable&&e.preventDefault()});te.utils={on:he,off:de,css:Y,find:Pl,is:function(t,n){return!!Nt(t,n,t,!1)},extend:eh,throttle:Dl,closest:Nt,toggleClass:Le,clone:li,index:Be,nextTick:to,cancelNextTick:va,detectDirection:Ml,getChild:Vn};te.get=function(e){return e[tt]};te.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(te.utils=Lt(Lt({},te.utils),o.utils)),Ar.mount(o)})};te.create=function(e,t){return new te(e,t)};te.version=Jp;var Ke=[],er,ga,ya=!1,na,ra,yo,tr;function yh(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?he(document,"dragover",this._handleAutoScroll):this.options.supportPointer?he(document,"pointermove",this._handleFallbackAutoScroll):o.touches?he(document,"touchmove",this._handleFallbackAutoScroll):he(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?de(document,"dragover",this._handleAutoScroll):(de(document,"pointermove",this._handleFallbackAutoScroll),de(document,"touchmove",this._handleFallbackAutoScroll),de(document,"mousemove",this._handleFallbackAutoScroll)),Zi(),no(),th()},nulling:function(){yo=ga=er=ya=tr=na=ra=null,Ke.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var a=this,i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,r);if(yo=n,o||this.options.forceAutoScrollFallback||Nr||Kt||ur){oa(n,this.options,s,o);var l=Zt(s,!0);ya&&(!tr||i!==na||r!==ra)&&(tr&&Zi(),tr=setInterval(function(){var u=Zt(document.elementFromPoint(i,r),!0);u!==l&&(l=u,no()),oa(n,a.options,u,o)},10),na=i,ra=r)}else{if(!this.options.bubbleScroll||Zt(s,!0)===wt()){no();return}oa(n,this.options,Zt(s,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function no(){Ke.forEach(function(e){clearInterval(e.pid)}),Ke=[]}function Zi(){clearInterval(tr)}var oa=Dl(function(e,t,n,o){if(t.scroll){var a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,s=t.scrollSpeed,l=wt(),u=!1,f;ga!==n&&(ga=n,no(),er=t.scroll,f=t.scrollFn,er===!0&&(er=Zt(n,!0)));var c=0,d=er;do{var p=d,h=Me(p),m=h.top,v=h.bottom,y=h.left,E=h.right,x=h.width,b=h.height,C=void 0,P=void 0,K=p.scrollWidth,$=p.scrollHeight,S=Y(p),L=p.scrollLeft,k=p.scrollTop;p===l?(C=x<K&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),P=b<$&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(C=x<K&&(S.overflowX==="auto"||S.overflowX==="scroll"),P=b<$&&(S.overflowY==="auto"||S.overflowY==="scroll"));var j=C&&(Math.abs(E-a)<=r&&L+x<K)-(Math.abs(y-a)<=r&&!!L),M=P&&(Math.abs(v-i)<=r&&k+b<$)-(Math.abs(m-i)<=r&&!!k);if(!Ke[c])for(var F=0;F<=c;F++)Ke[F]||(Ke[F]={});(Ke[c].vx!=j||Ke[c].vy!=M||Ke[c].el!==p)&&(Ke[c].el=p,Ke[c].vx=j,Ke[c].vy=M,clearInterval(Ke[c].pid),(j!=0||M!=0)&&(u=!0,Ke[c].pid=setInterval((function(){o&&this.layer===0&&te.active._onTouchMove(yo);var O=Ke[this.layer].vy?Ke[this.layer].vy*s:0,w=Ke[this.layer].vx?Ke[this.layer].vx*s:0;typeof f=="function"&&f.call(te.dragged.parentNode[tt],w,O,e,yo,Ke[this.layer].el)!=="continue"||Rl(Ke[this.layer].el,w,O)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&d!==l&&(d=Zt(d,!1)));ya=u}},30),kl=function(t){var n=t.originalEvent,o=t.putSortable,a=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=o||i;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(f.clientX,f.clientY);l(),u&&!u.el.contains(c)&&(r("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function ui(){}ui.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=Vn(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(n,a):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:kl};bt(ui,{pluginName:"revertOnSpill"});function ci(){}ci.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,a=o||this.sortable;a.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),a.animateAll()},drop:kl};bt(ci,{pluginName:"removeOnSpill"});var yt;function Eh(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;yt=o},dragOverValid:function(n){var o=n.completed,a=n.target,i=n.onMove,r=n.activeSortable,s=n.changed,l=n.cancel;if(r.options.swap){var u=this.sortable.el,f=this.options;if(a&&a!==u){var c=yt;i(a)!==!1?(Le(a,f.swapClass,!0),yt=a):yt=null,c&&c!==yt&&Le(c,f.swapClass,!1)}s(),o(!0),l()}},drop:function(n){var o=n.activeSortable,a=n.putSortable,i=n.dragEl,r=a||this.sortable,s=this.options;yt&&Le(yt,s.swapClass,!1),yt&&(s.swap||a&&a.options.swap)&&i!==yt&&(r.captureAnimationState(),r!==o&&o.captureAnimationState(),Sh(i,yt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){yt=null}},bt(e,{pluginName:"swap",eventProperties:function(){return{swapItem:yt}}})}function Sh(e,t){var n=e.parentNode,o=t.parentNode,a,i;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(a=Be(e),i=Be(t),n.isEqualNode(o)&&a<i&&i++,n.insertBefore(t,n.children[a]),o.insertBefore(e,o.children[i]))}var oe=[],pt=[],Yn,Ot,Jn=!1,ut=!1,An=!1,Ce,qn,Kr;function bh(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?he(document,"pointerup",this._deselectMultiDrag):(he(document,"mouseup",this._deselectMultiDrag),he(document,"touchend",this._deselectMultiDrag)),he(document,"keydown",this._checkKeyDown),he(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(a,i){var r="";oe.length&&Ot===t?oe.forEach(function(s,l){r+=(l?", ":"")+s.textContent}):r=i.textContent,a.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;Ce=o},delayEnded:function(){this.isMultiDrag=~oe.indexOf(Ce)},setupClone:function(n){var o=n.sortable,a=n.cancel;if(this.isMultiDrag){for(var i=0;i<oe.length;i++)pt.push(li(oe[i])),pt[i].sortableIndex=oe[i].sortableIndex,pt[i].draggable=!1,pt[i].style["will-change"]="",Le(pt[i],this.options.selectedClass,!1),oe[i]===Ce&&Le(pt[i],this.options.chosenClass,!1);o._hideClone(),a()}},clone:function(n){var o=n.sortable,a=n.rootEl,i=n.dispatchSortableEvent,r=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||oe.length&&Ot===o&&(es(!0,a),i("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,a=n.rootEl,i=n.cancel;this.isMultiDrag&&(es(!1,a),pt.forEach(function(r){Y(r,"display","")}),o(),Kr=!1,i())},hideClone:function(n){var o=this;n.sortable;var a=n.cloneNowHidden,i=n.cancel;this.isMultiDrag&&(pt.forEach(function(r){Y(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),a(),Kr=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ot&&Ot.multiDrag._deselectMultiDrag(),oe.forEach(function(o){o.sortableIndex=Be(o)}),oe=oe.sort(function(o,a){return o.sortableIndex-a.sortableIndex}),An=!0},dragStarted:function(n){var o=this,a=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){oe.forEach(function(r){r!==Ce&&Y(r,"position","absolute")});var i=Me(Ce,!1,!0,!0);oe.forEach(function(r){r!==Ce&&Yi(r,i)}),ut=!0,Jn=!0}a.animateAll(function(){ut=!1,Jn=!1,o.options.animation&&oe.forEach(function(r){Jo(r)}),o.options.sort&&Xr()})}},dragOver:function(n){var o=n.target,a=n.completed,i=n.cancel;ut&&~oe.indexOf(o)&&(a(!1),i())},revert:function(n){var o=n.fromSortable,a=n.rootEl,i=n.sortable,r=n.dragRect;oe.length>1&&(oe.forEach(function(s){i.addAnimationState({target:s,rect:ut?Me(s):r}),Jo(s),s.fromRect=r,o.removeAnimationState(s)}),ut=!1,Th(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var o=n.sortable,a=n.isOwner,i=n.insertion,r=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(i){if(a&&r._hideClone(),Jn=!1,u.animation&&oe.length>1&&(ut||!a&&!r.options.sort&&!l)){var f=Me(Ce,!1,!0,!0);oe.forEach(function(d){d!==Ce&&(Yi(d,f),s.appendChild(d))}),ut=!0}if(!a)if(ut||Xr(),oe.length>1){var c=Kr;r._showClone(o),r.options.animation&&!Kr&&c&&pt.forEach(function(d){r.addAnimationState({target:d,rect:qn}),d.fromRect=qn,d.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,a=n.isOwner,i=n.activeSortable;if(oe.forEach(function(s){s.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){qn=bt({},o);var r=gn(Ce,!0);qn.top-=r.f,qn.left-=r.e}},dragOverAnimationComplete:function(){ut&&(ut=!1,Xr())},drop:function(n){var o=n.originalEvent,a=n.rootEl,i=n.parentEl,r=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,f=u||this.sortable;if(o){var c=this.options,d=i.children;if(!An)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Le(Ce,c.selectedClass,!~oe.indexOf(Ce)),~oe.indexOf(Ce))oe.splice(oe.indexOf(Ce),1),Yn=null,Qn({sortable:r,rootEl:a,name:"deselect",targetEl:Ce});else{if(oe.push(Ce),Qn({sortable:r,rootEl:a,name:"select",targetEl:Ce}),o.shiftKey&&Yn&&r.el.contains(Yn)){var p=Be(Yn),h=Be(Ce);if(~p&&~h&&p!==h){var m,v;for(h>p?(v=p,m=h):(v=h,m=p+1);v<m;v++)~oe.indexOf(d[v])||(Le(d[v],c.selectedClass,!0),oe.push(d[v]),Qn({sortable:r,rootEl:a,name:"select",targetEl:d[v]}))}}else Yn=Ce;Ot=f}if(An&&this.isMultiDrag){if(ut=!1,(i[tt].options.sort||i!==a)&&oe.length>1){var y=Me(Ce),E=Be(Ce,":not(."+this.options.selectedClass+")");if(!Jn&&c.animation&&(Ce.thisAnimationDuration=null),f.captureAnimationState(),!Jn&&(c.animation&&(Ce.fromRect=y,oe.forEach(function(b){if(b.thisAnimationDuration=null,b!==Ce){var C=ut?Me(b):y;b.fromRect=C,f.addAnimationState({target:b,rect:C})}})),Xr(),oe.forEach(function(b){d[E]?i.insertBefore(b,d[E]):i.appendChild(b),E++}),l===Be(Ce))){var x=!1;oe.forEach(function(b){if(b.sortableIndex!==Be(b)){x=!0;return}}),x&&s("update")}oe.forEach(function(b){Jo(b)}),f.animateAll()}Ot=f}(a===i||u&&u.lastPutMode!=="clone")&&pt.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},nullingGlobal:function(){this.isMultiDrag=An=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),de(document,"pointerup",this._deselectMultiDrag),de(document,"mouseup",this._deselectMultiDrag),de(document,"touchend",this._deselectMultiDrag),de(document,"keydown",this._checkKeyDown),de(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof An<"u"&&An)&&Ot===this.sortable&&!(n&&Nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;oe.length;){var o=oe[0];Le(o,this.options.selectedClass,!1),oe.shift(),Qn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},bt(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[tt];!o||!o.options.multiDrag||~oe.indexOf(n)||(Ot&&Ot!==o&&(Ot.multiDrag._deselectMultiDrag(),Ot=o),Le(n,o.options.selectedClass,!0),oe.push(n))},deselect:function(n){var o=n.parentNode[tt],a=oe.indexOf(n);!o||!o.options.multiDrag||!~a||(Le(n,o.options.selectedClass,!1),oe.splice(a,1))}},eventProperties:function(){var n=this,o=[],a=[];return oe.forEach(function(i){o.push({multiDragElement:i,index:i.sortableIndex});var r;ut&&i!==Ce?r=-1:ut?r=Be(i,":not(."+n.options.selectedClass+")"):r=Be(i),a.push({multiDragElement:i,index:r})}),{items:Gp(oe),clones:[].concat(pt),oldIndicies:o,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Th(e,t){oe.forEach(function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function es(e,t){pt.forEach(function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function Xr(){oe.forEach(function(e){e!==Ce&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new yh);te.mount(ci,ui);const Ih=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:bh,Sortable:te,Swap:Eh,default:te},Symbol.toStringTag,{value:"Module"})),xh=To(Ih);var Oh=Gr.exports,ts;function Ch(){return ts||(ts=1,(function(e,t){(function(o,a){e.exports=a(jp(),xh)})(typeof self<"u"?self:Oh,function(n,o){return(function(a){var i={};function r(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return a[s].call(l.exports,l,l.exports,r),l.l=!0,l.exports}return r.m=a,r.c=i,r.d=function(s,l,u){r.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},r.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,l){if(l&1&&(s=r(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(r.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)r.d(u,f,(function(c){return s[c]}).bind(null,f));return u},r.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(l,"a",l),l},r.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},r.p="",r(r.s="fb15")})({"00ee":(function(a,i,r){var s=r("b622"),l=s("toStringTag"),u={};u[l]="z",a.exports=String(u)==="[object z]"}),"0366":(function(a,i,r){var s=r("1c0b");a.exports=function(l,u,f){if(s(l),u===void 0)return l;switch(f){case 0:return function(){return l.call(u)};case 1:return function(c){return l.call(u,c)};case 2:return function(c,d){return l.call(u,c,d)};case 3:return function(c,d,p){return l.call(u,c,d,p)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(a,i,r){var s=r("fc6a"),l=r("241c").f,u={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(d){try{return l(d)}catch{return f.slice()}};a.exports.f=function(p){return f&&u.call(p)=="[object Window]"?c(p):l(s(p))}}),"06cf":(function(a,i,r){var s=r("83ab"),l=r("d1e7"),u=r("5c6c"),f=r("fc6a"),c=r("c04e"),d=r("5135"),p=r("0cfb"),h=Object.getOwnPropertyDescriptor;i.f=s?h:function(v,y){if(v=f(v),y=c(y,!0),p)try{return h(v,y)}catch{}if(d(v,y))return u(!l.f.call(v,y),v[y])}}),"0cfb":(function(a,i,r){var s=r("83ab"),l=r("d039"),u=r("cc12");a.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(a,i,r){var s=r("23e7"),l=r("d58f").left,u=r("a640"),f=r("ae40"),c=u("reduce"),d=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!c||!d},{reduce:function(h){return l(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(a,i,r){var s=r("c6b6"),l=r("9263");a.exports=function(u,f){var c=u.exec;if(typeof c=="function"){var d=c.call(u,f);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,f)}}),"159b":(function(a,i,r){var s=r("da84"),l=r("fdbc"),u=r("17c2"),f=r("9112");for(var c in l){var d=s[c],p=d&&d.prototype;if(p&&p.forEach!==u)try{f(p,"forEach",u)}catch{p.forEach=u}}}),"17c2":(function(a,i,r){var s=r("b727").forEach,l=r("a640"),u=r("ae40"),f=l("forEach"),c=u("forEach");a.exports=!f||!c?function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(a,i,r){var s=r("d066");a.exports=s("document","documentElement")}),"1c0b":(function(a,i){a.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}}),"1c7e":(function(a,i,r){var s=r("b622"),l=s("iterator"),u=!1;try{var f=0,c={next:function(){return{done:!!f++}},return:function(){u=!0}};c[l]=function(){return this},Array.from(c,function(){throw 2})}catch{}a.exports=function(d,p){if(!p&&!u)return!1;var h=!1;try{var m={};m[l]=function(){return{next:function(){return{done:h=!0}}}},d(m)}catch{}return h}}),"1d80":(function(a,i){a.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),"1dde":(function(a,i,r){var s=r("d039"),l=r("b622"),u=r("2d00"),f=l("species");a.exports=function(c){return u>=51||!s(function(){var d=[],p=d.constructor={};return p[f]=function(){return{foo:1}},d[c](Boolean).foo!==1})}}),"23cb":(function(a,i,r){var s=r("a691"),l=Math.max,u=Math.min;a.exports=function(f,c){var d=s(f);return d<0?l(d+c,0):u(d,c)}}),"23e7":(function(a,i,r){var s=r("da84"),l=r("06cf").f,u=r("9112"),f=r("6eeb"),c=r("ce4e"),d=r("e893"),p=r("94ca");a.exports=function(h,m){var v=h.target,y=h.global,E=h.stat,x,b,C,P,K,$;if(y?b=s:E?b=s[v]||c(v,{}):b=(s[v]||{}).prototype,b)for(C in m){if(K=m[C],h.noTargetGet?($=l(b,C),P=$&&$.value):P=b[C],x=p(y?C:v+(E?".":"#")+C,h.forced),!x&&P!==void 0){if(typeof K==typeof P)continue;d(K,P)}(h.sham||P&&P.sham)&&u(K,"sham",!0),f(b,C,K,h)}}}),"241c":(function(a,i,r){var s=r("ca84"),l=r("7839"),u=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(c){return s(c,u)}}),"25f0":(function(a,i,r){var s=r("6eeb"),l=r("825a"),u=r("d039"),f=r("ad6d"),c="toString",d=RegExp.prototype,p=d[c],h=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),m=p.name!=c;(h||m)&&s(RegExp.prototype,c,function(){var y=l(this),E=String(y.source),x=y.flags,b=String(x===void 0&&y instanceof RegExp&&!("flags"in d)?f.call(y):x);return"/"+E+"/"+b},{unsafe:!0})}),"2ca0":(function(a,i,r){var s=r("23e7"),l=r("06cf").f,u=r("50c4"),f=r("5a34"),c=r("1d80"),d=r("ab13"),p=r("c430"),h="".startsWith,m=Math.min,v=d("startsWith"),y=!p&&!v&&!!(function(){var E=l(String.prototype,"startsWith");return E&&!E.writable})();s({target:"String",proto:!0,forced:!y&&!v},{startsWith:function(x){var b=String(c(this));f(x);var C=u(m(arguments.length>1?arguments[1]:void 0,b.length)),P=String(x);return h?h.call(b,P,C):b.slice(C,C+P.length)===P}})}),"2d00":(function(a,i,r){var s=r("da84"),l=r("342f"),u=s.process,f=u&&u.versions,c=f&&f.v8,d,p;c?(d=c.split("."),p=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(p=d[1]))),a.exports=p&&+p}),"342f":(function(a,i,r){var s=r("d066");a.exports=s("navigator","userAgent")||""}),"35a1":(function(a,i,r){var s=r("f5df"),l=r("3f8c"),u=r("b622"),f=u("iterator");a.exports=function(c){if(c!=null)return c[f]||c["@@iterator"]||l[s(c)]}}),"37e8":(function(a,i,r){var s=r("83ab"),l=r("9bf2"),u=r("825a"),f=r("df75");a.exports=s?Object.defineProperties:function(d,p){u(d);for(var h=f(p),m=h.length,v=0,y;m>v;)l.f(d,y=h[v++],p[y]);return d}}),"3bbe":(function(a,i,r){var s=r("861d");a.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(a,i,r){var s=r("6547").charAt,l=r("69f3"),u=r("7dd0"),f="String Iterator",c=l.set,d=l.getterFor(f);u(String,"String",function(p){c(this,{type:f,string:String(p),index:0})},function(){var h=d(this),m=h.string,v=h.index,y;return v>=m.length?{value:void 0,done:!0}:(y=s(m,v),h.index+=y.length,{value:y,done:!1})})}),"3f8c":(function(a,i){a.exports={}}),4160:(function(a,i,r){var s=r("23e7"),l=r("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(a,i,r){var s=r("da84");a.exports=s}),"44ad":(function(a,i,r){var s=r("d039"),l=r("c6b6"),u="".split;a.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?u.call(f,""):Object(f)}:Object}),"44d2":(function(a,i,r){var s=r("b622"),l=r("7c73"),u=r("9bf2"),f=s("unscopables"),c=Array.prototype;c[f]==null&&u.f(c,f,{configurable:!0,value:l(null)}),a.exports=function(d){c[f][d]=!0}}),"44e7":(function(a,i,r){var s=r("861d"),l=r("c6b6"),u=r("b622"),f=u("match");a.exports=function(c){var d;return s(c)&&((d=c[f])!==void 0?!!d:l(c)=="RegExp")}}),4930:(function(a,i,r){var s=r("d039");a.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(a,i,r){var s=r("fc6a"),l=r("50c4"),u=r("23cb"),f=function(c){return function(d,p,h){var m=s(d),v=l(m.length),y=u(h,v),E;if(c&&p!=p){for(;v>y;)if(E=m[y++],E!=E)return!0}else for(;v>y;y++)if((c||y in m)&&m[y]===p)return c||y||0;return!c&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}}),"4de4":(function(a,i,r){var s=r("23e7"),l=r("b727").filter,u=r("1dde"),f=r("ae40"),c=u("filter"),d=f("filter");s({target:"Array",proto:!0,forced:!c||!d},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(a,i,r){var s=r("0366"),l=r("7b0b"),u=r("9bdd"),f=r("e95a"),c=r("50c4"),d=r("8418"),p=r("35a1");a.exports=function(m){var v=l(m),y=typeof this=="function"?this:Array,E=arguments.length,x=E>1?arguments[1]:void 0,b=x!==void 0,C=p(v),P=0,K,$,S,L,k,j;if(b&&(x=s(x,E>2?arguments[2]:void 0,2)),C!=null&&!(y==Array&&f(C)))for(L=C.call(v),k=L.next,$=new y;!(S=k.call(L)).done;P++)j=b?u(L,x,[S.value,P],!0):S.value,d($,P,j);else for(K=c(v.length),$=new y(K);K>P;P++)j=b?x(v[P],P):v[P],d($,P,j);return $.length=P,$}}),"4fad":(function(a,i,r){var s=r("23e7"),l=r("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})}),"50c4":(function(a,i,r){var s=r("a691"),l=Math.min;a.exports=function(u){return u>0?l(s(u),9007199254740991):0}}),5135:(function(a,i){var r={}.hasOwnProperty;a.exports=function(s,l){return r.call(s,l)}}),5319:(function(a,i,r){var s=r("d784"),l=r("825a"),u=r("7b0b"),f=r("50c4"),c=r("a691"),d=r("1d80"),p=r("8aa5"),h=r("14c3"),m=Math.max,v=Math.min,y=Math.floor,E=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g,b=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,P,K,$){var S=$.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=$.REPLACE_KEEPS_$0,k=S?"$":"$0";return[function(F,O){var w=d(this),V=F==null?void 0:F[C];return V!==void 0?V.call(F,w,O):P.call(String(w),F,O)},function(M,F){if(!S&&L||typeof F=="string"&&F.indexOf(k)===-1){var O=K(P,M,this,F);if(O.done)return O.value}var w=l(M),V=String(this),Q=typeof F=="function";Q||(F=String(F));var me=w.global;if(me){var ie=w.unicode;w.lastIndex=0}for(var W=[];;){var N=h(w,V);if(N===null||(W.push(N),!me))break;var U=String(N[0]);U===""&&(w.lastIndex=p(V,f(w.lastIndex),ie))}for(var X="",se=0,fe=0;fe<W.length;fe++){N=W[fe];for(var ve=String(N[0]),Ne=m(v(c(N.index),V.length),0),Oe=[],it=1;it<N.length;it++)Oe.push(b(N[it]));var an=N.groups;if(Q){var Xt=[ve].concat(Oe,Ne,V);an!==void 0&&Xt.push(an);var We=String(F.apply(void 0,Xt))}else We=j(ve,V,Ne,Oe,an,F);Ne>=se&&(X+=V.slice(se,Ne)+We,se=Ne+ve.length)}return X+V.slice(se)}];function j(M,F,O,w,V,Q){var me=O+M.length,ie=w.length,W=x;return V!==void 0&&(V=u(V),W=E),P.call(Q,W,function(N,U){var X;switch(U.charAt(0)){case"$":return"$";case"&":return M;case"`":return F.slice(0,O);case"'":return F.slice(me);case"<":X=V[U.slice(1,-1)];break;default:var se=+U;if(se===0)return N;if(se>ie){var fe=y(se/10);return fe===0?N:fe<=ie?w[fe-1]===void 0?U.charAt(1):w[fe-1]+U.charAt(1):N}X=w[se-1]}return X===void 0?"":X})}})}),5692:(function(a,i,r){var s=r("c430"),l=r("c6cd");(a.exports=function(u,f){return l[u]||(l[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(a,i,r){var s=r("d066"),l=r("241c"),u=r("7418"),f=r("825a");a.exports=s("Reflect","ownKeys")||function(d){var p=l.f(f(d)),h=u.f;return h?p.concat(h(d)):p}}),"5a34":(function(a,i,r){var s=r("44e7");a.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(a,i){a.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}}),"5db7":(function(a,i,r){var s=r("23e7"),l=r("a2bf"),u=r("7b0b"),f=r("50c4"),c=r("1c0b"),d=r("65f0");s({target:"Array",proto:!0},{flatMap:function(h){var m=u(this),v=f(m.length),y;return c(h),y=d(m,0),y.length=l(y,m,m,v,0,1,h,arguments.length>1?arguments[1]:void 0),y}})}),6547:(function(a,i,r){var s=r("a691"),l=r("1d80"),u=function(f){return function(c,d){var p=String(l(c)),h=s(d),m=p.length,v,y;return h<0||h>=m?f?"":void 0:(v=p.charCodeAt(h),v<55296||v>56319||h+1===m||(y=p.charCodeAt(h+1))<56320||y>57343?f?p.charAt(h):v:f?p.slice(h,h+2):(v-55296<<10)+(y-56320)+65536)}};a.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(a,i,r){var s=r("861d"),l=r("e8b5"),u=r("b622"),f=u("species");a.exports=function(c,d){var p;return l(c)&&(p=c.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:s(p)&&(p=p[f],p===null&&(p=void 0))),new(p===void 0?Array:p)(d===0?0:d)}}),"69f3":(function(a,i,r){var s=r("7f9a"),l=r("da84"),u=r("861d"),f=r("9112"),c=r("5135"),d=r("f772"),p=r("d012"),h=l.WeakMap,m,v,y,E=function(S){return y(S)?v(S):m(S,{})},x=function(S){return function(L){var k;if(!u(L)||(k=v(L)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return k}};if(s){var b=new h,C=b.get,P=b.has,K=b.set;m=function(S,L){return K.call(b,S,L),L},v=function(S){return C.call(b,S)||{}},y=function(S){return P.call(b,S)}}else{var $=d("state");p[$]=!0,m=function(S,L){return f(S,$,L),L},v=function(S){return c(S,$)?S[$]:{}},y=function(S){return c(S,$)}}a.exports={set:m,get:v,has:y,enforce:E,getterFor:x}}),"6eeb":(function(a,i,r){var s=r("da84"),l=r("9112"),u=r("5135"),f=r("ce4e"),c=r("8925"),d=r("69f3"),p=d.get,h=d.enforce,m=String(String).split("String");(a.exports=function(v,y,E,x){var b=x?!!x.unsafe:!1,C=x?!!x.enumerable:!1,P=x?!!x.noTargetGet:!1;if(typeof E=="function"&&(typeof y=="string"&&!u(E,"name")&&l(E,"name",y),h(E).source=m.join(typeof y=="string"?y:"")),v===s){C?v[y]=E:f(y,E);return}else b?!P&&v[y]&&(C=!0):delete v[y];C?v[y]=E:l(v,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||c(this)})}),"6f53":(function(a,i,r){var s=r("83ab"),l=r("df75"),u=r("fc6a"),f=r("d1e7").f,c=function(d){return function(p){for(var h=u(p),m=l(h),v=m.length,y=0,E=[],x;v>y;)x=m[y++],(!s||f.call(h,x))&&E.push(d?[x,h[x]]:h[x]);return E}};a.exports={entries:c(!0),values:c(!1)}}),"73d9":(function(a,i,r){var s=r("44d2");s("flatMap")}),7418:(function(a,i){i.f=Object.getOwnPropertySymbols}),"746f":(function(a,i,r){var s=r("428f"),l=r("5135"),u=r("e538"),f=r("9bf2").f;a.exports=function(c){var d=s.Symbol||(s.Symbol={});l(d,c)||f(d,c,{value:u.f(c)})}}),7839:(function(a,i){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(a,i,r){var s=r("1d80");a.exports=function(l){return Object(s(l))}}),"7c73":(function(a,i,r){var s=r("825a"),l=r("37e8"),u=r("7839"),f=r("d012"),c=r("1be4"),d=r("cc12"),p=r("f772"),h=">",m="<",v="prototype",y="script",E=p("IE_PROTO"),x=function(){},b=function(S){return m+y+h+S+m+"/"+y+h},C=function(S){S.write(b("")),S.close();var L=S.parentWindow.Object;return S=null,L},P=function(){var S=d("iframe"),L="java"+y+":",k;return S.style.display="none",c.appendChild(S),S.src=String(L),k=S.contentWindow.document,k.open(),k.write(b("document.F=Object")),k.close(),k.F},K,$=function(){try{K=document.domain&&new ActiveXObject("htmlfile")}catch{}$=K?C(K):P();for(var S=u.length;S--;)delete $[v][u[S]];return $()};f[E]=!0,a.exports=Object.create||function(L,k){var j;return L!==null?(x[v]=s(L),j=new x,x[v]=null,j[E]=L):j=$(),k===void 0?j:l(j,k)}}),"7dd0":(function(a,i,r){var s=r("23e7"),l=r("9ed3"),u=r("e163"),f=r("d2bb"),c=r("d44e"),d=r("9112"),p=r("6eeb"),h=r("b622"),m=r("c430"),v=r("3f8c"),y=r("ae93"),E=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),C="keys",P="values",K="entries",$=function(){return this};a.exports=function(S,L,k,j,M,F,O){l(k,L,j);var w=function(fe){if(fe===M&&W)return W;if(!x&&fe in me)return me[fe];switch(fe){case C:return function(){return new k(this,fe)};case P:return function(){return new k(this,fe)};case K:return function(){return new k(this,fe)}}return function(){return new k(this)}},V=L+" Iterator",Q=!1,me=S.prototype,ie=me[b]||me["@@iterator"]||M&&me[M],W=!x&&ie||w(M),N=L=="Array"&&me.entries||ie,U,X,se;if(N&&(U=u(N.call(new S)),E!==Object.prototype&&U.next&&(!m&&u(U)!==E&&(f?f(U,E):typeof U[b]!="function"&&d(U,b,$)),c(U,V,!0,!0),m&&(v[V]=$))),M==P&&ie&&ie.name!==P&&(Q=!0,W=function(){return ie.call(this)}),(!m||O)&&me[b]!==W&&d(me,b,W),v[L]=W,M)if(X={values:w(P),keys:F?W:w(C),entries:w(K)},O)for(se in X)(x||Q||!(se in me))&&p(me,se,X[se]);else s({target:L,proto:!0,forced:x||Q},X);return X}}),"7f9a":(function(a,i,r){var s=r("da84"),l=r("8925"),u=s.WeakMap;a.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(a,i,r){var s=r("861d");a.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(a,i,r){var s=r("d039");a.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(a,i,r){var s=r("c04e"),l=r("9bf2"),u=r("5c6c");a.exports=function(f,c,d){var p=s(c);p in f?l.f(f,p,u(0,d)):f[p]=d}}),"861d":(function(a,i){a.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),8875:(function(a,i,r){var s,l,u;(function(f,c){l=[],s=c,u=typeof s=="function"?s.apply(i,l):s,u!==void 0&&(a.exports=u)})(typeof self<"u"?self:this,function(){function f(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(K){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=d.exec(K.stack)||p.exec(K.stack),m=h&&h[1]||!1,v=h&&h[2]||!1,y=document.location.href.replace(document.location.hash,""),E,x,b,C=document.getElementsByTagName("script");m===y&&(E=document.documentElement.outerHTML,x=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=E.replace(x,"$1").trim());for(var P=0;P<C.length;P++)if(C[P].readyState==="interactive"||C[P].src===m||m===y&&C[P].innerHTML&&C[P].innerHTML.trim()===b)return C[P];return null}}return f})}),8925:(function(a,i,r){var s=r("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),a.exports=s.inspectSource}),"8aa5":(function(a,i,r){var s=r("6547").charAt;a.exports=function(l,u,f){return u+(f?s(l,u).length:1)}}),"8bbf":(function(a,i){a.exports=n}),"90e3":(function(a,i){var r=0,s=Math.random();a.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++r+s).toString(36)}}),9112:(function(a,i,r){var s=r("83ab"),l=r("9bf2"),u=r("5c6c");a.exports=s?function(f,c,d){return l.f(f,c,u(1,d))}:function(f,c,d){return f[c]=d,f}}),9263:(function(a,i,r){var s=r("ad6d"),l=r("9f7f"),u=RegExp.prototype.exec,f=String.prototype.replace,c=u,d=(function(){var v=/a/,y=/b*/g;return u.call(v,"a"),u.call(y,"a"),v.lastIndex!==0||y.lastIndex!==0})(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,m=d||h||p;m&&(c=function(y){var E=this,x,b,C,P,K=p&&E.sticky,$=s.call(E),S=E.source,L=0,k=y;return K&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),k=String(y).slice(E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&y[E.lastIndex-1]!==`
78
+ `)&&(S="(?: "+S+")",k=" "+k,L++),b=new RegExp("^(?:"+S+")",$)),h&&(b=new RegExp("^"+S+"$(?!\\s)",$)),d&&(x=E.lastIndex),C=u.call(K?b:E,k),K?C?(C.input=C.input.slice(L),C[0]=C[0].slice(L),C.index=E.lastIndex,E.lastIndex+=C[0].length):E.lastIndex=0:d&&C&&(E.lastIndex=E.global?C.index+C[0].length:x),h&&C&&C.length>1&&f.call(C[0],b,function(){for(P=1;P<arguments.length-2;P++)arguments[P]===void 0&&(C[P]=void 0)}),C}),a.exports=c}),"94ca":(function(a,i,r){var s=r("d039"),l=/#|\.prototype\./,u=function(h,m){var v=c[f(h)];return v==p?!0:v==d?!1:typeof m=="function"?s(m):!!m},f=u.normalize=function(h){return String(h).replace(l,".").toLowerCase()},c=u.data={},d=u.NATIVE="N",p=u.POLYFILL="P";a.exports=u}),"99af":(function(a,i,r){var s=r("23e7"),l=r("d039"),u=r("e8b5"),f=r("861d"),c=r("7b0b"),d=r("50c4"),p=r("8418"),h=r("65f0"),m=r("1dde"),v=r("b622"),y=r("2d00"),E=v("isConcatSpreadable"),x=9007199254740991,b="Maximum allowed index exceeded",C=y>=51||!l(function(){var S=[];return S[E]=!1,S.concat()[0]!==S}),P=m("concat"),K=function(S){if(!f(S))return!1;var L=S[E];return L!==void 0?!!L:u(S)},$=!C||!P;s({target:"Array",proto:!0,forced:$},{concat:function(L){var k=c(this),j=h(k,0),M=0,F,O,w,V,Q;for(F=-1,w=arguments.length;F<w;F++)if(Q=F===-1?k:arguments[F],K(Q)){if(V=d(Q.length),M+V>x)throw TypeError(b);for(O=0;O<V;O++,M++)O in Q&&p(j,M,Q[O])}else{if(M>=x)throw TypeError(b);p(j,M++,Q)}return j.length=M,j}})}),"9bdd":(function(a,i,r){var s=r("825a");a.exports=function(l,u,f,c){try{return c?u(s(f)[0],f[1]):u(f)}catch(p){var d=l.return;throw d!==void 0&&s(d.call(l)),p}}}),"9bf2":(function(a,i,r){var s=r("83ab"),l=r("0cfb"),u=r("825a"),f=r("c04e"),c=Object.defineProperty;i.f=s?c:function(p,h,m){if(u(p),h=f(h,!0),u(m),l)try{return c(p,h,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[h]=m.value),p}}),"9ed3":(function(a,i,r){var s=r("ae93").IteratorPrototype,l=r("7c73"),u=r("5c6c"),f=r("d44e"),c=r("3f8c"),d=function(){return this};a.exports=function(p,h,m){var v=h+" Iterator";return p.prototype=l(s,{next:u(1,m)}),f(p,v,!1,!0),c[v]=d,p}}),"9f7f":(function(a,i,r){var s=r("d039");function l(u,f){return RegExp(u,f)}i.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),i.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(a,i,r){var s=r("e8b5"),l=r("50c4"),u=r("0366"),f=function(c,d,p,h,m,v,y,E){for(var x=m,b=0,C=y?u(y,E,3):!1,P;b<h;){if(b in p){if(P=C?C(p[b],b,d):p[b],v>0&&s(P))x=f(c,d,P,l(P.length),x,v-1)-1;else{if(x>=9007199254740991)throw TypeError("Exceed the acceptable array length");c[x]=P}x++}b++}return x};a.exports=f}),a352:(function(a,i){a.exports=o}),a434:(function(a,i,r){var s=r("23e7"),l=r("23cb"),u=r("a691"),f=r("50c4"),c=r("7b0b"),d=r("65f0"),p=r("8418"),h=r("1dde"),m=r("ae40"),v=h("splice"),y=m("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,x=Math.min,b=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!v||!y},{splice:function(K,$){var S=c(this),L=f(S.length),k=l(K,L),j=arguments.length,M,F,O,w,V,Q;if(j===0?M=F=0:j===1?(M=0,F=L-k):(M=j-2,F=x(E(u($),0),L-k)),L+M-F>b)throw TypeError(C);for(O=d(S,F),w=0;w<F;w++)V=k+w,V in S&&p(O,w,S[V]);if(O.length=F,M<F){for(w=k;w<L-F;w++)V=w+F,Q=w+M,V in S?S[Q]=S[V]:delete S[Q];for(w=L;w>L-F+M;w--)delete S[w-1]}else if(M>F)for(w=L-F;w>k;w--)V=w+F-1,Q=w+M-1,V in S?S[Q]=S[V]:delete S[Q];for(w=0;w<M;w++)S[w+k]=arguments[w+2];return S.length=L-F+M,O}})}),a4d3:(function(a,i,r){var s=r("23e7"),l=r("da84"),u=r("d066"),f=r("c430"),c=r("83ab"),d=r("4930"),p=r("fdbf"),h=r("d039"),m=r("5135"),v=r("e8b5"),y=r("861d"),E=r("825a"),x=r("7b0b"),b=r("fc6a"),C=r("c04e"),P=r("5c6c"),K=r("7c73"),$=r("df75"),S=r("241c"),L=r("057f"),k=r("7418"),j=r("06cf"),M=r("9bf2"),F=r("d1e7"),O=r("9112"),w=r("6eeb"),V=r("5692"),Q=r("f772"),me=r("d012"),ie=r("90e3"),W=r("b622"),N=r("e538"),U=r("746f"),X=r("d44e"),se=r("69f3"),fe=r("b727").forEach,ve=Q("hidden"),Ne="Symbol",Oe="prototype",it=W("toPrimitive"),an=se.set,Xt=se.getterFor(Ne),We=Object[Oe],ze=l.Symbol,sn=u("JSON","stringify"),At=j.f,Pt=M.f,Pr=L.f,_o=F.f,It=V("symbols"),Gt=V("op-symbols"),xn=V("string-to-symbol-registry"),Kn=V("symbol-to-string-registry"),Xn=V("wks"),Gn=l.QObject,Hn=!Gn||!Gn[Oe]||!Gn[Oe].findChild,Wn=c&&h(function(){return K(Pt({},"a",{get:function(){return Pt(this,"a",{value:7}).a}})).a!=7})?function(re,J,ee){var ge=At(We,J);ge&&delete We[J],Pt(re,J,ee),ge&&re!==We&&Pt(We,J,ge)}:Pt,zn=function(re,J){var ee=It[re]=K(ze[Oe]);return an(ee,{type:Ne,tag:re,description:J}),c||(ee.description=J),ee},I=p?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof ze},T=function(J,ee,ge){J===We&&T(Gt,ee,ge),E(J);var Ee=C(ee,!0);return E(ge),m(It,Ee)?(ge.enumerable?(m(J,ve)&&J[ve][Ee]&&(J[ve][Ee]=!1),ge=K(ge,{enumerable:P(0,!1)})):(m(J,ve)||Pt(J,ve,P(1,{})),J[ve][Ee]=!0),Wn(J,Ee,ge)):Pt(J,Ee,ge)},R=function(J,ee){E(J);var ge=b(ee),Ee=$(ge).concat(be(ge));return fe(Ee,function(st){(!c||z.call(ge,st))&&T(J,st,ge[st])}),J},B=function(J,ee){return ee===void 0?K(J):R(K(J),ee)},z=function(J){var ee=C(J,!0),ge=_o.call(this,ee);return this===We&&m(It,ee)&&!m(Gt,ee)?!1:ge||!m(this,ee)||!m(It,ee)||m(this,ve)&&this[ve][ee]?ge:!0},ne=function(J,ee){var ge=b(J),Ee=C(ee,!0);if(!(ge===We&&m(It,Ee)&&!m(Gt,Ee))){var st=At(ge,Ee);return st&&m(It,Ee)&&!(m(ge,ve)&&ge[ve][Ee])&&(st.enumerable=!0),st}},ue=function(J){var ee=Pr(b(J)),ge=[];return fe(ee,function(Ee){!m(It,Ee)&&!m(me,Ee)&&ge.push(Ee)}),ge},be=function(J){var ee=J===We,ge=Pr(ee?Gt:b(J)),Ee=[];return fe(ge,function(st){m(It,st)&&(!ee||m(We,st))&&Ee.push(It[st])}),Ee};if(d||(ze=function(){if(this instanceof ze)throw TypeError("Symbol is not a constructor");var J=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ee=ie(J),ge=function(Ee){this===We&&ge.call(Gt,Ee),m(this,ve)&&m(this[ve],ee)&&(this[ve][ee]=!1),Wn(this,ee,P(1,Ee))};return c&&Hn&&Wn(We,ee,{configurable:!0,set:ge}),zn(ee,J)},w(ze[Oe],"toString",function(){return Xt(this).tag}),w(ze,"withoutSetter",function(re){return zn(ie(re),re)}),F.f=z,M.f=T,j.f=ne,S.f=L.f=ue,k.f=be,N.f=function(re){return zn(W(re),re)},c&&(Pt(ze[Oe],"description",{configurable:!0,get:function(){return Xt(this).description}}),f||w(We,"propertyIsEnumerable",z,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ze}),fe($(Xn),function(re){U(re)}),s({target:Ne,stat:!0,forced:!d},{for:function(re){var J=String(re);if(m(xn,J))return xn[J];var ee=ze(J);return xn[J]=ee,Kn[ee]=J,ee},keyFor:function(J){if(!I(J))throw TypeError(J+" is not a symbol");if(m(Kn,J))return Kn[J]},useSetter:function(){Hn=!0},useSimple:function(){Hn=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!c},{create:B,defineProperty:T,defineProperties:R,getOwnPropertyDescriptor:ne}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ue,getOwnPropertySymbols:be}),s({target:"Object",stat:!0,forced:h(function(){k.f(1)})},{getOwnPropertySymbols:function(J){return k.f(x(J))}}),sn){var Ue=!d||h(function(){var re=ze();return sn([re])!="[null]"||sn({a:re})!="{}"||sn(Object(re))!="{}"});s({target:"JSON",stat:!0,forced:Ue},{stringify:function(J,ee,ge){for(var Ee=[J],st=1,Ko;arguments.length>st;)Ee.push(arguments[st++]);if(Ko=ee,!(!y(ee)&&J===void 0||I(J)))return v(ee)||(ee=function(Bl,Dr){if(typeof Ko=="function"&&(Dr=Ko.call(this,Bl,Dr)),!I(Dr))return Dr}),Ee[1]=ee,sn.apply(null,Ee)}})}ze[Oe][it]||O(ze[Oe],it,ze[Oe].valueOf),X(ze,Ne),me[ve]=!0}),a630:(function(a,i,r){var s=r("23e7"),l=r("4df4"),u=r("1c7e"),f=!u(function(c){Array.from(c)});s({target:"Array",stat:!0,forced:f},{from:l})}),a640:(function(a,i,r){var s=r("d039");a.exports=function(l,u){var f=[][l];return!!f&&s(function(){f.call(null,u||function(){throw 1},1)})}}),a691:(function(a,i){var r=Math.ceil,s=Math.floor;a.exports=function(l){return isNaN(l=+l)?0:(l>0?s:r)(l)}}),ab13:(function(a,i,r){var s=r("b622"),l=s("match");a.exports=function(u){var f=/./;try{"/./"[u](f)}catch{try{return f[l]=!1,"/./"[u](f)}catch{}}return!1}}),ac1f:(function(a,i,r){var s=r("23e7"),l=r("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(a,i,r){var s=r("825a");a.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(a,i,r){var s=r("83ab"),l=r("d039"),u=r("5135"),f=Object.defineProperty,c={},d=function(p){throw p};a.exports=function(p,h){if(u(c,p))return c[p];h||(h={});var m=[][p],v=u(h,"ACCESSORS")?h.ACCESSORS:!1,y=u(h,0)?h[0]:d,E=u(h,1)?h[1]:void 0;return c[p]=!!m&&!l(function(){if(v&&!s)return!0;var x={length:-1};v?f(x,1,{enumerable:!0,get:d}):x[1]=1,m.call(x,y,E)})}}),ae93:(function(a,i,r){var s=r("e163"),l=r("9112"),u=r("5135"),f=r("b622"),c=r("c430"),d=f("iterator"),p=!1,h=function(){return this},m,v,y;[].keys&&(y=[].keys(),"next"in y?(v=s(s(y)),v!==Object.prototype&&(m=v)):p=!0),m==null&&(m={}),!c&&!u(m,d)&&l(m,d,h),a.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}}),b041:(function(a,i,r){var s=r("00ee"),l=r("f5df");a.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(a,i,r){var s=r("83ab"),l=r("9bf2").f,u=Function.prototype,f=u.toString,c=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return f.call(this).match(c)[1]}catch{return""}}})}),b622:(function(a,i,r){var s=r("da84"),l=r("5692"),u=r("5135"),f=r("90e3"),c=r("4930"),d=r("fdbf"),p=l("wks"),h=s.Symbol,m=d?h:h&&h.withoutSetter||f;a.exports=function(v){return u(p,v)||(c&&u(h,v)?p[v]=h[v]:p[v]=m("Symbol."+v)),p[v]}}),b64b:(function(a,i,r){var s=r("23e7"),l=r("7b0b"),u=r("df75"),f=r("d039"),c=f(function(){u(1)});s({target:"Object",stat:!0,forced:c},{keys:function(p){return u(l(p))}})}),b727:(function(a,i,r){var s=r("0366"),l=r("44ad"),u=r("7b0b"),f=r("50c4"),c=r("65f0"),d=[].push,p=function(h){var m=h==1,v=h==2,y=h==3,E=h==4,x=h==6,b=h==5||x;return function(C,P,K,$){for(var S=u(C),L=l(S),k=s(P,K,3),j=f(L.length),M=0,F=$||c,O=m?F(C,j):v?F(C,0):void 0,w,V;j>M;M++)if((b||M in L)&&(w=L[M],V=k(w,M,S),h)){if(m)O[M]=V;else if(V)switch(h){case 3:return!0;case 5:return w;case 6:return M;case 2:d.call(O,w)}else if(E)return!1}return x?-1:y||E?E:O}};a.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}}),c04e:(function(a,i,r){var s=r("861d");a.exports=function(l,u){if(!s(l))return l;var f,c;if(u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l))||typeof(f=l.valueOf)=="function"&&!s(c=f.call(l))||!u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l)))return c;throw TypeError("Can't convert object to primitive value")}}),c430:(function(a,i){a.exports=!1}),c6b6:(function(a,i){var r={}.toString;a.exports=function(s){return r.call(s).slice(8,-1)}}),c6cd:(function(a,i,r){var s=r("da84"),l=r("ce4e"),u="__core-js_shared__",f=s[u]||l(u,{});a.exports=f}),c740:(function(a,i,r){var s=r("23e7"),l=r("b727").findIndex,u=r("44d2"),f=r("ae40"),c="findIndex",d=!0,p=f(c);c in[]&&Array(1)[c](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(c)}),c8ba:(function(a,i){var r;r=(function(){return this})();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}a.exports=r}),c975:(function(a,i,r){var s=r("23e7"),l=r("4d64").indexOf,u=r("a640"),f=r("ae40"),c=[].indexOf,d=!!c&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),h=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!p||!h},{indexOf:function(v){return d?c.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(a,i,r){var s=r("5135"),l=r("fc6a"),u=r("4d64").indexOf,f=r("d012");a.exports=function(c,d){var p=l(c),h=0,m=[],v;for(v in p)!s(f,v)&&s(p,v)&&m.push(v);for(;d.length>h;)s(p,v=d[h++])&&(~u(m,v)||m.push(v));return m}}),caad:(function(a,i,r){var s=r("23e7"),l=r("4d64").includes,u=r("44d2"),f=r("ae40"),c=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!c},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(a,i,r){var s=r("da84"),l=r("861d"),u=s.document,f=l(u)&&l(u.createElement);a.exports=function(c){return f?u.createElement(c):{}}}),ce4e:(function(a,i,r){var s=r("da84"),l=r("9112");a.exports=function(u,f){try{l(s,u,f)}catch{s[u]=f}return f}}),d012:(function(a,i){a.exports={}}),d039:(function(a,i){a.exports=function(r){try{return!!r()}catch{return!0}}}),d066:(function(a,i,r){var s=r("428f"),l=r("da84"),u=function(f){return typeof f=="function"?f:void 0};a.exports=function(f,c){return arguments.length<2?u(s[f])||u(l[f]):s[f]&&s[f][c]||l[f]&&l[f][c]}}),d1e7:(function(a,i,r){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);i.f=u?function(c){var d=l(this,c);return!!d&&d.enumerable}:s}),d28b:(function(a,i,r){var s=r("746f");s("iterator")}),d2bb:(function(a,i,r){var s=r("825a"),l=r("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,f={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(f,[]),u=f instanceof Array}catch{}return function(p,h){return s(p),l(h),u?c.call(p,h):p.__proto__=h,p}})():void 0)}),d3b7:(function(a,i,r){var s=r("00ee"),l=r("6eeb"),u=r("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(a,i,r){var s=r("9bf2").f,l=r("5135"),u=r("b622"),f=u("toStringTag");a.exports=function(c,d,p){c&&!l(c=p?c:c.prototype,f)&&s(c,f,{configurable:!0,value:d})}}),d58f:(function(a,i,r){var s=r("1c0b"),l=r("7b0b"),u=r("44ad"),f=r("50c4"),c=function(d){return function(p,h,m,v){s(h);var y=l(p),E=u(y),x=f(y.length),b=d?x-1:0,C=d?-1:1;if(m<2)for(;;){if(b in E){v=E[b],b+=C;break}if(b+=C,d?b<0:x<=b)throw TypeError("Reduce of empty array with no initial value")}for(;d?b>=0:x>b;b+=C)b in E&&(v=h(v,E[b],b,y));return v}};a.exports={left:c(!1),right:c(!0)}}),d784:(function(a,i,r){r("ac1f");var s=r("6eeb"),l=r("d039"),u=r("b622"),f=r("9263"),c=r("9112"),d=u("species"),p=!l(function(){var E=/./;return E.exec=function(){var x=[];return x.groups={a:"7"},x},"".replace(E,"$<a>")!=="7"}),h=(function(){return"a".replace(/./,"$0")==="$0"})(),m=u("replace"),v=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),y=!l(function(){var E=/(?:)/,x=E.exec;E.exec=function(){return x.apply(this,arguments)};var b="ab".split(E);return b.length!==2||b[0]!=="a"||b[1]!=="b"});a.exports=function(E,x,b,C){var P=u(E),K=!l(function(){var M={};return M[P]=function(){return 7},""[E](M)!=7}),$=K&&!l(function(){var M=!1,F=/a/;return E==="split"&&(F={},F.constructor={},F.constructor[d]=function(){return F},F.flags="",F[P]=/./[P]),F.exec=function(){return M=!0,null},F[P](""),!M});if(!K||!$||E==="replace"&&!(p&&h&&!v)||E==="split"&&!y){var S=/./[P],L=b(P,""[E],function(M,F,O,w,V){return F.exec===f?K&&!V?{done:!0,value:S.call(F,O,w)}:{done:!0,value:M.call(O,F,w)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),k=L[0],j=L[1];s(String.prototype,E,k),s(RegExp.prototype,P,x==2?function(M,F){return j.call(M,this,F)}:function(M){return j.call(M,this)})}C&&c(RegExp.prototype[P],"sham",!0)}}),d81d:(function(a,i,r){var s=r("23e7"),l=r("b727").map,u=r("1dde"),f=r("ae40"),c=u("map"),d=f("map");s({target:"Array",proto:!0,forced:!c||!d},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(a,i,r){(function(s){var l=function(u){return u&&u.Math==Math&&u};a.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,r("c8ba"))}),dbb4:(function(a,i,r){var s=r("23e7"),l=r("83ab"),u=r("56ef"),f=r("fc6a"),c=r("06cf"),d=r("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(h){for(var m=f(h),v=c.f,y=u(m),E={},x=0,b,C;y.length>x;)C=v(m,b=y[x++]),C!==void 0&&d(E,b,C);return E}})}),dbf1:(function(a,i,r){(function(s){r.d(i,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,r("c8ba"))}),ddb0:(function(a,i,r){var s=r("da84"),l=r("fdbc"),u=r("e260"),f=r("9112"),c=r("b622"),d=c("iterator"),p=c("toStringTag"),h=u.values;for(var m in l){var v=s[m],y=v&&v.prototype;if(y){if(y[d]!==h)try{f(y,d,h)}catch{y[d]=h}if(y[p]||f(y,p,m),l[m]){for(var E in u)if(y[E]!==u[E])try{f(y,E,u[E])}catch{y[E]=u[E]}}}}}),df75:(function(a,i,r){var s=r("ca84"),l=r("7839");a.exports=Object.keys||function(f){return s(f,l)}}),e01a:(function(a,i,r){var s=r("23e7"),l=r("83ab"),u=r("da84"),f=r("5135"),c=r("861d"),d=r("9bf2").f,p=r("e893"),h=u.Symbol;if(l&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var m={},v=function(){var P=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),K=this instanceof v?new h(P):P===void 0?h():h(P);return P===""&&(m[K]=!0),K};p(v,h);var y=v.prototype=h.prototype;y.constructor=v;var E=y.toString,x=String(h("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var P=c(this)?this.valueOf():this,K=E.call(P);if(f(m,P))return"";var $=x?K.slice(7,-1):K.replace(b,"$1");return $===""?void 0:$}}),s({global:!0,forced:!0},{Symbol:v})}}),e163:(function(a,i,r){var s=r("5135"),l=r("7b0b"),u=r("f772"),f=r("e177"),c=u("IE_PROTO"),d=Object.prototype;a.exports=f?Object.getPrototypeOf:function(p){return p=l(p),s(p,c)?p[c]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?d:null}}),e177:(function(a,i,r){var s=r("d039");a.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(a,i,r){var s=r("fc6a"),l=r("44d2"),u=r("3f8c"),f=r("69f3"),c=r("7dd0"),d="Array Iterator",p=f.set,h=f.getterFor(d);a.exports=c(Array,"Array",function(m,v){p(this,{type:d,target:s(m),index:0,kind:v})},function(){var m=h(this),v=m.target,y=m.kind,E=m.index++;return!v||E>=v.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:v[E],done:!1}:{value:[E,v[E]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(a,i,r){var s=r("23e7"),l=r("d039"),u=r("fc6a"),f=r("06cf").f,c=r("83ab"),d=l(function(){f(1)}),p=!c||d;s({target:"Object",stat:!0,forced:p,sham:!c},{getOwnPropertyDescriptor:function(m,v){return f(u(m),v)}})}),e538:(function(a,i,r){var s=r("b622");i.f=s}),e893:(function(a,i,r){var s=r("5135"),l=r("56ef"),u=r("06cf"),f=r("9bf2");a.exports=function(c,d){for(var p=l(d),h=f.f,m=u.f,v=0;v<p.length;v++){var y=p[v];s(c,y)||h(c,y,m(d,y))}}}),e8b5:(function(a,i,r){var s=r("c6b6");a.exports=Array.isArray||function(u){return s(u)=="Array"}}),e95a:(function(a,i,r){var s=r("b622"),l=r("3f8c"),u=s("iterator"),f=Array.prototype;a.exports=function(c){return c!==void 0&&(l.Array===c||f[u]===c)}}),f5df:(function(a,i,r){var s=r("00ee"),l=r("c6b6"),u=r("b622"),f=u("toStringTag"),c=l((function(){return arguments})())=="Arguments",d=function(p,h){try{return p[h]}catch{}};a.exports=s?l:function(p){var h,m,v;return p===void 0?"Undefined":p===null?"Null":typeof(m=d(h=Object(p),f))=="string"?m:c?l(h):(v=l(h))=="Object"&&typeof h.callee=="function"?"Arguments":v}}),f772:(function(a,i,r){var s=r("5692"),l=r("90e3"),u=s("keys");a.exports=function(f){return u[f]||(u[f]=l(f))}}),fb15:(function(a,i,r){if(r.r(i),typeof window<"u"){var s=window.document.currentScript;{var l=r("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(r.p=u[1])}r("99af"),r("4de4"),r("4160"),r("c975"),r("d81d"),r("a434"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b");function f(I,T,R){return T in I?Object.defineProperty(I,T,{value:R,enumerable:!0,configurable:!0,writable:!0}):I[T]=R,I}function c(I,T){var R=Object.keys(I);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(I);T&&(B=B.filter(function(z){return Object.getOwnPropertyDescriptor(I,z).enumerable})),R.push.apply(R,B)}return R}function d(I){for(var T=1;T<arguments.length;T++){var R=arguments[T]!=null?arguments[T]:{};T%2?c(Object(R),!0).forEach(function(B){f(I,B,R[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):c(Object(R)).forEach(function(B){Object.defineProperty(I,B,Object.getOwnPropertyDescriptor(R,B))})}return I}function p(I){if(Array.isArray(I))return I}r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function h(I,T){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(I)))){var R=[],B=!0,z=!1,ne=void 0;try{for(var ue=I[Symbol.iterator](),be;!(B=(be=ue.next()).done)&&(R.push(be.value),!(T&&R.length===T));B=!0);}catch(Ue){z=!0,ne=Ue}finally{try{!B&&ue.return!=null&&ue.return()}finally{if(z)throw ne}}return R}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function m(I,T){(T==null||T>I.length)&&(T=I.length);for(var R=0,B=new Array(T);R<T;R++)B[R]=I[R];return B}function v(I,T){if(I){if(typeof I=="string")return m(I,T);var R=Object.prototype.toString.call(I).slice(8,-1);if(R==="Object"&&I.constructor&&(R=I.constructor.name),R==="Map"||R==="Set")return Array.from(I);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return m(I,T)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(I,T){return p(I)||h(I,T)||v(I,T)||y()}function x(I){if(Array.isArray(I))return m(I)}function b(I){if(typeof Symbol<"u"&&Symbol.iterator in Object(I))return Array.from(I)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
80
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(I){return x(I)||b(I)||v(I)||C()}var K=r("a352"),$=r.n(K);function S(I){I.parentElement!==null&&I.parentElement.removeChild(I)}function L(I,T,R){var B=R===0?I.children[0]:I.children[R-1].nextSibling;I.insertBefore(T,B)}var k=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function j(I){var T=Object.create(null);return function(B){var z=T[B];return z||(T[B]=I(B))}}var M=/-(\w)/g,F=j(function(I){return I.replace(M,function(T,R){return R.toUpperCase()})});r("5db7"),r("73d9");var O=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],V=["Move"],Q=[V,O,w].flatMap(function(I){return I}).map(function(I){return"on".concat(I)}),me={manage:V,manageAndEmit:O,emit:w};function ie(I){return Q.indexOf(I)!==-1}r("caad"),r("2ca0");var W=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function N(I){return W.includes(I)}function U(I){return["transition-group","TransitionGroup"].includes(I)}function X(I){return["id","class","role","style"].includes(I)||I.startsWith("data-")||I.startsWith("aria-")||I.startsWith("on")}function se(I){return I.reduce(function(T,R){var B=E(R,2),z=B[0],ne=B[1];return T[z]=ne,T},{})}function fe(I){var T=I.$attrs,R=I.componentData,B=R===void 0?{}:R,z=se(Object.entries(T).filter(function(ne){var ue=E(ne,2),be=ue[0];return ue[1],X(be)}));return d(d({},z),B)}function ve(I){var T=I.$attrs,R=I.callBackBuilder,B=se(Ne(T));Object.entries(R).forEach(function(ne){var ue=E(ne,2),be=ue[0],Ue=ue[1];me[be].forEach(function(re){B["on".concat(re)]=Ue(re)})});var z="[data-draggable]".concat(B.draggable||"");return d(d({},B),{},{draggable:z})}function Ne(I){return Object.entries(I).filter(function(T){var R=E(T,2),B=R[0];return R[1],!X(B)}).map(function(T){var R=E(T,2),B=R[0],z=R[1];return[F(B),z]}).filter(function(T){var R=E(T,2),B=R[0];return R[1],!ie(B)})}r("c740");function Oe(I,T){if(!(I instanceof T))throw new TypeError("Cannot call a class as a function")}function it(I,T){for(var R=0;R<T.length;R++){var B=T[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(I,B.key,B)}}function an(I,T,R){return T&&it(I.prototype,T),I}var Xt=function(T){var R=T.el;return R},We=function(T,R){return T.__draggable_context=R},ze=function(T){return T.__draggable_context},sn=(function(){function I(T){var R=T.nodes,B=R.header,z=R.default,ne=R.footer,ue=T.root,be=T.realList;Oe(this,I),this.defaultNodes=z,this.children=[].concat(P(B),P(z),P(ne)),this.externalComponent=ue.externalComponent,this.rootTransition=ue.transition,this.tag=ue.tag,this.realList=be}return an(I,[{key:"render",value:function(R,B){var z=this.tag,ne=this.children,ue=this._isRootComponent,be=ue?{default:function(){return ne}}:ne;return R(z,B,be)}},{key:"updated",value:function(){var R=this.defaultNodes,B=this.realList;R.forEach(function(z,ne){We(Xt(z),{element:B[ne],index:ne})})}},{key:"getUnderlyingVm",value:function(R){return ze(R)}},{key:"getVmIndexFromDomIndex",value:function(R,B){var z=this.defaultNodes,ne=z.length,ue=B.children,be=ue.item(R);if(be===null)return ne;var Ue=ze(be);if(Ue)return Ue.index;if(ne===0)return 0;var re=Xt(z[0]),J=P(ue).findIndex(function(ee){return ee===re});return R<J?0:ne}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),I})(),At=r("8bbf");function Pt(I,T){var R=I[T];return R?R():[]}function Pr(I){var T=I.$slots,R=I.realList,B=I.getKey,z=R||[],ne=["header","footer"].map(function(ee){return Pt(T,ee)}),ue=E(ne,2),be=ue[0],Ue=ue[1],re=T.item;if(!re)throw new Error("draggable element must have an item slot");var J=z.flatMap(function(ee,ge){return re({element:ee,index:ge}).map(function(Ee){return Ee.key=B(ee),Ee.props=d(d({},Ee.props||{}),{},{"data-draggable":!0}),Ee})});if(J.length!==z.length)throw new Error("Item slot must have only one child");return{header:be,footer:Ue,default:J}}function _o(I){var T=U(I),R=!N(I)&&!T;return{transition:T,externalComponent:R,tag:R?Object(At.resolveComponent)(I):T?At.TransitionGroup:I}}function It(I){var T=I.$slots,R=I.tag,B=I.realList,z=I.getKey,ne=Pr({$slots:T,realList:B,getKey:z}),ue=_o(R);return new sn({nodes:ne,root:ue,realList:B})}function Gt(I,T){var R=this;Object(At.nextTick)(function(){return R.$emit(I.toLowerCase(),T)})}function xn(I){var T=this;return function(R,B){if(T.realList!==null)return T["onDrag".concat(I)](R,B)}}function Kn(I){var T=this,R=xn.call(this,I);return function(B,z){R.call(T,B,z),Gt.call(T,I,B)}}var Xn=null,Gn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(T){return T}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Hn=["update:modelValue","change"].concat(P([].concat(P(me.manageAndEmit),P(me.emit)).map(function(I){return I.toLowerCase()}))),Wn=Object(At.defineComponent)({name:"draggable",inheritAttrs:!1,props:Gn,emits:Hn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var T=this.$slots,R=this.$attrs,B=this.tag,z=this.componentData,ne=this.realList,ue=this.getKey,be=It({$slots:T,tag:B,realList:ne,getKey:ue});this.componentStructure=be;var Ue=fe({$attrs:R,componentData:z});return be.render(At.h,Ue)}catch(re){return this.error=!0,Object(At.h)("pre",{style:{color:"red"}},re.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&k.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var T=this;if(!this.error){var R=this.$attrs,B=this.$el,z=this.componentStructure;z.updated();var ne=ve({$attrs:R,callBackBuilder:{manageAndEmit:function(Ue){return Kn.call(T,Ue)},emit:function(Ue){return Gt.bind(T,Ue)},manage:function(Ue){return xn.call(T,Ue)}}}),ue=B.nodeType===1?B:B.parentElement;this._sortable=new $.a(ue,ne),this.targetDomElement=ue,ue.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var T=this.list;return T||this.modelValue},getKey:function(){var T=this.itemKey;return typeof T=="function"?T:function(R){return R[T]}}},watch:{$attrs:{handler:function(T){var R=this._sortable;R&&Ne(T).forEach(function(B){var z=E(B,2),ne=z[0],ue=z[1];R.option(ne,ue)})},deep:!0}},methods:{getUnderlyingVm:function(T){return this.componentStructure.getUnderlyingVm(T)||null},getUnderlyingPotencialDraggableComponent:function(T){return T.__draggable_component__},emitChanges:function(T){var R=this;Object(At.nextTick)(function(){return R.$emit("change",T)})},alterList:function(T){if(this.list){T(this.list);return}var R=P(this.modelValue);T(R),this.$emit("update:modelValue",R)},spliceList:function(){var T=arguments,R=function(z){return z.splice.apply(z,P(T))};this.alterList(R)},updatePosition:function(T,R){var B=function(ne){return ne.splice(R,0,ne.splice(T,1)[0])};this.alterList(B)},getRelatedContextFromMoveEvent:function(T){var R=T.to,B=T.related,z=this.getUnderlyingPotencialDraggableComponent(R);if(!z)return{component:z};var ne=z.realList,ue={list:ne,component:z};if(R!==B&&ne){var be=z.getUnderlyingVm(B)||{};return d(d({},be),ue)}return ue},getVmIndexFromDomIndex:function(T){return this.componentStructure.getVmIndexFromDomIndex(T,this.targetDomElement)},onDragStart:function(T){this.context=this.getUnderlyingVm(T.item),T.item._underlying_vm_=this.clone(this.context.element),Xn=T.item},onDragAdd:function(T){var R=T.item._underlying_vm_;if(R!==void 0){S(T.item);var B=this.getVmIndexFromDomIndex(T.newIndex);this.spliceList(B,0,R);var z={element:R,newIndex:B};this.emitChanges({added:z})}},onDragRemove:function(T){if(L(this.$el,T.item,T.oldIndex),T.pullMode==="clone"){S(T.clone);return}var R=this.context,B=R.index,z=R.element;this.spliceList(B,1);var ne={element:z,oldIndex:B};this.emitChanges({removed:ne})},onDragUpdate:function(T){S(T.item),L(T.from,T.item,T.oldIndex);var R=this.context.index,B=this.getVmIndexFromDomIndex(T.newIndex);this.updatePosition(R,B);var z={element:this.context.element,oldIndex:R,newIndex:B};this.emitChanges({moved:z})},computeFutureIndex:function(T,R){if(!T.element)return 0;var B=P(R.to.children).filter(function(be){return be.style.display!=="none"}),z=B.indexOf(R.related),ne=T.component.getVmIndexFromDomIndex(z),ue=B.indexOf(Xn)!==-1;return ue||!R.willInsertAfter?ne:ne+1},onDragMove:function(T,R){var B=this.move,z=this.realList;if(!B||!z)return!0;var ne=this.getRelatedContextFromMoveEvent(T),ue=this.computeFutureIndex(ne,T),be=d(d({},this.context),{},{futureIndex:ue}),Ue=d(d({},T),{},{relatedContext:ne,draggedContext:be});return B(Ue,R)},onDragEnd:function(){Xn=null}}}),zn=Wn;i.default=zn}),fb6a:(function(a,i,r){var s=r("23e7"),l=r("861d"),u=r("e8b5"),f=r("23cb"),c=r("50c4"),d=r("fc6a"),p=r("8418"),h=r("b622"),m=r("1dde"),v=r("ae40"),y=m("slice"),E=v("slice",{ACCESSORS:!0,0:0,1:2}),x=h("species"),b=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!y||!E},{slice:function(K,$){var S=d(this),L=c(S.length),k=f(K,L),j=f($===void 0?L:$,L),M,F,O;if(u(S)&&(M=S.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:l(M)&&(M=M[x],M===null&&(M=void 0)),M===Array||M===void 0))return b.call(S,k,j);for(F=new(M===void 0?Array:M)(C(j-k,0)),O=0;k<j;k++,O++)k in S&&p(F,O,S[k]);return F.length=O,F}})}),fc6a:(function(a,i,r){var s=r("44ad"),l=r("1d80");a.exports=function(u){return s(l(u))}}),fdbc:(function(a,i){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(a,i,r){var s=r("4930");a.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Gr)),Gr.exports}var Nh=Ch();const Ah=Gf(Nh),Ph={class:"flex flex-col h-full w-64"},Dh={class:"flex items-center h-14 flex-shrink-0"},Rh={key:"expanded",class:"flex items-center gap-2.5 flex-1 min-w-0 px-3"},wh={class:"w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-primary/60 flex items-center justify-center flex-shrink-0"},Mh={key:"collapsed",class:"flex items-center justify-center w-16"},Lh={key:"mobile-nav-expanded",class:"px-3 pt-1 pb-2 flex-shrink-0"},$h={class:"space-y-0.5"},Fh={key:0,class:"relative inline-flex h-2 w-2 ml-auto"},kh={key:"mobile-nav-hidden",class:"h-0 flex-shrink-0 overflow-hidden","aria-hidden":"true"},Bh={key:"expanded",class:"p-3 flex-shrink-0"},Vh={key:"collapsed",class:"flex justify-center py-3 flex-shrink-0 w-16"},Uh={class:"flex-1 min-h-0"},jh={class:"px-3 py-3"},_h={class:"flex flex-col items-center gap-2 py-3 w-16"},Kh=["onClick"],Xh={key:2},Gh={class:"space-y-1.5"},Hh={class:"flex items-center gap-1.5"},Wh={class:"text-sm font-medium truncate"},zh={class:"text-xs text-muted-foreground tabular-nums ml-auto"},Yh={class:"h-1.5 w-full rounded-full bg-muted overflow-hidden"},Jh={class:"text-[11px] text-muted-foreground"},qh={class:"flex-shrink-0 pb-3 pt-2"},Qh={key:"expanded",class:"flex items-center justify-between rounded-lg bg-muted/40 mx-3 px-3 py-2"},Zh={class:"text-xs text-muted-foreground"},em={class:"flex items-center gap-1"},tm={key:"collapsed",class:"flex flex-col items-center gap-1 w-16"},nm={class:"space-y-4"},rm={class:"space-y-2"},om=ye({__name:"AppSidebar",props:{isExpanded:{type:Boolean},isMobile:{type:Boolean},isMobileOpen:{type:Boolean}},setup(e){const t=e,n=ds(),o=Ca(),a=Ou(),i=is("sidebarState",null),r={"/dashboard":zu,"/card-bind":Vu,"/renewal":Ku,"/quota-pack":_u,"/announcements":hs,"/settings":Zu},s=Z(t.isExpanded||t.isMobile&&t.isMobileOpen);let l=null;Rt(()=>t.isExpanded||t.isMobile&&t.isMobileOpen,W=>{l&&(clearTimeout(l),l=null),W?l=setTimeout(()=>{s.value=!0},50):s.value=!1}),Ea(()=>{l&&clearTimeout(l)});const u=Z(!1),f=Z(!0),c=Z(!1),d=Z(!1),p=Z(null),h=Z(""),m=Z(!1),v=Z(null),y=Z(""),E=Z(!1),x=Te(()=>o.apiKeyList),b=Te(()=>o.activeKeyId),C=Te(()=>o.keyCount),P=Te({get:()=>[...o.apiKeyList],set:W=>{const N=W.map(U=>U.id);o.reorderKeys(N)}});function K(W){W!==b.value&&o.switchKey(W)}function $(W){const N=x.value.find(U=>U.id===W);N&&(p.value=W,h.value=N.name,d.value=!0)}function S(){p.value&&o.updateKeyMeta(p.value,h.value.trim()),d.value=!1,Et.success("保存成功")}function L(W){const N=x.value.find(U=>U.id===W);N&&(v.value=W,y.value=N.name,m.value=!0)}function k(){v.value&&(o.removeKey(v.value),o.hasKeys||n.push({name:"welcome"})),m.value=!1,Et.success("已删除")}function j(W){const N=x.value.find(U=>U.id===W);N&&navigator.clipboard.writeText(N.key).then(()=>Et.success("已复制到剪贴板")).catch(()=>Et.error("复制失败"))}function M(){n.currentRoute.value.name!=="dashboard"&&n.push({name:"dashboard"})}function F(){E.value=!0}function O(){o.logoutAll(),E.value=!1,Et.info("已登出所有 Key"),n.push({name:"welcome"})}function w(W){const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return 0;const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}return 0}function V(W){var X;if(o.isKeyInvalid(W))return W===b.value?"bg-red-100 text-red-600 hover:bg-red-200/70 dark:bg-red-500/15 dark:text-red-400 dark:hover:bg-red-500/25":"bg-red-50 text-red-600 hover:bg-red-100/80 dark:bg-red-500/10 dark:text-red-400 dark:hover:bg-red-500/20";const N=((X=o.getKeyInfo(W))==null?void 0:X.service_type)||"",U=Oa(N);return W===b.value?U.activeBtn:U.inactiveBtn}function Q(W){if(o.isKeyInvalid(W))return"Key 已失效";const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return"";const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0;return`剩余 ${fe+Ne} / ${se+ve} 次`}return""}function me(W){const N=w(W);return N>80?"bg-destructive":N>50?"bg-[hsl(var(--warning))]":"bg-primary"}function ie(W){return xa(o.getKeyStatus(W))}return br(()=>{o.fetchAllKeyInfo()}),(W,N)=>(_(),Se(en,null,[H("div",Ph,[H("div",Dh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Rh,[H("div",wh,[D(g(ju),{class:"w-4 h-4 text-white"})]),N[18]||(N[18]=H("div",{class:"flex flex-col min-w-0"},[H("span",{class:"font-semibold text-sm leading-tight"},"云驿"),H("span",{class:"text-[10px] text-muted-foreground leading-tight"},"API Monitor")],-1)),N[19]||(N[19]=H("div",{class:"flex-1"},null,-1)),e.isMobile?vt("",!0):(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-8 w-8 flex-shrink-0",onClick:N[0]||(N[0]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"折叠侧边栏"},{default:A(()=>[D(g(Ju),{class:"h-4 w-4"})]),_:1}))])):(_(),Se("div",Mh,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",onClick:N[1]||(N[1]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"展开侧边栏"},{default:A(()=>[D(g(qu),{class:"h-4 w-4"})]),_:1})]))]),_:1})]),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[e.isMobile&&s.value?(_(),Se("div",Lh,[D(g(yf),{open:f.value,class:"group/collapsible","onUpdate:open":N[2]||(N[2]=U=>f.value=U)},{default:A(()=>[D(g(Sf),{class:"flex items-center justify-between w-full px-3 py-2 text-xs font-medium text-muted-foreground uppercase tracking-wider hover:text-foreground transition-colors rounded-md"},{default:A(()=>[N[20]||(N[20]=H("span",null,"导航",-1)),D(g(ms),{class:"h-3.5 w-3.5 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]),_:1}),D(g(Ef),null,{default:A(()=>{var U;return[H("nav",$h,[(_(!0),Se(en,null,ro(((U=g(i))==null?void 0:U.menuItems)??[],X=>{var se;return _(),q(g(ps),{key:X.path,to:X.path,class:et(["flex min-h-10 items-center gap-3 px-3 py-2 text-[13px] font-medium rounded-lg transition-colors",(se=g(i))!=null&&se.isActive(X.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>{var fe;return[(_(),q(tu(r[X.path]),{class:"h-4 w-4 flex-shrink-0"})),H("span",null,Ae(X.title),1),X.path==="/announcements"&&((fe=g(i))!=null&&fe.shouldShowAnnouncementDot.value)?(_(),Se("span",Fh,[...N[21]||(N[21]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)]}),_:2},1032,["to","class"])}),128))])]}),_:1})]),_:1},8,["open"]),N[22]||(N[22]=H("div",{class:"mt-2 border-b border-border/40"},null,-1))])):(_(),Se("div",kh))]),_:1}),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Bh,[D(g(ke),{class:"w-full gap-2",onClick:N[3]||(N[3]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"}),N[23]||(N[23]=ce(" 添加 API Key ",-1))]),_:1})])):(_(),Se("div",Vh,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{size:"icon",class:"h-10 w-10 rounded-full",onClick:N[4]||(N[4]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[24]||(N[24]=[ce("添加 API Key",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1}),H("div",Uh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),q(g(vi),{key:"expanded",class:"h-full"},{default:A(()=>[H("div",jh,[D(g(Ah),{modelValue:P.value,"onUpdate:modelValue":N[5]||(N[5]=U=>P.value=U),"item-key":"id","ghost-class":"drag-ghost","chosen-class":"drag-chosen","drag-class":"drag-active",animation:200,delay:150,"delay-on-touch-only":!1,"touch-start-threshold":5,"force-fallback":!0,"fallback-on-body":!0,"fallback-tolerance":3,filter:".no-drag","prevent-on-filter":!1,class:"space-y-2",onStart:N[6]||(N[6]=U=>u.value=!0),onEnd:N[7]||(N[7]=U=>u.value=!1)},{item:A(({element:U})=>[D(Vf,{"stored-key":U,"key-info":g(o).getKeyInfo(U.id),"is-invalid":g(o).isKeyInvalid(U.id),"is-active":U.id===b.value,"is-dragging":u.value,onClick:X=>K(U.id),onEdit:X=>$(U.id),onDelete:X=>L(U.id),onCopy:X=>j(U.id)},null,8,["stored-key","key-info","is-invalid","is-active","is-dragging","onClick","onEdit","onDelete","onCopy"])]),_:1},8,["modelValue"])])]),_:1})):(_(),q(g(vi),{key:"collapsed",class:"h-full"},{default:A(()=>[H("div",_h,[D(g(wr),null,{default:A(()=>[(_(!0),Se(en,null,ro(x.value,U=>(_(),q(g(Mr),{key:U.id},{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>{var X,se;return[H("button",{class:et(["w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold transition-all",V(U.id)]),onClick:fe=>K(U.id)},[((X=g(o).getKeyInfo(U.id))==null?void 0:X.service_type)==="claude"?(_(),q(g(vs),{key:0,class:"w-4 h-4"})):((se=g(o).getKeyInfo(U.id))==null?void 0:se.service_type)==="codex"?(_(),q(g(gs),{key:1,class:"w-4 h-4"})):(_(),Se("span",Xh,Ae(U.name.charAt(0).toUpperCase()),1))],10,Kh)]}),_:2},1024),D(g($r),{side:"right","side-offset":8,class:"w-48 rounded-lg border bg-popover p-3 text-popover-foreground shadow-md"},{default:A(()=>[H("div",Gh,[H("div",Hh,[H("span",{class:et(["w-1.5 h-1.5 rounded-full flex-shrink-0",ie(U.id)])},null,2),H("span",Wh,Ae(U.name),1),H("span",zh,Ae(w(U.id))+"%",1)]),H("div",Yh,[H("div",{class:et(["h-full rounded-full transition-all",me(U.id)]),style:nu({width:w(U.id)+"%"})},null,6)]),H("div",Jh,Ae(Q(U.id)),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})])]),_:1}))]),_:1})]),H("div",qh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Qh,[H("span",Zh,Ae(C.value)+" 张卡片",1),H("div",em,[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[8]||(N[8]=U=>g(a).toggleTheme()),title:"切换主题"},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1}),D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F,title:"登出所有"},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})])])):(_(),Se("div",tm,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[9]||(N[9]=U=>g(a).toggleTheme())},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[25]||(N[25]=[ce("切换主题",-1)])]),_:1})]),_:1})]),_:1}),D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[26]||(N[26]=[ce("登出所有",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1})])]),D(Xf,{open:c.value,"onUpdate:open":N[10]||(N[10]=U=>c.value=U),onAdded:M},null,8,["open"]),D(g(lr),{open:d.value,"onUpdate:open":N[13]||(N[13]=U=>d.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-md"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[27]||(N[27]=[ce("编辑 API Key",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[28]||(N[28]=[ce("修改名称",-1)])]),_:1})]),_:1}),H("div",nm,[H("div",rm,[D(g(la),{for:"edit-name"},{default:A(()=>[...N[29]||(N[29]=[ce("名称",-1)])]),_:1}),D(g(sa),{id:"edit-name",modelValue:h.value,"onUpdate:modelValue":N[11]||(N[11]=U=>h.value=U),placeholder:"自定义名称"},null,8,["modelValue"])])]),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[12]||(N[12]=U=>d.value=!1)},{default:A(()=>[...N[30]||(N[30]=[ce("取消",-1)])]),_:1}),D(g(ke),{onClick:S},{default:A(()=>[...N[31]||(N[31]=[ce("保存",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:m.value,"onUpdate:open":N[15]||(N[15]=U=>m.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[32]||(N[32]=[ce("确认删除",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[ce(" 确定要删除「"+Ae(y.value)+"」吗?此操作不可撤销。 ",1)]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[14]||(N[14]=U=>m.value=!1)},{default:A(()=>[...N[33]||(N[33]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:k},{default:A(()=>[...N[34]||(N[34]=[ce("删除",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:E.value,"onUpdate:open":N[17]||(N[17]=U=>E.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[35]||(N[35]=[ce("确认登出",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[36]||(N[36]=[ce(" 确定要登出所有 API Key 吗?您需要重新输入 Key 才能继续使用。 ",-1)])]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[16]||(N[16]=U=>E.value=!1)},{default:A(()=>[...N[37]||(N[37]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:O},{default:A(()=>[...N[38]||(N[38]=[ce("登出",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],64))}}),am=ys(om,[["__scopeId","data-v-f6c24705"]]),im={class:"min-h-screen bg-background"},sm={class:"sticky top-0 z-30 w-full border-b border-border/40 bg-card"},lm={class:"flex h-14 items-center px-4 max-w-7xl mx-auto"},um={key:1,class:"text-sm font-semibold text-foreground truncate"},cm={key:2,class:"flex items-center gap-1"},fm={class:"inline-flex items-center gap-1.5"},dm={key:0,class:"relative inline-flex h-2 w-2"},pm={class:"flex items-center gap-2"},hm={class:"hidden sm:flex items-center gap-1.5"},mm={class:"truncate"},vm={class:"p-4 sm:p-6"},ns="yunyi_sidebar_expanded",rs=768,os=1280,gm=ye({__name:"DashboardLayout",setup(e){const t=Cu(),n=ds(),o=Ca(),a=wu(),i=Z(window.innerWidth),r=Te(()=>i.value<rs),s=Te(()=>i.value>=rs&&i.value<os),l=Te(()=>i.value>=os),u=Z(!1);function f(){i.value=window.innerWidth}br(()=>{window.addEventListener("resize",f),a.hydrate(),a.refreshRecent(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.value=!0})})}),Ea(()=>{window.removeEventListener("resize",f),document.body.style.overflow=""});const c=Z(localStorage.getItem(ns)!=="false"),d=Z(!1),p=Z(!1),h=Te(()=>r.value?!1:s.value?p.value:c.value),m=Te(()=>r.value&&d.value||s.value&&p.value),v=Te(()=>r.value?d.value?"w-64 translate-x-0":"w-64 -translate-x-full":s.value?p.value?"w-64":"w-16":c.value?"w-64":"w-16"),y=Te(()=>r.value?"pl-0":s.value?"pl-16":c.value?"pl-64":"pl-16");function E(){r.value?d.value=!d.value:s.value?p.value=!p.value:(c.value=!c.value,localStorage.setItem(ns,String(c.value)))}function x(){d.value=!1,p.value=!1}Rt([r,s,l],()=>{d.value=!1,p.value=!1,document.body.style.overflow=""}),Rt(m,ie=>{document.body.style.overflow=ie?"hidden":""}),Rt(()=>t.path,()=>{r.value&&(d.value=!1)});const b=[{path:"/dashboard",title:"仪表盘"},{path:"/card-bind",title:"叠卡"},{path:"/renewal",title:"续费"},{path:"/quota-pack",title:"额度包"},{path:"/announcements",title:"公告"},{path:"/settings",title:"设置"}],C=ie=>t.path===ie||t.path.startsWith(`${ie}/`),P=Te(()=>{const ie=b.find(W=>C(W.path));return(ie==null?void 0:ie.title)??"云驿"}),K=Te(()=>t.name==="announcements"||t.name==="announcement-detail"),$=Te(()=>a.hasUnread);aa("sidebarState",{isSidebarExpanded:c,isMobileSidebarOpen:d,isMobile:r,isTablet:s,isDesktop:l,isTabletOverlayOpen:p,toggle:E,menuItems:b,isActive:C,shouldShowAnnouncementDot:$});const S=Te(()=>a.shouldShowPopup&&!K.value),L=Z(!1),k=Z(!1),j=Z(0);aa(Xu,{refreshTick:j});async function M(){if(!k.value){k.value=!0;try{if(!await o.fetchInfo()&&!o.apiKeyInfo){Et.error(o.error||"刷新失败");return}await o.refreshAllKeyInfo(),await a.refreshRecent(),j.value++,Et.success("数据已刷新")}catch{Et.error("刷新失败")}finally{setTimeout(()=>{k.value=!1},600)}}}function F(){L.value=S.value}function O(ie){L.value=ie}function w(){a.dismissPopupOnce(),L.value=!1}function V(){a.dismissPopupForToday(),L.value=!1}function Q(){L.value=!1,n.push({name:"announcements"})}function me(ie){L.value=!1,n.push({name:"announcement-detail",params:{id:ie}})}return Rt(S,()=>{F()}),(ie,W)=>(_(),Se("div",im,[D(Pn,{name:"fade"},{default:A(()=>[m.value?(_(),Se("div",{key:0,class:"fixed inset-0 z-40 bg-white/60 dark:bg-black/40 backdrop-blur-sm",onClick:x})):vt("",!0)]),_:1}),H("aside",{class:et(["fixed inset-y-0 left-0 z-50 border-r border-border/40 bg-card overflow-hidden",[v.value,u.value?"transition-[width,transform] duration-300":""]])},[D(am,{"is-expanded":h.value,"is-mobile":r.value,"is-mobile-open":d.value},null,8,["is-expanded","is-mobile","is-mobile-open"])],2),H("div",{class:et([y.value,u.value?"transition-[padding-left] duration-300":""])},[H("header",sm,[H("div",lm,[r.value?(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-9 w-9 mr-2",onClick:E},{default:A(()=>[D(g(Yu),{class:"h-5 w-5"})]),_:1})):vt("",!0),r.value?(_(),Se("span",um,Ae(P.value),1)):vt("",!0),r.value?vt("",!0):(_(),Se("nav",cm,[(_(),Se(en,null,ro(b,N=>D(g(ps),{key:N.path,to:N.path,class:et(["px-3 py-1.5 text-sm font-medium rounded-md transition-colors",C(N.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>[H("span",fm,[H("span",null,Ae(N.title),1),N.path==="/announcements"&&$.value?(_(),Se("span",dm,[...W[0]||(W[0]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)])]),_:2},1032,["to","class"])),64))])),W[1]||(W[1]=H("div",{class:"flex-1"},null,-1)),H("div",pm,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",disabled:k.value,onClick:M,title:"刷新数据"},{default:A(()=>[D(g(Gu),{class:et(["h-4 w-4 transition-transform",{"animate-spin":k.value}])},null,8,["class"])]),_:1},8,["disabled"]),H("div",hm,[g(o).apiKeyInfo?(_(),Se(en,{key:0},[D(g(Bt),{variant:"outline",class:"text-xs font-mono rounded-full px-2.5"},{default:A(()=>[ce(Ae(g(o).apiKeyInfo.key_preview),1)]),_:1}),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1 max-w-[18rem]",g(Oa)(g(o).apiKeyInfo.service_type).badge]),title:g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)},{default:A(()=>[g(o).apiKeyInfo.service_type==="claude"?(_(),q(g(vs),{key:0,class:"h-3 w-3"})):g(o).apiKeyInfo.service_type==="codex"?(_(),q(g(gs),{key:1,class:"h-3 w-3"})):vt("",!0),H("span",mm,Ae(g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)),1)]),_:1},8,["class","title"]),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1.5",g(Au)(g(o).apiKeyInfo.status)])},{default:A(()=>[H("span",{class:et(["h-1.5 w-1.5 rounded-full shrink-0",g(xa)(g(o).apiKeyInfo.status)])},null,2),ce(" "+Ae(g(Nu)(g(o).apiKeyInfo.status)),1)]),_:1},8,["class"])],64)):(_(),q(g(Bt),{key:1,variant:"outline",class:"text-xs rounded-full px-2.5 border-amber-500/20 bg-amber-500/10 text-amber-600 dark:text-amber-400"},{default:A(()=>[ce(Ae(g(o).error?"加载失败":"Key 恢复中"),1)]),_:1}))])])])]),H("main",vm,[D(g(Pu))])],2),D(gf,{open:L.value,items:g(a).popupItems,"onUpdate:open":O,onCloseOnce:w,onCloseToday:V,onViewAll:Q,onViewAnnouncement:me},null,8,["open","items"])]))}}),Fm=ys(gm,[["__scopeId","data-v-bc32f76d"]]);export{Fm as default};