@opengis/table 0.0.44 → 0.0.45
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/Export.vue.d.ts +3 -0
- package/dist/components/Export.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +2330 -2329
- package/dist/index.umd.js +12 -24
- package/package.json +58 -58
package/dist/index.umd.js
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
(function(X,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(X=typeof globalThis<"u"?globalThis:X||self,r(X.filter={},X.Vue))})(this,function(X,r){"use strict";function Ns(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ss=Ns(r),at={en:{table:{actions:"Actions",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",chooseFormat:"Choose table format:",selectAll:"Select all",selectCurrent:"Select current",none:"None",noData:{title:"No data",description:"No data here yet. We will notify you when there's an update."},format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{actions:"Дії",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",chooseFormat:"Виберіть формат таблиці:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",noData:{title:"Немає даних",description:"Тут поки що немає даних. Ми повідомимо вас, коли з'являться оновлення."},format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо експорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function Rn(e){const n=(()=>{try{if(typeof localStorage<"u"){const l=localStorage.getItem("language")||localStorage.getItem("locale");if(l)return l.substring(0,2)}}catch{}return typeof navigator<"u"?(navigator.language||navigator.languages?.[0]||"uk").substring(0,2):"uk"})();if(!at||typeof at!="object")return e;const s=at[n]||at.uk||{},i=e.split(".").reduce((l,a)=>l&&typeof l=="object"&&a in l?l[a]:null,s);return i&&typeof i=="string"?i:e}function ct(){const e=r.getCurrentInstance();if(!e?.appContext?.config?.globalProperties?.$i18n)return Rn;const t=e.appContext.config.globalProperties.$t;return n=>{const s=t(n);return s===n?Rn(n):s}}function dt(e){return e&&e.toString().split("-")[0]?.toLowerCase()||"uk"}function Cs(){if(typeof window<"u")try{const e=window.localStorage.getItem("locale")||window.localStorage.getItem("language");if(e)return dt(e)}catch{}if(typeof navigator<"u"){const e=navigator.language||navigator.languages?.[0];if(e)return dt(e)}return"uk"}function ue(e,t,n){if(!e)return;const s=dt(t),o=`${n}:${s}`;if(o in e&&e[o]!=null)return e[o];if(s in e&&e[s]!=null)return e[s];if(n in e&&e[n]!=null)return e[n]}function pt(e,t){return ue(e,t,"label")??ue(e,t,"header")??ue(e,t,"title")??ue(e,t,"ua")??ue(e,t,"name")??e?.name??""}function Ln(e,t){return ue(e,t,"info")??null}function _s(e,t){return ue(e,t,"description")??null}function Ts(e,t){return ue(e,t,"placeholder")??null}function Ft(e,t,n){return e?ue(e,t,n)??e[n]??null:null}function Bs(e,t){return ue(e,t,"label")??ue(e,t,"text")??ue(e,t,"name")??ue(e,t,"value")??e?.label??e?.text??e?.value?.toString?.()}function Ds(e){return"detail"in e}function Os(e){if(Ds(e)&&e.detail)return{key:e.detail.key,value:e.detail.newValue};const t=e;return{key:t.key,value:t.newValue}}function ft(){const e=r.ref(Cs()),t=s=>{e.value=dt(s)},n=s=>{const{key:o,value:i}=Os(s);o!=="locale"&&o!=="language"||t(i??void 0)};return r.onMounted(()=>{typeof window>"u"||window.addEventListener("storage",n)}),r.onUnmounted(()=>{typeof window>"u"||window.removeEventListener("storage",n)}),e}const Is={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},As={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},$s=["placeholder"],Ms={class:"p-1 pt-3 max-h-80 overflow-y-auto"},Rs={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},Ls=["onClick"],Ps={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"},Fs=["value"],Pn=r.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=ct(),s=e,o=t,i=r.useAttrs(),l=r.ref(!1),a=r.ref(""),c=r.ref(s.columns),f=r.ref(null),m=r.ref(null),p=r.ref(null),u=r.ref({top:0,left:0}),h=ft(),x=_=>pt(_,h.value),y=r.computed(()=>{if(!a.value)return c.value;const _=a.value.toLowerCase();return c.value.filter(z=>x(z).toLowerCase().includes(_))});r.watch(c,_=>{o("update:columns",_)},{deep:!0}),r.watch(()=>s.columns,_=>{JSON.stringify(_)!==JSON.stringify(c.value)&&(c.value=[..._])},{deep:!0});function N(_){Object.assign(_,{hidden:!_.hidden})}function C(){l.value=!l.value,r.nextTick(()=>{if(l.value&&(p.value?.focus(),f.value&&m.value)){const _=f.value.getBoundingClientRect();u.value={top:_.bottom+window.scrollY+5,left:_.left+window.scrollX-220}}})}function A(_){l.value&&m.value&&f.value&&!m.value.contains(_.target)&&!f.value.contains(_.target)&&(l.value=!1)}return r.onMounted(()=>{document.addEventListener("click",A,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",A,!0)}),(_,z)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:C,ref_key:"buttonRef",ref:f,class:r.normalizeClass([[r.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"])},z[2]||(z[2]=[r.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),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[l.value?(r.openBlock(),r.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:r.normalizeStyle([{position:"fixed"},{top:`${u.value.top}px`,left:`${u.value.left}px`}])},[r.createElementVNode("div",Is,r.toDisplayString(r.unref(n)("table.columns")),1),r.createElementVNode("div",As,[r.withDirectives(r.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:p,"onUpdate:modelValue":z[0]||(z[0]=j=>a.value=j),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:r.unref(n)("table.search")},null,8,$s),[[r.vModelText,a.value]])]),r.createElementVNode("div",Ms,[r.createElementVNode("span",Rs,r.toDisplayString(r.unref(n)("table.choose")),1),r.createElementVNode("div",{class:"space-y-1",onClick:z[1]||(z[1]=r.withModifiers(()=>{},["stop"]))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,j=>(r.openBlock(),r.createElementBlock("div",{key:j.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:V=>N(j)},[r.createElementVNode("label",Ps,[r.createTextVNode(r.toDisplayString(x(j))+" ",1),r.createElementVNode("input",{type:"checkbox",class:"hidden",value:j.hidden},null,8,Fs),r.createElementVNode("span",{class:r.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",j.hidden?"bg-white":"bg-blue-600 border-0"])},z[3]||(z[3]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,Ls))),128))])])],4)):r.createCommentVNode("",!0)]))],64))}}),Fn=r.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.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(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),zn=r.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),jn=r.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),Un=((e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n})(r.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.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 s(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),f=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${f}, ${l})`}const o=r.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:s(t.value.color,.1),color:s(t.value.color,.8)}:i});return(i,l)=>i.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["badge",n.value]),style:r.normalizeStyle(o.value)},r.toDisplayString(i.value?.text||i.value||"-"),7)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-14567189"]]),zs={class:"flex flex-wrap gap-1"},Hn=r.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),s=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(r.openBlock(),r.createElementBlock("div",zs,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(l,a)=>(r.openBlock(),r.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"},r.toDisplayString(s(l)),1))),128))]))}}),Wn=r.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.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)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),js={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"},qn=r.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return r.computed(()=>({})),(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[t.value?(r.openBlock(),r.createElementBlock("span",js,n[0]||(n[0]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):r.createCommentVNode("",!0),n[1]||(n[1]=r.createElementVNode("span",null,null,-1))],64))}}),Us={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},Hs={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},Kn=r.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=r.ref(!1),s=r.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const p="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${p}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=p,document.head.appendChild(h)}const u="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${u}"]`)||await new Promise((h,x)=>{const y=document.createElement("script");y.src=u,y.async=!0,y.onload=()=>h(),y.onerror=x,document.body.appendChild(y)}),o=window.L,o}async function c(){n.value=!0,await r.nextTick(),await a(),!i&&(i=o.map(s.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 f(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(p){if(!i||!o||(l&&(l.remove(),l=null),!p))return;l=o.geoJSON(p,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,x)=>o.marker(x)}).addTo(i);const u=l.getBounds?.();if(u&&u.isValid())i.fitBounds(u,{padding:[24,24]});else if(p.type==="Point"){const[h,x]=p.coordinates;i.setView([x,h],14)}}return r.watch(()=>t.value,p=>{n.value&&i&&m(p)},{deep:!0}),r.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(p,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.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"},u[0]||(u[0]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.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"}),r.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[n.value?(r.openBlock(),r.createElementBlock("div",Us,[r.createElementVNode("div",Hs,[r.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:f,title:"Close"},u[1]||(u[1]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),r.createElementVNode("div",{ref_key:"mapContainer",ref:s,class:"w-full h-full"},null,512)])])):r.createCommentVNode("",!0)]))]))}}),zt={number:Fn,date:zn,text:jn,badge:Un,array:Hn,select:Wn,boolean:qn,geom:Kn},Ws={class:"flex items-center space-x-4"},qs={class:"font-medium"},Ks={class:"font-medium"},Gs={class:"font-medium"},Js={class:"flex items-center space-x-2"},Xs=["disabled"],Ys={class:"flex items-center space-x-1"},Zs=["onClick"],Qs=["disabled"],jt=r.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,s=r.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=r.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,l=r.computed(()=>Math.ceil(n.total/n.limit)),a=r.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=r.computed(()=>Math.min(n.page*n.limit,n.total)),f=r.computed(()=>{const p=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)p.push(h);else{p.push(1),n.page>4&&p.push("...");const h=Math.max(2,n.page-1),x=Math.min(l.value-1,n.page+1);for(let y=h;y<=x;y+=1)y!==1&&y!==l.value&&p.push(y);n.page<l.value-3&&p.push("..."),l.value>1&&p.push(l.value)}return p}),m=p=>{p>=1&&p<=l.value&&p!==n.page&&i("update:page",p)};return(p,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[r.createElementVNode("div",Ws,[r.createElementVNode("div",{class:r.normalizeClass(["flex items-center text-sm",o.value.text,s.value.text])},[r.createElementVNode("span",null,[u[2]||(u[2]=r.createTextVNode(" Показано ",-1)),r.createElementVNode("span",qs,r.toDisplayString(a.value),1),u[3]||(u[3]=r.createTextVNode(" до ",-1)),r.createElementVNode("span",Ks,r.toDisplayString(c.value),1),u[4]||(u[4]=r.createTextVNode(" з ",-1)),r.createElementVNode("span",Gs,r.toDisplayString(p.total),1),u[5]||(u[5]=r.createTextVNode(" результатів ",-1))])],2)]),r.createElementVNode("div",Js,[r.createElementVNode("button",{onClick:u[0]||(u[0]=h=>m(p.page-1)),disabled:p.page<=1,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,p.page<=1?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,Xs),r.createElementVNode("div",Ys,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,h=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:h},[h==="..."?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["font-medium",s.value.button,o.value.ellipsis])}," ... ",2)):(r.openBlock(),r.createElementBlock("button",{key:1,onClick:x=>m(h),class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,h===p.page?o.value.buttonActive:o.value.button])},r.toDisplayString(h),11,Zs))],64))),128))]),r.createElementVNode("button",{onClick:u[1]||(u[1]=h=>m(p.page+1)),disabled:p.page>=l.value,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,p.page>=l.value?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,Qs)])],2))}});/**
|
|
2
|
-
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**/const Ze=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Qe=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),ht=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),Jn=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Ae=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Xn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Yn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ve=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Vt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),en=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),tn=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),nn=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Qn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Vn=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),mt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),gt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),rn=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),sn=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),et=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),tt=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),on=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),ln=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),yo=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),an=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),vt=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),bo=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Eo=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),cn=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),ko=Symbol(process.env.NODE_ENV!=="production"?"unref":""),xo=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),dn=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),er=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),je={[Ze]:"Fragment",[Qe]:"Teleport",[Gt]:"Suspense",[ht]:"KeepAlive",[Jn]:"BaseTransition",[Ae]:"openBlock",[Xn]:"createBlock",[Yn]:"createElementBlock",[Jt]:"createVNode",[Xt]:"createElementVNode",[Ve]:"createCommentVNode",[Yt]:"createTextVNode",[Zn]:"createStaticVNode",[Zt]:"resolveComponent",[Qt]:"resolveDynamicComponent",[Vt]:"resolveDirective",[en]:"resolveFilter",[tn]:"withDirectives",[nn]:"renderList",[Qn]:"renderSlot",[Vn]:"createSlots",[mt]:"toDisplayString",[gt]:"mergeProps",[rn]:"normalizeClass",[sn]:"normalizeStyle",[et]:"normalizeProps",[tt]:"guardReactiveProps",[on]:"toHandlers",[ln]:"camelize",[yo]:"capitalize",[an]:"toHandlerKey",[vt]:"setBlockTracking",[bo]:"pushScopeId",[Eo]:"popScopeId",[cn]:"withCtx",[ko]:"unref",[xo]:"isRef",[dn]:"withMemo",[er]:"isMemoSame"};function wo(e){Object.getOwnPropertySymbols(e).forEach(t=>{je[t]=e[t]})}const he={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function No(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:he}}function nt(e,t,n,s,o,i,l,a=!1,c=!1,f=!1,m=he){return e&&(a?(e.helper(Ae),e.helper(We(e.inSSR,f))):e.helper(He(e.inSSR,f)),l&&e.helper(tn)),{type:13,tag:t,props:n,children:s,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:f,loc:m}}function $e(e,t=he){return{type:17,loc:t,elements:e}}function ye(e,t=he){return{type:15,loc:t,properties:e}}function Z(e,t){return{type:16,loc:he,key:ne(e)?D(e,!0):e,value:t}}function D(e,t=!1,n=he,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function be(e,t=he){return{type:8,loc:t,children:e}}function te(e,t=[],n=he){return{type:14,loc:n,callee:e,arguments:t}}function Ue(e,t=void 0,n=!1,s=!1,o=he){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:o}}function pn(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:he}}function So(e,t,n=!1,s=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:s,needArraySpread:!1,loc:he}}function Co(e){return{type:21,body:e,loc:he}}function He(e,t){return e||t?Jt:Xt}function We(e,t){return e||t?Xn:Yn}function fn(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(He(s,e.isComponent)),t(Ae),t(We(s,e.isComponent)))}const tr=new Uint8Array([123,123]),nr=new Uint8Array([125,125]);function rr(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return e===32||e===10||e===9||e===12||e===13}function Te(e){return e===47||e===62||me(e)}function yt(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const re={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 _o{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=tr,this.delimiterClose=nr,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=tr,this.delimiterClose=nr}getPos(t){let n=1,s=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,s=t-i;break}}return{column:s,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?Te(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||me(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}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===re.TitleEnd||this.currentSequence===re.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===re.Cdata[this.sequenceIndex]?++this.sequenceIndex===re.Cdata.length&&(this.state=28,this.currentSequence=re.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===re.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):rr(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){Te(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Te(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(yt("</"+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){me(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=rr(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||me(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):me(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):me(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Te(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||Te(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||Te(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||Te(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||Te(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)):me(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):me(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){me(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=re.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===re.ScriptEnd[3]?this.startSpecial(re.ScriptEnd,4):t===re.StyleEnd[3]?this.startSpecial(re.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===re.TitleEnd[3]?this.startSpecial(re.TitleEnd,4):t===re.TextareaEnd[3]?this.startSpecial(re.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===re.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 To={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 un(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Be(e,t){const n=un("MODE",t),s=un(e,t);return n===3?s===!0:s!==!1}function qe(e,t,n,...s){const o=Be(e,t);return process.env.NODE_ENV!=="production"&&o&&bt(e,t,n,...s),o}function bt(e,t,n,...s){if(un(e,t)==="suppress-warning")return;const{message:i,link:l}=To[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...s):i}${l?`
|
|
10
|
-
|
|
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:""},ce=e=>e.type===4&&e.isStatic;function or(e){switch(e){case"Teleport":case"teleport":return Qe;case"Suspense":case"suspense":return Gt;case"KeepAlive":case"keep-alive":return ht;case"BaseTransition":case"base-transition":return Jn}}const Do=/^$|^\d|[^\$\w\xA0-\uFFFF]/,mn=e=>!Do.test(e),Oo=/[A-Za-z_$\xA0-\uFFFF]/,Io=/[\.\?\w$\xA0-\uFFFF]/,Ao=/\s+[.[]\s*|\s*[.[]\s+/g,ir=e=>e.type===4?e.content:e.loc.source,lr=e=>{const t=ir(e).trim().replace(Ao,a=>a.trim());let n=0,s=[],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==="[")s.push(n),n=1,o++;else if(c==="(")s.push(n),n=2,i++;else if(!(a===0?Oo:Io).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(s.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=s.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")s.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=s.pop())}break;case 3:c===l&&(n=s.pop(),l=null);break}}return!o&&!i},$o=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Mo=e=>$o.test(ir(e));function ar(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function de(e,t,n=!1){for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===7&&(n||o.exp)&&(ne(t)?o.name===t:t.test(o.name)))return o}}function rt(e,t,n=!1,s=!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||s))return i}else if(i.name==="bind"&&(i.exp||s)&&De(i.arg,t))return i}}function De(e,t){return!!(e&&ce(e)&&e.content===t)}function Ro(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function gn(e){return e.type===5||e.type===2}function cr(e){return e.type===7&&e.name==="pre"}function Lo(e){return e.type===7&&e.name==="slot"}function Et(e){return e.type===1&&e.tagType===3}function kt(e){return e.type===1&&e.tagType===2}const Po=new Set([et,tt]);function dr(e,t=[]){if(e&&!ne(e)&&e.type===14){const n=e.callee;if(!ne(n)&&Po.has(n))return dr(e.arguments[0],t.concat(e))}return[e,t]}function xt(e,t,n){let s,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!ne(o)&&o.type===14){const a=dr(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||ne(o))s=ye([t]);else if(o.type===14){const a=o.arguments[0];!ne(a)&&a.type===15?pr(t,a)||a.properties.unshift(t):o.callee===on?s=te(n.helper(gt),[ye([t]),o]):o.arguments.unshift(ye([t])),!s&&(s=o)}else o.type===15?(pr(t,o)||o.properties.unshift(t),s=o):(s=te(n.helper(gt),[ye([t]),o]),l&&l.callee===tt&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=s:e.props=s:l?l.arguments[0]=s:e.arguments[2]=s}function pr(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===s)}return n}function st(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Fo(e){return e.type===14&&e.callee===dn?e.arguments[1].returns:e}const zo=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,fr={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ut,isPreTag:ut,isIgnoreNewlineTag:ut,isCustomElement:ut,onError:hn,onWarn:sr,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let F=fr,ot=null,Ne="",oe=null,P=null,pe="",Se=-1,Me=-1,vn=0,Oe=!1,yn=null;const K=[],q=new _o(K,{onerr:fe,ontext(e,t){wt(se(e,t),e,t)},ontextentity(e,t,n){wt(e,t,n)},oninterpolation(e,t){if(Oe)return wt(se(e,t),e,t);let n=e+q.delimiterOpen.length,s=t-q.delimiterClose.length;for(;me(Ne.charCodeAt(n));)n++;for(;me(Ne.charCodeAt(s-1));)s--;let o=se(n,s);o.includes("&")&&(o=F.decodeEntities(o,!1)),bn({type:5,content:St(o,!1,Q(n,s)),loc:Q(e,t)})},onopentagname(e,t){const n=se(e,t);oe={type:1,tag:n,ns:F.getNamespace(n,K[0],F.ns),tagType:0,props:[],children:[],loc:Q(e-1,t),codegenNode:void 0}},onopentagend(e){hr(e)},onclosetag(e,t){const n=se(e,t);if(!F.isVoidTag(n)){let s=!1;for(let o=0;o<K.length;o++)if(K[o].tag.toLowerCase()===n.toLowerCase()){s=!0,o>0&&fe(24,K[0].loc.start.offset);for(let l=0;l<=o;l++){const a=K.shift();Nt(a,t,l<o)}break}s||fe(23,mr(e,60))}},onselfclosingtag(e){const t=oe.tag;oe.isSelfClosing=!0,hr(e),K[0]&&K[0].tag===t&&Nt(K.shift(),e)},onattribname(e,t){P={type:6,name:se(e,t),nameLoc:Q(e,t),value:void 0,loc:Q(e)}},ondirname(e,t){const n=se(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Oe&&s===""&&fe(26,e),Oe||s==="")P={type:6,name:n,nameLoc:Q(e,t),value:void 0,loc:Q(e)};else if(P={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[D("prop")]:[],loc:Q(e)},s==="pre"){Oe=q.inVPre=!0,yn=oe;const o=oe.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=Zo(o[i]))}},ondirarg(e,t){if(e===t)return;const n=se(e,t);if(Oe&&!cr(P))P.name+=n,Re(P.nameLoc,t);else{const s=n[0]!=="[";P.arg=St(s?n:n.slice(1,-1),s,Q(e,t),s?3:0)}},ondirmodifier(e,t){const n=se(e,t);if(Oe&&!cr(P))P.name+="."+n,Re(P.nameLoc,t);else if(P.name==="slot"){const s=P.arg;s&&(s.content+="."+n,Re(s.loc,t))}else{const s=D(n,!0,Q(e,t));P.modifiers.push(s)}},onattribdata(e,t){pe+=se(e,t),Se<0&&(Se=e),Me=t},onattribentity(e,t,n){pe+=e,Se<0&&(Se=t),Me=n},onattribnameend(e){const t=P.loc.start.offset,n=se(t,e);P.type===7&&(P.rawName=n),oe.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&fe(2,t)},onattribend(e,t){if(oe&&P){if(Re(P.loc,t),e!==0)if(pe.includes("&")&&(pe=F.decodeEntities(pe,!0)),P.type===6)P.name==="class"&&(pe=yr(pe).trim()),e===1&&!pe&&fe(13,t),P.value={type:2,content:pe,loc:e===1?Q(Se,Me):Q(Se-1,Me+1)},q.inSFCRoot&&oe.tag==="template"&&P.name==="lang"&&pe&&pe!=="html"&&q.enterRCDATA(yt("</template"),0);else{let n=0;P.exp=St(pe,!1,Q(Se,Me),0,n),P.name==="for"&&(P.forParseResult=Uo(P.exp));let s=-1;P.name==="bind"&&(s=P.modifiers.findIndex(o=>o.content==="sync"))>-1&&qe("COMPILER_V_BIND_SYNC",F,P.loc,P.arg.loc.source)&&(P.name="model",P.modifiers.splice(s,1))}(P.type!==7||P.name!=="pre")&&oe.props.push(P)}pe="",Se=Me=-1},oncomment(e,t){F.comments&&bn({type:3,content:se(e,t),loc:Q(e-4,t+3)})},onend(){const e=Ne.length;if(process.env.NODE_ENV!=="production"&&q.state!==1)switch(q.state){case 5:case 8:fe(5,e);break;case 3:case 4:fe(25,q.sectionStart);break;case 28:q.currentSequence===re.CdataEnd?fe(6,e):fe(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:fe(9,e);break}for(let t=0;t<K.length;t++)Nt(K[t],e-1),fe(24,K[t].loc.start.offset)},oncdata(e,t){K[0].ns!==0?wt(se(e,t),e,t):fe(1,e-9)},onprocessinginstruction(e){(K[0]?K[0].ns:F.ns)===0&&fe(21,e-1)}}),ur=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,jo=/^\(|\)$/g;function Uo(e){const t=e.loc,n=e.content,s=n.match(zo);if(!s)return;const[,o,i]=s,l=(p,u,h=!1)=>{const x=t.start.offset+u,y=x+p.length;return St(p,!1,Q(x,y),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(jo,"").trim();const f=o.indexOf(c),m=c.match(ur);if(m){c=c.replace(ur,"").trim();const p=m[1].trim();let u;if(p&&(u=n.indexOf(p,f+c.length),a.key=l(p,u,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?u+p.length:f+c.length),!0))}}return c&&(a.value=l(c,f,!0)),a}function se(e,t){return Ne.slice(e,t)}function hr(e){q.inSFCRoot&&(oe.innerLoc=Q(e+1,e+1)),bn(oe);const{tag:t,ns:n}=oe;n===0&&F.isPreTag(t)&&vn++,F.isVoidTag(t)?Nt(oe,e):(K.unshift(oe),(n===1||n===2)&&(q.inXML=!0)),oe=null}function wt(e,t,n){{const i=K[0]&&K[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=F.decodeEntities(e,!1))}const s=K[0]||ot,o=s.children[s.children.length-1];o&&o.type===2?(o.content+=e,Re(o.loc,n)):s.children.push({type:2,content:e,loc:Q(t,n)})}function Nt(e,t,n=!1){n?Re(e.loc,mr(t,60)):Re(e.loc,Ho(t,62)+1),q.inSFCRoot&&(e.children.length?e.innerLoc.end=Ce({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ce({},e.innerLoc.start),e.innerLoc.source=se(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:o,children:i}=e;if(Oe||(s==="slot"?e.tagType=2:gr(e)?e.tagType=3:qo(e)&&(e.tagType=1)),q.inRCDATA||(e.children=vr(i)),o===0&&F.isIgnoreNewlineTag(s)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&F.isPreTag(s)&&vn--,yn===e&&(Oe=q.inVPre=!1,yn=null),q.inXML&&(K[0]?K[0].ns:F.ns)===0&&(q.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&Be("COMPILER_V_IF_V_FOR_PRECEDENCE",F)){let c=!1,f=!1;for(let m=0;m<l.length;m++){const p=l[m];if(p.type===7&&(p.name==="if"?c=!0:p.name==="for"&&(f=!0)),c&&f){bt("COMPILER_V_IF_V_FOR_PRECEDENCE",F,e.loc);break}}}if(!q.inSFCRoot&&Be("COMPILER_NATIVE_TEMPLATE",F)&&e.tag==="template"&&!gr(e)){process.env.NODE_ENV!=="production"&&bt("COMPILER_NATIVE_TEMPLATE",F,e.loc);const c=K[0]||ot,f=c.children.indexOf(e);c.children.splice(f,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&qe("COMPILER_INLINE_TEMPLATE",F,a.loc)&&e.children.length&&(a.value={type:2,content:se(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function Ho(e,t){let n=e;for(;Ne.charCodeAt(n)!==t&&n<Ne.length-1;)n++;return n}function mr(e,t){let n=e;for(;Ne.charCodeAt(n)!==t&&n>=0;)n--;return n}const Wo=new Set(["if","else","else-if","for","slot"]);function gr({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Wo.has(t[n].name))return!0}return!1}function qo({tag:e,props:t}){if(F.isCustomElement(e))return!1;if(e==="component"||Ko(e.charCodeAt(0))||or(e)||F.isBuiltInComponent&&F.isBuiltInComponent(e)||F.isNativeTag&&!F.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const s=t[n];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(qe("COMPILER_IS_ON_ELEMENT",F,s.loc))return!0}}else if(s.name==="bind"&&De(s.arg,"is")&&qe("COMPILER_IS_ON_ELEMENT",F,s.loc))return!0}return!1}function Ko(e){return e>64&&e<91}const Go=/\r\n/g;function vr(e){const t=F.whitespace!=="preserve";let n=!1;for(let s=0;s<e.length;s++){const o=e[s];if(o.type===2)if(vn)o.content=o.content.replace(Go,`
|
|
12
|
-
`);else if(Jo(o.content)){const i=e[s-1]&&e[s-1].type,l=e[s+1]&&e[s+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&Xo(o.content)))?(n=!0,e[s]=null):o.content=" "}else t&&(o.content=yr(o.content))}return n?e.filter(Boolean):e}function Jo(e){for(let t=0;t<e.length;t++)if(!me(e.charCodeAt(t)))return!1;return!0}function Xo(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function yr(e){let t="",n=!1;for(let s=0;s<e.length;s++)me(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function bn(e){(K[0]||ot).children.push(e)}function Q(e,t){return{start:q.getPos(e),end:t==null?t:q.getPos(t),source:t==null?t:se(e,t)}}function Yo(e){return Q(e.start.offset,e.end.offset)}function Re(e,t){e.end=q.getPos(t),e.source=se(e.start.offset,t)}function Zo(e){const t={type:6,name:e.rawName,nameLoc:Q(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 St(e,t=!1,n,s=0,o=0){return D(e,t,n,s)}function fe(e,t,n){F.onError(W(e,Q(t,t),void 0,n))}function Qo(){q.reset(),oe=null,P=null,pe="",Se=-1,Me=-1,K.length=0}function Vo(e,t){if(Qo(),Ne=e,F=Ce({},fr),t){let o;for(o in t)t[o]!=null&&(F[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!F.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");q.mode=F.parseMode==="html"?1:F.parseMode==="sfc"?2:0,q.inXML=F.ns===1||F.ns===2;const n=t&&t.delimiters;n&&(q.delimiterOpen=yt(n[0]),q.delimiterClose=yt(n[1]));const s=ot=No([],e);return q.parse(Ne),s.loc=Q(0,e.length),s.children=vr(s.children),ot=null,s}function ei(e,t){Ct(e,void 0,t,!!br(e))}function br(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!kt(t[0])?t[0]:null}function Ct(e,t,n,s=!1,o=!1){const{children:i}=e,l=[];for(let p=0;p<i.length;p++){const u=i[p];if(u.type===1&&u.tagType===0){const h=s?0:ge(u,n);if(h>0){if(h>=2){u.codegenNode.patchFlag=-1,l.push(u);continue}}else{const x=u.codegenNode;if(x.type===13){const y=x.patchFlag;if((y===void 0||y===512||y===1)&&kr(u,n)>=2){const N=xr(u);N&&(x.props=n.hoist(N))}x.dynamicProps&&(x.dynamicProps=n.hoist(x.dynamicProps))}}}else if(u.type===12&&(s?0:ge(u,n))>=2){u.codegenNode.type===14&&u.codegenNode.arguments.length>0&&u.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${Ye[-1]} */`:"")),l.push(u);continue}if(u.type===1){const h=u.tagType===1;h&&n.scopes.vSlot++,Ct(u,e,n,!1,o),h&&n.scopes.vSlot--}else if(u.type===11)Ct(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let h=0;h<u.branches.length;h++)Ct(u.branches[h],e,n,u.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&&xe(e.codegenNode.children))e.codegenNode.children=f($e(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!xe(e.codegenNode.children)&&e.codegenNode.children.type===15){const p=m(e.codegenNode,"default");p&&(c.push(n.cached.length),p.returns=f($e(p.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!xe(t.codegenNode.children)&&t.codegenNode.children.type===15){const p=de(e,"slot",!0),u=p&&p.arg&&m(t.codegenNode,p.arg);u&&(c.push(n.cached.length),u.returns=f($e(u.returns)),a=!0)}}if(!a)for(const p of l)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&&!xe(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(Z("__",D(JSON.stringify(c),!1)));function f(p){const u=n.cache(p);return o&&n.hmr&&(u.needArraySpread=!0),u}function m(p,u){if(p.children&&!xe(p.children)&&p.children.type===15){const h=p.children.properties.find(x=>x.key===u||x.key.content===u);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function ge(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;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=kr(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 f=ge(e.children[c],t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}if(l>1)for(let c=0;c<e.props.length;c++){const f=e.props[c];if(f.type===7&&f.name==="bind"&&f.exp){const m=ge(f.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(Ae),t.removeHelper(We(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(He(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 ge(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(ne(a)||Wt(a))continue;const c=ge(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 ti=new Set([rn,sn,et,tt]);function Er(e,t){if(e.type===14&&!ne(e.callee)&&ti.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ge(n,t);if(n.type===14)return Er(n,t)}return 0}function kr(e,t){let n=3;const s=xr(e);if(s&&s.type===15){const{properties:o}=s;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=ge(l,t);if(c===0)return c;c<n&&(n=c);let f;if(a.type===4?f=ge(a,t):a.type===14?f=Er(a,t):f=0,f===0)return f;f<n&&(n=f)}}return n}function xr(e){const t=e.codegenNode;if(t.type===13)return t.props}function ni(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:f=Ut,isCustomElement:m=Ut,expressionPlugins:p=[],scopeId:u=null,slotted:h=!0,ssr:x=!1,inSSR:y=!1,ssrCssVars:N="",bindingMetadata:C=Vs,inline:A=!1,isTS:_=!1,onError:z=hn,onWarn:j=sr,compatConfig:V}){const G=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),O={filename:t,selfName:G&&Kt(_e(G[1])),prefixIdentifiers:n,hoistStatic:s,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:f,isCustomElement:m,expressionPlugins:p,scopeId:u,slotted:h,ssr:x,inSSR:y,ssrCssVars:N,bindingMetadata:C,inline:A,isTS:_,onError:z,onWarn:j,compatConfig:V,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 $=O.helpers.get(S)||0;return O.helpers.set(S,$+1),S},removeHelper(S){const $=O.helpers.get(S);if($){const R=$-1;R?O.helpers.set(S,R):O.helpers.delete(S)}},helperString(S){return`_${je[O.helper(S)]}`},replaceNode(S){if(process.env.NODE_ENV!=="production"){if(!O.currentNode)throw new Error("Node being replaced is already removed.");if(!O.parent)throw new Error("Cannot replace root node.")}O.parent.children[O.childIndex]=O.currentNode=S},removeNode(S){if(process.env.NODE_ENV!=="production"&&!O.parent)throw new Error("Cannot remove root node.");const $=O.parent.children,R=S?$.indexOf(S):O.currentNode?O.childIndex:-1;if(process.env.NODE_ENV!=="production"&&R<0)throw new Error("node being removed is not a child of current parent");!S||S===O.currentNode?(O.currentNode=null,O.onNodeRemoved()):O.childIndex>R&&(O.childIndex--,O.onNodeRemoved()),O.parent.children.splice(R,1)},onNodeRemoved:Ut,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){ne(S)&&(S=D(S)),O.hoists.push(S);const $=D(`_hoisted_${O.hoists.length}`,!1,S.loc,2);return $.hoisted=S,$},cache(S,$=!1,R=!1){const B=So(O.cached.length,S,$,R);return O.cached.push(B),B}};return O.filters=new Set,O}function ri(e,t){const n=ni(e,t);_t(e,n),t.hoistStatic&&ei(e,n),t.ssr||si(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 si(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const o=br(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&fn(i,t),e.codegenNode=i}else e.codegenNode=s[0]}else if(s.length>1){let o=64;process.env.NODE_ENV!=="production"&&s.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=nt(t,n(Ze),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function oi(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];ne(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,_t(o,t))}}function _t(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(xe(l)?s.push(...l):s.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ve);break;case 5:t.ssr||t.helper(mt);break;case 9:for(let i=0;i<e.branches.length;i++)_t(e.branches[i],t);break;case 10:case 11:case 1:case 0:oi(e,t);break}t.currentNode=e;let o=s.length;for(;o--;)s[o]()}function wr(e,t){const n=ne(e)?s=>s===e:s=>e.test(s);return(s,o)=>{if(s.type===1){const{props:i}=s;if(s.tagType===3&&i.some(Lo))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 f=t(s,c,o);f&&l.push(f)}}return l}}}const Tt="/*@__PURE__*/",Nr=e=>`${je[e]}: _${je[e]}`;function ii(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:f="vue/server-renderer",ssr:m=!1,isTS:p=!1,inSSR:u=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:s,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:f,ssr:m,isTS:p,inSSR:u,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(y){return`_${je[y]}`},push(y,N=-2,C){h.code+=y},indent(){x(++h.indentLevel)},deindent(y=!1){y?--h.indentLevel:x(--h.indentLevel)},newline(){x(h.indentLevel)}};function x(y){h.push(`
|
|
13
|
-
`+" ".repeat(y),0)}return h}function li(e,t={}){const n=ii(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:f,ssr:m}=n,p=Array.from(e.helpers),u=p.length>0,h=!i&&s!=="module";ai(e,n);const y=m?"ssrRender":"render",C=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${y}(${C}) {`),l(),h&&(o("with (_ctx) {"),l(),u&&(o(`const { ${p.map(Nr).join(", ")} } = _Vue
|
|
14
|
-
`,-1),c())),e.components.length&&(En(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(En(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),En(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let A=0;A<e.temps;A++)o(`${A>0?", ":""}_temp${A}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
15
|
-
`,0),c()),m||o("return "),e.codegenNode?ie(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 ai(e,t){const{ssr:n,prefixIdentifiers:s,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,f=a,m=Array.from(e.helpers);if(m.length>0&&(o(`const _Vue = ${f}
|
|
16
|
-
`,-1),e.hoists.length)){const p=[Jt,Xt,Ve,Yt,Zn].filter(u=>m.includes(u)).map(Nr).join(", ");o(`const { ${p} } = _Vue
|
|
17
|
-
`,-1)}ci(e.hoists,t),i(),o("return ")}function En(e,t,{helper:n,push:s,newline:o,isTS:i}){const l=n(t==="filter"?en:t==="component"?Zt:Vt);for(let a=0;a<e.length;a++){let c=e[a];const f=c.endsWith("__self");f&&(c=c.slice(0,-6)),s(`const ${st(c,t)} = ${l}(${JSON.stringify(c)}${f?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function ci(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ie(i,t),s())}t.pure=!1}function di(e){return ne(e)||e.type===4||e.type===2||e.type===5||e.type===8}function kn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(s=>xe(s)||!di(s));t.push("["),n&&t.indent(),it(e,t,n),n&&t.deindent(),t.push("]")}function it(e,t,n=!1,s=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];ne(a)?o(a,-3):xe(a)?kn(a,t):ie(a,t),l<e.length-1&&(n?(s&&o(","),i()):s&&o(", "))}}function ie(e,t){if(ne(e)){t.push(e,-3);return}if(Wt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&ar(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ie(e.codegenNode,t);break;case 2:pi(e,t);break;case 4:Sr(e,t);break;case 5:fi(e,t);break;case 12:ie(e.codegenNode,t);break;case 8:Cr(e,t);break;case 3:hi(e,t);break;case 13:mi(e,t);break;case 14:vi(e,t);break;case 15:yi(e,t);break;case 17:bi(e,t);break;case 18:Ei(e,t);break;case 19:ki(e,t);break;case 20:xi(e,t);break;case 21:it(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 ar(!1,`unhandled codegen node type: ${e.type}`),e}}function pi(e,t){t.push(JSON.stringify(e.content),-3,e)}function Sr(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function fi(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Tt),n(`${s(mt)}(`),ie(e.content,t),n(")")}function Cr(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];ne(s)?t.push(s,-3):ie(s,t)}}function ui(e,t){const{push:n}=t;if(e.type===8)n("["),Cr(e,t),n("]");else if(e.isStatic){const s=mn(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function hi(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Tt),n(`${s(Ve)}(${JSON.stringify(e.content)})`,-3,e)}function mi(e,t){const{push:n,helper:s,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:f,directives:m,isBlock:p,disableTracking:u,isComponent:h}=e;let x;if(c)if(process.env.NODE_ENV!=="production")if(c<0)x=c+` /* ${Ye[c]} */`;else{const N=Object.keys(Ye).map(Number).filter(C=>C>0&&c&C).map(C=>Ye[C]).join(", ");x=c+` /* ${N} */`}else x=String(c);m&&n(s(tn)+"("),p&&n(`(${s(Ae)}(${u?"true":""}), `),o&&n(Tt);const y=p?We(t.inSSR,h):He(t.inSSR,h);n(s(y)+"(",-2,e),it(gi([i,l,a,x,f]),t),n(")"),p&&n(")"),m&&(n(", "),ie(m,t),n(")"))}function gi(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function vi(e,t){const{push:n,helper:s,pure:o}=t,i=ne(e.callee)?e.callee:s(e.callee);o&&n(Tt),n(i+"(",-2,e),it(e.arguments,t),n(")")}function yi(e,t){const{push:n,indent:s,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&&s();for(let c=0;c<l.length;c++){const{key:f,value:m}=l[c];ui(f,t),n(": "),ie(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function bi(e,t){kn(e.elements,t)}function Ei(e,t){const{push:n,indent:s,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:f}=e;f&&n(`_${je[cn]}(`),n("(",-2,e),xe(i)?it(i,t):i&&ie(i,t),n(") => "),(c||a)&&(n("{"),s()),l?(c&&n("return "),xe(l)?kn(l,t):ie(l,t)):a&&ie(a,t),(c||a)&&(o(),n("}")),f&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ki(e,t){const{test:n,consequent:s,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:f}=t;if(n.type===4){const p=!mn(n.content);p&&l("("),Sr(n,t),p&&l(")")}else l("("),ie(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),ie(s,t),t.indentLevel--,i&&f(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,ie(o,t),m||t.indentLevel--,i&&c(!0)}function xi(e,t){const{push:n,helper:s,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${s(vt)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),ie(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${s(vt)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const wi=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"),Ni=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Le(e,t,n=!1,s=!1){const o=e.content;if(o.trim())try{new Function(s?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(Ni,"").match(wi);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(W(45,e.loc,void 0,l))}}const Si=(e,t)=>{if(e.type===5)e.content=xn(e.content,t);else if(e.type===1){const n=de(e,"memo");for(let s=0;s<e.props.length;s++){const o=e.props[s];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=xn(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=xn(l,t))}}}};function xn(e,t,n=!1,s=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Le(e,t,n,s),e}const Ci=wr(/^(if|else|else-if)$/,(e,t,n)=>_i(e,t,n,(s,o,i)=>{const l=n.parent.children;let a=l.indexOf(s),c=0;for(;a-->=0;){const f=l[a];f&&f.type===9&&(c+=f.branches.length)}return()=>{if(i)s.codegenNode=Tr(o,c,n);else{const f=Bi(s.codegenNode);f.alternate=Tr(o,c+s.branches.length-1,n)}}}));function _i(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(W(28,t.loc)),t.exp=D("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Le(t.exp,n),t.name==="if"){const o=_r(e,t),i={type:9,loc:Yo(e.loc),branches:[o]};if(n.replaceNode(i),s)return s(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(W(30,e.loc)),n.removeNode();const c=_r(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:p})=>{Ti(p,m)&&n.onError(W(29,c.userKey.loc))})}a.branches.push(c);const f=s&&s(a,c,!1);_t(c,n),f&&f(),n.currentNode=null}else n.onError(W(30,e.loc));break}}}function _r(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!de(e,"for")?e.children:[e],userKey:rt(e,"key"),isTemplateIf:n}}function Tr(e,t,n){return e.condition?pn(e.condition,Br(e,t,n),te(n.helper(Ve),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):Br(e,t,n)}function Br(e,t,n){const{helper:s}=n,o=Z("key",D(`${t}`,!1,he,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 xt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(f=>f.type!==3).length===1&&(c|=2048),nt(n,s(Ze),ye([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,f=Fo(c);return f.type===13&&fn(f,n),xt(f,o,n),c}}function Ti(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,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function Bi(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 Di=(e,t,n)=>{const{modifiers:s,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(W(52,i.loc)),{props:[Z(i,D("",!0,o))]};Dr(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=i.content?`${i.content} || ""`:'""'),s.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=_e(i.content):i.content=`${n.helperString(ln)}(${i.content})`:(i.children.unshift(`${n.helperString(ln)}(`),i.children.push(")"))),n.inSSR||(s.some(a=>a.content==="prop")&&Or(i,"."),s.some(a=>a.content==="attr")&&Or(i,"^")),{props:[Z(i,l)]}},Dr=(e,t)=>{const n=e.arg,s=_e(n.content);e.exp=D(s,!1,n.loc)},Or=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Oi=wr("for",(e,t,n)=>{const{helper:s,removeHelper:o}=n;return Ii(e,t,n,i=>{const l=te(s(nn),[i.source]),a=Et(e),c=de(e,"memo"),f=rt(e,"key",!1,!0);f&&f.type===7&&!f.exp&&Dr(f);let p=f&&(f.type===6?f.value?D(f.value.content,!0):void 0:f.exp);const u=f&&p?Z("key",p):null,h=i.source.type===4&&i.source.constType>0,x=h?64:f?128:256;return i.codegenNode=nt(n,s(Ze),void 0,l,x,void 0,void 0,!0,!h,!1,e.loc),()=>{let y;const{children:N}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(_=>{if(_.type===1){const z=rt(_,"key");if(z)return n.onError(W(33,z.loc)),!0}});const C=N.length!==1||N[0].type!==1,A=kt(e)?e:a&&e.children.length===1&&kt(e.children[0])?e.children[0]:null;if(A?(y=A.codegenNode,a&&u&&xt(y,u,n)):C?y=nt(n,s(Ze),u?ye([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=N[0].codegenNode,a&&u&&xt(y,u,n),y.isBlock!==!h&&(y.isBlock?(o(Ae),o(We(n.inSSR,y.isComponent))):o(He(n.inSSR,y.isComponent))),y.isBlock=!h,y.isBlock?(s(Ae),s(We(n.inSSR,y.isComponent))):s(He(n.inSSR,y.isComponent))),c){const _=Ue(wn(i.parseResult,[D("_cached")]));_.body=Co([be(["const _memo = (",c.exp,")"]),be(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(er)}(_cached, _memo)) return _cached`]),be(["const _item = ",y]),D("_item.memo = _memo"),D("return _item")]),l.arguments.push(_,D("_cache"),D(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Ue(wn(i.parseResult),y,!0))}})});function Ii(e,t,n,s){if(!t.exp){n.onError(W(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(W(32,t.loc));return}Ir(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:f,key:m,index:p}=o,u={type:11,loc:t.loc,source:c,valueAlias:f,keyAlias:m,objectIndexAlias:p,parseResult:o,children:Et(e)?e.children:[e]};n.replaceNode(u),a.vFor++;const h=s&&s(u);return()=>{a.vFor--,h&&h()}}function Ir(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Le(e.source,t),e.key&&Le(e.key,t,!0),e.index&&Le(e.index,t,!0),e.value&&Le(e.value,t,!0)),e.finalized=!0)}function wn({value:e,key:t,index:n},s=[]){return Ai([e,t,n,...s])}function Ai(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||D("_".repeat(s+1),!1))}const Ar=D("undefined",!1),$i=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=de(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Mi=(e,t,n,s)=>Ue(e,n,!1,!0,n.length?n[0].loc:s);function Ri(e,t,n=Mi){t.helper(cn);const{children:s,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=de(e,"slot",!0);if(c){const{arg:N,exp:C}=c;N&&!ce(N)&&(a=!0),i.push(Z(N||D("default",!0),n(C,void 0,s,o)))}let f=!1,m=!1;const p=[],u=new Set;let h=0;for(let N=0;N<s.length;N++){const C=s[N];let A;if(!Et(C)||!(A=de(C,"slot",!0))){C.type!==3&&p.push(C);continue}if(c){t.onError(W(37,A.loc));break}f=!0;const{children:_,loc:z}=C,{arg:j=D("default",!0),exp:V,loc:G}=A;let O;ce(j)?O=j?j.content:"default":a=!0;const S=de(C,"for"),$=n(V,S,_,z);let R,B;if(R=de(C,"if"))a=!0,l.push(pn(R.exp,Bt(j,$,h++),Ar));else if(B=de(C,/^else(-if)?$/,!0)){let w=N,b;for(;w--&&(b=s[w],!(b.type!==3&&Nn(b))););if(b&&Et(b)&&de(b,/^(else-)?if$/)){let k=l[l.length-1];for(;k.alternate.type===19;)k=k.alternate;k.alternate=B.exp?pn(B.exp,Bt(j,$,h++),Ar):Bt(j,$,h++)}else t.onError(W(30,B.loc))}else if(S){a=!0;const w=S.forParseResult;w?(Ir(w,t),l.push(te(t.helper(nn),[w.source,Ue(wn(w),Bt(j,$),!0)]))):t.onError(W(32,S.loc))}else{if(O){if(u.has(O)){t.onError(W(38,G));continue}u.add(O),O==="default"&&(m=!0)}i.push(Z(j,$))}}if(!c){const N=(C,A)=>{const _=n(C,void 0,A,o);return t.compatConfig&&(_.isNonScopedSlot=!0),Z("default",_)};f?p.length&&p.some(C=>Nn(C))&&(m?t.onError(W(39,p[0].loc)):i.push(N(void 0,p))):i.push(N(void 0,s))}const x=a?2:Dt(e.children)?3:1;let y=ye(i.concat(Z("_",D(x+(process.env.NODE_ENV!=="production"?` /* ${so[x]} */`:""),!1))),o);return l.length&&(y=te(t.helper(Vn),[y,$e(l)])),{slots:y,hasDynamicSlots:a}}function Bt(e,t,n){const s=[Z("name",e),Z("fn",t)];return n!=null&&s.push(Z("key",D(String(n),!0))),ye(s)}function Dt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Dt(n.children))return!0;break;case 9:if(Dt(n.branches))return!0;break;case 10:case 11:if(Dt(n.children))return!0;break}}return!1}function Nn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Nn(e.content)}const $r=new WeakMap,Li=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:o}=e,i=e.tagType===1;let l=i?Pi(e,t):`"${s}"`;const a=eo(l)&&l.callee===Qt;let c,f,m=0,p,u,h,x=a||l===Qe||l===Gt||!i&&(s==="svg"||s==="foreignObject"||s==="math");if(o.length>0){const y=Mr(e,t,void 0,i,a);c=y.props,m=y.patchFlag,u=y.dynamicPropNames;const N=y.directives;h=N&&N.length?$e(N.map(C=>zi(C,t))):void 0,y.shouldUseBlock&&(x=!0)}if(e.children.length>0)if(l===ht&&(x=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(W(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==Qe&&l!==ht){const{slots:N,hasDynamicSlots:C}=Ri(e,t);f=N,C&&(m|=1024)}else if(e.children.length===1&&l!==Qe){const N=e.children[0],C=N.type,A=C===5||C===8;A&&ge(N,t)===0&&(m|=1),A||C===2?f=N:f=e.children}else f=e.children;u&&u.length&&(p=ji(u)),e.codegenNode=nt(t,l,c,f,m===0?void 0:m,p,h,!!x,!1,i,e.loc)};function Pi(e,t,n=!1){let{tag:s}=e;const o=Sn(s),i=rt(e,"is",!1,!0);if(i)if(o||Be("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 te(t.helper(Qt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const l=or(s)||t.isBuiltInComponent(s);return l?(n||t.helper(l),l):(t.helper(Zt),t.components.add(s),st(s,"component"))}function Mr(e,t,n=e.props,s,o,i=!1){const{tag:l,loc:a,children:c}=e;let f=[];const m=[],p=[],u=c.length>0;let h=!1,x=0,y=!1,N=!1,C=!1,A=!1,_=!1,z=!1;const j=[],V=$=>{f.length&&(m.push(ye(Rr(f),a)),f=[]),$&&m.push($)},G=()=>{t.scopes.vFor>0&&f.push(Z(D("ref_for",!0),D("true")))},O=({key:$,value:R})=>{if(ce($)){const B=$.content,w=Ht(B);if(w&&(!s||o)&&B.toLowerCase()!=="onclick"&&B!=="onUpdate:modelValue"&&!Gn(B)&&(A=!0),w&&Gn(B)&&(z=!0),w&&R.type===14&&(R=R.arguments[0]),R.type===20||(R.type===4||R.type===8)&&ge(R,t)>0)return;B==="ref"?y=!0:B==="class"?N=!0:B==="style"?C=!0:B!=="key"&&!j.includes(B)&&j.push(B),s&&(B==="class"||B==="style")&&!j.includes(B)&&j.push(B)}else _=!0};for(let $=0;$<n.length;$++){const R=n[$];if(R.type===6){const{loc:B,name:w,nameLoc:b,value:k}=R;let T=!0;if(w==="ref"&&(y=!0,G()),w==="is"&&(Sn(l)||k&&k.content.startsWith("vue:")||Be("COMPILER_IS_ON_ELEMENT",t)))continue;f.push(Z(D(w,!0,b),D(k?k.content:"",T,k?k.loc:B)))}else{const{name:B,arg:w,exp:b,loc:k,modifiers:T}=R,J=B==="bind",M=B==="on";if(B==="slot"){s||t.onError(W(40,k));continue}if(B==="once"||B==="memo"||B==="is"||J&&De(w,"is")&&(Sn(l)||Be("COMPILER_IS_ON_ELEMENT",t))||M&&i)continue;if((J&&De(w,"key")||M&&u&&De(w,"vue:before-update"))&&(h=!0),J&&De(w,"ref")&&G(),!w&&(J||M)){if(_=!0,b)if(J){if(V(),process.env.NODE_ENV!=="production"&&m.some(Y=>Y.type===15?Y.properties.some(({key:ve})=>ve.type!==4||!ve.isStatic?!0:ve.content!=="class"&&ve.content!=="style"&&!Ht(ve.content)):!0)&&qe("COMPILER_V_BIND_OBJECT_ORDER",t,k),Be("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(b);continue}G(),V(),m.push(b)}else V({type:14,loc:k,callee:t.helper(on),arguments:s?[b]:[b,"true"]});else t.onError(W(J?34:35,k));continue}J&&T.some(U=>U.content==="prop")&&(x|=32);const L=t.directiveTransforms[B];if(L){const{props:U,needRuntime:Y}=L(R,e,t);!i&&U.forEach(O),M&&w&&!ce(w)?V(ye(U,a)):f.push(...U),Y&&(p.push(R),Wt(Y)&&$r.set(R,Y))}else to(B)||(p.push(R),u&&(h=!0))}}let S;if(m.length?(V(),m.length>1?S=te(t.helper(gt),m,a):S=m[0]):f.length&&(S=ye(Rr(f),a)),_?x|=16:(N&&!s&&(x|=2),C&&!s&&(x|=4),j.length&&(x|=8),A&&(x|=32)),!h&&(x===0||x===32)&&(y||z||p.length>0)&&(x|=512),!t.inSSR&&S)switch(S.type){case 15:let $=-1,R=-1,B=!1;for(let k=0;k<S.properties.length;k++){const T=S.properties[k].key;ce(T)?T.content==="class"?$=k:T.content==="style"&&(R=k):T.isHandlerKey||(B=!0)}const w=S.properties[$],b=S.properties[R];B?S=te(t.helper(et),[S]):(w&&!ce(w.value)&&(w.value=te(t.helper(rn),[w.value])),b&&(C||b.value.type===4&&b.value.content.trim()[0]==="["||b.value.type===17)&&(b.value=te(t.helper(sn),[b.value])));break;case 14:break;default:S=te(t.helper(et),[te(t.helper(tt),[S])]);break}return{props:S,directives:p,patchFlag:x,dynamicPropNames:j,shouldUseBlock:h}}function Rr(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const o=e[s];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"||Ht(i))&&Fi(l,o):(t.set(i,o),n.push(o))}return n}function Fi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=$e([e.value,t.value],e.loc)}function zi(e,t){const n=[],s=$r.get(e);s?n.push(t.helperString(s)):(t.helper(Vt),t.directives.add(e.name),n.push(st(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(ye(e.modifiers.map(l=>Z(l,i)),o))}return $e(n,e.loc)}function ji(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function Sn(e){return e==="component"||e==="Component"}const Ui=(e,t)=>{if(kt(e)){const{children:n,loc:s}=e,{slotName:o,slotProps:i}=Hi(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Ue([],n,!1,!1,s),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=te(t.helper(Qn),l,s)}};function Hi(e,t){let n='"default"',s;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=_e(l.name),o.push(l)));else if(l.name==="bind"&&De(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=_e(l.arg.content);n=l.exp=D(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&ce(l.arg)&&(l.arg.content=_e(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=Mr(e,t,o,!1,!1);s=i,l.length&&t.onError(W(36,l[0].loc))}return{slotName:n,slotProps:s}}const Lr=(e,t,n,s)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(W(35,o));let a;if(l.type===4)if(l.isStatic){let p=l.content;process.env.NODE_ENV!=="production"&&p.startsWith("vnode")&&n.onError(W(51,l.loc)),p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const u=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?ro(_e(p)):`on:${p}`;a=D(u,!0,l.loc)}else a=be([`${n.helperString(an)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(an)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let f=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=lr(c),u=!(p||Mo(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Le(c,n,!1,h),(u||f&&p)&&(c=be([`${u?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[Z(a,c||D("() => {}",!1,o))]};return s&&(m=s(m)),f&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(p=>p.key.isHandlerKey=!0),m},Wi=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(gn(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(gn(c))s||(s=n[i]=be([l],l.loc)),s.children.push(" + ",c),n.splice(a,1),a--;else{s=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(gn(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&ge(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${Ye[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:te(t.helper(Yt),a)}}}}},Pr=new WeakSet,qi=(e,t)=>{if(e.type===1&&de(e,"once",!0))return Pr.has(e)||t.inVOnce||t.inSSR?void 0:(Pr.add(e),t.inVOnce=!0,t.helper(vt),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},Fr=(e,t,n)=>{const{exp:s,arg:o}=e;if(!s)return n.onError(W(41,e.loc)),Ot();const i=s.loc.source.trim(),l=s.type===4?s.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(W(44,s.loc)),Ot();if(!l.trim()||!lr(s))return n.onError(W(42,s.loc)),Ot();const c=o||D("modelValue",!0),f=o?ce(o)?`onUpdate:${_e(o.content)}`:be(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const p=n.isTS?"($event: any)":"$event";m=be([`${p} => ((`,s,") = $event)"]);const u=[Z(c,e.exp),Z(f,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(y=>y.content).map(y=>(mn(y)?y:JSON.stringify(y))+": true").join(", "),x=o?ce(o)?`${o.content}Modifiers`:be([o,' + "Modifiers"']):"modelModifiers";u.push(Z(x,D(`{ ${h} }`,!1,e.loc,2)))}return Ot(u)};function Ot(e=[]){return{props:e}}const Ki=/[\w).+\-_$\]]/,Gi=(e,t)=>{Be("COMPILER_FILTERS",t)&&(e.type===5?It(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&It(n.exp,t)}))};function It(e,t){if(e.type===4)zr(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?zr(s,t):s.type===8?It(e,t):s.type===5&&It(s.content,t))}}function zr(e,t){const n=e.content;let s=!1,o=!1,i=!1,l=!1,a=0,c=0,f=0,m=0,p,u,h,x,y=[];for(h=0;h<n.length;h++)if(u=p,p=n.charCodeAt(h),s)p===39&&u!==92&&(s=!1);else if(o)p===34&&u!==92&&(o=!1);else if(i)p===96&&u!==92&&(i=!1);else if(l)p===47&&u!==92&&(l=!1);else if(p===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!f)x===void 0?(m=h+1,x=n.slice(0,h).trim()):N();else{switch(p){case 34:o=!0;break;case 39:s=!0;break;case 96:i=!0;break;case 40:f++;break;case 41:f--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(p===47){let C=h-1,A;for(;C>=0&&(A=n.charAt(C),A===" ");C--);(!A||!Ki.test(A))&&(l=!0)}}x===void 0?x=n.slice(0,h).trim():m!==0&&N();function N(){y.push(n.slice(m,h).trim()),m=h+1}if(y.length){for(process.env.NODE_ENV!=="production"&&bt("COMPILER_FILTERS",t,e.loc),h=0;h<y.length;h++)x=Ji(x,y[h],t);e.content=x,e.ast=void 0}}function Ji(e,t,n){n.helper(en);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${st(t,"filter")}(${e})`;{const o=t.slice(0,s),i=t.slice(s+1);return n.filters.add(o),`${st(o,"filter")}(${e}${i!==")"?","+i:i}`}}const jr=new WeakSet,Xi=(e,t)=>{if(e.type===1){const n=de(e,"memo");return!n||jr.has(e)?void 0:(jr.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&fn(s,t),e.codegenNode=te(t.helper(dn),[n.exp,Ue(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Yi(e){return[[qi,Ci,Xi,Oi,Gi,...process.env.NODE_ENV!=="production"?[Si]:[],Ui,Li,$i,Wi],{on:Lr,bind:Di,model:Fr}]}function Zi(e,t={}){const n=t.onError||hn,s=t.mode==="module";t.prefixIdentifiers===!0?n(W(47)):s&&n(W(48));const o=!1;t.cacheHandlers&&n(W(49)),t.scopeId&&!s&&n(W(50));const i=Ce({},t,{prefixIdentifiers:o}),l=ne(e)?Vo(e,i):e,[a,c]=Yi();return ri(l,Ce({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ce({},c,t.directiveTransforms||{})})),li(l,i)}const Qi=()=>({props:[]});/**
|
|
18
|
-
* @vue/compiler-dom v3.5.18
|
|
19
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
-
* @license MIT
|
|
21
|
-
**/const Ur=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Hr=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Wr=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),qr=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),Cn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Kr=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Gr=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Jr=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),_n=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Xr=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");wo({[Ur]:"vModelRadio",[Hr]:"vModelCheckbox",[Wr]:"vModelText",[qr]:"vModelSelect",[Cn]:"vModelDynamic",[Kr]:"withModifiers",[Gr]:"withKeys",[Jr]:"vShow",[_n]:"Transition",[Xr]:"TransitionGroup"});let Ke;function Vi(e,t=!1){return Ke||(Ke=document.createElement("div")),t?(Ke.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ke.children[0].getAttribute("foo")):(Ke.innerHTML=e,Ke.textContent)}const el={parseMode:"html",isVoidTag:vo,isNativeTag:e=>ho(e)||mo(e)||go(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Vi,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return _n;if(e==="TransitionGroup"||e==="transition-group")return Xr},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===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"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},tl=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:nl(t.value.content,t.loc),modifiers:[],loc:t.loc})})},nl=(e,t)=>{const n=ao(e);return D(JSON.stringify(n),!1,t,3)};function Ee(e,t){return W(e,t,process.env.NODE_ENV!=="production"?rl:void 0)}const rl={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."},sl=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(53,o)),t.children.length&&(n.onError(Ee(54,o)),t.children.length=0),{props:[Z(D("innerHTML",!0,o),s||D("",!0))]}},ol=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(55,o)),t.children.length&&(n.onError(Ee(56,o)),t.children.length=0),{props:[Z(D("textContent",!0),s?ge(s,n)>0?s:te(n.helperString(mt),[s],o):D("",!0))]}},il=(e,t,n)=>{const s=Fr(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(Ee(58,e.arg.loc));function o(){const a=de(t,"bind");a&&De(a.arg,"value")&&n.onError(Ee(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=Wr,c=!1;if(i==="input"||l){const f=rt(t,"type");if(f){if(f.type===7)a=Cn;else if(f.value)switch(f.value.content){case"radio":a=Ur;break;case"checkbox":a=Hr;break;case"file":c=!0,n.onError(Ee(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else Ro(t)?a=Cn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=qr:process.env.NODE_ENV!=="production"&&o();c||(s.needRuntime=n.helper(a))}else n.onError(Ee(57,e.loc));return s.props=s.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),s},ll=ke("passive,once,capture"),al=ke("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),cl=ke("left,right"),Yr=ke("onkeyup,onkeydown,onkeypress"),dl=(e,t,n,s)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&qe("COMPILER_V_ON_NATIVE",n,s)||ll(c)?l.push(c):cl(c)?ce(e)?Yr(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):al(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},Zr=(e,t)=>ce(e)&&e.content.toLowerCase()==="onclick"?D(t,!0):e.type!==4?be(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,pl=(e,t,n)=>Lr(e,t,n,s=>{const{modifiers:o}=e;if(!o.length)return s;let{key:i,value:l}=s.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:f}=dl(i,o,n,e.loc);if(c.includes("right")&&(i=Zr(i,"onContextmenu")),c.includes("middle")&&(i=Zr(i,"onMouseup")),c.length&&(l=te(n.helper(Kr),[l,JSON.stringify(c)])),a.length&&(!ce(i)||Yr(i.content.toLowerCase()))&&(l=te(n.helper(Gr),[l,JSON.stringify(a)])),f.length){const m=f.map(Kt).join("");i=ce(i)?D(`${i.content}${m}`,!0):be(["(",i,`) + "${m}"`])}return{props:[Z(i,l)]}}),fl=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(61,o)),{props:[],needRuntime:n.helper(Jr)}},ul=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===_n)return()=>{if(!e.children.length)return;Qr(e)&&t.onError(Ee(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const o of s.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Qr(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Qr)}const hl=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(Ee(63,e.loc)),t.removeNode())};function ml(e,t){return e==="template"?!0:e in Vr?Vr[e].has(t):t in es?es[t].has(e):!(e in ts&&ts[e].has(t)||t in ns&&ns[t].has(e))}const Ge=new Set(["h1","h2","h3","h4","h5","h6"]),Pe=new Set([]),Vr={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:Pe,iframe:Pe,option:Pe,textarea:Pe,style:Pe,title:Pe},es={html:Pe,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"])},ts={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"])},ns={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:Ge,h2:Ge,h3:Ge,h4:Ge,h5:Ge,h6:Ge},gl=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!ml(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)}},vl=[tl,...process.env.NODE_ENV!=="production"?[ul,gl]:[]],yl={cloak:Qi,html:sl,text:ol,model:il,on:pl,show:fl};function bl(e,t={}){return Zi(e,Ce({},el,t,{nodeTransforms:[hl,...vl,...t.nodeTransforms||[]],directiveTransforms:Ce({},yl,t.directiveTransforms||{}),transformHoist:null}))}function El(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:s}=bl(n,{mode:"function"}),o=new Function("Vue",`${s}; return render`)(Ss);return r.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const Tn={};function rs(e){return Tn[e]||(Tn[e]=El(e,{props:{row:Object,value:null,data:Object,column:Object}})),Tn[e]}const kl={class:"py-10 flex flex-col justify-center items-center text-center"},xl={class:"max-w-sm mx-auto"},wl={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Nl={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Sl=r.defineComponent({__name:"nodata",props:{title:{},description:{}},setup(e){const t=ct(),n=e,s=r.computed(()=>n.title??t("table.noData.title")),o=r.computed(()=>n.description??t("table.noData.description"));return(i,l)=>(r.openBlock(),r.createElementBlock("div",kl,[l[0]||(l[0]=r.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)),r.createElementVNode("div",xl,[r.createElementVNode("p",wl,r.toDisplayString(s.value),1),r.createElementVNode("p",Nl,r.toDisplayString(o.value),1)])]))}}),Cl=["aria-checked","data-state"],_l={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},Tl=["onKeydown"],Bl={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"},Dl={class:"py-2 px-4"},Ol={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},Il={class:"truncate"},Al={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},$l={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"},Ml=["onClick"],Rl={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},Ll={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"},Pl={key:1,class:"p-4"},Fl={class:"text-base font-semibold text-gray-800 mb-3"},zl={class:"mb-4"},jl={class:"block text-sm font-medium text-gray-700 mb-1"},Ul={key:0,class:"text-xs text-gray-500 mb-2"},Hl=["placeholder"],Wl=["placeholder"],ql=["placeholder"],Kl={disabled:"",value:""},Gl=["value"],Jl={key:0,class:"text-xs text-gray-500"},Xl={class:"flex justify-end gap-2 border-t pt-3"},Yl=r.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function},overflow:{}},emits:["edit","update"],setup(e,{emit:t}){const n=e,s=t,o=r.ref(!1),i=r.ref(null),l=r.ref(null),a=r.ref(n.value),c=r.ref([]),f=r.ref({}),m=ft(),p=r.computed(()=>n.column?.schema?.[n.column?.name]),u=r.computed(()=>pt(n.column||{},m.value)),h=r.computed(()=>Ts(n.column||{},m.value)||""),x=r.computed(()=>Ln(n.column||{},m.value)),y=r.computed(()=>_s(n.column||{},m.value)),N=r.computed(()=>Ft(p.value,m.value,"placeholder")||h.value||""),C=r.computed(()=>Ft(p.value,m.value,"info")||x.value||null),A=r.computed(()=>Ft(p.value,m.value,"description")||y.value||null),_=r.computed(()=>N.value||"-- виберіть --");r.watch(()=>n.value,M=>{a.value=M});const z=r.computed(()=>{const M=n.column?.schema?.[n.column?.name];if(M?.type)switch(M.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 U=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(U)?U:"text"}),j=r.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(L=>({value:L.id??L.value,color:L.color,label:Bs(L,m.value)||""}))),V=r.ref(null);function G(){if(!o.value||!V.value||!l.value)return;const M=V.value.getBoundingClientRect(),{left:L,right:U,top:Y}=M,ve=window.innerWidth||document.documentElement.clientWidth,Je=window.innerHeight||document.documentElement.clientHeight,le=8;let Ie=U+le,Fe=Y;const we=l.value.getBoundingClientRect();Ie+we.width>ve-le&&(Ie=L-we.width-le),Ie=Math.max(le,Math.min(Ie,ve-we.width-le)),Fe+we.height>Je-le&&(Fe=Je-we.height-le),Fe=Math.max(le,Math.min(Fe,Je-we.height-le)),f.value={left:`${Math.round(Ie)}px`,top:`${Math.round(Fe)}px`}}function O(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&r.nextTick(()=>{G(),i.value?.focus?.(),i.value?.showPicker?.(),z.value==="select"&&J()}))}function S(){s("edit",n.row,n.column.name,a.value),s("update",n.row,n.column.name,a.value),o.value=!1}function $(){a.value=n.value,o.value=!1}function R(M){if(!o.value)return;const L=M.target;l.value&&l.value.contains(L)||V.value&&!V.value.contains(L)&&(o.value=!1)}function B(){o.value=!1}r.onMounted(()=>{document.addEventListener("click",R),document.addEventListener("close-all-popovers",B),window.addEventListener("resize",G),document.addEventListener("scroll",G,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",R),document.removeEventListener("close-all-popovers",B),window.removeEventListener("resize",G),document.removeEventListener("scroll",G,!0)});function w(){n.editable&&(a.value=!a.value,s("update",n.row,n.column.name,a.value))}function b(M){return n.color?n.color.startsWith("#")?M.replace("{c}",`[${n.color}]`):M.replace("{c}",`${n.color}-500`):M.replace("{c}","cyan-500")}const k=r.computed(()=>({border:b("border-{c}"),ring:b("focus:ring-{c}"),text:b("text-{c}"),hover:b("hover:text-{c}"),bg:b("bg-{c} hover:bg-{c}/90")})),T=r.computed(()=>n.overflow==="wrap"?["flex-1","whitespace-normal","break-words"]:["flex-1","truncate","whitespace-nowrap"]);async function J(){if(z.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(M){console.error(`Не удалось загрузить options для ${n.column.name}`,M)}}return(M,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(M.classContent?M.classContent:"relative group w-full"),ref_key:"cellRef",ref:V},[z.value==="boolean"&&M.editable?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:r.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?k.value.border:"",k.value.ring,a.value?k.value.bg:""]),onClick:r.withModifiers(w,["stop"])},[a.value?(r.openBlock(),r.createElementBlock("span",_l,L[4]||(L[4]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):r.createCommentVNode("",!0)],10,Cl)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"flex items-start justify-between cursor-pointer gap-2",onClick:r.withModifiers(O,["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(T.value)},[r.renderSlot(M.$slots,"default")],2),M.editable?(r.openBlock(),r.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:r.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",k.value.text])},L[5]||(L[5]=[r.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)):r.createCommentVNode("",!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[o.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:r.normalizeClass(["fixed z-[9999] bg-white border rounded-lg shadow-lg",z.value==="select"?"":"w-[450px]"]),style:r.normalizeStyle(f.value),onKeydown:r.withKeys(r.withModifiers($,["stop","prevent"]),["esc"])},[z.value==="select"?(r.openBlock(),r.createElementBlock("div",Bl,[r.createElementVNode("div",Dl,[r.createElementVNode("span",Ol,[r.createElementVNode("span",Il,r.toDisplayString(u.value),1)])]),r.createElementVNode("div",Al,[r.createElementVNode("div",$l,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(j.value,U=>(r.openBlock(),r.createElementBlock("label",{key:U.value.toString(),onClick:r.withModifiers(()=>{a.value=U.value,S()},["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"},[L[8]||(L[8]=r.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),U.color?(r.openBlock(),r.createElementBlock("span",Rl,L[6]||(L[6]=[r.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(U.label)+" ",1),a.value===U.value?(r.openBlock(),r.createElementBlock("svg",Ll,L[7]||(L[7]=[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):r.createCommentVNode("",!0)],8,Ml))),128))])])])):(r.openBlock(),r.createElementBlock("div",Pl,[r.createElementVNode("h3",Fl," Редагувати "+r.toDisplayString(u.value),1),r.createElementVNode("div",zl,[r.createElementVNode("label",jl,r.toDisplayString(u.value),1),C.value?(r.openBlock(),r.createElementBlock("p",Ul,r.toDisplayString(C.value),1)):r.createCommentVNode("",!0),z.value==="text"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":L[0]||(L[0]=U=>a.value=U),type:"text",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:N.value,onKeyup:r.withKeys(S,["enter"])},null,42,Hl)),[[r.vModelText,a.value]]):z.value==="number"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":L[1]||(L[1]=U=>a.value=U),type:"number",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:N.value,onKeyup:r.withKeys(S,["enter"])},null,42,Wl)),[[r.vModelText,a.value,void 0,{number:!0}]]):z.value==="date"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":L[2]||(L[2]=U=>a.value=U),type:"date",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:N.value,onChange:S},null,42,ql)),[[r.vModelText,a.value]]):z.value==="select"?r.withDirectives((r.openBlock(),r.createElementBlock("select",{key:4,ref_key:"inputRef",ref:i,"onUpdate:modelValue":L[3]||(L[3]=U=>a.value=U),class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",k.value.ring,k.value.border])},[r.createElementVNode("option",Kl,r.toDisplayString(_.value),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(j.value,U=>(r.openBlock(),r.createElementBlock("option",{key:U.value.toString(),value:U.value},r.toDisplayString(U.label),9,Gl))),128))],2)),[[r.vModelSelect,a.value]]):r.createCommentVNode("",!0)]),A.value?(r.openBlock(),r.createElementBlock("p",Jl,r.toDisplayString(A.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Xl,[r.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:$}," Скасувати "),r.createElementVNode("button",{type:"button",class:r.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",k.value.bg]),onClick:S}," Зберегти ",2)])]))],46,Tl)):r.createCommentVNode("",!0)]))],64))],2))}}),ss=typeof window<"u",os=typeof document<"u",Zl=()=>{if(!os)throw new Error("Tooltip requires document to be defined");const e=document.createElement("div");return e.className="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",e.style.opacity="0",e.style.visibility="hidden",document.body.appendChild(e),e},is=(e,t)=>{if(!os||!ss)return;const n=Zl(),s={text:t,tooltipEl:n,show:o=>{if(!s.text||!ss)return;n.textContent=s.text;const i=o.currentTarget.getBoundingClientRect(),l=window.innerWidth-n.offsetWidth-12,a=Math.max(12,Math.min(i.left,l));n.style.left=`${a}px`,n.style.top=`${i.bottom+4}px`,n.style.opacity="1",n.style.visibility="visible"},hide:()=>{n.style.opacity="0",n.style.visibility="hidden"}};e.addEventListener("mouseenter",s.show),e.addEventListener("mouseleave",s.hide),e.addEventListener("focus",s.show),e.addEventListener("blur",s.hide),e.tooltipHandlers=s},ls=e=>{e.tooltipHandlers&&(e.removeEventListener("mouseenter",e.tooltipHandlers.show),e.removeEventListener("mouseleave",e.tooltipHandlers.hide),e.removeEventListener("focus",e.tooltipHandlers.show),e.removeEventListener("blur",e.tooltipHandlers.hide),e.tooltipHandlers.tooltipEl.remove(),delete e.tooltipHandlers)},Ql={mounted(e,t){t.value&&is(e,t.value)},updated(e,t){const n=e;if(!t.value){ls(n);return}if(!n.tooltipHandlers){is(n,t.value);return}n.tooltipHandlers.text=t.value},unmounted(e){ls(e)}},Vl={key:0,class:"text-center py-8"},ea={class:"inline-flex items-center space-x-2"},ta={key:2,class:"overflow-x-auto"},na={key:0},ra={key:0,style:{width:"48px"}},sa={key:1,style:{width:"100px"}},oa=["checked","indeterminate"],ia=["onClick"],la={class:"flex items-center justify-between"},aa={class:"flex items-center gap-1.5"},ca={key:0,class:"relative group"},da=["onMouseenter"],pa={key:0,class:"ml-1 text-xs"},fa=["onMousedown"],ua=["onClick"],ha=["checked","onChange"],ma=["onClick"],ga={key:1,class:"text-center"},va=["colspan"],Bn=50,ya=180,At=r.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},hasAction:{type:Boolean,default:!0},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"},resizableColumnsWidth:{type:Boolean,default:!1},resizableColumnsWidthStorageKey:{default:""}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,s=Ql,o=r.ref({}),i=r.ref(null),l=r.ref(!1);let a=0,c=0,f=null,m=null;const p=t,u=r.ref(n.selectedRows||[]),h=r.ref(n.defaultSort.map(d=>({field:d.name,direction:d.asc?"asc":"desc"}))),x=r.ref([]),y=r.ref([]),N=r.ref(!1),C=r.ref(null),A=r.ref(n.router),_=r.useSlots(),z=r.computed(()=>_.action),j=r.computed(()=>z.value&&n.hasAction);function V(d){if(A.value){A.value.push(d);return}location.href=d}const G=r.computed(()=>{if(n.api)return x.value;if(n.sortable&&h.value.length>0){const d=[...n.rows];return d.sort((E,g)=>{for(const H of h.value){if(!H.direction)return 0;const v=E[H.field],I=g[H.field];if(v==null)return 1;if(I==null)return-1;let ee=0;typeof v=="string"&&typeof I=="string"?ee=v.localeCompare(I):v<I?ee=-1:v>I?ee=1:ee=0;const Xe=H.direction==="desc"?-ee:ee;if(Xe!==0)return Xe}return 0}),d}return n.rows});r.watch(()=>n.selectedRows,d=>{u.value=d||[]});const O=d=>u.value.some(E=>E===d),S=d=>{const E=u.value.findIndex(g=>g===d);E>-1?u.value.splice(E,1):u.value.push(d),p("update:selectedRows",[...u.value])},$=r.computed(()=>G.value.length>0&&u.value.length===G.value.length),R=r.computed(()=>u.value.length>0&&u.value.length<G.value.length),B=()=>{$.value?u.value=[]:u.value=[...G.value],p("update:selectedRows",[...u.value])},w=(d,E)=>{if(!n.sortable||i.value||l.value)return;if(E?.ctrlKey||E?.metaKey){const v=h.value.findIndex(I=>I.field===d);if(v>=0){const I=h.value[v];I.direction==="asc"?I.direction="desc":I.direction==="desc"&&h.value.splice(v,1)}else h.value.unshift({field:d,direction:"asc"})}else{const v=h.value.find(I=>I.field===d);v?v.direction==="asc"?v.direction="desc":v.direction==="desc"&&(h.value=[]):h.value=[{field:d,direction:"asc"}]}const H=h.value.filter(v=>v.direction).map(v=>({name:v.field,asc:v.direction==="asc"}));p("sort",H),n.api&&Rt()},b=d=>h.value.find(g=>g.field===d)?.direction==="asc",k=d=>{const E=h.value.find(g=>g.field===d);if(!E)return"";switch(E.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},T=d=>n.sortable&&d.sortable!==!1,J=d=>{n.clickable&&p("row-click",d)},M=d=>d==null||d===""?"":typeof d=="object"?d?.text?String(d.text):d?.label?String(d.label):JSON.stringify(d):String(d),L=d=>d.map(M).filter(E=>E!=="").join(", "),U=(d,E)=>E.format!=="array"&&Array.isArray(d)?L(d):d,Y=(d,E)=>{const g=E[d.name];if(n.getCellData||d.getCellData){const I=d.getCellData||n.getCellData;if(I){const ee={name:d.name,row:E,value:g};return U(I(ee),d)}}const v=["_data","_text"].map(I=>{const ee=`${d.name}${I}`;return E[ee]?E[ee]:null}).find(I=>I)||(d.link?g||"-":g);return U(v,d)},ve=d=>Array.isArray(d)?L(d):M(d),Je=(d,E)=>{if(!E?.tooltip)return;const g=Y(E,d);if(g!=null)return ve(g)},le=d=>d.width?d.width==="w-full"?"w-full":typeof d.width=="string"?`w-[${d.width}px] max-w-[${d.width}px] min-w-[${d.width}px]`:typeof d.width=="number"?`w-[${d.width}px] max-w-[${d.width}px] min-w-[${d.width}px]`:"":"max-w-[350px]",Ie=d=>(typeof d?.overflow=="string"?d.overflow.toLowerCase():"")==="wrap"?"wrap":"clip",Fe=d=>Ie(d)==="wrap"?["whitespace-normal","break-words"]:["truncate","whitespace-nowrap"],we=r.ref(n.page),fs=r.ref(n.limit),Dn=r.ref(n.total),$t=r.ref(1),On=r.ref(10),Mt=r.ref(0),us=r.computed(()=>n.api?$t.value:we.value),hs=r.computed(()=>n.api?On.value:fs.value),ms=r.computed(()=>n.api?Mt.value:Dn.value),ae=r.computed(()=>{const{theme:d}=n;return d==="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"}:d==="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"}});r.watch(()=>n.page,d=>{we.value=d}),r.watch(()=>n.limit,d=>{fs.value=d}),r.watch(()=>n.total,d=>{Dn.value=d});async function Rt(){if(n.api){N.value=!0,C.value=null;try{const d=new URL(n.api,window.location.origin);if(d.searchParams.set("page",us.value.toString()),d.searchParams.set("limit",hs.value.toString()),h.value.length>0){const H=h.value.filter(v=>v.direction).map(v=>`${v.field}:${v.direction}`).join(",");H&&d.searchParams.set("sort",H)}const E=await fetch(d.toString());if(!E.ok)throw new Error(`HTTP error! status: ${E.status}`);const g=await E.json();g.rows&&Array.isArray(g.rows)&&(x.value=g.rows),g.columns&&Array.isArray(g.columns)&&(y.value=g.columns),g.total!==void 0&&(n.api?Mt.value=g.total:Dn.value=g.total)}catch(d){C.value=d instanceof Error?d.message:"Failed to fetch data",console.error("Error fetching data:",d)}finally{N.value=!1}}}const bc=d=>{n.api?$t.value=d:(we.value=d,p("update:page",d)),n.api&&Rt()},Ec=r.computed(()=>n.showPagination&&ms.value>0),lt=r.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]),kc=d=>{const E=[];return n.classTd?E.push(n.classTd):E.push(ae.value.td,lt.value.cell),d.align&&E.push(`text-${d.align}`),!n.resizableColumnsWidth&&le(d)&&E.push(le(d)),E.push(...Fe(d)),E.filter(Boolean)},xc=ct(),gs=ft();r.onMounted(()=>{n.api&&(n.page&&($t.value=n.page),n.limit&&(On.value=n.limit),n.total&&(Mt.value=n.total),Rt()),n.resizableColumnsWidth&&bs()}),r.watch(()=>n.api,d=>{d&&($t.value=n.page||1,On.value=n.limit||10,Mt.value=n.total||0,Rt())});const vs=r.computed(()=>n.api?y.value:n.columns),In=r.ref([]),Lt=r.ref({});r.provide("registerColumn",(d,E)=>{In.value.push(d),E&&d.slotName&&(Lt.value[d.name]=E)});const An=r.computed(()=>{const d=vs.value||[],E=[],g=_.default?.();if(g){const H=g.filter(v=>v.type?.name==="Column"||v.type==="Column"||v.type&&typeof v.type=="object"&&v.type.name==="Column").map(v=>{const I=v.props||v.componentProps||{},ee=I.field||I.name||"",Xe=I.header||I.label||"",ws=v.children&&v.children.body,Mn={name:ee,ua:Xe,format:I.format||"text",slotName:ws?"body":void 0,...I};return ws&&Mn.name&&(Lt.value[Mn.name]=v.children.body),Mn});E.push(...H)}if(In.value.length>0&&E.push(...In.value),E.length>0){const H=[],v=new Set(E.map(I=>I.name));return d.forEach(I=>{v.has(I.name)||H.push(I)}),H.push(...E),console.log("Combined columns:",{default:d.length,custom:E.length,combined:H.length}),H}return d.length>0?d:[]}),Pt=r.computed(()=>(An.value||[]).filter(d=>!d.hidden));function ys(d){if(typeof d.width=="number"&&d.width>0)return d.width;if(typeof d.width=="string"){const E=parseInt(d.width.replace(/px$/i,""),10);if(!Number.isNaN(E)&&E>0)return E}return ya}function bs(){if(!n.resizableColumnsWidth)return;const d=Pt.value;let E={};if(n.resizableColumnsWidthStorageKey)try{const g=localStorage.getItem(n.resizableColumnsWidthStorageKey);g&&(E={...JSON.parse(g)})}catch{}d.forEach(g=>{(E[g.name]==null||E[g.name]<Bn)&&(E[g.name]=ys(g))}),o.value=E}r.watch(()=>[An.value,n.resizableColumnsWidth],()=>{n.resizableColumnsWidth&&bs()});function Es(d){const E=o.value[d.name];return E!=null&&E>=Bn?E:ys(d)}function wc(d,E){i.value=E.name,a=d.clientX,c=Es(E),f=g=>{const H=g.clientX-a,v=Math.max(Bn,c+H);o.value={...o.value,[E.name]:v}},m=()=>{if(document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",m),document.body.style.userSelect="",n.resizableColumnsWidthStorageKey)try{localStorage.setItem(n.resizableColumnsWidthStorageKey,JSON.stringify(o.value))}catch{}l.value=!0,i.value=null,f=null,m=null,setTimeout(()=>{l.value=!1},100)},document.body.style.userSelect="none",document.addEventListener("mousemove",f),document.addEventListener("mouseup",m)}const Nc=(d="text")=>zt[d.toLowerCase()]||zt.text,ze=r.ref({});async function Sc(d){const{data:E,api:g}=An.value.find(H=>H.name===d);if(ze.value[d])return ze.value[d];if(E||g){const H=g||`/api/suggest/${E}?json=1`,I=await(await fetch(H)).json();I.data&&Array.isArray(I.data)&&(ze.value[d]=I.data.map(ee=>({value:ee.id??ee.value,label:ee.text??ee.label})))}return ze.value[d]}function Cc(d,E,g,H){const v=H;v!==-1&&(n.rows[v]={...n.rows[v],[E]:g}),p("cell-update",d,E,g)}function ks(d){return Ln(d,gs.value)}function _c(d){return pt(d,gs.value)}const $n=r.ref(null),xs=r.ref({top:"0px",left:"0px"});function Tc(d,E){const g=d.currentTarget.getBoundingClientRect();$n.value=E,xs.value={top:`${g.bottom+4}px`,left:`${Math.min(g.left,window.innerWidth-230)}px`}}function Bc(){$n.value=null}return r.watch(()=>n.form,async d=>{d&&(ze.value={})}),r.onMounted(()=>{n.form&&(ze.value={})}),(d,E)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["w-full",ae.value.container])},[N.value||n.loading?(r.openBlock(),r.createElementBlock("div",Vl,[r.createElementVNode("div",ea,[E[1]||(E[1]=r.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(ae.value.loading)},"Loading...",2)])])):C.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["text-center py-8",ae.value.error])},r.toDisplayString(C.value),3)):n.loading?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ta,[r.createElementVNode("div",{class:r.normalizeClass(d.classWrapper?d.classWrapper:"relative w-full overflow-auto")},[r.createElementVNode("table",{class:r.normalizeClass(d.classTable),style:r.normalizeStyle([d.tableStyle,n.resizableColumnsWidth?"table-layout: fixed":""])},[n.resizableColumnsWidth?(r.openBlock(),r.createElementBlock("colgroup",na,[d.selectable?(r.openBlock(),r.createElementBlock("col",ra)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,g=>(r.openBlock(),r.createElementBlock("col",{key:g.name,style:r.normalizeStyle({width:Es(g)+"px"})},null,4))),128)),j.value?(r.openBlock(),r.createElementBlock("col",sa)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("thead",{class:r.normalizeClass(d.classThead||ae.value.thead)},[r.createElementVNode("tr",null,[d.selectable?(r.openBlock(),r.createElementBlock("th",{key:0,class:r.normalizeClass(["text-left font-medium uppercase tracking-wider",ae.value.th,lt.value.header,n.classTh,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:$.value,indeterminate:R.value,onChange:B,class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",ae.value.checkbox])},null,42,oa)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,g=>(r.openBlock(),r.createElementBlock("th",{key:g.name,class:r.normalizeClass([n.resizableColumnsWidth?"relative":"",g.align?`text-${g.align}`:"",T(g)?["cursor-pointer",ae.value.thHover]:"",n.resizableColumnsWidth?"":le(g)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",ae.value.th,lt.value.header])),onClick:H=>T(g)?w(g.name,H):void 0},[r.createElementVNode("div",la,[r.createElementVNode("div",aa,[r.createElementVNode("span",null,r.toDisplayString(_c(g)),1),ks(g)?(r.openBlock(),r.createElementBlock("div",ca,[(r.openBlock(),r.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:H=>Tc(H,g.name),onMouseleave:Bc},E[2]||(E[2]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),r.createElementVNode("path",{d:"M12 16v-4"},null,-1),r.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,da)),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[$n.value===g.name?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(xs.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"},r.toDisplayString(ks(g)),5)):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)]),T(g)?(r.openBlock(),r.createElementBlock("span",pa,[r.renderSlot(d.$slots,"sort",{asc:b(g.name)},()=>[r.createTextVNode(r.toDisplayString(k(g.name)),1)])])):r.createCommentVNode("",!0)]),n.resizableColumnsWidth&&!g.action?(r.openBlock(),r.createElementBlock("div",{key:0,class:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-blue-400/30",onMousedown:r.withModifiers(H=>wc(H,g),["prevent"]),onClick:E[0]||(E[0]=r.withModifiers(()=>{},["stop","prevent"]))},null,40,fa)):r.createCommentVNode("",!0)],10,ia))),128)),j.value?(r.openBlock(),r.createElementBlock("th",{key:1,class:r.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",ae.value.th,lt.value.header]])},r.toDisplayString(r.unref(xc)("table.actions")),3)):r.createCommentVNode("",!0)])],2),G.value.length?(r.openBlock(),r.createElementBlock("tbody",{key:1,class:r.normalizeClass(d.classTbody||ae.value.tbody)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(G.value,(g,H)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:H},[r.createElementVNode("tr",{class:r.normalizeClass(n.classTr||[ae.value.tr,n.clickable?"cursor-pointer":""]),onClick:v=>n.clickable?J(g):void 0},[d.selectable?(r.openBlock(),r.createElementBlock("td",{key:0,class:r.normalizeClass(["whitespace-nowrap",ae.value.td,lt.value.cell,n.classTd,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:O(g),onChange:v=>S(g),class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",ae.value.checkbox])},null,42,ha)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,v=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{key:v.name,class:r.normalizeClass(kc(v))},[(r.openBlock(),r.createBlock(Yl,{"class-content":n.classContent,key:g,editable:v.edit,row:g,column:v,value:g[v.name],format:v.format,options:ze.value[v.name]||[],color:d.color,overflow:Ie(v),onUpdate:(I,ee,Xe)=>Cc(I,ee,Xe,H),"fetch-options":Sc},{default:r.withCtx(()=>[v.action&&z.value?r.renderSlot(d.$slots,"action",{key:0,row:g}):r.unref(_).number&&v.format==="number"?r.renderSlot(d.$slots,"number",{key:1,row:g,value:Y(v,g)}):r.unref(_).badge&&v.format==="badge"?r.renderSlot(d.$slots,"badge",{key:2,row:g,value:Y(v,g)}):r.unref(_).array&&v.format==="array"?r.renderSlot(d.$slots,"array",{key:3,row:g,value:Y(v,g)}):r.unref(_)[v.format]?r.renderSlot(d.$slots,v.format,{key:4,row:g,value:Y(v,g),column:v}):v.slotName&&Lt.value[v.name]?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Lt.value[v.name]),{key:5,data:g,value:Y(v,g),row:g,column:v},null,8,["data","value","row","column"])):v.link?(r.openBlock(),r.createElementBlock("a",{key:6,class:r.normalizeClass(d.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:I=>V(v.link.replace("{id}",g.id))},[v.slot&&typeof v.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(rs)(v.slot)),{key:0,row:g,value:g,data:g,column:v},null,8,["row","value","data","column"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(Y(v,g)),1)],64))],10,ma)):v.slot&&v.format==="slot"&&typeof v.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(rs)(v.slot)),{key:7,row:g,value:Y(v,g),data:g,column:v},null,8,["row","value","data","column"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Nc(v.format)),{key:8,value:Y(v,g),row:g,column:v,href:v.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","overflow","onUpdate"]))],2)),[[r.unref(s),Je(g,v)]])),128)),j.value?(r.openBlock(),r.createElementBlock("td",ga,[r.renderSlot(d.$slots,"action",{row:g})])):r.createCommentVNode("",!0)],10,ua),r.createElementVNode("tr",null,[r.renderSlot(d.$slots,"under-row",{row:g})])],64))),128))],2)):r.createCommentVNode("",!0),G.value.length===0?(r.openBlock(),r.createElementBlock("tbody",{key:2,class:r.normalizeClass(["text-center py-8",ae.value.empty])},[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:vs.value.length},[r.createVNode(Sl)],8,va)])],2)):r.createCommentVNode("",!0)],6)],2)])),Ec.value&&!N.value&&!n.loading&&!C.value?(r.openBlock(),r.createBlock(jt,{key:3,page:us.value,limit:hs.value,total:ms.value,theme:n.theme,size:n.size,"onUpdate:page":bc},null,8,["page","limit","total","theme","size"])):r.createCommentVNode("",!0)],2))}}),ba={style:{display:"none"}},as=r.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:{},tooltip:{type:Boolean},overflow:{}},setup(e){const t=e,n=r.useSlots(),s=r.inject("registerColumn");return r.onMounted(()=>{if(s){const{field:o,name:i,header:l,label:a,format:c,slotName:f,link:m,action:p,getCellData:u,suffix:h,...x}=t,A={name:o||i||"",ua:l||a||"",format:c||"text",slotName:f||(n.body?"body":void 0),link:m,action:p,getCellData:u,suffix:h,...x};console.log("Registering column:",A);const _=n.body;s(A,_)}}),(o,i)=>(r.openBlock(),r.createElementBlock("div",ba,[r.renderSlot(o.$slots,"body",{data:{}})]))}}),Ea={class:"mt-4"},ka={class:"text-sm text-gray-600 dark:text-gray-300"},cs=r.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=r.computed(()=>t.selectedRows.length);return(s,o)=>(r.openBlock(),r.createElementBlock("div",Ea,[r.createElementVNode("div",ka," Обрано: "+r.toDisplayString(n.value)+" з "+r.toDisplayString(s.totalCount)+" записів ",1)]))}}),xa={class:"mt-4"},wa={class:"border-b border-gray-200 dark:border-gray-700"},Na={class:"-mb-px flex space-x-8"},Sa=["onClick"],Ca={class:"mt-4"},_a={class:"bg-gray-900 rounded-lg overflow-hidden"},Ta={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"},Da=["onClick"],Oa={class:"p-4 text-sm text-gray-100 overflow-x-auto"},ds=r.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=r.ref(t.defaultTab||t.tabs[0]?.id||""),s=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(r.openBlock(),r.createElementBlock("div",xa,[r.createElementVNode("div",wa,[r.createElementVNode("nav",Na,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,l=>(r.openBlock(),r.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:r.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"])},r.toDisplayString(l.label),11,Sa))),128))])]),r.createElementVNode("div",Ca,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,l=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:l.id},[r.createElementVNode("div",_a,[r.createElementVNode("div",Ta,[r.createElementVNode("span",Ba,r.toDisplayString(l.label),1),r.createElementVNode("button",{onClick:a=>s(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[r.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r.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,Da)]),r.createElementVNode("pre",Oa,[r.createElementVNode("code",null,r.toDisplayString(l.content),1)])])])),[[r.vShow,n.value===l.id]])),128))])]))}}),Ia={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Aa={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"},$a={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},Ma={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Ra={class:"sr-only"},La={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},Pa={class:"p-4"},Fa={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},za={class:"text-sm font-[600] text-gray-500"},ja={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},Ua={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ha={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"},qa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Ka={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:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},Xa={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},Ya={class:"flex items-center gap-[4px]"},Za=["id","value"],Qa=["for"],Va={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"},ec={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},tc={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},nc={class:"text-sm font-[600] text-gray-500"},rc={class:"mt-2 space-y-2"},sc={class:"flex items-center"},oc={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ic={class:"flex items-center"},lc={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ac={class:"flex items-center"},cc={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},dc={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},pc={class:"flex items-center gap-2 mb-2"},fc={class:"flex justify-end gap-x-2"},uc={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},hc=["disabled"],mc={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},gc={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},vc={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},yc={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},ps=r.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=r.getCurrentInstance(),n=ct(),s=e,o=r.ref(!1),i=r.ref([]),l=r.ref("json"),a=r.ref(!1),c=r.ref(!1),f=r.ref(""),m=r.ref(!1),p=r.ref("all"),u=r.computed(()=>s.columns??[]),h=r.computed(()=>u.value.filter(w=>w.export!==!1)),x=r.useAttrs();function y(){const w=h.value;i.value=w.map(b=>b.name),p.value=w.length?"all":"none",l.value="json",o.value=!0,m.value=!1}function N(){o.value=!1,m.value=!1}function C(){const w=h.value;i.value=w.map(b=>b.name),p.value=w.length?"all":"none"}function A(){const w=h.value,b=w.filter(T=>!T.hidden).map(T=>T.name),k=b.length?b:w.map(T=>T.name);i.value=k,p.value=k.length?"active":"none"}function _(){i.value=[],p.value="none"}async function z(){const w=i.value.filter(k=>h.value.some(T=>T.name===k));if(w.length===0)return;a.value=!0,f.value="",c.value=!1;const b=new URLSearchParams({table:s.table,format:l.value,columns:w.join(",")});try{const k=await fetch(`/api/export?${b.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!k.ok)throw new Error("Export failed");if(k.headers.get("content-type")?.includes("text/event-stream")){if(N(),c.value=!0,m.value=!0,!await R(k,M=>{f.value=M}))throw new Error("Failed to process streamed export");f.value=n("table.preparingDownload"),await S(b),c.value=!1,m.value=!1}else await O(k),N()}catch(k){console.error(k);const{$notify:T=console.log}=t?.appContext?.config?.globalProperties||{};T({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),c.value=!1,m.value=!1}finally{a.value=!1}}const j=ft(),V=w=>pt(w,j.value);function G(w,b){const k=URL.createObjectURL(w),T=document.createElement("a");T.href=k,T.download=b||`${s.table}.${l.value}`,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(k)}async function O(w){const b=await w.blob();G(b,`${s.table}.${l.value}`)}async function S(w){const b=await fetch(`/api/export?${w.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!b.ok)throw new Error("Export failed");await O(b)}function $(w){return w.split(/\r?\n/).reduce((b,k)=>{const[T,...J]=k.split(":");if(!T)return b;const M=J.join(":").trimStart();return T==="event"&&(b.event=M),T==="data"&&(b.data=(b.data?`${b.data}
|
|
22
|
-
`:"")+M),b},{})}async function R(w,b){const k=w.body?.getReader();if(!k)return!1;const T=new TextDecoder;let J="",M=!1;for(;;){const{value:L,done:U}=await k.read();if(U)break;J+=T.decode(L,{stream:!0});let Y=J.indexOf(`
|
|
1
|
+
(function(X,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(X=typeof globalThis<"u"?globalThis:X||self,r(X.filter={},X.Vue))})(this,(function(X,r){"use strict";function Cs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _s=Cs(r),ct={en:{table:{actions:"Actions",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",chooseFormat:"Choose table format:",selectAll:"Select all",selectCurrent:"Select current",none:"None",noData:{title:"No data",description:"No data here yet. We will notify you when there's an update."},format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{actions:"Дії",choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",chooseFormat:"Виберіть формат таблиці:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",noData:{title:"Немає даних",description:"Тут поки що немає даних. Ми повідомимо вас, коли з'являться оновлення."},format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо експорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function Ln(e){const n=(()=>{try{if(typeof localStorage<"u"){const i=localStorage.getItem("language")||localStorage.getItem("locale");if(i)return i.substring(0,2)}}catch{}return typeof navigator<"u"?(navigator.language||navigator.languages?.[0]||"uk").substring(0,2):"uk"})();if(!ct||typeof ct!="object")return e;const s=ct[n]||ct.uk||{},l=e.split(".").reduce((i,a)=>i&&typeof i=="object"&&a in i?i[a]:null,s);return l&&typeof l=="string"?l:e}function dt(){const e=r.getCurrentInstance();if(!e?.appContext?.config?.globalProperties?.$i18n)return Ln;const t=e.appContext.config.globalProperties.$t;return n=>{const s=t(n);return s===n?Ln(n):s}}function ft(e){return e&&e.toString().split("-")[0]?.toLowerCase()||"uk"}function Ts(){if(typeof window<"u")try{const e=window.localStorage.getItem("locale")||window.localStorage.getItem("language");if(e)return ft(e)}catch{}if(typeof navigator<"u"){const e=navigator.language||navigator.languages?.[0];if(e)return ft(e)}return"uk"}function ue(e,t,n){if(!e)return;const s=ft(t),o=`${n}:${s}`;if(o in e&&e[o]!=null)return e[o];if(s in e&&e[s]!=null)return e[s];if(n in e&&e[n]!=null)return e[n]}function pt(e,t){return ue(e,t,"label")??ue(e,t,"header")??ue(e,t,"title")??ue(e,t,"ua")??ue(e,t,"name")??e?.name??""}function Pn(e,t){return ue(e,t,"info")??null}function Bs(e,t){return ue(e,t,"description")??null}function Ds(e,t){return ue(e,t,"placeholder")??null}function Ft(e,t,n){return e?ue(e,t,n)??e[n]??null:null}function Os(e,t){return ue(e,t,"label")??ue(e,t,"text")??ue(e,t,"name")??ue(e,t,"value")??e?.label??e?.text??e?.value?.toString?.()}function Is(e){return"detail"in e}function As(e){if(Is(e)&&e.detail)return{key:e.detail.key,value:e.detail.newValue};const t=e;return{key:t.key,value:t.newValue}}function ut(){const e=r.ref(Ts()),t=s=>{e.value=ft(s)},n=s=>{const{key:o,value:l}=As(s);o!=="locale"&&o!=="language"||t(l??void 0)};return r.onMounted(()=>{typeof window>"u"||window.addEventListener("storage",n)}),r.onUnmounted(()=>{typeof window>"u"||window.removeEventListener("storage",n)}),e}const $s={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},Ms={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},Rs=["placeholder"],Ls={class:"p-1 pt-3 max-h-80 overflow-y-auto"},Ps={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},Fs=["onClick"],zs={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"},js=["value"],Fn=r.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=dt(),s=e,o=t,l=r.useAttrs(),i=r.ref(!1),a=r.ref(""),c=r.ref(s.columns),p=r.ref(null),u=r.ref(null),d=r.ref(null),h=r.ref({top:0,left:0}),m=ut(),y=D=>pt(D,m.value),E=r.computed(()=>{if(!a.value)return c.value;const D=a.value.toLowerCase();return c.value.filter(H=>y(H).toLowerCase().includes(D))});r.watch(c,D=>{o("update:columns",D)},{deep:!0}),r.watch(()=>s.columns,D=>{JSON.stringify(D)!==JSON.stringify(c.value)&&(c.value=[...D])},{deep:!0});function _(D){Object.assign(D,{hidden:!D.hidden})}function S(){i.value=!i.value,r.nextTick(()=>{if(i.value&&(d.value?.focus(),p.value&&u.value)){const D=p.value.getBoundingClientRect();h.value={top:D.bottom+window.scrollY+5,left:D.left+window.scrollX-220}}})}function B(D){i.value&&u.value&&p.value&&!u.value.contains(D.target)&&!p.value.contains(D.target)&&(i.value=!1)}return r.onMounted(()=>{document.addEventListener("click",B,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",B,!0)}),(D,H)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:S,ref_key:"buttonRef",ref:p,class:r.normalizeClass([[r.unref(l).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"])},[...H[2]||(H[2]=[r.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),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"modalRef",ref:u,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:r.normalizeStyle([{position:"fixed"},{top:`${h.value.top}px`,left:`${h.value.left}px`}])},[r.createElementVNode("div",$s,r.toDisplayString(r.unref(n)("table.columns")),1),r.createElementVNode("div",Ms,[r.withDirectives(r.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:d,"onUpdate:modelValue":H[0]||(H[0]=z=>a.value=z),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:r.unref(n)("table.search")},null,8,Rs),[[r.vModelText,a.value]])]),r.createElementVNode("div",Ls,[r.createElementVNode("span",Ps,r.toDisplayString(r.unref(n)("table.choose")),1),r.createElementVNode("div",{class:"space-y-1",onClick:H[1]||(H[1]=r.withModifiers(()=>{},["stop"]))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.value,z=>(r.openBlock(),r.createElementBlock("div",{key:z.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:Q=>_(z)},[r.createElementVNode("label",zs,[r.createTextVNode(r.toDisplayString(y(z))+" ",1),r.createElementVNode("input",{type:"checkbox",class:"hidden",value:z.hidden},null,8,js),r.createElementVNode("span",{class:r.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",z.hidden?"bg-white":"bg-blue-600 border-0"])},[...H[3]||(H[3]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)])],2)])],8,Fs))),128))])])],4)):r.createCommentVNode("",!0)]))],64))}}),zn=r.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.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(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),jn=r.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(s,o)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(n.value||"-"),1))}}),Un=r.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,l)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),Hn=((e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n})(r.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>{const l=String(t.value||"").toLowerCase(),i="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return l.includes("success")||l.includes("active")||l.includes("completed")?`${i} bg-green-100 text-green-800`:l.includes("error")||l.includes("failed")||l.includes("inactive")?`${i} bg-red-100 text-red-800`:l.includes("warning")||l.includes("pending")?`${i} bg-yellow-100 text-yellow-800`:l.includes("info")||l.includes("processing")?`${i} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${i} bg-${t.value.color}-100 text-${t.value.color}-800`:`${i} bg-gray-100 text-gray-800`});function s(l,i=1){const a=parseInt(l.slice(1,3),16),c=parseInt(l.slice(3,5),16),p=parseInt(l.slice(5,7),16);return`rgba(${a}, ${c}, ${p}, ${i})`}const o=r.computed(()=>{const l={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...l,backgroundColor:s(t.value.color,.1),color:s(t.value.color,.8)}:l});return(l,i)=>e.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["badge",n.value]),style:r.normalizeStyle(o.value)},r.toDisplayString(e.value?.text||e.value||"-"),7)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-59a2b734"]]),Us={class:"flex flex-wrap gap-1"},Wn=r.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=r.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),s=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,l)=>(r.openBlock(),r.createElementBlock("div",Us,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(i,a)=>(r.openBlock(),r.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"},r.toDisplayString(s(i)),1))),128))]))}}),qn=r.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=r.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,l)=>l<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,l)=>(r.openBlock(),r.createElementBlock("span",null,r.toDisplayString(s.value||"-"),1))}}),Hs={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"},Kn=r.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return r.computed(()=>({})),(t,n)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[e.value?(r.openBlock(),r.createElementBlock("span",Hs,[...n[0]||(n[0]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)])])):r.createCommentVNode("",!0),n[1]||(n[1]=r.createElementVNode("span",null,null,-1))],64))}}),Ws={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},qs={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},Gn=r.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=r.ref(!1),s=r.ref(null);let o=null,l=null,i=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 m=document.createElement("link");m.rel="stylesheet",m.href=d,document.head.appendChild(m)}const h="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${h}"]`)||await new Promise((m,y)=>{const E=document.createElement("script");E.src=h,E.async=!0,E.onload=()=>m(),E.onerror=y,document.body.appendChild(E)}),o=window.L,o}async function c(){n.value=!0,await r.nextTick(),await a(),!l&&(l=o.map(s.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(l),u(t.value),setTimeout(()=>l.invalidateSize(),250))}function p(){n.value=!1,i&&(i.remove(),i=null),l&&(l.remove(),l=null)}function u(d){if(!l||!o||(i&&(i.remove(),i=null),!d))return;i=o.geoJSON(d,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(m,y)=>o.marker(y)}).addTo(l);const h=i.getBounds?.();if(h&&h.isValid())l.fitBounds(h,{padding:[24,24]});else if(d.type==="Point"){const[m,y]=d.coordinates;l.setView([y,m],14)}}return r.watch(()=>t.value,d=>{n.value&&l&&u(d)},{deep:!0}),r.onUnmounted(()=>{i&&(i.remove(),i=null),l&&(l.remove(),l=null)}),(d,h)=>(r.openBlock(),r.createElementBlock("div",null,[r.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"},[...h[0]||(h[0]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.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"}),r.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[n.value?(r.openBlock(),r.createElementBlock("div",Ws,[r.createElementVNode("div",qs,[r.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"},[...h[1]||(h[1]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[r.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),r.createElementVNode("div",{ref_key:"mapContainer",ref:s,class:"w-full h-full"},null,512)])])):r.createCommentVNode("",!0)]))]))}}),zt={number:zn,date:jn,text:Un,badge:Hn,array:Wn,select:qn,boolean:Kn,geom:Gn},Ks={class:"flex items-center space-x-4"},Gs={class:"font-medium"},Js={class:"font-medium"},Xs={class:"font-medium"},Ys={class:"flex items-center space-x-2"},Zs=["disabled"],Qs={class:"flex items-center space-x-1"},Vs=["onClick"],eo=["disabled"],jt=r.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,s=r.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=r.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"}}),l=t,i=r.computed(()=>Math.ceil(n.total/n.limit)),a=r.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=r.computed(()=>Math.min(n.page*n.limit,n.total)),p=r.computed(()=>{const d=[];if(i.value<=7)for(let m=1;m<=i.value;m+=1)d.push(m);else{d.push(1),n.page>4&&d.push("...");const m=Math.max(2,n.page-1),y=Math.min(i.value-1,n.page+1);for(let E=m;E<=y;E+=1)E!==1&&E!==i.value&&d.push(E);n.page<i.value-3&&d.push("..."),i.value>1&&d.push(i.value)}return d}),u=d=>{d>=1&&d<=i.value&&d!==n.page&&l("update:page",d)};return(d,h)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[r.createElementVNode("div",Ks,[r.createElementVNode("div",{class:r.normalizeClass(["flex items-center text-sm",o.value.text,s.value.text])},[r.createElementVNode("span",null,[h[2]||(h[2]=r.createTextVNode(" Показано ",-1)),r.createElementVNode("span",Gs,r.toDisplayString(a.value),1),h[3]||(h[3]=r.createTextVNode(" до ",-1)),r.createElementVNode("span",Js,r.toDisplayString(c.value),1),h[4]||(h[4]=r.createTextVNode(" з ",-1)),r.createElementVNode("span",Xs,r.toDisplayString(e.total),1),h[5]||(h[5]=r.createTextVNode(" результатів ",-1))])],2)]),r.createElementVNode("div",Ys,[r.createElementVNode("button",{onClick:h[0]||(h[0]=m=>u(e.page-1)),disabled:e.page<=1,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,e.page<=1?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...h[6]||(h[6]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)])],2))],10,Zs),r.createElementVNode("div",Qs,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.value,m=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:m},[m==="..."?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["font-medium",s.value.button,o.value.ellipsis])}," ... ",2)):(r.openBlock(),r.createElementBlock("button",{key:1,onClick:y=>u(m),class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,m===e.page?o.value.buttonActive:o.value.button])},r.toDisplayString(m),11,Vs))],64))),128))]),r.createElementVNode("button",{onClick:h[1]||(h[1]=m=>u(e.page+1)),disabled:e.page>=i.value,class:r.normalizeClass(["relative font-medium rounded-md",s.value.button,e.page>=i.value?o.value.buttonDisabled:o.value.button])},[(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...h[7]||(h[7]=[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])],2))],10,eo)])],2))}});function ke(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const to=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ut=()=>{},ht=()=>!1,Ht=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Be=Object.assign,Se=Array.isArray,ne=e=>typeof e=="string",Wt=e=>typeof e=="symbol",no=e=>e!==null&&typeof e=="object",Jn=ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ro=ke("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),qt=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},so=/-\w/g,De=qt(e=>e.replace(so,t=>t.slice(1).toUpperCase())),Kt=qt(e=>e.charAt(0).toUpperCase()+e.slice(1)),oo=qt(e=>e?`on${Kt(e)}`:""),Ye={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"},io={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},lo=/;(?![^(]*\))/g,ao=/:([^]+)/,co=/\/\*[^]*?\*\//g;function fo(e){const t={};return e.replace(co,"").split(lo).forEach(n=>{if(n){const s=n.split(ao);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}const po="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",uo="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",ho="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",mo="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",go=ke(po),vo=ke(uo),yo=ke(ho),bo=ke(mo);const Ze=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Qe=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),mt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),Xn=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),Me=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Yn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Zn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ve=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Qn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Vt=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),en=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),tn=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),nn=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Vn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),er=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),gt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),vt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),rn=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),sn=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),et=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),tt=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),on=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),ln=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Eo=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),an=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),yt=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),ko=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),xo=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),cn=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),wo=Symbol(process.env.NODE_ENV!=="production"?"unref":""),No=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),dn=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),tr=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Ue={[Ze]:"Fragment",[Qe]:"Teleport",[Gt]:"Suspense",[mt]:"KeepAlive",[Xn]:"BaseTransition",[Me]:"openBlock",[Yn]:"createBlock",[Zn]:"createElementBlock",[Jt]:"createVNode",[Xt]:"createElementVNode",[Ve]:"createCommentVNode",[Yt]:"createTextVNode",[Qn]:"createStaticVNode",[Zt]:"resolveComponent",[Qt]:"resolveDynamicComponent",[Vt]:"resolveDirective",[en]:"resolveFilter",[tn]:"withDirectives",[nn]:"renderList",[Vn]:"renderSlot",[er]:"createSlots",[gt]:"toDisplayString",[vt]:"mergeProps",[rn]:"normalizeClass",[sn]:"normalizeStyle",[et]:"normalizeProps",[tt]:"guardReactiveProps",[on]:"toHandlers",[ln]:"camelize",[Eo]:"capitalize",[an]:"toHandlerKey",[yt]:"setBlockTracking",[ko]:"pushScopeId",[xo]:"popScopeId",[cn]:"withCtx",[wo]:"unref",[No]:"isRef",[dn]:"withMemo",[tr]:"isMemoSame"};function So(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ue[t]=e[t]})}const he={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Co(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:he}}function nt(e,t,n,s,o,l,i,a=!1,c=!1,p=!1,u=he){return e&&(a?(e.helper(Me),e.helper(qe(e.inSSR,p))):e.helper(We(e.inSSR,p)),i&&e.helper(tn)),{type:13,tag:t,props:n,children:s,patchFlag:o,dynamicProps:l,directives:i,isBlock:a,disableTracking:c,isComponent:p,loc:u}}function Re(e,t=he){return{type:17,loc:t,elements:e}}function ve(e,t=he){return{type:15,loc:t,properties:e}}function Z(e,t){return{type:16,loc:he,key:ne(e)?I(e,!0):e,value:t}}function I(e,t=!1,n=he,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function be(e,t=he){return{type:8,loc:t,children:e}}function te(e,t=[],n=he){return{type:14,loc:n,callee:e,arguments:t}}function He(e,t=void 0,n=!1,s=!1,o=he){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:o}}function fn(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:he}}function _o(e,t,n=!1,s=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:s,needArraySpread:!1,loc:he}}function To(e){return{type:21,body:e,loc:he}}function We(e,t){return e||t?Jt:Xt}function qe(e,t){return e||t?Yn:Zn}function pn(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(We(s,e.isComponent)),t(Me),t(qe(s,e.isComponent)))}const nr=new Uint8Array([123,123]),rr=new Uint8Array([125,125]);function sr(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return e===32||e===10||e===9||e===12||e===13}function Oe(e){return e===47||e===62||me(e)}function bt(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const re={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 Bo{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=nr,this.delimiterClose=rr,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=nr,this.delimiterClose=rr}getPos(t){let n=1,s=t+1;const o=this.newlines.length;let l=-1;if(o>100){let i=-1,a=o;for(;i+1<a;){const c=i+a>>>1;this.newlines[c]<t?i=c:a=c}l=i}else for(let i=o-1;i>=0;i--)if(t>this.newlines[i]){l=i;break}return l>=0&&(n=l+2,s=t-this.newlines[l]),{column:s,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?Oe(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||me(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}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===re.TitleEnd||this.currentSequence===re.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===re.Cdata[this.sequenceIndex]?++this.sequenceIndex===re.Cdata.length&&(this.state=28,this.currentSequence=re.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===re.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):sr(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){Oe(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Oe(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(bt("</"+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){me(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=sr(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||me(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):me(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):me(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Oe(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||Oe(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||Oe(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||Oe(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||Oe(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)):me(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):me(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){me(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=re.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===re.ScriptEnd[3]?this.startSpecial(re.ScriptEnd,4):t===re.StyleEnd[3]?this.startSpecial(re.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===re.TitleEnd[3]?this.startSpecial(re.TitleEnd,4):t===re.TextareaEnd[3]?this.startSpecial(re.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===re.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 Do={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 un(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ie(e,t){const n=un("MODE",t),s=un(e,t);return n===3?s===!0:s!==!1}function Ke(e,t,n,...s){const o=Ie(e,t);return process.env.NODE_ENV!=="production"&&o&&Et(e,t,n,...s),o}function Et(e,t,n,...s){if(un(e,t)==="suppress-warning")return;const{message:l,link:i}=Do[e],a=`(deprecation ${e}) ${typeof l=="function"?l(...s):l}${i?`
|
|
2
|
+
Details: ${i}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function hn(e){throw e}function or(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function W(e,t,n,s){const o=process.env.NODE_ENV!=="production"?(n||Oo)[e]+(s||""):`https://vuejs.org/error-reference/#compiler-${e}`,l=new SyntaxError(String(o));return l.code=e,l.loc=t,l}const Oo={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.",53:"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.
|
|
3
|
+
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@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.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""},ce=e=>e.type===4&&e.isStatic;function ir(e){switch(e){case"Teleport":case"teleport":return Qe;case"Suspense":case"suspense":return Gt;case"KeepAlive":case"keep-alive":return mt;case"BaseTransition":case"base-transition":return Xn}}const Io=/^$|^\d|[^\$\w\xA0-\uFFFF]/,mn=e=>!Io.test(e),lr=/[A-Za-z_$\xA0-\uFFFF]/,Ao=/[\.\?\w$\xA0-\uFFFF]/,$o=/\s+[.[]\s*|\s*[.[]\s+/g,ar=e=>e.type===4?e.content:e.loc.source,cr=e=>{const t=ar(e).trim().replace($o,a=>a.trim());let n=0,s=[],o=0,l=0,i=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")s.push(n),n=1,o++;else if(c==="(")s.push(n),n=2,l++;else if(!(a===0?lr:Ao).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(s.push(n),n=3,i=c):c==="["?o++:c==="]"&&(--o||(n=s.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")s.push(n),n=3,i=c;else if(c==="(")l++;else if(c===")"){if(a===t.length-1)return!1;--l||(n=s.pop())}break;case 3:c===i&&(n=s.pop(),i=null);break}}return!o&&!l},Mo=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ro=e=>Mo.test(ar(e));function dr(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function de(e,t,n=!1){for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===7&&(n||o.exp)&&(ne(t)?o.name===t:t.test(o.name)))return o}}function rt(e,t,n=!1,s=!1){for(let o=0;o<e.props.length;o++){const l=e.props[o];if(l.type===6){if(n)continue;if(l.name===t&&(l.value||s))return l}else if(l.name==="bind"&&(l.exp||s)&&Ae(l.arg,t))return l}}function Ae(e,t){return!!(e&&ce(e)&&e.content===t)}function Lo(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function gn(e){return e.type===5||e.type===2}function fr(e){return e.type===7&&e.name==="pre"}function Po(e){return e.type===7&&e.name==="slot"}function kt(e){return e.type===1&&e.tagType===3}function xt(e){return e.type===1&&e.tagType===2}const Fo=new Set([et,tt]);function pr(e,t=[]){if(e&&!ne(e)&&e.type===14){const n=e.callee;if(!ne(n)&&Fo.has(n))return pr(e.arguments[0],t.concat(e))}return[e,t]}function wt(e,t,n){let s,o=e.type===13?e.props:e.arguments[2],l=[],i;if(o&&!ne(o)&&o.type===14){const a=pr(o);o=a[0],l=a[1],i=l[l.length-1]}if(o==null||ne(o))s=ve([t]);else if(o.type===14){const a=o.arguments[0];!ne(a)&&a.type===15?ur(t,a)||a.properties.unshift(t):o.callee===on?s=te(n.helper(vt),[ve([t]),o]):o.arguments.unshift(ve([t])),!s&&(s=o)}else o.type===15?(ur(t,o)||o.properties.unshift(t),s=o):(s=te(n.helper(vt),[ve([t]),o]),i&&i.callee===tt&&(i=l[l.length-2]));e.type===13?i?i.arguments[0]=s:e.props=s:i?i.arguments[0]=s:e.arguments[2]=s}function ur(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===s)}return n}function st(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function zo(e){return e.type===14&&e.callee===dn?e.arguments[1].returns:e}const jo=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function hr(e){for(let t=0;t<e.length;t++)if(!me(e.charCodeAt(t)))return!1;return!0}function vn(e){return e.type===2&&hr(e.content)||e.type===12&&vn(e.content)}function yn(e){return e.type===3||vn(e)}const mr={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ht,isPreTag:ht,isIgnoreNewlineTag:ht,isCustomElement:ht,onError:hn,onWarn:or,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let F=mr,ot=null,Ce="",oe=null,P=null,fe="",_e=-1,Le=-1,bn=0,$e=!1,En=null;const G=[],K=new Bo(G,{onerr:pe,ontext(e,t){Nt(se(e,t),e,t)},ontextentity(e,t,n){Nt(e,t,n)},oninterpolation(e,t){if($e)return Nt(se(e,t),e,t);let n=e+K.delimiterOpen.length,s=t-K.delimiterClose.length;for(;me(Ce.charCodeAt(n));)n++;for(;me(Ce.charCodeAt(s-1));)s--;let o=se(n,s);o.includes("&")&&(o=F.decodeEntities(o,!1)),kn({type:5,content:Ct(o,!1,Y(n,s)),loc:Y(e,t)})},onopentagname(e,t){const n=se(e,t);oe={type:1,tag:n,ns:F.getNamespace(n,G[0],F.ns),tagType:0,props:[],children:[],loc:Y(e-1,t),codegenNode:void 0}},onopentagend(e){vr(e)},onclosetag(e,t){const n=se(e,t);if(!F.isVoidTag(n)){let s=!1;for(let o=0;o<G.length;o++)if(G[o].tag.toLowerCase()===n.toLowerCase()){s=!0,o>0&&pe(24,G[0].loc.start.offset);for(let i=0;i<=o;i++){const a=G.shift();St(a,t,i<o)}break}s||pe(23,yr(e,60))}},onselfclosingtag(e){const t=oe.tag;oe.isSelfClosing=!0,vr(e),G[0]&&G[0].tag===t&&St(G.shift(),e)},onattribname(e,t){P={type:6,name:se(e,t),nameLoc:Y(e,t),value:void 0,loc:Y(e)}},ondirname(e,t){const n=se(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!$e&&s===""&&pe(26,e),$e||s==="")P={type:6,name:n,nameLoc:Y(e,t),value:void 0,loc:Y(e)};else if(P={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[I("prop")]:[],loc:Y(e)},s==="pre"){$e=K.inVPre=!0,En=oe;const o=oe.props;for(let l=0;l<o.length;l++)o[l].type===7&&(o[l]=Zo(o[l]))}},ondirarg(e,t){if(e===t)return;const n=se(e,t);if($e&&!fr(P))P.name+=n,Pe(P.nameLoc,t);else{const s=n[0]!=="[";P.arg=Ct(s?n:n.slice(1,-1),s,Y(e,t),s?3:0)}},ondirmodifier(e,t){const n=se(e,t);if($e&&!fr(P))P.name+="."+n,Pe(P.nameLoc,t);else if(P.name==="slot"){const s=P.arg;s&&(s.content+="."+n,Pe(s.loc,t))}else{const s=I(n,!0,Y(e,t));P.modifiers.push(s)}},onattribdata(e,t){fe+=se(e,t),_e<0&&(_e=e),Le=t},onattribentity(e,t,n){fe+=e,_e<0&&(_e=t),Le=n},onattribnameend(e){const t=P.loc.start.offset,n=se(t,e);P.type===7&&(P.rawName=n),oe.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&pe(2,t)},onattribend(e,t){if(oe&&P){if(Pe(P.loc,t),e!==0)if(fe.includes("&")&&(fe=F.decodeEntities(fe,!0)),P.type===6)P.name==="class"&&(fe=kr(fe).trim()),e===1&&!fe&&pe(13,t),P.value={type:2,content:fe,loc:e===1?Y(_e,Le):Y(_e-1,Le+1)},K.inSFCRoot&&oe.tag==="template"&&P.name==="lang"&&fe&&fe!=="html"&&K.enterRCDATA(bt("</template"),0);else{let n=0;P.exp=Ct(fe,!1,Y(_e,Le),0,n),P.name==="for"&&(P.forParseResult=Ho(P.exp));let s=-1;P.name==="bind"&&(s=P.modifiers.findIndex(o=>o.content==="sync"))>-1&&Ke("COMPILER_V_BIND_SYNC",F,P.loc,P.arg.loc.source)&&(P.name="model",P.modifiers.splice(s,1))}(P.type!==7||P.name!=="pre")&&oe.props.push(P)}fe="",_e=Le=-1},oncomment(e,t){F.comments&&kn({type:3,content:se(e,t),loc:Y(e-4,t+3)})},onend(){const e=Ce.length;if(process.env.NODE_ENV!=="production"&&K.state!==1)switch(K.state){case 5:case 8:pe(5,e);break;case 3:case 4:pe(25,K.sectionStart);break;case 28:K.currentSequence===re.CdataEnd?pe(6,e):pe(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:pe(9,e);break}for(let t=0;t<G.length;t++)St(G[t],e-1),pe(24,G[t].loc.start.offset)},oncdata(e,t){G[0].ns!==0?Nt(se(e,t),e,t):pe(1,e-9)},onprocessinginstruction(e){(G[0]?G[0].ns:F.ns)===0&&pe(21,e-1)}}),gr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Uo=/^\(|\)$/g;function Ho(e){const t=e.loc,n=e.content,s=n.match(jo);if(!s)return;const[,o,l]=s,i=(d,h,m=!1)=>{const y=t.start.offset+h,E=y+d.length;return Ct(d,!1,Y(y,E),0,m?1:0)},a={source:i(l.trim(),n.indexOf(l,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(Uo,"").trim();const p=o.indexOf(c),u=c.match(gr);if(u){c=c.replace(gr,"").trim();const d=u[1].trim();let h;if(d&&(h=n.indexOf(d,p+c.length),a.key=i(d,h,!0)),u[2]){const m=u[2].trim();m&&(a.index=i(m,n.indexOf(m,a.key?h+d.length:p+c.length),!0))}}return c&&(a.value=i(c,p,!0)),a}function se(e,t){return Ce.slice(e,t)}function vr(e){K.inSFCRoot&&(oe.innerLoc=Y(e+1,e+1)),kn(oe);const{tag:t,ns:n}=oe;n===0&&F.isPreTag(t)&&bn++,F.isVoidTag(t)?St(oe,e):(G.unshift(oe),(n===1||n===2)&&(K.inXML=!0)),oe=null}function Nt(e,t,n){{const l=G[0]&&G[0].tag;l!=="script"&&l!=="style"&&e.includes("&")&&(e=F.decodeEntities(e,!1))}const s=G[0]||ot,o=s.children[s.children.length-1];o&&o.type===2?(o.content+=e,Pe(o.loc,n)):s.children.push({type:2,content:e,loc:Y(t,n)})}function St(e,t,n=!1){n?Pe(e.loc,yr(t,60)):Pe(e.loc,Wo(t,62)+1),K.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=se(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:o,children:l}=e;if($e||(s==="slot"?e.tagType=2:br(e)?e.tagType=3:Ko(e)&&(e.tagType=1)),K.inRCDATA||(e.children=Er(l)),o===0&&F.isIgnoreNewlineTag(s)){const i=l[0];i&&i.type===2&&(i.content=i.content.replace(/^\r?\n/,""))}o===0&&F.isPreTag(s)&&bn--,En===e&&($e=K.inVPre=!1,En=null),K.inXML&&(G[0]?G[0].ns:F.ns)===0&&(K.inXML=!1);{const i=e.props;if(process.env.NODE_ENV!=="production"&&Ie("COMPILER_V_IF_V_FOR_PRECEDENCE",F)){let c=!1,p=!1;for(let u=0;u<i.length;u++){const d=i[u];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){Et("COMPILER_V_IF_V_FOR_PRECEDENCE",F,e.loc);break}}}if(!K.inSFCRoot&&Ie("COMPILER_NATIVE_TEMPLATE",F)&&e.tag==="template"&&!br(e)){process.env.NODE_ENV!=="production"&&Et("COMPILER_NATIVE_TEMPLATE",F,e.loc);const c=G[0]||ot,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const a=i.find(c=>c.type===6&&c.name==="inline-template");a&&Ke("COMPILER_INLINE_TEMPLATE",F,a.loc)&&e.children.length&&(a.value={type:2,content:se(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function Wo(e,t){let n=e;for(;Ce.charCodeAt(n)!==t&&n<Ce.length-1;)n++;return n}function yr(e,t){let n=e;for(;Ce.charCodeAt(n)!==t&&n>=0;)n--;return n}const qo=new Set(["if","else","else-if","for","slot"]);function br({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&qo.has(t[n].name))return!0}return!1}function Ko({tag:e,props:t}){if(F.isCustomElement(e))return!1;if(e==="component"||Go(e.charCodeAt(0))||ir(e)||F.isBuiltInComponent&&F.isBuiltInComponent(e)||F.isNativeTag&&!F.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const s=t[n];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(Ke("COMPILER_IS_ON_ELEMENT",F,s.loc))return!0}}else if(s.name==="bind"&&Ae(s.arg,"is")&&Ke("COMPILER_IS_ON_ELEMENT",F,s.loc))return!0}return!1}function Go(e){return e>64&&e<91}const Jo=/\r\n/g;function Er(e){const t=F.whitespace!=="preserve";let n=!1;for(let s=0;s<e.length;s++){const o=e[s];if(o.type===2)if(bn)o.content=o.content.replace(Jo,`
|
|
4
|
+
`);else if(hr(o.content)){const l=e[s-1]&&e[s-1].type,i=e[s+1]&&e[s+1].type;!l||!i||t&&(l===3&&(i===3||i===1)||l===1&&(i===3||i===1&&Xo(o.content)))?(n=!0,e[s]=null):o.content=" "}else t&&(o.content=kr(o.content))}return n?e.filter(Boolean):e}function Xo(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function kr(e){let t="",n=!1;for(let s=0;s<e.length;s++)me(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function kn(e){(G[0]||ot).children.push(e)}function Y(e,t){return{start:K.getPos(e),end:t==null?t:K.getPos(t),source:t==null?t:se(e,t)}}function Yo(e){return Y(e.start.offset,e.end.offset)}function Pe(e,t){e.end=K.getPos(t),e.source=se(e.start.offset,t)}function Zo(e){const t={type:6,name:e.rawName,nameLoc:Y(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 Ct(e,t=!1,n,s=0,o=0){return I(e,t,n,s)}function pe(e,t,n){F.onError(W(e,Y(t,t),void 0,n))}function Qo(){K.reset(),oe=null,P=null,fe="",_e=-1,Le=-1,G.length=0}function Vo(e,t){if(Qo(),Ce=e,F=Be({},mr),t){let o;for(o in t)t[o]!=null&&(F[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!F.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");K.mode=F.parseMode==="html"?1:F.parseMode==="sfc"?2:0,K.inXML=F.ns===1||F.ns===2;const n=t&&t.delimiters;n&&(K.delimiterOpen=bt(n[0]),K.delimiterClose=bt(n[1]));const s=ot=Co([],e);return K.parse(Ce),s.loc=Y(0,e.length),s.children=Er(s.children),ot=null,s}function ei(e,t){_t(e,void 0,t,!!xr(e))}function xr(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!xt(t[0])?t[0]:null}function _t(e,t,n,s=!1,o=!1){const{children:l}=e,i=[];for(let u=0;u<l.length;u++){const d=l[u];if(d.type===1&&d.tagType===0){const h=s?0:ge(d,n);if(h>0){if(h>=2){d.codegenNode.patchFlag=-1,i.push(d);continue}}else{const m=d.codegenNode;if(m.type===13){const y=m.patchFlag;if((y===void 0||y===512||y===1)&&Nr(d,n)>=2){const E=Sr(d);E&&(m.props=n.hoist(E))}m.dynamicProps&&(m.dynamicProps=n.hoist(m.dynamicProps))}}}else if(d.type===12&&(s?0:ge(d,n))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${Ye[-1]} */`:"")),i.push(d);continue}if(d.type===1){const h=d.tagType===1;h&&n.scopes.vSlot++,_t(d,e,n,!1,o),h&&n.scopes.vSlot--}else if(d.type===11)_t(d,e,n,d.children.length===1,!0);else if(d.type===9)for(let h=0;h<d.branches.length;h++)_t(d.branches[h],e,n,d.branches[h].children.length===1,o)}let a=!1;if(i.length===l.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Se(e.codegenNode.children))e.codegenNode.children=c(Re(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Se(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=p(e.codegenNode,"default");u&&(u.returns=c(Re(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Se(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=de(e,"slot",!0),d=u&&u.arg&&p(t.codegenNode,u.arg);d&&(d.returns=c(Re(d.returns)),a=!0)}}if(!a)for(const u of i)u.codegenNode=n.cache(u.codegenNode);function c(u){const d=n.cache(u);return d.needArraySpread=!0,d}function p(u,d){if(u.children&&!Se(u.children)&&u.children.type===15){const h=u.children.properties.find(m=>m.key===d||m.key.content===d);return h&&h.value}}i.length&&n.transformHoist&&n.transformHoist(l,n,e)}function ge(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;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 i=3;const a=Nr(e,t);if(a===0)return n.set(e,0),0;a<i&&(i=a);for(let c=0;c<e.children.length;c++){const p=ge(e.children[c],t);if(p===0)return n.set(e,0),0;p<i&&(i=p)}if(i>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 u=ge(p.exp,t);if(u===0)return n.set(e,0),0;u<i&&(i=u)}}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(Me),t.removeHelper(qe(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(We(t.inSSR,o.isComponent))}return n.set(e,i),i}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 ge(e.content,t);case 4:return e.constType;case 8:let l=3;for(let i=0;i<e.children.length;i++){const a=e.children[i];if(ne(a)||Wt(a))continue;const c=ge(a,t);if(c===0)return 0;c<l&&(l=c)}return l;case 20:return 2;default:return process.env.NODE_ENV,0}}const ti=new Set([rn,sn,et,tt]);function wr(e,t){if(e.type===14&&!ne(e.callee)&&ti.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ge(n,t);if(n.type===14)return wr(n,t)}return 0}function Nr(e,t){let n=3;const s=Sr(e);if(s&&s.type===15){const{properties:o}=s;for(let l=0;l<o.length;l++){const{key:i,value:a}=o[l],c=ge(i,t);if(c===0)return c;c<n&&(n=c);let p;if(a.type===4?p=ge(a,t):a.type===14?p=wr(a,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function Sr(e){const t=e.codegenNode;if(t.type===13)return t.props}function ni(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:o=!1,cacheHandlers:l=!1,nodeTransforms:i=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=Ut,isCustomElement:u=Ut,expressionPlugins:d=[],scopeId:h=null,slotted:m=!0,ssr:y=!1,inSSR:E=!1,ssrCssVars:_="",bindingMetadata:S=to,inline:B=!1,isTS:D=!1,onError:H=hn,onWarn:z=or,compatConfig:Q}){const J=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),A={filename:t,selfName:J&&Kt(De(J[1])),prefixIdentifiers:n,hoistStatic:s,hmr:o,cacheHandlers:l,nodeTransforms:i,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:u,expressionPlugins:d,scopeId:h,slotted:m,ssr:y,inSSR:E,ssrCssVars:_,bindingMetadata:S,inline:B,isTS:D,onError:H,onWarn:z,compatConfig:Q,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(N){const R=A.helpers.get(N)||0;return A.helpers.set(N,R+1),N},removeHelper(N){const R=A.helpers.get(N);if(R){const L=R-1;L?A.helpers.set(N,L):A.helpers.delete(N)}},helperString(N){return`_${Ue[A.helper(N)]}`},replaceNode(N){if(process.env.NODE_ENV!=="production"){if(!A.currentNode)throw new Error("Node being replaced is already removed.");if(!A.parent)throw new Error("Cannot replace root node.")}A.parent.children[A.childIndex]=A.currentNode=N},removeNode(N){if(process.env.NODE_ENV!=="production"&&!A.parent)throw new Error("Cannot remove root node.");const R=A.parent.children,L=N?R.indexOf(N):A.currentNode?A.childIndex:-1;if(process.env.NODE_ENV!=="production"&&L<0)throw new Error("node being removed is not a child of current parent");!N||N===A.currentNode?(A.currentNode=null,A.onNodeRemoved()):A.childIndex>L&&(A.childIndex--,A.onNodeRemoved()),A.parent.children.splice(L,1)},onNodeRemoved:Ut,addIdentifiers(N){},removeIdentifiers(N){},hoist(N){ne(N)&&(N=I(N)),A.hoists.push(N);const R=I(`_hoisted_${A.hoists.length}`,!1,N.loc,2);return R.hoisted=N,R},cache(N,R=!1,L=!1){const O=_o(A.cached.length,N,R,L);return A.cached.push(O),O}};return A.filters=new Set,A}function ri(e,t){const n=ni(e,t);Tt(e,n),t.hoistStatic&&ei(e,n),t.ssr||si(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 si(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const o=xr(e);if(o&&o.codegenNode){const l=o.codegenNode;l.type===13&&pn(l,t),e.codegenNode=l}else e.codegenNode=s[0]}else if(s.length>1){let o=64;process.env.NODE_ENV!=="production"&&s.filter(l=>l.type!==3).length===1&&(o|=2048),e.codegenNode=nt(t,n(Ze),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function oi(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];ne(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,Tt(o,t))}}function Tt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let l=0;l<n.length;l++){const i=n[l](e,t);if(i&&(Se(i)?s.push(...i):s.push(i)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ve);break;case 5:t.ssr||t.helper(gt);break;case 9:for(let l=0;l<e.branches.length;l++)Tt(e.branches[l],t);break;case 10:case 11:case 1:case 0:oi(e,t);break}t.currentNode=e;let o=s.length;for(;o--;)s[o]()}function Cr(e,t){const n=ne(e)?s=>s===e:s=>e.test(s);return(s,o)=>{if(s.type===1){const{props:l}=s;if(s.tagType===3&&l.some(Po))return;const i=[];for(let a=0;a<l.length;a++){const c=l[a];if(c.type===7&&n(c.name)){l.splice(a,1),a--;const p=t(s,c,o);p&&i.push(p)}}return i}}}const Bt="/*@__PURE__*/",_r=e=>`${Ue[e]}: _${Ue[e]}`;function ii(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:o="template.vue.html",scopeId:l=null,optimizeImports:i=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const m={mode:t,prefixIdentifiers:n,sourceMap:s,filename:o,scopeId:l,optimizeImports:i,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:u,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(E){return`_${Ue[E]}`},push(E,_=-2,S){m.code+=E},indent(){y(++m.indentLevel)},deindent(E=!1){E?--m.indentLevel:y(--m.indentLevel)},newline(){y(m.indentLevel)}};function y(E){m.push(`
|
|
5
|
+
`+" ".repeat(E),0)}return m}function li(e,t={}){const n=ii(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:o,prefixIdentifiers:l,indent:i,deindent:a,newline:c,scopeId:p,ssr:u}=n,d=Array.from(e.helpers),h=d.length>0,m=!l&&s!=="module";ai(e,n);const E=u?"ssrRender":"render",S=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${E}(${S}) {`),i(),m&&(o("with (_ctx) {"),i(),h&&(o(`const { ${d.map(_r).join(", ")} } = _Vue
|
|
6
|
+
`,-1),c())),e.components.length&&(xn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(xn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),xn(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let B=0;B<e.temps;B++)o(`${B>0?", ":""}_temp${B}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
7
|
+
`,0),c()),u||o("return "),e.codegenNode?ie(e.codegenNode,n):o("null"),m&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ai(e,t){const{ssr:n,prefixIdentifiers:s,push:o,newline:l,runtimeModuleName:i,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,p=a,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${p}
|
|
8
|
+
`,-1),e.hoists.length)){const d=[Jt,Xt,Ve,Yt,Qn].filter(h=>u.includes(h)).map(_r).join(", ");o(`const { ${d} } = _Vue
|
|
9
|
+
`,-1)}ci(e.hoists,t),l(),o("return ")}function xn(e,t,{helper:n,push:s,newline:o,isTS:l}){const i=n(t==="filter"?en:t==="component"?Zt:Vt);for(let a=0;a<e.length;a++){let c=e[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),s(`const ${st(c,t)} = ${i}(${JSON.stringify(c)}${p?", true":""})${l?"!":""}`),a<e.length-1&&o()}}function ci(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let o=0;o<e.length;o++){const l=e[o];l&&(n(`const _hoisted_${o+1} = `),ie(l,t),s())}t.pure=!1}function di(e){return ne(e)||e.type===4||e.type===2||e.type===5||e.type===8}function wn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(s=>Se(s)||!di(s));t.push("["),n&&t.indent(),it(e,t,n),n&&t.deindent(),t.push("]")}function it(e,t,n=!1,s=!0){const{push:o,newline:l}=t;for(let i=0;i<e.length;i++){const a=e[i];ne(a)?o(a,-3):Se(a)?wn(a,t):ie(a,t),i<e.length-1&&(n?(s&&o(","),l()):s&&o(", "))}}function ie(e,t){if(ne(e)){t.push(e,-3);return}if(Wt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&dr(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ie(e.codegenNode,t);break;case 2:fi(e,t);break;case 4:Tr(e,t);break;case 5:pi(e,t);break;case 12:ie(e.codegenNode,t);break;case 8:Br(e,t);break;case 3:hi(e,t);break;case 13:mi(e,t);break;case 14:vi(e,t);break;case 15:yi(e,t);break;case 17:bi(e,t);break;case 18:Ei(e,t);break;case 19:ki(e,t);break;case 20:xi(e,t);break;case 21:it(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 dr(!1,`unhandled codegen node type: ${e.type}`),e}}function fi(e,t){t.push(JSON.stringify(e.content),-3,e)}function Tr(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function pi(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Bt),n(`${s(gt)}(`),ie(e.content,t),n(")")}function Br(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];ne(s)?t.push(s,-3):ie(s,t)}}function ui(e,t){const{push:n}=t;if(e.type===8)n("["),Br(e,t),n("]");else if(e.isStatic){const s=mn(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function hi(e,t){const{push:n,helper:s,pure:o}=t;o&&n(Bt),n(`${s(Ve)}(${JSON.stringify(e.content)})`,-3,e)}function mi(e,t){const{push:n,helper:s,pure:o}=t,{tag:l,props:i,children:a,patchFlag:c,dynamicProps:p,directives:u,isBlock:d,disableTracking:h,isComponent:m}=e;let y;if(c)if(process.env.NODE_ENV!=="production")if(c<0)y=c+` /* ${Ye[c]} */`;else{const _=Object.keys(Ye).map(Number).filter(S=>S>0&&c&S).map(S=>Ye[S]).join(", ");y=c+` /* ${_} */`}else y=String(c);u&&n(s(tn)+"("),d&&n(`(${s(Me)}(${h?"true":""}), `),o&&n(Bt);const E=d?qe(t.inSSR,m):We(t.inSSR,m);n(s(E)+"(",-2,e),it(gi([l,i,a,y,p]),t),n(")"),d&&n(")"),u&&(n(", "),ie(u,t),n(")"))}function gi(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function vi(e,t){const{push:n,helper:s,pure:o}=t,l=ne(e.callee)?e.callee:s(e.callee);o&&n(Bt),n(l+"(",-2,e),it(e.arguments,t),n(")")}function yi(e,t){const{push:n,indent:s,deindent:o,newline:l}=t,{properties:i}=e;if(!i.length){n("{}",-2,e);return}const a=i.length>1||process.env.NODE_ENV!=="production"&&i.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&s();for(let c=0;c<i.length;c++){const{key:p,value:u}=i[c];ui(p,t),n(": "),ie(u,t),c<i.length-1&&(n(","),l())}a&&o(),n(a?"}":" }")}function bi(e,t){wn(e.elements,t)}function Ei(e,t){const{push:n,indent:s,deindent:o}=t,{params:l,returns:i,body:a,newline:c,isSlot:p}=e;p&&n(`_${Ue[cn]}(`),n("(",-2,e),Se(l)?it(l,t):l&&ie(l,t),n(") => "),(c||a)&&(n("{"),s()),i?(c&&n("return "),Se(i)?wn(i,t):ie(i,t)):a&&ie(a,t),(c||a)&&(o(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ki(e,t){const{test:n,consequent:s,alternate:o,newline:l}=e,{push:i,indent:a,deindent:c,newline:p}=t;if(n.type===4){const d=!mn(n.content);d&&i("("),Tr(n,t),d&&i(")")}else i("("),ie(n,t),i(")");l&&a(),t.indentLevel++,l||i(" "),i("? "),ie(s,t),t.indentLevel--,l&&p(),l||i(" "),i(": ");const u=o.type===19;u||t.indentLevel++,ie(o,t),u||t.indentLevel--,l&&c(!0)}function xi(e,t){const{push:n,helper:s,indent:o,deindent:l,newline:i}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${s(yt)}(-1`),e.inVOnce&&n(", true"),n("),"),i(),n("(")),n(`_cache[${e.index}] = `),ie(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),i(),n(`${s(yt)}(1),`),i(),n(`_cache[${e.index}]`),l()),n(")"),c&&n(")]")}const wi=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"),Ni=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Fe(e,t,n=!1,s=!1){const o=e.content;if(o.trim())try{new Function(s?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(l){let i=l.message;const a=o.replace(Ni,"").match(wi);a&&(i=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(W(46,e.loc,void 0,i))}}const Si=(e,t)=>{if(e.type===5)e.content=Nn(e.content,t);else if(e.type===1){const n=de(e,"memo");for(let s=0;s<e.props.length;s++){const o=e.props[s];if(o.type===7&&o.name!=="for"){const l=o.exp,i=o.arg;l&&l.type===4&&!(o.name==="on"&&i)&&!(n&&i&&i.type===4&&i.content==="key")&&(o.exp=Nn(l,t,o.name==="slot")),i&&i.type===4&&!i.isStatic&&(o.arg=Nn(i,t))}}}};function Nn(e,t,n=!1,s=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Fe(e,t,n,s),e}const Ci=Cr(/^(?:if|else|else-if)$/,(e,t,n)=>_i(e,t,n,(s,o,l)=>{const i=n.parent.children;let a=i.indexOf(s),c=0;for(;a-->=0;){const p=i[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(l)s.codegenNode=Or(o,c,n);else{const p=Bi(s.codegenNode);p.alternate=Or(o,c+s.branches.length-1,n)}}}));function _i(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(W(28,t.loc)),t.exp=I("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Fe(t.exp,n),t.name==="if"){const o=Dr(e,t),l={type:9,loc:Yo(e.loc),branches:[o]};if(n.replaceNode(l),s)return s(l,o,!0)}else{const o=n.parent.children,l=[];let i=o.indexOf(e);for(;i-->=-1;){const a=o[i];if(a&&yn(a)){n.removeNode(a),process.env.NODE_ENV!=="production"&&a.type===3&&l.unshift(a);continue}if(a&&a.type===9){(t.name==="else-if"||t.name==="else")&&a.branches[a.branches.length-1].condition===void 0&&n.onError(W(30,e.loc)),n.removeNode();const c=Dr(e,t);if(process.env.NODE_ENV!=="production"&&l.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...l,...c.children]),process.env.NODE_ENV!=="production"){const u=c.userKey;u&&a.branches.forEach(({userKey:d})=>{Ti(d,u)&&n.onError(W(29,c.userKey.loc))})}a.branches.push(c);const p=s&&s(a,c,!1);Tt(c,n),p&&p(),n.currentNode=null}else n.onError(W(30,e.loc));break}}}function Dr(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!de(e,"for")?e.children:[e],userKey:rt(e,"key"),isTemplateIf:n}}function Or(e,t,n){return e.condition?fn(e.condition,Ir(e,t,n),te(n.helper(Ve),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):Ir(e,t,n)}function Ir(e,t,n){const{helper:s}=n,o=Z("key",I(`${t}`,!1,he,2)),{children:l}=e,i=l[0];if(l.length!==1||i.type!==1)if(l.length===1&&i.type===11){const c=i.codegenNode;return wt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&l.filter(p=>p.type!==3).length===1&&(c|=2048),nt(n,s(Ze),ve([o]),l,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=i.codegenNode,p=zo(c);return p.type===13&&pn(p,n),wt(p,o,n),c}}function Ti(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,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function Bi(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 Di=Cr("for",(e,t,n)=>{const{helper:s,removeHelper:o}=n;return Oi(e,t,n,l=>{const i=te(s(nn),[l.source]),a=kt(e),c=de(e,"memo"),p=rt(e,"key",!1,!0);p&&p.type;let u=p&&(p.type===6?p.value?I(p.value.content,!0):void 0:p.exp);const d=p&&u?Z("key",u):null,h=l.source.type===4&&l.source.constType>0,m=h?64:p?128:256;return l.codegenNode=nt(n,s(Ze),void 0,i,m,void 0,void 0,!0,!h,!1,e.loc),()=>{let y;const{children:E}=l;process.env.NODE_ENV!=="production"&&a&&e.children.some(B=>{if(B.type===1){const D=rt(B,"key");if(D)return n.onError(W(33,D.loc)),!0}});const _=E.length!==1||E[0].type!==1,S=xt(e)?e:a&&e.children.length===1&&xt(e.children[0])?e.children[0]:null;if(S?(y=S.codegenNode,a&&d&&wt(y,d,n)):_?y=nt(n,s(Ze),d?ve([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=E[0].codegenNode,a&&d&&wt(y,d,n),y.isBlock!==!h&&(y.isBlock?(o(Me),o(qe(n.inSSR,y.isComponent))):o(We(n.inSSR,y.isComponent))),y.isBlock=!h,y.isBlock?(s(Me),s(qe(n.inSSR,y.isComponent))):s(We(n.inSSR,y.isComponent))),c){const B=He(Sn(l.parseResult,[I("_cached")]));B.body=To([be(["const _memo = (",c.exp,")"]),be(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(tr)}(_cached, _memo)) return _cached`]),be(["const _item = ",y]),I("_item.memo = _memo"),I("return _item")]),i.arguments.push(B,I("_cache"),I(String(n.cached.length))),n.cached.push(null)}else i.arguments.push(He(Sn(l.parseResult),y,!0))}})});function Oi(e,t,n,s){if(!t.exp){n.onError(W(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(W(32,t.loc));return}Ar(o,n);const{addIdentifiers:l,removeIdentifiers:i,scopes:a}=n,{source:c,value:p,key:u,index:d}=o,h={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:u,objectIndexAlias:d,parseResult:o,children:kt(e)?e.children:[e]};n.replaceNode(h),a.vFor++;const m=s&&s(h);return()=>{a.vFor--,m&&m()}}function Ar(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Fe(e.source,t),e.key&&Fe(e.key,t,!0),e.index&&Fe(e.index,t,!0),e.value&&Fe(e.value,t,!0)),e.finalized=!0)}function Sn({value:e,key:t,index:n},s=[]){return Ii([e,t,n,...s])}function Ii(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||I("_".repeat(s+1),!1))}const $r=I("undefined",!1),Ai=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=de(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},$i=(e,t,n,s)=>He(e,n,!1,!0,n.length?n[0].loc:s);function Mi(e,t,n=$i){t.helper(cn);const{children:s,loc:o}=e,l=[],i=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=de(e,"slot",!0);if(c){const{arg:_,exp:S}=c;_&&!ce(_)&&(a=!0),l.push(Z(_||I("default",!0),n(S,void 0,s,o)))}let p=!1,u=!1;const d=[],h=new Set;let m=0;for(let _=0;_<s.length;_++){const S=s[_];let B;if(!kt(S)||!(B=de(S,"slot",!0))){S.type!==3&&d.push(S);continue}if(c){t.onError(W(37,B.loc));break}p=!0;const{children:D,loc:H}=S,{arg:z=I("default",!0),exp:Q,loc:J}=B;let A;ce(z)?A=z?z.content:"default":a=!0;const N=de(S,"for"),R=n(Q,N,D,H);let L,O;if(L=de(S,"if"))a=!0,i.push(fn(L.exp,Dt(z,R,m++),$r));else if(O=de(S,/^else(?:-if)?$/,!0)){let j=_,q;for(;j--&&(q=s[j],!!yn(q)););if(q&&kt(q)&&de(q,/^(?:else-)?if$/)){let k=i[i.length-1];for(;k.alternate.type===19;)k=k.alternate;k.alternate=O.exp?fn(O.exp,Dt(z,R,m++),$r):Dt(z,R,m++)}else t.onError(W(30,O.loc))}else if(N){a=!0;const j=N.forParseResult;j?(Ar(j,t),i.push(te(t.helper(nn),[j.source,He(Sn(j),Dt(z,R),!0)]))):t.onError(W(32,N.loc))}else{if(A){if(h.has(A)){t.onError(W(38,J));continue}h.add(A),A==="default"&&(u=!0)}l.push(Z(z,R))}}if(!c){const _=(S,B)=>{const D=n(S,void 0,B,o);return t.compatConfig&&(D.isNonScopedSlot=!0),Z("default",D)};p?d.length&&!d.every(vn)&&(u?t.onError(W(39,d[0].loc)):l.push(_(void 0,d))):l.push(_(void 0,s))}const y=a?2:Ot(e.children)?3:1;let E=ve(l.concat(Z("_",I(y+(process.env.NODE_ENV!=="production"?` /* ${io[y]} */`:""),!1))),o);return i.length&&(E=te(t.helper(er),[E,Re(i)])),{slots:E,hasDynamicSlots:a}}function Dt(e,t,n){const s=[Z("name",e),Z("fn",t)];return n!=null&&s.push(Z("key",I(String(n),!0))),ve(s)}function Ot(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Ot(n.children))return!0;break;case 9:if(Ot(n.branches))return!0;break;case 10:case 11:if(Ot(n.children))return!0;break}}return!1}const Mr=new WeakMap,Ri=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:o}=e,l=e.tagType===1;let i=l?Li(e,t):`"${s}"`;const a=no(i)&&i.callee===Qt;let c,p,u=0,d,h,m,y=a||i===Qe||i===Gt||!l&&(s==="svg"||s==="foreignObject"||s==="math");if(o.length>0){const E=Rr(e,t,void 0,l,a);c=E.props,u=E.patchFlag,h=E.dynamicPropNames;const _=E.directives;m=_&&_.length?Re(_.map(S=>Fi(S,t))):void 0,E.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(i===mt&&(y=!0,u|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(W(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),l&&i!==Qe&&i!==mt){const{slots:_,hasDynamicSlots:S}=Mi(e,t);p=_,S&&(u|=1024)}else if(e.children.length===1&&i!==Qe){const _=e.children[0],S=_.type,B=S===5||S===8;B&&ge(_,t)===0&&(u|=1),B||S===2?p=_:p=e.children}else p=e.children;h&&h.length&&(d=zi(h)),e.codegenNode=nt(t,i,c,p,u===0?void 0:u,d,m,!!y,!1,l,e.loc)};function Li(e,t,n=!1){let{tag:s}=e;const o=Cn(s),l=rt(e,"is",!1,!0);if(l)if(o||Ie("COMPILER_IS_ON_ELEMENT",t)){let a;if(l.type===6?a=l.value&&I(l.value.content,!0):(a=l.exp,a||(a=I("is",!1,l.arg.loc))),a)return te(t.helper(Qt),[a])}else l.type===6&&l.value.content.startsWith("vue:")&&(s=l.value.content.slice(4));const i=ir(s)||t.isBuiltInComponent(s);return i?(n||t.helper(i),i):(t.helper(Zt),t.components.add(s),st(s,"component"))}function Rr(e,t,n=e.props,s,o,l=!1){const{tag:i,loc:a,children:c}=e;let p=[];const u=[],d=[],h=c.length>0;let m=!1,y=0,E=!1,_=!1,S=!1,B=!1,D=!1,H=!1;const z=[],Q=R=>{p.length&&(u.push(ve(Lr(p),a)),p=[]),R&&u.push(R)},J=()=>{t.scopes.vFor>0&&p.push(Z(I("ref_for",!0),I("true")))},A=({key:R,value:L})=>{if(ce(R)){const O=R.content,j=Ht(O);if(j&&(!s||o)&&O.toLowerCase()!=="onclick"&&O!=="onUpdate:modelValue"&&!Jn(O)&&(B=!0),j&&Jn(O)&&(H=!0),j&&L.type===14&&(L=L.arguments[0]),L.type===20||(L.type===4||L.type===8)&&ge(L,t)>0)return;O==="ref"?E=!0:O==="class"?_=!0:O==="style"?S=!0:O!=="key"&&!z.includes(O)&&z.push(O),s&&(O==="class"||O==="style")&&!z.includes(O)&&z.push(O)}else D=!0};for(let R=0;R<n.length;R++){const L=n[R];if(L.type===6){const{loc:O,name:j,nameLoc:q,value:k}=L;let x=!0;if(j==="ref"&&(E=!0,J()),j==="is"&&(Cn(i)||k&&k.content.startsWith("vue:")||Ie("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(Z(I(j,!0,q),I(k?k.content:"",x,k?k.loc:O)))}else{const{name:O,arg:j,exp:q,loc:k,modifiers:x}=L,C=O==="bind",w=O==="on";if(O==="slot"){s||t.onError(W(40,k));continue}if(O==="once"||O==="memo"||O==="is"||C&&Ae(j,"is")&&(Cn(i)||Ie("COMPILER_IS_ON_ELEMENT",t))||w&&l)continue;if((C&&Ae(j,"key")||w&&h&&Ae(j,"vue:before-update"))&&(m=!0),C&&Ae(j,"ref")&&J(),!j&&(C||w)){if(D=!0,q)if(C){if(Q(),process.env.NODE_ENV!=="production"&&u.some(V=>V.type===15?V.properties.some(({key:ye})=>ye.type!==4||!ye.isStatic?!0:ye.content!=="class"&&ye.content!=="style"&&!Ht(ye.content)):!0)&&Ke("COMPILER_V_BIND_OBJECT_ORDER",t,k),Ie("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(q);continue}J(),Q(),u.push(q)}else Q({type:14,loc:k,callee:t.helper(on),arguments:s?[q]:[q,"true"]});else t.onError(W(C?34:35,k));continue}C&&x.some($=>$.content==="prop")&&(y|=32);const T=t.directiveTransforms[O];if(T){const{props:$,needRuntime:V}=T(L,e,t);!l&&$.forEach(A),w&&j&&!ce(j)?Q(ve($,a)):p.push(...$),V&&(d.push(L),Wt(V)&&Mr.set(L,V))}else ro(O)||(d.push(L),h&&(m=!0))}}let N;if(u.length?(Q(),u.length>1?N=te(t.helper(vt),u,a):N=u[0]):p.length&&(N=ve(Lr(p),a)),D?y|=16:(_&&!s&&(y|=2),S&&!s&&(y|=4),z.length&&(y|=8),B&&(y|=32)),!m&&(y===0||y===32)&&(E||H||d.length>0)&&(y|=512),!t.inSSR&&N)switch(N.type){case 15:let R=-1,L=-1,O=!1;for(let k=0;k<N.properties.length;k++){const x=N.properties[k].key;ce(x)?x.content==="class"?R=k:x.content==="style"&&(L=k):x.isHandlerKey||(O=!0)}const j=N.properties[R],q=N.properties[L];O?N=te(t.helper(et),[N]):(j&&!ce(j.value)&&(j.value=te(t.helper(rn),[j.value])),q&&(S||q.value.type===4&&q.value.content.trim()[0]==="["||q.value.type===17)&&(q.value=te(t.helper(sn),[q.value])));break;case 14:break;default:N=te(t.helper(et),[te(t.helper(tt),[N])]);break}return{props:N,directives:d,patchFlag:y,dynamicPropNames:z,shouldUseBlock:m}}function Lr(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const o=e[s];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const l=o.key.content,i=t.get(l);i?(l==="style"||l==="class"||Ht(l))&&Pi(i,o):(t.set(l,o),n.push(o))}return n}function Pi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Re([e.value,t.value],e.loc)}function Fi(e,t){const n=[],s=Mr.get(e);s?n.push(t.helperString(s)):(t.helper(Vt),t.directives.add(e.name),n.push(st(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 l=I("true",!1,o);n.push(ve(e.modifiers.map(i=>Z(i,l)),o))}return Re(n,e.loc)}function zi(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function Cn(e){return e==="component"||e==="Component"}const ji=(e,t)=>{if(xt(e)){const{children:n,loc:s}=e,{slotName:o,slotProps:l}=Ui(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;l&&(i[2]=l,a=3),n.length&&(i[3]=He([],n,!1,!1,s),a=4),t.scopeId&&!t.slotted&&(a=5),i.splice(a),e.codegenNode=te(t.helper(Vn),i,s)}};function Ui(e,t){let n='"default"',s;const o=[];for(let l=0;l<e.props.length;l++){const i=e.props[l];if(i.type===6)i.value&&(i.name==="name"?n=JSON.stringify(i.value.content):(i.name=De(i.name),o.push(i)));else if(i.name==="bind"&&Ae(i.arg,"name")){if(i.exp)n=i.exp;else if(i.arg&&i.arg.type===4){const a=De(i.arg.content);n=i.exp=I(a,!1,i.arg.loc)}}else i.name==="bind"&&i.arg&&ce(i.arg)&&(i.arg.content=De(i.arg.content)),o.push(i)}if(o.length>0){const{props:l,directives:i}=Rr(e,t,o,!1,!1);s=l,i.length&&t.onError(W(36,i[0].loc))}return{slotName:n,slotProps:s}}const Pr=(e,t,n,s)=>{const{loc:o,modifiers:l,arg:i}=e;!e.exp&&!l.length&&n.onError(W(35,o));let a;if(i.type===4)if(i.isStatic){let d=i.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(W(52,i.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const h=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?oo(De(d)):`on:${d}`;a=I(h,!0,i.loc)}else a=be([`${n.helperString(an)}(`,i,")"]);else a=i,a.children.unshift(`${n.helperString(an)}(`),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=cr(c),h=!(d||Ro(c)),m=c.content.includes(";");process.env.NODE_ENV!=="production"&&Fe(c,n,!1,m),(h||p&&d)&&(c=be([`${h?"$event":"(...args)"} => ${m?"{":"("}`,c,m?"}":")"]))}let u={props:[Z(a,c||I("() => {}",!1,o))]};return s&&(u=s(u)),p&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},Hi=(e,t,n)=>{const{modifiers:s,loc:o}=e,l=e.arg;let{exp:i}=e;return i&&i.type===4&&!i.content.trim()&&(i=void 0),l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=l.content?`${l.content} || ""`:'""'),s.some(a=>a.content==="camel")&&(l.type===4?l.isStatic?l.content=De(l.content):l.content=`${n.helperString(ln)}(${l.content})`:(l.children.unshift(`${n.helperString(ln)}(`),l.children.push(")"))),n.inSSR||(s.some(a=>a.content==="prop")&&Fr(l,"."),s.some(a=>a.content==="attr")&&Fr(l,"^")),{props:[Z(l,i)]}},Fr=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Wi=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,o=!1;for(let l=0;l<n.length;l++){const i=n[l];if(gn(i)){o=!0;for(let a=l+1;a<n.length;a++){const c=n[a];if(gn(c))s||(s=n[l]=be([i],i.loc)),s.children.push(" + ",c),n.splice(a,1),a--;else{s=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(l=>l.type===7&&!t.directiveTransforms[l.name])&&e.tag!=="template")))for(let l=0;l<n.length;l++){const i=n[l];if(gn(i)||i.type===8){const a=[];(i.type!==2||i.content!==" ")&&a.push(i),!t.ssr&&ge(i,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${Ye[1]} */`:"")),n[l]={type:12,content:i,loc:i.loc,codegenNode:te(t.helper(Yt),a)}}}}},zr=new WeakSet,qi=(e,t)=>{if(e.type===1&&de(e,"once",!0))return zr.has(e)||t.inVOnce||t.inSSR?void 0:(zr.add(e),t.inVOnce=!0,t.helper(yt),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},jr=(e,t,n)=>{const{exp:s,arg:o}=e;if(!s)return n.onError(W(41,e.loc)),lt();const l=s.loc.source.trim(),i=s.type===4?s.content:l,a=n.bindingMetadata[l];if(a==="props"||a==="props-aliased")return n.onError(W(44,s.loc)),lt();if(a==="literal-const"||a==="setup-const")return n.onError(W(45,s.loc)),lt();if(!i.trim()||!cr(s))return n.onError(W(42,s.loc)),lt();const c=o||I("modelValue",!0),p=o?ce(o)?`onUpdate:${De(o.content)}`:be(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;const d=n.isTS?"($event: any)":"$event";u=be([`${d} => ((`,s,") = $event)"]);const h=[Z(c,e.exp),Z(p,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(E=>E.content).map(E=>(mn(E)?E:JSON.stringify(E))+": true").join(", "),y=o?ce(o)?`${o.content}Modifiers`:be([o,' + "Modifiers"']):"modelModifiers";h.push(Z(y,I(`{ ${m} }`,!1,e.loc,2)))}return lt(h)};function lt(e=[]){return{props:e}}const Ki=/[\w).+\-_$\]]/,Gi=(e,t)=>{Ie("COMPILER_FILTERS",t)&&(e.type===5?It(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&It(n.exp,t)}))};function It(e,t){if(e.type===4)Ur(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Ur(s,t):s.type===8?It(e,t):s.type===5&&It(s.content,t))}}function Ur(e,t){const n=e.content;let s=!1,o=!1,l=!1,i=!1,a=0,c=0,p=0,u=0,d,h,m,y,E=[];for(m=0;m<n.length;m++)if(h=d,d=n.charCodeAt(m),s)d===39&&h!==92&&(s=!1);else if(o)d===34&&h!==92&&(o=!1);else if(l)d===96&&h!==92&&(l=!1);else if(i)d===47&&h!==92&&(i=!1);else if(d===124&&n.charCodeAt(m+1)!==124&&n.charCodeAt(m-1)!==124&&!a&&!c&&!p)y===void 0?(u=m+1,y=n.slice(0,m).trim()):_();else{switch(d){case 34:o=!0;break;case 39:s=!0;break;case 96:l=!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 S=m-1,B;for(;S>=0&&(B=n.charAt(S),B===" ");S--);(!B||!Ki.test(B))&&(i=!0)}}y===void 0?y=n.slice(0,m).trim():u!==0&&_();function _(){E.push(n.slice(u,m).trim()),u=m+1}if(E.length){for(process.env.NODE_ENV!=="production"&&Et("COMPILER_FILTERS",t,e.loc),m=0;m<E.length;m++)y=Ji(y,E[m],t);e.content=y,e.ast=void 0}}function Ji(e,t,n){n.helper(en);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${st(t,"filter")}(${e})`;{const o=t.slice(0,s),l=t.slice(s+1);return n.filters.add(o),`${st(o,"filter")}(${e}${l!==")"?","+l:l}`}}const Hr=new WeakSet,Xi=(e,t)=>{if(e.type===1){const n=de(e,"memo");return!n||Hr.has(e)||t.inSSR?void 0:(Hr.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&pn(s,t),e.codegenNode=te(t.helper(dn),[n.exp,He(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}},Yi=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const s=n.arg;if(s.type!==4||!s.isStatic)t.onError(W(53,s.loc)),n.exp=I("",!0,s.loc);else{const o=De(s.content);(lr.test(o[0])||o[0]==="-")&&(n.exp=I(o,!1,s.loc))}}}};function Zi(e){return[[Yi,qi,Ci,Xi,Di,Gi,...process.env.NODE_ENV!=="production"?[Si]:[],ji,Ri,Ai,Wi],{on:Pr,bind:Hi,model:jr}]}function Qi(e,t={}){const n=t.onError||hn,s=t.mode==="module";t.prefixIdentifiers===!0?n(W(48)):s&&n(W(49));const o=!1;t.cacheHandlers&&n(W(50)),t.scopeId&&!s&&n(W(51));const l=Be({},t,{prefixIdentifiers:o}),i=ne(e)?Vo(e,l):e,[a,c]=Zi();return ri(i,Be({},l,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},c,t.directiveTransforms||{})})),li(i,l)}const Vi=()=>({props:[]});const Wr=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),qr=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Kr=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Gr=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),_n=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Jr=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Xr=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Yr=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),Tn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Zr=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");So({[Wr]:"vModelRadio",[qr]:"vModelCheckbox",[Kr]:"vModelText",[Gr]:"vModelSelect",[_n]:"vModelDynamic",[Jr]:"withModifiers",[Xr]:"withKeys",[Yr]:"vShow",[Tn]:"Transition",[Zr]:"TransitionGroup"});let Ge;function el(e,t=!1){return Ge||(Ge=document.createElement("div")),t?(Ge.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ge.children[0].getAttribute("foo")):(Ge.innerHTML=e,Ge.textContent)}const tl={parseMode:"html",isVoidTag:bo,isNativeTag:e=>go(e)||vo(e)||yo(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:el,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Tn;if(e==="TransitionGroup"||e==="transition-group")return Zr},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===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"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},nl=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:I("style",!0,t.loc),exp:rl(t.value.content,t.loc),modifiers:[],loc:t.loc})})},rl=(e,t)=>{const n=fo(e);return I(JSON.stringify(n),!1,t,3)};function Ee(e,t){return W(e,t,process.env.NODE_ENV!=="production"?sl:void 0)}const sl={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},ol=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(54,o)),t.children.length&&(n.onError(Ee(55,o)),t.children.length=0),{props:[Z(I("innerHTML",!0,o),s||I("",!0))]}},il=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(56,o)),t.children.length&&(n.onError(Ee(57,o)),t.children.length=0),{props:[Z(I("textContent",!0),s?ge(s,n)>0?s:te(n.helperString(gt),[s],o):I("",!0))]}},ll=(e,t,n)=>{const s=jr(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(Ee(59,e.arg.loc));function o(){const a=de(t,"bind");a&&Ae(a.arg,"value")&&n.onError(Ee(61,a.loc))}const{tag:l}=t,i=n.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||i){let a=Kr,c=!1;if(l==="input"||i){const p=rt(t,"type");if(p){if(p.type===7)a=_n;else if(p.value)switch(p.value.content){case"radio":a=Wr;break;case"checkbox":a=qr;break;case"file":c=!0,n.onError(Ee(60,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else Lo(t)?a=_n:process.env.NODE_ENV!=="production"&&o()}else l==="select"?a=Gr:process.env.NODE_ENV!=="production"&&o();c||(s.needRuntime=n.helper(a))}else n.onError(Ee(58,e.loc));return s.props=s.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),s},al=ke("passive,once,capture"),cl=ke("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),dl=ke("left,right"),Qr=ke("onkeyup,onkeydown,onkeypress"),fl=(e,t,n,s)=>{const o=[],l=[],i=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&Ke("COMPILER_V_ON_NATIVE",n,s)||al(c)?i.push(c):dl(c)?ce(e)?Qr(e.content.toLowerCase())?o.push(c):l.push(c):(o.push(c),l.push(c)):cl(c)?l.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:l,eventOptionModifiers:i}},Vr=(e,t)=>ce(e)&&e.content.toLowerCase()==="onclick"?I(t,!0):e.type!==4?be(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,pl=(e,t,n)=>Pr(e,t,n,s=>{const{modifiers:o}=e;if(!o.length)return s;let{key:l,value:i}=s.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=fl(l,o,n,e.loc);if(c.includes("right")&&(l=Vr(l,"onContextmenu")),c.includes("middle")&&(l=Vr(l,"onMouseup")),c.length&&(i=te(n.helper(Jr),[i,JSON.stringify(c)])),a.length&&(!ce(l)||Qr(l.content.toLowerCase()))&&(i=te(n.helper(Xr),[i,JSON.stringify(a)])),p.length){const u=p.map(Kt).join("");l=ce(l)?I(`${l.content}${u}`,!0):be(["(",l,`) + "${u}"`])}return{props:[Z(l,i)]}}),ul=(e,t,n)=>{const{exp:s,loc:o}=e;return s||n.onError(Ee(62,o)),{props:[],needRuntime:n.helper(Yr)}},hl=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Tn)return()=>{if(!e.children.length)return;es(e)&&t.onError(Ee(63,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const o of s.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function es(e){const t=e.children=e.children.filter(s=>!yn(s)),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(es)}const ml=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(Ee(64,e.loc)),t.removeNode())};function gl(e,t){return e==="template"?!0:e in ts?ts[e].has(t):t in ns?ns[t].has(e):!(e in rs&&rs[e].has(t)||t in ss&&ss[t].has(e))}const Je=new Set(["h1","h2","h3","h4","h5","h6"]),ze=new Set([]),ts={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:ze,iframe:ze,option:ze,textarea:ze,style:ze,title:ze},ns={html:ze,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"])},rs={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"])},ss={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},vl=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!gl(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)}},yl=[nl,...process.env.NODE_ENV!=="production"?[hl,vl]:[]],bl={cloak:Vi,html:ol,text:il,model:ll,on:pl,show:ul};function El(e,t={}){return Qi(e,Be({},tl,t,{nodeTransforms:[ml,...yl,...t.nodeTransforms||[]],directiveTransforms:Be({},bl,t.directiveTransforms||{}),transformHoist:null}))}function kl(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:s}=El(n,{mode:"function"}),o=new Function("Vue",`${s}; return render`)(_s);return r.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(l,i){return t?.setup?.()??{}},render:o})}const Bn={};function os(e){return Bn[e]||(Bn[e]=kl(e,{props:{row:Object,value:null,data:Object,column:Object}})),Bn[e]}const xl={class:"py-10 flex flex-col justify-center items-center text-center"},wl={class:"max-w-sm mx-auto"},Nl={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Sl={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Cl=r.defineComponent({__name:"nodata",props:{title:{},description:{}},setup(e){const t=dt(),n=e,s=r.computed(()=>n.title??t("table.noData.title")),o=r.computed(()=>n.description??t("table.noData.description"));return(l,i)=>(r.openBlock(),r.createElementBlock("div",xl,[i[0]||(i[0]=r.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)),r.createElementVNode("div",wl,[r.createElementVNode("p",Nl,r.toDisplayString(s.value),1),r.createElementVNode("p",Sl,r.toDisplayString(o.value),1)])]))}}),_l=["aria-checked","data-state"],Tl={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},Bl=["onKeydown"],Dl={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"},Ol={class:"py-2 px-4"},Il={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},Al={class:"truncate"},$l={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},Ml={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"},Rl=["onClick"],Ll={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},Pl={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"},Fl={key:1,class:"p-4"},zl={class:"text-base font-semibold text-gray-800 mb-3"},jl={class:"mb-4"},Ul={class:"block text-sm font-medium text-gray-700 mb-1"},Hl={key:0,class:"text-xs text-gray-500 mb-2"},Wl=["placeholder"],ql=["placeholder"],Kl=["placeholder"],Gl={disabled:"",value:""},Jl=["value"],Xl={key:0,class:"text-xs text-gray-500"},Yl={class:"flex justify-end gap-2 border-t pt-3"},Zl=r.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function},overflow:{}},emits:["edit","update"],setup(e,{emit:t}){const n=e,s=t,o=r.ref(!1),l=r.ref(null),i=r.ref(null),a=r.ref(n.value),c=r.ref([]),p=r.ref({}),u=ut(),d=r.computed(()=>n.column?.schema?.[n.column?.name]),h=r.computed(()=>pt(n.column||{},u.value)),m=r.computed(()=>Ds(n.column||{},u.value)||""),y=r.computed(()=>Pn(n.column||{},u.value)),E=r.computed(()=>Bs(n.column||{},u.value)),_=r.computed(()=>Ft(d.value,u.value,"placeholder")||m.value||""),S=r.computed(()=>Ft(d.value,u.value,"info")||y.value||null),B=r.computed(()=>Ft(d.value,u.value,"description")||E.value||null),D=r.computed(()=>_.value||"-- виберіть --");r.watch(()=>n.value,w=>{a.value=w});const H=r.computed(()=>{const w=n.column?.schema?.[n.column?.name];if(w?.type)switch(w.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.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes($)?$:"text"}),z=r.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(T=>({value:T.id??T.value,color:T.color,label:Os(T,u.value)||""}))),Q=r.ref(null);function J(){if(!o.value||!Q.value||!i.value)return;const w=Q.value.getBoundingClientRect(),{left:T,right:$,top:V}=w,ye=window.innerWidth||document.documentElement.clientWidth,xe=window.innerHeight||document.documentElement.clientHeight,le=8;let Te=$+le,we=V;const Ne=i.value.getBoundingClientRect();Te+Ne.width>ye-le&&(Te=T-Ne.width-le),Te=Math.max(le,Math.min(Te,ye-Ne.width-le)),we+Ne.height>xe-le&&(we=xe-Ne.height-le),we=Math.max(le,Math.min(we,xe-Ne.height-le)),p.value={left:`${Math.round(Te)}px`,top:`${Math.round(we)}px`}}function A(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&r.nextTick(()=>{J(),l.value?.focus?.(),l.value?.showPicker?.(),H.value==="select"&&C()}))}function N(){s("edit",n.row,n.column.name,a.value),s("update",n.row,n.column.name,a.value),o.value=!1}function R(){a.value=n.value,o.value=!1}function L(w){if(!o.value)return;const T=w.target;i.value&&i.value.contains(T)||Q.value&&!Q.value.contains(T)&&(o.value=!1)}function O(){o.value=!1}r.onMounted(()=>{document.addEventListener("click",L),document.addEventListener("close-all-popovers",O),window.addEventListener("resize",J),document.addEventListener("scroll",J,!0)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",L),document.removeEventListener("close-all-popovers",O),window.removeEventListener("resize",J),document.removeEventListener("scroll",J,!0)});function j(){n.editable&&(a.value=!a.value,s("update",n.row,n.column.name,a.value))}function q(w){return n.color?n.color.startsWith("#")?w.replace("{c}",`[${n.color}]`):w.replace("{c}",`${n.color}-500`):w.replace("{c}","cyan-500")}const k=r.computed(()=>({border:q("border-{c}"),ring:q("focus:ring-{c}"),text:q("text-{c}"),hover:q("hover:text-{c}"),bg:q("bg-{c} hover:bg-{c}/90")})),x=r.computed(()=>n.overflow==="wrap"?["flex-1","whitespace-normal","break-words"]:["flex-1","truncate","whitespace-nowrap"]);async function C(){if(H.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(w){console.error(`Не удалось загрузить options для ${n.column.name}`,w)}}return(w,T)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classContent?e.classContent:"relative group w-full"),ref_key:"cellRef",ref:Q},[H.value==="boolean"&&e.editable?(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:r.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?k.value.border:"",k.value.ring,a.value?k.value.bg:""]),onClick:r.withModifiers(j,["stop"])},[a.value?(r.openBlock(),r.createElementBlock("span",Tl,[...T[4]||(T[4]=[r.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"},[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)])])):r.createCommentVNode("",!0)],10,_l)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"flex items-start justify-between cursor-pointer gap-2",onClick:r.withModifiers(A,["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(x.value)},[r.renderSlot(w.$slots,"default")],2),e.editable?(r.openBlock(),r.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:r.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",k.value.text])},[...T[5]||(T[5]=[r.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)):r.createCommentVNode("",!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[o.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:i,class:r.normalizeClass(["fixed z-[9999] bg-white border rounded-lg shadow-lg",H.value==="select"?"":"w-[450px]"]),style:r.normalizeStyle(p.value),onKeydown:r.withKeys(r.withModifiers(R,["stop","prevent"]),["esc"])},[H.value==="select"?(r.openBlock(),r.createElementBlock("div",Dl,[r.createElementVNode("div",Ol,[r.createElementVNode("span",Il,[r.createElementVNode("span",Al,r.toDisplayString(h.value),1)])]),r.createElementVNode("div",$l,[r.createElementVNode("div",Ml,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(z.value,$=>(r.openBlock(),r.createElementBlock("label",{key:$.value.toString(),onClick:r.withModifiers(()=>{a.value=$.value,N()},["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]=r.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),$.color?(r.openBlock(),r.createElementBlock("span",Ll,[...T[6]||(T[6]=[r.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)])])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString($.label)+" ",1),a.value===$.value?(r.openBlock(),r.createElementBlock("svg",Pl,[...T[7]||(T[7]=[r.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)])])):r.createCommentVNode("",!0)],8,Rl))),128))])])])):(r.openBlock(),r.createElementBlock("div",Fl,[r.createElementVNode("h3",zl," Редагувати "+r.toDisplayString(h.value),1),r.createElementVNode("div",jl,[r.createElementVNode("label",Ul,r.toDisplayString(h.value),1),S.value?(r.openBlock(),r.createElementBlock("p",Hl,r.toDisplayString(S.value),1)):r.createCommentVNode("",!0),H.value==="text"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:1,ref_key:"inputRef",ref:l,"onUpdate:modelValue":T[0]||(T[0]=$=>a.value=$),type:"text",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:_.value,onKeyup:r.withKeys(N,["enter"])},null,42,Wl)),[[r.vModelText,a.value]]):H.value==="number"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:2,ref_key:"inputRef",ref:l,"onUpdate:modelValue":T[1]||(T[1]=$=>a.value=$),type:"number",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:_.value,onKeyup:r.withKeys(N,["enter"])},null,42,ql)),[[r.vModelText,a.value,void 0,{number:!0}]]):H.value==="date"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:3,ref_key:"inputRef",ref:l,"onUpdate:modelValue":T[2]||(T[2]=$=>a.value=$),type:"date",class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",k.value.ring,k.value.border]),placeholder:_.value,onChange:N},null,42,Kl)),[[r.vModelText,a.value]]):H.value==="select"?r.withDirectives((r.openBlock(),r.createElementBlock("select",{key:4,ref_key:"inputRef",ref:l,"onUpdate:modelValue":T[3]||(T[3]=$=>a.value=$),class:r.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",k.value.ring,k.value.border])},[r.createElementVNode("option",Gl,r.toDisplayString(D.value),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(z.value,$=>(r.openBlock(),r.createElementBlock("option",{key:$.value.toString(),value:$.value},r.toDisplayString($.label),9,Jl))),128))],2)),[[r.vModelSelect,a.value]]):r.createCommentVNode("",!0)]),B.value?(r.openBlock(),r.createElementBlock("p",Xl,r.toDisplayString(B.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Yl,[r.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:R}," Скасувати "),r.createElementVNode("button",{type:"button",class:r.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",k.value.bg]),onClick:N}," Зберегти ",2)])]))],46,Bl)):r.createCommentVNode("",!0)]))],64))],2))}}),is=typeof window<"u",ls=typeof document<"u",Ql=()=>{if(!ls)throw new Error("Tooltip requires document to be defined");const e=document.createElement("div");return e.className="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",e.style.opacity="0",e.style.visibility="hidden",document.body.appendChild(e),e},as=(e,t)=>{if(!ls||!is)return;const n=Ql(),s={text:t,tooltipEl:n,show:o=>{if(!s.text||!is)return;n.textContent=s.text;const l=o.currentTarget.getBoundingClientRect(),i=window.innerWidth-n.offsetWidth-12,a=Math.max(12,Math.min(l.left,i));n.style.left=`${a}px`,n.style.top=`${l.bottom+4}px`,n.style.opacity="1",n.style.visibility="visible"},hide:()=>{n.style.opacity="0",n.style.visibility="hidden"}};e.addEventListener("mouseenter",s.show),e.addEventListener("mouseleave",s.hide),e.addEventListener("focus",s.show),e.addEventListener("blur",s.hide),e.tooltipHandlers=s},cs=e=>{e.tooltipHandlers&&(e.removeEventListener("mouseenter",e.tooltipHandlers.show),e.removeEventListener("mouseleave",e.tooltipHandlers.hide),e.removeEventListener("focus",e.tooltipHandlers.show),e.removeEventListener("blur",e.tooltipHandlers.hide),e.tooltipHandlers.tooltipEl.remove(),delete e.tooltipHandlers)},Vl={mounted(e,t){t.value&&as(e,t.value)},updated(e,t){const n=e;if(!t.value){cs(n);return}if(!n.tooltipHandlers){as(n,t.value);return}n.tooltipHandlers.text=t.value},unmounted(e){cs(e)}},ea={key:0,class:"text-center py-8"},ta={class:"inline-flex items-center space-x-2"},na={key:2,class:"overflow-x-auto"},ra={key:0},sa={key:0,style:{width:"48px"}},oa={key:1,style:{width:"100px"}},ia=["checked","indeterminate"],la=["onClick"],aa={class:"flex items-center justify-between"},ca={class:"flex items-center gap-1.5"},da={key:0,class:"relative group"},fa=["onMouseenter"],pa={key:0,class:"ml-1 text-xs"},ua=["onMousedown"],ha=["onClick"],ma=["checked","onChange"],ga=["onClick"],va={key:1,class:"text-center"},ya=["colspan"],Dn=50,ba=180,At=r.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},hasAction:{type:Boolean,default:!0},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"},resizableColumnsWidth:{type:Boolean,default:!1},resizableColumnsWidthStorageKey:{default:""}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,s=Vl,o=r.ref({}),l=r.ref(null),i=r.ref(!1);let a=0,c=0,p=null,u=null;const d=t,h=r.ref(n.selectedRows||[]),m=r.ref(n.defaultSort.map(f=>({field:f.name,direction:f.asc?"asc":"desc"}))),y=r.ref([]),E=r.ref([]),_=r.ref(!1),S=r.ref(null),B=r.ref(n.router),D=r.useSlots(),H=r.computed(()=>D.action),z=r.computed(()=>H.value&&n.hasAction);function Q(f){if(B.value){B.value.push(f);return}location.href=f}const J=r.computed(()=>{if(n.api)return y.value;if(n.sortable&&m.value.length>0){const f=[...n.rows];return f.sort((b,g)=>{for(const U of m.value){if(!U.direction)return 0;const v=b[U.field],M=g[U.field];if(v==null)return 1;if(M==null)return-1;let ee=0;typeof v=="string"&&typeof M=="string"?ee=v.localeCompare(M):v<M?ee=-1:v>M?ee=1:ee=0;const Xe=U.direction==="desc"?-ee:ee;if(Xe!==0)return Xe}return 0}),f}return n.rows});r.watch(()=>n.selectedRows,f=>{h.value=f||[]});const A=f=>h.value.some(b=>b===f),N=f=>{const b=h.value.findIndex(g=>g===f);b>-1?h.value.splice(b,1):h.value.push(f),d("update:selectedRows",[...h.value])},R=r.computed(()=>J.value.length>0&&h.value.length===J.value.length),L=r.computed(()=>h.value.length>0&&h.value.length<J.value.length),O=()=>{R.value?h.value=[]:h.value=[...J.value],d("update:selectedRows",[...h.value])},j=(f,b)=>{if(!n.sortable||l.value||i.value)return;if(b?.ctrlKey||b?.metaKey){const v=m.value.findIndex(M=>M.field===f);if(v>=0){const M=m.value[v];M.direction==="asc"?M.direction="desc":M.direction==="desc"&&m.value.splice(v,1)}else m.value.unshift({field:f,direction:"asc"})}else{const v=m.value.find(M=>M.field===f);v?v.direction==="asc"?v.direction="desc":v.direction==="desc"&&(m.value=[]):m.value=[{field:f,direction:"asc"}]}const U=m.value.filter(v=>v.direction).map(v=>({name:v.field,asc:v.direction==="asc"}));d("sort",U),n.api&&Rt()},q=f=>m.value.find(g=>g.field===f)?.direction==="asc",k=f=>{const b=m.value.find(g=>g.field===f);if(!b)return"";switch(b.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},x=f=>n.sortable&&f.sortable!==!1,C=f=>{n.clickable&&d("row-click",f)},w=f=>f==null||f===""?"":typeof f=="object"?f?.text?String(f.text):f?.label?String(f.label):JSON.stringify(f):String(f),T=f=>f.map(w).filter(b=>b!=="").join(", "),$=(f,b)=>b.format!=="array"&&Array.isArray(f)?T(f):f,V=(f,b)=>{const g=b[f.name];if(n.getCellData||f.getCellData){const M=f.getCellData||n.getCellData;if(M){const ee={name:f.name,row:b,value:g};return $(M(ee),f)}}const v=["_data","_text"].map(M=>{const ee=`${f.name}${M}`;return b[ee]?b[ee]:null}).find(M=>M)||(f.link?g||"-":g);return $(v,f)},ye=f=>Array.isArray(f)?T(f):w(f),xe=(f,b)=>{if(!b?.tooltip)return;const g=V(b,f);if(g!=null)return ye(g)},le=f=>f.width?f.width==="w-full"?"w-full":typeof f.width=="string"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:typeof f.width=="number"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:"":"max-w-[350px]",Te=f=>(typeof f?.overflow=="string"?f.overflow.toLowerCase():"")==="wrap"?"wrap":"clip",we=f=>Te(f)==="wrap"?["whitespace-normal","break-words"]:["truncate","whitespace-nowrap"],Ne=r.ref(n.page),hs=r.ref(n.limit),On=r.ref(n.total),$t=r.ref(1),In=r.ref(10),Mt=r.ref(0),ms=r.computed(()=>n.api?$t.value:Ne.value),gs=r.computed(()=>n.api?In.value:hs.value),vs=r.computed(()=>n.api?Mt.value:On.value),ae=r.computed(()=>{const{theme:f}=n;return f==="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"}:f==="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"}});r.watch(()=>n.page,f=>{Ne.value=f}),r.watch(()=>n.limit,f=>{hs.value=f}),r.watch(()=>n.total,f=>{On.value=f});async function Rt(){if(n.api){_.value=!0,S.value=null;try{const f=new URL(n.api,window.location.origin);if(f.searchParams.set("page",ms.value.toString()),f.searchParams.set("limit",gs.value.toString()),m.value.length>0){const U=m.value.filter(v=>v.direction).map(v=>`${v.field}:${v.direction}`).join(",");U&&f.searchParams.set("sort",U)}const b=await fetch(f.toString());if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);const g=await b.json();g.rows&&Array.isArray(g.rows)&&(y.value=g.rows),g.columns&&Array.isArray(g.columns)&&(E.value=g.columns),g.total!==void 0&&(n.api?Mt.value=g.total:On.value=g.total)}catch(f){S.value=f instanceof Error?f.message:"Failed to fetch data",console.error("Error fetching data:",f)}finally{_.value=!1}}}const Ec=f=>{n.api?$t.value=f:(Ne.value=f,d("update:page",f)),n.api&&Rt()},kc=r.computed(()=>n.showPagination&&vs.value>0),at=r.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]),xc=f=>{const b=[];return n.classTd?b.push(n.classTd):b.push(ae.value.td,at.value.cell),f.align&&b.push(`text-${f.align}`),!n.resizableColumnsWidth&&le(f)&&b.push(le(f)),b.push(...we(f)),b.filter(Boolean)},wc=dt(),ys=ut();r.onMounted(()=>{n.api&&(n.page&&($t.value=n.page),n.limit&&(In.value=n.limit),n.total&&(Mt.value=n.total),Rt()),n.resizableColumnsWidth&&ks()}),r.watch(()=>n.api,f=>{f&&($t.value=n.page||1,In.value=n.limit||10,Mt.value=n.total||0,Rt())});const bs=r.computed(()=>n.api?E.value:n.columns),An=r.ref([]),Lt=r.ref({});r.provide("registerColumn",(f,b)=>{An.value.push(f),b&&f.slotName&&(Lt.value[f.name]=b)});const $n=r.computed(()=>{const f=bs.value||[],b=[],g=D.default?.();if(g){const U=g.filter(v=>v.type?.name==="Column"||v.type==="Column"||v.type&&typeof v.type=="object"&&v.type.name==="Column").map(v=>{const M=v.props||v.componentProps||{},ee=M.field||M.name||"",Xe=M.header||M.label||"",Ss=v.children&&v.children.body,Rn={name:ee,ua:Xe,format:M.format||"text",slotName:Ss?"body":void 0,...M};return Ss&&Rn.name&&(Lt.value[Rn.name]=v.children.body),Rn});b.push(...U)}if(An.value.length>0&&b.push(...An.value),b.length>0){const U=[],v=new Set(b.map(M=>M.name));return f.forEach(M=>{v.has(M.name)||U.push(M)}),U.push(...b),console.log("Combined columns:",{default:f.length,custom:b.length,combined:U.length}),U}return f.length>0?f:[]}),Pt=r.computed(()=>($n.value||[]).filter(f=>!f.hidden));function Es(f){if(typeof f.width=="number"&&f.width>0)return f.width;if(typeof f.width=="string"){const b=parseInt(f.width.replace(/px$/i,""),10);if(!Number.isNaN(b)&&b>0)return b}return ba}function ks(){if(!n.resizableColumnsWidth)return;const f=Pt.value;let b={};if(n.resizableColumnsWidthStorageKey)try{const g=localStorage.getItem(n.resizableColumnsWidthStorageKey);g&&(b={...JSON.parse(g)})}catch{}f.forEach(g=>{(b[g.name]==null||b[g.name]<Dn)&&(b[g.name]=Es(g))}),o.value=b}r.watch(()=>[$n.value,n.resizableColumnsWidth],()=>{n.resizableColumnsWidth&&ks()});function xs(f){const b=o.value[f.name];return b!=null&&b>=Dn?b:Es(f)}function Nc(f,b){l.value=b.name,a=f.clientX,c=xs(b),p=g=>{const U=g.clientX-a,v=Math.max(Dn,c+U);o.value={...o.value,[b.name]:v}},u=()=>{if(document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",u),document.body.style.userSelect="",n.resizableColumnsWidthStorageKey)try{localStorage.setItem(n.resizableColumnsWidthStorageKey,JSON.stringify(o.value))}catch{}i.value=!0,l.value=null,p=null,u=null,setTimeout(()=>{i.value=!1},100)},document.body.style.userSelect="none",document.addEventListener("mousemove",p),document.addEventListener("mouseup",u)}const Sc=(f="text")=>zt[f.toLowerCase()]||zt.text,je=r.ref({});async function Cc(f){const{data:b,api:g}=$n.value.find(U=>U.name===f);if(je.value[f])return je.value[f];if(b||g){const U=g||`/api/suggest/${b}?json=1`,M=await(await fetch(U)).json();M.data&&Array.isArray(M.data)&&(je.value[f]=M.data.map(ee=>({value:ee.id??ee.value,label:ee.text??ee.label})))}return je.value[f]}function _c(f,b,g,U){const v=U;v!==-1&&(n.rows[v]={...n.rows[v],[b]:g}),d("cell-update",f,b,g)}function ws(f){return Pn(f,ys.value)}function Tc(f){return pt(f,ys.value)}const Mn=r.ref(null),Ns=r.ref({top:"0px",left:"0px"});function Bc(f,b){const g=f.currentTarget.getBoundingClientRect();Mn.value=b,Ns.value={top:`${g.bottom+4}px`,left:`${Math.min(g.left,window.innerWidth-230)}px`}}function Dc(){Mn.value=null}return r.watch(()=>n.form,async f=>{f&&(je.value={})}),r.onMounted(()=>{n.form&&(je.value={})}),(f,b)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["w-full",ae.value.container])},[_.value||n.loading?(r.openBlock(),r.createElementBlock("div",ea,[r.createElementVNode("div",ta,[b[1]||(b[1]=r.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(ae.value.loading)},"Loading...",2)])])):S.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["text-center py-8",ae.value.error])},r.toDisplayString(S.value),3)):n.loading?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",na,[r.createElementVNode("div",{class:r.normalizeClass(e.classWrapper?e.classWrapper:"relative w-full overflow-auto")},[r.createElementVNode("table",{class:r.normalizeClass(e.classTable),style:r.normalizeStyle([e.tableStyle,n.resizableColumnsWidth?"table-layout: fixed":""])},[n.resizableColumnsWidth?(r.openBlock(),r.createElementBlock("colgroup",ra,[e.selectable?(r.openBlock(),r.createElementBlock("col",sa)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,g=>(r.openBlock(),r.createElementBlock("col",{key:g.name,style:r.normalizeStyle({width:xs(g)+"px"})},null,4))),128)),z.value?(r.openBlock(),r.createElementBlock("col",oa)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("thead",{class:r.normalizeClass(e.classThead||ae.value.thead)},[r.createElementVNode("tr",null,[e.selectable?(r.openBlock(),r.createElementBlock("th",{key:0,class:r.normalizeClass(["text-left font-medium uppercase tracking-wider",ae.value.th,at.value.header,n.classTh,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:R.value,indeterminate:L.value,onChange:O,class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",ae.value.checkbox])},null,42,ia)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,g=>(r.openBlock(),r.createElementBlock("th",{key:g.name,class:r.normalizeClass([n.resizableColumnsWidth?"relative":"",g.align?`text-${g.align}`:"",x(g)?["cursor-pointer",ae.value.thHover]:"",n.resizableColumnsWidth?"":le(g)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",ae.value.th,at.value.header])),onClick:U=>x(g)?j(g.name,U):void 0},[r.createElementVNode("div",aa,[r.createElementVNode("div",ca,[r.createElementVNode("span",null,r.toDisplayString(Tc(g)),1),ws(g)?(r.openBlock(),r.createElementBlock("div",da,[(r.openBlock(),r.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:U=>Bc(U,g.name),onMouseleave:Dc},[...b[2]||(b[2]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),r.createElementVNode("path",{d:"M12 16v-4"},null,-1),r.createElementVNode("path",{d:"M12 8h.01"},null,-1)])],40,fa)),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[Mn.value===g.name?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(Ns.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"},r.toDisplayString(ws(g)),5)):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)]),x(g)?(r.openBlock(),r.createElementBlock("span",pa,[r.renderSlot(f.$slots,"sort",{asc:q(g.name)},()=>[r.createTextVNode(r.toDisplayString(k(g.name)),1)])])):r.createCommentVNode("",!0)]),n.resizableColumnsWidth&&!g.action?(r.openBlock(),r.createElementBlock("div",{key:0,class:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-blue-400/30",onMousedown:r.withModifiers(U=>Nc(U,g),["prevent"]),onClick:b[0]||(b[0]=r.withModifiers(()=>{},["stop","prevent"]))},null,40,ua)):r.createCommentVNode("",!0)],10,la))),128)),z.value?(r.openBlock(),r.createElementBlock("th",{key:1,class:r.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",ae.value.th,at.value.header]])},r.toDisplayString(r.unref(wc)("table.actions")),3)):r.createCommentVNode("",!0)])],2),J.value.length?(r.openBlock(),r.createElementBlock("tbody",{key:1,class:r.normalizeClass(e.classTbody||ae.value.tbody)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(J.value,(g,U)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:U},[r.createElementVNode("tr",{class:r.normalizeClass(n.classTr||[ae.value.tr,n.clickable?"cursor-pointer":""]),onClick:v=>n.clickable?C(g):void 0},[e.selectable?(r.openBlock(),r.createElementBlock("td",{key:0,class:r.normalizeClass(["whitespace-nowrap",ae.value.td,at.value.cell,n.classTd,"w-12"])},[r.createElementVNode("input",{type:"checkbox",checked:A(g),onChange:v=>N(g),class:r.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",ae.value.checkbox])},null,42,ma)],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Pt.value,v=>r.withDirectives((r.openBlock(),r.createElementBlock("td",{key:v.name,class:r.normalizeClass(xc(v))},[(r.openBlock(),r.createBlock(Zl,{"class-content":n.classContent,key:g,editable:v.edit,row:g,column:v,value:g[v.name],format:v.format,options:je.value[v.name]||[],color:e.color,overflow:Te(v),onUpdate:(M,ee,Xe)=>_c(M,ee,Xe,U),"fetch-options":Cc},{default:r.withCtx(()=>[v.action&&H.value?r.renderSlot(f.$slots,"action",{key:0,row:g}):r.unref(D).number&&v.format==="number"?r.renderSlot(f.$slots,"number",{key:1,row:g,value:V(v,g)}):r.unref(D).badge&&v.format==="badge"?r.renderSlot(f.$slots,"badge",{key:2,row:g,value:V(v,g)}):r.unref(D).array&&v.format==="array"?r.renderSlot(f.$slots,"array",{key:3,row:g,value:V(v,g)}):r.unref(D)[v.format]?r.renderSlot(f.$slots,v.format,{key:4,row:g,value:V(v,g),column:v}):v.slotName&&Lt.value[v.name]?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Lt.value[v.name]),{key:5,data:g,value:V(v,g),row:g,column:v},null,8,["data","value","row","column"])):v.link?(r.openBlock(),r.createElementBlock("a",{key:6,class:r.normalizeClass(e.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:M=>Q(v.link.replace("{id}",g.id))},[v.slot&&typeof v.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(os)(v.slot)),{key:0,row:g,value:g,data:g,column:v},null,8,["row","value","data","column"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(V(v,g)),1)],64))],10,ga)):v.slot&&v.format==="slot"&&typeof v.slot=="string"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(os)(v.slot)),{key:7,row:g,value:V(v,g),data:g,column:v},null,8,["row","value","data","column"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Sc(v.format)),{key:8,value:V(v,g),row:g,column:v,href:v.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","overflow","onUpdate"]))],2)),[[r.unref(s),xe(g,v)]])),128)),z.value?(r.openBlock(),r.createElementBlock("td",va,[r.renderSlot(f.$slots,"action",{row:g})])):r.createCommentVNode("",!0)],10,ha),r.createElementVNode("tr",null,[r.renderSlot(f.$slots,"under-row",{row:g})])],64))),128))],2)):r.createCommentVNode("",!0),J.value.length===0?(r.openBlock(),r.createElementBlock("tbody",{key:2,class:r.normalizeClass(["text-center py-8",ae.value.empty])},[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:bs.value.length},[r.createVNode(Cl)],8,ya)])],2)):r.createCommentVNode("",!0)],6)],2)])),kc.value&&!_.value&&!n.loading&&!S.value?(r.openBlock(),r.createBlock(jt,{key:3,page:ms.value,limit:gs.value,total:vs.value,theme:n.theme,size:n.size,"onUpdate:page":Ec},null,8,["page","limit","total","theme","size"])):r.createCommentVNode("",!0)],2))}}),Ea={style:{display:"none"}},ds=r.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:{},tooltip:{type:Boolean},overflow:{}},setup(e){const t=e,n=r.useSlots(),s=r.inject("registerColumn");return r.onMounted(()=>{if(s){const{field:o,name:l,header:i,label:a,format:c,slotName:p,link:u,action:d,getCellData:h,suffix:m,...y}=t,B={name:o||l||"",ua:i||a||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:u,action:d,getCellData:h,suffix:m,...y};console.log("Registering column:",B);const D=n.body;s(B,D)}}),(o,l)=>(r.openBlock(),r.createElementBlock("div",Ea,[r.renderSlot(o.$slots,"body",{data:{}})]))}}),ka={class:"mt-4"},xa={class:"text-sm text-gray-600 dark:text-gray-300"},fs=r.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=r.computed(()=>t.selectedRows.length);return(s,o)=>(r.openBlock(),r.createElementBlock("div",ka,[r.createElementVNode("div",xa," Обрано: "+r.toDisplayString(n.value)+" з "+r.toDisplayString(e.totalCount)+" записів ",1)]))}}),wa={class:"mt-4"},Na={class:"border-b border-gray-200 dark:border-gray-700"},Sa={class:"-mb-px flex space-x-8"},Ca=["onClick"],_a={class:"mt-4"},Ta={class:"bg-gray-900 rounded-lg overflow-hidden"},Ba={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Da={class:"text-sm text-gray-300"},Oa=["onClick"],Ia={class:"p-4 text-sm text-gray-100 overflow-x-auto"},ps=r.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=r.ref(t.defaultTab||t.tabs[0]?.id||""),s=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(l){console.error("Помилка копіювання:",l)}};return(o,l)=>(r.openBlock(),r.createElementBlock("div",wa,[r.createElementVNode("div",Na,[r.createElementVNode("nav",Sa,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,i=>(r.openBlock(),r.createElementBlock("button",{key:i.id,onClick:a=>n.value=i.id,class:r.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===i.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"])},r.toDisplayString(i.label),11,Ca))),128))])]),r.createElementVNode("div",_a,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,i=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:i.id},[r.createElementVNode("div",Ta,[r.createElementVNode("div",Ba,[r.createElementVNode("span",Da,r.toDisplayString(i.label),1),r.createElementVNode("button",{onClick:a=>s(i.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},[...l[0]||(l[0]=[r.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r.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,Oa)]),r.createElementVNode("pre",Ia,[r.createElementVNode("code",null,r.toDisplayString(i.content),1)])])])),[[r.vShow,n.value===i.id]])),128))])]))}}),Aa={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},$a={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"},Ma={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},Ra={class:"font-medium text-gray-800 dark:text-[#ffffff]"},La={class:"sr-only"},Pa={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},Fa={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"},ja={class:"text-sm font-[600] text-gray-500"},Ua={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},Ha={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Wa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},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"},Ga={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ja={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]"},Ya={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]"},Qa=["id","value"],Va=["for"],ec={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"},tc={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},nc={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},rc={class:"text-sm font-[600] text-gray-500"},sc={class:"mt-2 space-y-2"},oc={class:"flex items-center"},ic={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},lc={class:"flex items-center"},ac={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},cc={class:"flex items-center"},dc={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},fc={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},pc={class:"flex items-center gap-2 mb-2"},uc={class:"flex justify-end gap-x-2"},hc={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},mc=["disabled"],gc={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},vc={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},yc={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},bc={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},us=r.defineComponent({__name:"Export",props:{table:{},columns:{},filter:{}},setup(e){const t=r.getCurrentInstance(),n=dt(),s=e;function o(k){return Array.isArray(k)?k.join(","):String(k)}const l=r.computed(()=>{const k=s.filter??{};return Object.entries(k).filter(([,x])=>Array.isArray(x)?x.length>0:!!x).map(([x,C])=>`${x}=${o(C)}`).join("|")}),i=r.ref(!1),a=r.ref([]),c=r.ref("json"),p=r.ref(!1),u=r.ref(!1),d=r.ref(""),h=r.ref(!1),m=r.ref("all"),y=r.computed(()=>s.columns??[]),E=r.computed(()=>y.value.filter(k=>k.export!==!1)),_=r.useAttrs();function S(){const k=E.value;a.value=k.map(x=>x.name),m.value=k.length?"all":"none",c.value="json",i.value=!0,h.value=!1}function B(){i.value=!1,h.value=!1}function D(){const k=E.value;a.value=k.map(x=>x.name),m.value=k.length?"all":"none"}function H(){const k=E.value,x=k.filter(w=>!w.hidden).map(w=>w.name),C=x.length?x:k.map(w=>w.name);a.value=C,m.value=C.length?"active":"none"}function z(){a.value=[],m.value="none"}async function Q(){const k=a.value.filter(C=>E.value.some(w=>w.name===C));if(k.length===0)return;p.value=!0,d.value="",u.value=!1;const x=new URLSearchParams({table:s.table,format:c.value,columns:k.join(",")});l.value&&x.set("filter",l.value);try{const C=await fetch(`/api/export?${x.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!C.ok)throw new Error("Export failed");if(C.headers.get("content-type")?.includes("text/event-stream")){if(B(),u.value=!0,h.value=!0,!await j(C,$=>{d.value=$}))throw new Error("Failed to process streamed export");d.value=n("table.preparingDownload"),await L(x),u.value=!1,h.value=!1}else await R(C),B()}catch(C){console.error(C);const{$notify:w=console.log}=t?.appContext?.config?.globalProperties||{};w({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),u.value=!1,h.value=!1}finally{p.value=!1}}const J=ut(),A=k=>pt(k,J.value);function N(k,x){const C=URL.createObjectURL(k),w=document.createElement("a");w.href=C,w.download=x||`${s.table}.${c.value}`,document.body.appendChild(w),w.click(),w.remove(),URL.revokeObjectURL(C)}async function R(k){const x=await k.blob();N(x,`${s.table}.${c.value}`)}async function L(k){const x=await fetch(`/api/export?${k.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!x.ok)throw new Error("Export failed");await R(x)}function O(k){return k.split(/\r?\n/).reduce((x,C)=>{const[w,...T]=C.split(":");if(!w)return x;const $=T.join(":").trimStart();return w==="event"&&(x.event=$),w==="data"&&(x.data=(x.data?`${x.data}
|
|
10
|
+
`:"")+$),x},{})}async function j(k,x){const C=k.body?.getReader();if(!C)return!1;const w=new TextDecoder;let T="",$=!1;for(;;){const{value:V,done:ye}=await C.read();if(ye)break;T+=w.decode(V,{stream:!0});let xe=T.indexOf(`
|
|
23
11
|
|
|
24
|
-
`);for(;
|
|
12
|
+
`);for(;xe!==-1;){const le=T.slice(0,xe).trim();if(T=T.slice(xe+2),le){const we=O(le).data?.trim();we&&($=q(we,x)||$)}xe=T.indexOf(`
|
|
25
13
|
|
|
26
|
-
`)}}return M}function B(w,b){const k=w.trim();if(!k)return!1;try{const T=JSON.parse(k);return T.message&&b&&b(T.message),T.status&&b&&b(T.status),!!(T.done||T.complete)}catch{const J=k.toLowerCase();return b&&b(k),!!(J==="[done]"||J.startsWith("finish"))}}return(w,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:y,class:r.normalizeClass([[r.unref(x).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"])},[b[4]||(b[4]=r.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)),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.export")),1)],2),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[o.value?(r.openBlock(),r.createElementBlock("div",Ia,[r.createElementVNode("div",Aa,[r.createElementVNode("div",$a,[r.createElementVNode("h3",Ma,r.toDisplayString(r.unref(n)("table.exportTitle")),1),r.createElementVNode("button",{type:"button",onClick:N,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"},[r.createElementVNode("span",Ra,r.toDisplayString(r.unref(n)("table.close")),1),b[5]||(b[5]=r.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"},[r.createElementVNode("path",{d:"M18 6 6 18"}),r.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),r.createElementVNode("div",La,[r.createElementVNode("div",Pa,[r.createElementVNode("div",Fa,[r.createElementVNode("h2",za,r.toDisplayString(r.unref(n)("table.chooseColumns")),1),r.createElementVNode("div",ja,[r.createElementVNode("button",{onClick:C,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"},[r.createElementVNode("span",Ua,[p.value==="all"?(r.openBlock(),r.createElementBlock("span",Ha)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectAll")),1)]),r.createElementVNode("button",{onClick:A,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"},[r.createElementVNode("span",Wa,[p.value==="active"?(r.openBlock(),r.createElementBlock("span",qa)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectCurrent")),1)]),r.createElementVNode("button",{onClick:_,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"},[r.createElementVNode("span",Ka,[p.value==="none"?(r.openBlock(),r.createElementBlock("span",Ga)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.none")),1)])]),r.createElementVNode("div",Ja,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,k=>(r.openBlock(),r.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:k.name},[r.createElementVNode("div",Xa,[r.createElementVNode("div",Ya,[r.withDirectives(r.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-"+k.name,value:k.name,"onUpdate:modelValue":b[0]||(b[0]=T=>i.value=T)},null,8,Za),[[r.vModelCheckbox,i.value]]),r.createElementVNode("label",{for:"radio-"+k.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[r.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:r.normalizeStyle(i.value.includes(k.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[r.withDirectives((r.openBlock(),r.createElementBlock("svg",Va,b[6]||(b[6]=[r.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),r.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[r.vShow,i.value.includes(k.name)]])],4),r.createElementVNode("span",ec,r.toDisplayString(V(k)),1)],8,Qa)])])]))),128))])]),r.createElementVNode("div",tc,[r.createElementVNode("h2",nc,r.toDisplayString(r.unref(n)("table.chooseFormat")),1),r.createElementVNode("div",rc,[r.createElementVNode("div",sc,[r.withDirectives(r.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":b[1]||(b[1]=k=>l.value=k)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",oc,r.toDisplayString(r.unref(n)("table.format.json")),1)]),r.createElementVNode("div",ic,[r.withDirectives(r.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":b[2]||(b[2]=k=>l.value=k)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",lc,r.toDisplayString(r.unref(n)("table.format.csv")),1)]),r.createElementVNode("div",ac,[r.withDirectives(r.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":b[3]||(b[3]=k=>l.value=k)},null,512),[[r.vModelRadio,l.value]]),r.createElementVNode("label",cc,r.toDisplayString(r.unref(n)("table.format.xlsx")),1)])])])]),c.value?(r.openBlock(),r.createElementBlock("div",dc,[r.createElementVNode("div",pc,[b[7]||(b[7]=r.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("span",null,r.toDisplayString(r.unref(n)("table.processingExport")),1)]),r.createElementVNode("div",null,r.toDisplayString(f.value||r.unref(n)("table.waitingExport")),1)])):r.createCommentVNode("",!0)]),r.createElementVNode("div",fc,[r.createElementVNode("div",uc,[r.createElementVNode("button",{type:"button",onClick:N,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"},r.toDisplayString(r.unref(n)("table.cancel")),1),r.createElementVNode("button",{type:"button",onClick:z,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"},r.toDisplayString(r.unref(n)("table.download")),9,hc)])])])])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[m.value?(r.openBlock(),r.createElementBlock("div",mc,[r.createElementVNode("div",gc,[b[8]||(b[8]=r.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("p",vc,r.toDisplayString(r.unref(n)("table.processingExport")),1),r.createElementVNode("p",yc,r.toDisplayString(f.value||r.unref(n)("table.waitingExport")),1)])])):r.createCommentVNode("",!0)]))],64))}});At.install=function(t){t.component("DataTable",At),t.component("Column",as),t.component("Pagination",jt),t.component("SelectionInfo",cs),t.component("CodeTabs",ds),t.component("ColumnsSettings",Pn),t.component("Export",ps)},X.ArrayFormat=Hn,X.BadgeFormat=Un,X.BooleanFormat=qn,X.CodeTabs=ds,X.Column=as,X.ColumnsSettings=Pn,X.DataTable=At,X.DateFormat=zn,X.Export=ps,X.GeomFormat=Kn,X.NumberFormat=Fn,X.Pagination=jt,X.SelectFormat=Wn,X.SelectionInfo=cs,X.TextFormat=jn,X.default=At,X.formatComponents=zt,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
14
|
+
`)}}return $}function q(k,x){const C=k.trim();if(!C)return!1;try{const w=JSON.parse(C);return w.message&&x&&x(w.message),w.status&&x&&x(w.status),!!(w.done||w.complete)}catch{const T=C.toLowerCase();return x&&x(C),!!(T==="[done]"||T.startsWith("finish"))}}return(k,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("button",{onClick:S,class:r.normalizeClass([[r.unref(_).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"])},[x[4]||(x[4]=r.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)),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.export")),1)],2),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value?(r.openBlock(),r.createElementBlock("div",Aa,[r.createElementVNode("div",$a,[r.createElementVNode("div",Ma,[r.createElementVNode("h3",Ra,r.toDisplayString(r.unref(n)("table.exportTitle")),1),r.createElementVNode("button",{type:"button",onClick:B,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"},[r.createElementVNode("span",La,r.toDisplayString(r.unref(n)("table.close")),1),x[5]||(x[5]=r.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"},[r.createElementVNode("path",{d:"M18 6 6 18"}),r.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),r.createElementVNode("div",Pa,[r.createElementVNode("div",Fa,[r.createElementVNode("div",za,[r.createElementVNode("h2",ja,r.toDisplayString(r.unref(n)("table.chooseColumns")),1),r.createElementVNode("div",Ua,[r.createElementVNode("button",{onClick:D,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"},[r.createElementVNode("span",Ha,[m.value==="all"?(r.openBlock(),r.createElementBlock("span",Wa)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectAll")),1)]),r.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"},[r.createElementVNode("span",qa,[m.value==="active"?(r.openBlock(),r.createElementBlock("span",Ka)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.selectCurrent")),1)]),r.createElementVNode("button",{onClick:z,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"},[r.createElementVNode("span",Ga,[m.value==="none"?(r.openBlock(),r.createElementBlock("span",Ja)):r.createCommentVNode("",!0)]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("table.none")),1)])]),r.createElementVNode("div",Xa,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.value,C=>(r.openBlock(),r.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:C.name},[r.createElementVNode("div",Ya,[r.createElementVNode("div",Za,[r.withDirectives(r.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-"+C.name,value:C.name,"onUpdate:modelValue":x[0]||(x[0]=w=>a.value=w)},null,8,Qa),[[r.vModelCheckbox,a.value]]),r.createElementVNode("label",{for:"radio-"+C.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[r.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:r.normalizeStyle(a.value.includes(C.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[r.withDirectives((r.openBlock(),r.createElementBlock("svg",ec,[...x[6]||(x[6]=[r.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),r.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)])],512)),[[r.vShow,a.value.includes(C.name)]])],4),r.createElementVNode("span",tc,r.toDisplayString(A(C)),1)],8,Va)])])]))),128))])]),r.createElementVNode("div",nc,[r.createElementVNode("h2",rc,r.toDisplayString(r.unref(n)("table.chooseFormat")),1),r.createElementVNode("div",sc,[r.createElementVNode("div",oc,[r.withDirectives(r.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":x[1]||(x[1]=C=>c.value=C)},null,512),[[r.vModelRadio,c.value]]),r.createElementVNode("label",ic,r.toDisplayString(r.unref(n)("table.format.json")),1)]),r.createElementVNode("div",lc,[r.withDirectives(r.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":x[2]||(x[2]=C=>c.value=C)},null,512),[[r.vModelRadio,c.value]]),r.createElementVNode("label",ac,r.toDisplayString(r.unref(n)("table.format.csv")),1)]),r.createElementVNode("div",cc,[r.withDirectives(r.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":x[3]||(x[3]=C=>c.value=C)},null,512),[[r.vModelRadio,c.value]]),r.createElementVNode("label",dc,r.toDisplayString(r.unref(n)("table.format.xlsx")),1)])])])]),u.value?(r.openBlock(),r.createElementBlock("div",fc,[r.createElementVNode("div",pc,[x[7]||(x[7]=r.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("span",null,r.toDisplayString(r.unref(n)("table.processingExport")),1)]),r.createElementVNode("div",null,r.toDisplayString(d.value||r.unref(n)("table.waitingExport")),1)])):r.createCommentVNode("",!0)]),r.createElementVNode("div",uc,[r.createElementVNode("div",hc,[r.createElementVNode("button",{type:"button",onClick:B,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"},r.toDisplayString(r.unref(n)("table.cancel")),1),r.createElementVNode("button",{type:"button",onClick:Q,disabled:a.value.length===0||p.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"},r.toDisplayString(r.unref(n)("table.download")),9,mc)])])])])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[h.value?(r.openBlock(),r.createElementBlock("div",gc,[r.createElementVNode("div",vc,[x[8]||(x[8]=r.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[r.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r.createElementVNode("p",yc,r.toDisplayString(r.unref(n)("table.processingExport")),1),r.createElementVNode("p",bc,r.toDisplayString(d.value||r.unref(n)("table.waitingExport")),1)])])):r.createCommentVNode("",!0)]))],64))}});At.install=function(t){t.component("DataTable",At),t.component("Column",ds),t.component("Pagination",jt),t.component("SelectionInfo",fs),t.component("CodeTabs",ps),t.component("ColumnsSettings",Fn),t.component("Export",us)},X.ArrayFormat=Wn,X.BadgeFormat=Hn,X.BooleanFormat=Kn,X.CodeTabs=ps,X.Column=ds,X.ColumnsSettings=Fn,X.DataTable=At,X.DateFormat=jn,X.Export=us,X.GeomFormat=Gn,X.NumberFormat=zn,X.Pagination=jt,X.SelectFormat=qn,X.SelectionInfo=fs,X.TextFormat=Un,X.default=At,X.formatComponents=zt,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|