@opengis/table 0.0.30 → 0.0.31
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.
- package/README.md +158 -158
- package/dist/components/DataTable.vue.d.ts +14 -14
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/formats/GeomFormat.vue.d.ts +32 -0
- package/dist/formats/GeomFormat.vue.d.ts.map +1 -0
- package/dist/formats/index.d.ts +85 -1
- package/dist/formats/index.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +1952 -1813
- package/dist/index.umd.js +14 -14
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K.filter={},K.Vue))})(this,function(K,s){"use strict";function Ks(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ws=Ks(s),vn={en:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",selectAll:"Select all",selectCurrent:"Select current",none:"None",chooseFormat:"Choose table format:",format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table"},uk:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",chooseFormat:"Виберіть формат таблиці:",format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю"}};function Gs(e){const t=e.split(".")[1];return(vn[localStorage.language||navigator.language]||vn.uk)[t]}function St(){const e=s.getCurrentInstance();return e.appContext.config.globalProperties.$i18n?e.appContext.config.globalProperties.$t:Gs}const Js={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},Ys={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},Xs=["placeholder"],Qs={class:"p-1 pt-3 max-h-80 overflow-y-auto"},Zs={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},Vs=["onClick"],er={class:"flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none"},tr=["value"],yn=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=St(),r=e,o=t,i=s.useAttrs(),a=s.ref(!1),l=s.ref(""),c=s.ref(r.columns),d=s.ref(null),m=s.ref(null),p=s.ref(null),f=s.ref({top:0,left:0}),h=s.computed(()=>l.value?c.value.filter(k=>k.ua.toLowerCase().includes(l.value.toLowerCase())):c.value),b=s.ref("uk"),v=k=>{k.detail.key==="locale"&&(b.value=k.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",v)}),s.onMounted(()=>{window.addEventListener("storage",v),b.value=localStorage.locale}),s.watch(c,k=>{o("update:columns",k)},{deep:!0}),s.watch(()=>r.columns,k=>{JSON.stringify(k)!==JSON.stringify(c.value)&&(c.value=[...k])},{deep:!0});function _(k){Object.assign(k,{hidden:!k.hidden})}function x(){a.value=!a.value,s.nextTick(()=>{if(a.value&&(p.value?.focus(),d.value&&m.value)){const k=d.value.getBoundingClientRect();f.value={top:k.bottom+window.scrollY+5,left:k.left+window.scrollX-220}}})}function I(k){a.value&&m.value&&d.value&&!m.value.contains(k.target)&&!d.value.contains(k.target)&&(a.value=!1)}return s.onMounted(()=>{document.addEventListener("click",I,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",I,!0)}),(k,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:x,ref_key:"buttonRef",ref:d,class:s.normalizeClass([[s.unref(i).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},E[2]||(E[2]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>',1)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[a.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"modalRef",ref:m,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:s.normalizeStyle([{position:"fixed"},{top:`${f.value.top}px`,left:`${f.value.left}px`}])},[s.createElementVNode("div",Js,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",Ys,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:p,"onUpdate:modelValue":E[0]||(E[0]=w=>l.value=w),class:"py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",placeholder:s.unref(n)("table.search")},null,8,Xs),[[s.vModelText,l.value]])]),s.createElementVNode("div",Qs,[s.createElementVNode("span",Zs,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:E[1]||(E[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,w=>(s.openBlock(),s.createElementBlock("div",{key:w.name,class:"flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",onClick:C=>_(w)},[s.createElementVNode("label",er,[s.createTextVNode(s.toDisplayString(w[b.value]||w.ua||w.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:w.hidden},null,8,tr),s.createElementVNode("span",{class:s.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",w.hidden?"bg-white":"bg-blue-600 border-0"])},E[3]||(E[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,Vs))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),bn=s.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value===null||t.value===void 0?"":typeof t.value=="number"?t.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(t.value)));return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),En=s.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),kn=s.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),Nn=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const i=String(t.value||"").toLowerCase(),a="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${a} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${a} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${a} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${a} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${a} bg-${t.value.color}-100 text-${t.value.color}-800`:`${a} bg-gray-100 text-gray-800`});function r(i,a=1){const l=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),d=parseInt(i.slice(5,7),16);return`rgba(${l}, ${c}, ${d}, ${a})`}const o=s.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:i});return(i,a)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(o.value)},s.toDisplayString(i.value?.text||i.value||"-"),7))}}),[["__scopeId","data-v-f4b15092"]]),nr={class:"flex flex-wrap gap-1"},xn=s.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),r=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(s.openBlock(),s.createElementBlock("div",nr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(a,l)=>(s.openBlock(),s.createElementBlock("span",{key:l,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},s.toDisplayString(r(a)),1))),128))]))}}),Sn=s.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),sr={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},wn=s.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return s.computed(()=>({})),(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t.value?(s.openBlock(),s.createElementBlock("span",sr,n[0]||(n[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0),n[1]||(n[1]=s.createElementVNode("span",null,null,-1))],64))}}),wt={number:bn,date:En,text:kn,badge:Nn,array:xn,select:Sn,boolean:wn},rr={class:"flex items-center space-x-4"},or={class:"font-medium"},ir={class:"font-medium"},ar={class:"font-medium"},lr={class:"flex items-center space-x-2"},cr=["disabled"],dr={class:"flex items-center space-x-1"},pr=["onClick"],fr=["disabled"],Ct=s.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(e,{emit:t}){const n=e,r=s.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[n.size]),o=s.computed(()=>{const{theme:p}=n;return p==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:p==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),i=t,a=s.computed(()=>Math.ceil(n.total/n.limit)),l=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),d=s.computed(()=>{const p=[];if(a.value<=7)for(let h=1;h<=a.value;h+=1)p.push(h);else{p.push(1),n.page>4&&p.push("...");const h=Math.max(2,n.page-1),b=Math.min(a.value-1,n.page+1);for(let v=h;v<=b;v+=1)v!==1&&v!==a.value&&p.push(v);n.page<a.value-3&&p.push("..."),a.value>1&&p.push(a.value)}return p}),m=p=>{p>=1&&p<=a.value&&p!==n.page&&i("update:page",p)};return(p,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[s.createElementVNode("div",rr,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",o.value.text,r.value.text])},[s.createElementVNode("span",null,[f[2]||(f[2]=s.createTextVNode(" Показано ",-1)),s.createElementVNode("span",or,s.toDisplayString(l.value),1),f[3]||(f[3]=s.createTextVNode(" до ",-1)),s.createElementVNode("span",ir,s.toDisplayString(c.value),1),f[4]||(f[4]=s.createTextVNode(" з ",-1)),s.createElementVNode("span",ar,s.toDisplayString(p.total),1),f[5]||(f[5]=s.createTextVNode(" результатів ",-1))])],2)]),s.createElementVNode("div",lr,[s.createElementVNode("button",{onClick:f[0]||(f[0]=h=>m(p.page-1)),disabled:p.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,p.page<=1?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[6]||(f[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,cr),s.createElementVNode("div",dr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,h=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:h},[h==="..."?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["font-medium",r.value.button,o.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:b=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===p.page?o.value.buttonActive:o.value.button])},s.toDisplayString(h),11,pr))],64))),128))]),s.createElementVNode("button",{onClick:f[1]||(f[1]=h=>m(p.page+1)),disabled:p.page>=a.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,p.page>=a.value?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[7]||(f[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,fr)])],2))}});/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
1
|
+
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K.filter={},K.Vue))})(this,function(K,s){"use strict";function Gs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Js=Gs(s),yn={en:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",selectAll:"Select all",selectCurrent:"Select current",none:"None",chooseFormat:"Choose table format:",format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table"},uk:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",chooseFormat:"Виберіть формат таблиці:",format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю"}};function Ys(e){const t=e.split(".")[1];return(yn[localStorage.language||navigator.language]||yn.uk)[t]}function wt(){const e=s.getCurrentInstance();return e.appContext.config.globalProperties.$i18n?e.appContext.config.globalProperties.$t:Ys}const Xs={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},Zs={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},Qs=["placeholder"],Vs={class:"p-1 pt-3 max-h-80 overflow-y-auto"},er={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},tr=["onClick"],nr={class:"flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none"},sr=["value"],bn=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=wt(),r=e,o=t,i=s.useAttrs(),l=s.ref(!1),a=s.ref(""),c=s.ref(r.columns),p=s.ref(null),m=s.ref(null),d=s.ref(null),f=s.ref({top:0,left:0}),h=s.computed(()=>a.value?c.value.filter(k=>k.ua.toLowerCase().includes(a.value.toLowerCase())):c.value),b=s.ref("uk"),v=k=>{k.detail.key==="locale"&&(b.value=k.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",v)}),s.onMounted(()=>{window.addEventListener("storage",v),b.value=localStorage.locale}),s.watch(c,k=>{o("update:columns",k)},{deep:!0}),s.watch(()=>r.columns,k=>{JSON.stringify(k)!==JSON.stringify(c.value)&&(c.value=[...k])},{deep:!0});function _(k){Object.assign(k,{hidden:!k.hidden})}function N(){l.value=!l.value,s.nextTick(()=>{if(l.value&&(d.value?.focus(),p.value&&m.value)){const k=p.value.getBoundingClientRect();f.value={top:k.bottom+window.scrollY+5,left:k.left+window.scrollX-220}}})}function I(k){l.value&&m.value&&p.value&&!m.value.contains(k.target)&&!p.value.contains(k.target)&&(l.value=!1)}return s.onMounted(()=>{document.addEventListener("click",I,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",I,!0)}),(k,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:N,ref_key:"buttonRef",ref:p,class:s.normalizeClass([[s.unref(i).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},E[2]||(E[2]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>',1)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[l.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"modalRef",ref:m,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:s.normalizeStyle([{position:"fixed"},{top:`${f.value.top}px`,left:`${f.value.left}px`}])},[s.createElementVNode("div",Xs,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",Zs,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:d,"onUpdate:modelValue":E[0]||(E[0]=S=>a.value=S),class:"py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",placeholder:s.unref(n)("table.search")},null,8,Qs),[[s.vModelText,a.value]])]),s.createElementVNode("div",Vs,[s.createElementVNode("span",er,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:E[1]||(E[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,S=>(s.openBlock(),s.createElementBlock("div",{key:S.name,class:"flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",onClick:C=>_(S)},[s.createElementVNode("label",nr,[s.createTextVNode(s.toDisplayString(S[b.value]||S.ua||S.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:S.hidden},null,8,sr),s.createElementVNode("span",{class:s.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",S.hidden?"bg-white":"bg-blue-600 border-0"])},E[3]||(E[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,tr))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),En=s.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value===null||t.value===void 0?"":typeof t.value=="number"?t.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(t.value)));return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),kn=s.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),xn=s.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),Nn=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const i=String(t.value||"").toLowerCase(),l="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${l} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${l} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${l} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${l} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${l} bg-${t.value.color}-100 text-${t.value.color}-800`:`${l} bg-gray-100 text-gray-800`});function r(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),p=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${p}, ${l})`}const o=s.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:i});return(i,l)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(o.value)},s.toDisplayString(i.value?.text||i.value||"-"),7))}}),[["__scopeId","data-v-d53d3188"]]),rr={class:"flex flex-wrap gap-1"},wn=s.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),r=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(s.openBlock(),s.createElementBlock("div",rr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,a)=>(s.openBlock(),s.createElementBlock("span",{key:a,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},s.toDisplayString(r(l)),1))),128))]))}}),Sn=s.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),or={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},Cn=s.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return s.computed(()=>({})),(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t.value?(s.openBlock(),s.createElementBlock("span",or,n[0]||(n[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0),n[1]||(n[1]=s.createElementVNode("span",null,null,-1))],64))}}),ir={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},lr={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},_n=s.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=s.ref(!1),r=s.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const d="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${d}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=d,document.head.appendChild(h)}const f="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${f}"]`)||await new Promise((h,b)=>{const v=document.createElement("script");v.src=f,v.async=!0,v.onload=()=>h(),v.onerror=b,document.body.appendChild(v)}),o=window.L,o}async function c(){n.value=!0,await s.nextTick(),await a(),!i&&(i=o.map(r.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(i),m(t.value),setTimeout(()=>i.invalidateSize(),250))}function p(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(d){if(!i||!o||(l&&(l.remove(),l=null),!d))return;l=o.geoJSON(d,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,b)=>o.marker(b)}).addTo(i);const f=l.getBounds?.();if(f&&f.isValid())i.fitBounds(f,{padding:[24,24]});else if(d.type==="Point"){const[h,b]=d.coordinates;i.setView([b,h],14)}}return s.watch(()=>t.value,d=>{n.value&&i&&m(d)},{deep:!0}),s.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(d,f)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("button",{type:"button",onClick:c,class:"p-2 rounded hover:bg-gray-100 text-blue-600 inline-flex items-center justify-center",title:"Open map"},f[0]||(f[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M9 18l-6 3V6l6-3 6 3 6-3v15l-6 3-6-3z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[n.value?(s.openBlock(),s.createElementBlock("div",ir,[s.createElementVNode("div",lr,[s.createElementVNode("button",{type:"button",class:"absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",onClick:p,title:"Close"},f[1]||(f[1]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),s.createElementVNode("div",{ref_key:"mapContainer",ref:r,class:"w-full h-full"},null,512)])])):s.createCommentVNode("",!0)]))]))}}),St={number:En,date:kn,text:xn,badge:Nn,array:wn,select:Sn,boolean:Cn,geom:_n},ar={class:"flex items-center space-x-4"},cr={class:"font-medium"},dr={class:"font-medium"},pr={class:"font-medium"},fr={class:"flex items-center space-x-2"},ur=["disabled"],hr={class:"flex items-center space-x-1"},mr=["onClick"],gr=["disabled"],Ct=s.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(e,{emit:t}){const n=e,r=s.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[n.size]),o=s.computed(()=>{const{theme:d}=n;return d==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:d==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),i=t,l=s.computed(()=>Math.ceil(n.total/n.limit)),a=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),p=s.computed(()=>{const d=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)d.push(h);else{d.push(1),n.page>4&&d.push("...");const h=Math.max(2,n.page-1),b=Math.min(l.value-1,n.page+1);for(let v=h;v<=b;v+=1)v!==1&&v!==l.value&&d.push(v);n.page<l.value-3&&d.push("..."),l.value>1&&d.push(l.value)}return d}),m=d=>{d>=1&&d<=l.value&&d!==n.page&&i("update:page",d)};return(d,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[s.createElementVNode("div",ar,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",o.value.text,r.value.text])},[s.createElementVNode("span",null,[f[2]||(f[2]=s.createTextVNode(" Показано ")),s.createElementVNode("span",cr,s.toDisplayString(a.value),1),f[3]||(f[3]=s.createTextVNode(" до ")),s.createElementVNode("span",dr,s.toDisplayString(c.value),1),f[4]||(f[4]=s.createTextVNode(" з ")),s.createElementVNode("span",pr,s.toDisplayString(d.total),1),f[5]||(f[5]=s.createTextVNode(" результатів "))])],2)]),s.createElementVNode("div",fr,[s.createElementVNode("button",{onClick:f[0]||(f[0]=h=>m(d.page-1)),disabled:d.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page<=1?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[6]||(f[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,ur),s.createElementVNode("div",hr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,h=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:h},[h==="..."?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["font-medium",r.value.button,o.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:b=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===d.page?o.value.buttonActive:o.value.button])},s.toDisplayString(h),11,mr))],64))),128))]),s.createElementVNode("button",{onClick:f[1]||(f[1]=h=>m(d.page+1)),disabled:d.page>=l.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page>=l.value?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[7]||(f[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,gr)])],2))}});/**
|
|
2
|
+
* @vue/shared v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function he(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const
|
|
6
|
-
* @vue/compiler-core v3.5.
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function he(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const vr=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const _t=()=>{},et=()=>!1,Tt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),be=Object.assign,me=Array.isArray,X=e=>typeof e=="string",Ot=e=>typeof e=="symbol",yr=e=>e!==null&&typeof e=="object",Tn=he(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=he("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Dt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Er=/-(\w)/g,Ee=Dt(e=>e.replace(Er,(t,n)=>n?n.toUpperCase():"")),Bt=Dt(e=>e.charAt(0).toUpperCase()+e.slice(1)),kr=Dt(e=>e?`on${Bt(e)}`:""),tt={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},xr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Nr=/;(?![^(]*\))/g,wr=/:([^]+)/,Sr=/\/\*[^]*?\*\//g;function Cr(e){const t={};return e.replace(Sr,"").split(Nr).forEach(n=>{if(n){const r=n.split(wr);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const _r="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Tr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Or="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Dr="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Br=he(_r),Ir=he(Tr),Ar=he(Or),$r=he(Dr);/**
|
|
6
|
+
* @vue/compiler-core v3.5.17
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/const He=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),qe=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),It=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),nt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),_n=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),we=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Tn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),On=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),At=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),$t=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Dn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),jt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),zt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),In=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),st=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),rt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),We=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Ge=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),qt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Br=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),ot=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Ir=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Ar=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),$r=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Mr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),An=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),$e={[He]:"Fragment",[qe]:"Teleport",[It]:"Suspense",[nt]:"KeepAlive",[_n]:"BaseTransition",[we]:"openBlock",[Tn]:"createBlock",[On]:"createElementBlock",[At]:"createVNode",[$t]:"createElementVNode",[Ke]:"createCommentVNode",[Mt]:"createTextVNode",[Dn]:"createStaticVNode",[Rt]:"resolveComponent",[Lt]:"resolveDynamicComponent",[Pt]:"resolveDirective",[Ft]:"resolveFilter",[jt]:"withDirectives",[zt]:"renderList",[Bn]:"renderSlot",[In]:"createSlots",[st]:"toDisplayString",[rt]:"mergeProps",[Ut]:"normalizeClass",[Ht]:"normalizeStyle",[We]:"normalizeProps",[Ge]:"guardReactiveProps",[qt]:"toHandlers",[Kt]:"camelize",[Br]:"capitalize",[Wt]:"toHandlerKey",[ot]:"setBlockTracking",[Ir]:"pushScopeId",[Ar]:"popScopeId",[Gt]:"withCtx",[$r]:"unref",[Mr]:"isRef",[Jt]:"withMemo",[An]:"isMemoSame"};function Rr(e){Object.getOwnPropertySymbols(e).forEach(t=>{$e[t]=e[t]})}const ie={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Lr(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ie}}function Je(e,t,n,r,o,i,a,l=!1,c=!1,d=!1,m=ie){return e&&(l?(e.helper(we),e.helper(Le(e.inSSR,d))):e.helper(Re(e.inSSR,d)),a&&e.helper(jt)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:a,isBlock:l,disableTracking:c,isComponent:d,loc:m}}function Ce(e,t=ie){return{type:17,loc:t,elements:e}}function de(e,t=ie){return{type:15,loc:t,properties:e}}function W(e,t){return{type:16,loc:ie,key:X(e)?D(e,!0):e,value:t}}function D(e,t=!1,n=ie,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function pe(e,t=ie){return{type:8,loc:t,children:e}}function Y(e,t=[],n=ie){return{type:14,loc:n,callee:e,arguments:t}}function Me(e,t=void 0,n=!1,r=!1,o=ie){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Yt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ie}}function Pr(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ie}}function Fr(e){return{type:21,body:e,loc:ie}}function Re(e,t){return e||t?At:$t}function Le(e,t){return e||t?Tn:On}function Xt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Re(r,e.isComponent)),t(we),t(Le(r,e.isComponent)))}const $n=new Uint8Array([123,123]),Mn=new Uint8Array([125,125]);function Rn(e){return e>=97&&e<=122||e>=65&&e<=90}function ae(e){return e===32||e===10||e===9||e===12||e===13}function ke(e){return e===47||e===62||ae(e)}function it(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Q={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 jr{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=$n,this.delimiterClose=Mn,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=$n,this.delimiterClose=Mn}getPos(t){let n=1,r=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,r=t-i;break}}return{column:r,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?ke(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||ae(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}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===Q.TitleEnd||this.currentSequence===Q.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===Q.Cdata[this.sequenceIndex]?++this.sequenceIndex===Q.Cdata.length&&(this.state=28,this.currentSequence=Q.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===Q.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):Rn(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){ke(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(ke(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(it("</"+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){ae(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=Rn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ae(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,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ae(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),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):ae(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||ke(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||ke(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||ke(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||ke(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||ke(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)):ae(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):ae(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){ae(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)):(process.env.NODE_ENV!=="production"&&t===34||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=Q.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===Q.ScriptEnd[3]?this.startSpecial(Q.ScriptEnd,4):t===Q.StyleEnd[3]?this.startSpecial(Q.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Q.TitleEnd[3]?this.startSpecial(Q.TitleEnd,4):t===Q.TextareaEnd[3]?this.startSpecial(Q.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===Q.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 zr={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 Qt(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ne(e,t){const n=Qt("MODE",t),r=Qt(e,t);return n===3?r===!0:r!==!1}function Pe(e,t,n,...r){const o=Ne(e,t);return process.env.NODE_ENV!=="production"&&o&&at(e,t,n,...r),o}function at(e,t,n,...r){if(Qt(e,t)==="suppress-warning")return;const{message:i,link:a}=zr[e],l=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${a?`
|
|
10
|
-
Details: ${
|
|
11
|
-
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:""},ne=e=>e.type===4&&e.isStatic;function Pn(e){switch(e){case"Teleport":case"teleport":return qe;case"Suspense":case"suspense":return It;case"KeepAlive":case"keep-alive":return nt;case"BaseTransition":case"base-transition":return _n}}const Hr=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Vt=e=>!Hr.test(e),qr=/[A-Za-z_$\xA0-\uFFFF]/,Kr=/[\.\?\w$\xA0-\uFFFF]/,Wr=/\s+[.[]\s*|\s*[.[]\s+/g,Fn=e=>e.type===4?e.content:e.loc.source,jn=e=>{const t=Fn(e).trim().replace(Wr,l=>l.trim());let n=0,r=[],o=0,i=0,a=null;for(let l=0;l<t.length;l++){const c=t.charAt(l);switch(n){case 0:if(c==="[")r.push(n),n=1,o++;else if(c==="(")r.push(n),n=2,i++;else if(!(l===0?qr:Kr).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,a=c):c==="["?o++:c==="]"&&(--o||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,a=c;else if(c==="(")i++;else if(c===")"){if(l===t.length-1)return!1;--i||(n=r.pop())}break;case 3:c===a&&(n=r.pop(),a=null);break}}return!o&&!i},Gr=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Jr=e=>Gr.test(Fn(e));function zn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function se(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(X(t)?o.name===t:t.test(o.name)))return o}}function Ye(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&xe(i.arg,t))return i}}function xe(e,t){return!!(e&&ne(e)&&e.content===t)}function Yr(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function en(e){return e.type===5||e.type===2}function Un(e){return e.type===7&&e.name==="pre"}function Xr(e){return e.type===7&&e.name==="slot"}function lt(e){return e.type===1&&e.tagType===3}function ct(e){return e.type===1&&e.tagType===2}const Qr=new Set([We,Ge]);function Hn(e,t=[]){if(e&&!X(e)&&e.type===14){const n=e.callee;if(!X(n)&&Qr.has(n))return Hn(e.arguments[0],t.concat(e))}return[e,t]}function dt(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],a;if(o&&!X(o)&&o.type===14){const l=Hn(o);o=l[0],i=l[1],a=i[i.length-1]}if(o==null||X(o))r=de([t]);else if(o.type===14){const l=o.arguments[0];!X(l)&&l.type===15?qn(t,l)||l.properties.unshift(t):o.callee===qt?r=Y(n.helper(rt),[de([t]),o]):o.arguments.unshift(de([t])),!r&&(r=o)}else o.type===15?(qn(t,o)||o.properties.unshift(t),r=o):(r=Y(n.helper(rt),[de([t]),o]),a&&a.callee===Ge&&(a=i[i.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function qn(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function Xe(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Zr(e){return e.type===14&&e.callee===Jt?e.arguments[1].returns:e}const Vr=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Kn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:tt,isPreTag:tt,isIgnoreNewlineTag:tt,isCustomElement:tt,onError:Zt,onWarn:Ln,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let $=Kn,Qe=null,ve="",V=null,A=null,re="",ye=-1,_e=-1,tn=0,Se=!1,nn=null;const q=[],z=new jr(q,{onerr:oe,ontext(e,t){pt(Z(e,t),e,t)},ontextentity(e,t,n){pt(e,t,n)},oninterpolation(e,t){if(Se)return pt(Z(e,t),e,t);let n=e+z.delimiterOpen.length,r=t-z.delimiterClose.length;for(;ae(ve.charCodeAt(n));)n++;for(;ae(ve.charCodeAt(r-1));)r--;let o=Z(n,r);o.includes("&")&&(o=$.decodeEntities(o,!1)),sn({type:5,content:ut(o,!1,J(n,r)),loc:J(e,t)})},onopentagname(e,t){const n=Z(e,t);V={type:1,tag:n,ns:$.getNamespace(n,q[0],$.ns),tagType:0,props:[],children:[],loc:J(e-1,t),codegenNode:void 0}},onopentagend(e){Gn(e)},onclosetag(e,t){const n=Z(e,t);if(!$.isVoidTag(n)){let r=!1;for(let o=0;o<q.length;o++)if(q[o].tag.toLowerCase()===n.toLowerCase()){r=!0,o>0&&oe(24,q[0].loc.start.offset);for(let a=0;a<=o;a++){const l=q.shift();ft(l,t,a<o)}break}r||oe(23,Jn(e,60))}},onselfclosingtag(e){const t=V.tag;V.isSelfClosing=!0,Gn(e),q[0]&&q[0].tag===t&&ft(q.shift(),e)},onattribname(e,t){A={type:6,name:Z(e,t),nameLoc:J(e,t),value:void 0,loc:J(e)}},ondirname(e,t){const n=Z(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Se&&r===""&&oe(26,e),Se||r==="")A={type:6,name:n,nameLoc:J(e,t),value:void 0,loc:J(e)};else if(A={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[D("prop")]:[],loc:J(e)},r==="pre"){Se=z.inVPre=!0,nn=V;const o=V.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=po(o[i]))}},ondirarg(e,t){if(e===t)return;const n=Z(e,t);if(Se&&!Un(A))A.name+=n,Te(A.nameLoc,t);else{const r=n[0]!=="[";A.arg=ut(r?n:n.slice(1,-1),r,J(e,t),r?3:0)}},ondirmodifier(e,t){const n=Z(e,t);if(Se&&!Un(A))A.name+="."+n,Te(A.nameLoc,t);else if(A.name==="slot"){const r=A.arg;r&&(r.content+="."+n,Te(r.loc,t))}else{const r=D(n,!0,J(e,t));A.modifiers.push(r)}},onattribdata(e,t){re+=Z(e,t),ye<0&&(ye=e),_e=t},onattribentity(e,t,n){re+=e,ye<0&&(ye=t),_e=n},onattribnameend(e){const t=A.loc.start.offset,n=Z(t,e);A.type===7&&(A.rawName=n),V.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&oe(2,t)},onattribend(e,t){if(V&&A){if(Te(A.loc,t),e!==0)if(re.includes("&")&&(re=$.decodeEntities(re,!0)),A.type===6)A.name==="class"&&(re=Qn(re).trim()),e===1&&!re&&oe(13,t),A.value={type:2,content:re,loc:e===1?J(ye,_e):J(ye-1,_e+1)},z.inSFCRoot&&V.tag==="template"&&A.name==="lang"&&re&&re!=="html"&&z.enterRCDATA(it("</template"),0);else{let n=0;A.exp=ut(re,!1,J(ye,_e),0,n),A.name==="for"&&(A.forParseResult=to(A.exp));let r=-1;A.name==="bind"&&(r=A.modifiers.findIndex(o=>o.content==="sync"))>-1&&Pe("COMPILER_V_BIND_SYNC",$,A.loc,A.arg.loc.source)&&(A.name="model",A.modifiers.splice(r,1))}(A.type!==7||A.name!=="pre")&&V.props.push(A)}re="",ye=_e=-1},oncomment(e,t){$.comments&&sn({type:3,content:Z(e,t),loc:J(e-4,t+3)})},onend(){const e=ve.length;if(process.env.NODE_ENV!=="production"&&z.state!==1)switch(z.state){case 5:case 8:oe(5,e);break;case 3:case 4:oe(25,z.sectionStart);break;case 28:z.currentSequence===Q.CdataEnd?oe(6,e):oe(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:oe(9,e);break}for(let t=0;t<q.length;t++)ft(q[t],e-1),oe(24,q[t].loc.start.offset)},oncdata(e,t){q[0].ns!==0?pt(Z(e,t),e,t):oe(1,e-9)},onprocessinginstruction(e){(q[0]?q[0].ns:$.ns)===0&&oe(21,e-1)}}),Wn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,eo=/^\(|\)$/g;function to(e){const t=e.loc,n=e.content,r=n.match(Vr);if(!r)return;const[,o,i]=r,a=(p,f,h=!1)=>{const b=t.start.offset+f,v=b+p.length;return ut(p,!1,J(b,v),0,h?1:0)},l={source:a(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(eo,"").trim();const d=o.indexOf(c),m=c.match(Wn);if(m){c=c.replace(Wn,"").trim();const p=m[1].trim();let f;if(p&&(f=n.indexOf(p,d+c.length),l.key=a(p,f,!0)),m[2]){const h=m[2].trim();h&&(l.index=a(h,n.indexOf(h,l.key?f+p.length:d+c.length),!0))}}return c&&(l.value=a(c,d,!0)),l}function Z(e,t){return ve.slice(e,t)}function Gn(e){z.inSFCRoot&&(V.innerLoc=J(e+1,e+1)),sn(V);const{tag:t,ns:n}=V;n===0&&$.isPreTag(t)&&tn++,$.isVoidTag(t)?ft(V,e):(q.unshift(V),(n===1||n===2)&&(z.inXML=!0)),V=null}function pt(e,t,n){{const i=q[0]&&q[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=$.decodeEntities(e,!1))}const r=q[0]||Qe,o=r.children[r.children.length-1];o&&o.type===2?(o.content+=e,Te(o.loc,n)):r.children.push({type:2,content:e,loc:J(t,n)})}function ft(e,t,n=!1){n?Te(e.loc,Jn(t,60)):Te(e.loc,no(t,62)+1),z.inSFCRoot&&(e.children.length?e.innerLoc.end=be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=be({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:i}=e;if(Se||(r==="slot"?e.tagType=2:Yn(e)?e.tagType=3:ro(e)&&(e.tagType=1)),z.inRCDATA||(e.children=Xn(i)),o===0&&$.isIgnoreNewlineTag(r)){const a=i[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}o===0&&$.isPreTag(r)&&tn--,nn===e&&(Se=z.inVPre=!1,nn=null),z.inXML&&(q[0]?q[0].ns:$.ns)===0&&(z.inXML=!1);{const a=e.props;if(process.env.NODE_ENV!=="production"&&Ne("COMPILER_V_IF_V_FOR_PRECEDENCE",$)){let c=!1,d=!1;for(let m=0;m<a.length;m++){const p=a[m];if(p.type===7&&(p.name==="if"?c=!0:p.name==="for"&&(d=!0)),c&&d){at("COMPILER_V_IF_V_FOR_PRECEDENCE",$,e.loc);break}}}if(!z.inSFCRoot&&Ne("COMPILER_NATIVE_TEMPLATE",$)&&e.tag==="template"&&!Yn(e)){process.env.NODE_ENV!=="production"&&at("COMPILER_NATIVE_TEMPLATE",$,e.loc);const c=q[0]||Qe,d=c.children.indexOf(e);c.children.splice(d,1,...e.children)}const l=a.find(c=>c.type===6&&c.name==="inline-template");l&&Pe("COMPILER_INLINE_TEMPLATE",$,l.loc)&&e.children.length&&(l.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:l.loc})}}function no(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n<ve.length-1;)n++;return n}function Jn(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n>=0;)n--;return n}const so=new Set(["if","else","else-if","for","slot"]);function Yn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&so.has(t[n].name))return!0}return!1}function ro({tag:e,props:t}){if($.isCustomElement(e))return!1;if(e==="component"||oo(e.charCodeAt(0))||Pn(e)||$.isBuiltInComponent&&$.isBuiltInComponent(e)||$.isNativeTag&&!$.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Pe("COMPILER_IS_ON_ELEMENT",$,r.loc))return!0}}else if(r.name==="bind"&&xe(r.arg,"is")&&Pe("COMPILER_IS_ON_ELEMENT",$,r.loc))return!0}return!1}function oo(e){return e>64&&e<91}const io=/\r\n/g;function Xn(e){const t=$.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const o=e[r];if(o.type===2)if(tn)o.content=o.content.replace(io,`
|
|
12
|
-
`);else if(ao(o.content)){const i=e[r-1]&&e[r-1].type,a=e[r+1]&&e[r+1].type;!i||!a||t&&(i===3&&(a===3||a===1)||i===1&&(a===3||a===1&&lo(o.content)))?(n=!0,e[r]=null):o.content=" "}else t&&(o.content=Qn(o.content))}return n?e.filter(Boolean):e}function ao(e){for(let t=0;t<e.length;t++)if(!ae(e.charCodeAt(t)))return!1;return!0}function lo(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Qn(e){let t="",n=!1;for(let r=0;r<e.length;r++)ae(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function sn(e){(q[0]||Qe).children.push(e)}function J(e,t){return{start:z.getPos(e),end:t==null?t:z.getPos(t),source:t==null?t:Z(e,t)}}function co(e){return J(e.start.offset,e.end.offset)}function Te(e,t){e.end=z.getPos(t),e.source=Z(e.start.offset,t)}function po(e){const t={type:6,name:e.rawName,nameLoc:J(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 ut(e,t=!1,n,r=0,o=0){return D(e,t,n,r)}function oe(e,t,n){$.onError(j(e,J(t,t),void 0,n))}function fo(){z.reset(),V=null,A=null,re="",ye=-1,_e=-1,q.length=0}function uo(e,t){if(fo(),ve=e,$=be({},Kn),t){let o;for(o in t)t[o]!=null&&($[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!$.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");z.mode=$.parseMode==="html"?1:$.parseMode==="sfc"?2:0,z.inXML=$.ns===1||$.ns===2;const n=t&&t.delimiters;n&&(z.delimiterOpen=it(n[0]),z.delimiterClose=it(n[1]));const r=Qe=Lr([],e);return z.parse(ve),r.loc=J(0,e.length),r.children=Xn(r.children),Qe=null,r}function ho(e,t){ht(e,void 0,t,!!Zn(e))}function Zn(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!ct(t[0])?t[0]:null}function ht(e,t,n,r=!1,o=!1){const{children:i}=e,a=[];for(let p=0;p<i.length;p++){const f=i[p];if(f.type===1&&f.tagType===0){const h=r?0:le(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const b=f.codegenNode;if(b.type===13){const v=b.patchFlag;if((v===void 0||v===512||v===1)&&es(f,n)>=2){const _=ts(f);_&&(b.props=n.hoist(_))}b.dynamicProps&&(b.dynamicProps=n.hoist(b.dynamicProps))}}}else if(f.type===12&&(r?0:le(f,n))>=2){f.codegenNode.type===14&&f.codegenNode.arguments.length>0&&f.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${Ue[-1]} */`:"")),a.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,ht(f,e,n,!1,o),h&&n.scopes.vSlot--}else if(f.type===11)ht(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)ht(f.branches[h],e,n,f.branches[h].children.length===1,o)}let l=!1;const c=[];if(a.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&me(e.codegenNode.children))e.codegenNode.children=d(Ce(e.codegenNode.children)),l=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!me(e.codegenNode.children)&&e.codegenNode.children.type===15){const p=m(e.codegenNode,"default");p&&(c.push(n.cached.length),p.returns=d(Ce(p.returns)),l=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!me(t.codegenNode.children)&&t.codegenNode.children.type===15){const p=se(e,"slot",!0),f=p&&p.arg&&m(t.codegenNode,p.arg);f&&(c.push(n.cached.length),f.returns=d(Ce(f.returns)),l=!0)}}if(!l)for(const p of a)c.push(n.cached.length),p.codegenNode=n.cache(p.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!me(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(W("__",D(JSON.stringify(c),!1)));function d(p){const f=n.cache(p);return o&&n.hmr&&(f.needArraySpread=!0),f}function m(p,f){if(p.children&&!me(p.children)&&p.children.type===15){const h=p.children.properties.find(b=>b.key===f||b.key.content===f);return h&&h.value}}a.length&&n.transformHoist&&n.transformHoist(i,n,e)}function le(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let a=3;const l=es(e,t);if(l===0)return n.set(e,0),0;l<a&&(a=l);for(let c=0;c<e.children.length;c++){const d=le(e.children[c],t);if(d===0)return n.set(e,0),0;d<a&&(a=d)}if(a>1)for(let c=0;c<e.props.length;c++){const d=e.props[c];if(d.type===7&&d.name==="bind"&&d.exp){const m=le(d.exp,t);if(m===0)return n.set(e,0),0;m<a&&(a=m)}}if(o.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(we),t.removeHelper(Le(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Re(t.inSSR,o.isComponent))}return n.set(e,a),a}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 le(e.content,t);case 4:return e.constType;case 8:let i=3;for(let a=0;a<e.children.length;a++){const l=e.children[a];if(X(l)||Ot(l))continue;const c=le(l,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const mo=new Set([Ut,Ht,We,Ge]);function Vn(e,t){if(e.type===14&&!X(e.callee)&&mo.has(e.callee)){const n=e.arguments[0];if(n.type===4)return le(n,t);if(n.type===14)return Vn(n,t)}return 0}function es(e,t){let n=3;const r=ts(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:a,value:l}=o[i],c=le(a,t);if(c===0)return c;c<n&&(n=c);let d;if(l.type===4?d=le(l,t):l.type===14?d=Vn(l,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function ts(e){const t=e.codegenNode;if(t.type===13)return t.props}function go(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:a=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:d=_t,isCustomElement:m=_t,expressionPlugins:p=[],scopeId:f=null,slotted:h=!0,ssr:b=!1,inSSR:v=!1,ssrCssVars:_="",bindingMetadata:x=ur,inline:I=!1,isTS:k=!1,onError:E=Zt,onWarn:w=Ln,compatConfig:C}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),N={filename:t,selfName:T&&Bt(Ee(T[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:i,nodeTransforms:a,directiveTransforms:l,transformHoist:c,isBuiltInComponent:d,isCustomElement:m,expressionPlugins:p,scopeId:f,slotted:h,ssr:b,inSSR:v,ssrCssVars:_,bindingMetadata:x,inline:I,isTS:k,onError:E,onWarn:w,compatConfig:C,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 P=N.helpers.get(S)||0;return N.helpers.set(S,P+1),S},removeHelper(S){const P=N.helpers.get(S);if(P){const M=P-1;M?N.helpers.set(S,M):N.helpers.delete(S)}},helperString(S){return`_${$e[N.helper(S)]}`},replaceNode(S){if(process.env.NODE_ENV!=="production"){if(!N.currentNode)throw new Error("Node being replaced is already removed.");if(!N.parent)throw new Error("Cannot replace root node.")}N.parent.children[N.childIndex]=N.currentNode=S},removeNode(S){if(process.env.NODE_ENV!=="production"&&!N.parent)throw new Error("Cannot remove root node.");const P=N.parent.children,M=S?P.indexOf(S):N.currentNode?N.childIndex:-1;if(process.env.NODE_ENV!=="production"&&M<0)throw new Error("node being removed is not a child of current parent");!S||S===N.currentNode?(N.currentNode=null,N.onNodeRemoved()):N.childIndex>M&&(N.childIndex--,N.onNodeRemoved()),N.parent.children.splice(M,1)},onNodeRemoved:_t,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){X(S)&&(S=D(S)),N.hoists.push(S);const P=D(`_hoisted_${N.hoists.length}`,!1,S.loc,2);return P.hoisted=S,P},cache(S,P=!1,M=!1){const B=Pr(N.cached.length,S,P,M);return N.cached.push(B),B}};return N.filters=new Set,N}function vo(e,t){const n=go(e,t);mt(e,n),t.hoistStatic&&ho(e,n),t.ssr||yo(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 yo(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=Zn(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&Xt(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let o=64;process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Je(t,n(He),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function bo(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];X(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,mt(o,t))}}function mt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const a=n[i](e,t);if(a&&(me(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ke);break;case 5:t.ssr||t.helper(st);break;case 9:for(let i=0;i<e.branches.length;i++)mt(e.branches[i],t);break;case 10:case 11:case 1:case 0:bo(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function ns(e,t){const n=X(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(Xr))return;const a=[];for(let l=0;l<i.length;l++){const c=i[l];if(c.type===7&&n(c.name)){i.splice(l,1),l--;const d=t(r,c,o);d&&a.push(d)}}return a}}}const gt="/*@__PURE__*/",ss=e=>`${$e[e]}: _${$e[e]}`;function Eo(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:a=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:m=!1,isTS:p=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:a,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:m,isTS:p,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${$e[v]}`},push(v,_=-2,x){h.code+=v},indent(){b(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:b(--h.indentLevel)},newline(){b(h.indentLevel)}};function b(v){h.push(`
|
|
13
|
-
`+" ".repeat(v),0)}return h}function
|
|
9
|
+
**/const Ue=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),He=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),It=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),nt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),On=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Se=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Dn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),At=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),$t=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),qe=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),In=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),jt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),zt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),An=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),$n=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),st=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),rt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),We=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),qt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Mr=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),ot=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Rr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Lr=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Pr=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Fr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Mn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),$e={[Ue]:"Fragment",[He]:"Teleport",[It]:"Suspense",[nt]:"KeepAlive",[On]:"BaseTransition",[Se]:"openBlock",[Dn]:"createBlock",[Bn]:"createElementBlock",[At]:"createVNode",[$t]:"createElementVNode",[qe]:"createCommentVNode",[Mt]:"createTextVNode",[In]:"createStaticVNode",[Rt]:"resolveComponent",[Lt]:"resolveDynamicComponent",[Pt]:"resolveDirective",[Ft]:"resolveFilter",[jt]:"withDirectives",[zt]:"renderList",[An]:"renderSlot",[$n]:"createSlots",[st]:"toDisplayString",[rt]:"mergeProps",[Ut]:"normalizeClass",[Ht]:"normalizeStyle",[Ke]:"normalizeProps",[We]:"guardReactiveProps",[qt]:"toHandlers",[Kt]:"camelize",[Mr]:"capitalize",[Wt]:"toHandlerKey",[ot]:"setBlockTracking",[Rr]:"pushScopeId",[Lr]:"popScopeId",[Gt]:"withCtx",[Pr]:"unref",[Fr]:"isRef",[Jt]:"withMemo",[Mn]:"isMemoSame"};function jr(e){Object.getOwnPropertySymbols(e).forEach(t=>{$e[t]=e[t]})}const ie={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function zr(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ie}}function Ge(e,t,n,r,o,i,l,a=!1,c=!1,p=!1,m=ie){return e&&(a?(e.helper(Se),e.helper(Le(e.inSSR,p))):e.helper(Re(e.inSSR,p)),l&&e.helper(jt)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:p,loc:m}}function Ce(e,t=ie){return{type:17,loc:t,elements:e}}function de(e,t=ie){return{type:15,loc:t,properties:e}}function W(e,t){return{type:16,loc:ie,key:X(e)?D(e,!0):e,value:t}}function D(e,t=!1,n=ie,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function pe(e,t=ie){return{type:8,loc:t,children:e}}function Y(e,t=[],n=ie){return{type:14,loc:n,callee:e,arguments:t}}function Me(e,t=void 0,n=!1,r=!1,o=ie){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Yt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ie}}function Ur(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ie}}function Hr(e){return{type:21,body:e,loc:ie}}function Re(e,t){return e||t?At:$t}function Le(e,t){return e||t?Dn:Bn}function Xt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Re(r,e.isComponent)),t(Se),t(Le(r,e.isComponent)))}const Rn=new Uint8Array([123,123]),Ln=new Uint8Array([125,125]);function Pn(e){return e>=97&&e<=122||e>=65&&e<=90}function le(e){return e===32||e===10||e===9||e===12||e===13}function ke(e){return e===47||e===62||le(e)}function it(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Z={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 qr{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=Rn,this.delimiterClose=Ln,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=Rn,this.delimiterClose=Ln}getPos(t){let n=1,r=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,r=t-i;break}}return{column:r,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?ke(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||le(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}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===Z.TitleEnd||this.currentSequence===Z.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===Z.Cdata[this.sequenceIndex]?++this.sequenceIndex===Z.Cdata.length&&(this.state=28,this.currentSequence=Z.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===Z.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):Pn(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){ke(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(ke(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(it("</"+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){le(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=Pn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||le(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,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):le(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),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):le(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||ke(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||ke(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||ke(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||ke(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||ke(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)):le(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):le(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){le(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)):(process.env.NODE_ENV!=="production"&&t===34||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=Z.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===Z.ScriptEnd[3]?this.startSpecial(Z.ScriptEnd,4):t===Z.StyleEnd[3]?this.startSpecial(Z.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Z.TitleEnd[3]?this.startSpecial(Z.TitleEnd,4):t===Z.TextareaEnd[3]?this.startSpecial(Z.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===Z.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 Kr={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 Zt(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function xe(e,t){const n=Zt("MODE",t),r=Zt(e,t);return n===3?r===!0:r!==!1}function Pe(e,t,n,...r){const o=xe(e,t);return process.env.NODE_ENV!=="production"&&o&<(e,t,n,...r),o}function lt(e,t,n,...r){if(Zt(e,t)==="suppress-warning")return;const{message:i,link:l}=Kr[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${l?`
|
|
10
|
+
Details: ${l}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function Qt(e){throw e}function Fn(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function j(e,t,n,r){const o=process.env.NODE_ENV!=="production"?(n||Wr)[e]+(r||""):`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const Wr={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 '<' 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.
|
|
11
|
+
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:""},ne=e=>e.type===4&&e.isStatic;function jn(e){switch(e){case"Teleport":case"teleport":return He;case"Suspense":case"suspense":return It;case"KeepAlive":case"keep-alive":return nt;case"BaseTransition":case"base-transition":return On}}const Gr=/^\d|[^\$\w\xA0-\uFFFF]/,Vt=e=>!Gr.test(e),Jr=/[A-Za-z_$\xA0-\uFFFF]/,Yr=/[\.\?\w$\xA0-\uFFFF]/,Xr=/\s+[.[]\s*|\s*[.[]\s+/g,zn=e=>e.type===4?e.content:e.loc.source,Un=e=>{const t=zn(e).trim().replace(Xr,a=>a.trim());let n=0,r=[],o=0,i=0,l=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")r.push(n),n=1,o++;else if(c==="(")r.push(n),n=2,i++;else if(!(a===0?Jr:Yr).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=r.pop())}break;case 3:c===l&&(n=r.pop(),l=null);break}}return!o&&!i},Zr=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Qr=e=>Zr.test(zn(e));function Hn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function se(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(X(t)?o.name===t:t.test(o.name)))return o}}function Je(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Ne(i.arg,t))return i}}function Ne(e,t){return!!(e&&ne(e)&&e.content===t)}function Vr(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function en(e){return e.type===5||e.type===2}function eo(e){return e.type===7&&e.name==="slot"}function at(e){return e.type===1&&e.tagType===3}function ct(e){return e.type===1&&e.tagType===2}const to=new Set([Ke,We]);function qn(e,t=[]){if(e&&!X(e)&&e.type===14){const n=e.callee;if(!X(n)&&to.has(n))return qn(e.arguments[0],t.concat(e))}return[e,t]}function dt(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!X(o)&&o.type===14){const a=qn(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||X(o))r=de([t]);else if(o.type===14){const a=o.arguments[0];!X(a)&&a.type===15?Kn(t,a)||a.properties.unshift(t):o.callee===qt?r=Y(n.helper(rt),[de([t]),o]):o.arguments.unshift(de([t])),!r&&(r=o)}else o.type===15?(Kn(t,o)||o.properties.unshift(t),r=o):(r=Y(n.helper(rt),[de([t]),o]),l&&l.callee===We&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Kn(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function Ye(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function no(e){return e.type===14&&e.callee===Jt?e.arguments[1].returns:e}const so=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Wn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:et,isPreTag:et,isIgnoreNewlineTag:et,isCustomElement:et,onError:Qt,onWarn:Fn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let $=Wn,Xe=null,ve="",V=null,M=null,re="",ye=-1,_e=-1,tn=0,we=!1,nn=null;const q=[],z=new qr(q,{onerr:oe,ontext(e,t){pt(Q(e,t),e,t)},ontextentity(e,t,n){pt(e,t,n)},oninterpolation(e,t){if(we)return pt(Q(e,t),e,t);let n=e+z.delimiterOpen.length,r=t-z.delimiterClose.length;for(;le(ve.charCodeAt(n));)n++;for(;le(ve.charCodeAt(r-1));)r--;let o=Q(n,r);o.includes("&")&&(o=$.decodeEntities(o,!1)),sn({type:5,content:ut(o,!1,J(n,r)),loc:J(e,t)})},onopentagname(e,t){const n=Q(e,t);V={type:1,tag:n,ns:$.getNamespace(n,q[0],$.ns),tagType:0,props:[],children:[],loc:J(e-1,t),codegenNode:void 0}},onopentagend(e){Jn(e)},onclosetag(e,t){const n=Q(e,t);if(!$.isVoidTag(n)){let r=!1;for(let o=0;o<q.length;o++)if(q[o].tag.toLowerCase()===n.toLowerCase()){r=!0,o>0&&oe(24,q[0].loc.start.offset);for(let l=0;l<=o;l++){const a=q.shift();ft(a,t,l<o)}break}r||oe(23,Yn(e,60))}},onselfclosingtag(e){const t=V.tag;V.isSelfClosing=!0,Jn(e),q[0]&&q[0].tag===t&&ft(q.shift(),e)},onattribname(e,t){M={type:6,name:Q(e,t),nameLoc:J(e,t),value:void 0,loc:J(e)}},ondirname(e,t){const n=Q(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!we&&r===""&&oe(26,e),we||r==="")M={type:6,name:n,nameLoc:J(e,t),value:void 0,loc:J(e)};else if(M={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[D("prop")]:[],loc:J(e)},r==="pre"){we=z.inVPre=!0,nn=V;const o=V.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=mo(o[i]))}},ondirarg(e,t){if(e===t)return;const n=Q(e,t);if(we)M.name+=n,Te(M.nameLoc,t);else{const r=n[0]!=="[";M.arg=ut(r?n:n.slice(1,-1),r,J(e,t),r?3:0)}},ondirmodifier(e,t){const n=Q(e,t);if(we)M.name+="."+n,Te(M.nameLoc,t);else if(M.name==="slot"){const r=M.arg;r&&(r.content+="."+n,Te(r.loc,t))}else{const r=D(n,!0,J(e,t));M.modifiers.push(r)}},onattribdata(e,t){re+=Q(e,t),ye<0&&(ye=e),_e=t},onattribentity(e,t,n){re+=e,ye<0&&(ye=t),_e=n},onattribnameend(e){const t=M.loc.start.offset,n=Q(t,e);M.type===7&&(M.rawName=n),V.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&oe(2,t)},onattribend(e,t){if(V&&M){if(Te(M.loc,t),e!==0)if(re.includes("&")&&(re=$.decodeEntities(re,!0)),M.type===6)M.name==="class"&&(re=Qn(re).trim()),e===1&&!re&&oe(13,t),M.value={type:2,content:re,loc:e===1?J(ye,_e):J(ye-1,_e+1)},z.inSFCRoot&&V.tag==="template"&&M.name==="lang"&&re&&re!=="html"&&z.enterRCDATA(it("</template"),0);else{let n=0;M.exp=ut(re,!1,J(ye,_e),0,n),M.name==="for"&&(M.forParseResult=oo(M.exp));let r=-1;M.name==="bind"&&(r=M.modifiers.findIndex(o=>o.content==="sync"))>-1&&Pe("COMPILER_V_BIND_SYNC",$,M.loc,M.arg.loc.source)&&(M.name="model",M.modifiers.splice(r,1))}(M.type!==7||M.name!=="pre")&&V.props.push(M)}re="",ye=_e=-1},oncomment(e,t){$.comments&&sn({type:3,content:Q(e,t),loc:J(e-4,t+3)})},onend(){const e=ve.length;if(process.env.NODE_ENV!=="production"&&z.state!==1)switch(z.state){case 5:case 8:oe(5,e);break;case 3:case 4:oe(25,z.sectionStart);break;case 28:z.currentSequence===Z.CdataEnd?oe(6,e):oe(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:oe(9,e);break}for(let t=0;t<q.length;t++)ft(q[t],e-1),oe(24,q[t].loc.start.offset)},oncdata(e,t){q[0].ns!==0?pt(Q(e,t),e,t):oe(1,e-9)},onprocessinginstruction(e){(q[0]?q[0].ns:$.ns)===0&&oe(21,e-1)}}),Gn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ro=/^\(|\)$/g;function oo(e){const t=e.loc,n=e.content,r=n.match(so);if(!r)return;const[,o,i]=r,l=(d,f,h=!1)=>{const b=t.start.offset+f,v=b+d.length;return ut(d,!1,J(b,v),0,h?1:0)},a={source:l(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(ro,"").trim();const p=o.indexOf(c),m=c.match(Gn);if(m){c=c.replace(Gn,"").trim();const d=m[1].trim();let f;if(d&&(f=n.indexOf(d,p+c.length),a.key=l(d,f,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?f+d.length:p+c.length),!0))}}return c&&(a.value=l(c,p,!0)),a}function Q(e,t){return ve.slice(e,t)}function Jn(e){z.inSFCRoot&&(V.innerLoc=J(e+1,e+1)),sn(V);const{tag:t,ns:n}=V;n===0&&$.isPreTag(t)&&tn++,$.isVoidTag(t)?ft(V,e):(q.unshift(V),(n===1||n===2)&&(z.inXML=!0)),V=null}function pt(e,t,n){{const i=q[0]&&q[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=$.decodeEntities(e,!1))}const r=q[0]||Xe,o=r.children[r.children.length-1];o&&o.type===2?(o.content+=e,Te(o.loc,n)):r.children.push({type:2,content:e,loc:J(t,n)})}function ft(e,t,n=!1){n?Te(e.loc,Yn(t,60)):Te(e.loc,io(t,62)+1),z.inSFCRoot&&(e.children.length?e.innerLoc.end=be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=be({},e.innerLoc.start),e.innerLoc.source=Q(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:i}=e;if(we||(r==="slot"?e.tagType=2:Xn(e)?e.tagType=3:ao(e)&&(e.tagType=1)),z.inRCDATA||(e.children=Zn(i)),o===0&&$.isIgnoreNewlineTag(r)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&$.isPreTag(r)&&tn--,nn===e&&(we=z.inVPre=!1,nn=null),z.inXML&&(q[0]?q[0].ns:$.ns)===0&&(z.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&xe("COMPILER_V_IF_V_FOR_PRECEDENCE",$)){let c=!1,p=!1;for(let m=0;m<l.length;m++){const d=l[m];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){lt("COMPILER_V_IF_V_FOR_PRECEDENCE",$,e.loc);break}}}if(!z.inSFCRoot&&xe("COMPILER_NATIVE_TEMPLATE",$)&&e.tag==="template"&&!Xn(e)){process.env.NODE_ENV!=="production"&<("COMPILER_NATIVE_TEMPLATE",$,e.loc);const c=q[0]||Xe,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&Pe("COMPILER_INLINE_TEMPLATE",$,a.loc)&&e.children.length&&(a.value={type:2,content:Q(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function io(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n<ve.length-1;)n++;return n}function Yn(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n>=0;)n--;return n}const lo=new Set(["if","else","else-if","for","slot"]);function Xn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&lo.has(t[n].name))return!0}return!1}function ao({tag:e,props:t}){if($.isCustomElement(e))return!1;if(e==="component"||co(e.charCodeAt(0))||jn(e)||$.isBuiltInComponent&&$.isBuiltInComponent(e)||$.isNativeTag&&!$.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Pe("COMPILER_IS_ON_ELEMENT",$,r.loc))return!0}}else if(r.name==="bind"&&Ne(r.arg,"is")&&Pe("COMPILER_IS_ON_ELEMENT",$,r.loc))return!0}return!1}function co(e){return e>64&&e<91}const po=/\r\n/g;function Zn(e){const t=$.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const o=e[r];if(o.type===2)if(tn)o.content=o.content.replace(po,`
|
|
12
|
+
`);else if(fo(o.content)){const i=e[r-1]&&e[r-1].type,l=e[r+1]&&e[r+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&uo(o.content)))?(n=!0,e[r]=null):o.content=" "}else t&&(o.content=Qn(o.content))}return n?e.filter(Boolean):e}function fo(e){for(let t=0;t<e.length;t++)if(!le(e.charCodeAt(t)))return!1;return!0}function uo(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Qn(e){let t="",n=!1;for(let r=0;r<e.length;r++)le(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function sn(e){(q[0]||Xe).children.push(e)}function J(e,t){return{start:z.getPos(e),end:t==null?t:z.getPos(t),source:t==null?t:Q(e,t)}}function ho(e){return J(e.start.offset,e.end.offset)}function Te(e,t){e.end=z.getPos(t),e.source=Q(e.start.offset,t)}function mo(e){const t={type:6,name:e.rawName,nameLoc:J(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 ut(e,t=!1,n,r=0,o=0){return D(e,t,n,r)}function oe(e,t,n){$.onError(j(e,J(t,t),void 0,n))}function go(){z.reset(),V=null,M=null,re="",ye=-1,_e=-1,q.length=0}function vo(e,t){if(go(),ve=e,$=be({},Wn),t){let o;for(o in t)t[o]!=null&&($[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!$.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");z.mode=$.parseMode==="html"?1:$.parseMode==="sfc"?2:0,z.inXML=$.ns===1||$.ns===2;const n=t&&t.delimiters;n&&(z.delimiterOpen=it(n[0]),z.delimiterClose=it(n[1]));const r=Xe=zr([],e);return z.parse(ve),r.loc=J(0,e.length),r.children=Zn(r.children),Xe=null,r}function yo(e,t){ht(e,void 0,t,!!Vn(e))}function Vn(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!ct(t[0])?t[0]:null}function ht(e,t,n,r=!1,o=!1){const{children:i}=e,l=[];for(let d=0;d<i.length;d++){const f=i[d];if(f.type===1&&f.tagType===0){const h=r?0:ae(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,l.push(f);continue}}else{const b=f.codegenNode;if(b.type===13){const v=b.patchFlag;if((v===void 0||v===512||v===1)&&ts(f,n)>=2){const _=ns(f);_&&(b.props=n.hoist(_))}b.dynamicProps&&(b.dynamicProps=n.hoist(b.dynamicProps))}}}else if(f.type===12&&(r?0:ae(f,n))>=2){l.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,ht(f,e,n,!1,o),h&&n.scopes.vSlot--}else if(f.type===11)ht(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)ht(f.branches[h],e,n,f.branches[h].children.length===1,o)}let a=!1;const c=[];if(l.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&me(e.codegenNode.children))e.codegenNode.children=p(Ce(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!me(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=m(e.codegenNode,"default");d&&(c.push(n.cached.length),d.returns=p(Ce(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!me(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=se(e,"slot",!0),f=d&&d.arg&&m(t.codegenNode,d.arg);f&&(c.push(n.cached.length),f.returns=p(Ce(f.returns)),a=!0)}}if(!a)for(const d of l)c.push(n.cached.length),d.codegenNode=n.cache(d.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!me(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(W("__",D(JSON.stringify(c),!1)));function p(d){const f=n.cache(d);return o&&n.hmr&&(f.needArraySpread=!0),f}function m(d,f){if(d.children&&!me(d.children)&&d.children.type===15){const h=d.children.properties.find(b=>b.key===f||b.key.content===f);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function ae(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let l=3;const a=ts(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const p=ae(e.children[c],t);if(p===0)return n.set(e,0),0;p<l&&(l=p)}if(l>1)for(let c=0;c<e.props.length;c++){const p=e.props[c];if(p.type===7&&p.name==="bind"&&p.exp){const m=ae(p.exp,t);if(m===0)return n.set(e,0),0;m<l&&(l=m)}}if(o.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(Se),t.removeHelper(Le(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Re(t.inSSR,o.isComponent))}return n.set(e,l),l}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 ae(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(X(a)||Ot(a))continue;const c=ae(a,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const bo=new Set([Ut,Ht,Ke,We]);function es(e,t){if(e.type===14&&!X(e.callee)&&bo.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ae(n,t);if(n.type===14)return es(n,t)}return 0}function ts(e,t){let n=3;const r=ns(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=ae(l,t);if(c===0)return c;c<n&&(n=c);let p;if(a.type===4?p=ae(a,t):a.type===14?p=es(a,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function ns(e){const t=e.codegenNode;if(t.type===13)return t.props}function Eo(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=_t,isCustomElement:m=_t,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:b=!1,inSSR:v=!1,ssrCssVars:_="",bindingMetadata:N=vr,inline:I=!1,isTS:k=!1,onError:E=Qt,onWarn:S=Fn,compatConfig:C}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),x={filename:t,selfName:T&&Bt(Ee(T[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:m,expressionPlugins:d,scopeId:f,slotted:h,ssr:b,inSSR:v,ssrCssVars:_,bindingMetadata:N,inline:I,isTS:k,onError:E,onWarn:S,compatConfig:C,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(w){const P=x.helpers.get(w)||0;return x.helpers.set(w,P+1),w},removeHelper(w){const P=x.helpers.get(w);if(P){const R=P-1;R?x.helpers.set(w,R):x.helpers.delete(w)}},helperString(w){return`_${$e[x.helper(w)]}`},replaceNode(w){if(process.env.NODE_ENV!=="production"){if(!x.currentNode)throw new Error("Node being replaced is already removed.");if(!x.parent)throw new Error("Cannot replace root node.")}x.parent.children[x.childIndex]=x.currentNode=w},removeNode(w){if(process.env.NODE_ENV!=="production"&&!x.parent)throw new Error("Cannot remove root node.");const P=x.parent.children,R=w?P.indexOf(w):x.currentNode?x.childIndex:-1;if(process.env.NODE_ENV!=="production"&&R<0)throw new Error("node being removed is not a child of current parent");!w||w===x.currentNode?(x.currentNode=null,x.onNodeRemoved()):x.childIndex>R&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(R,1)},onNodeRemoved:_t,addIdentifiers(w){},removeIdentifiers(w){},hoist(w){X(w)&&(w=D(w)),x.hoists.push(w);const P=D(`_hoisted_${x.hoists.length}`,!1,w.loc,2);return P.hoisted=w,P},cache(w,P=!1,R=!1){const B=Ur(x.cached.length,w,P,R);return x.cached.push(B),B}};return x.filters=new Set,x}function ko(e,t){const n=Eo(e,t);mt(e,n),t.hoistStatic&&yo(e,n),t.ssr||xo(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 xo(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=Vn(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&Xt(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let o=64;process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Ge(t,n(Ue),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function No(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];X(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,mt(o,t))}}function mt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(me(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(qe);break;case 5:t.ssr||t.helper(st);break;case 9:for(let i=0;i<e.branches.length;i++)mt(e.branches[i],t);break;case 10:case 11:case 1:case 0:No(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function ss(e,t){const n=X(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(eo))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const p=t(r,c,o);p&&l.push(p)}}return l}}}const gt="/*@__PURE__*/",rs=e=>`${$e[e]}: _${$e[e]}`;function wo(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:m=!1,isTS:d=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:m,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${$e[v]}`},push(v,_=-2,N){h.code+=v},indent(){b(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:b(--h.indentLevel)},newline(){b(h.indentLevel)}};function b(v){h.push(`
|
|
13
|
+
`+" ".repeat(v),0)}return h}function So(e,t={}){const n=wo(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:p,ssr:m}=n,d=Array.from(e.helpers),f=d.length>0,h=!i&&r!=="module";Co(e,n);const v=m?"ssrRender":"render",N=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${v}(${N}) {`),l(),h&&(o("with (_ctx) {"),l(),f&&(o(`const { ${d.map(rs).join(", ")} } = _Vue
|
|
14
14
|
`,-1),c())),e.components.length&&(rn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(rn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),rn(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let I=0;I<e.temps;I++)o(`${I>0?", ":""}_temp${I}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
15
|
-
`,0),c()),m||o("return "),e.codegenNode?ee(e.codegenNode,n):o("null"),h&&(
|
|
16
|
-
`,-1),e.hoists.length)){const
|
|
17
|
-
`,-1)}xo(e.hoists,t),i(),o("return ")}function rn(e,t,{helper:n,push:r,newline:o,isTS:i}){const a=n(t==="filter"?Ft:t==="component"?Rt:Pt);for(let l=0;l<e.length;l++){let c=e[l];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${Xe(c,t)} = ${a}(${JSON.stringify(c)}${d?", true":""})${i?"!":""}`),l<e.length-1&&o()}}function xo(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ee(i,t),r())}t.pure=!1}function So(e){return X(e)||e.type===4||e.type===2||e.type===5||e.type===8}function on(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>me(r)||!So(r));t.push("["),n&&t.indent(),Ze(e,t,n),n&&t.deindent(),t.push("]")}function Ze(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let a=0;a<e.length;a++){const l=e[a];X(l)?o(l,-3):me(l)?on(l,t):ee(l,t),a<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function ee(e,t){if(X(e)){t.push(e,-3);return}if(Ot(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&zn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ee(e.codegenNode,t);break;case 2:wo(e,t);break;case 4:rs(e,t);break;case 5:Co(e,t);break;case 12:ee(e.codegenNode,t);break;case 8:os(e,t);break;case 3:To(e,t);break;case 13:Oo(e,t);break;case 14:Bo(e,t);break;case 15:Io(e,t);break;case 17:Ao(e,t);break;case 18:$o(e,t);break;case 19:Mo(e,t);break;case 20:Ro(e,t);break;case 21:Ze(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return zn(!1,`unhandled codegen node type: ${e.type}`),e}}function wo(e,t){t.push(JSON.stringify(e.content),-3,e)}function rs(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Co(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(st)}(`),ee(e.content,t),n(")")}function os(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];X(r)?t.push(r,-3):ee(r,t)}}function _o(e,t){const{push:n}=t;if(e.type===8)n("["),os(e,t),n("]");else if(e.isStatic){const r=Vt(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function To(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(Ke)}(${JSON.stringify(e.content)})`,-3,e)}function Oo(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:a,children:l,patchFlag:c,dynamicProps:d,directives:m,isBlock:p,disableTracking:f,isComponent:h}=e;let b;if(c)if(process.env.NODE_ENV!=="production")if(c<0)b=c+` /* ${Ue[c]} */`;else{const _=Object.keys(Ue).map(Number).filter(x=>x>0&&c&x).map(x=>Ue[x]).join(", ");b=c+` /* ${_} */`}else b=String(c);m&&n(r(jt)+"("),p&&n(`(${r(we)}(${f?"true":""}), `),o&&n(gt);const v=p?Le(t.inSSR,h):Re(t.inSSR,h);n(r(v)+"(",-2,e),Ze(Do([i,a,l,b,d]),t),n(")"),p&&n(")"),m&&(n(", "),ee(m,t),n(")"))}function Do(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Bo(e,t){const{push:n,helper:r,pure:o}=t,i=X(e.callee)?e.callee:r(e.callee);o&&n(gt),n(i+"(",-2,e),Ze(e.arguments,t),n(")")}function Io(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const l=a.length>1||process.env.NODE_ENV!=="production"&&a.some(c=>c.value.type!==4);n(l?"{":"{ "),l&&r();for(let c=0;c<a.length;c++){const{key:d,value:m}=a[c];_o(d,t),n(": "),ee(m,t),c<a.length-1&&(n(","),i())}l&&o(),n(l?"}":" }")}function Ao(e,t){on(e.elements,t)}function $o(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:a,body:l,newline:c,isSlot:d}=e;d&&n(`_${$e[Gt]}(`),n("(",-2,e),me(i)?Ze(i,t):i&&ee(i,t),n(") => "),(c||l)&&(n("{"),r()),a?(c&&n("return "),me(a)?on(a,t):ee(a,t)):l&&ee(l,t),(c||l)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Mo(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:a,indent:l,deindent:c,newline:d}=t;if(n.type===4){const p=!Vt(n.content);p&&a("("),rs(n,t),p&&a(")")}else a("("),ee(n,t),a(")");i&&l(),t.indentLevel++,i||a(" "),a("? "),ee(r,t),t.indentLevel--,i&&d(),i||a(" "),a(": ");const m=o.type===19;m||t.indentLevel++,ee(o,t),m||t.indentLevel--,i&&c(!0)}function Ro(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:a}=t,{needPauseTracking:l,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),l&&(o(),n(`${r(ot)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),ee(e.value,t),l&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(ot)}(1),`),a(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const Lo=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"),Po=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Oe(e,t,n=!1,r=!1){const o=e.content;if(o.trim())try{new Function(r?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let a=i.message;const l=o.replace(Po,"").match(Lo);l&&(a=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(j(45,e.loc,void 0,a))}}const Fo=(e,t)=>{if(e.type===5)e.content=an(e.content,t);else if(e.type===1){const n=se(e,"memo");for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&o.name!=="for"){const i=o.exp,a=o.arg;i&&i.type===4&&!(o.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(o.exp=an(i,t,o.name==="slot")),a&&a.type===4&&!a.isStatic&&(o.arg=an(a,t))}}}};function an(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Oe(e,t,n,r),e}const jo=ns(/^(if|else|else-if)$/,(e,t,n)=>zo(e,t,n,(r,o,i)=>{const a=n.parent.children;let l=a.indexOf(r),c=0;for(;l-->=0;){const d=a[l];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(i)r.codegenNode=as(o,c,n);else{const d=Ho(r.codegenNode);d.alternate=as(o,c+r.branches.length-1,n)}}}));function zo(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(j(28,t.loc)),t.exp=D("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Oe(t.exp,n),t.name==="if"){const o=is(e,t),i={type:9,loc:co(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children,i=[];let a=o.indexOf(e);for(;a-->=-1;){const l=o[a];if(l&&l.type===3){n.removeNode(l),process.env.NODE_ENV!=="production"&&i.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(j(30,e.loc)),n.removeNode();const c=is(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&l.branches.forEach(({userKey:p})=>{Uo(p,m)&&n.onError(j(29,c.userKey.loc))})}l.branches.push(c);const d=r&&r(l,c,!1);mt(c,n),d&&d(),n.currentNode=null}else n.onError(j(30,e.loc));break}}}function is(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!se(e,"for")?e.children:[e],userKey:Ye(e,"key"),isTemplateIf:n}}function as(e,t,n){return e.condition?Yt(e.condition,ls(e,t,n),Y(n.helper(Ke),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):ls(e,t,n)}function ls(e,t,n){const{helper:r}=n,o=W("key",D(`${t}`,!1,ie,2)),{children:i}=e,a=i[0];if(i.length!==1||a.type!==1)if(i.length===1&&a.type===11){const c=a.codegenNode;return dt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(d=>d.type!==3).length===1&&(c|=2048),Je(n,r(He),de([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=a.codegenNode,d=Zr(c);return d.type===13&&Xt(d,n),dt(d,o,n),c}}function Uo(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ho(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 qo=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(i.type!==4||!i.isStatic)return n.onError(j(52,i.loc)),{props:[W(i,D("",!0,o))]};cs(e),a=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),r.some(l=>l.content==="camel")&&(i.type===4?i.isStatic?i.content=Ee(i.content):i.content=`${n.helperString(Kt)}(${i.content})`:(i.children.unshift(`${n.helperString(Kt)}(`),i.children.push(")"))),n.inSSR||(r.some(l=>l.content==="prop")&&ds(i,"."),r.some(l=>l.content==="attr")&&ds(i,"^")),{props:[W(i,a)]}},cs=(e,t)=>{const n=e.arg,r=Ee(n.content);e.exp=D(r,!1,n.loc)},ds=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ko=ns("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return Wo(e,t,n,i=>{const a=Y(r(zt),[i.source]),l=lt(e),c=se(e,"memo"),d=Ye(e,"key",!1,!0);d&&d.type===7&&!d.exp&&cs(d);let p=d&&(d.type===6?d.value?D(d.value.content,!0):void 0:d.exp);const f=d&&p?W("key",p):null,h=i.source.type===4&&i.source.constType>0,b=h?64:d?128:256;return i.codegenNode=Je(n,r(He),void 0,a,b,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:_}=i;process.env.NODE_ENV!=="production"&&l&&e.children.some(k=>{if(k.type===1){const E=Ye(k,"key");if(E)return n.onError(j(33,E.loc)),!0}});const x=_.length!==1||_[0].type!==1,I=ct(e)?e:l&&e.children.length===1&&ct(e.children[0])?e.children[0]:null;if(I?(v=I.codegenNode,l&&f&&dt(v,f,n)):x?v=Je(n,r(He),f?de([f]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=_[0].codegenNode,l&&f&&dt(v,f,n),v.isBlock!==!h&&(v.isBlock?(o(we),o(Le(n.inSSR,v.isComponent))):o(Re(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(we),r(Le(n.inSSR,v.isComponent))):r(Re(n.inSSR,v.isComponent))),c){const k=Me(ln(i.parseResult,[D("_cached")]));k.body=Fr([pe(["const _memo = (",c.exp,")"]),pe(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(An)}(_cached, _memo)) return _cached`]),pe(["const _item = ",v]),D("_item.memo = _memo"),D("return _item")]),a.arguments.push(k,D("_cache"),D(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Me(ln(i.parseResult),v,!0))}})});function Wo(e,t,n,r){if(!t.exp){n.onError(j(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(j(32,t.loc));return}ps(o,n);const{addIdentifiers:i,removeIdentifiers:a,scopes:l}=n,{source:c,value:d,key:m,index:p}=o,f={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:m,objectIndexAlias:p,parseResult:o,children:lt(e)?e.children:[e]};n.replaceNode(f),l.vFor++;const h=r&&r(f);return()=>{l.vFor--,h&&h()}}function ps(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Oe(e.source,t),e.key&&Oe(e.key,t,!0),e.index&&Oe(e.index,t,!0),e.value&&Oe(e.value,t,!0)),e.finalized=!0)}function ln({value:e,key:t,index:n},r=[]){return Go([e,t,n,...r])}function Go(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||D("_".repeat(r+1),!1))}const fs=D("undefined",!1),Jo=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=se(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Yo=(e,t,n,r)=>Me(e,n,!1,!0,n.length?n[0].loc:r);function Xo(e,t,n=Yo){t.helper(Gt);const{children:r,loc:o}=e,i=[],a=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=se(e,"slot",!0);if(c){const{arg:_,exp:x}=c;_&&!ne(_)&&(l=!0),i.push(W(_||D("default",!0),n(x,void 0,r,o)))}let d=!1,m=!1;const p=[],f=new Set;let h=0;for(let _=0;_<r.length;_++){const x=r[_];let I;if(!lt(x)||!(I=se(x,"slot",!0))){x.type!==3&&p.push(x);continue}if(c){t.onError(j(37,I.loc));break}d=!0;const{children:k,loc:E}=x,{arg:w=D("default",!0),exp:C,loc:T}=I;let N;ne(w)?N=w?w.content:"default":l=!0;const S=se(x,"for"),P=n(C,S,k,E);let M,B;if(M=se(x,"if"))l=!0,a.push(Yt(M.exp,vt(w,P,h++),fs));else if(B=se(x,/^else(-if)?$/,!0)){let F=_,U;for(;F--&&(U=r[F],!(U.type!==3&&cn(U))););if(U&<(U)&&se(U,/^(else-)?if$/)){let H=a[a.length-1];for(;H.alternate.type===19;)H=H.alternate;H.alternate=B.exp?Yt(B.exp,vt(w,P,h++),fs):vt(w,P,h++)}else t.onError(j(30,B.loc))}else if(S){l=!0;const F=S.forParseResult;F?(ps(F,t),a.push(Y(t.helper(zt),[F.source,Me(ln(F),vt(w,P),!0)]))):t.onError(j(32,S.loc))}else{if(N){if(f.has(N)){t.onError(j(38,T));continue}f.add(N),N==="default"&&(m=!0)}i.push(W(w,P))}}if(!c){const _=(x,I)=>{const k=n(x,void 0,I,o);return t.compatConfig&&(k.isNonScopedSlot=!0),W("default",k)};d?p.length&&p.some(x=>cn(x))&&(m?t.onError(j(39,p[0].loc)):i.push(_(void 0,p))):i.push(_(void 0,r))}const b=l?2:yt(e.children)?3:1;let v=de(i.concat(W("_",D(b+(process.env.NODE_ENV!=="production"?` /* ${yr[b]} */`:""),!1))),o);return a.length&&(v=Y(t.helper(In),[v,Ce(a)])),{slots:v,hasDynamicSlots:l}}function vt(e,t,n){const r=[W("name",e),W("fn",t)];return n!=null&&r.push(W("key",D(String(n),!0))),de(r)}function yt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yt(n.children))return!0;break;case 9:if(yt(n.branches))return!0;break;case 10:case 11:if(yt(n.children))return!0;break}}return!1}function cn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():cn(e.content)}const us=new WeakMap,Qo=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let a=i?Zo(e,t):`"${r}"`;const l=hr(a)&&a.callee===Lt;let c,d,m=0,p,f,h,b=l||a===qe||a===It||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const v=hs(e,t,void 0,i,l);c=v.props,m=v.patchFlag,f=v.dynamicPropNames;const _=v.directives;h=_&&_.length?Ce(_.map(x=>ei(x,t))):void 0,v.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(a===nt&&(b=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(j(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&a!==qe&&a!==nt){const{slots:_,hasDynamicSlots:x}=Xo(e,t);d=_,x&&(m|=1024)}else if(e.children.length===1&&a!==qe){const _=e.children[0],x=_.type,I=x===5||x===8;I&&le(_,t)===0&&(m|=1),I||x===2?d=_:d=e.children}else d=e.children;f&&f.length&&(p=ti(f)),e.codegenNode=Je(t,a,c,d,m===0?void 0:m,p,h,!!b,!1,i,e.loc)};function Zo(e,t,n=!1){let{tag:r}=e;const o=dn(r),i=Ye(e,"is",!1,!0);if(i)if(o||Ne("COMPILER_IS_ON_ELEMENT",t)){let l;if(i.type===6?l=i.value&&D(i.value.content,!0):(l=i.exp,l||(l=D("is",!1,i.arg.loc))),l)return Y(t.helper(Lt),[l])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const a=Pn(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Rt),t.components.add(r),Xe(r,"component"))}function hs(e,t,n=e.props,r,o,i=!1){const{tag:a,loc:l,children:c}=e;let d=[];const m=[],p=[],f=c.length>0;let h=!1,b=0,v=!1,_=!1,x=!1,I=!1,k=!1,E=!1;const w=[],C=P=>{d.length&&(m.push(de(ms(d),l)),d=[]),P&&m.push(P)},T=()=>{t.scopes.vFor>0&&d.push(W(D("ref_for",!0),D("true")))},N=({key:P,value:M})=>{if(ne(P)){const B=P.content,F=Tt(B);if(F&&(!r||o)&&B.toLowerCase()!=="onclick"&&B!=="onUpdate:modelValue"&&!Cn(B)&&(I=!0),F&&Cn(B)&&(E=!0),F&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&le(M,t)>0)return;B==="ref"?v=!0:B==="class"?_=!0:B==="style"?x=!0:B!=="key"&&!w.includes(B)&&w.push(B),r&&(B==="class"||B==="style")&&!w.includes(B)&&w.push(B)}else k=!0};for(let P=0;P<n.length;P++){const M=n[P];if(M.type===6){const{loc:B,name:F,nameLoc:U,value:H}=M;let ce=!0;if(F==="ref"&&(v=!0,T()),F==="is"&&(dn(a)||H&&H.content.startsWith("vue:")||Ne("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(W(D(F,!0,U),D(H?H.content:"",ce,H?H.loc:B)))}else{const{name:B,arg:F,exp:U,loc:H,modifiers:ce}=M,ge=B==="bind",Be=B==="on";if(B==="slot"){r||t.onError(j(40,H));continue}if(B==="once"||B==="memo"||B==="is"||ge&&xe(F,"is")&&(dn(a)||Ne("COMPILER_IS_ON_ELEMENT",t))||Be&&i)continue;if((ge&&xe(F,"key")||Be&&f&&xe(F,"vue:before-update"))&&(h=!0),ge&&xe(F,"ref")&&T(),!F&&(ge||Be)){if(k=!0,U)if(ge){if(C(),process.env.NODE_ENV!=="production"&&m.some(ue=>ue.type===15?ue.properties.some(({key:Ie})=>Ie.type!==4||!Ie.isStatic?!0:Ie.content!=="class"&&Ie.content!=="style"&&!Tt(Ie.content)):!0)&&Pe("COMPILER_V_BIND_OBJECT_ORDER",t,H),Ne("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(U);continue}T(),C(),m.push(U)}else C({type:14,loc:H,callee:t.helper(qt),arguments:r?[U]:[U,"true"]});else t.onError(j(ge?34:35,H));continue}ge&&ce.some(G=>G.content==="prop")&&(b|=32);const Ve=t.directiveTransforms[B];if(Ve){const{props:G,needRuntime:ue}=Ve(M,e,t);!i&&G.forEach(N),Be&&F&&!ne(F)?C(de(G,l)):d.push(...G),ue&&(p.push(M),Ot(ue)&&us.set(M,ue))}else mr(B)||(p.push(M),f&&(h=!0))}}let S;if(m.length?(C(),m.length>1?S=Y(t.helper(rt),m,l):S=m[0]):d.length&&(S=de(ms(d),l)),k?b|=16:(_&&!r&&(b|=2),x&&!r&&(b|=4),w.length&&(b|=8),I&&(b|=32)),!h&&(b===0||b===32)&&(v||E||p.length>0)&&(b|=512),!t.inSSR&&S)switch(S.type){case 15:let P=-1,M=-1,B=!1;for(let H=0;H<S.properties.length;H++){const ce=S.properties[H].key;ne(ce)?ce.content==="class"?P=H:ce.content==="style"&&(M=H):ce.isHandlerKey||(B=!0)}const F=S.properties[P],U=S.properties[M];B?S=Y(t.helper(We),[S]):(F&&!ne(F.value)&&(F.value=Y(t.helper(Ut),[F.value])),U&&(x||U.value.type===4&&U.value.content.trim()[0]==="["||U.value.type===17)&&(U.value=Y(t.helper(Ht),[U.value])));break;case 14:break;default:S=Y(t.helper(We),[Y(t.helper(Ge),[S])]);break}return{props:S,directives:p,patchFlag:b,dynamicPropNames:w,shouldUseBlock:h}}function ms(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,a=t.get(i);a?(i==="style"||i==="class"||Tt(i))&&Vo(a,o):(t.set(i,o),n.push(o))}return n}function Vo(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ce([e.value,t.value],e.loc)}function ei(e,t){const n=[],r=us.get(e);r?n.push(t.helperString(r)):(t.helper(Pt),t.directives.add(e.name),n.push(Xe(e.name,"directive")));const{loc:o}=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=D("true",!1,o);n.push(de(e.modifiers.map(a=>W(a,i)),o))}return Ce(n,e.loc)}function ti(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function dn(e){return e==="component"||e==="Component"}const ni=(e,t)=>{if(ct(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=si(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let l=2;i&&(a[2]=i,l=3),n.length&&(a[3]=Me([],n,!1,!1,r),l=4),t.scopeId&&!t.slotted&&(l=5),a.splice(l),e.codegenNode=Y(t.helper(Bn),a,r)}};function si(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const a=e.props[i];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=Ee(a.name),o.push(a)));else if(a.name==="bind"&&xe(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const l=Ee(a.arg.content);n=a.exp=D(l,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&ne(a.arg)&&(a.arg.content=Ee(a.arg.content)),o.push(a)}if(o.length>0){const{props:i,directives:a}=hs(e,t,o,!1,!1);r=i,a.length&&t.onError(j(36,a[0].loc))}return{slotName:n,slotProps:r}}const gs=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:a}=e;!e.exp&&!i.length&&n.onError(j(35,o));let l;if(a.type===4)if(a.isStatic){let p=a.content;process.env.NODE_ENV!=="production"&&p.startsWith("vnode")&&n.onError(j(51,a.loc)),p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const f=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?vr(Ee(p)):`on:${p}`;l=D(f,!0,a.loc)}else l=pe([`${n.helperString(Wt)}(`,a,")"]);else l=a,l.children.unshift(`${n.helperString(Wt)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=jn(c),f=!(p||Jr(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Oe(c,n,!1,h),(f||d&&p)&&(c=pe([`${f?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[W(l,c||D("() => {}",!1,o))]};return r&&(m=r(m)),d&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(p=>p.key.isHandlerKey=!0),m},ri=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const a=n[i];if(en(a)){o=!0;for(let l=i+1;l<n.length;l++){const c=n[l];if(en(c))r||(r=n[i]=pe([a],a.loc)),r.children.push(" + ",c),n.splice(l,1),l--;else{r=void 0;break}}}}if(!(!o||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 a=n[i];if(en(a)||a.type===8){const l=[];(a.type!==2||a.content!==" ")&&l.push(a),!t.ssr&&le(a,t)===0&&l.push(1+(process.env.NODE_ENV!=="production"?` /* ${Ue[1]} */`:"")),n[i]={type:12,content:a,loc:a.loc,codegenNode:Y(t.helper(Mt),l)}}}}},vs=new WeakSet,oi=(e,t)=>{if(e.type===1&&se(e,"once",!0))return vs.has(e)||t.inVOnce||t.inSSR?void 0:(vs.add(e),t.inVOnce=!0,t.helper(ot),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},ys=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(j(41,e.loc)),bt();const i=r.loc.source.trim(),a=r.type===4?r.content:i,l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased")return n.onError(j(44,r.loc)),bt();if(!a.trim()||!jn(r))return n.onError(j(42,r.loc)),bt();const c=o||D("modelValue",!0),d=o?ne(o)?`onUpdate:${Ee(o.content)}`:pe(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const p=n.isTS?"($event: any)":"$event";m=pe([`${p} => ((`,r,") = $event)"]);const f=[W(c,e.exp),W(d,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(Vt(v)?v:JSON.stringify(v))+": true").join(", "),b=o?ne(o)?`${o.content}Modifiers`:pe([o,' + "Modifiers"']):"modelModifiers";f.push(W(b,D(`{ ${h} }`,!1,e.loc,2)))}return bt(f)};function bt(e=[]){return{props:e}}const ii=/[\w).+\-_$\]]/,ai=(e,t)=>{Ne("COMPILER_FILTERS",t)&&(e.type===5?Et(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Et(n.exp,t)}))};function Et(e,t){if(e.type===4)bs(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?bs(r,t):r.type===8?Et(e,t):r.type===5&&Et(r.content,t))}}function bs(e,t){const n=e.content;let r=!1,o=!1,i=!1,a=!1,l=0,c=0,d=0,m=0,p,f,h,b,v=[];for(h=0;h<n.length;h++)if(f=p,p=n.charCodeAt(h),r)p===39&&f!==92&&(r=!1);else if(o)p===34&&f!==92&&(o=!1);else if(i)p===96&&f!==92&&(i=!1);else if(a)p===47&&f!==92&&(a=!1);else if(p===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!l&&!c&&!d)b===void 0?(m=h+1,b=n.slice(0,h).trim()):_();else{switch(p){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:l++;break;case 125:l--;break}if(p===47){let x=h-1,I;for(;x>=0&&(I=n.charAt(x),I===" ");x--);(!I||!ii.test(I))&&(a=!0)}}b===void 0?b=n.slice(0,h).trim():m!==0&&_();function _(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&&at("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)b=li(b,v[h],t);e.content=b,e.ast=void 0}}function li(e,t,n){n.helper(Ft);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Xe(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Xe(o,"filter")}(${e}${i!==")"?","+i:i}`}}const Es=new WeakSet,ci=(e,t)=>{if(e.type===1){const n=se(e,"memo");return!n||Es.has(e)?void 0:(Es.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Xt(r,t),e.codegenNode=Y(t.helper(Jt),[n.exp,Me(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function di(e){return[[oi,jo,ci,Ko,ai,...process.env.NODE_ENV!=="production"?[Fo]:[],ni,Qo,Jo,ri],{on:gs,bind:qo,model:ys}]}function pi(e,t={}){const n=t.onError||Zt,r=t.mode==="module";t.prefixIdentifiers===!0?n(j(47)):r&&n(j(48));const o=!1;t.cacheHandlers&&n(j(49)),t.scopeId&&!r&&n(j(50));const i=be({},t,{prefixIdentifiers:o}),a=X(e)?uo(e,i):e,[l,c]=di();return vo(a,be({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:be({},c,t.directiveTransforms||{})})),ko(a,i)}const fi=()=>({props:[]});/**
|
|
18
|
-
* @vue/compiler-dom v3.5.
|
|
15
|
+
`,0),c()),m||o("return "),e.codegenNode?ee(e.codegenNode,n):o("null"),h&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Co(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,p=a,m=Array.from(e.helpers);if(m.length>0&&(o(`const _Vue = ${p}
|
|
16
|
+
`,-1),e.hoists.length)){const d=[At,$t,qe,Mt,In].filter(f=>m.includes(f)).map(rs).join(", ");o(`const { ${d} } = _Vue
|
|
17
|
+
`,-1)}_o(e.hoists,t),i(),o("return ")}function rn(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?Ft:t==="component"?Rt:Pt);for(let a=0;a<e.length;a++){let c=e[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),r(`const ${Ye(c,t)} = ${l}(${JSON.stringify(c)}${p?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function _o(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ee(i,t),r())}t.pure=!1}function To(e){return X(e)||e.type===4||e.type===2||e.type===5||e.type===8}function on(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>me(r)||!To(r));t.push("["),n&&t.indent(),Ze(e,t,n),n&&t.deindent(),t.push("]")}function Ze(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];X(a)?o(a,-3):me(a)?on(a,t):ee(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function ee(e,t){if(X(e)){t.push(e,-3);return}if(Ot(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Hn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ee(e.codegenNode,t);break;case 2:Oo(e,t);break;case 4:os(e,t);break;case 5:Do(e,t);break;case 12:ee(e.codegenNode,t);break;case 8:is(e,t);break;case 3:Io(e,t);break;case 13:Ao(e,t);break;case 14:Mo(e,t);break;case 15:Ro(e,t);break;case 17:Lo(e,t);break;case 18:Po(e,t);break;case 19:Fo(e,t);break;case 20:jo(e,t);break;case 21:Ze(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Hn(!1,`unhandled codegen node type: ${e.type}`),e}}function Oo(e,t){t.push(JSON.stringify(e.content),-3,e)}function os(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Do(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(st)}(`),ee(e.content,t),n(")")}function is(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];X(r)?t.push(r,-3):ee(r,t)}}function Bo(e,t){const{push:n}=t;if(e.type===8)n("["),is(e,t),n("]");else if(e.isStatic){const r=Vt(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Io(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(qe)}(${JSON.stringify(e.content)})`,-3,e)}function Ao(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:p,directives:m,isBlock:d,disableTracking:f,isComponent:h}=e;let b;if(c)if(process.env.NODE_ENV!=="production")if(c<0)b=c+` /* ${tt[c]} */`;else{const _=Object.keys(tt).map(Number).filter(N=>N>0&&c&N).map(N=>tt[N]).join(", ");b=c+` /* ${_} */`}else b=String(c);m&&n(r(jt)+"("),d&&n(`(${r(Se)}(${f?"true":""}), `),o&&n(gt);const v=d?Le(t.inSSR,h):Re(t.inSSR,h);n(r(v)+"(",-2,e),Ze($o([i,l,a,b,p]),t),n(")"),d&&n(")"),m&&(n(", "),ee(m,t),n(")"))}function $o(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Mo(e,t){const{push:n,helper:r,pure:o}=t,i=X(e.callee)?e.callee:r(e.callee);o&&n(gt),n(i+"(",-2,e),Ze(e.arguments,t),n(")")}function Ro(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",-2,e);return}const a=l.length>1||process.env.NODE_ENV!=="production"&&l.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:p,value:m}=l[c];Bo(p,t),n(": "),ee(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Lo(e,t){on(e.elements,t)}function Po(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:p}=e;p&&n(`_${$e[Gt]}(`),n("(",-2,e),me(i)?Ze(i,t):i&&ee(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),me(l)?on(l,t):ee(l,t)):a&&ee(a,t),(c||a)&&(o(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Fo(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:p}=t;if(n.type===4){const d=!Vt(n.content);d&&l("("),os(n,t),d&&l(")")}else l("("),ee(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),ee(r,t),t.indentLevel--,i&&p(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,ee(o,t),m||t.indentLevel--,i&&c(!0)}function jo(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${r(ot)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),ee(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${r(ot)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const zo=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"),Uo=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Oe(e,t,n=!1,r=!1){const o=e.content;if(o.trim())try{new Function(r?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(Uo,"").match(zo);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(j(45,e.loc,void 0,l))}}const Ho=(e,t)=>{if(e.type===5)e.content=ln(e.content,t);else if(e.type===1){const n=se(e,"memo");for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&o.name!=="for"){const i=o.exp,l=o.arg;i&&i.type===4&&!(o.name==="on"&&l)&&!(n&&l&&l.type===4&&l.content==="key")&&(o.exp=ln(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=ln(l,t))}}}};function ln(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Oe(e,t,n,r),e}const qo=ss(/^(if|else|else-if)$/,(e,t,n)=>Ko(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const p=l[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(i)r.codegenNode=as(o,c,n);else{const p=Go(r.codegenNode);p.alternate=as(o,c+r.branches.length-1,n)}}}));function Ko(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(j(28,t.loc)),t.exp=D("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Oe(t.exp,n),t.name==="if"){const o=ls(e,t),i={type:9,loc:ho(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children,i=[];let l=o.indexOf(e);for(;l-->=-1;){const a=o[l];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&i.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(j(30,e.loc)),n.removeNode();const c=ls(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&a.branches.forEach(({userKey:d})=>{Wo(d,m)&&n.onError(j(29,c.userKey.loc))})}a.branches.push(c);const p=r&&r(a,c,!1);mt(c,n),p&&p(),n.currentNode=null}else n.onError(j(30,e.loc));break}}}function ls(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!se(e,"for")?e.children:[e],userKey:Je(e,"key"),isTemplateIf:n}}function as(e,t,n){return e.condition?Yt(e.condition,cs(e,t,n),Y(n.helper(qe),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):cs(e,t,n)}function cs(e,t,n){const{helper:r}=n,o=W("key",D(`${t}`,!1,ie,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return dt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(p=>p.type!==3).length===1&&(c|=2048),Ge(n,r(Ue),de([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,p=no(c);return p.type===13&&Xt(p,n),dt(p,o,n),c}}function Wo(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Go(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 Jo=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:l}=e;if(l&&l.type===4&&!l.content.trim()&&(l=void 0),!l){if(i.type!==4||!i.isStatic)return n.onError(j(52,i.loc)),{props:[W(i,D("",!0,o))]};ds(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=Ee(i.content):i.content=`${n.helperString(Kt)}(${i.content})`:(i.children.unshift(`${n.helperString(Kt)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&ps(i,"."),r.some(a=>a.content==="attr")&&ps(i,"^")),{props:[W(i,l)]}},ds=(e,t)=>{const n=e.arg,r=Ee(n.content);e.exp=D(r,!1,n.loc)},ps=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Yo=ss("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return Xo(e,t,n,i=>{const l=Y(r(zt),[i.source]),a=at(e),c=se(e,"memo"),p=Je(e,"key",!1,!0);p&&p.type===7&&!p.exp&&ds(p);let d=p&&(p.type===6?p.value?D(p.value.content,!0):void 0:p.exp);const f=p&&d?W("key",d):null,h=i.source.type===4&&i.source.constType>0,b=h?64:p?128:256;return i.codegenNode=Ge(n,r(Ue),void 0,l,b,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:_}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(k=>{if(k.type===1){const E=Je(k,"key");if(E)return n.onError(j(33,E.loc)),!0}});const N=_.length!==1||_[0].type!==1,I=ct(e)?e:a&&e.children.length===1&&ct(e.children[0])?e.children[0]:null;if(I?(v=I.codegenNode,a&&f&&dt(v,f,n)):N?v=Ge(n,r(Ue),f?de([f]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=_[0].codegenNode,a&&f&&dt(v,f,n),v.isBlock!==!h&&(v.isBlock?(o(Se),o(Le(n.inSSR,v.isComponent))):o(Re(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(Se),r(Le(n.inSSR,v.isComponent))):r(Re(n.inSSR,v.isComponent))),c){const k=Me(an(i.parseResult,[D("_cached")]));k.body=Hr([pe(["const _memo = (",c.exp,")"]),pe(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${n.helperString(Mn)}(_cached, _memo)) return _cached`]),pe(["const _item = ",v]),D("_item.memo = _memo"),D("return _item")]),l.arguments.push(k,D("_cache"),D(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Me(an(i.parseResult),v,!0))}})});function Xo(e,t,n,r){if(!t.exp){n.onError(j(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(j(32,t.loc));return}fs(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:p,key:m,index:d}=o,f={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:m,objectIndexAlias:d,parseResult:o,children:at(e)?e.children:[e]};n.replaceNode(f),a.vFor++;const h=r&&r(f);return()=>{a.vFor--,h&&h()}}function fs(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Oe(e.source,t),e.key&&Oe(e.key,t,!0),e.index&&Oe(e.index,t,!0),e.value&&Oe(e.value,t,!0)),e.finalized=!0)}function an({value:e,key:t,index:n},r=[]){return Zo([e,t,n,...r])}function Zo(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||D("_".repeat(r+1),!1))}const us=D("undefined",!1),Qo=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=se(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Vo=(e,t,n,r)=>Me(e,n,!1,!0,n.length?n[0].loc:r);function ei(e,t,n=Vo){t.helper(Gt);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=se(e,"slot",!0);if(c){const{arg:_,exp:N}=c;_&&!ne(_)&&(a=!0),i.push(W(_||D("default",!0),n(N,void 0,r,o)))}let p=!1,m=!1;const d=[],f=new Set;let h=0;for(let _=0;_<r.length;_++){const N=r[_];let I;if(!at(N)||!(I=se(N,"slot",!0))){N.type!==3&&d.push(N);continue}if(c){t.onError(j(37,I.loc));break}p=!0;const{children:k,loc:E}=N,{arg:S=D("default",!0),exp:C,loc:T}=I;let x;ne(S)?x=S?S.content:"default":a=!0;const w=se(N,"for"),P=n(C,w,k,E);let R,B;if(R=se(N,"if"))a=!0,l.push(Yt(R.exp,vt(S,P,h++),us));else if(B=se(N,/^else(-if)?$/,!0)){let F=_,U;for(;F--&&(U=r[F],!(U.type!==3&&cn(U))););if(U&&at(U)&&se(U,/^(else-)?if$/)){let H=l[l.length-1];for(;H.alternate.type===19;)H=H.alternate;H.alternate=B.exp?Yt(B.exp,vt(S,P,h++),us):vt(S,P,h++)}else t.onError(j(30,B.loc))}else if(w){a=!0;const F=w.forParseResult;F?(fs(F,t),l.push(Y(t.helper(zt),[F.source,Me(an(F),vt(S,P),!0)]))):t.onError(j(32,w.loc))}else{if(x){if(f.has(x)){t.onError(j(38,T));continue}f.add(x),x==="default"&&(m=!0)}i.push(W(S,P))}}if(!c){const _=(N,I)=>{const k=n(N,void 0,I,o);return t.compatConfig&&(k.isNonScopedSlot=!0),W("default",k)};p?d.length&&d.some(N=>cn(N))&&(m?t.onError(j(39,d[0].loc)):i.push(_(void 0,d))):i.push(_(void 0,r))}const b=a?2:yt(e.children)?3:1;let v=de(i.concat(W("_",D(b+(process.env.NODE_ENV!=="production"?` /* ${xr[b]} */`:""),!1))),o);return l.length&&(v=Y(t.helper($n),[v,Ce(l)])),{slots:v,hasDynamicSlots:a}}function vt(e,t,n){const r=[W("name",e),W("fn",t)];return n!=null&&r.push(W("key",D(String(n),!0))),de(r)}function yt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yt(n.children))return!0;break;case 9:if(yt(n.branches))return!0;break;case 10:case 11:if(yt(n.children))return!0;break}}return!1}function cn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():cn(e.content)}const hs=new WeakMap,ti=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?ni(e,t):`"${r}"`;const a=yr(l)&&l.callee===Lt;let c,p,m=0,d,f,h,b=a||l===He||l===It||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const v=ms(e,t,void 0,i,a);c=v.props,m=v.patchFlag,f=v.dynamicPropNames;const _=v.directives;h=_&&_.length?Ce(_.map(N=>ri(N,t))):void 0,v.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(l===nt&&(b=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(j(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==He&&l!==nt){const{slots:_,hasDynamicSlots:N}=ei(e,t);p=_,N&&(m|=1024)}else if(e.children.length===1&&l!==He){const _=e.children[0],N=_.type,I=N===5||N===8;I&&ae(_,t)===0&&(m|=1),I||N===2?p=_:p=e.children}else p=e.children;f&&f.length&&(d=oi(f)),e.codegenNode=Ge(t,l,c,p,m===0?void 0:m,d,h,!!b,!1,i,e.loc)};function ni(e,t,n=!1){let{tag:r}=e;const o=dn(r),i=Je(e,"is",!1,!0);if(i)if(o||xe("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&D(i.value.content,!0):(a=i.exp,a||(a=D("is",!1,i.arg.loc))),a)return Y(t.helper(Lt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=jn(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(Rt),t.components.add(r),Ye(r,"component"))}function ms(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let p=[];const m=[],d=[],f=c.length>0;let h=!1,b=0,v=!1,_=!1,N=!1,I=!1,k=!1,E=!1;const S=[],C=P=>{p.length&&(m.push(de(gs(p),a)),p=[]),P&&m.push(P)},T=()=>{t.scopes.vFor>0&&p.push(W(D("ref_for",!0),D("true")))},x=({key:P,value:R})=>{if(ne(P)){const B=P.content,F=Tt(B);if(F&&(!r||o)&&B.toLowerCase()!=="onclick"&&B!=="onUpdate:modelValue"&&!Tn(B)&&(I=!0),F&&Tn(B)&&(E=!0),F&&R.type===14&&(R=R.arguments[0]),R.type===20||(R.type===4||R.type===8)&&ae(R,t)>0)return;B==="ref"?v=!0:B==="class"?_=!0:B==="style"?N=!0:B!=="key"&&!S.includes(B)&&S.push(B),r&&(B==="class"||B==="style")&&!S.includes(B)&&S.push(B)}else k=!0};for(let P=0;P<n.length;P++){const R=n[P];if(R.type===6){const{loc:B,name:F,nameLoc:U,value:H}=R;let ce=!0;if(F==="ref"&&(v=!0,T()),F==="is"&&(dn(l)||H&&H.content.startsWith("vue:")||xe("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(W(D(F,!0,U),D(H?H.content:"",ce,H?H.loc:B)))}else{const{name:B,arg:F,exp:U,loc:H,modifiers:ce}=R,ge=B==="bind",Be=B==="on";if(B==="slot"){r||t.onError(j(40,H));continue}if(B==="once"||B==="memo"||B==="is"||ge&&Ne(F,"is")&&(dn(l)||xe("COMPILER_IS_ON_ELEMENT",t))||Be&&i)continue;if((ge&&Ne(F,"key")||Be&&f&&Ne(F,"vue:before-update"))&&(h=!0),ge&&Ne(F,"ref")&&T(),!F&&(ge||Be)){if(k=!0,U)if(ge){if(C(),process.env.NODE_ENV!=="production"&&m.some(ue=>ue.type===15?ue.properties.some(({key:Ie})=>Ie.type!==4||!Ie.isStatic?!0:Ie.content!=="class"&&Ie.content!=="style"&&!Tt(Ie.content)):!0)&&Pe("COMPILER_V_BIND_OBJECT_ORDER",t,H),xe("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(U);continue}T(),C(),m.push(U)}else C({type:14,loc:H,callee:t.helper(qt),arguments:r?[U]:[U,"true"]});else t.onError(j(ge?34:35,H));continue}ge&&ce.some(G=>G.content==="prop")&&(b|=32);const Qe=t.directiveTransforms[B];if(Qe){const{props:G,needRuntime:ue}=Qe(R,e,t);!i&&G.forEach(x),Be&&F&&!ne(F)?C(de(G,a)):p.push(...G),ue&&(d.push(R),Ot(ue)&&hs.set(R,ue))}else br(B)||(d.push(R),f&&(h=!0))}}let w;if(m.length?(C(),m.length>1?w=Y(t.helper(rt),m,a):w=m[0]):p.length&&(w=de(gs(p),a)),k?b|=16:(_&&!r&&(b|=2),N&&!r&&(b|=4),S.length&&(b|=8),I&&(b|=32)),!h&&(b===0||b===32)&&(v||E||d.length>0)&&(b|=512),!t.inSSR&&w)switch(w.type){case 15:let P=-1,R=-1,B=!1;for(let H=0;H<w.properties.length;H++){const ce=w.properties[H].key;ne(ce)?ce.content==="class"?P=H:ce.content==="style"&&(R=H):ce.isHandlerKey||(B=!0)}const F=w.properties[P],U=w.properties[R];B?w=Y(t.helper(Ke),[w]):(F&&!ne(F.value)&&(F.value=Y(t.helper(Ut),[F.value])),U&&(N||U.value.type===4&&U.value.content.trim()[0]==="["||U.value.type===17)&&(U.value=Y(t.helper(Ht),[U.value])));break;case 14:break;default:w=Y(t.helper(Ke),[Y(t.helper(We),[w])]);break}return{props:w,directives:d,patchFlag:b,dynamicPropNames:S,shouldUseBlock:h}}function gs(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||Tt(i))&&si(l,o):(t.set(i,o),n.push(o))}return n}function si(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ce([e.value,t.value],e.loc)}function ri(e,t){const n=[],r=hs.get(e);r?n.push(t.helperString(r)):(t.helper(Pt),t.directives.add(e.name),n.push(Ye(e.name,"directive")));const{loc:o}=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=D("true",!1,o);n.push(de(e.modifiers.map(l=>W(l,i)),o))}return Ce(n,e.loc)}function oi(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function dn(e){return e==="component"||e==="Component"}const ii=(e,t)=>{if(ct(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=li(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Me([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=Y(t.helper(An),l,r)}};function li(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6)l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Ee(l.name),o.push(l)));else if(l.name==="bind"&&Ne(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=Ee(l.arg.content);n=l.exp=D(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&ne(l.arg)&&(l.arg.content=Ee(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=ms(e,t,o,!1,!1);r=i,l.length&&t.onError(j(36,l[0].loc))}return{slotName:n,slotProps:r}}const vs=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(j(35,o));let a;if(l.type===4)if(l.isStatic){let d=l.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(j(51,l.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?kr(Ee(d)):`on:${d}`;a=D(f,!0,l.loc)}else a=pe([`${n.helperString(Wt)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Wt)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let p=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const d=Un(c),f=!(d||Qr(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Oe(c,n,!1,h),(f||p&&d)&&(c=pe([`${f?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[W(a,c||D("() => {}",!1,o))]};return r&&(m=r(m)),p&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(d=>d.key.isHandlerKey=!0),m},ai=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(en(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(en(c))r||(r=n[i]=pe([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||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 l=n[i];if(en(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&ae(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${tt[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:Y(t.helper(Mt),a)}}}}},ys=new WeakSet,ci=(e,t)=>{if(e.type===1&&se(e,"once",!0))return ys.has(e)||t.inVOnce||t.inSSR?void 0:(ys.add(e),t.inVOnce=!0,t.helper(ot),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},bs=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(j(41,e.loc)),bt();const i=r.loc.source.trim(),l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(j(44,r.loc)),bt();if(!l.trim()||!Un(r))return n.onError(j(42,r.loc)),bt();const c=o||D("modelValue",!0),p=o?ne(o)?`onUpdate:${Ee(o.content)}`:pe(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const d=n.isTS?"($event: any)":"$event";m=pe([`${d} => ((`,r,") = $event)"]);const f=[W(c,e.exp),W(p,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(Vt(v)?v:JSON.stringify(v))+": true").join(", "),b=o?ne(o)?`${o.content}Modifiers`:pe([o,' + "Modifiers"']):"modelModifiers";f.push(W(b,D(`{ ${h} }`,!1,e.loc,2)))}return bt(f)};function bt(e=[]){return{props:e}}const di=/[\w).+\-_$\]]/,pi=(e,t)=>{xe("COMPILER_FILTERS",t)&&(e.type===5?Et(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Et(n.exp,t)}))};function Et(e,t){if(e.type===4)Es(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?Es(r,t):r.type===8?Et(e,t):r.type===5&&Et(r.content,t))}}function Es(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,p=0,m=0,d,f,h,b,v=[];for(h=0;h<n.length;h++)if(f=d,d=n.charCodeAt(h),r)d===39&&f!==92&&(r=!1);else if(o)d===34&&f!==92&&(o=!1);else if(i)d===96&&f!==92&&(i=!1);else if(l)d===47&&f!==92&&(l=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!p)b===void 0?(m=h+1,b=n.slice(0,h).trim()):_();else{switch(d){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(d===47){let N=h-1,I;for(;N>=0&&(I=n.charAt(N),I===" ");N--);(!I||!di.test(I))&&(l=!0)}}b===void 0?b=n.slice(0,h).trim():m!==0&&_();function _(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&<("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)b=fi(b,v[h],t);e.content=b,e.ast=void 0}}function fi(e,t,n){n.helper(Ft);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Ye(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Ye(o,"filter")}(${e}${i!==")"?","+i:i}`}}const ks=new WeakSet,ui=(e,t)=>{if(e.type===1){const n=se(e,"memo");return!n||ks.has(e)?void 0:(ks.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Xt(r,t),e.codegenNode=Y(t.helper(Jt),[n.exp,Me(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function hi(e){return[[ci,qo,ui,Yo,pi,...process.env.NODE_ENV!=="production"?[Ho]:[],ii,ti,Qo,ai],{on:vs,bind:Jo,model:bs}]}function mi(e,t={}){const n=t.onError||Qt,r=t.mode==="module";t.prefixIdentifiers===!0?n(j(47)):r&&n(j(48));const o=!1;t.cacheHandlers&&n(j(49)),t.scopeId&&!r&&n(j(50));const i=be({},t,{prefixIdentifiers:o}),l=X(e)?vo(e,i):e,[a,c]=hi();return ko(l,be({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:be({},c,t.directiveTransforms||{})})),So(l,i)}const gi=()=>({props:[]});/**
|
|
18
|
+
* @vue/compiler-dom v3.5.17
|
|
19
19
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
20
|
* @license MIT
|
|
21
|
-
**/const ks=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Ns=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),xs=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ss=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),pn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),ws=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),fn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Ts=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");Rr({[ks]:"vModelRadio",[Ns]:"vModelCheckbox",[xs]:"vModelText",[Ss]:"vModelSelect",[pn]:"vModelDynamic",[ws]:"withModifiers",[Cs]:"withKeys",[_s]:"vShow",[fn]:"Transition",[Ts]:"TransitionGroup"});let Fe;function ui(e,t=!1){return Fe||(Fe=document.createElement("div")),t?(Fe.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Fe.children[0].getAttribute("foo")):(Fe.innerHTML=e,Fe.textContent)}const hi={parseMode:"html",isVoidTag:Dr,isNativeTag:e=>_r(e)||Tr(e)||Or(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:ui,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return fn;if(e==="TransitionGroup"||e==="transition-group")return Ts},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},mi=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:D("style",!0,t.loc),exp:gi(t.value.content,t.loc),modifiers:[],loc:t.loc})})},gi=(e,t)=>{const n=Nr(e);return D(JSON.stringify(n),!1,t,3)};function fe(e,t){return j(e,t,process.env.NODE_ENV!=="production"?vi:void 0)}const vi={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."},yi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(53,o)),t.children.length&&(n.onError(fe(54,o)),t.children.length=0),{props:[W(D("innerHTML",!0,o),r||D("",!0))]}},bi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(55,o)),t.children.length&&(n.onError(fe(56,o)),t.children.length=0),{props:[W(D("textContent",!0),r?le(r,n)>0?r:Y(n.helperString(st),[r],o):D("",!0))]}},Ei=(e,t,n)=>{const r=ys(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(fe(58,e.arg.loc));function o(){const l=se(t,"bind");l&&xe(l.arg,"value")&&n.onError(fe(60,l.loc))}const{tag:i}=t,a=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||a){let l=xs,c=!1;if(i==="input"||a){const d=Ye(t,"type");if(d){if(d.type===7)l=pn;else if(d.value)switch(d.value.content){case"radio":l=ks;break;case"checkbox":l=Ns;break;case"file":c=!0,n.onError(fe(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else Yr(t)?l=pn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?l=Ss:process.env.NODE_ENV!=="production"&&o();c||(r.needRuntime=n.helper(l))}else n.onError(fe(57,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},ki=he("passive,once,capture"),Ni=he("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),xi=he("left,right"),Os=he("onkeyup,onkeydown,onkeypress"),Si=(e,t,n,r)=>{const o=[],i=[],a=[];for(let l=0;l<t.length;l++){const c=t[l].content;c==="native"&&Pe("COMPILER_V_ON_NATIVE",n,r)||ki(c)?a.push(c):xi(c)?ne(e)?Os(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):Ni(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:a}},Ds=(e,t)=>ne(e)&&e.content.toLowerCase()==="onclick"?D(t,!0):e.type!==4?pe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,wi=(e,t,n)=>gs(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:a}=r.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:d}=Si(i,o,n,e.loc);if(c.includes("right")&&(i=Ds(i,"onContextmenu")),c.includes("middle")&&(i=Ds(i,"onMouseup")),c.length&&(a=Y(n.helper(ws),[a,JSON.stringify(c)])),l.length&&(!ne(i)||Os(i.content.toLowerCase()))&&(a=Y(n.helper(Cs),[a,JSON.stringify(l)])),d.length){const m=d.map(Bt).join("");i=ne(i)?D(`${i.content}${m}`,!0):pe(["(",i,`) + "${m}"`])}return{props:[W(i,a)]}}),Ci=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(61,o)),{props:[],needRuntime:n.helper(_s)}},_i=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===fn)return()=>{if(!e.children.length)return;Bs(e)&&t.onError(fe(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const o of r.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Bs(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Bs)}const Ti=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(fe(63,e.loc)),t.removeNode())};function Oi(e,t){return e==="template"?!0:e in Is?Is[e].has(t):t in As?As[t].has(e):!(e in $s&&$s[e].has(t)||t in Ms&&Ms[t].has(e))}const je=new Set(["h1","h2","h3","h4","h5","h6"]),De=new Set([]),Is={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:De,iframe:De,option:De,textarea:De,style:De,title:De},As={html:De,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},$s={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Ms={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:je,h2:je,h3:je,h4:je,h5:je,h6:je},Di=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!Oi(t.parent.tag,e.tag)){const n=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}},Bi=[mi,...process.env.NODE_ENV!=="production"?[_i,Di]:[]],Ii={cloak:fi,html:yi,text:bi,model:Ei,on:wi,show:Ci};function Ai(e,t={}){return pi(e,be({},hi,t,{nodeTransforms:[Ti,...Bi,...t.nodeTransforms||[]],directiveTransforms:be({},Ii,t.directiveTransforms||{}),transformHoist:null}))}function $i(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Ai(n,{mode:"function"}),o=new Function("Vue",`${r}; return render`)(Ws);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,a){return t?.setup?.()??{}},render:o})}const un={};function Rs(e){return un[e]||(un[e]=$i(e,{props:{row:Object,value:null,data:Object,column:Object}})),un[e]}const Mi={class:"py-10 flex flex-col justify-center items-center text-center"},Ri={class:"max-w-sm mx-auto"},Li={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Pi={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Fi=s.defineComponent({__name:"nodata",props:{title:{default:"No data"},description:{default:"No data here yet. We will notify you when there's an update."}},setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Mi,[n[0]||(n[0]=s.createStaticVNode('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),s.createElementVNode("div",Ri,[s.createElementVNode("p",Li,s.toDisplayString(t.title),1),s.createElementVNode("p",Pi,s.toDisplayString(t.description),1)])]))}}),ji=["aria-checked","data-state"],zi={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},Ui={class:"truncate"},Hi=["onKeydown"],qi={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},Ki={class:"py-2 px-4"},Wi={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},Gi={class:"truncate"},Ji={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},Yi={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},Xi=["onClick"],Qi={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},Zi={key:1,class:"shrink-0 size-3.5 ms-auto",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vi={key:1,class:"p-4"},ea={class:"text-base font-semibold text-gray-800 mb-3"},ta={class:"mb-4"},na={class:"block text-sm font-medium text-gray-700 mb-1"},sa=["value"],ra={class:"flex justify-end gap-2 border-t pt-3"},oa=s.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function}},emits:["edit","update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(!1),i=s.ref(null),a=s.ref(null),l=s.ref(n.value),c=s.ref([]),d=s.ref("uk"),m=C=>{C.detail.key==="locale"&&(d.value=C.detail.newValue)};s.watch(()=>n.value,C=>{l.value=C});const p=s.computed(()=>{const C=n.column?.schema?.[n.column?.name];if(C?.type)switch(C.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const N=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(N)?N:"text"}),f=s.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(T=>({value:T.id??T.value,color:T.color,label:T.text??T.label}))),h=s.ref(null);function b(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&s.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),p.value==="select"&&w()}))}function v(){r("edit",n.row,n.column.name,l.value),r("update",n.row,n.column.name,l.value),o.value=!1}function _(){l.value=n.value,o.value=!1}function x(C){if(!o.value)return;const T=C.target;h.value&&!h.value.contains(T)&&(o.value=!1)}s.onMounted(()=>{document.addEventListener("click",x),window.addEventListener("storage",m),d.value=localStorage.locale,document.addEventListener("close-all-popovers",()=>{o.value=!1})}),s.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("storage",m),document.removeEventListener("close-all-popovers",()=>{o.value=!1})});function I(){n.editable&&(l.value=!l.value,r("update",n.row,n.column.name,l.value))}function k(C){return n.color?n.color.startsWith("#")?C.replace("{c}",`[${n.color}]`):C.replace("{c}",`${n.color}-500`):C.replace("{c}","cyan-500")}const E=s.computed(()=>({border:k("border-{c}"),ring:k("focus:ring-{c}"),text:k("text-{c}"),hover:k("hover:text-{c}"),bg:k("bg-{c} hover:bg-{c}/90")}));async function w(){if(p.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(C){console.error(`Не удалось загрузить options для ${n.column.name}`,C)}}return(C,T)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(C.classContent?C.classContent:"relative group w-full max-w-[350px]"),ref_key:"cellRef",ref:h},[p.value==="boolean"&&C.editable?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":l.value?"true":"false","data-state":l.value?"checked":"unchecked",class:s.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",l.value?E.value.border:"",E.value.ring,l.value?E.value.bg:""]),onClick:s.withModifiers(I,["stop"])},[l.value?(s.openBlock(),s.createElementBlock("span",zi,T[4]||(T[4]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0)],10,ji)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"flex items-center justify-between cursor-pointer",onClick:s.withModifiers(b,["stop"])},[s.createElementVNode("span",Ui,[s.renderSlot(C.$slots,"default")]),C.editable?(s.openBlock(),s.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:s.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",E.value.text])},T[5]||(T[5]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):s.createCommentVNode("",!0)]),o.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:a,class:s.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",p.value==="select"?"":"w-[450px]"]),onKeydown:s.withKeys(s.withModifiers(_,["stop","prevent"]),["esc"])},[p.value==="select"?(s.openBlock(),s.createElementBlock("div",qi,[s.createElementVNode("div",Ki,[s.createElementVNode("span",Wi,[s.createElementVNode("span",Gi," Редагувати "+s.toDisplayString(C.column[d.value]||C.column.header||C.column.ua||C.column.name),1)])]),s.createElementVNode("div",Ji,[s.createElementVNode("div",Yi,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,N=>(s.openBlock(),s.createElementBlock("label",{key:N.value.toString(),onClick:s.withModifiers(()=>{l.value=N.value,v()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[T[8]||(T[8]=s.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),N.color?(s.openBlock(),s.createElementBlock("span",Qi,T[6]||(T[6]=[s.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(N.label)+" ",1),l.value===N.value?(s.openBlock(),s.createElementBlock("svg",Zi,T[7]||(T[7]=[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):s.createCommentVNode("",!0)],8,Xi))),128))])])])):(s.openBlock(),s.createElementBlock("div",Vi,[s.createElementVNode("h3",ea," Редагувати "+s.toDisplayString(C.column[d.value]||C.column.header||C.column.ua||C.column.name),1),s.createElementVNode("div",ta,[s.createElementVNode("label",na,s.toDisplayString(C.column[d.value]||C.column.header||C.column.ua||C.column.name),1),p.value==="text"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[0]||(T[0]=N=>l.value=N),type:"text",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,l.value]]):p.value==="number"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[1]||(T[1]=N=>l.value=N),type:"number",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,l.value,void 0,{number:!0}]]):p.value==="date"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[2]||(T[2]=N=>l.value=N),type:"date",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onChange:v},null,34)),[[s.vModelText,l.value]]):p.value==="select"?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[3]||(T[3]=N=>l.value=N),class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",E.value.ring,E.value.border])},[T[9]||(T[9]=s.createElementVNode("option",{disabled:"",value:""},"-- виберіть --",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,N=>(s.openBlock(),s.createElementBlock("option",{key:N.value.toString(),value:N.value},s.toDisplayString(N.label),9,sa))),128))],2)),[[s.vModelSelect,l.value]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",ra,[s.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:_}," Скасувати "),s.createElementVNode("button",{type:"button",class:s.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",E.value.bg]),onClick:v}," Зберегти ",2)])]))],42,Hi)):s.createCommentVNode("",!0)],64))],2))}}),ia={key:0,class:"text-center py-8"},aa={class:"inline-flex items-center space-x-2"},la={key:2,class:"overflow-x-auto"},ca=["checked","indeterminate"],da=["onClick"],pa={class:"flex items-center justify-between"},fa={class:"flex items-center gap-1.5"},ua={key:0,class:"relative group"},ha={class:"absolute left-0 top-6 z-50 w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none"},ma={key:0,class:"ml-1 text-xs"},ga=["onClick"],va=["checked","onChange"],ya=["onClick"],ba={key:1,class:"text-center"},Ea=["colspan"],kt=s.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classContent:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(n.selectedRows||[]),i=s.ref(n.defaultSort.map(u=>({field:u.name,direction:u.asc?"asc":"desc"}))),a=s.ref([]),l=s.ref([]),c=s.ref(!1),d=s.ref(null),m=s.ref(n.router),p=s.useSlots(),f=s.computed(()=>p.action);function h(u){if(m.value){m.value.push(u);return}location.href=u}const b=s.computed(()=>{if(n.api)return a.value;if(n.sortable&&i.value.length>0){const u=[...n.rows];return u.sort((O,y)=>{for(const R of i.value){if(!R.direction)return 0;const g=O[R.field],L=y[R.field];if(g==null)return 1;if(L==null)return-1;let te=0;typeof g=="string"&&typeof L=="string"?te=g.localeCompare(L):g<L?te=-1:g>L?te=1:te=0;const ze=R.direction==="desc"?-te:te;if(ze!==0)return ze}return 0}),u}return n.rows});s.watch(()=>n.selectedRows,u=>{o.value=u||[]});const v=u=>o.value.some(O=>O===u),_=u=>{const O=o.value.findIndex(y=>y===u);O>-1?o.value.splice(O,1):o.value.push(u),r("update:selectedRows",[...o.value])},x=s.computed(()=>b.value.length>0&&o.value.length===b.value.length),I=s.computed(()=>o.value.length>0&&o.value.length<b.value.length),k=()=>{x.value?o.value=[]:o.value=[...b.value],r("update:selectedRows",[...o.value])},E=(u,O)=>{if(!n.sortable)return;if(O?.ctrlKey||O?.metaKey){const g=i.value.findIndex(L=>L.field===u);if(g>=0){const L=i.value[g];L.direction==="asc"?L.direction="desc":L.direction==="desc"&&i.value.splice(g,1)}else i.value.unshift({field:u,direction:"asc"})}else{const g=i.value.find(L=>L.field===u);g?g.direction==="asc"?g.direction="desc":g.direction==="desc"&&(i.value=[]):i.value=[{field:u,direction:"asc"}]}const R=i.value.filter(g=>g.direction).map(g=>({name:g.field,asc:g.direction==="asc"}));r("sort",R),n.api&&ue()},w=u=>i.value.find(y=>y.field===u)?.direction==="asc",C=u=>{const O=i.value.find(y=>y.field===u);if(!O)return"";switch(O.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},T=u=>n.sortable&&u.sortable!==!1,N=u=>{n.clickable&&r("row-click",u)},S=(u,O)=>{const y=O[u.name];if(n.getCellData||u.getCellData){const R=u.getCellData||n.getCellData;if(R){const g={name:u.name,row:O,value:y};return R(g)}}return["_data","_text"].map(R=>{const g=`${u.name}${R}`;return O[g]?O[g]:null}).find(R=>R)||y},P=u=>u.width?u.width==="w-full"?"w-full":typeof u.width=="string"?`w-[${u.width}px]`:typeof u.width=="number"?`w-[${u.width}px]`:"":"",M=s.ref(n.page),B=s.ref(n.limit),F=s.ref(n.total),U=s.ref(1),H=s.ref(10),ce=s.ref(0),ge=s.computed(()=>n.api?U.value:M.value),Be=s.computed(()=>n.api?H.value:B.value),Ve=s.computed(()=>n.api?ce.value:F.value),G=s.computed(()=>{const{theme:u}=n;return u==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:u==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});s.watch(()=>n.page,u=>{M.value=u}),s.watch(()=>n.limit,u=>{B.value=u}),s.watch(()=>n.total,u=>{F.value=u});async function ue(){if(n.api){c.value=!0,d.value=null;try{const u=new URL(n.api,window.location.origin);if(u.searchParams.set("page",ge.value.toString()),u.searchParams.set("limit",Be.value.toString()),i.value.length>0){const R=i.value.filter(g=>g.direction).map(g=>`${g.field}:${g.direction}`).join(",");R&&u.searchParams.set("sort",R)}const O=await fetch(u.toString());if(!O.ok)throw new Error(`HTTP error! status: ${O.status}`);const y=await O.json();y.rows&&Array.isArray(y.rows)&&(a.value=y.rows),y.columns&&Array.isArray(y.columns)&&(l.value=y.columns),y.total!==void 0&&(n.api?ce.value=y.total:F.value=y.total)}catch(u){d.value=u instanceof Error?u.message:"Failed to fetch data",console.error("Error fetching data:",u)}finally{c.value=!1}}}const Ie=u=>{n.api?U.value=u:(M.value=u,r("update:page",u)),n.api&&ue()},ml=s.computed(()=>n.showPagination&&Ve.value>0),et=s.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[n.size]),gl=St(),Nt=s.ref("uk"),zs=u=>{u.detail.key==="locale"&&(Nt.value=u.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",zs)}),s.onMounted(()=>{window.addEventListener("storage",zs),Nt.value=localStorage.locale,n.api&&(n.page&&(U.value=n.page),n.limit&&(H.value=n.limit),n.total&&(ce.value=n.total),ue())}),s.watch(()=>n.api,u=>{u&&(U.value=n.page||1,H.value=n.limit||10,ce.value=n.total||0,ue())});const Us=s.computed(()=>n.api?l.value:n.columns),hn=s.ref([]),xt=s.ref({});s.provide("registerColumn",(u,O)=>{hn.value.push(u),O&&u.slotName&&(xt.value[u.name]=O)});const mn=s.computed(()=>{const u=Us.value||[],O=[],y=p.default?.();if(y){const R=y.filter(g=>g.type?.name==="Column"||g.type==="Column"||g.type&&typeof g.type=="object"&&g.type.name==="Column").map(g=>{const L=g.props||g.componentProps||{},te=L.field||L.name||"",ze=L.header||L.label||"",qs=g.children&&g.children.body,gn={name:te,ua:ze,format:L.format||"text",slotName:qs?"body":void 0,...L};return qs&&gn.name&&(xt.value[gn.name]=g.children.body),gn});O.push(...R)}if(hn.value.length>0&&O.push(...hn.value),O.length>0){const R=[],g=new Set(O.map(L=>L.name));return u.forEach(L=>{g.has(L.name)||R.push(L)}),R.push(...O),console.log("Combined columns:",{default:u.length,custom:O.length,combined:R.length}),R}return u.length>0?(console.log("Using default columns:",u.length),u):[]}),vl=(u="text")=>wt[u.toLowerCase()]||wt.text,Ae=s.ref({});async function yl(u){const{data:O,api:y}=mn.value.find(R=>R.name===u);if(Ae.value[u])return Ae.value[u];if(O||y){const R=y||`/api/suggest/${O}?json=1`,L=await(await fetch(R)).json();L.data&&Array.isArray(L.data)&&(Ae.value[u]=L.data.map(te=>({value:te.id??te.value,label:te.text??te.label})))}return Ae.value[u]}function bl(u,O,y,R){const g=R;g!==-1&&(n.rows[g]={...n.rows[g],[O]:y}),r("cell-update",u,O,y)}function Hs(u){const y=`info:${Nt.value}`;return u[y]?u[y]:u.info?u.info:null}return s.watch(()=>n.form,async u=>{u&&(Ae.value={})}),s.onMounted(()=>{n.form&&(Ae.value={})}),(u,O)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",G.value.container])},[c.value||n.loading?(s.openBlock(),s.createElementBlock("div",ia,[s.createElementVNode("div",aa,[O[0]||(O[0]=s.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(G.value.loading)},"Loading...",2)])])):d.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",G.value.error])},s.toDisplayString(d.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",la,[s.createElementVNode("div",{class:s.normalizeClass(u.classWrapper?u.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(u.classTable),style:s.normalizeStyle(u.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(u.classThead||G.value.thead)},[s.createElementVNode("tr",null,[u.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",G.value.th,et.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:x.value,indeterminate:I.value,onChange:k,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",G.value.checkbox])},null,42,ca)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mn.value.filter(y=>!y.hidden),y=>(s.openBlock(),s.createElementBlock("th",{key:y.name,class:s.normalizeClass([y.align?`text-${y.align}`:"",T(y)?["cursor-pointer",G.value.thHover]:"",P(y)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",G.value.th,et.value.header])),onClick:R=>T(y)?E(y.name,R):void 0},[s.createElementVNode("div",pa,[s.createElementVNode("div",fa,[s.createElementVNode("span",null,s.toDisplayString(y[Nt.value]||y.header||y.ua||y.name),1),Hs(y)?(s.openBlock(),s.createElementBlock("div",ua,[O[1]||(O[1]=s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help"},[s.createElementVNode("circle",{cx:"12",cy:"12",r:"10"}),s.createElementVNode("path",{d:"M12 16v-4"}),s.createElementVNode("path",{d:"M12 8h.01"})],-1)),s.createElementVNode("div",ha,s.toDisplayString(Hs(y)),1)])):s.createCommentVNode("",!0)]),T(y)?(s.openBlock(),s.createElementBlock("span",ma,[s.renderSlot(u.$slots,"sort",{asc:w(y.name)},()=>[s.createTextVNode(s.toDisplayString(C(y.name)),1)])])):s.createCommentVNode("",!0)])],10,da))),128)),f.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",G.value.th,et.value.header]])},s.toDisplayString(s.unref(gl)("table.actions")),3)):s.createCommentVNode("",!0)])],2),b.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(u.classTbody||G.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(b.value,(y,R)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:R},[s.createElementVNode("tr",{class:s.normalizeClass(n.classTr||[G.value.tr,n.clickable?"cursor-pointer":""]),onClick:g=>n.clickable?N(y):void 0},[u.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",G.value.td,et.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:v(y),onChange:g=>_(y),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",G.value.checkbox])},null,42,va)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mn.value.filter(g=>!g.hidden),g=>(s.openBlock(),s.createElementBlock("td",{key:g.name,class:s.normalizeClass(n.classTd||["whitespace-nowrap",G.value.td,et.value.cell,g.align?`text-${g.align}`:"",P(g)])},[(s.openBlock(),s.createBlock(oa,{"class-content":n.classContent,key:y,editable:g.edit,row:y,column:g,value:y[g.name],format:g.format,options:Ae.value[g.name]||[],color:u.color,onUpdate:(L,te,ze)=>bl(L,te,ze,R),"fetch-options":yl},{default:s.withCtx(()=>[g.action&&f.value?s.renderSlot(u.$slots,"action",{key:0,row:y}):s.unref(p).number&&g.format==="number"?s.renderSlot(u.$slots,"number",{key:1,row:y,value:S(g,y)}):s.unref(p).badge&&g.format==="badge"?s.renderSlot(u.$slots,"badge",{key:2,row:y,value:S(g,y)}):s.unref(p).array&&g.format==="array"?s.renderSlot(u.$slots,"array",{key:3,row:y,value:S(g,y)}):g.slotName&&xt.value[g.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(xt.value[g.name]),{key:4,data:y,value:S(g,y),row:y,column:g},null,8,["data","value","row","column"])):g.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(u.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:L=>h(g.link.replace("{id}",y.id))},[g.slot&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Rs)(g.slot)),{key:0,row:y,value:y,data:y,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(S(g,y)),1)],64))],10,ya)):g.slot&&g.format==="slot"&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Rs)(g.slot)),{key:6,row:y,value:S(g,y),data:y,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(vl(g.format)),{key:7,value:S(g,y),row:y,column:g,href:g.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","onUpdate"]))],2))),128)),f.value?(s.openBlock(),s.createElementBlock("td",ba,[s.renderSlot(u.$slots,"action",{row:y})])):s.createCommentVNode("",!0)],10,ga),s.createElementVNode("tr",null,[s.renderSlot(u.$slots,"under-row",{row:y})])],64))),128))],2)):s.createCommentVNode("",!0),b.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",G.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:Us.value.length},[s.createVNode(Fi)],8,Ea)])],2)):s.createCommentVNode("",!0)],6)],2)])),ml.value&&!c.value&&!n.loading&&!d.value?(s.openBlock(),s.createBlock(Ct,{key:3,page:ge.value,limit:Be.value,total:Ve.value,theme:n.theme,size:n.size,"onUpdate:page":Ie},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),ka={style:{display:"none"}},Ls=s.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(e){const t=e,n=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:o,name:i,header:a,label:l,format:c,slotName:d,link:m,action:p,getCellData:f,suffix:h,...b}=t,I={name:o||i||"",ua:a||l||"",format:c||"text",slotName:d||(n.body?"body":void 0),link:m,action:p,getCellData:f,suffix:h,...b};console.log("Registering column:",I);const k=n.body;r(I,k)}}),(o,i)=>(s.openBlock(),s.createElementBlock("div",ka,[s.renderSlot(o.$slots,"body",{data:{}})]))}}),Na={class:"mt-4"},xa={class:"text-sm text-gray-600 dark:text-gray-300"},Ps=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,o)=>(s.openBlock(),s.createElementBlock("div",Na,[s.createElementVNode("div",xa," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Sa={class:"mt-4"},wa={class:"border-b border-gray-200 dark:border-gray-700"},Ca={class:"-mb-px flex space-x-8"},_a=["onClick"],Ta={class:"mt-4"},Oa={class:"bg-gray-900 rounded-lg overflow-hidden"},Da={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Ba={class:"text-sm text-gray-300"},Ia=["onClick"],Aa={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Fs=s.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=s.ref(t.defaultTab||t.tabs[0]?.id||""),r=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(s.openBlock(),s.createElementBlock("div",Sa,[s.createElementVNode("div",wa,[s.createElementVNode("nav",Ca,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,a=>(s.openBlock(),s.createElementBlock("button",{key:a.id,onClick:l=>n.value=a.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===a.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},s.toDisplayString(a.label),11,_a))),128))])]),s.createElementVNode("div",Ta,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,a=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:a.id},[s.createElementVNode("div",Oa,[s.createElementVNode("div",Da,[s.createElementVNode("span",Ba,s.toDisplayString(a.label),1),s.createElementVNode("button",{onClick:l=>r(a.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[s.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Ia)]),s.createElementVNode("pre",Aa,[s.createElementVNode("code",null,s.toDisplayString(a.content),1)])])])),[[s.vShow,n.value===a.id]])),128))])]))}}),$a={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Ma={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12"},Ra={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},La={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Pa={class:"sr-only"},Fa={class:"ui-dialog__content p-4"},ja={class:"p-4"},za={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},Ua={class:"text-sm font-[600] text-gray-500"},Ha={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},qa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ka={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Wa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ga={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Ja={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ya={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Xa={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},Qa={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},Za={class:"flex items-center gap-[4px]"},Va=["id","value"],el=["for"],tl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",height:"12",width:"12"},nl={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},sl={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},rl={class:"text-sm font-[600] text-gray-500"},ol={class:"mt-2 space-y-2"},il={class:"flex items-center"},al={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ll={class:"flex items-center"},cl={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},dl={class:"flex items-center"},pl={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},fl={class:"flex justify-end gap-x-2"},ul={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},hl=["disabled"],js=s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=St(),r=e,o=s.ref(!1),i=s.ref([]),a=s.ref("json"),l=s.ref(!1),c=s.ref("all"),d=s.computed(()=>r.columns??[]),m=s.useAttrs();function p(){i.value=d.value.map(k=>k.name),a.value="json",o.value=!0}function f(){o.value=!1}function h(){i.value=d.value.map(k=>k.name),c.value="all"}function b(){const k=d.value.filter(E=>!E.hidden).map(E=>E.name);i.value=k.length?k:d.value.map(E=>E.name),c.value="active"}function v(){i.value=[],c.value="none"}async function _(){if(i.value.length===0)return;l.value=!0;const k=new URLSearchParams({table:r.table,format:a.value,columns:i.value.join(",")});try{const E=await fetch(`/api/export?${k.toString()}`,{method:"GET"});if(!E.ok)throw new Error("Export failed");const w=await E.blob(),C=URL.createObjectURL(w),T=document.createElement("a");T.href=C,T.download=`${r.table}.${a.value}`,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(C),f()}catch(E){console.error(E);const{$notify:w=console.log}=t?.appContext?.config?.globalProperties||{};w({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"})}finally{l.value=!1}}const x=s.ref("uk"),I=k=>{k.detail.key==="locale"&&(x.value=k.detail.newValue)};return s.onUnmounted(()=>{window.removeEventListener("storage",I)}),s.onMounted(()=>{window.addEventListener("storage",I),x.value=localStorage.locale}),(k,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:p,class:s.normalizeClass([[s.unref(m).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},[E[4]||(E[4]=s.createStaticVNode('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.export")),1)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[o.value?(s.openBlock(),s.createElementBlock("div",$a,[s.createElementVNode("div",Ma,[s.createElementVNode("div",Ra,[s.createElementVNode("h3",La,s.toDisplayString(s.unref(n)("table.exportTitle")),1),s.createElementVNode("button",{type:"button",onClick:f,class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"},[s.createElementVNode("span",Pa,s.toDisplayString(s.unref(n)("table.close")),1),E[5]||(E[5]=s.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M18 6 6 18"}),s.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),s.createElementVNode("div",Fa,[s.createElementVNode("div",ja,[s.createElementVNode("div",za,[s.createElementVNode("h2",Ua,s.toDisplayString(s.unref(n)("table.chooseColumns")),1),s.createElementVNode("div",Ha,[s.createElementVNode("button",{onClick:h,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",qa,[c.value==="all"?(s.openBlock(),s.createElementBlock("span",Ka)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectAll")),1)]),s.createElementVNode("button",{onClick:b,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Wa,[c.value==="active"?(s.openBlock(),s.createElementBlock("span",Ga)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectCurrent")),1)]),s.createElementVNode("button",{onClick:v,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Ja,[c.value==="none"?(s.openBlock(),s.createElementBlock("span",Ya)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.none")),1)])]),s.createElementVNode("div",Xa,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,w=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:w.name},[s.createElementVNode("div",Qa,[s.createElementVNode("div",Za,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",id:"radio-"+w.name,value:w.name,"onUpdate:modelValue":E[0]||(E[0]=C=>i.value=C)},null,8,Va),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+w.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[s.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:s.normalizeStyle(i.value.includes(w.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",tl,E[6]||(E[6]=[s.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[s.vShow,i.value.includes(w.name)]])],4),s.createElementVNode("span",nl,s.toDisplayString(w[x.value]||w.header||w.ua||w.name),1)],8,el)])])]))),128))])]),s.createElementVNode("div",sl,[s.createElementVNode("h2",rl,s.toDisplayString(s.unref(n)("table.chooseFormat")),1),s.createElementVNode("div",ol,[s.createElementVNode("div",il,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"json",value:"json","onUpdate:modelValue":E[1]||(E[1]=w=>a.value=w)},null,512),[[s.vModelRadio,a.value]]),s.createElementVNode("label",al,s.toDisplayString(s.unref(n)("table.format.json")),1)]),s.createElementVNode("div",ll,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"csv",value:"csv","onUpdate:modelValue":E[2]||(E[2]=w=>a.value=w)},null,512),[[s.vModelRadio,a.value]]),s.createElementVNode("label",cl,s.toDisplayString(s.unref(n)("table.format.csv")),1)]),s.createElementVNode("div",dl,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"xlsx",value:"xlsx","onUpdate:modelValue":E[3]||(E[3]=w=>a.value=w)},null,512),[[s.vModelRadio,a.value]]),s.createElementVNode("label",pl,s.toDisplayString(s.unref(n)("table.format.xlsx")),1)])])])])]),s.createElementVNode("div",fl,[s.createElementVNode("div",ul,[s.createElementVNode("button",{type:"button",onClick:f,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},s.toDisplayString(s.unref(n)("table.cancel")),1),s.createElementVNode("button",{type:"button",onClick:_,disabled:i.value.length===0||l.value,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"},s.toDisplayString(s.unref(n)("table.download")),9,hl)])])])])):s.createCommentVNode("",!0)]))],64))}});kt.install=function(t){t.component("DataTable",kt),t.component("Column",Ls),t.component("Pagination",Ct),t.component("SelectionInfo",Ps),t.component("CodeTabs",Fs),t.component("ColumnsSettings",yn),t.component("Export",js)},K.ArrayFormat=xn,K.BadgeFormat=Nn,K.BooleanFormat=wn,K.CodeTabs=Fs,K.Column=Ls,K.ColumnsSettings=yn,K.DataTable=kt,K.DateFormat=En,K.Export=js,K.NumberFormat=bn,K.Pagination=Ct,K.SelectFormat=Sn,K.SelectionInfo=Ps,K.TextFormat=kn,K.default=kt,K.formatComponents=wt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
|
+
**/const xs=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Ns=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),ws=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ss=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),pn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Ts=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),fn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Os=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");jr({[xs]:"vModelRadio",[Ns]:"vModelCheckbox",[ws]:"vModelText",[Ss]:"vModelSelect",[pn]:"vModelDynamic",[Cs]:"withModifiers",[_s]:"withKeys",[Ts]:"vShow",[fn]:"Transition",[Os]:"TransitionGroup"});let Fe;function vi(e,t=!1){return Fe||(Fe=document.createElement("div")),t?(Fe.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Fe.children[0].getAttribute("foo")):(Fe.innerHTML=e,Fe.textContent)}const yi={parseMode:"html",isVoidTag:$r,isNativeTag:e=>Br(e)||Ir(e)||Ar(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:vi,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return fn;if(e==="TransitionGroup"||e==="transition-group")return Os},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},bi=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:D("style",!0,t.loc),exp:Ei(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ei=(e,t)=>{const n=Cr(e);return D(JSON.stringify(n),!1,t,3)};function fe(e,t){return j(e,t,process.env.NODE_ENV!=="production"?ki:void 0)}const ki={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."},xi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(53,o)),t.children.length&&(n.onError(fe(54,o)),t.children.length=0),{props:[W(D("innerHTML",!0,o),r||D("",!0))]}},Ni=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(55,o)),t.children.length&&(n.onError(fe(56,o)),t.children.length=0),{props:[W(D("textContent",!0),r?ae(r,n)>0?r:Y(n.helperString(st),[r],o):D("",!0))]}},wi=(e,t,n)=>{const r=bs(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(fe(58,e.arg.loc));function o(){const a=se(t,"bind");a&&Ne(a.arg,"value")&&n.onError(fe(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=ws,c=!1;if(i==="input"||l){const p=Je(t,"type");if(p){if(p.type===7)a=pn;else if(p.value)switch(p.value.content){case"radio":a=xs;break;case"checkbox":a=Ns;break;case"file":c=!0,n.onError(fe(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else Vr(t)?a=pn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=Ss:process.env.NODE_ENV!=="production"&&o();c||(r.needRuntime=n.helper(a))}else n.onError(fe(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Si=he("passive,once,capture"),Ci=he("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),_i=he("left,right"),Ds=he("onkeyup,onkeydown,onkeypress"),Ti=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&Pe("COMPILER_V_ON_NATIVE",n,r)||Si(c)?l.push(c):_i(c)?ne(e)?Ds(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):Ci(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},Bs=(e,t)=>ne(e)&&e.content.toLowerCase()==="onclick"?D(t,!0):e.type!==4?pe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Oi=(e,t,n)=>vs(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=Ti(i,o,n,e.loc);if(c.includes("right")&&(i=Bs(i,"onContextmenu")),c.includes("middle")&&(i=Bs(i,"onMouseup")),c.length&&(l=Y(n.helper(Cs),[l,JSON.stringify(c)])),a.length&&(!ne(i)||Ds(i.content.toLowerCase()))&&(l=Y(n.helper(_s),[l,JSON.stringify(a)])),p.length){const m=p.map(Bt).join("");i=ne(i)?D(`${i.content}${m}`,!0):pe(["(",i,`) + "${m}"`])}return{props:[W(i,l)]}}),Di=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(fe(61,o)),{props:[],needRuntime:n.helper(Ts)}},Bi=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===fn)return()=>{if(!e.children.length)return;Is(e)&&t.onError(fe(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const o of r.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Is(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Is)}const Ii=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(fe(63,e.loc)),t.removeNode())};function Ai(e,t){return e==="template"?!0:e in As?As[e].has(t):t in $s?$s[t].has(e):!(e in Ms&&Ms[e].has(t)||t in Rs&&Rs[t].has(e))}const je=new Set(["h1","h2","h3","h4","h5","h6"]),De=new Set([]),As={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:De,iframe:De,option:De,textarea:De,style:De,title:De},$s={html:De,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},Ms={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Rs={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:je,h2:je,h3:je,h4:je,h5:je,h6:je},$i=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!Ai(t.parent.tag,e.tag)){const n=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}},Mi=[bi,...process.env.NODE_ENV!=="production"?[Bi,$i]:[]],Ri={cloak:gi,html:xi,text:Ni,model:wi,on:Oi,show:Di};function Li(e,t={}){return mi(e,be({},yi,t,{nodeTransforms:[Ii,...Mi,...t.nodeTransforms||[]],directiveTransforms:be({},Ri,t.directiveTransforms||{}),transformHoist:null}))}function Pi(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Li(n,{mode:"function"}),o=new Function("Vue",`${r}; return render`)(Js);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const un={};function Ls(e){return un[e]||(un[e]=Pi(e,{props:{row:Object,value:null,data:Object,column:Object}})),un[e]}const Fi={class:"py-10 flex flex-col justify-center items-center text-center"},ji={class:"max-w-sm mx-auto"},zi={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Ui={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Hi=s.defineComponent({__name:"nodata",props:{title:{default:"No data"},description:{default:"No data here yet. We will notify you when there's an update."}},setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Fi,[n[0]||(n[0]=s.createStaticVNode('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),s.createElementVNode("div",ji,[s.createElementVNode("p",zi,s.toDisplayString(t.title),1),s.createElementVNode("p",Ui,s.toDisplayString(t.description),1)])]))}}),qi=["aria-checked","data-state"],Ki={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},Wi={class:"truncate"},Gi=["onKeydown"],Ji={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},Yi={class:"py-2 px-4"},Xi={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},Zi={class:"truncate"},Qi={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},Vi={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},el=["onClick"],tl={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},nl={key:1,class:"shrink-0 size-3.5 ms-auto",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},sl={key:1,class:"p-4"},rl={class:"text-base font-semibold text-gray-800 mb-3"},ol={class:"mb-4"},il={class:"block text-sm font-medium text-gray-700 mb-1"},ll=["value"],al={class:"flex justify-end gap-2 border-t pt-3"},cl=s.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function}},emits:["edit","update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(!1),i=s.ref(null),l=s.ref(null),a=s.ref(n.value),c=s.ref([]),p=s.ref("uk"),m=C=>{C.detail.key==="locale"&&(p.value=C.detail.newValue)};s.watch(()=>n.value,C=>{a.value=C});const d=s.computed(()=>{const C=n.column?.schema?.[n.column?.name];if(C?.type)switch(C.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const x=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(x)?x:"text"}),f=s.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(T=>({value:T.id??T.value,color:T.color,label:T.text??T.label}))),h=s.ref(null);function b(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&s.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),d.value==="select"&&S()}))}function v(){r("edit",n.row,n.column.name,a.value),r("update",n.row,n.column.name,a.value),o.value=!1}function _(){a.value=n.value,o.value=!1}function N(C){if(!o.value)return;const T=C.target;h.value&&!h.value.contains(T)&&(o.value=!1)}s.onMounted(()=>{document.addEventListener("click",N),window.addEventListener("storage",m),p.value=localStorage.locale,document.addEventListener("close-all-popovers",()=>{o.value=!1})}),s.onBeforeUnmount(()=>{document.removeEventListener("click",N),window.removeEventListener("storage",m),document.removeEventListener("close-all-popovers",()=>{o.value=!1})});function I(){n.editable&&(a.value=!a.value,r("update",n.row,n.column.name,a.value))}function k(C){return n.color?n.color.startsWith("#")?C.replace("{c}",`[${n.color}]`):C.replace("{c}",`${n.color}-500`):C.replace("{c}","cyan-500")}const E=s.computed(()=>({border:k("border-{c}"),ring:k("focus:ring-{c}"),text:k("text-{c}"),hover:k("hover:text-{c}"),bg:k("bg-{c} hover:bg-{c}/90")}));async function S(){if(d.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(C){console.error(`Не удалось загрузить options для ${n.column.name}`,C)}}return(C,T)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(C.classContent?C.classContent:"relative group w-full max-w-[350px]"),ref_key:"cellRef",ref:h},[d.value==="boolean"&&C.editable?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:s.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",a.value?E.value.border:"",E.value.ring,a.value?E.value.bg:""]),onClick:s.withModifiers(I,["stop"])},[a.value?(s.openBlock(),s.createElementBlock("span",Ki,T[4]||(T[4]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0)],10,qi)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"flex items-center justify-between cursor-pointer",onClick:s.withModifiers(b,["stop"])},[s.createElementVNode("span",Wi,[s.renderSlot(C.$slots,"default")]),C.editable?(s.openBlock(),s.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:s.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",E.value.text])},T[5]||(T[5]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):s.createCommentVNode("",!0)]),o.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:s.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",d.value==="select"?"":"w-[450px]"]),onKeydown:s.withKeys(s.withModifiers(_,["stop","prevent"]),["esc"])},[d.value==="select"?(s.openBlock(),s.createElementBlock("div",Ji,[s.createElementVNode("div",Yi,[s.createElementVNode("span",Xi,[s.createElementVNode("span",Zi," Редагувати "+s.toDisplayString(C.column[p.value]||C.column.header||C.column.ua||C.column.name),1)])]),s.createElementVNode("div",Qi,[s.createElementVNode("div",Vi,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,x=>(s.openBlock(),s.createElementBlock("label",{key:x.value.toString(),onClick:s.withModifiers(()=>{a.value=x.value,v()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[T[8]||(T[8]=s.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),x.color?(s.openBlock(),s.createElementBlock("span",tl,T[6]||(T[6]=[s.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(x.label)+" ",1),a.value===x.value?(s.openBlock(),s.createElementBlock("svg",nl,T[7]||(T[7]=[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):s.createCommentVNode("",!0)],8,el))),128))])])])):(s.openBlock(),s.createElementBlock("div",sl,[s.createElementVNode("h3",rl," Редагувати "+s.toDisplayString(C.column[p.value]||C.column.header||C.column.ua||C.column.name),1),s.createElementVNode("div",ol,[s.createElementVNode("label",il,s.toDisplayString(C.column[p.value]||C.column.header||C.column.ua||C.column.name),1),d.value==="text"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[0]||(T[0]=x=>a.value=x),type:"text",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value]]):d.value==="number"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[1]||(T[1]=x=>a.value=x),type:"number",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value,void 0,{number:!0}]]):d.value==="date"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[2]||(T[2]=x=>a.value=x),type:"date",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",E.value.ring,E.value.border]),onChange:v},null,34)),[[s.vModelText,a.value]]):d.value==="select"?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":T[3]||(T[3]=x=>a.value=x),class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",E.value.ring,E.value.border])},[T[9]||(T[9]=s.createElementVNode("option",{disabled:"",value:""},"-- виберіть --",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,x=>(s.openBlock(),s.createElementBlock("option",{key:x.value.toString(),value:x.value},s.toDisplayString(x.label),9,ll))),128))],2)),[[s.vModelSelect,a.value]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",al,[s.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:_}," Скасувати "),s.createElementVNode("button",{type:"button",class:s.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",E.value.bg]),onClick:v}," Зберегти ",2)])]))],42,Gi)):s.createCommentVNode("",!0)],64))],2))}}),dl={key:0,class:"text-center py-8"},pl={class:"inline-flex items-center space-x-2"},fl={key:2,class:"overflow-x-auto"},ul=["checked","indeterminate"],hl=["onClick"],ml={class:"flex items-center justify-between"},gl={class:"flex items-center gap-1.5"},vl={key:0,class:"relative group"},yl=["onMouseenter"],bl={key:0,class:"ml-1 text-xs"},El=["onClick"],kl=["checked","onChange"],xl=["onClick"],Nl={key:1,class:"text-center"},wl=["colspan"],kt=s.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classContent:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(n.selectedRows||[]),i=s.ref(n.defaultSort.map(u=>({field:u.name,direction:u.asc?"asc":"desc"}))),l=s.ref([]),a=s.ref([]),c=s.ref(!1),p=s.ref(null),m=s.ref(n.router),d=s.useSlots(),f=s.computed(()=>d.action);function h(u){if(m.value){m.value.push(u);return}location.href=u}const b=s.computed(()=>{if(n.api)return l.value;if(n.sortable&&i.value.length>0){const u=[...n.rows];return u.sort((O,y)=>{for(const A of i.value){if(!A.direction)return 0;const g=O[A.field],L=y[A.field];if(g==null)return 1;if(L==null)return-1;let te=0;typeof g=="string"&&typeof L=="string"?te=g.localeCompare(L):g<L?te=-1:g>L?te=1:te=0;const ze=A.direction==="desc"?-te:te;if(ze!==0)return ze}return 0}),u}return n.rows});s.watch(()=>n.selectedRows,u=>{o.value=u||[]});const v=u=>o.value.some(O=>O===u),_=u=>{const O=o.value.findIndex(y=>y===u);O>-1?o.value.splice(O,1):o.value.push(u),r("update:selectedRows",[...o.value])},N=s.computed(()=>b.value.length>0&&o.value.length===b.value.length),I=s.computed(()=>o.value.length>0&&o.value.length<b.value.length),k=()=>{N.value?o.value=[]:o.value=[...b.value],r("update:selectedRows",[...o.value])},E=(u,O)=>{if(!n.sortable)return;if(O?.ctrlKey||O?.metaKey){const g=i.value.findIndex(L=>L.field===u);if(g>=0){const L=i.value[g];L.direction==="asc"?L.direction="desc":L.direction==="desc"&&i.value.splice(g,1)}else i.value.unshift({field:u,direction:"asc"})}else{const g=i.value.find(L=>L.field===u);g?g.direction==="asc"?g.direction="desc":g.direction==="desc"&&(i.value=[]):i.value=[{field:u,direction:"asc"}]}const A=i.value.filter(g=>g.direction).map(g=>({name:g.field,asc:g.direction==="asc"}));r("sort",A),n.api&&ue()},S=u=>i.value.find(y=>y.field===u)?.direction==="asc",C=u=>{const O=i.value.find(y=>y.field===u);if(!O)return"";switch(O.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},T=u=>n.sortable&&u.sortable!==!1,x=u=>{n.clickable&&r("row-click",u)},w=(u,O)=>{const y=O[u.name];if(n.getCellData||u.getCellData){const A=u.getCellData||n.getCellData;if(A){const g={name:u.name,row:O,value:y};return A(g)}}return["_data","_text"].map(A=>{const g=`${u.name}${A}`;return O[g]?O[g]:null}).find(A=>A)||u.link?y||"-":y},P=u=>u.width?u.width==="w-full"?"w-full":typeof u.width=="string"?`w-[${u.width}px]`:typeof u.width=="number"?`w-[${u.width}px]`:"":"",R=s.ref(n.page),B=s.ref(n.limit),F=s.ref(n.total),U=s.ref(1),H=s.ref(10),ce=s.ref(0),ge=s.computed(()=>n.api?U.value:R.value),Be=s.computed(()=>n.api?H.value:B.value),Qe=s.computed(()=>n.api?ce.value:F.value),G=s.computed(()=>{const{theme:u}=n;return u==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:u==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});s.watch(()=>n.page,u=>{R.value=u}),s.watch(()=>n.limit,u=>{B.value=u}),s.watch(()=>n.total,u=>{F.value=u});async function ue(){if(n.api){c.value=!0,p.value=null;try{const u=new URL(n.api,window.location.origin);if(u.searchParams.set("page",ge.value.toString()),u.searchParams.set("limit",Be.value.toString()),i.value.length>0){const A=i.value.filter(g=>g.direction).map(g=>`${g.field}:${g.direction}`).join(",");A&&u.searchParams.set("sort",A)}const O=await fetch(u.toString());if(!O.ok)throw new Error(`HTTP error! status: ${O.status}`);const y=await O.json();y.rows&&Array.isArray(y.rows)&&(l.value=y.rows),y.columns&&Array.isArray(y.columns)&&(a.value=y.columns),y.total!==void 0&&(n.api?ce.value=y.total:F.value=y.total)}catch(u){p.value=u instanceof Error?u.message:"Failed to fetch data",console.error("Error fetching data:",u)}finally{c.value=!1}}}const Ie=u=>{n.api?U.value=u:(R.value=u,r("update:page",u)),n.api&&ue()},ba=s.computed(()=>n.showPagination&&Qe.value>0),Ve=s.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[n.size]),Ea=wt(),xt=s.ref("uk"),Us=u=>{u.detail.key==="locale"&&(xt.value=u.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",Us)}),s.onMounted(()=>{window.addEventListener("storage",Us),xt.value=localStorage.locale,n.api&&(n.page&&(U.value=n.page),n.limit&&(H.value=n.limit),n.total&&(ce.value=n.total),ue())}),s.watch(()=>n.api,u=>{u&&(U.value=n.page||1,H.value=n.limit||10,ce.value=n.total||0,ue())});const Hs=s.computed(()=>n.api?a.value:n.columns),hn=s.ref([]),Nt=s.ref({});s.provide("registerColumn",(u,O)=>{hn.value.push(u),O&&u.slotName&&(Nt.value[u.name]=O)});const mn=s.computed(()=>{const u=Hs.value||[],O=[],y=d.default?.();if(y){const A=y.filter(g=>g.type?.name==="Column"||g.type==="Column"||g.type&&typeof g.type=="object"&&g.type.name==="Column").map(g=>{const L=g.props||g.componentProps||{},te=L.field||L.name||"",ze=L.header||L.label||"",Ws=g.children&&g.children.body,vn={name:te,ua:ze,format:L.format||"text",slotName:Ws?"body":void 0,...L};return Ws&&vn.name&&(Nt.value[vn.name]=g.children.body),vn});O.push(...A)}if(hn.value.length>0&&O.push(...hn.value),O.length>0){const A=[],g=new Set(O.map(L=>L.name));return u.forEach(L=>{g.has(L.name)||A.push(L)}),A.push(...O),console.log("Combined columns:",{default:u.length,custom:O.length,combined:A.length}),A}return u.length>0?(console.log("Using default columns:",u.length),u):[]}),ka=(u="text")=>St[u.toLowerCase()]||St.text,Ae=s.ref({});async function xa(u){const{data:O,api:y}=mn.value.find(A=>A.name===u);if(Ae.value[u])return Ae.value[u];if(O||y){const A=y||`/api/suggest/${O}?json=1`,L=await(await fetch(A)).json();L.data&&Array.isArray(L.data)&&(Ae.value[u]=L.data.map(te=>({value:te.id??te.value,label:te.text??te.label})))}return Ae.value[u]}function Na(u,O,y,A){const g=A;g!==-1&&(n.rows[g]={...n.rows[g],[O]:y}),r("cell-update",u,O,y)}function qs(u){const y=`info:${xt.value}`;return u[y]?u[y]:u.info?u.info:null}const gn=s.ref(null),Ks=s.ref({top:"0px",left:"0px"});function wa(u,O){const y=u.currentTarget.getBoundingClientRect();gn.value=O,Ks.value={top:`${y.bottom+4}px`,left:`${Math.min(y.left,window.innerWidth-230)}px`}}function Sa(){gn.value=null}return s.watch(()=>n.form,async u=>{u&&(Ae.value={})}),s.onMounted(()=>{n.form&&(Ae.value={})}),(u,O)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",G.value.container])},[c.value||n.loading?(s.openBlock(),s.createElementBlock("div",dl,[s.createElementVNode("div",pl,[O[0]||(O[0]=s.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(G.value.loading)},"Loading...",2)])])):p.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",G.value.error])},s.toDisplayString(p.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",fl,[s.createElementVNode("div",{class:s.normalizeClass(u.classWrapper?u.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(u.classTable),style:s.normalizeStyle(u.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(u.classThead||G.value.thead)},[s.createElementVNode("tr",null,[u.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",G.value.th,Ve.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:N.value,indeterminate:I.value,onChange:k,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",G.value.checkbox])},null,42,ul)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mn.value.filter(y=>!y.hidden),y=>(s.openBlock(),s.createElementBlock("th",{key:y.name,class:s.normalizeClass([y.align?`text-${y.align}`:"",T(y)?["cursor-pointer",G.value.thHover]:"",P(y)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",G.value.th,Ve.value.header])),onClick:A=>T(y)?E(y.name,A):void 0},[s.createElementVNode("div",ml,[s.createElementVNode("div",gl,[s.createElementVNode("span",null,s.toDisplayString(y[xt.value]||y.header||y.ua||y.name),1),qs(y)?(s.openBlock(),s.createElementBlock("div",vl,[(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help",onMouseenter:A=>wa(A,y.name),onMouseleave:Sa},O[1]||(O[1]=[s.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),s.createElementVNode("path",{d:"M12 16v-4"},null,-1),s.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,yl)),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[gn.value===y.name?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(Ks.value),class:"fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"},s.toDisplayString(qs(y)),5)):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0)]),T(y)?(s.openBlock(),s.createElementBlock("span",bl,[s.renderSlot(u.$slots,"sort",{asc:S(y.name)},()=>[s.createTextVNode(s.toDisplayString(C(y.name)),1)])])):s.createCommentVNode("",!0)])],10,hl))),128)),f.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",G.value.th,Ve.value.header]])},s.toDisplayString(s.unref(Ea)("table.actions")),3)):s.createCommentVNode("",!0)])],2),b.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(u.classTbody||G.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(b.value,(y,A)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:A},[s.createElementVNode("tr",{class:s.normalizeClass(n.classTr||[G.value.tr,n.clickable?"cursor-pointer":""]),onClick:g=>n.clickable?x(y):void 0},[u.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",G.value.td,Ve.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:v(y),onChange:g=>_(y),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",G.value.checkbox])},null,42,kl)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mn.value.filter(g=>!g.hidden),g=>(s.openBlock(),s.createElementBlock("td",{key:g.name,class:s.normalizeClass(n.classTd||["whitespace-nowrap",G.value.td,Ve.value.cell,g.align?`text-${g.align}`:"",P(g)])},[(s.openBlock(),s.createBlock(cl,{"class-content":n.classContent,key:y,editable:g.edit,row:y,column:g,value:y[g.name],format:g.format,options:Ae.value[g.name]||[],color:u.color,onUpdate:(L,te,ze)=>Na(L,te,ze,A),"fetch-options":xa},{default:s.withCtx(()=>[g.action&&f.value?s.renderSlot(u.$slots,"action",{key:0,row:y}):s.unref(d).number&&g.format==="number"?s.renderSlot(u.$slots,"number",{key:1,row:y,value:w(g,y)}):s.unref(d).badge&&g.format==="badge"?s.renderSlot(u.$slots,"badge",{key:2,row:y,value:w(g,y)}):s.unref(d).array&&g.format==="array"?s.renderSlot(u.$slots,"array",{key:3,row:y,value:w(g,y)}):g.slotName&&Nt.value[g.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Nt.value[g.name]),{key:4,data:y,value:w(g,y),row:y,column:g},null,8,["data","value","row","column"])):g.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(u.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:L=>h(g.link.replace("{id}",y.id))},[g.slot&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Ls)(g.slot)),{key:0,row:y,value:y,data:y,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(w(g,y)),1)],64))],10,xl)):g.slot&&g.format==="slot"&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Ls)(g.slot)),{key:6,row:y,value:w(g,y),data:y,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(ka(g.format)),{key:7,value:w(g,y),row:y,column:g,href:g.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","onUpdate"]))],2))),128)),f.value?(s.openBlock(),s.createElementBlock("td",Nl,[s.renderSlot(u.$slots,"action",{row:y})])):s.createCommentVNode("",!0)],10,El),s.createElementVNode("tr",null,[s.renderSlot(u.$slots,"under-row",{row:y})])],64))),128))],2)):s.createCommentVNode("",!0),b.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",G.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:Hs.value.length},[s.createVNode(Hi)],8,wl)])],2)):s.createCommentVNode("",!0)],6)],2)])),ba.value&&!c.value&&!n.loading&&!p.value?(s.openBlock(),s.createBlock(Ct,{key:3,page:ge.value,limit:Be.value,total:Qe.value,theme:n.theme,size:n.size,"onUpdate:page":Ie},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),Sl={style:{display:"none"}},Ps=s.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(e){const t=e,n=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:o,name:i,header:l,label:a,format:c,slotName:p,link:m,action:d,getCellData:f,suffix:h,...b}=t,I={name:o||i||"",ua:l||a||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:m,action:d,getCellData:f,suffix:h,...b};console.log("Registering column:",I);const k=n.body;r(I,k)}}),(o,i)=>(s.openBlock(),s.createElementBlock("div",Sl,[s.renderSlot(o.$slots,"body",{data:{}})]))}}),Cl={class:"mt-4"},_l={class:"text-sm text-gray-600 dark:text-gray-300"},Fs=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,o)=>(s.openBlock(),s.createElementBlock("div",Cl,[s.createElementVNode("div",_l," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Tl={class:"mt-4"},Ol={class:"border-b border-gray-200 dark:border-gray-700"},Dl={class:"-mb-px flex space-x-8"},Bl=["onClick"],Il={class:"mt-4"},Al={class:"bg-gray-900 rounded-lg overflow-hidden"},$l={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Ml={class:"text-sm text-gray-300"},Rl=["onClick"],Ll={class:"p-4 text-sm text-gray-100 overflow-x-auto"},js=s.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=s.ref(t.defaultTab||t.tabs[0]?.id||""),r=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(s.openBlock(),s.createElementBlock("div",Tl,[s.createElementVNode("div",Ol,[s.createElementVNode("nav",Dl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>(s.openBlock(),s.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===l.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},s.toDisplayString(l.label),11,Bl))),128))])]),s.createElementVNode("div",Il,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:l.id},[s.createElementVNode("div",Al,[s.createElementVNode("div",$l,[s.createElementVNode("span",Ml,s.toDisplayString(l.label),1),s.createElementVNode("button",{onClick:a=>r(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[s.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Rl)]),s.createElementVNode("pre",Ll,[s.createElementVNode("code",null,s.toDisplayString(l.content),1)])])])),[[s.vShow,n.value===l.id]])),128))])]))}}),Pl={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Fl={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12"},jl={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},zl={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Ul={class:"sr-only"},Hl={class:"ui-dialog__content p-4"},ql={class:"p-4"},Kl={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},Wl={class:"text-sm font-[600] text-gray-500"},Gl={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},Jl={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Yl={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Xl={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Zl={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Ql={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Vl={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ea={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},ta={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},na={class:"flex items-center gap-[4px]"},sa=["id","value"],ra=["for"],oa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",height:"12",width:"12"},ia={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},la={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},aa={class:"text-sm font-[600] text-gray-500"},ca={class:"mt-2 space-y-2"},da={class:"flex items-center"},pa={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},fa={class:"flex items-center"},ua={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ha={class:"flex items-center"},ma={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ga={class:"flex justify-end gap-x-2"},va={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},ya=["disabled"],zs=s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=wt(),r=e,o=s.ref(!1),i=s.ref([]),l=s.ref("json"),a=s.ref(!1),c=s.ref("all"),p=s.computed(()=>r.columns??[]),m=s.useAttrs();function d(){i.value=p.value.map(k=>k.name),l.value="json",o.value=!0}function f(){o.value=!1}function h(){i.value=p.value.map(k=>k.name),c.value="all"}function b(){const k=p.value.filter(E=>!E.hidden).map(E=>E.name);i.value=k.length?k:p.value.map(E=>E.name),c.value="active"}function v(){i.value=[],c.value="none"}async function _(){if(i.value.length===0)return;a.value=!0;const k=new URLSearchParams({table:r.table,format:l.value,columns:i.value.join(",")});try{const E=await fetch(`/api/export?${k.toString()}`,{method:"GET"});if(!E.ok)throw new Error("Export failed");const S=await E.blob(),C=URL.createObjectURL(S),T=document.createElement("a");T.href=C,T.download=`${r.table}.${l.value}`,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(C),f()}catch(E){console.error(E);const{$notify:S=console.log}=t?.appContext?.config?.globalProperties||{};S({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"})}finally{a.value=!1}}const N=s.ref("uk"),I=k=>{k.detail.key==="locale"&&(N.value=k.detail.newValue)};return s.onUnmounted(()=>{window.removeEventListener("storage",I)}),s.onMounted(()=>{window.addEventListener("storage",I),N.value=localStorage.locale}),(k,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:d,class:s.normalizeClass([[s.unref(m).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},[E[4]||(E[4]=s.createStaticVNode('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.export")),1)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[o.value?(s.openBlock(),s.createElementBlock("div",Pl,[s.createElementVNode("div",Fl,[s.createElementVNode("div",jl,[s.createElementVNode("h3",zl,s.toDisplayString(s.unref(n)("table.exportTitle")),1),s.createElementVNode("button",{type:"button",onClick:f,class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"},[s.createElementVNode("span",Ul,s.toDisplayString(s.unref(n)("table.close")),1),E[5]||(E[5]=s.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M18 6 6 18"}),s.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),s.createElementVNode("div",Hl,[s.createElementVNode("div",ql,[s.createElementVNode("div",Kl,[s.createElementVNode("h2",Wl,s.toDisplayString(s.unref(n)("table.chooseColumns")),1),s.createElementVNode("div",Gl,[s.createElementVNode("button",{onClick:h,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Jl,[c.value==="all"?(s.openBlock(),s.createElementBlock("span",Yl)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectAll")),1)]),s.createElementVNode("button",{onClick:b,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Xl,[c.value==="active"?(s.openBlock(),s.createElementBlock("span",Zl)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectCurrent")),1)]),s.createElementVNode("button",{onClick:v,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Ql,[c.value==="none"?(s.openBlock(),s.createElementBlock("span",Vl)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.none")),1)])]),s.createElementVNode("div",ea,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,S=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:S.name},[s.createElementVNode("div",ta,[s.createElementVNode("div",na,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",id:"radio-"+S.name,value:S.name,"onUpdate:modelValue":E[0]||(E[0]=C=>i.value=C)},null,8,sa),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+S.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[s.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:s.normalizeStyle(i.value.includes(S.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",oa,E[6]||(E[6]=[s.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[s.vShow,i.value.includes(S.name)]])],4),s.createElementVNode("span",ia,s.toDisplayString(S[N.value]||S.header||S.ua||S.name),1)],8,ra)])])]))),128))])]),s.createElementVNode("div",la,[s.createElementVNode("h2",aa,s.toDisplayString(s.unref(n)("table.chooseFormat")),1),s.createElementVNode("div",ca,[s.createElementVNode("div",da,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"json",value:"json","onUpdate:modelValue":E[1]||(E[1]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",pa,s.toDisplayString(s.unref(n)("table.format.json")),1)]),s.createElementVNode("div",fa,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"csv",value:"csv","onUpdate:modelValue":E[2]||(E[2]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",ua,s.toDisplayString(s.unref(n)("table.format.csv")),1)]),s.createElementVNode("div",ha,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"xlsx",value:"xlsx","onUpdate:modelValue":E[3]||(E[3]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",ma,s.toDisplayString(s.unref(n)("table.format.xlsx")),1)])])])])]),s.createElementVNode("div",ga,[s.createElementVNode("div",va,[s.createElementVNode("button",{type:"button",onClick:f,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},s.toDisplayString(s.unref(n)("table.cancel")),1),s.createElementVNode("button",{type:"button",onClick:_,disabled:i.value.length===0||a.value,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"},s.toDisplayString(s.unref(n)("table.download")),9,ya)])])])])):s.createCommentVNode("",!0)]))],64))}});kt.install=function(t){t.component("DataTable",kt),t.component("Column",Ps),t.component("Pagination",Ct),t.component("SelectionInfo",Fs),t.component("CodeTabs",js),t.component("ColumnsSettings",bn),t.component("Export",zs)},K.ArrayFormat=wn,K.BadgeFormat=Nn,K.BooleanFormat=Cn,K.CodeTabs=js,K.Column=Ps,K.ColumnsSettings=bn,K.DataTable=kt,K.DateFormat=kn,K.Export=zs,K.GeomFormat=_n,K.NumberFormat=En,K.Pagination=Ct,K.SelectFormat=Sn,K.SelectionInfo=Fs,K.TextFormat=xn,K.default=kt,K.formatComponents=St,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|