(function(N,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("vue-demi")):typeof define=="function"&&define.amd?define(["exports","vue","vue-demi"],o):(N=typeof globalThis<"u"?globalThis:N||self,o(N.VuetableNext={},N.vue,N.VueDemi))})(this,function(N,o,b){"use strict";function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pn}=Object.prototype,{getPrototypeOf:Pe}=Object,ie=(e=>t=>{const n=Pn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),U=e=>(e=e.toLowerCase(),t=>ie(t)===e),le=e=>t=>typeof t===e,{isArray:Q}=Array,ee=le("undefined");function Rn(e){return e!==null&&!ee(e)&&e.constructor!==null&&!ee(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const st=U("ArrayBuffer");function Bn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&st(e.buffer),t}const Tn=le("string"),M=le("function"),it=le("number"),ce=e=>e!==null&&typeof e=="object",On=e=>e===!0||e===!1,ue=e=>{if(ie(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Fn=U("Date"),xn=U("File"),An=U("Blob"),Nn=U("FileList"),Ln=e=>ce(e)&&M(e.pipe),jn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||M(e.append)&&((t=ie(e))==="formdata"||t==="object"&&M(e.toString)&&e.toString()==="[object FormData]"))},Hn=U("URLSearchParams"),[$n,Mn,In,Un]=["ReadableStream","Request","Response","Headers"].map(U),Vn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Q(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const W=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ct=e=>!ee(e)&&e!==W;function Re(){const{caseless:e}=ct(this)&&this||{},t={},n=(r,a)=>{const i=e&<(t,a)||a;ue(t[i])&&ue(r)?t[i]=Re(t[i],r):ue(r)?t[i]=Re({},r):Q(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(te(t,(a,i)=>{n&&M(a)?e[i]=at(a,n):e[i]=a},{allOwnKeys:r}),e),qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_n=(e,t,n,r)=>{let a,i,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Wn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Jn=e=>{if(!e)return null;if(Q(e))return e;let t=e.length;if(!it(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Gn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Xn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=U("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),ut=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yn=U("RegExp"),ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};te(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},vn=e=>{ft(e,(t,n)=>{if(M(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(M(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},er=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Q(e)?r(e):r(String(e).split(t)),n},tr=()=>{},nr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Be="abcdefghijklmnopqrstuvwxyz",dt="0123456789",ht={DIGIT:dt,ALPHA:Be,ALPHA_DIGIT:Be+Be.toUpperCase()+dt},rr=(e=16,t=ht.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function or(e){return!!(e&&M(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ar=e=>{const t=new Array(10),n=(r,a)=>{if(ce(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=Q(r)?[]:{};return te(r,(l,c)=>{const d=n(l,a+1);!ee(d)&&(i[c]=d)}),t[a]=void 0,i}}return r};return n(e,0)},sr=U("AsyncFunction"),ir=e=>e&&(ce(e)||M(e))&&M(e.then)&&M(e.catch),pt=((e,t)=>e?setImmediate:t?((n,r)=>(W.addEventListener("message",({source:a,data:i})=>{a===W&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),W.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",M(W.postMessage)),lr=typeof queueMicrotask<"u"?queueMicrotask.bind(W):typeof process<"u"&&process.nextTick||pt,u={isArray:Q,isArrayBuffer:st,isBuffer:Rn,isFormData:jn,isArrayBufferView:Bn,isString:Tn,isNumber:it,isBoolean:On,isObject:ce,isPlainObject:ue,isReadableStream:$n,isRequest:Mn,isResponse:In,isHeaders:Un,isUndefined:ee,isDate:Fn,isFile:xn,isBlob:An,isRegExp:Yn,isFunction:M,isStream:Ln,isURLSearchParams:Hn,isTypedArray:Kn,isFileList:Nn,forEach:te,merge:Re,extend:zn,trim:Vn,stripBOM:qn,inherits:Dn,toFlatObject:_n,kindOf:ie,kindOfTest:U,endsWith:Wn,toArray:Jn,forEachEntry:Gn,matchAll:Xn,isHTMLForm:Qn,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ft,freezeMethods:vn,toObjectSet:er,toCamelCase:Zn,noop:tr,toFiniteNumber:nr,findKey:lt,global:W,isContextDefined:ct,ALPHABET:ht,generateString:rr,isSpecCompliantForm:or,toJSONObject:ar,isAsyncFn:sr,isThenable:ir,setImmediate:pt,asap:lr};function B(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}u.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.status}}});const mt=B.prototype,bt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bt[e]={value:e}}),Object.defineProperties(B,bt),Object.defineProperty(mt,"isAxiosError",{value:!0}),B.from=(e,t,n,r,a,i)=>{const l=Object.create(mt);return u.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),B.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const cr=null;function Te(e){return u.isPlainObject(e)||u.isArray(e)}function gt(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function yt(e,t,n){return e?e.concat(t).map(function(a,i){return a=gt(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function ur(e){return u.isArray(e)&&!e.some(Te)}const fr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function fe(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,m){return!u.isUndefined(m[P])});const r=n.metaTokens,a=n.visitor||h,i=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(a))throw new TypeError("visitor must be a function");function f(k){if(k===null)return"";if(u.isDate(k))return k.toISOString();if(!d&&u.isBlob(k))throw new B("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(k)||u.isTypedArray(k)?d&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function h(k,P,m){let g=k;if(k&&!m&&typeof k=="object"){if(u.endsWith(P,"{}"))P=r?P:P.slice(0,-2),k=JSON.stringify(k);else if(u.isArray(k)&&ur(k)||(u.isFileList(k)||u.endsWith(P,"[]"))&&(g=u.toArray(k)))return P=gt(P),g.forEach(function(E,O){!(u.isUndefined(E)||E===null)&&t.append(l===!0?yt([P],O,i):l===null?P:P+"[]",f(E))}),!1}return Te(k)?!0:(t.append(yt(m,P,i),f(k)),!1)}const y=[],T=Object.assign(fr,{defaultVisitor:h,convertValue:f,isVisitable:Te});function R(k,P){if(!u.isUndefined(k)){if(y.indexOf(k)!==-1)throw Error("Circular reference detected in "+P.join("."));y.push(k),u.forEach(k,function(g,w){(!(u.isUndefined(g)||g===null)&&a.call(t,g,u.isString(w)?w.trim():w,P,T))===!0&&R(g,P?P.concat(w):[w])}),y.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return R(e),t}function wt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oe(e,t){this._pairs=[],e&&fe(e,this,t)}const kt=Oe.prototype;kt.append=function(t,n){this._pairs.push([t,n])},kt.toString=function(t){const n=t?function(r){return t.call(this,r,wt)}:wt;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function dr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ct(e,t,n){if(!t)return e;const r=n&&n.encode||dr,a=n&&n.serialize;let i;if(a?i=a(t,n):i=u.isURLSearchParams(t)?t.toString():new Oe(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Et{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const St={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Oe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Fe=typeof window<"u"&&typeof document<"u",xe=typeof navigator=="object"&&navigator||void 0,pr=Fe&&(!xe||["ReactNative","NativeScript","NS"].indexOf(xe.product)<0),mr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",br=Fe&&window.location.href||"http://localhost",j={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserEnv:pr,hasStandardBrowserWebWorkerEnv:mr,navigator:xe,origin:br},Symbol.toStringTag,{value:"Module"})),...hr};function gr(e,t){return fe(e,new j.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return j.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wr(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return l=!l&&u.isArray(a)?a.length:l,d?(u.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!u.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&u.isArray(a[l])&&(a[l]=wr(a[l])),!c)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,a)=>{t(yr(r),a,n,0)}),n}return null}function kr(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ne={transitional:St,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return a?JSON.stringify(Pt(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gr(t,this.formSerializer).toString();if((c=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return fe(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),kr(t)):t}],transformResponse:[function(t){const n=this.transitional||ne.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?B.from(c,B.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{ne.headers[e]={}});const Cr=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Er=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&Cr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Rt=Symbol("internals");function re(e){return e&&String(e).trim().toLowerCase()}function de(e){return e===!1||e==null?e:u.isArray(e)?e.map(de):String(e)}function Sr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Pr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,n,r,a){if(u.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!u.isString(t)){if(u.isString(r))return t.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(t)}}function Rr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Br(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,l){return this[r].call(this,t,a,i,l)},configurable:!0})})}class H{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(c,d,f){const h=re(d);if(!h)throw new Error("header name must be a non-empty string");const y=u.findKey(a,h);(!y||a[y]===void 0||f===!0||f===void 0&&a[y]!==!1)&&(a[y||d]=de(c))}const l=(c,d)=>u.forEach(c,(f,h)=>i(f,h,d));if(u.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(u.isString(t)&&(t=t.trim())&&!Pr(t))l(Er(t),n);else if(u.isHeaders(t))for(const[c,d]of t.entries())i(d,c,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=re(t),t){const r=u.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Sr(a);if(u.isFunction(n))return n.call(this,a,r);if(u.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=re(t),t){const r=u.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ae(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=re(l),l){const c=u.findKey(r,l);c&&(!n||Ae(r,r[c],c,n))&&(delete r[c],a=!0)}}return u.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Ae(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return u.forEach(this,(a,i)=>{const l=u.findKey(r,i);if(l){n[l]=de(a),delete n[i];return}const c=t?Rr(i):String(i).trim();c!==i&&delete n[i],n[c]=de(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&u.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[Rt]=this[Rt]={accessors:{}}).accessors,a=this.prototype;function i(l){const c=re(l);r[c]||(Br(a,l),r[c]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}}H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(H.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),u.freezeMethods(H);function Ne(e,t){const n=this||ne,r=t||n,a=H.from(r.headers);let i=r.data;return u.forEach(e,function(c){i=c.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Bt(e){return!!(e&&e.__CANCEL__)}function Z(e,t,n){B.call(this,e??"canceled",B.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(Z,B,{__CANCEL__:!0});function Tt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Or(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),h=r[i];l||(l=f),n[a]=d,r[a]=f;let y=i,T=0;for(;y!==a;)T+=n[y++],y=y%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),f-l{n=h,a=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const h=Date.now(),y=h-n;y>=r?l(f,h):(a=f,i||(i=setTimeout(()=>{i=null,l(a)},r-y)))},()=>a&&l(a)]}const he=(e,t,n=3)=>{let r=0;const a=Or(50,250);return Fr(i=>{const l=i.loaded,c=i.lengthComputable?i.total:void 0,d=l-r,f=a(d),h=l<=c;r=l;const y={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&h?(c-l)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(y)},n)},Ot=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ft=e=>(...t)=>u.asap(()=>e(...t)),xr=j.hasStandardBrowserEnv?function(){const t=j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent),n=document.createElement("a");let r;function a(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(l){const c=u.isString(l)?a(l):l;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Ar=j.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const l=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),u.isString(r)&&l.push("path="+r),u.isString(a)&&l.push("domain="+a),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xt(e,t){return e&&!Nr(t)?Lr(e,t):t}const At=e=>e instanceof H?{...e}:e;function J(e,t){t=t||{};const n={};function r(f,h,y){return u.isPlainObject(f)&&u.isPlainObject(h)?u.merge.call({caseless:y},f,h):u.isPlainObject(h)?u.merge({},h):u.isArray(h)?h.slice():h}function a(f,h,y){if(u.isUndefined(h)){if(!u.isUndefined(f))return r(void 0,f,y)}else return r(f,h,y)}function i(f,h){if(!u.isUndefined(h))return r(void 0,h)}function l(f,h){if(u.isUndefined(h)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function c(f,h,y){if(y in t)return r(f,h);if(y in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,h)=>a(At(f),At(h),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(h){const y=d[h]||a,T=y(e[h],t[h],h);u.isUndefined(T)&&y!==c||(n[h]=T)}),n}const Nt=e=>{const t=J({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:c}=t;t.headers=l=H.from(l),t.url=Ct(xt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(u.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...h]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...h].join("; "))}}if(j.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(t)),r||r!==!1&&xr(t.url))){const f=a&&i&&Ar.read(i);f&&l.set(a,f)}return t},jr=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=Nt(e);let i=a.data;const l=H.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,h,y,T,R,k;function P(){R&&R(),k&&k(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function g(){if(!m)return;const E=H.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:e,request:m};Tt(function(I){n(I),P()},function(I){r(I),P()},F),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(r(new B("Request aborted",B.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new B("Network Error",B.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let O=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const F=a.transitional||St;a.timeoutErrorMessage&&(O=a.timeoutErrorMessage),r(new B(O,F.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,m)),m=null},i===void 0&&l.setContentType(null),"setRequestHeader"in m&&u.forEach(l.toJSON(),function(O,F){m.setRequestHeader(F,O)}),u.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),c&&c!=="json"&&(m.responseType=a.responseType),f&&([T,k]=he(f,!0),m.addEventListener("progress",T)),d&&m.upload&&([y,R]=he(d),m.upload.addEventListener("progress",y),m.upload.addEventListener("loadend",R)),(a.cancelToken||a.signal)&&(h=E=>{m&&(r(!E||E.type?new Z(null,e,m):E),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const w=Tr(a.url);if(w&&j.protocols.indexOf(w)===-1){r(new B("Unsupported protocol "+w+":",B.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Hr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(f){if(!a){a=!0,c();const h=f instanceof Error?f:this.reason;r.abort(h instanceof B?h:new Z(h instanceof Error?h.message:h))}};let l=t&&setTimeout(()=>{l=null,i(new B(`timeout ${t} of ms exceeded`,B.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>u.asap(c),d}},$r=function*(e,t){let n=e.byteLength;if(!t||n{const a=Mr(e,t);let i=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:h}=await a.next();if(f){c(),d.close();return}let y=h.byteLength;if(n){let T=i+=y;n(T)}d.enqueue(new Uint8Array(h))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},pe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jt=pe&&typeof ReadableStream=="function",Ur=pe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ht=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vr=jt&&Ht(()=>{let e=!1;const t=new Request(j.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$t=64*1024,Le=jt&&Ht(()=>u.isReadableStream(new Response("").body)),me={stream:Le&&(e=>e.body)};pe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!me[t]&&(me[t]=u.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new B(`Response type '${t}' is not supported`,B.ERR_NOT_SUPPORT,r)})})})(new Response);const zr=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(j.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(u.isArrayBufferView(e)||u.isArrayBuffer(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await Ur(e)).byteLength},qr=async(e,t)=>{const n=u.toFiniteNumber(e.getContentLength());return n??zr(t)},je={http:cr,xhr:jr,fetch:pe&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:h,withCredentials:y="same-origin",fetchOptions:T}=Nt(e);f=f?(f+"").toLowerCase():"text";let R=Hr([a,i&&i.toAbortSignal()],l),k;const P=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let m;try{if(d&&Vr&&n!=="get"&&n!=="head"&&(m=await qr(h,r))!==0){let F=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(u.isFormData(r)&&($=F.headers.get("content-type"))&&h.setContentType($),F.body){const[I,D]=Ot(m,he(Ft(d)));r=Lt(F.body,$t,I,D)}}u.isString(y)||(y=y?"include":"omit");const g="credentials"in Request.prototype;k=new Request(t,{...T,signal:R,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:g?y:void 0});let w=await fetch(k);const E=Le&&(f==="stream"||f==="response");if(Le&&(c||E&&P)){const F={};["status","statusText","headers"].forEach(v=>{F[v]=w[v]});const $=u.toFiniteNumber(w.headers.get("content-length")),[I,D]=c&&Ot($,he(Ft(c),!0))||[];w=new Response(Lt(w.body,$t,I,()=>{D&&D(),P&&P()}),F)}f=f||"text";let O=await me[u.findKey(me,f)||"text"](w,e);return!E&&P&&P(),await new Promise((F,$)=>{Tt(F,$,{data:O,headers:H.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:k})})}catch(g){throw P&&P(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new B("Network Error",B.ERR_NETWORK,e,k),{cause:g.cause||g}):B.from(g,g&&g.code,e,k)}})};u.forEach(je,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mt=e=>`- ${e}`,Dr=e=>u.isFunction(e)||e===null||e===!1,It={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since :
`+i.map(Mt).join(`
`):" "+Mt(i[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:je};function He(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Z(null,e)}function Ut(e){return He(e),e.headers=H.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),It.getAdapter(e.adapter||ne.adapter)(e).then(function(r){return He(e),r.data=Ne.call(e,e.transformResponse,r),r.headers=H.from(r.headers),r},function(r){return Bt(r)||(He(e),r&&r.response&&(r.response.data=Ne.call(e,e.transformResponse,r.response),r.response.headers=H.from(r.response.headers))),Promise.reject(r)})}const Vt="1.7.7",$e={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$e[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const zt={};$e.transitional=function(t,n,r){function a(i,l){return"[Axios v"+Vt+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,c)=>{if(t===!1)throw new B(a(l," has been removed"+(n?" in "+n:"")),B.ERR_DEPRECATED);return n&&!zt[l]&&(zt[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,c):!0}};function _r(e,t,n){if(typeof e!="object")throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=t[i];if(l){const c=e[i],d=c===void 0||l(c,i,e);if(d!==!0)throw new B("option "+i+" must be "+d,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B("Unknown option "+i,B.ERR_BAD_OPTION)}}const Me={assertOptions:_r,validators:$e},q=Me.validators;class K{constructor(t){this.defaults=t,this.interceptors={request:new Et,response:new Et}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Me.assertOptions(r,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean)},!1),a!=null&&(u.isFunction(a)?n.paramsSerializer={serialize:a}:Me.assertOptions(a,{encode:q.function,serialize:q.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&u.merge(i.common,i[n.method]);i&&u.forEach(["delete","get","head","post","put","patch","common"],k=>{delete i[k]}),n.headers=H.concat(l,i);const c=[];let d=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(n)===!1||(d=d&&P.synchronous,c.unshift(P.fulfilled,P.rejected))});const f=[];this.interceptors.response.forEach(function(P){f.push(P.fulfilled,P.rejected)});let h,y=0,T;if(!d){const k=[Ut.bind(this),void 0];for(k.unshift.apply(k,c),k.push.apply(k,f),T=k.length,h=Promise.resolve(n);y{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(c=>{r.subscribe(c),i=c}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,c){r.reason||(r.reason=new Z(i,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ie(function(a){t=a}),cancel:t}}}function Wr(e){return function(n){return e.apply(null,n)}}function Jr(e){return u.isObject(e)&&e.isAxiosError===!0}const Ue={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ue).forEach(([e,t])=>{Ue[t]=e});function qt(e){const t=new K(e),n=at(K.prototype.request,t);return u.extend(n,K.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return qt(J(e,a))},n}const L=qt(ne);L.Axios=K,L.CanceledError=Z,L.CancelToken=Ie,L.isCancel=Bt,L.VERSION=Vt,L.toFormData=fe,L.AxiosError=B,L.Cancel=L.CanceledError,L.all=function(t){return Promise.all(t)},L.spread=Wr,L.isAxiosError=Jr,L.mergeConfig=J,L.AxiosHeaders=H,L.formToJSON=e=>Pt(u.isHTMLForm(e)?new FormData(e):e),L.getAdapter=It.getAdapter,L.HttpStatusCode=Ue,L.default=L;const Kr={key:0,class:"vuetable-th-component-checkbox"},Gr=["checked"],Xr={key:1,class:"vuetable-td-component-checkbox"},Qr=["checked"],Ve=o.defineComponent({name:"vuetable-field-checkbox",__name:"VuetableFieldCheckbox",props:{rowData:{},rowIndex:{},rowField:{default:null},isHeader:{type:Boolean,default:!1},title:{}},setup(e){const t=b.inject("vuetable"),n=b.ref(null);function r(c,d){var f;t.onCheckboxToggled(d.target.checked,(f=e.rowField)==null?void 0:f.name,c)}function a(c){t.onCheckboxToggledAll(c.target.checked)}function i(c){return t.isSelectedRow(c[t.trackBy])}function l(){var h;if(!t.tableData)return;const c=t.trackBy,d=(h=n.value)==null?void 0:h.$el.querySelector("input[type=checkbox]"),f=t.tableData.filter(y=>t.isSelectedRow(y[c]));return f.length<=0?(d.indeterminate=!1,!1):f.lengthc.isHeader?(o.openBlock(),o.createElementBlock("th",Kr,[o.createElementVNode("input",{checked:l(),type:"checkbox",onChange:d[0]||(d[0]=f=>a(f))},null,40,Gr)])):(o.openBlock(),o.createElementBlock("td",Xr,[o.createElementVNode("input",{ref_key:"checkbox",ref:n,checked:i(c.rowData),type:"checkbox",onChange:d[1]||(d[1]=f=>r(c.rowData,f))},null,40,Qr)]))}}),Zr=["innerHTML"],Yr=["innerHTML"],ze=o.defineComponent({name:"vuetable-field-handle",__name:"VuetableFieldHandle",props:{isHeader:{type:Boolean,default:!1},title:{default:""}},setup(e){const t=b.inject("vuetable");function n(r,a=""){return typeof t.css.renderIcon>"u"?``:t.css.renderIcon(r,a)}return(r,a)=>r.isHeader?(o.openBlock(),o.createElementBlock("th",{key:0,class:"vuetable-th-component-handle",innerHTML:r.title},null,8,Zr)):(o.openBlock(),o.createElementBlock("td",{key:1,class:"vuetable-td-component-handle",innerHTML:n(["handle-icon",r.css.handleIcon])},null,8,Yr))}}),vr=["innerHTML"],eo=["innerHTML"],qe=o.defineComponent({name:"vuetable-field-sequence",__name:"VuetableFieldSequence",props:{rowIndex:{default:0},isHeader:{type:Boolean,default:!1},title:{default:""}},setup(e){const t=b.inject("vuetable");function n(){return t.tablePagination?t.tablePagination.from+e.rowIndex:1+e.rowIndex}return(r,a)=>r.isHeader?(o.openBlock(),o.createElementBlock("th",{key:0,class:"vuetable-th-component-sequence",innerHTML:r.title},null,8,vr)):(o.openBlock(),o.createElementBlock("td",{key:1,class:"vuetable-td-component-sequence",innerHTML:n()},null,8,eo))}}),De=((e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n})(o.defineComponent({name:"vuetable-th-gutter",__name:"VuetableColGutter",setup(e){const t=b.inject("vuetable");return(n,r)=>(o.openBlock(),o.createElementBlock("th",{style:o.normalizeStyle({width:o.unref(t).scrollBarWidth}),class:"vuetable-th-gutter"},null,4))}}),[["__scopeId","data-v-b704a04a"]]),to=["innerHTML","onClick"],no=["id","innerHTML","onClick"],_e=o.defineComponent({name:"vuetable-row-header",components:{"vuetable-field-checkbox":Ve,"vuetable-field-handle":ze,"vuetable-field-sequence":qe},__name:"VuetableRowHeader",setup(e,{expose:t}){const n=b.inject("vuetable");t({stripPrefix:r,isInCurrentSortGroup:d,hasSortableIcon:f,currentSortOrderPosition:h,fieldIsInSortOrderPosition:y});function r(g){return g.replace(n.fieldPrefix,"")}function a(g,w){return[`${g}-${i(w.name)}`,w.titleClass||"",l(w),{sortable:n.isSortable(w)}]}function i(g){return typeof g=="string"&&g.replace(/([A-Z])/g,w=>"_"+w.toLowerCase()).replace(" ","_").replace(".","_")}function l(g){const w=h(g);return w?n.sortOrder[w].direction=="asc"?n.css.ascendingClass:n.css.descendingClass:""}function c(g){const w=h(g);return w?n.css.sortableIcon:n.sortOrder[w].direction=="asc"?n.css.ascendingIcon:n.css.descendingIcon}function d(g){return!!h(g)}function f(g){return n.isSortable(g)&&n.css.sortableIcon!=""}function h(g){if(!n.isSortable(g))return 0;for(let w=0;w0&&d(g)||f(g)){const E=`opacity:${k(g)};position:relative;float:right`,O=n.showSortIcons?P(["sort-icon",c(g)],`style="${E}"`):"";return w+" "+O}return w}function R(g){return typeof g.title=="function"?g.title():typeof g.title>"u"?g.name.toString().replace("."," "):g.title}function k(g){let O=.3;const F=n.sortOrder.length,$=h(g);return 1-F*O<.3&&(O=(1-.3)/(F-1)),1-$*O}function P(g,w=""){return typeof n.css.renderIcon>"u"?``:n.css.renderIcon(g,w)}function m(g,w){n.orderBy(g,w)}return(g,w)=>(o.openBlock(),o.createElementBlock("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(n).tableFields,(E,O)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[E.visible?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.unref(n).isFieldComponent(E.name)?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(E.name),{key:O,"is-header":"","row-field":E,title:T(E),class:o.normalizeClass(a("vuetable-th-component",E)),style:o.normalizeStyle({width:E.width}),"onVuetable:headerEvent":o.unref(n).onHeaderEvent,onClick:F=>m(E,F)},null,40,["row-field","title","class","style","onVuetable:headerEvent","onClick"])):o.unref(n).isFieldSlot(E.name)?(o.openBlock(),o.createElementBlock("th",{key:O,class:o.normalizeClass(a("vuetable-th-slot",E)),style:o.normalizeStyle({width:E.width}),innerHTML:T(E),onClick:F=>m(E,F)},null,14,to)):(o.openBlock(),o.createElementBlock("th",{key:O,id:"_"+E.name,class:o.normalizeClass(a("vuetable-th",E)),style:o.normalizeStyle({width:E.width}),innerHTML:T(E),onClick:F=>m(E,F)},null,14,no))],64)):o.createCommentVNode("",!0)],64))),256)),o.unref(n).scrollVisible?(o.openBlock(),o.createBlock(De,{key:0})):o.createCommentVNode("",!0)]))}}),We=o.defineComponent({name:"vuetable-col-group",__name:"VuetableColGroup",props:{isHeader:{type:Boolean,default:!1}},setup(e){const t=b.inject("vuetable");function n(r,a){let i=typeof r.name=="object"&&r.name!==null?r.name.name:r.name;return i=i.replace(t.fieldPrefix,""),[`vuetable-col-${i}`,r.titleClass,`${i}-${a}`]}return(r,a)=>(o.openBlock(),o.createElementBlock("colgroup",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).tableFields,(i,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.visible?(o.openBlock(),o.createElementBlock("col",{key:l,style:o.normalizeStyle({width:i.width}),class:o.normalizeClass(n(i,l))},null,6)):o.createCommentVNode("",!0)],64))),256)),r.isHeader&&o.unref(t).scrollVisible?(o.openBlock(),o.createElementBlock("col",{key:0,style:o.normalizeStyle({width:o.unref(t).scrollBarWidth}),class:"vuetable-col-gutter"},null,4)):o.createCommentVNode("",!0)]))}}),Y={table:{tableWrapper:"",tableHeaderClass:"fixed",tableBodyClass:"fixed",tableClass:"ui blue selectable unstackable celled table",loadingClass:"loading",ascendingIcon:"blue chevron up icon",descendingIcon:"blue chevron down icon",ascendingClass:"sorted-asc",descendingClass:"sorted-desc",sortableIcon:"grey sort icon",handleIcon:"grey sidebar icon"},pagination:{wrapperClass:"ui right floated pagination menu",activeClass:"active large",disabledClass:"disabled",pageClass:"item",linkClass:"icon item",paginationClass:"ui bottom attached segment grid",paginationInfoClass:"left floated left aligned six wide column",dropdownClass:"ui search dropdown",icons:{first:"angle double left icon",prev:"left chevron icon",next:"right chevron icon",last:"angle double right icon"}},paginationInfo:{infoClass:"left floated left aligned six wide column"}},ro={key:0,class:"vuetable-head-wrapper"},oo={key:0},ao={class:"vuetable-body"},so=["item-index","onClick","onDblclick","onMouseover"],io=["innerHTML","onClick","onDblclick","onContextmenu"],lo=["onClick"],co=["colspan"],uo={key:0},fo=["colspan","innerHTML"],be=o.defineComponent({name:"Vuetable",components:{VuetableRowHeader:_e,VuetableColGroup:We},__name:"Vuetable",props:{fields:{},loadOnStart:{type:Boolean,default:!0},apiUrl:{default:""},httpMethod:{default:"get"},reactiveApiUrl:{type:Boolean,default:!0},apiMode:{type:Boolean,default:!0},data:{default:null},dataManager:{type:[Function,null],default:null},dataPath:{default:"data"},paginationPath:{default:"links.pagination"},queryParams:{type:[Object,Function],default:()=>({sort:"sort",page:"page",perPage:"per_page"})},appendParams:{default:()=>({})},httpOptions:{default:()=>({})},httpFetch:{type:[Function,null],default:null},perPage:{default:10},initialPage:{default:1},firstPage:{default:1},sortOrder:{default:()=>[]},multiSort:{type:Boolean,default:!1},tableHeight:{default:null},multiSortKey:{default:"alt"},rowClass:{type:[String,Function],default:""},detailRowComponent:{default:""},detailRowTransition:{default:""},detailRowClass:{type:[String,Function],default:"vuetable-detail-row"},detailRowOptions:{default:()=>({})},trackBy:{default:"id"},css:{default:()=>({})},minRows:{default:0},silent:{type:Boolean,default:!1},noDataTemplate:{default:"No Data Available"},showSortIcons:{type:Boolean,default:!0},headerRows:{default:()=>["VuetableRowHeader"]},transform:{type:[Function,null],default:null},sortParams:{type:[Function,null],default:null},fieldPrefix:{default:"vuetable-field-"}},emits:["vuetable:load-error","vuetable:load-success","vuetable:loaded","vuetable:loading","vuetable:scrollbar-visible","vuetable:pagination-data","vuetable:row-clicked","vuetable:row-dblclicked","vuetable:detail-row-clicked","vuetable:cell-clicked","vuetable:cell-dblclicked","vuetable:cell-rightclicked","vuetable:row-mouseover","vuetable:field-event","vuetable:header-event","vuetable:checkbox-toggled","vuetable:checkbox-toggled-all","vuetable:data-reset","vuetable:initialized"],setup(e,{expose:t,emit:n}){const r=n,a=o.useSlots(),i=b.getCurrentInstance(),l=b.ref(),c=b.ref([]),d=b.ref(null),f=b.ref(null),h=b.ref(e.initialPage),y=b.ref([]),T=b.ref([]),R=b.ref(0),k=b.ref("17px"),P=b.ref(!1),m=b.ref(e.sortOrder),g=b.ref(e.httpOptions),w=b.ref(),E=b.reactive({...Y.table,...e.css}),O=b.computed(()=>{var s,p;return(s=d.value)!=null&&s.length?((p=d.value)==null?void 0:p.length)>0:!1}),F=b.computed(()=>O.value&&e.detailRowComponent!==""),$=b.computed(()=>d.value&&typeof d.value[0][e.trackBy]<"u"),I=b.computed(()=>c.value.filter(s=>s.visible).length),D=b.computed(()=>{var s;return((s=d.value)==null?void 0:s.length)||0}),v=b.computed(()=>D.value===0&&e.noDataTemplate.length>0),en=b.computed(()=>{var s;return d.value===null||((s=d.value)==null?void 0:s.length)===0}),Ge=b.computed(()=>en.value?!0:d.value.lengthen.value?e.minRows:d.value.length>=e.minRows?0:e.minRows-d.value.length),Qe=b.computed(()=>e.apiMode),Lo=b.computed(()=>!e.apiMode),ae=b.computed(()=>e.tableHeight!=null);nn(),ea(),b.nextTick(()=>{r("vuetable:initialized",c.value)}),b.onMounted(()=>{if(e.loadOnStart&&z(),ae){k.value=jo()+"px";let s=l.value.getElementsByClassName("vuetable-body-wrapper")[0];s!=null&&s.addEventListener("scroll",tn)}}),b.onUnmounted(()=>{let s=l.value.getElementsByClassName("vuetable-body-wrapper")[0];s!=null&&s.removeEventListener("scroll",tn)}),t({apiUrl:e.apiUrl,isApiMode:Qe,tableFields:c,tableData:d,tablePagination:f,fieldPrefix:e.fieldPrefix,countVisibleFields:I,dataIsAvailable:O,countTableData:D,displayEmptyDataRow:v,useDetailRow:F,hasRowIdentifier:$,lessThanMinRows:Ge,blankRows:Xe,scrollVisible:P,scrollBarWidth:k,trackBy:e.trackBy,showSortIcons:e.showSortIcons,instanceFetch:w,isFieldSlot:Ye,onHeaderEvent:Se,setData:G,getFieldTitle:on,orderBy:cn,camelCase:sn,clearSortOrder:fn,toggleDetailRow:bn,clearSelectedValues:mn,showField:gn,hideField:yn,toggleField:wn,onCheckboxToggled:kn,onCheckboxToggledAll:Cn,checkIfRowIdentifierExists:ye,changePage:En,resetData:Sn,refresh:ot,isFieldComponent:ke,makeTitle:we,getAllQueryParams:tt,isSortable:Ce,getDefaultSortParam:nt,getObjectValue:_,isSelectedRow:rt,loadData:z}),b.provide("vuetable",{isApiMode:Qe,fieldPrefix:e.fieldPrefix,tableFields:b.unref(c),tableData:b.unref(d),tablePagination:b.unref(f),countVisibleFields:b.unref(I),dataIsAvailable:b.unref(O),countTableData:b.unref(D),displayEmptyDataRow:b.unref(v),useDetailRow:b.unref(F),hasRowIdentifier:b.unref($),lessThanMinRows:b.unref(Ge),blankRows:b.unref(Xe),scrollVisible:b.unref(P),scrollBarWidth:b.unref(k),sortOrder:e.sortOrder,trackBy:e.trackBy,perPage:e.perPage,showSortIcons:e.showSortIcons,css:b.toRefs(E),isFieldSlot:Ye,onHeaderEvent:Se,setData:G,getFieldTitle:on,orderBy:cn,camelCase:sn,clearSortOrder:fn,toggleDetailRow:bn,clearSelectedValues:mn,showField:gn,hideField:yn,toggleField:wn,onCheckboxToggled:kn,onCheckboxToggledAll:Cn,checkIfRowIdentifierExists:ye,changePage:En,resetData:Sn,refresh:ot,isFieldComponent:ke,makeTitle:we,getAllQueryParams:tt,isSortable:Ce,getDefaultSortParam:nt,getObjectValue:_,isSelectedRow:rt});function jo(){const s=document.createElement("div"),p=document.createElement("div");s.style.visibility="hidden",s.style.width="100px",p.style.width="100%",s.appendChild(p),document.body.appendChild(s);const C=s.offsetWidth;s.style.overflow="scroll";const S=p.offsetWidth;return document.body.removeChild(s),C-S}function tn(s){var C;const p=(C=s.currentTarget)==null?void 0:C.scrollLeft;if(p!=R.value){let S=l.value.getElementsByClassName("vuetable-head-wrapper")[0];S!=null&&(S.scrollLeft=p),R.value=p}}function ge(s){e.silent||console.warn(s)}function Ze(s,p){return[s,p.dataClass]}function nn(){if(typeof e.fields>"u"){ge('You need to provide "fields" prop.');return}c.value=[],e.fields.forEach((s,p)=>{c.value.push(Ho(s,p))})}function Ho(s,p){const C={name:"",titleClass:"",dataClass:"",sortField:null,formatter:null,visible:!0,width:null,$_index:p};if(typeof s=="string")return{...C,name:rn(s),title:we(s)};const S=Object.assign({},C,s);return S.name=rn(S.name),S.title===void 0&&(S.title=we(S.name)),S.formatter!==null&&typeof S.formatter!="function"&&(console.error(S.name+" field formatter must be a function"),S.formatter=null),S}function rn(s){return s instanceof Object?s:s.replace("__",e.fieldPrefix)}function G(s){if(!(s===null||typeof s>"u")){if(r("vuetable:loading"),Array.isArray(s)){d.value=s,r("vuetable:loaded");return}d.value=_(s,e.dataPath,null),f.value=_(s,e.paginationPath,null),b.nextTick(()=>{ye(),ve(),r("vuetable:pagination-data",f.value),r("vuetable:loaded")})}}function ye(){if(O.value)return $.value?!0:(ge('Invalid your data! Use "track-by" prop to specify.'),!1)}function we(s){return ke(s)?"":an(s.replace("."," "))}function on(s){return typeof s.title=="function"?s.title():s.title}function $o(s,p){return dn(s)?Ko(s,p):_(p,s.name,"")}function ke(s){return s instanceof Object?!0:s.slice(0,e.fieldPrefix.length)===e.fieldPrefix||s.slice(0,2)==="__"}function Ye(s){return typeof a[s]<"u"}function an(s){return s.replace(/\w+/g,p=>p.charAt(0).toUpperCase()+p.substring(1).toLowerCase())}function sn(s,p="_"){return s.split(p).map(C=>an(C)).join("")}function z(s=Io,p=Uo){if(Lo.value){ta();return}return r("vuetable:loading"),g.value.params=zo(tt()),w.value=Mo(e.apiUrl,g.value),w.value.then(s,p).catch(()=>p())}async function Mo(s,p){if(e.httpFetch)return e.httpFetch(s,p);if(e.httpMethod==="get")return L.get(s,p);{const C=await g.value.params;return delete p.params,delete g.value.params,L.post(s,C,g.value)}}function Io(s){r("vuetable:load-success",s);const p=e.transform?e.transform(s.data):s.data;d.value=_(p,e.dataPath,null),f.value=_(p,e.paginationPath,null),f.value===null&&ge(`vuetable: pagination-path ${e.paginationPath} not found.
It looks like the data returned from the server does not have pagination information
or you may have set it incorrectly.
You can explicitly suppress this warning by setting pagination-path="".`),b.nextTick(()=>{ye(),ve(),r("vuetable:pagination-data",f.value),r("vuetable:loaded")})}function ve(){setTimeout(et,80)}function et(){b.nextTick(()=>{let s=l.value.getElementsByClassName("vuetable-body-wrapper")[0];s!=null&&(P.value=s.scrollHeight>s.clientHeight,r("vuetable:scrollbar-visible",P.value))})}function Uo(s){console.error("load-error",s),r("vuetable:load-error",s),r("vuetable:loaded")}function tt(){let s={};return typeof e.queryParams=="function"?(s=e.queryParams(m.value,h.value,e.perPage),typeof s=="object"?s:{}):(s[e.queryParams.sort]=Vo(),s[e.queryParams.page]=h.value,s[e.queryParams.perPage]=e.perPage,s)}function Vo(){var s;return!m.value||((s=m.value[0])==null?void 0:s.field)==""?"":typeof e.sortParams=="function"?e.sortParams(m.value):nt()}function nt(){return m.value.map(s=>`${s.sortField}|${s.direction}`).join(",")}function zo(s){for(let p in e.appendParams)s[p]=e.appendParams[p];return s}function Ce(s){return s.sortField!==null}function qo(s){if(!Ce(s))return!1;for(let p=0;p"u"?null:C;let S=s;return p.trim()!=""&&p.split(".").forEach(X=>{if(S!==null&&typeof S[X]<"u"&&S[X]!==null)S=S[X];else{S=C;return}}),S}function hn(s){rt(s)||y.value.push(s)}function pn(s){y.value=y.value.filter(p=>p!==s)}function rt(s){return y.value.indexOf(s)>=0}function mn(){y.value=[]}function Go(){h.value>e.firstPage&&(h.value-=1,z())}function Xo(){h.value=e.firstPage&&s<=f.value.last_page&&(h.value=s,z())}function Ee(s){return T.value.indexOf(s)>=0}function Zo(s){Ee(s)||T.value.push(s),et()}function Yo(s){Ee(s)&&(T.value.splice(T.value.indexOf(s),1),ve())}function bn(s){Ee(s)?Yo(s):Zo(s)}function gn(s){s<0||s>c.value.length||(c.value[s].visible=!0)}function yn(s){s<0||s>c.value.length||(c.value[s].visible=!1)}function wn(s){s<0||s>c.value.length||(c.value[s].visible=!c.value[s].visible)}function vo(s=null,p=null,C=null){return s=s===null?0:s,p=p===null?e.perPage:p,C=C===null?h.value:C,{total:s,per_page:e.perPage,current_page:h.value,last_page:Math.ceil(s/e.perPage)||0,next_page_url:"",prev_page_url:"",from:(C-1)*p+1,to:Math.min(C*p,s)}}function ea(){m.value.forEach(s=>{s.sortField=s.sortField||s.field})}function ta(){if(e.data!==null&&Array.isArray(e.data)){G(e.data);return}e.dataManager?na():G(e.data)}function na(){const s=e.dataManager(m.value,vo());oa(s)?s.then(p=>G(p)):G(s)}function ra(s){return typeof s=="object"&&s!==null}function oa(s){return ra(s)&&typeof s.then=="function"}function aa(s,p){return typeof e.rowClass=="function"?e.rowClass(s,p):e.rowClass}function sa(s,p){return typeof e.detailRowClass=="function"?e.detailRowClass(s,p):e.detailRowClass}function ia(s,p,C){return r("vuetable:row-clicked",{data:s,index:p,event:C}),!0}function la(s,p,C){r("vuetable:row-dblclicked",{data:s,index:p,event:C})}function ca(s,p,C){r("vuetable:detail-row-clicked",{data:s,index:p,event:C})}function ua(s,p,C,S){r("vuetable:cell-clicked",{data:s,index:p,field:C,event:S})}function fa(s,p,C,S){r("vuetable:cell-dblclicked",{data:s,index:p,field:C,event:S})}function da(s,p,C,S){r("vuetable:cell-rightclicked",{data:s,index:p,field:C,event:S})}function ha(s,p,C){r("vuetable:row-mouseover",{data:s,index:p,event:C})}function pa(s,p){r("vuetable:field-event",s,p,i==null?void 0:i.proxy)}function Se(s,p){r("vuetable:header-event",s,p,i==null?void 0:i.proxy)}function kn(s,p,C){if(C[e.trackBy]===void 0){ge(`checkbox field: The "${e.trackBy}" field does not exist! Make sure the field you specify in "track-by" prop does exist.`);return}const S=C[e.trackBy];s?hn(S):pn(S),r("vuetable:checkbox-toggled",s,p)}function Cn(s){var p,C;s?(p=d.value)==null||p.forEach(S=>{hn(S[e.trackBy])}):(C=d.value)==null||C.forEach(S=>{pn(S[e.trackBy])}),r("vuetable:checkbox-toggled-all",s)}function En(s){s==="prev"?Go():s==="next"?Xo():Qo(s)}function ma(){return z()}function ot(){return h.value=e.firstPage,z()}function Sn(){d.value=null,f.value=null,r("vuetable:data-reset")}return b.watch(()=>e.multiSort,s=>{!s&&m.value.length>1&&(m.value.splice(1),z())}),b.watch(()=>e.apiUrl,(s,p)=>e.reactiveApiUrl&&s!==p&&ot()),b.watch(()=>e.data,G,{immediate:!0}),b.watch(()=>e.tableHeight,et),b.watch(()=>e.fields,nn,{immediate:!0}),b.watch(()=>e.perPage,ma),b.watch(()=>e.sortOrder,s=>{m.value=s},{immediate:!0}),b.watch(()=>e.httpOptions,s=>{g.value=s},{immediate:!0}),(s,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(E).tableWrapper)},[o.unref(ae)?(o.openBlock(),o.createElementBlock("div",ro,[o.createElementVNode("table",{class:o.normalizeClass(["vuetable",o.unref(E).tableClass,o.unref(E).tableHeaderClass])},[o.createVNode(We,{"is-header":""}),o.createElementVNode("thead",null,[o.renderSlot(s.$slots,"tableHeader",{fields:o.unref(c)},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.headerRows,(C,S)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(C),{key:S,index:S,"onVuetable:headerEvent":Se},null,40,["index"]))),128))])])],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"vuetable",ref:l,class:o.normalizeClass([{"fixed-header":o.unref(ae)},"vuetable-body-wrapper"]),style:o.normalizeStyle({height:s.tableHeight})},[o.createElementVNode("table",{class:o.normalizeClass(["vuetable",o.unref(ae)?"fixed-header":"",o.unref(E).tableClass,o.unref(E).tableBodyClass])},[o.createVNode(We),o.unref(ae)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("thead",oo,[o.renderSlot(s.$slots,"tableHeader",{fields:o.unref(c)},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.headerRows,(C,S)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(C),{key:S,index:S,"onVuetable:headerEvent":Se},null,40,["index"]))),128))])])),o.createElementVNode("tfoot",null,[o.renderSlot(s.$slots,"tableFooter",{fields:o.unref(c)})]),o.createElementVNode("tbody",ao,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(d),(C,S)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:S},[o.createElementVNode("tr",{"item-index":S,class:o.normalizeClass(aa(C,S)),onClick:x=>ia(C,S,x),onDblclick:x=>la(C,S,x),onMouseover:x=>ha(C,S,x)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(x,X)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[x.visible?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[ke(x.name)?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(x.name),{key:X,"row-data":C,"row-index":S,"row-field":x,class:o.normalizeClass(Ze("vuetable-component",x)),style:o.normalizeStyle({width:x.width}),"onVuetable:fieldEvent":pa},null,40,["row-data","row-index","row-field","class","style"])):Ye(x.name)?(o.openBlock(),o.createElementBlock("td",{key:X,class:o.normalizeClass(Ze("vuetable-slot",x)),style:o.normalizeStyle({width:x.width})},[o.renderSlot(s.$slots,x.name,{rowData:C,rowIndex:S,rowField:x})],6)):(o.openBlock(),o.createElementBlock("td",{key:X,class:o.normalizeClass(Ze("vuetable-td-"+x.name,x)),style:o.normalizeStyle({width:x.width}),innerHTML:$o(x,C),onClick:se=>ua(C,S,x,se),onDblclick:se=>fa(C,S,x,se),onContextmenu:se=>da(C,S,x,se)},null,46,io))],64)):o.createCommentVNode("",!0)],64))),256))],42,so),o.unref(F)?(o.openBlock(),o.createBlock(o.Transition,{key:S,name:s.detailRowTransition},{default:o.withCtx(()=>[Ee(C[s.trackBy])?(o.openBlock(),o.createElementBlock("tr",{key:0,class:o.normalizeClass(sa(C,S)),onClick:x=>ca(C,S,x)},[o.createElementVNode("td",{colspan:o.unref(I)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.detailRowComponent),{"row-data":C,"row-index":S,options:s.detailRowOptions},null,8,["row-data","row-index","options"]))],8,co)],10,lo)):o.createCommentVNode("",!0)]),_:2},1032,["name"])):o.createCommentVNode("",!0)],64))),128)),o.unref(v)?(o.openBlock(),o.createElementBlock("tr",uo,[o.createElementVNode("td",{colspan:o.unref(I),class:"vuetable-empty-result",innerHTML:s.noDataTemplate},null,8,fo)])):o.createCommentVNode("",!0),o.unref(Ge)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(o.unref(Xe),C=>(o.openBlock(),o.createElementBlock("tr",{key:C,class:"blank-row"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(S,x)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[S.visible?(o.openBlock(),o.createElementBlock("td",{key:x}," ")):o.createCommentVNode("",!0)],64))),256))]))),128)):o.createCommentVNode("",!0)])],2)],6)],2))}});function V(e){return typeof e=="function"?e():b.unref(e)}function Dt(e,t){const n=b.ref(null),r=b.computed(()=>{var R;return((R=n.value)==null?void 0:R.last_page)??0}),a=b.computed(()=>{var R;return((R=n.value)==null?void 0:R.current_page)===V(t)}),i=b.computed(()=>{var R;return((R=n.value)==null?void 0:R.current_page)===r.value}),l=b.computed(()=>V(e)*2+1),c=b.computed(()=>n.value?n.value.last_page-V(t)+1:0),d=b.computed(()=>c.value!n.value||n.value.current_page<=V(e)?1:n.value.current_page>=c.value-V(e)?c.value-V(e)*2:n.value.current_page-V(e));function h(R){n.value=R}function y(){n.value=null}function T(R){var k;return R===((k=n.value)==null?void 0:k.current_page)}return{tablePagination:n,lastPage:r,isOnFirstPage:a,isOnLastPage:i,notEnoughPages:d,windowSize:l,windowStart:f,totalPage:c,setPaginationData:h,resetData:y,isCurrentPage:T}}const ho={key:1},po={key:1},mo=["innerHTML","onClick"],bo=["innerHTML","onClick"],go={key:1},yo={key:1},_t=o.defineComponent({__name:"VuetablePagination",props:{css:{default:()=>({})},onEachSide:{default:2},firstPage:{default:1}},emits:["vuetable-pagination:change-page"],setup(e,{expose:t,emit:n}){const r=n,a=b.reactive({...Y.pagination,...e.css}),{tablePagination:i,totalPage:l,lastPage:c,isOnFirstPage:d,isOnLastPage:f,notEnoughPages:h,windowSize:y,windowStart:T,isCurrentPage:R,setPaginationData:k,resetData:P}=Dt(()=>e.onEachSide,()=>e.firstPage);t({tablePagination:i,$_css:a,totalPage:l,lastPage:c,onEachSide:b.toRef(()=>e.onEachSide),firstPage:b.toRef(()=>e.firstPage),isOnFirstPage:d,isOnLastPage:f,notEnoughPages:h,windowSize:y,windowStart:T,loadPage:m,isCurrentPage:R,setPaginationData:k,resetData:P});function m(g){r("vuetable-pagination:change-page",g)}return(g,w)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a).wrapperClass)},[o.createElementVNode("a",{class:o.normalizeClass(["btn-nav",o.unref(a).linkClass,o.unref(d)?o.unref(a).disabledClass:""]),onClick:w[0]||(w[0]=E=>m(g.firstPage))},[o.unref(a).icons.first!=""?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([o.unref(a).icons.first])},null,2)):(o.openBlock(),o.createElementBlock("span",ho," « "))],2),o.createElementVNode("a",{class:o.normalizeClass(["btn-nav",o.unref(a).linkClass,o.unref(d)?o.unref(a).disabledClass:""]),onClick:w[1]||(w[1]=E=>m("prev"))},[o.unref(a).icons.next!=""?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([o.unref(a).icons.prev])},null,2)):(o.openBlock(),o.createElementBlock("span",po," ‹ "))],2),o.unref(h)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(l),(E,O)=>(o.openBlock(),o.createElementBlock("a",{key:O,class:o.normalizeClass([o.unref(a).pageClass,o.unref(R)(O+g.firstPage)?o.unref(a).activeClass:""]),innerHTML:E,onClick:F=>m(O+g.firstPage)},null,10,mo))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(o.unref(y),(E,O)=>(o.openBlock(),o.createElementBlock("a",{key:O,class:o.normalizeClass([o.unref(a).pageClass,o.unref(R)(o.unref(T)+O+g.firstPage-1)?o.unref(a).activeClass:""]),innerHTML:o.unref(T)+E-1,onClick:F=>m(o.unref(T)+O+g.firstPage-1)},null,10,bo))),128)),o.createElementVNode("a",{class:o.normalizeClass(["btn-nav",o.unref(a).linkClass,o.unref(f)?o.unref(a).disabledClass:""]),onClick:w[2]||(w[2]=E=>m("next"))},[o.unref(a).icons.next!=""?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([o.unref(a).icons.next])},null,2)):(o.openBlock(),o.createElementBlock("span",go," › "))],2),o.createElementVNode("a",{class:o.normalizeClass(["btn-nav",o.unref(a).linkClass,o.unref(f)?o.unref(a).disabledClass:""]),onClick:w[3]||(w[3]=E=>m(o.unref(c)))},[o.unref(a).icons.last!=""?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([o.unref(a).icons.last])},null,2)):(o.openBlock(),o.createElementBlock("span",yo," » "))],2)],2)),[[o.vShow,o.unref(i)&&o.unref(c)>g.firstPage]])}});function wo(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(a){a(n)}),(r=e.get("*"))&&r.slice().map(function(a){a(t,n)})}}}const ko=["value","selected"],Wt=o.defineComponent({__name:"VuetablePaginationDropdown",props:{css:{default:()=>({})},pageText:{default:"Page"},onEachSide:{default:2},firstPage:{default:1}},emits:["vuetable-pagination:change-page"],setup(e,{expose:t,emit:n}){const r=wo(),a=n,i=b.reactive({...Y.pagination,...e.css}),{tablePagination:l,totalPage:c,lastPage:d,isOnFirstPage:f,isOnLastPage:h,notEnoughPages:y,windowSize:T,windowStart:R,isCurrentPage:k,setPaginationData:P,resetData:m}=Dt(e.onEachSide,e.firstPage);t({tablePagination:l,$_css:i,firstPage:e.firstPage,lastPage:d,onEachSide:e.onEachSide,pageText:e.pageText,notEnoughPages:y,windowSize:T,windowStart:R,loadPage:g,isCurrentPage:k,setPaginationData:P,resetData:m});function g(w){a("vuetable-pagination:change-page",w)}return r.on("vuetable:pagination-data",w=>{P(w)}),(w,E)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(i).wrapperClass])},[o.createElementVNode("a",{class:o.normalizeClass([o.unref(i).linkClass,{[o.unref(i).disabledClass]:o.unref(f)}]),onClick:E[0]||(E[0]=O=>g("prev"))},[o.createElementVNode("i",{class:o.normalizeClass(o.unref(i).icons.prev)},null,2)],2),o.createElementVNode("select",{class:o.normalizeClass(["vuetable-pagination-dropdown",o.unref(i).dropdownClass]),onChange:E[1]||(E[1]=O=>g(O.target.selectedIndex+w.firstPage))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(O,F)=>(o.openBlock(),o.createElementBlock("option",{key:O,class:o.normalizeClass([o.unref(i).pageClass]),value:F+w.firstPage,selected:o.unref(k)(F+w.firstPage)},o.toDisplayString(w.pageText)+" "+o.toDisplayString(O),11,ko))),128))],34),o.createElementVNode("a",{class:o.normalizeClass([o.unref(i).linkClass,{[o.unref(i).disabledClass]:o.unref(h)}]),onClick:E[2]||(E[2]=O=>g("next"))},[o.createElementVNode("i",{class:o.normalizeClass(o.unref(i).icons.next)},null,2)],2)],2))}});function Co(e,t){const n=b.ref(null),r=b.computed(()=>n.value==null||n.value.total==0),a=b.computed(()=>r.value?V(e):V(t).replace("{from}",`${n.value.from||0}`).replace("{to}",`${n.value.to||0}`).replace("{total}",`${n.value.total||0}`));function i(d){n.value=d}function l(){n.value=null}function c(d){var f;return d===((f=n.value)==null?void 0:f.current_page)}return{tablePagination:n,paginationInfo:a,setPaginationData:i,resetData:l,isCurrentPage:c}}const Eo=["innerHTML"],Jt=o.defineComponent({__name:"VuetablePaginationInfo",props:{css:{default:()=>({})},infoTemplate:{default:"Displaying {from} to {to} of {total} items"},noDataTemplate:{default:"No relevant data"}},setup(e,{expose:t}){const{tablePagination:n,paginationInfo:r,setPaginationData:a,resetData:i}=Co(()=>e.noDataTemplate,()=>e.infoTemplate),l=b.ref({...Y.paginationInfo,...e.css});return t({tablePagination:n,$_css:l,infoTemplate:b.toRef(()=>e.infoTemplate),noDataTemplate:b.toRef(()=>e.noDataTemplate),paginationInfo:r,setPaginationData:a,resetData:i}),(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vuetable-pagination-info",o.unref(l).infoClass]),innerHTML:o.unref(r)},null,10,Eo))}}),Kt=b.defineComponent({props:{rowData:{type:Object,default:null},rowIndex:{type:Number},rowField:{type:Object},isHeader:{type:Boolean,default:!1},title:{type:String,default:""},vuetable:{type:Object,default:null}}}),So=b.defineComponent({mixins:[Kt],methods:{toggleCheckbox(e,t){this.vuetable.onCheckboxToggled(t.target.checked,this.rowField.name,e)},toggleAllCheckbox(e){this.vuetable.onCheckboxToggledAll(e.target.checked)},isSelected(e){return this.vuetable.isSelectedRow(e[this.vuetable.trackBy])},isAllItemsInCurrentPageSelected(){if(!this.vuetable.tableData)return;let e=this.vuetable.trackBy,t=this.$el.querySelector("input[type=checkbox]"),n=this.vuetable.tableData.filter(r=>this.vuetable.isSelectedRow(r[e]));return n.length<=0?(t.indeterminate=!1,!1):n.length({})},infoTemplate:{type:String,default:"Displaying {from} to {to} of {total} items"},noDataTemplate:{type:String,default:"No relevant data"}},data(){return{tablePagination:null,customCss:{}}},computed:{paginationInfo(){return this.tablePagination==null||this.tablePagination.total===0?this.noDataTemplate:this.infoTemplate.replace("{from}",`${this.tablePagination.from||0}`).replace("{to}",`${this.tablePagination.to||0}`).replace("{total}",`${this.tablePagination.total||0}`)}},created(){this.mergeCss()},methods:{mergeCss(){this.customCss={...Y.paginationInfo,...this.css}},setPaginationData(e){this.tablePagination=e},resetData(){this.tablePagination=null}}}),Ro=b.defineComponent({emits:["vuetable-pagination:change-page"],props:{css:{type:Object,default(){return{}}},onEachSide:{type:Number,default(){return 2}},firstPage:{type:Number,default:1}},data(){return{eventPrefix:"vuetable-pagination:",tablePagination:null,customCss:{}}},created(){this.mergeCss()},computed:{totalPage(){return this.tablePagination===null?0:this.tablePagination.last_page-this.firstPage+1},lastPage(){return this.tablePagination===null?0:this.tablePagination.last_page},isOnFirstPage(){return this.tablePagination===null?!1:this.tablePagination.current_page===this.firstPage},isOnLastPage(){return this.tablePagination===null?!1:this.tablePagination.current_page===this.lastPage},notEnoughPages(){return this.totalPage=this.totalPage-this.onEachSide?this.totalPage-this.onEachSide*2:this.tablePagination.current_page-this.onEachSide}},methods:{mergeCss(){this.customCss={...Y.pagination,...this.css}},loadPage(e){this.$emit("vuetable-pagination:change-page",e)},isCurrentPage(e){return e===this.tablePagination.current_page},setPaginationData(e){this.tablePagination=e},resetData(){this.tablePagination=null}}});function Bo(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function To(e){var t=this;return new t(function(n,r){if(!(e&&typeof e.length<"u"))return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(a.length===0)return n([]);var i=a.length;function l(d,f){if(f&&(typeof f=="object"||typeof f=="function")){var h=f.then;if(typeof h=="function"){h.call(f,function(y){l(d,y)},function(y){a[d]={status:"rejected",reason:y},--i===0&&n(a)});return}}a[d]={status:"fulfilled",value:f},--i===0&&n(a)}for(var c=0;c