@xy-planning-network/trees 0.9.2 → 0.9.3-rc1
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/dist/trees.es.js +902 -882
- package/dist/trees.umd.js +6 -6
- package/package.json +1 -1
- package/src/lib-components/forms/BaseInput.vue +18 -3
- package/types/composables/forms.d.ts +7 -0
- package/types/helpers/Slots.d.ts +2 -0
- package/types/lib-components/lists/StaticTable.vue.d.ts +21 -0
- package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +27 -0
- package/types/lib-components/lists/Table.vue.d.ts +39 -0
- package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +18 -0
- package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +22 -0
- package/types/lib-components/overlays/AlertModal.vue.d.ts +68 -0
package/dist/trees.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(N,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(N=typeof globalThis<"u"?globalThis:N||self,t(N.Trees={},N.Vue))})(this,function(N,t){"use strict";var Rp=Object.defineProperty;var Ip=(N,t,Re)=>t in N?Rp(N,t,{enumerable:!0,configurable:!0,writable:!0,value:Re}):N[t]=Re;var xr=(N,t,Re)=>(Ip(N,typeof t!="symbol"?t+"":t,Re),Re);function Re(n,r){return function(){return n.apply(r,arguments)}}const{toString:ai}=Object.prototype,{getPrototypeOf:kn}=Object,Tt=(n=>r=>{const e=ai.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),$e=n=>(n=n.toLowerCase(),r=>Tt(r)===n),Mt=n=>r=>typeof r===n,{isArray:Xe}=Array,pt=Mt("undefined");function ii(n){return n!==null&&!pt(n)&&n.constructor!==null&&!pt(n.constructor)&&xe(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Cr=$e("ArrayBuffer");function li(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Cr(n.buffer),r}const si=Mt("string"),xe=Mt("function"),kr=Mt("number"),Ot=n=>n!==null&&typeof n=="object",ci=n=>n===!0||n===!1,Pt=n=>{if(Tt(n)!=="object")return!1;const r=kn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},di=$e("Date"),ui=$e("File"),fi=$e("Blob"),pi=$e("FileList"),mi=n=>Ot(n)&&xe(n.pipe),hi=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||xe(n.append)&&((r=Tt(n))==="formdata"||r==="object"&&xe(n.toString)&&n.toString()==="[object FormData]"))},gi=$e("URLSearchParams"),bi=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mt(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Xe(n))for(o=0,a=n.length;o<a;o++)r.call(null,n[o],o,n);else{const i=e?Object.getOwnPropertyNames(n):Object.keys(n),l=i.length;let s;for(o=0;o<l;o++)s=i[o],r.call(null,n[s],s,n)}}function Er(n,r){r=r.toLowerCase();const e=Object.keys(n);let o=e.length,a;for(;o-- >0;)if(a=e[o],r===a.toLowerCase())return a;return null}const _r=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Dr=n=>!pt(n)&&n!==_r;function En(){const{caseless:n}=Dr(this)&&this||{},r={},e=(o,a)=>{const i=n&&Er(r,a)||a;Pt(r[i])&&Pt(o)?r[i]=En(r[i],o):Pt(o)?r[i]=En({},o):Xe(o)?r[i]=o.slice():r[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&mt(arguments[o],e);return r}const yi=(n,r,e,{allOwnKeys:o}={})=>(mt(r,(a,i)=>{e&&xe(a)?n[i]=Re(a,e):n[i]=a},{allOwnKeys:o}),n),wi=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xi=(n,r,e,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),e&&Object.assign(n.prototype,e)},Ci=(n,r,e,o)=>{let a,i,l;const s={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),i=a.length;i-- >0;)l=a[i],(!o||o(l,n,r))&&!s[l]&&(r[l]=n[l],s[l]=!0);n=e!==!1&&kn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},ki=(n,r,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=r.length;const o=n.indexOf(r,e);return o!==-1&&o===e},Ei=n=>{if(!n)return null;if(Xe(n))return n;let r=n.length;if(!kr(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},_i=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&kn(Uint8Array)),Di=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const i=a.value;r.call(n,i[0],i[1])}},Ni=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},Si=$e("HTMLFormElement"),vi=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),Nr=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),Vi=$e("RegExp"),Sr=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};mt(e,(a,i)=>{let l;(l=r(a,i,n))!==!1&&(o[i]=l||a)}),Object.defineProperties(n,o)},$i=n=>{Sr(n,(r,e)=>{if(xe(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const o=n[e];if(xe(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Bi=(n,r)=>{const e={},o=a=>{a.forEach(i=>{e[i]=!0})};return Xe(n)?o(n):o(String(n).split(r)),e},Ti=()=>{},Mi=(n,r)=>(n=+n,Number.isFinite(n)?n:r),_n="abcdefghijklmnopqrstuvwxyz",vr="0123456789",Vr={DIGIT:vr,ALPHA:_n,ALPHA_DIGIT:_n+_n.toUpperCase()+vr},Oi=(n=16,r=Vr.ALPHA_DIGIT)=>{let e="";const{length:o}=r;for(;n--;)e+=r[Math.random()*o|0];return e};function Pi(n){return!!(n&&xe(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Ai=n=>{const r=new Array(10),e=(o,a)=>{if(Ot(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const i=Xe(o)?[]:{};return mt(o,(l,s)=>{const c=e(l,a+1);!pt(c)&&(i[s]=c)}),r[a]=void 0,i}}return o};return e(n,0)},Li=$e("AsyncFunction"),E={isArray:Xe,isArrayBuffer:Cr,isBuffer:ii,isFormData:hi,isArrayBufferView:li,isString:si,isNumber:kr,isBoolean:ci,isObject:Ot,isPlainObject:Pt,isUndefined:pt,isDate:di,isFile:ui,isBlob:fi,isRegExp:Vi,isFunction:xe,isStream:mi,isURLSearchParams:gi,isTypedArray:_i,isFileList:pi,forEach:mt,merge:En,extend:yi,trim:bi,stripBOM:wi,inherits:xi,toFlatObject:Ci,kindOf:Tt,kindOfTest:$e,endsWith:ki,toArray:Ei,forEachEntry:Di,matchAll:Ni,isHTMLForm:Si,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:Sr,freezeMethods:$i,toObjectSet:Bi,toCamelCase:vi,noop:Ti,toFiniteNumber:Mi,findKey:Er,global:_r,isContextDefined:Dr,ALPHABET:Vr,generateString:Oi,isSpecCompliantForm:Pi,toJSONObject:Ai,isAsyncFn:Li,isThenable:n=>n&&(Ot(n)||xe(n))&&xe(n.then)&&xe(n.catch)};function L(n,r,e,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),e&&(this.config=e),o&&(this.request=o),a&&(this.response=a)}E.inherits(L,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $r=L.prototype,Br={};["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(n=>{Br[n]={value:n}}),Object.defineProperties(L,Br),Object.defineProperty($r,"isAxiosError",{value:!0}),L.from=(n,r,e,o,a,i)=>{const l=Object.create($r);return E.toFlatObject(n,l,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),L.call(l,n.message,r,e,o,a),l.cause=n,l.name=n.name,i&&Object.assign(l,i),l};const Ri=null;function Dn(n){return E.isPlainObject(n)||E.isArray(n)}function Tr(n){return E.endsWith(n,"[]")?n.slice(0,-2):n}function Mr(n,r,e){return n?n.concat(r).map(function(a,i){return a=Tr(a),!e&&i?"["+a+"]":a}).join(e?".":""):r}function Ii(n){return E.isArray(n)&&!n.some(Dn)}const Fi=E.toFlatObject(E,{},null,function(r){return/^is[A-Z]/.test(r)});function At(n,r,e){if(!E.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,e=E.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!E.isUndefined(x[y])});const o=e.metaTokens,a=e.visitor||u,i=e.dots,l=e.indexes,c=(e.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(r);if(!E.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(E.isDate(b))return b.toISOString();if(!c&&E.isBlob(b))throw new L("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(b)||E.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function u(b,y,x){let k=b;if(b&&!x&&typeof b=="object"){if(E.endsWith(y,"{}"))y=o?y:y.slice(0,-2),b=JSON.stringify(b);else if(E.isArray(b)&&Ii(b)||(E.isFileList(b)||E.endsWith(y,"[]"))&&(k=E.toArray(b)))return y=Tr(y),k.forEach(function(v,H){!(E.isUndefined(v)||v===null)&&r.append(l===!0?Mr([y],H,i):l===null?y:y+"[]",d(v))}),!1}return Dn(b)?!0:(r.append(Mr(x,y,i),d(b)),!1)}const p=[],m=Object.assign(Fi,{defaultVisitor:u,convertValue:d,isVisitable:Dn});function g(b,y){if(!E.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(b),E.forEach(b,function(k,D){(!(E.isUndefined(k)||k===null)&&a.call(r,k,E.isString(D)?D.trim():D,y,m))===!0&&g(k,y?y.concat(D):[D])}),p.pop()}}if(!E.isObject(n))throw new TypeError("data must be an object");return g(n),r}function Or(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function Nn(n,r){this._pairs=[],n&&At(n,this,r)}const Pr=Nn.prototype;Pr.append=function(r,e){this._pairs.push([r,e])},Pr.toString=function(r){const e=r?function(o){return r.call(this,o,Or)}:Or;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function ji(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ar(n,r,e){if(!r)return n;const o=e&&e.encode||ji,a=e&&e.serialize;let i;if(a?i=a(r,e):i=E.isURLSearchParams(r)?r.toString():new Nn(r,e).toString(o),i){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Hi{constructor(){this.handlers=[]}use(r,e,o){return this.handlers.push({fulfilled:r,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){E.forEach(this.handlers,function(o){o!==null&&r(o)})}}const Lr=Hi,Rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ui=typeof URLSearchParams<"u"?URLSearchParams:Nn,zi=typeof FormData<"u"?FormData:null,qi=typeof Blob<"u"?Blob:null,Yi=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Wi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_e={isBrowser:!0,classes:{URLSearchParams:Ui,FormData:zi,Blob:qi},isStandardBrowserEnv:Yi,isStandardBrowserWebWorkerEnv:Wi,protocols:["http","https","file","blob","url","data"]};function Ki(n,r){return At(n,new _e.classes.URLSearchParams,Object.assign({visitor:function(e,o,a,i){return _e.isNode&&E.isBuffer(e)?(this.append(o,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Gi(n){return E.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Ji(n){const r={},e=Object.keys(n);let o;const a=e.length;let i;for(o=0;o<a;o++)i=e[o],r[i]=n[i];return r}function Ir(n){function r(e,o,a,i){let l=e[i++];const s=Number.isFinite(+l),c=i>=e.length;return l=!l&&E.isArray(a)?a.length:l,c?(E.hasOwnProp(a,l)?a[l]=[a[l],o]:a[l]=o,!s):((!a[l]||!E.isObject(a[l]))&&(a[l]=[]),r(e,o,a[l],i)&&E.isArray(a[l])&&(a[l]=Ji(a[l])),!s)}if(E.isFormData(n)&&E.isFunction(n.entries)){const e={};return E.forEachEntry(n,(o,a)=>{r(Gi(o),a,e,0)}),e}return null}function Xi(n,r,e){if(E.isString(n))try{return(r||JSON.parse)(n),E.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(n)}const Sn={transitional:Rr,adapter:_e.isNode?"http":"xhr",transformRequest:[function(r,e){const o=e.getContentType()||"",a=o.indexOf("application/json")>-1,i=E.isObject(r);if(i&&E.isHTMLForm(r)&&(r=new FormData(r)),E.isFormData(r))return a&&a?JSON.stringify(Ir(r)):r;if(E.isArrayBuffer(r)||E.isBuffer(r)||E.isStream(r)||E.isFile(r)||E.isBlob(r))return r;if(E.isArrayBufferView(r))return r.buffer;if(E.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Ki(r,this.formSerializer).toString();if((s=E.isFileList(r))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return At(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),Xi(r)):r}],transformResponse:[function(r){const e=this.transitional||Sn.transitional,o=e&&e.forcedJSONParsing,a=this.responseType==="json";if(r&&E.isString(r)&&(o&&!this.responseType||a)){const l=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(s){if(l)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],n=>{Sn.headers[n]={}});const vn=Sn,Zi=E.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"]),Qi=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
1
|
+
(function(N,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(N=typeof globalThis<"u"?globalThis:N||self,t(N.Trees={},N.Vue))})(this,function(N,t){"use strict";var Ip=Object.defineProperty;var Fp=(N,t,Re)=>t in N?Ip(N,t,{enumerable:!0,configurable:!0,writable:!0,value:Re}):N[t]=Re;var xr=(N,t,Re)=>(Fp(N,typeof t!="symbol"?t+"":t,Re),Re);function Re(n,r){return function(){return n.apply(r,arguments)}}const{toString:ai}=Object.prototype,{getPrototypeOf:kn}=Object,Tt=(n=>r=>{const e=ai.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),$e=n=>(n=n.toLowerCase(),r=>Tt(r)===n),Mt=n=>r=>typeof r===n,{isArray:Xe}=Array,pt=Mt("undefined");function ii(n){return n!==null&&!pt(n)&&n.constructor!==null&&!pt(n.constructor)&&xe(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Cr=$e("ArrayBuffer");function li(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&Cr(n.buffer),r}const si=Mt("string"),xe=Mt("function"),kr=Mt("number"),Ot=n=>n!==null&&typeof n=="object",ci=n=>n===!0||n===!1,Pt=n=>{if(Tt(n)!=="object")return!1;const r=kn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},di=$e("Date"),ui=$e("File"),fi=$e("Blob"),pi=$e("FileList"),mi=n=>Ot(n)&&xe(n.pipe),hi=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||xe(n.append)&&((r=Tt(n))==="formdata"||r==="object"&&xe(n.toString)&&n.toString()==="[object FormData]"))},gi=$e("URLSearchParams"),bi=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mt(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Xe(n))for(o=0,a=n.length;o<a;o++)r.call(null,n[o],o,n);else{const i=e?Object.getOwnPropertyNames(n):Object.keys(n),l=i.length;let s;for(o=0;o<l;o++)s=i[o],r.call(null,n[s],s,n)}}function Er(n,r){r=r.toLowerCase();const e=Object.keys(n);let o=e.length,a;for(;o-- >0;)if(a=e[o],r===a.toLowerCase())return a;return null}const _r=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Dr=n=>!pt(n)&&n!==_r;function En(){const{caseless:n}=Dr(this)&&this||{},r={},e=(o,a)=>{const i=n&&Er(r,a)||a;Pt(r[i])&&Pt(o)?r[i]=En(r[i],o):Pt(o)?r[i]=En({},o):Xe(o)?r[i]=o.slice():r[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&mt(arguments[o],e);return r}const yi=(n,r,e,{allOwnKeys:o}={})=>(mt(r,(a,i)=>{e&&xe(a)?n[i]=Re(a,e):n[i]=a},{allOwnKeys:o}),n),wi=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xi=(n,r,e,o)=>{n.prototype=Object.create(r.prototype,o),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),e&&Object.assign(n.prototype,e)},Ci=(n,r,e,o)=>{let a,i,l;const s={};if(r=r||{},n==null)return r;do{for(a=Object.getOwnPropertyNames(n),i=a.length;i-- >0;)l=a[i],(!o||o(l,n,r))&&!s[l]&&(r[l]=n[l],s[l]=!0);n=e!==!1&&kn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},ki=(n,r,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=r.length;const o=n.indexOf(r,e);return o!==-1&&o===e},Ei=n=>{if(!n)return null;if(Xe(n))return n;let r=n.length;if(!kr(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},_i=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&kn(Uint8Array)),Di=(n,r)=>{const o=(n&&n[Symbol.iterator]).call(n);let a;for(;(a=o.next())&&!a.done;){const i=a.value;r.call(n,i[0],i[1])}},Ni=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},Si=$e("HTMLFormElement"),vi=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),Nr=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),Vi=$e("RegExp"),Sr=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};mt(e,(a,i)=>{let l;(l=r(a,i,n))!==!1&&(o[i]=l||a)}),Object.defineProperties(n,o)},$i=n=>{Sr(n,(r,e)=>{if(xe(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const o=n[e];if(xe(o)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Bi=(n,r)=>{const e={},o=a=>{a.forEach(i=>{e[i]=!0})};return Xe(n)?o(n):o(String(n).split(r)),e},Ti=()=>{},Mi=(n,r)=>(n=+n,Number.isFinite(n)?n:r),_n="abcdefghijklmnopqrstuvwxyz",vr="0123456789",Vr={DIGIT:vr,ALPHA:_n,ALPHA_DIGIT:_n+_n.toUpperCase()+vr},Oi=(n=16,r=Vr.ALPHA_DIGIT)=>{let e="";const{length:o}=r;for(;n--;)e+=r[Math.random()*o|0];return e};function Pi(n){return!!(n&&xe(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Ai=n=>{const r=new Array(10),e=(o,a)=>{if(Ot(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const i=Xe(o)?[]:{};return mt(o,(l,s)=>{const c=e(l,a+1);!pt(c)&&(i[s]=c)}),r[a]=void 0,i}}return o};return e(n,0)},Li=$e("AsyncFunction"),E={isArray:Xe,isArrayBuffer:Cr,isBuffer:ii,isFormData:hi,isArrayBufferView:li,isString:si,isNumber:kr,isBoolean:ci,isObject:Ot,isPlainObject:Pt,isUndefined:pt,isDate:di,isFile:ui,isBlob:fi,isRegExp:Vi,isFunction:xe,isStream:mi,isURLSearchParams:gi,isTypedArray:_i,isFileList:pi,forEach:mt,merge:En,extend:yi,trim:bi,stripBOM:wi,inherits:xi,toFlatObject:Ci,kindOf:Tt,kindOfTest:$e,endsWith:ki,toArray:Ei,forEachEntry:Di,matchAll:Ni,isHTMLForm:Si,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:Sr,freezeMethods:$i,toObjectSet:Bi,toCamelCase:vi,noop:Ti,toFiniteNumber:Mi,findKey:Er,global:_r,isContextDefined:Dr,ALPHABET:Vr,generateString:Oi,isSpecCompliantForm:Pi,toJSONObject:Ai,isAsyncFn:Li,isThenable:n=>n&&(Ot(n)||xe(n))&&xe(n.then)&&xe(n.catch)};function L(n,r,e,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),e&&(this.config=e),o&&(this.request=o),a&&(this.response=a)}E.inherits(L,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $r=L.prototype,Br={};["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(n=>{Br[n]={value:n}}),Object.defineProperties(L,Br),Object.defineProperty($r,"isAxiosError",{value:!0}),L.from=(n,r,e,o,a,i)=>{const l=Object.create($r);return E.toFlatObject(n,l,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),L.call(l,n.message,r,e,o,a),l.cause=n,l.name=n.name,i&&Object.assign(l,i),l};const Ri=null;function Dn(n){return E.isPlainObject(n)||E.isArray(n)}function Tr(n){return E.endsWith(n,"[]")?n.slice(0,-2):n}function Mr(n,r,e){return n?n.concat(r).map(function(a,i){return a=Tr(a),!e&&i?"["+a+"]":a}).join(e?".":""):r}function Ii(n){return E.isArray(n)&&!n.some(Dn)}const Fi=E.toFlatObject(E,{},null,function(r){return/^is[A-Z]/.test(r)});function At(n,r,e){if(!E.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,e=E.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!E.isUndefined(x[y])});const o=e.metaTokens,a=e.visitor||u,i=e.dots,l=e.indexes,c=(e.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(r);if(!E.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(E.isDate(b))return b.toISOString();if(!c&&E.isBlob(b))throw new L("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(b)||E.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function u(b,y,x){let k=b;if(b&&!x&&typeof b=="object"){if(E.endsWith(y,"{}"))y=o?y:y.slice(0,-2),b=JSON.stringify(b);else if(E.isArray(b)&&Ii(b)||(E.isFileList(b)||E.endsWith(y,"[]"))&&(k=E.toArray(b)))return y=Tr(y),k.forEach(function(v,H){!(E.isUndefined(v)||v===null)&&r.append(l===!0?Mr([y],H,i):l===null?y:y+"[]",d(v))}),!1}return Dn(b)?!0:(r.append(Mr(x,y,i),d(b)),!1)}const p=[],m=Object.assign(Fi,{defaultVisitor:u,convertValue:d,isVisitable:Dn});function g(b,y){if(!E.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(b),E.forEach(b,function(k,D){(!(E.isUndefined(k)||k===null)&&a.call(r,k,E.isString(D)?D.trim():D,y,m))===!0&&g(k,y?y.concat(D):[D])}),p.pop()}}if(!E.isObject(n))throw new TypeError("data must be an object");return g(n),r}function Or(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function Nn(n,r){this._pairs=[],n&&At(n,this,r)}const Pr=Nn.prototype;Pr.append=function(r,e){this._pairs.push([r,e])},Pr.toString=function(r){const e=r?function(o){return r.call(this,o,Or)}:Or;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function ji(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ar(n,r,e){if(!r)return n;const o=e&&e.encode||ji,a=e&&e.serialize;let i;if(a?i=a(r,e):i=E.isURLSearchParams(r)?r.toString():new Nn(r,e).toString(o),i){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Hi{constructor(){this.handlers=[]}use(r,e,o){return this.handlers.push({fulfilled:r,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){E.forEach(this.handlers,function(o){o!==null&&r(o)})}}const Lr=Hi,Rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ui=typeof URLSearchParams<"u"?URLSearchParams:Nn,zi=typeof FormData<"u"?FormData:null,qi=typeof Blob<"u"?Blob:null,Yi=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Wi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_e={isBrowser:!0,classes:{URLSearchParams:Ui,FormData:zi,Blob:qi},isStandardBrowserEnv:Yi,isStandardBrowserWebWorkerEnv:Wi,protocols:["http","https","file","blob","url","data"]};function Ki(n,r){return At(n,new _e.classes.URLSearchParams,Object.assign({visitor:function(e,o,a,i){return _e.isNode&&E.isBuffer(e)?(this.append(o,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Gi(n){return E.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Ji(n){const r={},e=Object.keys(n);let o;const a=e.length;let i;for(o=0;o<a;o++)i=e[o],r[i]=n[i];return r}function Ir(n){function r(e,o,a,i){let l=e[i++];const s=Number.isFinite(+l),c=i>=e.length;return l=!l&&E.isArray(a)?a.length:l,c?(E.hasOwnProp(a,l)?a[l]=[a[l],o]:a[l]=o,!s):((!a[l]||!E.isObject(a[l]))&&(a[l]=[]),r(e,o,a[l],i)&&E.isArray(a[l])&&(a[l]=Ji(a[l])),!s)}if(E.isFormData(n)&&E.isFunction(n.entries)){const e={};return E.forEachEntry(n,(o,a)=>{r(Gi(o),a,e,0)}),e}return null}function Xi(n,r,e){if(E.isString(n))try{return(r||JSON.parse)(n),E.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(n)}const Sn={transitional:Rr,adapter:_e.isNode?"http":"xhr",transformRequest:[function(r,e){const o=e.getContentType()||"",a=o.indexOf("application/json")>-1,i=E.isObject(r);if(i&&E.isHTMLForm(r)&&(r=new FormData(r)),E.isFormData(r))return a&&a?JSON.stringify(Ir(r)):r;if(E.isArrayBuffer(r)||E.isBuffer(r)||E.isStream(r)||E.isFile(r)||E.isBlob(r))return r;if(E.isArrayBufferView(r))return r.buffer;if(E.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Ki(r,this.formSerializer).toString();if((s=E.isFileList(r))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return At(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),Xi(r)):r}],transformResponse:[function(r){const e=this.transitional||Sn.transitional,o=e&&e.forcedJSONParsing,a=this.responseType==="json";if(r&&E.isString(r)&&(o&&!this.responseType||a)){const l=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(s){if(l)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],n=>{Sn.headers[n]={}});const vn=Sn,Zi=E.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"]),Qi=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
2
2
|
`).forEach(function(l){a=l.indexOf(":"),e=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!e||r[e]&&Zi[e])&&(e==="set-cookie"?r[e]?r[e].push(o):r[e]=[o]:r[e]=r[e]?r[e]+", "+o:o)}),r},Fr=Symbol("internals");function ht(n){return n&&String(n).trim().toLowerCase()}function Lt(n){return n===!1||n==null?n:E.isArray(n)?n.map(Lt):String(n)}function el(n){const r=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=e.exec(n);)r[o[1]]=o[2];return r}const tl=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Vn(n,r,e,o,a){if(E.isFunction(o))return o.call(this,r,e);if(a&&(r=e),!!E.isString(r)){if(E.isString(o))return r.indexOf(o)!==-1;if(E.isRegExp(o))return o.test(r)}}function nl(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,e,o)=>e.toUpperCase()+o)}function rl(n,r){const e=E.toCamelCase(" "+r);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+e,{value:function(a,i,l){return this[o].call(this,r,a,i,l)},configurable:!0})})}class Rt{constructor(r){r&&this.set(r)}set(r,e,o){const a=this;function i(s,c,d){const u=ht(c);if(!u)throw new Error("header name must be a non-empty string");const p=E.findKey(a,u);(!p||a[p]===void 0||d===!0||d===void 0&&a[p]!==!1)&&(a[p||c]=Lt(s))}const l=(s,c)=>E.forEach(s,(d,u)=>i(d,u,c));return E.isPlainObject(r)||r instanceof this.constructor?l(r,e):E.isString(r)&&(r=r.trim())&&!tl(r)?l(Qi(r),e):r!=null&&i(e,r,o),this}get(r,e){if(r=ht(r),r){const o=E.findKey(this,r);if(o){const a=this[o];if(!e)return a;if(e===!0)return el(a);if(E.isFunction(e))return e.call(this,a,o);if(E.isRegExp(e))return e.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,e){if(r=ht(r),r){const o=E.findKey(this,r);return!!(o&&this[o]!==void 0&&(!e||Vn(this,this[o],o,e)))}return!1}delete(r,e){const o=this;let a=!1;function i(l){if(l=ht(l),l){const s=E.findKey(o,l);s&&(!e||Vn(o,o[s],s,e))&&(delete o[s],a=!0)}}return E.isArray(r)?r.forEach(i):i(r),a}clear(r){const e=Object.keys(this);let o=e.length,a=!1;for(;o--;){const i=e[o];(!r||Vn(this,this[i],i,r,!0))&&(delete this[i],a=!0)}return a}normalize(r){const e=this,o={};return E.forEach(this,(a,i)=>{const l=E.findKey(o,i);if(l){e[l]=Lt(a),delete e[i];return}const s=r?nl(i):String(i).trim();s!==i&&delete e[i],e[s]=Lt(a),o[s]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const e=Object.create(null);return E.forEach(this,(o,a)=>{o!=null&&o!==!1&&(e[a]=r&&E.isArray(o)?o.join(", "):o)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,e])=>r+": "+e).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...e){const o=new this(r);return e.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[Fr]=this[Fr]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=ht(l);o[s]||(rl(a,l),o[s]=!0)}return E.isArray(r)?r.forEach(i):i(r),this}}Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Rt.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),E.freezeMethods(Rt);const Pe=Rt;function $n(n,r){const e=this||vn,o=r||e,a=Pe.from(o.headers);let i=o.data;return E.forEach(n,function(s){i=s.call(e,i,a.normalize(),r?r.status:void 0)}),a.normalize(),i}function jr(n){return!!(n&&n.__CANCEL__)}function gt(n,r,e){L.call(this,n??"canceled",L.ERR_CANCELED,r,e),this.name="CanceledError"}E.inherits(gt,L,{__CANCEL__:!0});function ol(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new L("Request failed with status code "+e.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const al=_e.isStandardBrowserEnv?function(){return{write:function(e,o,a,i,l,s){const c=[];c.push(e+"="+encodeURIComponent(o)),E.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),E.isString(i)&&c.push("path="+i),E.isString(l)&&c.push("domain="+l),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function il(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ll(n,r){return r?n.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):n}function Hr(n,r){return n&&!il(r)?ll(n,r):r}const sl=_e.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let o;function a(i){let l=i;return r&&(e.setAttribute("href",l),l=e.href),e.setAttribute("href",l),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return o=a(window.location.href),function(l){const s=E.isString(l)?a(l):l;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}();function cl(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function dl(n,r){n=n||10;const e=new Array(n),o=new Array(n);let a=0,i=0,l;return r=r!==void 0?r:1e3,function(c){const d=Date.now(),u=o[i];l||(l=d),e[a]=c,o[a]=d;let p=i,m=0;for(;p!==a;)m+=e[p++],p=p%n;if(a=(a+1)%n,a===i&&(i=(i+1)%n),d-l<r)return;const g=u&&d-u;return g?Math.round(m*1e3/g):void 0}}function Ur(n,r){let e=0;const o=dl(50,250);return a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-e,c=o(s),d=i<=l;e=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a};u[r?"download":"upload"]=!0,n(u)}}const It={http:Ri,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){let a=n.data;const i=Pe.from(n.headers).normalize(),l=n.responseType;let s;function c(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}E.isFormData(a)&&(_e.isStandardBrowserEnv||_e.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(n.auth){const g=n.auth.username||"",b=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const u=Hr(n.baseURL,n.url);d.open(n.method.toUpperCase(),Ar(u,n.params,n.paramsSerializer),!0),d.timeout=n.timeout;function p(){if(!d)return;const g=Pe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:n,request:d};ol(function(k){e(k),c()},function(k){o(k),c()},y),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new L("Request aborted",L.ECONNABORTED,n,d)),d=null)},d.onerror=function(){o(new L("Network Error",L.ERR_NETWORK,n,d)),d=null},d.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Rr;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),o(new L(b,y.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,n,d)),d=null},_e.isStandardBrowserEnv){const g=(n.withCredentials||sl(u))&&n.xsrfCookieName&&al.read(n.xsrfCookieName);g&&i.set(n.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&E.forEach(i.toJSON(),function(b,y){d.setRequestHeader(y,b)}),E.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),l&&l!=="json"&&(d.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&d.addEventListener("progress",Ur(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ur(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=g=>{d&&(o(!g||g.type?new gt(null,n,d):g),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=cl(u);if(m&&_e.protocols.indexOf(m)===-1){o(new L("Unsupported protocol "+m+":",L.ERR_BAD_REQUEST,n));return}d.send(a||null)})}};E.forEach(It,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const zr={getAdapter:n=>{n=E.isArray(n)?n:[n];const{length:r}=n;let e,o;for(let a=0;a<r&&(e=n[a],!(o=E.isString(e)?It[e.toLowerCase()]:e));a++);if(!o)throw o===!1?new L(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(E.hasOwnProp(It,e)?`Adapter '${e}' is not available in the build`:`Unknown adapter '${e}'`);if(!E.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:It};function Bn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gt(null,n)}function qr(n){return Bn(n),n.headers=Pe.from(n.headers),n.data=$n.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),zr.getAdapter(n.adapter||vn.adapter)(n).then(function(o){return Bn(n),o.data=$n.call(n,n.transformResponse,o),o.headers=Pe.from(o.headers),o},function(o){return jr(o)||(Bn(n),o&&o.response&&(o.response.data=$n.call(n,n.transformResponse,o.response),o.response.headers=Pe.from(o.response.headers))),Promise.reject(o)})}const Yr=n=>n instanceof Pe?n.toJSON():n;function Ze(n,r){r=r||{};const e={};function o(d,u,p){return E.isPlainObject(d)&&E.isPlainObject(u)?E.merge.call({caseless:p},d,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function a(d,u,p){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d,p)}else return o(d,u,p)}function i(d,u){if(!E.isUndefined(u))return o(void 0,u)}function l(d,u){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d)}else return o(void 0,u)}function s(d,u,p){if(p in r)return o(d,u);if(p in n)return o(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials: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:s,headers:(d,u)=>a(Yr(d),Yr(u),!0)};return E.forEach(Object.keys(Object.assign({},n,r)),function(u){const p=c[u]||a,m=p(n[u],r[u],u);E.isUndefined(m)&&p!==s||(e[u]=m)}),e}const Wr="1.5.0",Tn={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Tn[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const Kr={};Tn.transitional=function(r,e,o){function a(i,l){return"[Axios v"+Wr+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(r===!1)throw new L(a(l," has been removed"+(e?" in "+e:"")),L.ERR_DEPRECATED);return e&&!Kr[l]&&(Kr[l]=!0,console.warn(a(l," has been deprecated since v"+e+" and will be removed in the near future"))),r?r(i,l,s):!0}};function ul(n,r,e){if(typeof n!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let a=o.length;for(;a-- >0;){const i=o[a],l=r[i];if(l){const s=n[i],c=s===void 0||l(s,i,n);if(c!==!0)throw new L("option "+i+" must be "+c,L.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}}const Mn={assertOptions:ul,validators:Tn},Ie=Mn.validators;class Ft{constructor(r){this.defaults=r,this.interceptors={request:new Lr,response:new Lr}}request(r,e){typeof r=="string"?(e=e||{},e.url=r):e=r||{},e=Ze(this.defaults,e);const{transitional:o,paramsSerializer:a,headers:i}=e;o!==void 0&&Mn.assertOptions(o,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),a!=null&&(E.isFunction(a)?e.paramsSerializer={serialize:a}:Mn.assertOptions(a,{encode:Ie.function,serialize:Ie.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let l=i&&E.merge(i.common,i[e.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),e.headers=Pe.concat(l,i);const s=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(e)===!1||(c=c&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,p=0,m;if(!c){const b=[qr.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,d),m=b.length,u=Promise.resolve(e);p<m;)u=u.then(b[p++],b[p++]);return u}m=s.length;let g=e;for(p=0;p<m;){const b=s[p++],y=s[p++];try{g=b(g)}catch(x){y.call(this,x);break}}try{u=qr.call(this,g)}catch(b){return Promise.reject(b)}for(p=0,m=d.length;p<m;)u=u.then(d[p++],d[p++]);return u}getUri(r){r=Ze(this.defaults,r);const e=Hr(r.baseURL,r.url);return Ar(e,r.params,r.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(r){Ft.prototype[r]=function(e,o){return this.request(Ze(o||{},{method:r,url:e,data:(o||{}).data}))}}),E.forEach(["post","put","patch"],function(r){function e(o){return function(i,l,s){return this.request(Ze(s||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Ft.prototype[r]=e(),Ft.prototype[r+"Form"]=e(!0)});const jt=Ft;class On{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{o.subscribe(s),i=s}).then(a);return l.cancel=function(){o.unsubscribe(i)},l},r(function(i,l,s){o.reason||(o.reason=new gt(i,l,s),e(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const e=this._listeners.indexOf(r);e!==-1&&this._listeners.splice(e,1)}static source(){let r;return{token:new On(function(a){r=a}),cancel:r}}}const fl=On;function pl(n){return function(e){return n.apply(null,e)}}function ml(n){return E.isObject(n)&&n.isAxiosError===!0}const Pn={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(Pn).forEach(([n,r])=>{Pn[r]=n});const hl=Pn;function Gr(n){const r=new jt(n),e=Re(jt.prototype.request,r);return E.extend(e,jt.prototype,r,{allOwnKeys:!0}),E.extend(e,r,null,{allOwnKeys:!0}),e.create=function(a){return Gr(Ze(n,a))},e}const Z=Gr(vn);Z.Axios=jt,Z.CanceledError=gt,Z.CancelToken=fl,Z.isCancel=jr,Z.VERSION=Wr,Z.toFormData=At,Z.AxiosError=L,Z.Cancel=Z.CanceledError,Z.all=function(r){return Promise.all(r)},Z.spread=pl,Z.isAxiosError=ml,Z.mergeConfig=Ze,Z.AxiosHeaders=Pe,Z.formToJSON=n=>Ir(E.isHTMLForm(n)?new FormData(n):n),Z.getAdapter=zr.getAdapter,Z.HttpStatusCode=hl,Z.default=Z;const An=Z,Jr="HttpError",Xr="HttpErrorCanceled";class Ht extends Error{constructor(e,o,a,i){super(e||"");xr(this,"response");xr(this,"status");this.name=i||Jr,this.status=o||0,this.response=a}}function Zr(){const n=t.ref(0),r=t.ref(!1),e=t.ref(0),o=t.ref([]),a=t.ref(""),i=t.ref(!1);return{idx:n,loading:r,maxIdx:e,messages:o,msg:a,showMsg:i,show:(c=[])=>{c&&(o.value=c,e.value=c.length-1,a.value=o.value[n.value],i.value=!0),r.value=!0},hide:()=>{n.value=0,e.value=0,o.value=[],a.value="",r.value=!1}}}let Ln;function Qr(){return Ln===void 0&&(Ln=Zr()),Ln}const Rn=(()=>{const{show:n,hide:r}=Qr();return{show:n,hide:r}})(),gl=n=>{const r=n.withDelay||0;return new Promise(e=>{setTimeout(()=>{e(n)},Math.max(r,0))})},Ut=An.create({baseURL:"/api/v1",paramsSerializer:{indexes:null},responseType:"json",withCredentials:!0});Ut.interceptors.request.use(gl);const Qe=(n,r)=>{const e={skipLoader:!1,withDelay:0,...r},o=window.setTimeout(()=>{e.skipLoader!==!0&&Rn.show()},200);return Ut({...n,...r}).then(a=>a.data).catch(a=>{var i,l;throw An.isAxiosError(a)?new Ht(a.message,(i=a.response)==null?void 0:i.status,(l=a.response)==null?void 0:l.data,An.isCancel(a)?Xr:Jr):a instanceof Error?new Ht(a.message,0):new Ht("An unknown error has occurred.",0)}).finally(()=>{e.skipLoader!==!0&&Rn.hide(),window.clearTimeout(o)})},In={delete(n,r){return Qe({url:n,method:"DELETE"},r||{})},get(n,r,e){return Qe({url:n,method:"GET",params:e},r||{})},patch(n,r,e){return Qe({url:n,data:r,method:"PATCH"},e||{})},post(n,r,e){return Qe({url:n,data:r,method:"POST"},e||{})},put(n,r,e){return Qe({url:n,data:r,method:"PUT"},e||{})}},bl=n=>{Ut.defaults={...Ut.defaults,...n}},eo=n=>n instanceof Ht,to=n=>eo(n)&&n.name===Xr,no="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ro={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=no.charAt(Math.floor(Math.random()*no.length));return r}};function oo(n,r=500){let e=null;return function(...o){e&&clearTimeout(e),e=setTimeout(()=>{n(...o)},r)}}function yl(n,r=500){let e=null;return(...o)=>{e?clearTimeout(e):n.apply(o),e=setTimeout(()=>{e=null},r)}}const ao=(n,r,e)=>{const o=t.getCurrentInstance();if(e&&e.local){const a=t.ref(n[r]);return t.watch(()=>n[r],i=>a.value=i),t.watch(a,i=>{i!==n[r]&&o.emit(`update:${String(r)}`,i)}),a}else return t.computed({get:()=>n[r],set(a){o.emit(`update:${String(r)}`,a)}})},Ae={help:"",label:"",modelValue:void 0,placeholder:""},Be=n=>{const r=t.useAttrs(),e=t.ref(""),o=ao(n,"modelValue",{local:!0}),a=t.computed(()=>r.id||ro.CreateIdAttribute()),i=t.computed(()=>Fn(r,"disabled")),l=t.computed(()=>Fn(r,"required")),s=t.computed(()=>typeof r.name=="string"&&r.name!==""?r.name:a.value),c=t.computed(()=>({labelledby:n.label?`${a.value}-label`:void 0,describedby:n.help?`${a.value}-help`:void 0,errormessage:e.value?`${a.value}-error`:void 0})),d=m=>{m.type==="invalid"&&(e.value=m.target.validationMessage)},u=m=>{if(!e.value)return;const g=m.target;g.checkValidity()?e.value="":e.value=g.validationMessage},p=oo(u,350);return{aria:c,attrs:r,inputID:a,isDisabled:i,isRequired:l,nameAttr:s,modelState:o,errorState:e,onInvalid:d,validate:u,inputValidation:p}},Fn=(n,r)=>n[r]!==void 0&&n[r]!==null&&n[r]!==!1&&n[r]!==0,io=String.raw`^\w+([\-+.']\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$`,lo=String.raw`[0-9]{10}|[0-9]{3}-[0-9]{3}-[0-9]{4}`,so=n=>{const r=parseFloat(n);return isNaN(r)?n:r};function wl(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}function z(){return z=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},z.apply(this,arguments)}function De(n,r){if(n==null)return{};var e={},o=Object.keys(n),a,i;for(i=0;i<o.length;i++)a=o[i],!(r.indexOf(a)>=0)&&(e[a]=n[a]);return e}function xl(n,r){if(n){if(typeof n=="string")return co(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return co(n,r)}}function co(n,r){(r==null||r>n.length)&&(r=n.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=n[e];return o}function Te(n,r){var e;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(e=xl(n))||r&&n&&typeof n.length=="number"){e&&(n=e);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=n[Symbol.iterator](),e.next.bind(e)}function de(n,r){if(n in r){for(var e=r[n],o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return typeof e=="function"?e.apply(void 0,a):e}var l=new Error('Tried to handle "'+n+'" but there is no handler defined. Only defined handlers are: '+Object.keys(r).map(function(s){return'"'+s+'"'}).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(l,de),l}var ue;(function(n){n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static"})(ue||(ue={}));var me;(function(n){n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden"})(me||(me={}));function K(n){var r=n.visible,e=r===void 0?!0:r,o=n.features,a=o===void 0?ue.None:o,i=De(n,["visible","features"]);if(e||a&ue.Static&&i.props.static)return zt(i);if(a&ue.RenderStrategy){var l,s,c=(l=i.props.unmount)==null||l?me.Unmount:me.Hidden;return de(c,(s={},s[me.Unmount]=function(){return null},s[me.Hidden]=function(){return zt(z({},i,{props:z({},i.props,{hidden:!0,style:{display:"none"}})}))},s))}return zt(i)}function zt(n){var r=n.props,e=n.attrs,o=n.slots,a=n.slot,i=n.name,l=
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...e){const o=new this(r);return e.forEach(a=>o.set(a)),o}static accessor(r){const o=(this[Fr]=this[Fr]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=ht(l);o[s]||(rl(a,l),o[s]=!0)}return E.isArray(r)?r.forEach(i):i(r),this}}Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Rt.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),E.freezeMethods(Rt);const Pe=Rt;function $n(n,r){const e=this||vn,o=r||e,a=Pe.from(o.headers);let i=o.data;return E.forEach(n,function(s){i=s.call(e,i,a.normalize(),r?r.status:void 0)}),a.normalize(),i}function jr(n){return!!(n&&n.__CANCEL__)}function gt(n,r,e){L.call(this,n??"canceled",L.ERR_CANCELED,r,e),this.name="CanceledError"}E.inherits(gt,L,{__CANCEL__:!0});function ol(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new L("Request failed with status code "+e.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const al=_e.isStandardBrowserEnv?function(){return{write:function(e,o,a,i,l,s){const c=[];c.push(e+"="+encodeURIComponent(o)),E.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),E.isString(i)&&c.push("path="+i),E.isString(l)&&c.push("domain="+l),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function il(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ll(n,r){return r?n.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):n}function Hr(n,r){return n&&!il(r)?ll(n,r):r}const sl=_e.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let o;function a(i){let l=i;return r&&(e.setAttribute("href",l),l=e.href),e.setAttribute("href",l),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return o=a(window.location.href),function(l){const s=E.isString(l)?a(l):l;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}();function cl(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function dl(n,r){n=n||10;const e=new Array(n),o=new Array(n);let a=0,i=0,l;return r=r!==void 0?r:1e3,function(c){const d=Date.now(),u=o[i];l||(l=d),e[a]=c,o[a]=d;let p=i,m=0;for(;p!==a;)m+=e[p++],p=p%n;if(a=(a+1)%n,a===i&&(i=(i+1)%n),d-l<r)return;const g=u&&d-u;return g?Math.round(m*1e3/g):void 0}}function Ur(n,r){let e=0;const o=dl(50,250);return a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-e,c=o(s),d=i<=l;e=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a};u[r?"download":"upload"]=!0,n(u)}}const It={http:Ri,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){let a=n.data;const i=Pe.from(n.headers).normalize(),l=n.responseType;let s;function c(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}E.isFormData(a)&&(_e.isStandardBrowserEnv||_e.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(n.auth){const g=n.auth.username||"",b=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const u=Hr(n.baseURL,n.url);d.open(n.method.toUpperCase(),Ar(u,n.params,n.paramsSerializer),!0),d.timeout=n.timeout;function p(){if(!d)return;const g=Pe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:n,request:d};ol(function(k){e(k),c()},function(k){o(k),c()},y),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new L("Request aborted",L.ECONNABORTED,n,d)),d=null)},d.onerror=function(){o(new L("Network Error",L.ERR_NETWORK,n,d)),d=null},d.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Rr;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),o(new L(b,y.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,n,d)),d=null},_e.isStandardBrowserEnv){const g=(n.withCredentials||sl(u))&&n.xsrfCookieName&&al.read(n.xsrfCookieName);g&&i.set(n.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in d&&E.forEach(i.toJSON(),function(b,y){d.setRequestHeader(y,b)}),E.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),l&&l!=="json"&&(d.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&d.addEventListener("progress",Ur(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ur(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=g=>{d&&(o(!g||g.type?new gt(null,n,d):g),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const m=cl(u);if(m&&_e.protocols.indexOf(m)===-1){o(new L("Unsupported protocol "+m+":",L.ERR_BAD_REQUEST,n));return}d.send(a||null)})}};E.forEach(It,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const zr={getAdapter:n=>{n=E.isArray(n)?n:[n];const{length:r}=n;let e,o;for(let a=0;a<r&&(e=n[a],!(o=E.isString(e)?It[e.toLowerCase()]:e));a++);if(!o)throw o===!1?new L(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(E.hasOwnProp(It,e)?`Adapter '${e}' is not available in the build`:`Unknown adapter '${e}'`);if(!E.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:It};function Bn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gt(null,n)}function qr(n){return Bn(n),n.headers=Pe.from(n.headers),n.data=$n.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),zr.getAdapter(n.adapter||vn.adapter)(n).then(function(o){return Bn(n),o.data=$n.call(n,n.transformResponse,o),o.headers=Pe.from(o.headers),o},function(o){return jr(o)||(Bn(n),o&&o.response&&(o.response.data=$n.call(n,n.transformResponse,o.response),o.response.headers=Pe.from(o.response.headers))),Promise.reject(o)})}const Yr=n=>n instanceof Pe?n.toJSON():n;function Ze(n,r){r=r||{};const e={};function o(d,u,p){return E.isPlainObject(d)&&E.isPlainObject(u)?E.merge.call({caseless:p},d,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function a(d,u,p){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d,p)}else return o(d,u,p)}function i(d,u){if(!E.isUndefined(u))return o(void 0,u)}function l(d,u){if(E.isUndefined(u)){if(!E.isUndefined(d))return o(void 0,d)}else return o(void 0,u)}function s(d,u,p){if(p in r)return o(d,u);if(p in n)return o(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials: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:s,headers:(d,u)=>a(Yr(d),Yr(u),!0)};return E.forEach(Object.keys(Object.assign({},n,r)),function(u){const p=c[u]||a,m=p(n[u],r[u],u);E.isUndefined(m)&&p!==s||(e[u]=m)}),e}const Wr="1.5.0",Tn={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Tn[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const Kr={};Tn.transitional=function(r,e,o){function a(i,l){return"[Axios v"+Wr+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(r===!1)throw new L(a(l," has been removed"+(e?" in "+e:"")),L.ERR_DEPRECATED);return e&&!Kr[l]&&(Kr[l]=!0,console.warn(a(l," has been deprecated since v"+e+" and will be removed in the near future"))),r?r(i,l,s):!0}};function ul(n,r,e){if(typeof n!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let a=o.length;for(;a-- >0;){const i=o[a],l=r[i];if(l){const s=n[i],c=s===void 0||l(s,i,n);if(c!==!0)throw new L("option "+i+" must be "+c,L.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}}const Mn={assertOptions:ul,validators:Tn},Ie=Mn.validators;class Ft{constructor(r){this.defaults=r,this.interceptors={request:new Lr,response:new Lr}}request(r,e){typeof r=="string"?(e=e||{},e.url=r):e=r||{},e=Ze(this.defaults,e);const{transitional:o,paramsSerializer:a,headers:i}=e;o!==void 0&&Mn.assertOptions(o,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),a!=null&&(E.isFunction(a)?e.paramsSerializer={serialize:a}:Mn.assertOptions(a,{encode:Ie.function,serialize:Ie.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let l=i&&E.merge(i.common,i[e.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),e.headers=Pe.concat(l,i);const s=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(e)===!1||(c=c&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,p=0,m;if(!c){const b=[qr.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,d),m=b.length,u=Promise.resolve(e);p<m;)u=u.then(b[p++],b[p++]);return u}m=s.length;let g=e;for(p=0;p<m;){const b=s[p++],y=s[p++];try{g=b(g)}catch(x){y.call(this,x);break}}try{u=qr.call(this,g)}catch(b){return Promise.reject(b)}for(p=0,m=d.length;p<m;)u=u.then(d[p++],d[p++]);return u}getUri(r){r=Ze(this.defaults,r);const e=Hr(r.baseURL,r.url);return Ar(e,r.params,r.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(r){Ft.prototype[r]=function(e,o){return this.request(Ze(o||{},{method:r,url:e,data:(o||{}).data}))}}),E.forEach(["post","put","patch"],function(r){function e(o){return function(i,l,s){return this.request(Ze(s||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Ft.prototype[r]=e(),Ft.prototype[r+"Form"]=e(!0)});const jt=Ft;class On{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(i){e=i});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{o.subscribe(s),i=s}).then(a);return l.cancel=function(){o.unsubscribe(i)},l},r(function(i,l,s){o.reason||(o.reason=new gt(i,l,s),e(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const e=this._listeners.indexOf(r);e!==-1&&this._listeners.splice(e,1)}static source(){let r;return{token:new On(function(a){r=a}),cancel:r}}}const fl=On;function pl(n){return function(e){return n.apply(null,e)}}function ml(n){return E.isObject(n)&&n.isAxiosError===!0}const Pn={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(Pn).forEach(([n,r])=>{Pn[r]=n});const hl=Pn;function Gr(n){const r=new jt(n),e=Re(jt.prototype.request,r);return E.extend(e,jt.prototype,r,{allOwnKeys:!0}),E.extend(e,r,null,{allOwnKeys:!0}),e.create=function(a){return Gr(Ze(n,a))},e}const Z=Gr(vn);Z.Axios=jt,Z.CanceledError=gt,Z.CancelToken=fl,Z.isCancel=jr,Z.VERSION=Wr,Z.toFormData=At,Z.AxiosError=L,Z.Cancel=Z.CanceledError,Z.all=function(r){return Promise.all(r)},Z.spread=pl,Z.isAxiosError=ml,Z.mergeConfig=Ze,Z.AxiosHeaders=Pe,Z.formToJSON=n=>Ir(E.isHTMLForm(n)?new FormData(n):n),Z.getAdapter=zr.getAdapter,Z.HttpStatusCode=hl,Z.default=Z;const An=Z,Jr="HttpError",Xr="HttpErrorCanceled";class Ht extends Error{constructor(e,o,a,i){super(e||"");xr(this,"response");xr(this,"status");this.name=i||Jr,this.status=o||0,this.response=a}}function Zr(){const n=t.ref(0),r=t.ref(!1),e=t.ref(0),o=t.ref([]),a=t.ref(""),i=t.ref(!1);return{idx:n,loading:r,maxIdx:e,messages:o,msg:a,showMsg:i,show:(c=[])=>{c&&(o.value=c,e.value=c.length-1,a.value=o.value[n.value],i.value=!0),r.value=!0},hide:()=>{n.value=0,e.value=0,o.value=[],a.value="",r.value=!1}}}let Ln;function Qr(){return Ln===void 0&&(Ln=Zr()),Ln}const Rn=(()=>{const{show:n,hide:r}=Qr();return{show:n,hide:r}})(),gl=n=>{const r=n.withDelay||0;return new Promise(e=>{setTimeout(()=>{e(n)},Math.max(r,0))})},Ut=An.create({baseURL:"/api/v1",paramsSerializer:{indexes:null},responseType:"json",withCredentials:!0});Ut.interceptors.request.use(gl);const Qe=(n,r)=>{const e={skipLoader:!1,withDelay:0,...r},o=window.setTimeout(()=>{e.skipLoader!==!0&&Rn.show()},200);return Ut({...n,...r}).then(a=>a.data).catch(a=>{var i,l;throw An.isAxiosError(a)?new Ht(a.message,(i=a.response)==null?void 0:i.status,(l=a.response)==null?void 0:l.data,An.isCancel(a)?Xr:Jr):a instanceof Error?new Ht(a.message,0):new Ht("An unknown error has occurred.",0)}).finally(()=>{e.skipLoader!==!0&&Rn.hide(),window.clearTimeout(o)})},In={delete(n,r){return Qe({url:n,method:"DELETE"},r||{})},get(n,r,e){return Qe({url:n,method:"GET",params:e},r||{})},patch(n,r,e){return Qe({url:n,data:r,method:"PATCH"},e||{})},post(n,r,e){return Qe({url:n,data:r,method:"POST"},e||{})},put(n,r,e){return Qe({url:n,data:r,method:"PUT"},e||{})}},bl=n=>{Ut.defaults={...Ut.defaults,...n}},eo=n=>n instanceof Ht,to=n=>eo(n)&&n.name===Xr,no="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ro={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=no.charAt(Math.floor(Math.random()*no.length));return r}};function oo(n,r=500){let e=null;return function(...o){e&&clearTimeout(e),e=setTimeout(()=>{n(...o)},r)}}function yl(n,r=500){let e=null;return(...o)=>{e?clearTimeout(e):n.apply(o),e=setTimeout(()=>{e=null},r)}}const ao=(n,r,e)=>{const o=t.getCurrentInstance();if(e&&e.local){const a=t.ref(n[r]);return t.watch(()=>n[r],i=>a.value=i),t.watch(a,i=>{i!==n[r]&&o.emit(`update:${String(r)}`,i)}),a}else return t.computed({get:()=>n[r],set(a){o.emit(`update:${String(r)}`,a)}})},Ae={help:"",label:"",modelValue:void 0,placeholder:""},Be=n=>{const r=t.useAttrs(),e=t.ref(""),o=ao(n,"modelValue",{local:!0}),a=t.computed(()=>r.id||ro.CreateIdAttribute()),i=t.computed(()=>Fn(r,"disabled")),l=t.computed(()=>Fn(r,"required")),s=t.computed(()=>typeof r.name=="string"&&r.name!==""?r.name:a.value),c=t.computed(()=>({labelledby:n.label?`${a.value}-label`:void 0,describedby:n.help?`${a.value}-help`:void 0,errormessage:e.value?`${a.value}-error`:void 0})),d=m=>{m.type==="invalid"&&(e.value=m.target.validationMessage)},u=m=>{if(!e.value)return;const g=m.target;g.checkValidity()?e.value="":e.value=g.validationMessage},p=oo(u,350);return{aria:c,attrs:r,inputID:a,isDisabled:i,isRequired:l,nameAttr:s,modelState:o,errorState:e,onInvalid:d,validate:u,inputValidation:p}},Fn=(n,r)=>n[r]!==void 0&&n[r]!==null&&n[r]!==!1&&n[r]!==0,io=String.raw`^\w+([\-+.']\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$`,lo=String.raw`[0-9]{10}|[0-9]{3}-[0-9]{3}-[0-9]{4}`,so=n=>{const r=parseFloat(n);return isNaN(r)?n:r},wl=n=>{if(typeof n!="string"||n==="")return"";const r=new Date(n);return r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),r.toISOString().slice(0,16)};function xl(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}function z(){return z=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},z.apply(this,arguments)}function De(n,r){if(n==null)return{};var e={},o=Object.keys(n),a,i;for(i=0;i<o.length;i++)a=o[i],!(r.indexOf(a)>=0)&&(e[a]=n[a]);return e}function Cl(n,r){if(n){if(typeof n=="string")return co(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return co(n,r)}}function co(n,r){(r==null||r>n.length)&&(r=n.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=n[e];return o}function Te(n,r){var e;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(e=Cl(n))||r&&n&&typeof n.length=="number"){e&&(n=e);var o=0;return function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=n[Symbol.iterator](),e.next.bind(e)}function de(n,r){if(n in r){for(var e=r[n],o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return typeof e=="function"?e.apply(void 0,a):e}var l=new Error('Tried to handle "'+n+'" but there is no handler defined. Only defined handlers are: '+Object.keys(r).map(function(s){return'"'+s+'"'}).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(l,de),l}var ue;(function(n){n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static"})(ue||(ue={}));var me;(function(n){n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden"})(me||(me={}));function K(n){var r=n.visible,e=r===void 0?!0:r,o=n.features,a=o===void 0?ue.None:o,i=De(n,["visible","features"]);if(e||a&ue.Static&&i.props.static)return zt(i);if(a&ue.RenderStrategy){var l,s,c=(l=i.props.unmount)==null||l?me.Unmount:me.Hidden;return de(c,(s={},s[me.Unmount]=function(){return null},s[me.Hidden]=function(){return zt(z({},i,{props:z({},i.props,{hidden:!0,style:{display:"none"}})}))},s))}return zt(i)}function zt(n){var r=n.props,e=n.attrs,o=n.slots,a=n.slot,i=n.name,l=kl(r,["unmount","static"]),s=l.as,c=De(l,["as"]),d=o.default==null?void 0:o.default(a);if(s==="template"){if(Object.keys(c).length>0||Object.keys(e).length>0){var u=d??[],p=u[0],m=u.slice(1);if(!El(p)||m.length>0)throw new Error(['Passing props on "template"!',"","The current component <"+i+' /> is rendering a "template".',"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(function(g){return" - "+g}).join(`
|
|
5
5
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(function(g){return" - "+g}).join(`
|
|
6
6
|
`)].join(`
|
|
7
|
-
`));return t.cloneVNode(p,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(s,c,d)}function Cl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=Te(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function kl(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var uo=Symbol("StackContext"),et;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(et||(et={}));function fo(){return t.inject(uo,function(){})}function El(n){var r=fo();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(et.AddElement,o),e(function(){return r(et.RemoveElement,o)}))})}function po(n){var r=fo();function e(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(uo,e)}var mo=Symbol("ForcePortalRootContext");function _l(){return t.inject(mo,!1)}var ho=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(mo,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function go(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var jn=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=_l(),l=t.inject(bo,null),s=t.ref(i===!0||l===null?go():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var c=t.ref(null);return El(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&s.value===d&&s.value.children.length<=0){var u;(u=s.value.parentElement)==null||u.removeChild(s.value)}}),po(),function(){if(s.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:s.value},K({props:z({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),bo=Symbol("PortalGroupContext"),Dl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,i=t.reactive({resolveTarget:function(){return r.target}});return t.provide(bo,i),function(){var l=De(r,["target"]);return K({props:l,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),T;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(T||(T={}));var Nl=0;function Sl(){return++Nl}function re(){return Sl()}function Me(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function Hn(n,r){for(var e=Te(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var Un=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),q;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(q||(q={}));var he;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(he||(he={}));var qt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(qt||(qt={}));function Yt(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(Un))}var tt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(tt||(tt={}));function vl(n,r){var e;return r===void 0&&(r=tt.Strict),n===document.body?!1:de(r,(e={},e[tt.Strict]=function(){return n.matches(Un)},e[tt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(Un))return!0;o=o.parentElement}return!1},e))}function bt(n){n==null||n.focus({preventScroll:!0})}function Ne(n,r){var e=Array.isArray(n)?n:Yt(n),o=document.activeElement,a=function(){if(r&(q.First|q.Next))return qt.Next;if(r&(q.Previous|q.Last))return qt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&q.First)return 0;if(r&q.Previous)return Math.max(0,e.indexOf(o))-1;if(r&q.Next)return Math.max(0,e.indexOf(o))+1;if(r&q.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),l=r&q.NoScroll?{preventScroll:!0}:{},s=0,c=e.length,d=void 0;do{var u;if(s>=c||s+c<=0)return he.Error;var p=i+s;if(r&q.WrapAround)p=(p+c)%c;else{if(p<0)return he.Underflow;if(p>=c)return he.Overflow}d=e[p],(u=d)==null||u.focus(l),s+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),he.Success}function Vl(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function i(){if(r.value&&n.value.size===1){var s=e.value.initialFocus,c=document.activeElement;if(s){if(s===c)return}else if(Hn(n.value,c))return;if(o.value=c,s)bt(s);else{for(var d=!1,u=Te(n.value),p;!(p=u()).done;){var m=p.value,g=Ne(m,q.First);if(g===he.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){bt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Me("keydown",function(s){if(r.value&&s.key===T.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var c=Te(n.value),d;!(d=c()).done;){var u=d.value,p=Ne(u,(s.shiftKey?q.Previous:q.Next)|q.WrapAround);if(p===he.Success){a.value=document.activeElement;break}}}}),Me("focus",function(s){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=s.target;d&&d instanceof HTMLElement?Hn(n.value,d)?(a.value=d,bt(d)):(s.preventDefault(),s.stopPropagation(),bt(c)):bt(a.value)}}},!0)}var yo=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",nt=new Set,Fe=new Map;function wo(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function xo(n){var r=Fe.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function $l(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;nt.add(o);for(var a=Te(Fe.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(xo(l),Fe.delete(l))}document.querySelectorAll(yo).forEach(function(s){if(s instanceof HTMLElement){for(var c=Te(nt),d;!(d=c()).done;){var u=d.value;if(s.contains(u))return}nt.size===1&&(Fe.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),wo(s))}}),e(function(){if(nt.delete(o),nt.size>0)document.querySelectorAll(yo).forEach(function(u){if(u instanceof HTMLElement&&!Fe.has(u)){for(var p=Te(nt),m;!(m=p()).done;){var g=m.value;if(u.contains(g))return}Fe.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),wo(u)}});else for(var s=Te(Fe.keys()),c;!(c=s()).done;){var d=c.value;xo(d),Fe.delete(d)}})}})}var Co=Symbol("DescriptionContext");function Bl(){var n=t.inject(Co,null);if(n===null)throw new Error("Missing parent");return n}function Wt(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,i=a===void 0?"Description":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Co,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ko=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,i=a===void 0?t.ref({}):a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=z({},Object.entries(s).reduce(function(u,p){var m,g=p[0],b=p[1];return Object.assign(u,(m={},m[g]=t.unref(b),m))},{}),{id:this.id});return K({props:z({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Bl(),e="headlessui-description-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function V(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var Eo=Symbol("Context"),te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));function Tl(){return rt()!==null}function rt(){return t.inject(Eo,null)}function Kt(n){t.provide(Eo,n)}var le;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(le||(le={}));var _o=Symbol("DialogContext");function yt(n){var r=t.inject(_o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,yt),e}return r}var Gt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Jt=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Gt},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=z({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===le.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=De(o,["open","initialFocus"]),i={open:this.dialogState===le.Open};return t.h(ho,{force:!0},function(){return t.h(jn,function(){return t.h(Dl,{target:r.dialogRef},function(){return t.h(ho,{force:!1},function(){return K({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:ue.RenderStrategy|ue.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=rt(),l=t.computed(function(){if(r.open===Gt&&i!==null){var k;return de(i.value,(k={},k[te.Open]=!0,k[te.Closed]=!1,k))}return r.open}),s=r.open!==Gt||i!==null;if(!s)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(l.value===Gt?void 0:r.open));var c=t.computed(function(){return r.open?le.Open:le.Closed}),d=t.computed(function(){return i!==null?i.value===te.Open:c.value===le.Open}),u=t.ref(null),p=t.ref(c.value===le.Open);t.onUpdated(function(){p.value=c.value===le.Open});var m="headlessui-dialog-"+re(),g=t.computed(function(){return{initialFocus:r.initialFocus}});Vl(a,p,g),$l(u,p),po(function(k,D){var v;return de(k,(v={},v[et.AddElement]=function(){a.value.add(D)},v[et.RemoveElement]=function(){a.value.delete(D)},v))});var b=Wt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),x={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(_o,x),Me("mousedown",function(k){var D=k.target;c.value===le.Open&&a.value.size===1&&(Hn(a.value,D)||(x.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),Me("keydown",function(k){k.key===T.Escape&&c.value===le.Open&&(a.value.size>1||(k.preventDefault(),k.stopPropagation(),x.close()))}),t.watchEffect(function(k){if(c.value===le.Open){var D=document.documentElement.style.overflow,v=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=H+"px",k(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=v})}}),t.watchEffect(function(k){if(c.value===le.Open){var D=V(u);if(D){var v=new IntersectionObserver(function(H){for(var A=Te(H),R;!(R=A()).done;){var M=R.value;M.boundingClientRect.x===0&&M.boundingClientRect.y===0&&M.boundingClientRect.width===0&&M.boundingClientRect.height===0&&x.close()}});v.observe(D),k(function(){return v.disconnect()})}}}),{id:m,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:b,visible:d,open:l,handleClick:function(D){D.stopPropagation()}}}}),Xt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=yt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=yt("DialogOverlay"),e="headlessui-dialog-overlay-"+re();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),zn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=yt("DialogTitle"),e={id:this.id},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=yt("DialogTitle"),e="headlessui-dialog-title-"+re();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function Do(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Zt(n,r){var e=t.ref(Do(n.value.type,n.value.as));return t.onMounted(function(){e.value=Do(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||V(r)&&V(r)instanceof HTMLButtonElement&&!((o=V(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var ne;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ne||(ne={}));var No=Symbol("DisclosureContext");function wt(n){var r=t.inject(No,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,wt),e}return r}var So=Symbol("DisclosurePanelContext");function Ml(){return t.inject(So,null)}var Ol=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-disclosure-button-"+re(),l="headlessui-disclosure-panel-"+re(),s=t.ref(r.defaultOpen?ne.Open:ne.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:i,panelId:l,disclosureState:s,panel:c,button:d,toggleDisclosure:function(){var m;s.value=de(s.value,(m={},m[ne.Open]=ne.Closed,m[ne.Closed]=ne.Open,m))},closeDisclosure:function(){s.value!==ne.Closed&&(s.value=ne.Closed)},close:function(m){u.closeDisclosure();var g=function(){return m?m instanceof HTMLElement?m:m.value instanceof HTMLElement?V(m):V(u.button):V(u.button)}();g==null||g.focus()}};return t.provide(No,u),Kt(t.computed(function(){var p;return de(s.value,(p={},p[ne.Open]=te.Open,p[ne.Closed]=te.Closed,p))})),function(){var p=De(r,["defaultOpen"]),m={open:s.value===ne.Open,close:u.close};return K({props:p,slot:m,slots:o,attrs:a,name:"Disclosure"})}}}),Pl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=wt("DisclosureButton"),e={open:r.disclosureState.value===ne.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===ne.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=wt("DisclosureButton"),i=Ml(),l=i===null?!1:i===a.panelId,s=t.ref(null);return l||t.watchEffect(function(){a.button.value=s.value}),{isWithinPanel:l,id:a.buttonId,el:s,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var d;a.toggleDisclosure(),(d=V(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(l)switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=V(a.button))==null||u.focus();break}else switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case T.Space:d.preventDefault();break}}}}}),Al=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=wt("DisclosurePanel"),e={open:r.disclosureState.value===ne.Open,close:r.close},o={id:this.id,ref:"el"};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=wt("DisclosurePanel");t.provide(So,r.panelId);var e=rt(),o=t.computed(function(){return e!==null?e.value===te.Open:r.disclosureState.value===ne.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Ll(n){throw new Error("Unexpected object: "+n)}var Q;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(Q||(Q={}));function Rl(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,i=function(){switch(n.focus){case Q.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case Q.Previous:{var l=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case Q.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case Q.Last:{var s=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case Q.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case Q.Nothing:return null;default:Ll(n)}}();return i===-1?o:i}function vo(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var i=r.value;if(i&&!(a!==void 0&&!a.value))for(var l=Object.assign(function(c){return e(c)},{acceptNode:e}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,l,!1);s.nextNode();)o(s.currentNode)})}var oe;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(oe||(oe={}));function Il(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var Vo=Symbol("MenuContext");function ot(n){var r=t.inject(Vo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ot),e}return r}var qn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(oe.Closed),l=t.ref(null),s=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),p={menuState:i,buttonRef:l,itemsRef:s,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){i.value=oe.Closed,u.value=null},openMenu:function(){return i.value=oe.Open},goToItem:function(g,b){var y=Rl(g===Q.Specific?{focus:Q.Specific,id:b}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(k){return k.id},resolveDisabled:function(k){return k.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var b=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});b===-1||b===u.value||(u.value=b)},clearSearch:function(){d.value=""},registerItem:function(g,b){c.value.push({id:g,dataRef:b})},unregisterItem:function(g){var b=c.value.slice(),y=u.value!==null?b[u.value]:null,x=b.findIndex(function(k){return k.id===g});x!==-1&&b.splice(x,1),c.value=b,u.value=function(){return x===u.value||y===null?null:b.indexOf(y)}()}};return Me("mousedown",function(m){var g,b,y,x=m.target,k=document.activeElement;i.value===oe.Open&&((g=V(l))!=null&&g.contains(x)||((b=V(s))!=null&&b.contains(x)||p.closeMenu(),!(k!==document.body&&(k!=null&&k.contains(x)))&&(m.defaultPrevented||(y=V(l))==null||y.focus({preventScroll:!0}))))}),t.provide(Vo,p),Kt(t.computed(function(){var m;return de(i.value,(m={},m[oe.Open]=te.Open,m[oe.Closed]=te.Closed,m))})),function(){var m={open:i.value===oe.Open};return K({props:r,slot:m,slots:o,attrs:a,name:"Menu"})}}}),Yn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=ot("MenuButton"),o={open:e.menuState.value===oe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=V(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===oe.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=ot("MenuButton"),i="headlessui-menu-button-"+re();function l(d){switch(d.key){case T.Space:case T.Enter:case T.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.First)});break;case T.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.Last)});break}}function s(d){switch(d.key){case T.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===oe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=V(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),Il(function(){var u;return(u=V(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:c}}}),Wn=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=ot("MenuItems"),a={open:o.menuState.value===oe.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=V(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},l=this.$props;return K({props:z({},l,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=ot("MenuItems"),e="headlessui-menu-items-"+re(),o=t.ref(null);vo({container:t.computed(function(){return V(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===oe.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case T.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case T.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Next);case T.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Previous);case T.Home:case T.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.First);case T.End:case T.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Last);case T.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(c){switch(c.key){case T.Space:c.preventDefault();break}}var l=rt(),s=t.computed(function(){return l!==null?l.value===te.Open:r.menuState.value===oe.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Kn=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i=ot("MenuItem"),l="headlessui-menu-item-"+re(),s=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===l:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,b,y=(g=document.getElementById(l))==null||(b=g.textContent)==null?void 0:b.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return i.registerItem(l,c)}),t.onUnmounted(function(){return i.unregisterItem(l)}),t.watchEffect(function(){i.menuState.value===oe.Open&&s.value&&t.nextTick(function(){var g;return(g=document.getElementById(l))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();i.closeMenu(),t.nextTick(function(){var b;return(b=V(i.buttonRef))==null?void 0:b.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(Q.Nothing);i.goToItem(Q.Specific,l)}function p(){r.disabled||s.value||i.goToItem(Q.Specific,l)}function m(){r.disabled||s.value&&i.goToItem(Q.Nothing)}return function(){var g=r.disabled,b={active:s.value,disabled:g},y={id:l,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:p,onMousemove:p,onPointerleave:m,onMouseleave:m};return K({props:z({},r,y),slot:b,attrs:a,slots:o,name:"MenuItem"})}}}),Y;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(Y||(Y={}));var $o=Symbol("PopoverContext");function xt(n){var r=t.inject($o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+Mo.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xt),e}return r}var Fl=Symbol("PopoverGroupContext");function Bo(){return t.inject(Fl,null)}var To=Symbol("PopoverPanelContext");function jl(){return t.inject(To,null)}var Mo=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-popover-button-"+re(),l="headlessui-popover-panel-"+re(),s=t.ref(Y.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:s,buttonId:i,panelId:l,panel:d,button:c,togglePopover:function(){var x;s.value=de(s.value,(x={},x[Y.Open]=Y.Closed,x[Y.Closed]=Y.Open,x))},closePopover:function(){s.value!==Y.Closed&&(s.value=Y.Closed)},close:function(x){u.closePopover();var k=function(){return x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?V(x):V(u.button):V(u.button)}();k==null||k.focus()}};t.provide($o,u),Kt(t.computed(function(){var y;return de(s.value,(y={},y[Y.Open]=te.Open,y[Y.Closed]=te.Closed,y))}));var p={buttonId:i,panelId:l,close:function(){u.closePopover()}},m=Bo(),g=m==null?void 0:m.registerPopover;function b(){var y,x,k;return(y=m==null?void 0:m.isFocusWithinPopoverGroup())!=null?y:((x=V(c))==null?void 0:x.contains(document.activeElement))||((k=V(d))==null?void 0:k.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(p)}),Me("focus",function(){s.value===Y.Open&&(b()||c&&d&&u.closePopover())},!0),Me("mousedown",function(y){var x,k,D=y.target;if(s.value===Y.Open&&!((x=V(c))!=null&&x.contains(D))&&!((k=V(d))!=null&&k.contains(D))&&(u.closePopover(),!vl(D,tt.Loose))){var v;y.preventDefault(),(v=V(c))==null||v.focus()}}),function(){var y={open:s.value===Y.Open,close:u.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Hl=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=xt("PopoverButton"),e={open:r.popoverState.value===Y.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===Y.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=xt("PopoverButton"),i=Bo(),l=i==null?void 0:i.closeOthers,s=jl(),c=s===null?!1:s===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);Me("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var p=t.ref(null);return c||t.watchEffect(function(){a.button.value=p.value}),{isWithinPanel:c,el:p,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),p),handleKeyDown:function(g){var b,y;if(c){if(a.popoverState.value===Y.Closed)return;switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(b=V(a.button))==null||b.focus();break}}else switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===Y.Closed&&(l==null||l(a.buttonId)),a.togglePopover();break;case T.Escape:if(a.popoverState.value!==Y.Open)return l==null?void 0:l(a.buttonId);if(!V(a.button)||!((y=V(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case T.Tab:if(a.popoverState.value!==Y.Open||!a.panel||!a.button)return;if(g.shiftKey){var x,k;if(!u.value||(x=V(a.button))!=null&&x.contains(u.value)||(k=V(a.panel))!=null&&k.contains(u.value))return;var D=Yt(),v=D.indexOf(u.value),H=D.indexOf(V(a.button));if(H>v)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.Last)}else g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.First);break}},handleKeyUp:function(g){var b,y;if(!c&&(g.key===T.Space&&g.preventDefault(),a.popoverState.value===Y.Open&&a.panel&&a.button))switch(g.key){case T.Tab:if(!u.value||(b=V(a.button))!=null&&b.contains(u.value)||(y=V(a.panel))!=null&&y.contains(u.value))return;var x=Yt(),k=x.indexOf(u.value),D=x.indexOf(V(a.button));if(D>k)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=V(a.button))==null||g.focus()}else{var b;a.popoverState.value===Y.Closed&&(l==null||l(a.buttonId)),(b=V(a.button))==null||b.focus(),a.togglePopover()}}}}}),Ul=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=xt("PopoverPanel"),e={open:r.popoverState.value===Y.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=xt("PopoverPanel");t.provide(To,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var l;if(e&&o.popoverState.value===Y.Open&&o.panel){var s=document.activeElement;(l=V(o.panel))!=null&&l.contains(s)||Ne(V(o.panel),q.First)}}),Me("keydown",function(l){var s;if(o.popoverState.value===Y.Open&&V(o.panel)&&l.key===T.Tab&&document.activeElement&&(s=V(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var c=Ne(V(o.panel),l.shiftKey?q.Previous:q.Next);if(c===he.Underflow){var d;return(d=V(o.button))==null?void 0:d.focus()}else if(c===he.Overflow){if(!V(o.button))return;var u=Yt(),p=u.indexOf(V(o.button)),m=u.splice(p+1).filter(function(g){var b;return!((b=V(o.panel))!=null&&b.contains(g))});Ne(m,q.First)===he.Error&&Ne(document.body,q.First)}}}),Me("focus",function(){var l;e&&o.popoverState.value===Y.Open&&V(o.panel)&&((l=V(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=rt(),i=t.computed(function(){return a!==null?a.value===te.Open:o.popoverState.value===Y.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(s){var c,d;switch(s.key){case T.Escape:if(o.popoverState.value!==Y.Open||!V(o.panel)||!((c=V(o.panel))!=null&&c.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(d=V(o.button))==null||d.focus();break}},visible:i}}}),Oo=Symbol("LabelContext");function Po(){var n=t.inject(Oo,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Po),r}return n}function Gn(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,i=a===void 0?"Label":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Oo,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var Ao=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,i=a===void 0?{}:a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=c.passive,u=De(c,["passive"]),p=z({},Object.entries(s).reduce(function(g,b){var y,x=b[0],k=b[1];return Object.assign(g,(y={},y[x]=t.unref(k),y))},{}),{id:this.id}),m=z({},u,p);return d&&delete m.onClick,K({props:m,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Po(),e="headlessui-label-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),Lo=Symbol("RadioGroupContext");function Ro(n){var r=t.inject(Lo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ro),e}return r}var zl=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=De(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return K({props:z({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),i=t.ref([]),l=Gn({name:"RadioGroupLabel"}),s=Wt({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:i,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(m){return!m.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(m){return t.toRaw(m.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var b;if(r.disabled||c.value===g)return!1;var y=(b=i.value.find(function(x){return t.toRaw(x.propsRef.value)===t.toRaw(g)}))==null?void 0:b.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var b,y=Array.from((b=a.value)==null?void 0:b.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(x,k,D){var v;return Object.assign(x,(v={},v[k.id]=D,v))},{});i.value.push(g),i.value.sort(function(x,k){return y[x.id]-y[k.id]})},unregisterOption:function(g){var b=i.value.findIndex(function(y){return y.id===g});b!==-1&&i.value.splice(b,1)}};t.provide(Lo,d),vo({container:t.computed(function(){return V(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(m){if(a.value&&a.value.contains(m.target)){var g=i.value.filter(function(v){return v.propsRef.disabled===!1}).map(function(v){return v.element});switch(m.key){case T.ArrowLeft:case T.ArrowUp:{m.preventDefault(),m.stopPropagation();var b=Ne(g,q.Previous|q.WrapAround);if(b===he.Success){var y=i.value.find(function(v){return v.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case T.ArrowRight:case T.ArrowDown:{m.preventDefault(),m.stopPropagation();var x=Ne(g,q.Next|q.WrapAround);if(x===he.Success){var k=i.value.find(function(v){return v.element===document.activeElement});k&&d.change(k.propsRef.value)}}break;case T.Space:{m.preventDefault(),m.stopPropagation();var D=i.value.find(function(v){return v.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var p="headlessui-radiogroup-"+re();return{id:p,labelledby:l,describedby:s,el:a,handleKeyDown:u}}}),Ye;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(Ye||(Ye={}));var ql=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=De(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&Ye.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return K({props:z({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=Ro("RadioGroupOption"),o="headlessui-radiogroup-option-"+re(),a=Gn({name:"RadioGroupLabel"}),i=Wt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(Ye.Empty);t.onMounted(function(){return e.registerOption({id:o,element:l,propsRef:s})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var m;return((m=e.firstOption.value)==null?void 0:m.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),p=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:l,labelledby:a,describedby:i,state:c,disabled:u,checked:p,tabIndex:t.computed(function(){return u.value?-1:p.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=Ye.Active,(g=l.value)==null||g.focus())},handleFocus:function(){c.value|=Ye.Active},handleBlur:function(){c.value&=~Ye.Active}}}}),Io=Ao,Jn=ko,Fo=Symbol("GroupContext"),Yl=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(null),l=Gn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=Wt({name:"SwitchDescription"}),c={switchRef:i,labelledby:l,describedby:s};return t.provide(Fo,c),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Wl=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return K({props:z({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,i=t.inject(Fo,null),l="headlessui-switch-"+re();function s(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:l,el:d,type:Zt(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(p){p.preventDefault(),s()},handleKeyUp:function(p){p.key!==T.Tab&&p.preventDefault(),p.key===T.Space&&s()},handleKeyPress:function(p){p.preventDefault()}}}}),Kl=Ao,Gl=ko;function Jl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function jo(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=Te(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Xn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function Qt(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var je;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(je||(je={}));function Xl(n,r){var e=jo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,b){return b-g}),p=u[0],m=p===void 0?0:p;return m}),s=l[0],c=l[1];return s!==0?e.setTimeout(function(){return r(je.Finished)},s+c):r(je.Finished),e.add(function(){return r(je.Cancelled)}),e.dispose}function Ho(n,r,e,o,a,i){var l=jo(),s=i!==void 0?Jl(i):function(){};return Qt.apply(void 0,[n].concat(a)),Xn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Qt.apply(void 0,[n].concat(e)),Xn.apply(void 0,[n].concat(o)),l.add(Xl(n,function(c){return Qt.apply(void 0,[n].concat(o,r)),Xn.apply(void 0,[n].concat(a)),s(c)}))}),l.add(function(){return Qt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(je.Cancelled)}),l.dispose}function We(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Zn=Symbol("TransitionContext"),G;(function(n){n.Visible="visible",n.Hidden="hidden"})(G||(G={}));function Zl(){return t.inject(Zn,null)!==null}function Ql(){var n=t.inject(Zn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function es(){var n=t.inject(Qn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Qn=Symbol("NestingContext");function en(n){return"children"in n?en(n.children):n.value.filter(function(r){var e=r.state;return e===G.Visible}).length>0}function Uo(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(i,l){var s;l===void 0&&(l=me.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===i});c!==-1&&(de(l,(s={},s[me.Unmount]=function(){r.value.splice(c,1)},s[me.Hidden]=function(){r.value[c].state=G.Hidden},s)),!en(r)&&e.value&&(n==null||n()))}function a(i){var l=r.value.find(function(s){var c=s.id;return c===i});return l?l.state!==G.Visible&&(l.state=G.Visible):r.value.push({id:i,state:G.Visible}),function(){return o(i,me.Unmount)}}return{children:r,register:a,unregister:o}}var zo=ue.RenderStrategy,Le=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(Ct,z({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=De(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},i=o;return K({props:z({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:zo,visible:this.state===G.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Zl()&&Tl())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(G.Visible),l=t.computed(function(){return r.unmount?me.Unmount:me.Hidden}),s=Ql(),c=s.show,d=s.appear,u=es(),p=u.register,m=u.unregister,g={value:!0},b=re(),y={value:!1},x=Uo(function(){y.value||(i.value=G.Hidden,m(b),o("afterLeave"))});t.onMounted(function(){var I=p(b);t.onUnmounted(I)}),t.watchEffect(function(){var I;if(l.value===me.Hidden&&b){if(c&&i.value!==G.Visible){i.value=G.Visible;return}de(i.value,(I={},I[G.Hidden]=function(){return m(b)},I[G.Visible]=function(){return p(b)},I))}});var k=We(r.enter),D=We(r.enterFrom),v=We(r.enterTo),H=We(r.entered),A=We(r.leave),R=We(r.leaveFrom),M=We(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===G.Visible){var I=V(a),F=I instanceof Comment&&I.data==="";if(F)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function U(I){var F=g.value&&!d.value,X=V(a);!X||!(X instanceof HTMLElement)||F||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),I(c.value?Ho(X,k,D,v,H,function(ae){y.value=!1,ae===je.Finished&&o("afterEnter")}):Ho(X,A,R,M,H,function(ae){y.value=!1,ae===je.Finished&&(en(x)||(i.value=G.Hidden,m(b),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(I,F,X){U(X),g.value=!1},{immediate:!0})}),t.provide(Qn,x),Kt(t.computed(function(){var I;return de(i.value,(I={},I[G.Visible]=te.Open,I[G.Hidden]=te.Closed,I))})),{el:a,renderAsRoot:!1,state:i}}}),Ct=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=De(e,["show","appear","unmount"]),i={unmount:o};return K({props:z({},i,{as:"template"}),slot:{},slots:z({},this.$slots,{default:function(){return[t.h(Le,z({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,i,a),r.$slots.default)]}}),attrs:{},features:zo,visible:this.state===G.Visible,name:"Transition"})},setup:function(r){var e=rt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return de(e.value,(c={},c[te.Open]=!0,c[te.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?G.Visible:G.Hidden),i=Uo(function(){a.value=G.Hidden}),l={value:!0},s={show:o,appear:t.computed(function(){return r.appear||!l.value})};return t.onMounted(function(){t.watchEffect(function(){l.value=!1,o.value?a.value=G.Visible:en(i)||(a.value=G.Hidden)})}),t.provide(Qn,i),t.provide(Zn,s),{state:a,show:o}}});function qo(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function ts(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function ns(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function rs(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function os(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function as(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function is(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Yo=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function He(n){return n.split("-")[1]}function Wo(n){return n==="y"?"height":"width"}function at(n){return n.split("-")[0]}function tn(n){return["top","bottom"].includes(at(n))?"x":"y"}function Ko(n,r,e){let{reference:o,floating:a}=n;const i=o.x+o.width/2-a.width/2,l=o.y+o.height/2-a.height/2,s=tn(r),c=Wo(s),d=o[c]/2-a[c]/2,u=s==="x";let p;switch(at(r)){case"top":p={x:i,y:o.y-a.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:l};break;case"left":p={x:o.x-a.width,y:l};break;default:p={x:o.x,y:o.y}}switch(He(r)){case"start":p[s]-=d*(e&&u?-1:1);break;case"end":p[s]+=d*(e&&u?-1:1)}return p}const ls=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let d=await l.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:p}=Ko(d,o,c),m=o,g={},b=0;for(let y=0;y<s.length;y++){const{name:x,fn:k}=s[y],{x:D,y:v,data:H,reset:A}=await k({x:u,y:p,initialPlacement:o,placement:m,strategy:a,middlewareData:g,rects:d,platform:l,elements:{reference:n,floating:r}});u=D??u,p=v??p,g={...g,[x]:{...g[x],...H}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):A.rects),{x:u,y:p}=Ko(d,m,c)),y=-1)}return{x:u,y:p,placement:m,strategy:a,middlewareData:g}};function nn(n,r){return typeof n=="function"?n(r):n}function ss(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function rn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Go(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=nn(r,n),b=ss(g),y=s[m?p==="floating"?"reference":"floating":p],x=rn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(y)))==null||e?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:c})),k=p==="floating"?{...l.floating,x:o,y:a}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),v=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},H=rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:D,strategy:c}):k);return{top:(x.top-H.top+b.top)/v.y,bottom:(H.bottom-x.bottom+b.bottom)/v.y,left:(x.left-H.left+b.left)/v.x,right:(H.right-x.right+b.right)/v.x}}const cs=Math.min,ds=Math.max;function Jo(n,r,e){return ds(n,cs(r,e))}const us=["top","right","bottom","left"],Xo=us.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),fs={left:"right",right:"left",bottom:"top",top:"bottom"};function Zo(n){return n.replace(/left|right|bottom|top/g,r=>fs[r])}function ps(n,r,e){e===void 0&&(e=!1);const o=He(n),a=tn(n),i=Wo(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Zo(l)),{main:l,cross:Zo(l)}}const ms={start:"end",end:"start"};function hs(n){return n.replace(/start|end/g,r=>ms[r])}const gs=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:p,allowedPlacements:m=Xo,autoAlignment:g=!0,...b}=nn(n,r),y=p!==void 0||m===Xo?function(F,X,ae){return(F?[...ae.filter(pe=>He(pe)===F),...ae.filter(pe=>He(pe)!==F)]:ae.filter(pe=>at(pe)===pe)).filter(pe=>!F||He(pe)===F||!!X&&hs(pe)!==pe)}(p||null,g,m):m,x=await Go(r,b),k=((e=l.autoPlacement)==null?void 0:e.index)||0,D=y[k];if(D==null)return{};const{main:v,cross:H}=ps(D,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==D)return{reset:{placement:y[0]}};const A=[x[at(D)],x[v],x[H]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:A}],M=y[k+1];if(M)return{data:{index:k+1,overflows:R},reset:{placement:M}};const U=R.map(F=>{const X=He(F.placement);return[F.placement,X&&u?F.overflows.slice(0,2).reduce((ae,pe)=>ae+pe,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),I=((a=U.filter(F=>F[2].slice(0,He(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:a[0])||U[0][0];return I!==s?{data:{index:k+1,overflows:R},reset:{placement:I}}:{}}}},bs=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(i,l){const{placement:s,platform:c,elements:d}=i,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),p=at(s),m=He(s),g=tn(s)==="x",b=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,x=nn(l,i);let{mainAxis:k,crossAxis:D,alignmentAxis:v}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...x};return m&&typeof v=="number"&&(D=m==="end"?-1*v:v),g?{x:D*y,y:k*b}:{x:k*b,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function ys(n){return n==="x"?"y":"x"}const ws=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:k,y:D}=x;return{x:k,y:D}}},...c}=nn(n,r),d={x:e,y:o},u=await Go(r,c),p=tn(at(a)),m=ys(p);let g=d[p],b=d[m];if(i){const x=p==="y"?"bottom":"right";g=Jo(g+u[p==="y"?"top":"left"],g,g-u[x])}if(l){const x=m==="y"?"bottom":"right";b=Jo(b+u[m==="y"?"top":"left"],b,b-u[x])}const y=s.fn({...r,[p]:g,[m]:b});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function Ce(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Se(n){return Ce(n).getComputedStyle(n)}function Qo(n){return n instanceof Ce(n).Node}function Ue(n){return Qo(n)?(n.nodeName||"").toLowerCase():""}function ve(n){return n instanceof Ce(n).HTMLElement}function ge(n){return n instanceof Ce(n).Element}function ea(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function kt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Se(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function xs(n){return["table","td","th"].includes(Ue(n))}function er(n){const r=tr(),e=Se(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function tr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function on(n){return["html","body","#document"].includes(Ue(n))}const ta=Math.min,Et=Math.max,an=Math.round;function na(n){const r=Se(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=ve(n),i=a?n.offsetWidth:e,l=a?n.offsetHeight:o,s=an(e)!==i||an(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function ra(n){return ge(n)?n:n.contextElement}const oa={x:1,y:1};function it(n){const r=ra(n);if(!ve(r))return oa;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=na(r);let l=(i?an(e.width):e.width)/o,s=(i?an(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const aa={x:0,y:0};function ia(n,r,e){var o,a;if(r===void 0&&(r=!0),!tr())return aa;const i=n?Ce(n):window;return!e||r&&e!==i?aa:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function Ke(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=ra(n);let l=oa;r&&(o?ge(o)&&(l=it(o)):l=it(n));const s=ia(i,e,o);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,u=a.width/l.x,p=a.height/l.y;if(i){const m=Ce(i),g=o&&ge(o)?Ce(o):o;let b=m.frameElement;for(;b&&o&&g!==m;){const y=it(b),x=b.getBoundingClientRect(),k=getComputedStyle(b);x.x+=(b.clientLeft+parseFloat(k.paddingLeft))*y.x,x.y+=(b.clientTop+parseFloat(k.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,p*=y.y,c+=x.x,d+=x.y,b=Ce(b).frameElement}}return rn({width:u,height:p,x:c,y:d})}function ze(n){return((Qo(n)?n.ownerDocument:n.document)||window.document).documentElement}function ln(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function la(n){return Ke(ze(n)).left+ln(n).scrollLeft}function lt(n){if(Ue(n)==="html")return n;const r=n.assignedSlot||n.parentNode||ea(n)&&n.host||ze(n);return ea(r)?r.host:r}function sa(n){const r=lt(n);return on(r)?r.ownerDocument.body:ve(r)&&kt(r)?r:sa(r)}function _t(n,r){var e;r===void 0&&(r=[]);const o=sa(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],kt(o)?o:[]):r.concat(o,_t(o))}function ca(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=ze(a),c=l.visualViewport;let d=s.clientWidth,u=s.clientHeight,p=0,m=0;if(c){d=c.width,u=c.height;const g=tr();(!g||g&&i==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}return{width:d,height:u,x:p,y:m}}(n,e);else if(r==="document")o=function(a){const i=ze(a),l=ln(a),s=a.ownerDocument.body,c=Et(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Et(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let u=-l.scrollLeft+la(a);const p=-l.scrollTop;return Se(s).direction==="rtl"&&(u+=Et(i.clientWidth,s.clientWidth)-c),{width:c,height:d,x:u,y:p}}(ze(n));else if(ge(r))o=function(a,i){const l=Ke(a,!0,i==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,d=ve(a)?it(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:s*d.y}}(r,e);else{const a=ia(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return rn(o)}function da(n,r){const e=lt(n);return!(e===r||!ge(e)||on(e))&&(Se(e).position==="fixed"||da(e,r))}function ua(n,r){return ve(n)&&Se(n).position!=="fixed"?r?r(n):n.offsetParent:null}function fa(n,r){const e=Ce(n);if(!ve(n))return e;let o=ua(n,r);for(;o&&xs(o)&&Se(o).position==="static";)o=ua(o,r);return o&&(Ue(o)==="html"||Ue(o)==="body"&&Se(o).position==="static"&&!er(o))?e:o||function(a){let i=lt(a);for(;ve(i)&&!on(i);){if(er(i))return i;i=lt(i)}return null}(n)||e}function Cs(n,r,e){const o=ve(r),a=ze(r),i=e==="fixed",l=Ke(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((Ue(r)!=="body"||kt(a))&&(s=ln(r)),ve(r)){const d=Ke(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=la(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}const ks={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,u){const p=u.get(d);if(p)return p;let m=_t(d).filter(x=>ge(x)&&Ue(x)!=="body"),g=null;const b=Se(d).position==="fixed";let y=b?lt(d):d;for(;ge(y)&&!on(y);){const x=Se(y),k=er(y);k||x.position!=="fixed"||(g=null),(b?!k&&!g:!k&&x.position==="static"&&g&&["absolute","fixed"].includes(g.position)||kt(y)&&!k&&da(d,y))?m=m.filter(D=>D!==y):g=x,y=lt(y)}return u.set(d,m),m}(r,this._c):[].concat(e),l=[...i,o],s=l[0],c=l.reduce((d,u)=>{const p=ca(r,u,a);return d.top=Et(p.top,d.top),d.right=ta(p.right,d.right),d.bottom=ta(p.bottom,d.bottom),d.left=Et(p.left,d.left),d},ca(r,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=ve(e),i=ze(e);if(e===i)return r;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Ue(e)!=="body"||kt(i))&&(l=ln(e)),ve(e))){const d=Ke(e);s=it(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+c.x,y:r.y*s.y-l.scrollTop*s.y+c.y}},isElement:ge,getDimensions:function(n){return na(n)},getOffsetParent:fa,getDocumentElement:ze,getScale:it,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||fa,i=this.getDimensions;return{reference:Cs(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Se(n).direction==="rtl"};function pa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=a||i?[...ge(n)?_t(n):n.contextElement?_t(n.contextElement):[],..._t(r)]:[];c.forEach(m=>{const g=!ge(m)&&m.toString().includes("V");!a||s&&!g||m.addEventListener("scroll",e,{passive:!0}),i&&m.addEventListener("resize",e)});let d,u=null;l&&(u=new ResizeObserver(()=>{e()}),ge(n)&&!s&&u.observe(n),ge(n)||!n.contextElement||s||u.observe(n.contextElement),u.observe(r));let p=s?Ke(n):null;return s&&function m(){const g=Ke(n);!p||g.x===p.x&&g.y===p.y&&g.width===p.width&&g.height===p.height||e(),p=g,d=requestAnimationFrame(m)}(),e(),()=>{var m;c.forEach(g=>{a&&g.removeEventListener("scroll",e),i&&g.removeEventListener("resize",e)}),(m=u)==null||m.disconnect(),u=null,s&&cancelAnimationFrame(d)}}const Es=(n,r,e)=>{const o=new Map,a={platform:ks,...e},i={...a.platform,_c:o};return ls(n,r,{...a,platform:i})};function ma(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ha(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(n,r){const e=ha(n);return Math.round(r*e)/e}function ba(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var M;return(M=t.unref(e.open))!=null?M:!0}),i=t.computed(()=>t.unref(e.middleware)),l=t.computed(()=>{var M;return(M=t.unref(e.placement))!=null?M:"bottom"}),s=t.computed(()=>{var M;return(M=t.unref(e.strategy))!=null?M:"absolute"}),c=t.computed(()=>{var M;return(M=t.unref(e.transform))!=null?M:!0}),d=t.computed(()=>ma(n.value)),u=t.computed(()=>ma(r.value)),p=t.ref(0),m=t.ref(0),g=t.ref(s.value),b=t.ref(l.value),y=t.shallowRef({}),x=t.ref(!1),k=t.computed(()=>{const M={position:g.value,left:"0",top:"0"};if(!u.value)return M;const U=ga(u.value,p.value),I=ga(u.value,m.value);return c.value?{...M,transform:"translate("+U+"px, "+I+"px)",...ha(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:U+"px",top:I+"px"}});let D;function v(){d.value==null||u.value==null||Es(d.value,u.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(M=>{p.value=M.x,m.value=M.y,g.value=M.strategy,b.value=M.placement,y.value=M.middlewareData,x.value=!0})}function H(){typeof D=="function"&&(D(),D=void 0)}function A(){if(H(),o===void 0){v();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,v);return}}function R(){a.value||(x.value=!1)}return t.watch([i,l,s],v,{flush:"sync"}),t.watch([d,u],A,{flush:"sync"}),t.watch(a,R,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(H),{x:t.shallowReadonly(p),y:t.shallowReadonly(m),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(x),floatingStyles:k,update:v}}const _s=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),Ds={class:"py-1"},Ns=["disabled","onClick"],Ss={class:"relative inline-flex items-center gap-x-1.5"},sn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Yo(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=ba(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(qn),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(Yn),{ref_key:"trigger",ref:a,class:"w-8 h-8 bg-white inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[_s,t.createVNode(t.unref(ns),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"wrapper",ref:i,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Wn),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",Ds,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:u,as:"div"},{default:t.withCtx(({active:p})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([p?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",Ss,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Ns)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),vs={class:"px-4 py-5 sm:p-6 text-center"},Vs=["textContent"],$s=["textContent"],ya=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-lg"},[t.createElementVNode("div",vs,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,Vs),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,$s)])])]))),128))],2))}}),Bs={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Ts=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Ms={class:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"},Os={class:"mt-3 text-center sm:mt-5"},Ps={class:"mt-2"},As={class:"mt-5 sm:mt-6"},wa=t.defineComponent({__name:"ContentModal",props:{modelValue:{type:Boolean},title:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=o=>{r("update:modelValue",o)};return(o,a)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:o.modelValue,onClose:a[1]||(a[1]=i=>e(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",Bs,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Ts,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Ms,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",Os,[t.createVNode(t.unref(zn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",Ps,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",As,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:a[0]||(a[0]=i=>e(!1))}," Go back ")])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Ls={key:0,class:"text-red-700/80","aria-hidden":""},be=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Ls,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),se=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-snug font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Rs={key:0,class:"text-sm text-red-700"},Ve=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Rs,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),nr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],st={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Dt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},fe=(n,r=2)=>`000${n}`.slice(r*-1),ke=n=>n===!0?1:0;function xa(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const rr=n=>n instanceof Array?n:[n];function ce(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function j(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function cn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ca(n,r){if(r(n))return n;if(n.parentNode)return Ca(n.parentNode,r)}function dn(n,r){const e=j("div","numInputWrapper"),o=j("input","numInput "+n),a=j("span","arrowUp"),i=j("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const l in r)o.setAttribute(l,r[l]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ye(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const or=()=>{},un=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Is={D:or,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*ke(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:or,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:or,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},ar={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Nt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[Nt.w(n,r,e)]},F:function(n,r,e){return un(Nt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return fe(Nt.h(n,r,e))},H:n=>fe(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[ke(n.getHours()>11)],M:function(n,r){return un(n.getMonth(),!0,r)},S:n=>fe(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>fe(n.getFullYear(),4),d:n=>fe(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>fe(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>fe(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ka=({config:n=st,l10n:r=Dt,isMobile:e=!1})=>(o,a,i)=>{const l=i||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,l):a.split("").map((s,c,d)=>Nt[s]&&d[c-1]!=="\\"?Nt[s](o,l,n):s!=="\\"?s:"").join("")},ir=({config:n=st,l10n:r=Dt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const l=i||r;let s;const c=e;if(e instanceof Date)s=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)s=new Date(e);else if(typeof e=="string"){const d=o||(n||st).dateFormat,u=String(e).trim();if(u==="today")s=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,d);else{s=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let p,m=[];for(let g=0,b=0,y="";g<d.length;g++){const x=d[g],k=x==="\\",D=d[g-1]==="\\"||k;if(ar[x]&&!D){y+=ar[x];const v=new RegExp(y).exec(e);v&&(p=!0)&&m[x!=="Y"?"push":"unshift"]({fn:Is[x],val:v[++b]})}else k||(y+=".");m.forEach(({fn:v,val:H})=>s=v(s,H,l)||s)}s=p?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&s.setHours(0,0,0,0),s};function we(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const Fs=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),js={DAY:864e5};function lr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),i=n.minDate.getMinutes(),l=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<l&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),i=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(i,e)),r===a&&e===i&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const Hs=300;function Us(n,r){const e={config:Object.assign(Object.assign({},st),ee.defaultConfig),l10n:Dt};e.parseDate=ir({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=p,e._positionCalendar=yn,e.changeMonth=pr,e.changeYear=gn,e.clear=mp,e.close=hp,e._createElement=j,e.destroy=gp,e.isEnabled=Je,e.jumpToDate=k,e.open=xp,e.redraw=ei,e.set=_p,e.setDate=Dp,e.toggle=Vp;function o(){e.utils={getDaysInMonth(f=e.currentMonth,h=e.currentYear){return f===1&&(h%4===0&&h%100!==0||h%400===0)?29:e.l10n.daysInMonth[f]}}}function a(){e.element=e.input=n,e.isOpen=!1,Cp(),Qa(),Sp(),Np(),o(),e.isMobile||H(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&p(e.config.noCalendar?e.latestSelectedDateObj:void 0),qe(!1)),l();const f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&f&&yn(),J("onReady")}function i(f){return f.bind(e)}function l(){const f=e.config;f.weekNumbers===!1&&f.showMonths===1||f.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const h=(e.days.offsetWidth+1)*f.showMonths;e.daysContainer.style.width=h+"px",e.calendarContainer.style.width=h+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function s(f){if(e.selectedDates.length===0){const w=e.config.minDate===void 0||we(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),C=lr(e.config);w.setHours(C.hours,C.minutes,C.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}f!==void 0&&f.type!=="blur"&&Tp(f);const h=e._input.value;u(),qe(),e._input.value!==h&&e._debouncedChange()}function c(f,h){return f%12+12*ke(h===e.l10n.amPM[1])}function d(f){switch(f%24){case 0:case 12:return 12;default:return f%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let f=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,h=(parseInt(e.minuteElement.value,10)||0)%60,w=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(f=c(f,e.amPM.textContent));const C=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const _=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;f=Math.min(f,_.getHours()),f===_.getHours()&&(h=Math.min(h,_.getMinutes())),h===_.getMinutes()&&(w=Math.min(w,_.getSeconds()))}if(C){const _=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;f=Math.max(f,_.getHours()),f===_.getHours()&&h<_.getMinutes()&&(h=_.getMinutes()),h===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}m(f,h,w)}function p(f){const h=f||e.latestSelectedDateObj;h&&m(h.getHours(),h.getMinutes(),h.getSeconds())}function m(f,h,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(f%24,h,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=fe(e.config.time_24hr?f:(12+f)%12+12*ke(f%12===0)),e.minuteElement.value=fe(h),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[ke(f>=12)]),e.secondElement!==void 0&&(e.secondElement.value=fe(w)))}function g(f){const h=ye(f),w=parseInt(h.value)+(f.delta||0);(w/1e3>1||f.key==="Enter"&&!/[^\d]/.test(w.toString()))&&gn(w)}function b(f,h,w,C){if(h instanceof Array)return h.forEach(S=>b(f,S,w,C));if(f instanceof Array)return f.forEach(S=>b(S,h,w,C));f.addEventListener(h,w,C),e._handlers.push({remove:()=>f.removeEventListener(h,w)})}function y(){J("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(h=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${h}]`),w=>b(w,"click",e[h]))}),e.isMobile){vp();return}const f=xa(wp,50);if(e._debouncedChange=xa(y,Hs),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",h=>{e.config.mode==="range"&&hr(ye(h))}),b(window.document.body,"keydown",yp),!e.config.inline&&!e.config.static&&b(window,"resize",f),window.ontouchstart!==void 0?b(window.document,"touchstart",mr):b(window.document,"mousedown",mr),b(window.document,"focus",mr,{capture:!0}),e.config.clickOpens===!0&&(b(e._input,"focus",e.open),b(e._input,"click",e.open)),e.daysContainer!==void 0&&(b(e.monthNav,"click",Bp),b(e.monthNav,["keyup","increment"],g),b(e.daysContainer,"click",ti)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const h=w=>ye(w).select();b(e.timeContainer,["increment"],s),b(e.timeContainer,"blur",s,{capture:!0}),b(e.timeContainer,"click",D),b([e.hourElement,e.minuteElement],["focus","click"],h),e.secondElement!==void 0&&b(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&b(e.amPM,"click",w=>{s(w),y()})}e.config.allowInput&&b(e._input,"blur",bp)}function k(f,h){const w=f!==void 0?e.parseDate(f):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),C=e.currentYear,S=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}h&&e.currentYear!==C&&(J("onYearChange"),ae()),h&&(e.currentYear!==C||e.currentMonth!==S)&&J("onMonthChange"),e.redraw()}function D(f){const h=ye(f);~h.className.indexOf("arrow")&&v(f,h.classList.contains("arrowUp")?1:-1)}function v(f,h,w){const C=f&&ye(f),S=w||C&&C.parentNode&&C.parentNode.firstChild,_=br("increment");_.delta=h,S&&S.dispatchEvent(_)}function H(){const f=window.document.createDocumentFragment();if(e.calendarContainer=j("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(f.appendChild(up()),e.innerContainer=j("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:C}=pp();e.innerContainer.appendChild(w),e.weekNumbers=C,e.weekWrapper=w}e.rContainer=j("div","flatpickr-rContainer"),e.rContainer.appendChild(Ga()),e.daysContainer||(e.daysContainer=j("div","flatpickr-days"),e.daysContainer.tabIndex=-1),X(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),f.appendChild(e.innerContainer)}e.config.enableTime&&f.appendChild(fp()),ce(e.calendarContainer,"rangeMode",e.config.mode==="range"),ce(e.calendarContainer,"animate",e.config.animate===!0),ce(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(f);const h=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!h&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const w=j("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(w,e.element),w.appendChild(e.element),e.altInput&&w.appendChild(e.altInput),w.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function A(f,h,w,C){const S=Je(h,!0),_=j("span","flatpickr-day "+f,h.getDate().toString());return _.dateObj=h,_.$i=C,_.setAttribute("aria-label",e.formatDate(h,e.config.ariaDateFormat)),f.indexOf("hidden")===-1&&we(h,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),S?(_.tabIndex=-1,yr(h)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(ce(_,"startRange",e.selectedDates[0]&&we(h,e.selectedDates[0],!0)===0),ce(_,"endRange",e.selectedDates[1]&&we(h,e.selectedDates[1],!0)===0),f==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&$p(h)&&!yr(h)&&_.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&f!=="prevMonthDay"&&w%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(h)+"</span>"),J("onDayCreate",_),_}function R(f){f.focus(),e.config.mode==="range"&&hr(f)}function M(f){const h=f>0?0:e.config.showMonths-1,w=f>0?e.config.showMonths:-1;for(let C=h;C!=w;C+=f){const S=e.daysContainer.children[C],_=f>0?0:S.children.length-1,B=f>0?S.children.length:-1;for(let $=_;$!=B;$+=f){const O=S.children[$];if(O.className.indexOf("hidden")===-1&&Je(O.dateObj))return O}}}function U(f,h){const w=f.className.indexOf("Month")===-1?f.dateObj.getMonth():e.currentMonth,C=h>0?e.config.showMonths:-1,S=h>0?1:-1;for(let _=w-e.currentMonth;_!=C;_+=S){const B=e.daysContainer.children[_],$=w-e.currentMonth===_?f.$i+h:h<0?B.children.length-1:0,O=B.children.length;for(let P=$;P>=0&&P<O&&P!=(h>0?O:-1);P+=S){const W=B.children[P];if(W.className.indexOf("hidden")===-1&&Je(W.dateObj)&&Math.abs(f.$i-P)>=Math.abs(h))return R(W)}}e.changeMonth(S),I(M(S),0)}function I(f,h){const w=bn(document.activeElement||document.body),C=f!==void 0?f:w?document.activeElement:e.selectedDateElem!==void 0&&bn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&bn(e.todayDateElem)?e.todayDateElem:M(h>0?1:-1);C===void 0?e._input.focus():w?U(C,h):R(C)}function F(f,h){const w=(new Date(f,h,1).getDay()-e.l10n.firstDayOfWeek+7)%7,C=e.utils.getDaysInMonth((h-1+12)%12,f),S=e.utils.getDaysInMonth(h,f),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,$=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let P=C+1-w,W=0;for(;P<=C;P++,W++)_.appendChild(A($,new Date(f,h-1,P),P,W));for(P=1;P<=S;P++,W++)_.appendChild(A("",new Date(f,h,P),P,W));for(let ie=S+1;ie<=42-w&&(e.config.showMonths===1||W%7!==0);ie++,W++)_.appendChild(A(O,new Date(f,h+1,ie%S),ie,W));const Ee=j("div","dayContainer");return Ee.appendChild(_),Ee}function X(){if(e.daysContainer===void 0)return;cn(e.daysContainer),e.weekNumbers&&cn(e.weekNumbers);const f=document.createDocumentFragment();for(let h=0;h<e.config.showMonths;h++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),f.appendChild(F(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(f),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&hr()}function ae(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const f=function(h){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&h<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&h>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let h=0;h<12;h++){if(!f(h))continue;const w=j("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,h).getMonth().toString(),w.textContent=un(h,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===h&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function pe(){const f=j("div","flatpickr-month"),h=window.document.createDocumentFragment();let w;e.config.showMonths>1||e.config.monthSelectorType==="static"?w=j("span","cur-month"):(e.monthsDropdownContainer=j("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",B=>{const $=ye(B),O=parseInt($.value,10);e.changeMonth(O-e.currentMonth),J("onMonthChange")}),ae(),w=e.monthsDropdownContainer);const C=dn("cur-year",{tabindex:"-1"}),S=C.getElementsByTagName("input")[0];S.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&S.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(S.setAttribute("max",e.config.maxDate.getFullYear().toString()),S.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=j("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(C),h.appendChild(_),f.appendChild(h),{container:f,yearElement:S,monthElement:w}}function Ka(){cn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let f=e.config.showMonths;f--;){const h=pe();e.yearElements.push(h.yearElement),e.monthElements.push(h.monthElement),e.monthNav.appendChild(h.container)}e.monthNav.appendChild(e.nextMonthNav)}function up(){return e.monthNav=j("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=j("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=j("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ka(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(f){e.__hidePrevMonthArrow!==f&&(ce(e.prevMonthNav,"flatpickr-disabled",f),e.__hidePrevMonthArrow=f)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(f){e.__hideNextMonthArrow!==f&&(ce(e.nextMonthNav,"flatpickr-disabled",f),e.__hideNextMonthArrow=f)}}),e.currentYearElement=e.yearElements[0],xn(),e.monthNav}function fp(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const f=lr(e.config);e.timeContainer=j("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const h=j("span","flatpickr-time-separator",":"),w=dn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const C=dn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=C.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?f.hours:d(f.hours)),e.minuteElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():f.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(w),e.timeContainer.appendChild(h),e.timeContainer.appendChild(C),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const S=dn("flatpickr-second");e.secondElement=S.getElementsByTagName("input")[0],e.secondElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():f.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(S)}return e.config.time_24hr||(e.amPM=j("span","flatpickr-am-pm",e.l10n.amPM[ke((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Ga(){e.weekdayContainer?cn(e.weekdayContainer):e.weekdayContainer=j("div","flatpickr-weekdays");for(let f=e.config.showMonths;f--;){const h=j("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(h)}return Ja(),e.weekdayContainer}function Ja(){if(!e.weekdayContainer)return;const f=e.l10n.firstDayOfWeek;let h=[...e.l10n.weekdays.shorthand];f>0&&f<h.length&&(h=[...h.splice(f,h.length),...h.splice(0,f)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
7
|
+
`));return t.cloneVNode(p,c)}return Array.isArray(d)&&d.length===1?d[0]:d}return t.h(s,c,d)}function kl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=Te(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function El(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var uo=Symbol("StackContext"),et;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(et||(et={}));function fo(){return t.inject(uo,function(){})}function _l(n){var r=fo();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(et.AddElement,o),e(function(){return r(et.RemoveElement,o)}))})}function po(n){var r=fo();function e(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n==null||n.apply(void 0,a),r.apply(void 0,a)}t.provide(uo,e)}var mo=Symbol("ForcePortalRootContext");function Dl(){return t.inject(mo,!1)}var ho=t.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs;return t.provide(mo,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function go(){var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)}var jn=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=Dl(),l=t.inject(bo,null),s=t.ref(i===!0||l===null?go():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var c=t.ref(null);return _l(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&s.value===d&&s.value.children.length<=0){var u;(u=s.value.parentElement)==null||u.removeChild(s.value)}}),po(),function(){if(s.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:s.value},K({props:z({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),bo=Symbol("PortalGroupContext"),Nl=t.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup:function(r,e){var o=e.attrs,a=e.slots,i=t.reactive({resolveTarget:function(){return r.target}});return t.provide(bo,i),function(){var l=De(r,["target"]);return K({props:l,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),T;(function(n){n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab"})(T||(T={}));var Sl=0;function vl(){return++Sl}function re(){return vl()}function Me(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function Hn(n,r){for(var e=Te(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var Un=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?function(n){return n+":not([tabindex='-1']):not([style*='display: none'])"}:function(n){return n+":not([tabindex='-1'])"}).join(","),q;(function(n){n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll"})(q||(q={}));var he;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(he||(he={}));var qt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(qt||(qt={}));function Yt(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(Un))}var tt;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(tt||(tt={}));function Vl(n,r){var e;return r===void 0&&(r=tt.Strict),n===document.body?!1:de(r,(e={},e[tt.Strict]=function(){return n.matches(Un)},e[tt.Loose]=function(){for(var o=n;o!==null;){if(o.matches(Un))return!0;o=o.parentElement}return!1},e))}function bt(n){n==null||n.focus({preventScroll:!0})}function Ne(n,r){var e=Array.isArray(n)?n:Yt(n),o=document.activeElement,a=function(){if(r&(q.First|q.Next))return qt.Next;if(r&(q.Previous|q.Last))return qt.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&q.First)return 0;if(r&q.Previous)return Math.max(0,e.indexOf(o))-1;if(r&q.Next)return Math.max(0,e.indexOf(o))+1;if(r&q.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),l=r&q.NoScroll?{preventScroll:!0}:{},s=0,c=e.length,d=void 0;do{var u;if(s>=c||s+c<=0)return he.Error;var p=i+s;if(r&q.WrapAround)p=(p+c)%c;else{if(p<0)return he.Underflow;if(p>=c)return he.Overflow}d=e[p],(u=d)==null||u.focus(l),s+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),he.Success}function $l(n,r,e){r===void 0&&(r=t.ref(!0)),e===void 0&&(e=t.ref({}));var o=t.ref(typeof window<"u"?document.activeElement:null),a=t.ref(null);function i(){if(r.value&&n.value.size===1){var s=e.value.initialFocus,c=document.activeElement;if(s){if(s===c)return}else if(Hn(n.value,c))return;if(o.value=c,s)bt(s);else{for(var d=!1,u=Te(n.value),p;!(p=u()).done;){var m=p.value,g=Ne(m,q.First);if(g===he.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){bt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Me("keydown",function(s){if(r.value&&s.key===T.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var c=Te(n.value),d;!(d=c()).done;){var u=d.value,p=Ne(u,(s.shiftKey?q.Previous:q.Next)|q.WrapAround);if(p===he.Success){a.value=document.activeElement;break}}}}),Me("focus",function(s){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=s.target;d&&d instanceof HTMLElement?Hn(n.value,d)?(a.value=d,bt(d)):(s.preventDefault(),s.stopPropagation(),bt(c)):bt(a.value)}}},!0)}var yo=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",nt=new Set,Fe=new Map;function wo(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function xo(n){var r=Fe.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function Bl(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;nt.add(o);for(var a=Te(Fe.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(xo(l),Fe.delete(l))}document.querySelectorAll(yo).forEach(function(s){if(s instanceof HTMLElement){for(var c=Te(nt),d;!(d=c()).done;){var u=d.value;if(s.contains(u))return}nt.size===1&&(Fe.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),wo(s))}}),e(function(){if(nt.delete(o),nt.size>0)document.querySelectorAll(yo).forEach(function(u){if(u instanceof HTMLElement&&!Fe.has(u)){for(var p=Te(nt),m;!(m=p()).done;){var g=m.value;if(u.contains(g))return}Fe.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),wo(u)}});else for(var s=Te(Fe.keys()),c;!(c=s()).done;){var d=c.value;xo(d),Fe.delete(d)}})}})}var Co=Symbol("DescriptionContext");function Tl(){var n=t.inject(Co,null);if(n===null)throw new Error("Missing parent");return n}function Wt(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?t.ref({}):e,a=r.name,i=a===void 0?"Description":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Co,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var ko=t.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Description":e,a=r.slot,i=a===void 0?t.ref({}):a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=z({},Object.entries(s).reduce(function(u,p){var m,g=p[0],b=p[1];return Object.assign(u,(m={},m[g]=t.unref(b),m))},{}),{id:this.id});return K({props:z({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Tl(),e="headlessui-description-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function V(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var Eo=Symbol("Context"),te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));function Ml(){return rt()!==null}function rt(){return t.inject(Eo,null)}function Kt(n){t.provide(Eo,n)}var le;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(le||(le={}));var _o=Symbol("DialogContext");function yt(n){var r=t.inject(_o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,yt),e}return r}var Gt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Jt=t.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Gt},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=z({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===le.Open?!0:void 0,"aria-labelledby":this.titleId,"aria-describedby":this.describedby,onClick:this.handleClick}),o=this.$props,a=De(o,["open","initialFocus"]),i={open:this.dialogState===le.Open};return t.h(ho,{force:!0},function(){return t.h(jn,function(){return t.h(Nl,{target:r.dialogRef},function(){return t.h(ho,{force:!1},function(){return K({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:ue.RenderStrategy|ue.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=rt(),l=t.computed(function(){if(r.open===Gt&&i!==null){var k;return de(i.value,(k={},k[te.Open]=!0,k[te.Closed]=!1,k))}return r.open}),s=r.open!==Gt||i!==null;if(!s)throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+(l.value===Gt?void 0:r.open));var c=t.computed(function(){return r.open?le.Open:le.Closed}),d=t.computed(function(){return i!==null?i.value===te.Open:c.value===le.Open}),u=t.ref(null),p=t.ref(c.value===le.Open);t.onUpdated(function(){p.value=c.value===le.Open});var m="headlessui-dialog-"+re(),g=t.computed(function(){return{initialFocus:r.initialFocus}});$l(a,p,g),Bl(u,p),po(function(k,D){var v;return de(k,(v={},v[et.AddElement]=function(){a.value.add(D)},v[et.RemoveElement]=function(){a.value.delete(D)},v))});var b=Wt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),x={titleId:y,dialogState:c,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(_o,x),Me("mousedown",function(k){var D=k.target;c.value===le.Open&&a.value.size===1&&(Hn(a.value,D)||(x.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),Me("keydown",function(k){k.key===T.Escape&&c.value===le.Open&&(a.value.size>1||(k.preventDefault(),k.stopPropagation(),x.close()))}),t.watchEffect(function(k){if(c.value===le.Open){var D=document.documentElement.style.overflow,v=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=H+"px",k(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=v})}}),t.watchEffect(function(k){if(c.value===le.Open){var D=V(u);if(D){var v=new IntersectionObserver(function(H){for(var A=Te(H),R;!(R=A()).done;){var M=R.value;M.boundingClientRect.x===0&&M.boundingClientRect.y===0&&M.boundingClientRect.width===0&&M.boundingClientRect.height===0&&x.close()}});v.observe(D),k(function(){return v.disconnect()})}}}),{id:m,el:u,dialogRef:u,containers:a,dialogState:c,titleId:y,describedby:b,visible:d,open:l,handleClick:function(D){D.stopPropagation()}}}}),Xt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=yt("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=yt("DialogOverlay"),e="headlessui-dialog-overlay-"+re();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),zn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=yt("DialogTitle"),e={id:this.id},o=this.$props;return K({props:z({},o,e),slot:{open:r.dialogState.value===le.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=yt("DialogTitle"),e="headlessui-dialog-title-"+re();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function Do(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Zt(n,r){var e=t.ref(Do(n.value.type,n.value.as));return t.onMounted(function(){e.value=Do(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||V(r)&&V(r)instanceof HTMLButtonElement&&!((o=V(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var ne;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ne||(ne={}));var No=Symbol("DisclosureContext");function wt(n){var r=t.inject(No,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,wt),e}return r}var So=Symbol("DisclosurePanelContext");function Ol(){return t.inject(So,null)}var Pl=t.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-disclosure-button-"+re(),l="headlessui-disclosure-panel-"+re(),s=t.ref(r.defaultOpen?ne.Open:ne.Closed),c=t.ref(null),d=t.ref(null),u={buttonId:i,panelId:l,disclosureState:s,panel:c,button:d,toggleDisclosure:function(){var m;s.value=de(s.value,(m={},m[ne.Open]=ne.Closed,m[ne.Closed]=ne.Open,m))},closeDisclosure:function(){s.value!==ne.Closed&&(s.value=ne.Closed)},close:function(m){u.closeDisclosure();var g=function(){return m?m instanceof HTMLElement?m:m.value instanceof HTMLElement?V(m):V(u.button):V(u.button)}();g==null||g.focus()}};return t.provide(No,u),Kt(t.computed(function(){var p;return de(s.value,(p={},p[ne.Open]=te.Open,p[ne.Closed]=te.Closed,p))})),function(){var p=De(r,["defaultOpen"]),m={open:s.value===ne.Open,close:u.close};return K({props:p,slot:m,slots:o,attrs:a,name:"Disclosure"})}}}),Al=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=wt("DisclosureButton"),e={open:r.disclosureState.value===ne.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onClick:this.handleClick,onKeydown:this.handleKeyDown}:{id:this.id,ref:"el",type:this.type,"aria-expanded":this.$props.disabled?void 0:r.disclosureState.value===ne.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onClick:this.handleClick,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=wt("DisclosureButton"),i=Ol(),l=i===null?!1:i===a.panelId,s=t.ref(null);return l||t.watchEffect(function(){a.button.value=s.value}),{isWithinPanel:l,id:a.buttonId,el:s,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var d;a.toggleDisclosure(),(d=V(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var u;if(!r.disabled)if(l)switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(u=V(a.button))==null||u.focus();break}else switch(d.key){case T.Space:case T.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case T.Space:d.preventDefault();break}}}}}),Ll=t.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r=wt("DisclosurePanel"),e={open:r.disclosureState.value===ne.Open,close:r.close},o={id:this.id,ref:"el"};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=wt("DisclosurePanel");t.provide(So,r.panelId);var e=rt(),o=t.computed(function(){return e!==null?e.value===te.Open:r.disclosureState.value===ne.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Rl(n){throw new Error("Unexpected object: "+n)}var Q;(function(n){n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing"})(Q||(Q={}));function Il(n,r){var e=r.resolveItems();if(e.length<=0)return null;var o=r.resolveActiveIndex(),a=o??-1,i=function(){switch(n.focus){case Q.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case Q.Previous:{var l=e.slice().reverse().findIndex(function(c,d,u){return a!==-1&&u.length-d-1>=a?!1:!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case Q.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case Q.Last:{var s=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case Q.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case Q.Nothing:return null;default:Rl(n)}}();return i===-1?o:i}function vo(n){var r=n.container,e=n.accept,o=n.walk,a=n.enabled;t.watchEffect(function(){var i=r.value;if(i&&!(a!==void 0&&!a.value))for(var l=Object.assign(function(c){return e(c)},{acceptNode:e}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,l,!1);s.nextNode();)o(s.currentNode)})}var oe;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(oe||(oe={}));function Fl(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var Vo=Symbol("MenuContext");function ot(n){var r=t.inject(Vo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ot),e}return r}var qn=t.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(oe.Closed),l=t.ref(null),s=t.ref(null),c=t.ref([]),d=t.ref(""),u=t.ref(null),p={menuState:i,buttonRef:l,itemsRef:s,items:c,searchQuery:d,activeItemIndex:u,closeMenu:function(){i.value=oe.Closed,u.value=null},openMenu:function(){return i.value=oe.Open},goToItem:function(g,b){var y=Il(g===Q.Specific?{focus:Q.Specific,id:b}:{focus:g},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return u.value},resolveId:function(k){return k.id},resolveDisabled:function(k){return k.dataRef.disabled}});d.value===""&&u.value===y||(d.value="",u.value=y)},search:function(g){d.value+=g.toLowerCase();var b=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});b===-1||b===u.value||(u.value=b)},clearSearch:function(){d.value=""},registerItem:function(g,b){c.value.push({id:g,dataRef:b})},unregisterItem:function(g){var b=c.value.slice(),y=u.value!==null?b[u.value]:null,x=b.findIndex(function(k){return k.id===g});x!==-1&&b.splice(x,1),c.value=b,u.value=function(){return x===u.value||y===null?null:b.indexOf(y)}()}};return Me("mousedown",function(m){var g,b,y,x=m.target,k=document.activeElement;i.value===oe.Open&&((g=V(l))!=null&&g.contains(x)||((b=V(s))!=null&&b.contains(x)||p.closeMenu(),!(k!==document.body&&(k!=null&&k.contains(x)))&&(m.defaultPrevented||(y=V(l))==null||y.focus({preventScroll:!0}))))}),t.provide(Vo,p),Kt(t.computed(function(){var m;return de(i.value,(m={},m[oe.Open]=te.Open,m[oe.Closed]=te.Closed,m))})),function(){var m={open:i.value===oe.Open};return K({props:r,slot:m,slots:o,attrs:a,name:"Menu"})}}}),Yn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=ot("MenuButton"),o={open:e.menuState.value===oe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=V(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===oe.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=ot("MenuButton"),i="headlessui-menu-button-"+re();function l(d){switch(d.key){case T.Space:case T.Enter:case T.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.First)});break;case T.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=V(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.Last)});break}}function s(d){switch(d.key){case T.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===oe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=V(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),Fl(function(){var u;return(u=V(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:c}}}),Wn=t.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var r,e,o=ot("MenuItems"),a={open:o.menuState.value===oe.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=V(o.buttonRef))==null?void 0:e.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},l=this.$props;return K({props:z({},l,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=ot("MenuItems"),e="headlessui-menu-items-"+re(),o=t.ref(null);vo({container:t.computed(function(){return V(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===oe.Open}),accept:function(d){return d.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(d){d.setAttribute("role","none")}});function a(c){switch(o.value&&clearTimeout(o.value),c.key){case T.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case T.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,u=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(u))==null||d.click()}r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Next);case T.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Previous);case T.Home:case T.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.First);case T.End:case T.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(Q.Last);case T.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var p;return(p=V(r.buttonRef))==null?void 0:p.focus({preventScroll:!0})});break;case T.Tab:c.preventDefault(),c.stopPropagation();break;default:c.key.length===1&&(r.search(c.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(c){switch(c.key){case T.Space:c.preventDefault();break}}var l=rt(),s=t.computed(function(){return l!==null?l.value===te.Open:r.menuState.value===oe.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Kn=t.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(r,e){var o=e.slots,a=e.attrs,i=ot("MenuItem"),l="headlessui-menu-item-"+re(),s=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===l:!1}),c=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var g,b,y=(g=document.getElementById(l))==null||(b=g.textContent)==null?void 0:b.toLowerCase().trim();y!==void 0&&(c.value.textValue=y)}),t.onMounted(function(){return i.registerItem(l,c)}),t.onUnmounted(function(){return i.unregisterItem(l)}),t.watchEffect(function(){i.menuState.value===oe.Open&&s.value&&t.nextTick(function(){var g;return(g=document.getElementById(l))==null||g.scrollIntoView==null?void 0:g.scrollIntoView({block:"nearest"})})});function d(g){if(r.disabled)return g.preventDefault();i.closeMenu(),t.nextTick(function(){var b;return(b=V(i.buttonRef))==null?void 0:b.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(Q.Nothing);i.goToItem(Q.Specific,l)}function p(){r.disabled||s.value||i.goToItem(Q.Specific,l)}function m(){r.disabled||s.value&&i.goToItem(Q.Nothing)}return function(){var g=r.disabled,b={active:s.value,disabled:g},y={id:l,role:"menuitem",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,onClick:d,onFocus:u,onPointermove:p,onMousemove:p,onPointerleave:m,onMouseleave:m};return K({props:z({},r,y),slot:b,attrs:a,slots:o,name:"MenuItem"})}}}),Y;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(Y||(Y={}));var $o=Symbol("PopoverContext");function xt(n){var r=t.inject($o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+Mo.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xt),e}return r}var jl=Symbol("PopoverGroupContext");function Bo(){return t.inject(jl,null)}var To=Symbol("PopoverPanelContext");function Hl(){return t.inject(To,null)}var Mo=t.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i="headlessui-popover-button-"+re(),l="headlessui-popover-panel-"+re(),s=t.ref(Y.Closed),c=t.ref(null),d=t.ref(null),u={popoverState:s,buttonId:i,panelId:l,panel:d,button:c,togglePopover:function(){var x;s.value=de(s.value,(x={},x[Y.Open]=Y.Closed,x[Y.Closed]=Y.Open,x))},closePopover:function(){s.value!==Y.Closed&&(s.value=Y.Closed)},close:function(x){u.closePopover();var k=function(){return x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?V(x):V(u.button):V(u.button)}();k==null||k.focus()}};t.provide($o,u),Kt(t.computed(function(){var y;return de(s.value,(y={},y[Y.Open]=te.Open,y[Y.Closed]=te.Closed,y))}));var p={buttonId:i,panelId:l,close:function(){u.closePopover()}},m=Bo(),g=m==null?void 0:m.registerPopover;function b(){var y,x,k;return(y=m==null?void 0:m.isFocusWithinPopoverGroup())!=null?y:((x=V(c))==null?void 0:x.contains(document.activeElement))||((k=V(d))==null?void 0:k.contains(document.activeElement))}return t.watchEffect(function(){return g==null?void 0:g(p)}),Me("focus",function(){s.value===Y.Open&&(b()||c&&d&&u.closePopover())},!0),Me("mousedown",function(y){var x,k,D=y.target;if(s.value===Y.Open&&!((x=V(c))!=null&&x.contains(D))&&!((k=V(d))!=null&&k.contains(D))&&(u.closePopover(),!Vl(D,tt.Loose))){var v;y.preventDefault(),(v=V(c))==null||v.focus()}}),function(){var y={open:s.value===Y.Open,close:u.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Ul=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=xt("PopoverButton"),e={open:r.popoverState.value===Y.Open},o=this.isWithinPanel?{ref:"el",type:this.type,onKeydown:this.handleKeyDown,onClick:this.handleClick}:{ref:"el",id:r.buttonId,type:this.type,"aria-expanded":this.$props.disabled?void 0:r.popoverState.value===Y.Open,"aria-controls":V(r.panel)?r.panelId:void 0,disabled:this.$props.disabled?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=xt("PopoverButton"),i=Bo(),l=i==null?void 0:i.closeOthers,s=Hl(),c=s===null?!1:s===a.panelId,d=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);Me("focus",function(){u.value=d.value,d.value=document.activeElement},!0);var p=t.ref(null);return c||t.watchEffect(function(){a.button.value=p.value}),{isWithinPanel:c,el:p,type:Zt(t.computed(function(){return{as:r.as,type:o.type}}),p),handleKeyDown:function(g){var b,y;if(c){if(a.popoverState.value===Y.Closed)return;switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.closePopover(),(b=V(a.button))==null||b.focus();break}}else switch(g.key){case T.Space:case T.Enter:g.preventDefault(),g.stopPropagation(),a.popoverState.value===Y.Closed&&(l==null||l(a.buttonId)),a.togglePopover();break;case T.Escape:if(a.popoverState.value!==Y.Open)return l==null?void 0:l(a.buttonId);if(!V(a.button)||!((y=V(a.button))!=null&&y.contains(document.activeElement)))return;g.preventDefault(),g.stopPropagation(),a.closePopover();break;case T.Tab:if(a.popoverState.value!==Y.Open||!a.panel||!a.button)return;if(g.shiftKey){var x,k;if(!u.value||(x=V(a.button))!=null&&x.contains(u.value)||(k=V(a.panel))!=null&&k.contains(u.value))return;var D=Yt(),v=D.indexOf(u.value),H=D.indexOf(V(a.button));if(H>v)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.Last)}else g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.First);break}},handleKeyUp:function(g){var b,y;if(!c&&(g.key===T.Space&&g.preventDefault(),a.popoverState.value===Y.Open&&a.panel&&a.button))switch(g.key){case T.Tab:if(!u.value||(b=V(a.button))!=null&&b.contains(u.value)||(y=V(a.panel))!=null&&y.contains(u.value))return;var x=Yt(),k=x.indexOf(u.value),D=x.indexOf(V(a.button));if(D>k)return;g.preventDefault(),g.stopPropagation(),Ne(V(a.panel),q.Last);break}},handleClick:function(){if(!r.disabled)if(c){var g;a.closePopover(),(g=V(a.button))==null||g.focus()}else{var b;a.popoverState.value===Y.Closed&&(l==null||l(a.buttonId)),(b=V(a.button))==null||b.focus(),a.togglePopover()}}}}}),zl=t.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1}},render:function(){var r=xt("PopoverPanel"),e={open:r.popoverState.value===Y.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return K({props:z({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ue.RenderStrategy|ue.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=xt("PopoverPanel");t.provide(To,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var l;if(e&&o.popoverState.value===Y.Open&&o.panel){var s=document.activeElement;(l=V(o.panel))!=null&&l.contains(s)||Ne(V(o.panel),q.First)}}),Me("keydown",function(l){var s;if(o.popoverState.value===Y.Open&&V(o.panel)&&l.key===T.Tab&&document.activeElement&&(s=V(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var c=Ne(V(o.panel),l.shiftKey?q.Previous:q.Next);if(c===he.Underflow){var d;return(d=V(o.button))==null?void 0:d.focus()}else if(c===he.Overflow){if(!V(o.button))return;var u=Yt(),p=u.indexOf(V(o.button)),m=u.splice(p+1).filter(function(g){var b;return!((b=V(o.panel))!=null&&b.contains(g))});Ne(m,q.First)===he.Error&&Ne(document.body,q.First)}}}),Me("focus",function(){var l;e&&o.popoverState.value===Y.Open&&V(o.panel)&&((l=V(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=rt(),i=t.computed(function(){return a!==null?a.value===te.Open:o.popoverState.value===Y.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(s){var c,d;switch(s.key){case T.Escape:if(o.popoverState.value!==Y.Open||!V(o.panel)||!((c=V(o.panel))!=null&&c.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(d=V(o.button))==null||d.focus();break}},visible:i}}}),Oo=Symbol("LabelContext");function Po(){var n=t.inject(Oo,null);if(n===null){var r=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Po),r}return n}function Gn(n){var r=n===void 0?{}:n,e=r.slot,o=e===void 0?{}:e,a=r.name,i=a===void 0?"Label":a,l=r.props,s=l===void 0?{}:l,c=t.ref([]);function d(u){return c.value.push(u),function(){var p=c.value.indexOf(u);p!==-1&&c.value.splice(p,1)}}return t.provide(Oo,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var Ao=t.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1}},render:function(){var r=this.context,e=r.name,o=e===void 0?"Label":e,a=r.slot,i=a===void 0?{}:a,l=r.props,s=l===void 0?{}:l,c=this.$props,d=c.passive,u=De(c,["passive"]),p=z({},Object.entries(s).reduce(function(g,b){var y,x=b[0],k=b[1];return Object.assign(g,(y={},y[x]=t.unref(k),y))},{}),{id:this.id}),m=z({},u,p);return d&&delete m.onClick,K({props:m,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=Po(),e="headlessui-label-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),Lo=Symbol("RadioGroupContext");function Ro(n){var r=t.inject(Lo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ro),e}return r}var ql=t.defineComponent({name:"RadioGroup",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},render:function(){var r=this.$props,e=De(r,["modelValue","disabled"]),o={ref:"el",id:this.id,role:"radiogroup","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onKeydown:this.handleKeyDown};return K({props:z({},e,o),slot:{},attrs:this.$attrs,slots:this.$slots,name:"RadioGroup"})},setup:function(r,e){var o=e.emit,a=t.ref(null),i=t.ref([]),l=Gn({name:"RadioGroupLabel"}),s=Wt({name:"RadioGroupDescription"}),c=t.computed(function(){return r.modelValue}),d={options:i,value:c,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(m){return!m.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(m){return t.toRaw(m.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(g){var b;if(r.disabled||c.value===g)return!1;var y=(b=i.value.find(function(x){return t.toRaw(x.propsRef.value)===t.toRaw(g)}))==null?void 0:b.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",g),!0)},registerOption:function(g){var b,y=Array.from((b=a.value)==null?void 0:b.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(x,k,D){var v;return Object.assign(x,(v={},v[k.id]=D,v))},{});i.value.push(g),i.value.sort(function(x,k){return y[x.id]-y[k.id]})},unregisterOption:function(g){var b=i.value.findIndex(function(y){return y.id===g});b!==-1&&i.value.splice(b,1)}};t.provide(Lo,d),vo({container:t.computed(function(){return V(a)}),accept:function(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(g){g.setAttribute("role","none")}});function u(m){if(a.value&&a.value.contains(m.target)){var g=i.value.filter(function(v){return v.propsRef.disabled===!1}).map(function(v){return v.element});switch(m.key){case T.ArrowLeft:case T.ArrowUp:{m.preventDefault(),m.stopPropagation();var b=Ne(g,q.Previous|q.WrapAround);if(b===he.Success){var y=i.value.find(function(v){return v.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case T.ArrowRight:case T.ArrowDown:{m.preventDefault(),m.stopPropagation();var x=Ne(g,q.Next|q.WrapAround);if(x===he.Success){var k=i.value.find(function(v){return v.element===document.activeElement});k&&d.change(k.propsRef.value)}}break;case T.Space:{m.preventDefault(),m.stopPropagation();var D=i.value.find(function(v){return v.element===document.activeElement});D&&d.change(D.propsRef.value)}break}}}var p="headlessui-radiogroup-"+re();return{id:p,labelledby:l,describedby:s,el:a,handleKeyDown:u}}}),Ye;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(Ye||(Ye={}));var Yl=t.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},render:function(){var r=this.$props,e=De(r,["value","disabled"]),o={checked:this.checked,disabled:this.disabled,active:!!(this.state&Ye.Active)},a={id:this.id,ref:"el",role:"radio","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelledby,"aria-describedby":this.describedby,"aria-disabled":this.disabled?!0:void 0,tabIndex:this.tabIndex,onClick:this.disabled?void 0:this.handleClick,onFocus:this.disabled?void 0:this.handleFocus,onBlur:this.disabled?void 0:this.handleBlur};return K({props:z({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=Ro("RadioGroupOption"),o="headlessui-radiogroup-option-"+re(),a=Gn({name:"RadioGroupLabel"}),i=Wt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(Ye.Empty);t.onMounted(function(){return e.registerOption({id:o,element:l,propsRef:s})}),t.onUnmounted(function(){return e.unregisterOption(o)});var d=t.computed(function(){var m;return((m=e.firstOption.value)==null?void 0:m.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),p=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:l,labelledby:a,describedby:i,state:c,disabled:u,checked:p,tabIndex:t.computed(function(){return u.value?-1:p.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var g;e.change(r.value)&&(c.value|=Ye.Active,(g=l.value)==null||g.focus())},handleFocus:function(){c.value|=Ye.Active},handleBlur:function(){c.value&=~Ye.Active}}}}),Io=Ao,Jn=ko,Fo=Symbol("GroupContext"),Wl=t.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=t.ref(null),l=Gn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=Wt({name:"SwitchDescription"}),c={switchRef:i,labelledby:l,describedby:s};return t.provide(Fo,c),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Kl=t.defineComponent({name:"Switch",emits:{"update:modelValue":function(r){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var r={checked:this.$props.modelValue},e={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return K({props:z({},this.$props,e),slot:r,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(r,e){var o=e.emit,a=e.attrs,i=t.inject(Fo,null),l="headlessui-switch-"+re();function s(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:l,el:d,type:Zt(t.computed(function(){return{as:r.as,type:a.type}}),d),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(p){p.preventDefault(),s()},handleKeyUp:function(p){p.key!==T.Tab&&p.preventDefault(),p.key===T.Space&&s()},handleKeyPress:function(p){p.preventDefault()}}}}),Gl=Ao,Jl=ko;function Xl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function jo(){var n=[],r={requestAnimationFrame:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=requestAnimationFrame.apply(void 0,arguments);r.add(function(){return cancelAnimationFrame(e)})}),nextFrame:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r.requestAnimationFrame(function(){r.requestAnimationFrame.apply(r,a)})},setTimeout:function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o}(function(){var e=setTimeout.apply(void 0,arguments);r.add(function(){return clearTimeout(e)})}),add:function(o){n.push(o)},dispose:function(){for(var o=Te(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Xn(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).add.apply(r,o)}function Qt(n){for(var r,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];n&&o.length>0&&(r=n.classList).remove.apply(r,o)}var je;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(je||(je={}));function Zl(n,r){var e=jo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(d){var u=d.split(",").filter(Boolean).map(function(g){return g.includes("ms")?parseFloat(g):parseFloat(g)*1e3}).sort(function(g,b){return b-g}),p=u[0],m=p===void 0?0:p;return m}),s=l[0],c=l[1];return s!==0?e.setTimeout(function(){return r(je.Finished)},s+c):r(je.Finished),e.add(function(){return r(je.Cancelled)}),e.dispose}function Ho(n,r,e,o,a,i){var l=jo(),s=i!==void 0?Xl(i):function(){};return Qt.apply(void 0,[n].concat(a)),Xn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Qt.apply(void 0,[n].concat(e)),Xn.apply(void 0,[n].concat(o)),l.add(Zl(n,function(c){return Qt.apply(void 0,[n].concat(o,r)),Xn.apply(void 0,[n].concat(a)),s(c)}))}),l.add(function(){return Qt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(je.Cancelled)}),l.dispose}function We(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Zn=Symbol("TransitionContext"),G;(function(n){n.Visible="visible",n.Hidden="hidden"})(G||(G={}));function Ql(){return t.inject(Zn,null)!==null}function es(){var n=t.inject(Zn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function ts(){var n=t.inject(Qn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Qn=Symbol("NestingContext");function en(n){return"children"in n?en(n.children):n.value.filter(function(r){var e=r.state;return e===G.Visible}).length>0}function Uo(n){var r=t.ref([]),e=t.ref(!1);t.onMounted(function(){return e.value=!0}),t.onUnmounted(function(){return e.value=!1});function o(i,l){var s;l===void 0&&(l=me.Hidden);var c=r.value.findIndex(function(d){var u=d.id;return u===i});c!==-1&&(de(l,(s={},s[me.Unmount]=function(){r.value.splice(c,1)},s[me.Hidden]=function(){r.value[c].state=G.Hidden},s)),!en(r)&&e.value&&(n==null||n()))}function a(i){var l=r.value.find(function(s){var c=s.id;return c===i});return l?l.state!==G.Visible&&(l.state=G.Visible):r.value.push({id:i,state:G.Visible}),function(){return o(i,me.Unmount)}}return{children:r,register:a,unregister:o}}var zo=ue.RenderStrategy,Le=t.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this;if(this.renderAsRoot)return t.h(Ct,z({},this.$props,{onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}}),this.$slots);var e=this.$props,o=De(e,["appear","show","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),a={ref:"el"},i=o;return K({props:z({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:zo,visible:this.state===G.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Ql()&&Ml())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(G.Visible),l=t.computed(function(){return r.unmount?me.Unmount:me.Hidden}),s=es(),c=s.show,d=s.appear,u=ts(),p=u.register,m=u.unregister,g={value:!0},b=re(),y={value:!1},x=Uo(function(){y.value||(i.value=G.Hidden,m(b),o("afterLeave"))});t.onMounted(function(){var I=p(b);t.onUnmounted(I)}),t.watchEffect(function(){var I;if(l.value===me.Hidden&&b){if(c&&i.value!==G.Visible){i.value=G.Visible;return}de(i.value,(I={},I[G.Hidden]=function(){return m(b)},I[G.Visible]=function(){return p(b)},I))}});var k=We(r.enter),D=We(r.enterFrom),v=We(r.enterTo),H=We(r.entered),A=We(r.leave),R=We(r.leaveFrom),M=We(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===G.Visible){var I=V(a),F=I instanceof Comment&&I.data==="";if(F)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function U(I){var F=g.value&&!d.value,X=V(a);!X||!(X instanceof HTMLElement)||F||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),I(c.value?Ho(X,k,D,v,H,function(ae){y.value=!1,ae===je.Finished&&o("afterEnter")}):Ho(X,A,R,M,H,function(ae){y.value=!1,ae===je.Finished&&(en(x)||(i.value=G.Hidden,m(b),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(I,F,X){U(X),g.value=!1},{immediate:!0})}),t.provide(Qn,x),Kt(t.computed(function(){var I;return de(i.value,(I={},I[G.Visible]=te.Open,I[G.Hidden]=te.Closed,I))})),{el:a,renderAsRoot:!1,state:i}}}),Ct=t.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:function(){return!0},afterEnter:function(){return!0},beforeLeave:function(){return!0},afterLeave:function(){return!0}},render:function(){var r=this,e=this.$props,o=e.unmount,a=De(e,["show","appear","unmount"]),i={unmount:o};return K({props:z({},i,{as:"template"}),slot:{},slots:z({},this.$slots,{default:function(){return[t.h(Le,z({onBeforeEnter:function(){return r.$emit("beforeEnter")},onAfterEnter:function(){return r.$emit("afterEnter")},onBeforeLeave:function(){return r.$emit("beforeLeave")},onAfterLeave:function(){return r.$emit("afterLeave")}},r.$attrs,i,a),r.$slots.default)]}}),attrs:{},features:zo,visible:this.state===G.Visible,name:"Transition"})},setup:function(r){var e=rt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return de(e.value,(c={},c[te.Open]=!0,c[te.Closed]=!1,c))}return r.show});t.watchEffect(function(){if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});var a=t.ref(o.value?G.Visible:G.Hidden),i=Uo(function(){a.value=G.Hidden}),l={value:!0},s={show:o,appear:t.computed(function(){return r.appear||!l.value})};return t.onMounted(function(){t.watchEffect(function(){l.value=!1,o.value?a.value=G.Visible:en(i)||(a.value=G.Hidden)})}),t.provide(Qn,i),t.provide(Zn,s),{state:a,show:o}}});function qo(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})])}function ns(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"})])}function rs(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})])}function os(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function as(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function is(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])}function ls(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Yo=n=>{const r=t.ref(n),e=t.computed(()=>o.value.length>0),o=t.computed(()=>r.value.map(a=>({...a,disabled:a.disabled!==void 0?typeof a.disabled=="boolean"?a.disabled:a.disabled():!1,show:a.show!==void 0?typeof a.show=="boolean"?a.show:a.show():!0})).filter(a=>a.show));return{actions:o,hasActions:e}};function He(n){return n.split("-")[1]}function Wo(n){return n==="y"?"height":"width"}function at(n){return n.split("-")[0]}function tn(n){return["top","bottom"].includes(at(n))?"x":"y"}function Ko(n,r,e){let{reference:o,floating:a}=n;const i=o.x+o.width/2-a.width/2,l=o.y+o.height/2-a.height/2,s=tn(r),c=Wo(s),d=o[c]/2-a[c]/2,u=s==="x";let p;switch(at(r)){case"top":p={x:i,y:o.y-a.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:l};break;case"left":p={x:o.x-a.width,y:l};break;default:p={x:o.x,y:o.y}}switch(He(r)){case"start":p[s]-=d*(e&&u?-1:1);break;case"end":p[s]+=d*(e&&u?-1:1)}return p}const ss=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let d=await l.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:p}=Ko(d,o,c),m=o,g={},b=0;for(let y=0;y<s.length;y++){const{name:x,fn:k}=s[y],{x:D,y:v,data:H,reset:A}=await k({x:u,y:p,initialPlacement:o,placement:m,strategy:a,middlewareData:g,rects:d,platform:l,elements:{reference:n,floating:r}});u=D??u,p=v??p,g={...g,[x]:{...g[x],...H}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):A.rects),{x:u,y:p}=Ko(d,m,c)),y=-1)}return{x:u,y:p,placement:m,strategy:a,middlewareData:g}};function nn(n,r){return typeof n=="function"?n(r):n}function cs(n){return typeof n!="number"?function(r){return{top:0,right:0,bottom:0,left:0,...r}}(n):{top:n,right:n,bottom:n,left:n}}function rn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Go(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=n,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=nn(r,n),b=cs(g),y=s[m?p==="floating"?"reference":"floating":p],x=rn(await i.getClippingRect({element:(e=await(i.isElement==null?void 0:i.isElement(y)))==null||e?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:c})),k=p==="floating"?{...l.floating,x:o,y:a}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),v=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},H=rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:D,strategy:c}):k);return{top:(x.top-H.top+b.top)/v.y,bottom:(H.bottom-x.bottom+b.bottom)/v.y,left:(x.left-H.left+b.left)/v.x,right:(H.right-x.right+b.right)/v.x}}const ds=Math.min,us=Math.max;function Jo(n,r,e){return us(n,ds(r,e))}const fs=["top","right","bottom","left"],Xo=fs.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),ps={left:"right",right:"left",bottom:"top",top:"bottom"};function Zo(n){return n.replace(/left|right|bottom|top/g,r=>ps[r])}function ms(n,r,e){e===void 0&&(e=!1);const o=He(n),a=tn(n),i=Wo(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Zo(l)),{main:l,cross:Zo(l)}}const hs={start:"end",end:"start"};function gs(n){return n.replace(/start|end/g,r=>hs[r])}const bs=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(r){var e,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:p,allowedPlacements:m=Xo,autoAlignment:g=!0,...b}=nn(n,r),y=p!==void 0||m===Xo?function(F,X,ae){return(F?[...ae.filter(pe=>He(pe)===F),...ae.filter(pe=>He(pe)!==F)]:ae.filter(pe=>at(pe)===pe)).filter(pe=>!F||He(pe)===F||!!X&&gs(pe)!==pe)}(p||null,g,m):m,x=await Go(r,b),k=((e=l.autoPlacement)==null?void 0:e.index)||0,D=y[k];if(D==null)return{};const{main:v,cross:H}=ms(D,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==D)return{reset:{placement:y[0]}};const A=[x[at(D)],x[v],x[H]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:A}],M=y[k+1];if(M)return{data:{index:k+1,overflows:R},reset:{placement:M}};const U=R.map(F=>{const X=He(F.placement);return[F.placement,X&&u?F.overflows.slice(0,2).reduce((ae,pe)=>ae+pe,0):F.overflows[0],F.overflows]}).sort((F,X)=>F[1]-X[1]),I=((a=U.filter(F=>F[2].slice(0,He(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:a[0])||U[0][0];return I!==s?{data:{index:k+1,overflows:R},reset:{placement:I}}:{}}}},ys=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:e,y:o}=r,a=await async function(i,l){const{placement:s,platform:c,elements:d}=i,u=await(c.isRTL==null?void 0:c.isRTL(d.floating)),p=at(s),m=He(s),g=tn(s)==="x",b=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,x=nn(l,i);let{mainAxis:k,crossAxis:D,alignmentAxis:v}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...x};return m&&typeof v=="number"&&(D=m==="end"?-1*v:v),g?{x:D*y,y:k*b}:{x:k*b,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function ws(n){return n==="x"?"y":"x"}const xs=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:k,y:D}=x;return{x:k,y:D}}},...c}=nn(n,r),d={x:e,y:o},u=await Go(r,c),p=tn(at(a)),m=ws(p);let g=d[p],b=d[m];if(i){const x=p==="y"?"bottom":"right";g=Jo(g+u[p==="y"?"top":"left"],g,g-u[x])}if(l){const x=m==="y"?"bottom":"right";b=Jo(b+u[m==="y"?"top":"left"],b,b-u[x])}const y=s.fn({...r,[p]:g,[m]:b});return{...y,data:{x:y.x-e,y:y.y-o}}}}};function Ce(n){var r;return((r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Se(n){return Ce(n).getComputedStyle(n)}function Qo(n){return n instanceof Ce(n).Node}function Ue(n){return Qo(n)?(n.nodeName||"").toLowerCase():""}function ve(n){return n instanceof Ce(n).HTMLElement}function ge(n){return n instanceof Ce(n).Element}function ea(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function kt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Se(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function Cs(n){return["table","td","th"].includes(Ue(n))}function er(n){const r=tr(),e=Se(n);return e.transform!=="none"||e.perspective!=="none"||!r&&!!e.backdropFilter&&e.backdropFilter!=="none"||!r&&!!e.filter&&e.filter!=="none"||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function tr(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function on(n){return["html","body","#document"].includes(Ue(n))}const ta=Math.min,Et=Math.max,an=Math.round;function na(n){const r=Se(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=ve(n),i=a?n.offsetWidth:e,l=a?n.offsetHeight:o,s=an(e)!==i||an(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function ra(n){return ge(n)?n:n.contextElement}const oa={x:1,y:1};function it(n){const r=ra(n);if(!ve(r))return oa;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=na(r);let l=(i?an(e.width):e.width)/o,s=(i?an(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const aa={x:0,y:0};function ia(n,r,e){var o,a;if(r===void 0&&(r=!0),!tr())return aa;const i=n?Ce(n):window;return!e||r&&e!==i?aa:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function Ke(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=ra(n);let l=oa;r&&(o?ge(o)&&(l=it(o)):l=it(n));const s=ia(i,e,o);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,u=a.width/l.x,p=a.height/l.y;if(i){const m=Ce(i),g=o&&ge(o)?Ce(o):o;let b=m.frameElement;for(;b&&o&&g!==m;){const y=it(b),x=b.getBoundingClientRect(),k=getComputedStyle(b);x.x+=(b.clientLeft+parseFloat(k.paddingLeft))*y.x,x.y+=(b.clientTop+parseFloat(k.paddingTop))*y.y,c*=y.x,d*=y.y,u*=y.x,p*=y.y,c+=x.x,d+=x.y,b=Ce(b).frameElement}}return rn({width:u,height:p,x:c,y:d})}function ze(n){return((Qo(n)?n.ownerDocument:n.document)||window.document).documentElement}function ln(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function la(n){return Ke(ze(n)).left+ln(n).scrollLeft}function lt(n){if(Ue(n)==="html")return n;const r=n.assignedSlot||n.parentNode||ea(n)&&n.host||ze(n);return ea(r)?r.host:r}function sa(n){const r=lt(n);return on(r)?r.ownerDocument.body:ve(r)&&kt(r)?r:sa(r)}function _t(n,r){var e;r===void 0&&(r=[]);const o=sa(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],kt(o)?o:[]):r.concat(o,_t(o))}function ca(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=ze(a),c=l.visualViewport;let d=s.clientWidth,u=s.clientHeight,p=0,m=0;if(c){d=c.width,u=c.height;const g=tr();(!g||g&&i==="fixed")&&(p=c.offsetLeft,m=c.offsetTop)}return{width:d,height:u,x:p,y:m}}(n,e);else if(r==="document")o=function(a){const i=ze(a),l=ln(a),s=a.ownerDocument.body,c=Et(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=Et(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let u=-l.scrollLeft+la(a);const p=-l.scrollTop;return Se(s).direction==="rtl"&&(u+=Et(i.clientWidth,s.clientWidth)-c),{width:c,height:d,x:u,y:p}}(ze(n));else if(ge(r))o=function(a,i){const l=Ke(a,!0,i==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,d=ve(a)?it(a):{x:1,y:1};return{width:a.clientWidth*d.x,height:a.clientHeight*d.y,x:c*d.x,y:s*d.y}}(r,e);else{const a=ia(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return rn(o)}function da(n,r){const e=lt(n);return!(e===r||!ge(e)||on(e))&&(Se(e).position==="fixed"||da(e,r))}function ua(n,r){return ve(n)&&Se(n).position!=="fixed"?r?r(n):n.offsetParent:null}function fa(n,r){const e=Ce(n);if(!ve(n))return e;let o=ua(n,r);for(;o&&Cs(o)&&Se(o).position==="static";)o=ua(o,r);return o&&(Ue(o)==="html"||Ue(o)==="body"&&Se(o).position==="static"&&!er(o))?e:o||function(a){let i=lt(a);for(;ve(i)&&!on(i);){if(er(i))return i;i=lt(i)}return null}(n)||e}function ks(n,r,e){const o=ve(r),a=ze(r),i=e==="fixed",l=Ke(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((Ue(r)!=="body"||kt(a))&&(s=ln(r)),ve(r)){const d=Ke(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=la(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}const Es={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,u){const p=u.get(d);if(p)return p;let m=_t(d).filter(x=>ge(x)&&Ue(x)!=="body"),g=null;const b=Se(d).position==="fixed";let y=b?lt(d):d;for(;ge(y)&&!on(y);){const x=Se(y),k=er(y);k||x.position!=="fixed"||(g=null),(b?!k&&!g:!k&&x.position==="static"&&g&&["absolute","fixed"].includes(g.position)||kt(y)&&!k&&da(d,y))?m=m.filter(D=>D!==y):g=x,y=lt(y)}return u.set(d,m),m}(r,this._c):[].concat(e),l=[...i,o],s=l[0],c=l.reduce((d,u)=>{const p=ca(r,u,a);return d.top=Et(p.top,d.top),d.right=ta(p.right,d.right),d.bottom=ta(p.bottom,d.bottom),d.left=Et(p.left,d.left),d},ca(r,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=ve(e),i=ze(e);if(e===i)return r;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((Ue(e)!=="body"||kt(i))&&(l=ln(e)),ve(e))){const d=Ke(e);s=it(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+c.x,y:r.y*s.y-l.scrollTop*s.y+c.y}},isElement:ge,getDimensions:function(n){return na(n)},getOffsetParent:fa,getDocumentElement:ze,getScale:it,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||fa,i=this.getDimensions;return{reference:ks(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Se(n).direction==="rtl"};function pa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=o,c=a||i?[...ge(n)?_t(n):n.contextElement?_t(n.contextElement):[],..._t(r)]:[];c.forEach(m=>{const g=!ge(m)&&m.toString().includes("V");!a||s&&!g||m.addEventListener("scroll",e,{passive:!0}),i&&m.addEventListener("resize",e)});let d,u=null;l&&(u=new ResizeObserver(()=>{e()}),ge(n)&&!s&&u.observe(n),ge(n)||!n.contextElement||s||u.observe(n.contextElement),u.observe(r));let p=s?Ke(n):null;return s&&function m(){const g=Ke(n);!p||g.x===p.x&&g.y===p.y&&g.width===p.width&&g.height===p.height||e(),p=g,d=requestAnimationFrame(m)}(),e(),()=>{var m;c.forEach(g=>{a&&g.removeEventListener("scroll",e),i&&g.removeEventListener("resize",e)}),(m=u)==null||m.disconnect(),u=null,s&&cancelAnimationFrame(d)}}const _s=(n,r,e)=>{const o=new Map,a={platform:Es,...e},i={...a.platform,_c:o};return ss(n,r,{...a,platform:i})};function ma(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ha(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(n,r){const e=ha(n);return Math.round(r*e)/e}function ba(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var M;return(M=t.unref(e.open))!=null?M:!0}),i=t.computed(()=>t.unref(e.middleware)),l=t.computed(()=>{var M;return(M=t.unref(e.placement))!=null?M:"bottom"}),s=t.computed(()=>{var M;return(M=t.unref(e.strategy))!=null?M:"absolute"}),c=t.computed(()=>{var M;return(M=t.unref(e.transform))!=null?M:!0}),d=t.computed(()=>ma(n.value)),u=t.computed(()=>ma(r.value)),p=t.ref(0),m=t.ref(0),g=t.ref(s.value),b=t.ref(l.value),y=t.shallowRef({}),x=t.ref(!1),k=t.computed(()=>{const M={position:g.value,left:"0",top:"0"};if(!u.value)return M;const U=ga(u.value,p.value),I=ga(u.value,m.value);return c.value?{...M,transform:"translate("+U+"px, "+I+"px)",...ha(u.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:U+"px",top:I+"px"}});let D;function v(){d.value==null||u.value==null||_s(d.value,u.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(M=>{p.value=M.x,m.value=M.y,g.value=M.strategy,b.value=M.placement,y.value=M.middlewareData,x.value=!0})}function H(){typeof D=="function"&&(D(),D=void 0)}function A(){if(H(),o===void 0){v();return}if(d.value!=null&&u.value!=null){D=o(d.value,u.value,v);return}}function R(){a.value||(x.value=!1)}return t.watch([i,l,s],v,{flush:"sync"}),t.watch([d,u],A,{flush:"sync"}),t.watch(a,R,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(H),{x:t.shallowReadonly(p),y:t.shallowReadonly(m),strategy:t.shallowReadonly(g),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(x),floatingStyles:k,update:v}}const Ds=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),Ns={class:"py-1"},Ss=["disabled","onClick"],vs={class:"relative inline-flex items-center gap-x-1.5"},sn=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Yo(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=ba(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(qn),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(Yn),{ref_key:"trigger",ref:a,class:"w-8 h-8 bg-white inline-flex items-center justify-center text-gray-700 rounded-full hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",disabled:!t.unref(o)},{default:t.withCtx(()=>[Ds,t.createVNode(t.unref(rs),{class:"w-5 h-5","aria-hidden":"true"})]),_:1},8,["disabled"]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"wrapper",ref:i,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Wn),{class:"w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none"},{default:t.withCtx(()=>[t.createElementVNode("div",Ns,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,u)=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:u,as:"div"},{default:t.withCtx(({active:p})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([p?"bg-gray-100 text-gray-900":"text-gray-700","block w-full text-left px-4 py-2 text-sm font-semibold disabled:cursor-not-allowed"]),onClick:d.onClick},[t.createElementVNode("span",vs,[d.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(d.label),1)])],10,Ss)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),Vs={class:"px-4 py-5 sm:p-6 text-center"},$s=["textContent"],Bs=["textContent"],ya=t.defineComponent({__name:"Cards",props:{cards:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["mt-5 grid grid-cols-1 gap-5","lg:grid-cols-"+r.cards.length])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.cards,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"bg-white overflow-hidden shadow rounded-lg"},[t.createElementVNode("div",Vs,[t.createElementVNode("dl",null,[t.createElementVNode("dd",{class:"mt-1 text-3xl leading-9 font-semibold text-xy-blue",textContent:t.toDisplayString(o.primary)},null,8,$s),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,Bs)])])]))),128))],2))}}),Ts={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Ms=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Os={class:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6"},Ps={class:"mt-3 text-center sm:mt-5"},As={class:"mt-2"},Ls={class:"mt-5 sm:mt-6"},wa=t.defineComponent({__name:"ContentModal",props:{modelValue:{type:Boolean},title:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=o=>{r("update:modelValue",o)};return(o,a)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:o.modelValue,onClose:a[1]||(a[1]=i=>e(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",Ts,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Ms,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Os,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",Ps,[t.createVNode(t.unref(zn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",As,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",Ls,[t.createElementVNode("button",{type:"button",class:"inline-flex justify-center w-full xy-btn",onClick:a[0]||(a[0]=i=>e(!1))}," Go back ")])])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Rs={key:0,class:"text-red-700/80","aria-hidden":""},be=t.defineComponent({__name:"InputLabel",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"label"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>e.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Rs,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),se=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"text-sm leading-snug font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),Is={key:0,class:"text-sm text-red-700"},Ve=t.defineComponent({__name:"InputError",props:{text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createElementBlock("p",Is,t.toDisplayString(r.text),1)):t.createCommentVNode("",!0)}}),nr=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],st={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:n=>typeof console<"u"&&console.warn(n),getWeek:n=>{const r=new Date(n.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Dt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:n=>{const r=n%100;if(r>3&&r<21)return"th";switch(r%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},fe=(n,r=2)=>`000${n}`.slice(r*-1),ke=n=>n===!0?1:0;function xa(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const rr=n=>n instanceof Array?n:[n];function ce(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function j(n,r,e){const o=window.document.createElement(n);return r=r||"",e=e||"",o.className=r,e!==void 0&&(o.textContent=e),o}function cn(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ca(n,r){if(r(n))return n;if(n.parentNode)return Ca(n.parentNode,r)}function dn(n,r){const e=j("div","numInputWrapper"),o=j("input","numInput "+n),a=j("span","arrowUp"),i=j("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?o.type="number":(o.type="text",o.pattern="\\d*"),r!==void 0)for(const l in r)o.setAttribute(l,r[l]);return e.appendChild(o),e.appendChild(a),e.appendChild(i),e}function ye(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const or=()=>{},un=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Fs={D:or,F:function(n,r,e){n.setMonth(e.months.longhand.indexOf(r))},G:(n,r)=>{n.setHours(parseFloat(r))},H:(n,r)=>{n.setHours(parseFloat(r))},J:(n,r)=>{n.setDate(parseFloat(r))},K:(n,r,e)=>{n.setHours(n.getHours()%12+12*ke(new RegExp(e.amPM[1],"i").test(r)))},M:function(n,r,e){n.setMonth(e.months.shorthand.indexOf(r))},S:(n,r)=>{n.setSeconds(parseFloat(r))},U:(n,r)=>new Date(parseFloat(r)*1e3),W:function(n,r,e){const o=parseInt(r),a=new Date(n.getFullYear(),0,2+(o-1)*7,0,0,0,0);return a.setDate(a.getDate()-a.getDay()+e.firstDayOfWeek),a},Y:(n,r)=>{n.setFullYear(parseFloat(r))},Z:(n,r)=>new Date(r),d:(n,r)=>{n.setDate(parseFloat(r))},h:(n,r)=>{n.setHours(parseFloat(r))},i:(n,r)=>{n.setMinutes(parseFloat(r))},j:(n,r)=>{n.setDate(parseFloat(r))},l:or,m:(n,r)=>{n.setMonth(parseFloat(r)-1)},n:(n,r)=>{n.setMonth(parseFloat(r)-1)},s:(n,r)=>{n.setSeconds(parseFloat(r))},u:(n,r)=>new Date(parseFloat(r)),w:or,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},ar={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Nt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[Nt.w(n,r,e)]},F:function(n,r,e){return un(Nt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return fe(Nt.h(n,r,e))},H:n=>fe(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[ke(n.getHours()>11)],M:function(n,r){return un(n.getMonth(),!0,r)},S:n=>fe(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>fe(n.getFullYear(),4),d:n=>fe(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>fe(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>fe(n.getMonth()+1),n:n=>n.getMonth()+1,s:n=>n.getSeconds(),u:n=>n.getTime(),w:n=>n.getDay(),y:n=>String(n.getFullYear()).substring(2)},ka=({config:n=st,l10n:r=Dt,isMobile:e=!1})=>(o,a,i)=>{const l=i||r;return n.formatDate!==void 0&&!e?n.formatDate(o,a,l):a.split("").map((s,c,d)=>Nt[s]&&d[c-1]!=="\\"?Nt[s](o,l,n):s!=="\\"?s:"").join("")},ir=({config:n=st,l10n:r=Dt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const l=i||r;let s;const c=e;if(e instanceof Date)s=new Date(e.getTime());else if(typeof e!="string"&&e.toFixed!==void 0)s=new Date(e);else if(typeof e=="string"){const d=o||(n||st).dateFormat,u=String(e).trim();if(u==="today")s=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,d);else{s=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let p,m=[];for(let g=0,b=0,y="";g<d.length;g++){const x=d[g],k=x==="\\",D=d[g-1]==="\\"||k;if(ar[x]&&!D){y+=ar[x];const v=new RegExp(y).exec(e);v&&(p=!0)&&m[x!=="Y"?"push":"unshift"]({fn:Fs[x],val:v[++b]})}else k||(y+=".");m.forEach(({fn:v,val:H})=>s=v(s,H,l)||s)}s=p?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${c}`));return}return a===!0&&s.setHours(0,0,0,0),s};function we(n,r,e=!0){return e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):n.getTime()-r.getTime()}const js=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),Hs={DAY:864e5};function lr(n){let r=n.defaultHour,e=n.defaultMinute,o=n.defaultSeconds;if(n.minDate!==void 0){const a=n.minDate.getHours(),i=n.minDate.getMinutes(),l=n.minDate.getSeconds();r<a&&(r=a),r===a&&e<i&&(e=i),r===a&&e===i&&o<l&&(o=n.minDate.getSeconds())}if(n.maxDate!==void 0){const a=n.maxDate.getHours(),i=n.maxDate.getMinutes();r=Math.min(r,a),r===a&&(e=Math.min(i,e)),r===a&&e===i&&(o=n.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:o}}typeof Object.assign!="function"&&(Object.assign=function(n,...r){if(!n)throw TypeError("Cannot convert undefined or null to object");for(const e of r)e&&Object.keys(e).forEach(o=>n[o]=e[o]);return n});const Us=300;function zs(n,r){const e={config:Object.assign(Object.assign({},st),ee.defaultConfig),l10n:Dt};e.parseDate=ir({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=p,e._positionCalendar=yn,e.changeMonth=pr,e.changeYear=gn,e.clear=hp,e.close=gp,e._createElement=j,e.destroy=bp,e.isEnabled=Je,e.jumpToDate=k,e.open=Cp,e.redraw=ei,e.set=Dp,e.setDate=Np,e.toggle=$p;function o(){e.utils={getDaysInMonth(f=e.currentMonth,h=e.currentYear){return f===1&&(h%4===0&&h%100!==0||h%400===0)?29:e.l10n.daysInMonth[f]}}}function a(){e.element=e.input=n,e.isOpen=!1,kp(),Qa(),vp(),Sp(),o(),e.isMobile||H(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&p(e.config.noCalendar?e.latestSelectedDateObj:void 0),qe(!1)),l();const f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&f&&yn(),J("onReady")}function i(f){return f.bind(e)}function l(){const f=e.config;f.weekNumbers===!1&&f.showMonths===1||f.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){const h=(e.days.offsetWidth+1)*f.showMonths;e.daysContainer.style.width=h+"px",e.calendarContainer.style.width=h+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function s(f){if(e.selectedDates.length===0){const w=e.config.minDate===void 0||we(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),C=lr(e.config);w.setHours(C.hours,C.minutes,C.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}f!==void 0&&f.type!=="blur"&&Mp(f);const h=e._input.value;u(),qe(),e._input.value!==h&&e._debouncedChange()}function c(f,h){return f%12+12*ke(h===e.l10n.amPM[1])}function d(f){switch(f%24){case 0:case 12:return 12;default:return f%12}}function u(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let f=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,h=(parseInt(e.minuteElement.value,10)||0)%60,w=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(f=c(f,e.amPM.textContent));const C=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&we(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const _=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;f=Math.min(f,_.getHours()),f===_.getHours()&&(h=Math.min(h,_.getMinutes())),h===_.getMinutes()&&(w=Math.min(w,_.getSeconds()))}if(C){const _=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;f=Math.max(f,_.getHours()),f===_.getHours()&&h<_.getMinutes()&&(h=_.getMinutes()),h===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}m(f,h,w)}function p(f){const h=f||e.latestSelectedDateObj;h&&m(h.getHours(),h.getMinutes(),h.getSeconds())}function m(f,h,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(f%24,h,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=fe(e.config.time_24hr?f:(12+f)%12+12*ke(f%12===0)),e.minuteElement.value=fe(h),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[ke(f>=12)]),e.secondElement!==void 0&&(e.secondElement.value=fe(w)))}function g(f){const h=ye(f),w=parseInt(h.value)+(f.delta||0);(w/1e3>1||f.key==="Enter"&&!/[^\d]/.test(w.toString()))&&gn(w)}function b(f,h,w,C){if(h instanceof Array)return h.forEach(S=>b(f,S,w,C));if(f instanceof Array)return f.forEach(S=>b(S,h,w,C));f.addEventListener(h,w,C),e._handlers.push({remove:()=>f.removeEventListener(h,w)})}function y(){J("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(h=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${h}]`),w=>b(w,"click",e[h]))}),e.isMobile){Vp();return}const f=xa(xp,50);if(e._debouncedChange=xa(y,Us),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",h=>{e.config.mode==="range"&&hr(ye(h))}),b(window.document.body,"keydown",wp),!e.config.inline&&!e.config.static&&b(window,"resize",f),window.ontouchstart!==void 0?b(window.document,"touchstart",mr):b(window.document,"mousedown",mr),b(window.document,"focus",mr,{capture:!0}),e.config.clickOpens===!0&&(b(e._input,"focus",e.open),b(e._input,"click",e.open)),e.daysContainer!==void 0&&(b(e.monthNav,"click",Tp),b(e.monthNav,["keyup","increment"],g),b(e.daysContainer,"click",ti)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const h=w=>ye(w).select();b(e.timeContainer,["increment"],s),b(e.timeContainer,"blur",s,{capture:!0}),b(e.timeContainer,"click",D),b([e.hourElement,e.minuteElement],["focus","click"],h),e.secondElement!==void 0&&b(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&b(e.amPM,"click",w=>{s(w),y()})}e.config.allowInput&&b(e._input,"blur",yp)}function k(f,h){const w=f!==void 0?e.parseDate(f):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),C=e.currentYear,S=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}h&&e.currentYear!==C&&(J("onYearChange"),ae()),h&&(e.currentYear!==C||e.currentMonth!==S)&&J("onMonthChange"),e.redraw()}function D(f){const h=ye(f);~h.className.indexOf("arrow")&&v(f,h.classList.contains("arrowUp")?1:-1)}function v(f,h,w){const C=f&&ye(f),S=w||C&&C.parentNode&&C.parentNode.firstChild,_=br("increment");_.delta=h,S&&S.dispatchEvent(_)}function H(){const f=window.document.createDocumentFragment();if(e.calendarContainer=j("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(f.appendChild(fp()),e.innerContainer=j("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:C}=mp();e.innerContainer.appendChild(w),e.weekNumbers=C,e.weekWrapper=w}e.rContainer=j("div","flatpickr-rContainer"),e.rContainer.appendChild(Ga()),e.daysContainer||(e.daysContainer=j("div","flatpickr-days"),e.daysContainer.tabIndex=-1),X(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),f.appendChild(e.innerContainer)}e.config.enableTime&&f.appendChild(pp()),ce(e.calendarContainer,"rangeMode",e.config.mode==="range"),ce(e.calendarContainer,"animate",e.config.animate===!0),ce(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(f);const h=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!h&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){const w=j("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(w,e.element),w.appendChild(e.element),e.altInput&&w.appendChild(e.altInput),w.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function A(f,h,w,C){const S=Je(h,!0),_=j("span","flatpickr-day "+f,h.getDate().toString());return _.dateObj=h,_.$i=C,_.setAttribute("aria-label",e.formatDate(h,e.config.ariaDateFormat)),f.indexOf("hidden")===-1&&we(h,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),S?(_.tabIndex=-1,yr(h)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(ce(_,"startRange",e.selectedDates[0]&&we(h,e.selectedDates[0],!0)===0),ce(_,"endRange",e.selectedDates[1]&&we(h,e.selectedDates[1],!0)===0),f==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Bp(h)&&!yr(h)&&_.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&f!=="prevMonthDay"&&w%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(h)+"</span>"),J("onDayCreate",_),_}function R(f){f.focus(),e.config.mode==="range"&&hr(f)}function M(f){const h=f>0?0:e.config.showMonths-1,w=f>0?e.config.showMonths:-1;for(let C=h;C!=w;C+=f){const S=e.daysContainer.children[C],_=f>0?0:S.children.length-1,B=f>0?S.children.length:-1;for(let $=_;$!=B;$+=f){const O=S.children[$];if(O.className.indexOf("hidden")===-1&&Je(O.dateObj))return O}}}function U(f,h){const w=f.className.indexOf("Month")===-1?f.dateObj.getMonth():e.currentMonth,C=h>0?e.config.showMonths:-1,S=h>0?1:-1;for(let _=w-e.currentMonth;_!=C;_+=S){const B=e.daysContainer.children[_],$=w-e.currentMonth===_?f.$i+h:h<0?B.children.length-1:0,O=B.children.length;for(let P=$;P>=0&&P<O&&P!=(h>0?O:-1);P+=S){const W=B.children[P];if(W.className.indexOf("hidden")===-1&&Je(W.dateObj)&&Math.abs(f.$i-P)>=Math.abs(h))return R(W)}}e.changeMonth(S),I(M(S),0)}function I(f,h){const w=bn(document.activeElement||document.body),C=f!==void 0?f:w?document.activeElement:e.selectedDateElem!==void 0&&bn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&bn(e.todayDateElem)?e.todayDateElem:M(h>0?1:-1);C===void 0?e._input.focus():w?U(C,h):R(C)}function F(f,h){const w=(new Date(f,h,1).getDay()-e.l10n.firstDayOfWeek+7)%7,C=e.utils.getDaysInMonth((h-1+12)%12,f),S=e.utils.getDaysInMonth(h,f),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,$=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let P=C+1-w,W=0;for(;P<=C;P++,W++)_.appendChild(A($,new Date(f,h-1,P),P,W));for(P=1;P<=S;P++,W++)_.appendChild(A("",new Date(f,h,P),P,W));for(let ie=S+1;ie<=42-w&&(e.config.showMonths===1||W%7!==0);ie++,W++)_.appendChild(A(O,new Date(f,h+1,ie%S),ie,W));const Ee=j("div","dayContainer");return Ee.appendChild(_),Ee}function X(){if(e.daysContainer===void 0)return;cn(e.daysContainer),e.weekNumbers&&cn(e.weekNumbers);const f=document.createDocumentFragment();for(let h=0;h<e.config.showMonths;h++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),f.appendChild(F(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(f),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&hr()}function ae(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const f=function(h){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&h<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&h>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let h=0;h<12;h++){if(!f(h))continue;const w=j("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,h).getMonth().toString(),w.textContent=un(h,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===h&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function pe(){const f=j("div","flatpickr-month"),h=window.document.createDocumentFragment();let w;e.config.showMonths>1||e.config.monthSelectorType==="static"?w=j("span","cur-month"):(e.monthsDropdownContainer=j("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",B=>{const $=ye(B),O=parseInt($.value,10);e.changeMonth(O-e.currentMonth),J("onMonthChange")}),ae(),w=e.monthsDropdownContainer);const C=dn("cur-year",{tabindex:"-1"}),S=C.getElementsByTagName("input")[0];S.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&S.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(S.setAttribute("max",e.config.maxDate.getFullYear().toString()),S.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=j("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(C),h.appendChild(_),f.appendChild(h),{container:f,yearElement:S,monthElement:w}}function Ka(){cn(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let f=e.config.showMonths;f--;){const h=pe();e.yearElements.push(h.yearElement),e.monthElements.push(h.monthElement),e.monthNav.appendChild(h.container)}e.monthNav.appendChild(e.nextMonthNav)}function fp(){return e.monthNav=j("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=j("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=j("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ka(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(f){e.__hidePrevMonthArrow!==f&&(ce(e.prevMonthNav,"flatpickr-disabled",f),e.__hidePrevMonthArrow=f)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(f){e.__hideNextMonthArrow!==f&&(ce(e.nextMonthNav,"flatpickr-disabled",f),e.__hideNextMonthArrow=f)}}),e.currentYearElement=e.yearElements[0],xn(),e.monthNav}function pp(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const f=lr(e.config);e.timeContainer=j("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const h=j("span","flatpickr-time-separator",":"),w=dn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const C=dn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=C.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?f.hours:d(f.hours)),e.minuteElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():f.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(w),e.timeContainer.appendChild(h),e.timeContainer.appendChild(C),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const S=dn("flatpickr-second");e.secondElement=S.getElementsByTagName("input")[0],e.secondElement.value=fe(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():f.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(S)}return e.config.time_24hr||(e.amPM=j("span","flatpickr-am-pm",e.l10n.amPM[ke((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Ga(){e.weekdayContainer?cn(e.weekdayContainer):e.weekdayContainer=j("div","flatpickr-weekdays");for(let f=e.config.showMonths;f--;){const h=j("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(h)}return Ja(),e.weekdayContainer}function Ja(){if(!e.weekdayContainer)return;const f=e.l10n.firstDayOfWeek;let h=[...e.l10n.weekdays.shorthand];f>0&&f<h.length&&(h=[...h.splice(f,h.length),...h.splice(0,f)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
8
8
|
<span class='flatpickr-weekday'>
|
|
9
9
|
${h.join("</span><span class='flatpickr-weekday'>")}
|
|
10
10
|
</span>
|
|
11
|
-
`}function pp(){e.calendarContainer.classList.add("hasWeeks");const f=j("div","flatpickr-weekwrapper");f.appendChild(j("span","flatpickr-weekday",e.l10n.weekAbbreviation));const h=j("div","flatpickr-weeks");return f.appendChild(h),{weekWrapper:f,weekNumbers:h}}function pr(f,h=!0){const w=h?f:f-e.currentMonth;w<0&&e._hidePrevMonthArrow===!0||w>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=w,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,J("onYearChange"),ae()),X(),J("onMonthChange"),xn())}function mp(f=!0,h=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,h===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:w,minutes:C,seconds:S}=lr(e.config);m(w,C,S)}e.redraw(),f&&J("onChange")}function hp(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),J("onClose")}function gp(){e.config!==void 0&&J("onDestroy");for(let f=e._handlers.length;f--;)e._handlers[f].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const f=e.calendarContainer.parentNode;if(f.lastChild&&f.removeChild(f.lastChild),f.parentNode){for(;f.firstChild;)f.parentNode.insertBefore(f.firstChild,f);f.parentNode.removeChild(f)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(f=>{try{delete e[f]}catch{}})}function ft(f){return e.config.appendTo&&e.config.appendTo.contains(f)?!0:e.calendarContainer.contains(f)}function mr(f){if(e.isOpen&&!e.config.inline){const h=ye(f),w=ft(h),C=h===e.input||h===e.altInput||e.element.contains(h)||f.path&&f.path.indexOf&&(~f.path.indexOf(e.input)||~f.path.indexOf(e.altInput)),S=f.type==="blur"?C&&f.relatedTarget&&!ft(f.relatedTarget):!C&&!w&&!ft(f.relatedTarget),_=!e.config.ignoredFocusElements.some(B=>B.contains(h));S&&_&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&s(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function gn(f){if(!f||e.config.minDate&&f<e.config.minDate.getFullYear()||e.config.maxDate&&f>e.config.maxDate.getFullYear())return;const h=f,w=e.currentYear!==h;e.currentYear=h||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),w&&(e.redraw(),J("onYearChange"),ae())}function Je(f,h=!0){var w;const C=e.parseDate(f,void 0,h);if(e.config.minDate&&C&&we(C,e.config.minDate,h!==void 0?h:!e.minDateHasTime)<0||e.config.maxDate&&C&&we(C,e.config.maxDate,h!==void 0?h:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(C===void 0)return!1;const S=!!e.config.enable,_=(w=e.config.enable)!==null&&w!==void 0?w:e.config.disable;for(let B=0,$;B<_.length;B++){if($=_[B],typeof $=="function"&&$(C))return S;if($ instanceof Date&&C!==void 0&&$.getTime()===C.getTime())return S;if(typeof $=="string"){const O=e.parseDate($,void 0,!0);return O&&O.getTime()===C.getTime()?S:!S}else if(typeof $=="object"&&C!==void 0&&$.from&&$.to&&C.getTime()>=$.from.getTime()&&C.getTime()<=$.to.getTime())return S}return!S}function bn(f){return e.daysContainer!==void 0?f.className.indexOf("hidden")===-1&&f.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(f):!1}function bp(f){f.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(f.relatedTarget&&ft(f.relatedTarget))&&e.setDate(e._input.value,!0,f.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function yp(f){const h=ye(f),w=e.config.wrap?n.contains(h):h===e._input,C=e.config.allowInput,S=e.isOpen&&(!C||!w),_=e.config.inline&&w&&!C;if(f.keyCode===13&&w){if(C)return e.setDate(e._input.value,!0,h===e.altInput?e.config.altFormat:e.config.dateFormat),h.blur();e.open()}else if(ft(h)||S||_){const B=!!e.timeContainer&&e.timeContainer.contains(h);switch(f.keyCode){case 13:B?(f.preventDefault(),s(),gr()):ti(f);break;case 27:f.preventDefault(),gr();break;case 8:case 46:w&&!e.config.allowInput&&(f.preventDefault(),e.clear());break;case 37:case 39:if(!B&&!w){if(f.preventDefault(),e.daysContainer!==void 0&&(C===!1||document.activeElement&&bn(document.activeElement))){const O=f.keyCode===39?1:-1;f.ctrlKey?(f.stopPropagation(),pr(O),I(M(1),0)):I(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:f.preventDefault();const $=f.keyCode===40?1:-1;e.daysContainer&&h.$i!==void 0||h===e.input||h===e.altInput?f.ctrlKey?(f.stopPropagation(),gn(e.currentYear-$),I(M(1),0)):B||I(void 0,$*7):h===e.currentYearElement?gn(e.currentYear-$):e.config.enableTime&&(!B&&e.hourElement&&e.hourElement.focus(),s(f),e._debouncedChange());break;case 9:if(B){const O=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(W=>W),P=O.indexOf(h);if(P!==-1){const W=O[P+(f.shiftKey?-1:1)];f.preventDefault(),(W||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(h)&&f.shiftKey&&(f.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&h===e.amPM)switch(f.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),qe();break}(w||ft(h))&&J("onKeyDown",f)}function hr(f){if(e.selectedDates.length!==1||f&&(!f.classList.contains("flatpickr-day")||f.classList.contains("flatpickr-disabled")))return;const h=f?f.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),w=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),C=Math.min(h,e.selectedDates[0].getTime()),S=Math.max(h,e.selectedDates[0].getTime());let _=!1,B=0,$=0;for(let O=C;O<S;O+=js.DAY)Je(new Date(O),!0)||(_=_||O>C&&O<S,O<w&&(!B||O>B)?B=O:O>w&&(!$||O<$)&&($=O));for(let O=0;O<e.config.showMonths;O++){const P=e.daysContainer.children[O];for(let W=0,Ee=P.children.length;W<Ee;W++){const ie=P.children[W],Oe=ie.dateObj.getTime(),Vt=B>0&&Oe<B||$>0&&Oe>$;if(Vt){ie.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach($t=>{ie.classList.remove($t)});continue}else if(_&&!Vt)continue;["startRange","inRange","endRange","notAllowed"].forEach($t=>{ie.classList.remove($t)}),f!==void 0&&(f.classList.add(h<=e.selectedDates[0].getTime()?"startRange":"endRange"),w<h&&Oe===w?ie.classList.add("startRange"):w>h&&Oe===w&&ie.classList.add("endRange"),Oe>=B&&($===0||Oe<=$)&&Fs(Oe,w,h)&&ie.classList.add("inRange"))}}}function wp(){e.isOpen&&!e.config.static&&!e.config.inline&&yn()}function xp(f,h=e._positionElement){if(e.isMobile===!0){if(f){f.preventDefault();const C=ye(f);C&&C.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),J("onOpen");return}else if(e._input.disabled||e.config.inline)return;const w=e.isOpen;e.isOpen=!0,w||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),J("onOpen"),yn(h)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(f===void 0||!e.timeContainer.contains(f.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Xa(f){return h=>{const w=e.config[`_${f}Date`]=e.parseDate(h,e.config.dateFormat),C=e.config[`_${f==="min"?"max":"min"}Date`];w!==void 0&&(e[f==="min"?"minDateHasTime":"maxDateHasTime"]=w.getHours()>0||w.getMinutes()>0||w.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(S=>Je(S)),!e.selectedDates.length&&f==="min"&&p(w),qe()),e.daysContainer&&(ei(),w!==void 0?e.currentYearElement[f]=w.getFullYear().toString():e.currentYearElement.removeAttribute(f),e.currentYearElement.disabled=!!C&&w!==void 0&&C.getFullYear()===w.getFullYear())}}function Cp(){const f=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],h=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),w={};e.config.parseDate=h.parseDate,e.config.formatDate=h.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:_=>{e.config._enable=ri(_)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:_=>{e.config._disable=ri(_)}});const C=h.mode==="time";if(!h.dateFormat&&(h.enableTime||C)){const _=ee.defaultConfig.dateFormat||st.dateFormat;w.dateFormat=h.noCalendar||C?"H:i"+(h.enableSeconds?":S":""):_+" H:i"+(h.enableSeconds?":S":"")}if(h.altInput&&(h.enableTime||C)&&!h.altFormat){const _=ee.defaultConfig.altFormat||st.altFormat;w.altFormat=h.noCalendar||C?"h:i"+(h.enableSeconds?":S K":" K"):_+` h:i${h.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Xa("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Xa("max")});const S=_=>B=>{e.config[_==="min"?"_minTime":"_maxTime"]=e.parseDate(B,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:S("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:S("max")}),h.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,w,h);for(let _=0;_<f.length;_++)e.config[f[_]]=e.config[f[_]]===!0||e.config[f[_]]==="true";nr.filter(_=>e.config[_]!==void 0).forEach(_=>{e.config[_]=rr(e.config[_]||[]).map(i)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let _=0;_<e.config.plugins.length;_++){const B=e.config.plugins[_](e)||{};for(const $ in B)nr.indexOf($)>-1?e.config[$]=rr(B[$]).map(i).concat(e.config[$]):typeof h[$]>"u"&&(e.config[$]=B[$])}h.altInputClass||(e.config.altInputClass=Za().className+" "+e.config.altInputClass),J("onParseConfig")}function Za(){return e.config.wrap?n.querySelector("[data-input]"):n}function Qa(){typeof e.config.locale!="object"&&typeof ee.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},ee.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?ee.l10ns[e.config.locale]:void 0),ar.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&ee.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ka(e),e.parseDate=ir({config:e.config,l10n:e.l10n})}function yn(f){if(typeof e.config.position=="function")return void e.config.position(e,f);if(e.calendarContainer===void 0)return;J("onPreCalendarPosition");const h=f||e._positionElement,w=Array.prototype.reduce.call(e.calendarContainer.children,(Bt,wr)=>Bt+wr.offsetHeight,0),C=e.calendarContainer.offsetWidth,S=e.config.position.split(" "),_=S[0],B=S.length>1?S[1]:null,$=h.getBoundingClientRect(),O=window.innerHeight-$.bottom,P=_==="above"||_!=="below"&&O<w&&$.top>w,W=window.pageYOffset+$.top+(P?-w-2:h.offsetHeight+2);if(ce(e.calendarContainer,"arrowTop",!P),ce(e.calendarContainer,"arrowBottom",P),e.config.inline)return;let Ee=window.pageXOffset+$.left,ie=!1,Cn=!1;B==="center"?(Ee-=(C-$.width)/2,ie=!0):B==="right"&&(Ee-=C-$.width,Cn=!0),ce(e.calendarContainer,"arrowLeft",!ie&&!Cn),ce(e.calendarContainer,"arrowCenter",ie),ce(e.calendarContainer,"arrowRight",Cn);const Oe=window.document.body.offsetWidth-(window.pageXOffset+$.right),Vt=Ee+C>window.document.body.offsetWidth,$t=Oe+C>window.document.body.offsetWidth;if(ce(e.calendarContainer,"rightMost",Vt),!e.config.static)if(e.calendarContainer.style.top=`${W}px`,!Vt)e.calendarContainer.style.left=`${Ee}px`,e.calendarContainer.style.right="auto";else if(!$t)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Oe}px`;else{const Bt=kp();if(Bt===void 0)return;const wr=window.document.body.offsetWidth,Mp=Math.max(0,wr/2-C/2),Op=".flatpickr-calendar.centerMost:before",Pp=".flatpickr-calendar.centerMost:after",Ap=Bt.cssRules.length,Lp=`{left:${$.left}px;right:auto;}`;ce(e.calendarContainer,"rightMost",!1),ce(e.calendarContainer,"centerMost",!0),Bt.insertRule(`${Op},${Pp}${Lp}`,Ap),e.calendarContainer.style.left=`${Mp}px`,e.calendarContainer.style.right="auto"}}function kp(){let f=null;for(let h=0;h<document.styleSheets.length;h++){const w=document.styleSheets[h];try{w.cssRules}catch{continue}f=w;break}return f??Ep()}function Ep(){const f=document.createElement("style");return document.head.appendChild(f),f.sheet}function ei(){e.config.noCalendar||e.isMobile||(ae(),xn(),X())}function gr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ti(f){f.preventDefault(),f.stopPropagation();const h=B=>B.classList&&B.classList.contains("flatpickr-day")&&!B.classList.contains("flatpickr-disabled")&&!B.classList.contains("notAllowed"),w=Ca(ye(f),h);if(w===void 0)return;const C=w,S=e.latestSelectedDateObj=new Date(C.dateObj.getTime()),_=(S.getMonth()<e.currentMonth||S.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=C,e.config.mode==="single")e.selectedDates=[S];else if(e.config.mode==="multiple"){const B=yr(S);B?e.selectedDates.splice(parseInt(B),1):e.selectedDates.push(S)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=S,e.selectedDates.push(S),we(S,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((B,$)=>B.getTime()-$.getTime()));if(u(),_){const B=e.currentYear!==S.getFullYear();e.currentYear=S.getFullYear(),e.currentMonth=S.getMonth(),B&&(J("onYearChange"),ae()),J("onMonthChange")}if(xn(),X(),qe(),!_&&e.config.mode!=="range"&&e.config.showMonths===1?R(C):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const B=e.config.mode==="single"&&!e.config.enableTime,$=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(B||$)&&gr()}y()}const wn={locale:[Qa,Ja],showMonths:[Ka,l,Ga],minDate:[k],maxDate:[k],clickOpens:[()=>{e.config.clickOpens===!0?(b(e._input,"focus",e.open),b(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function _p(f,h){if(f!==null&&typeof f=="object"){Object.assign(e.config,f);for(const w in f)wn[w]!==void 0&&wn[w].forEach(C=>C())}else e.config[f]=h,wn[f]!==void 0?wn[f].forEach(w=>w()):nr.indexOf(f)>-1&&(e.config[f]=rr(h));e.redraw(),qe(!0)}function ni(f,h){let w=[];if(f instanceof Array)w=f.map(C=>e.parseDate(C,h));else if(f instanceof Date||typeof f=="number")w=[e.parseDate(f,h)];else if(typeof f=="string")switch(e.config.mode){case"single":case"time":w=[e.parseDate(f,h)];break;case"multiple":w=f.split(e.config.conjunction).map(C=>e.parseDate(C,h));break;case"range":w=f.split(e.l10n.rangeSeparator).map(C=>e.parseDate(C,h));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(f)}`));e.selectedDates=e.config.allowInvalidPreload?w:w.filter(C=>C instanceof Date&&Je(C,!1)),e.config.mode==="range"&&e.selectedDates.sort((C,S)=>C.getTime()-S.getTime())}function Dp(f,h=!1,w=e.config.dateFormat){if(f!==0&&!f||f instanceof Array&&f.length===0)return e.clear(h);ni(f,w),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),k(void 0,h),p(),e.selectedDates.length===0&&e.clear(!1),qe(h),h&&J("onChange")}function ri(f){return f.slice().map(h=>typeof h=="string"||typeof h=="number"||h instanceof Date?e.parseDate(h,void 0,!0):h&&typeof h=="object"&&h.from&&h.to?{from:e.parseDate(h.from,void 0),to:e.parseDate(h.to,void 0)}:h).filter(h=>h)}function Np(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const f=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);f&&ni(f,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Sp(){if(e.input=Za(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=j(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function vp(){const f=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=j("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=f,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=f==="datetime-local"?"Y-m-d\\TH:i:S":f==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}b(e.mobileInput,"change",h=>{e.setDate(ye(h).value,!1,e.mobileFormatStr),J("onChange"),J("onClose")})}function Vp(f){if(e.isOpen===!0)return e.close();e.open(f)}function J(f,h){if(e.config===void 0)return;const w=e.config[f];if(w!==void 0&&w.length>0)for(let C=0;w[C]&&C<w.length;C++)w[C](e.selectedDates,e.input.value,e,h);f==="onChange"&&(e.input.dispatchEvent(br("change")),e.input.dispatchEvent(br("input")))}function br(f){const h=document.createEvent("Event");return h.initEvent(f,!0,!0),h}function yr(f){for(let h=0;h<e.selectedDates.length;h++)if(we(e.selectedDates[h],f)===0)return""+h;return!1}function $p(f){return e.config.mode!=="range"||e.selectedDates.length<2?!1:we(f,e.selectedDates[0])>=0&&we(f,e.selectedDates[1])<=0}function xn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((f,h)=>{const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[h].textContent=un(w.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=w.getMonth().toString(),f.value=w.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function oi(f){return e.selectedDates.map(h=>e.formatDate(h,f)).filter((h,w,C)=>e.config.mode!=="range"||e.config.enableTime||C.indexOf(h)===w).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function qe(f=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=oi(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=oi(e.config.altFormat)),f!==!1&&J("onValueUpdate")}function Bp(f){const h=ye(f),w=e.prevMonthNav.contains(h),C=e.nextMonthNav.contains(h);w||C?pr(w?-1:1):e.yearElements.indexOf(h)>=0?h.select():h.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):h.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Tp(f){f.preventDefault();const h=f.type==="keydown",w=ye(f),C=w;e.amPM!==void 0&&w===e.amPM&&(e.amPM.textContent=e.l10n.amPM[ke(e.amPM.textContent===e.l10n.amPM[0])]);const S=parseFloat(C.getAttribute("min")),_=parseFloat(C.getAttribute("max")),B=parseFloat(C.getAttribute("step")),$=parseInt(C.value,10),O=f.delta||(h?f.which===38?1:-1:0);let P=$+B*O;if(typeof C.value<"u"&&C.value.length===2){const W=C===e.hourElement,Ee=C===e.minuteElement;P<S?(P=_+P+ke(!W)+(ke(W)&&ke(!e.amPM)),Ee&&v(void 0,-1,e.hourElement)):P>_&&(P=C===e.hourElement?P-_-ke(!e.amPM):S,Ee&&v(void 0,1,e.hourElement)),e.amPM&&W&&(B===1?P+$===23:Math.abs(P-$)>B)&&(e.amPM.textContent=e.l10n.amPM[ke(e.amPM.textContent===e.l10n.amPM[0])]),C.value=fe(P)}}return a(),e}function ct(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=Us(i,r||{}),o.push(i._flatpickr)}catch(l){console.error(l)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return ct(this,n)},HTMLElement.prototype.flatpickr=function(n){return ct([this],n)});var ee=function(n,r){return typeof n=="string"?ct(window.document.querySelectorAll(n),r):n instanceof Node?ct([n],r):ct(n,r)};ee.defaultConfig={},ee.l10ns={en:Object.assign({},Dt),default:Object.assign({},Dt)},ee.localize=n=>{ee.l10ns.default=Object.assign(Object.assign({},ee.l10ns.default),n)},ee.setDefaults=n=>{ee.defaultConfig=Object.assign(Object.assign({},ee.defaultConfig),n)},ee.parseDate=ir({}),ee.formatDate=ka({}),ee.compareDates=we,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return ct(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ee);const zp="",zs=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],fn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeDefaults({modelValue:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Ae,maxRange:0,modelValue:()=>({maxDate:0,minDate:0}),placeholder:"mm-dd-yyyy range",startDate:0}),setup(n){const r=n,{aria:e,errorState:o,modelState:a,inputID:i,isRequired:l,onInvalid:s,validate:c}=Be(r),d=u=>{a.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:r.startDate,onClose:p=>{p.length===2?d({minDate:p[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(p[1].setUTCHours(23,59,59,999)/1e3)}):p.length===0&&d({minDate:0,maxDate:0})}};r.modelValue.minDate!=0&&r.modelValue.maxDate!=0&&(u.defaultDate=[r.modelValue.minDate*1e3,r.modelValue.maxDate*1e3]),r.maxRange&&(u.onChange=(p,m,g)=>{if(p.length===1){var b=new Date(p[0].getTime()),y=new Date(p[0].getTime());b.setDate(b.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const x=new Date;b>x&&(b=x),g.set("minDate",y),g.set("maxDate",b)}}),ee(`#${i.value}`,u)}),(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(i),label:u.label,required:t.unref(l)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(i),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(o)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder},u.$attrs,{type:"text",onInput:p[0]||(p[0]=(...m)=>t.unref(c)&&t.unref(c)(...m)),onInvalid:p[1]||(p[1]=(...m)=>t.unref(s)&&t.unref(s)(...m))}),null,16,zs),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(o)},null,8,["id","text"])]))}}),qs=["id","aria-labelledby","aria-describedby","aria-errormessage","value"],Ys=["textContent"],Ws=["value","disabled","textContent"],sr=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Ae,placeholder:"Select an option"}),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isRequired:a,validate:i,modelState:l,errorState:s,onInvalid:c}=Be(r),d=u=>{l.value=u.target.value,i(u)};return(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(o),label:u.label,required:t.unref(a)},null,8,["id","for","label","required"]),t.createElementVNode("select",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(s)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],value:t.unref(l)},u.$attrs,{onChange:d,onInvalid:p[0]||(p[0]=(...m)=>t.unref(c)&&t.unref(c)(...m))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(u.placeholder)},null,8,Ys),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{key:m.value,value:m.value,disabled:m.disabled,textContent:t.toDisplayString(m.label)},null,8,Ws))),128))],16,qs),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(s)},null,8,["id","text"])]))}}),Ks={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Gs={class:"flex-1 min-w-0"},Js={class:"text-lg leading-6 font-semibold text-gray-900"},Xs={class:"mt-4 flex md:mt-0 md:ml-4"},cr=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{},title:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),i=[{label:"Newest-Oldest",value:"DESC"},{label:"Oldest-Newest",value:"ASC"}],l=c=>{r("sort-dir-changed",c)},s=c=>{r("date-range-changed",c)};return(c,d)=>(t.openBlock(),t.createElementBlock("div",Ks,[t.createElementVNode("div",Gs,[t.createElementVNode("h1",Js,t.toDisplayString(c.title),1)]),t.createElementVNode("div",Xs,[t.createVNode(sr,{modelValue:a.value,"onUpdate:modelValue":[d[0]||(d[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(fn,{modelValue:o.value,"onUpdate:modelValue":[d[1]||(d[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function dt(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),c=t.ref(!1);let d=0,u;const p=()=>{u!==void 0&&u.abort()},m=(g={},b={})=>{d++;const y=d;u=new AbortController,c.value=!1,l.value=!1,s.value=!0;const x={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return Qe(x,{...e,...b}).then(k=>(o.value=k,a.value=void 0,c.value=!1,k),k=>{throw a.value=k,to(k)&&(c.value=!0),k}).finally(()=>{y==d&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&m(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:p,execute:m}}function Zs(n,r={}){return dt(n,"GET",r)}function Qs(n,r={}){return dt(n,"DELETE",r)}function ec(n,r={}){return dt(n,"PATCH",r)}function tc(n,r={}){return dt(n,"POST",r)}function nc(n,r={}){return dt(n,"PUT",r)}function Ea(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=m=>{e={...e,...m}},a=m=>{r.value.delete(m)},i=m=>{const g=ro.CreateIdAttribute();return r.value.set(g,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},l=m=>i(m),s=(m,g=!1)=>i({message:m,persistent:g,type:"error"}),c=(m,g=!1)=>i({message:m,persistent:g,type:"info"}),d=(m,g=!1)=>i({message:m,persistent:g,type:"success"}),u=(m,g=!1)=>i({message:m,persistent:g,type:"warning"}),p=(m="",g=!1)=>{const b=m||e.email,y=b?`Whoops! Something went wrong, please reach out to
|
|
11
|
+
`}function mp(){e.calendarContainer.classList.add("hasWeeks");const f=j("div","flatpickr-weekwrapper");f.appendChild(j("span","flatpickr-weekday",e.l10n.weekAbbreviation));const h=j("div","flatpickr-weeks");return f.appendChild(h),{weekWrapper:f,weekNumbers:h}}function pr(f,h=!0){const w=h?f:f-e.currentMonth;w<0&&e._hidePrevMonthArrow===!0||w>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=w,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,J("onYearChange"),ae()),X(),J("onMonthChange"),xn())}function hp(f=!0,h=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,h===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:w,minutes:C,seconds:S}=lr(e.config);m(w,C,S)}e.redraw(),f&&J("onChange")}function gp(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),J("onClose")}function bp(){e.config!==void 0&&J("onDestroy");for(let f=e._handlers.length;f--;)e._handlers[f].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const f=e.calendarContainer.parentNode;if(f.lastChild&&f.removeChild(f.lastChild),f.parentNode){for(;f.firstChild;)f.parentNode.insertBefore(f.firstChild,f);f.parentNode.removeChild(f)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(f=>{try{delete e[f]}catch{}})}function ft(f){return e.config.appendTo&&e.config.appendTo.contains(f)?!0:e.calendarContainer.contains(f)}function mr(f){if(e.isOpen&&!e.config.inline){const h=ye(f),w=ft(h),C=h===e.input||h===e.altInput||e.element.contains(h)||f.path&&f.path.indexOf&&(~f.path.indexOf(e.input)||~f.path.indexOf(e.altInput)),S=f.type==="blur"?C&&f.relatedTarget&&!ft(f.relatedTarget):!C&&!w&&!ft(f.relatedTarget),_=!e.config.ignoredFocusElements.some(B=>B.contains(h));S&&_&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&s(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function gn(f){if(!f||e.config.minDate&&f<e.config.minDate.getFullYear()||e.config.maxDate&&f>e.config.maxDate.getFullYear())return;const h=f,w=e.currentYear!==h;e.currentYear=h||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),w&&(e.redraw(),J("onYearChange"),ae())}function Je(f,h=!0){var w;const C=e.parseDate(f,void 0,h);if(e.config.minDate&&C&&we(C,e.config.minDate,h!==void 0?h:!e.minDateHasTime)<0||e.config.maxDate&&C&&we(C,e.config.maxDate,h!==void 0?h:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(C===void 0)return!1;const S=!!e.config.enable,_=(w=e.config.enable)!==null&&w!==void 0?w:e.config.disable;for(let B=0,$;B<_.length;B++){if($=_[B],typeof $=="function"&&$(C))return S;if($ instanceof Date&&C!==void 0&&$.getTime()===C.getTime())return S;if(typeof $=="string"){const O=e.parseDate($,void 0,!0);return O&&O.getTime()===C.getTime()?S:!S}else if(typeof $=="object"&&C!==void 0&&$.from&&$.to&&C.getTime()>=$.from.getTime()&&C.getTime()<=$.to.getTime())return S}return!S}function bn(f){return e.daysContainer!==void 0?f.className.indexOf("hidden")===-1&&f.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(f):!1}function yp(f){f.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(f.relatedTarget&&ft(f.relatedTarget))&&e.setDate(e._input.value,!0,f.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function wp(f){const h=ye(f),w=e.config.wrap?n.contains(h):h===e._input,C=e.config.allowInput,S=e.isOpen&&(!C||!w),_=e.config.inline&&w&&!C;if(f.keyCode===13&&w){if(C)return e.setDate(e._input.value,!0,h===e.altInput?e.config.altFormat:e.config.dateFormat),h.blur();e.open()}else if(ft(h)||S||_){const B=!!e.timeContainer&&e.timeContainer.contains(h);switch(f.keyCode){case 13:B?(f.preventDefault(),s(),gr()):ti(f);break;case 27:f.preventDefault(),gr();break;case 8:case 46:w&&!e.config.allowInput&&(f.preventDefault(),e.clear());break;case 37:case 39:if(!B&&!w){if(f.preventDefault(),e.daysContainer!==void 0&&(C===!1||document.activeElement&&bn(document.activeElement))){const O=f.keyCode===39?1:-1;f.ctrlKey?(f.stopPropagation(),pr(O),I(M(1),0)):I(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:f.preventDefault();const $=f.keyCode===40?1:-1;e.daysContainer&&h.$i!==void 0||h===e.input||h===e.altInput?f.ctrlKey?(f.stopPropagation(),gn(e.currentYear-$),I(M(1),0)):B||I(void 0,$*7):h===e.currentYearElement?gn(e.currentYear-$):e.config.enableTime&&(!B&&e.hourElement&&e.hourElement.focus(),s(f),e._debouncedChange());break;case 9:if(B){const O=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(W=>W),P=O.indexOf(h);if(P!==-1){const W=O[P+(f.shiftKey?-1:1)];f.preventDefault(),(W||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(h)&&f.shiftKey&&(f.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&h===e.amPM)switch(f.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),qe();break}(w||ft(h))&&J("onKeyDown",f)}function hr(f){if(e.selectedDates.length!==1||f&&(!f.classList.contains("flatpickr-day")||f.classList.contains("flatpickr-disabled")))return;const h=f?f.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),w=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),C=Math.min(h,e.selectedDates[0].getTime()),S=Math.max(h,e.selectedDates[0].getTime());let _=!1,B=0,$=0;for(let O=C;O<S;O+=Hs.DAY)Je(new Date(O),!0)||(_=_||O>C&&O<S,O<w&&(!B||O>B)?B=O:O>w&&(!$||O<$)&&($=O));for(let O=0;O<e.config.showMonths;O++){const P=e.daysContainer.children[O];for(let W=0,Ee=P.children.length;W<Ee;W++){const ie=P.children[W],Oe=ie.dateObj.getTime(),Vt=B>0&&Oe<B||$>0&&Oe>$;if(Vt){ie.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach($t=>{ie.classList.remove($t)});continue}else if(_&&!Vt)continue;["startRange","inRange","endRange","notAllowed"].forEach($t=>{ie.classList.remove($t)}),f!==void 0&&(f.classList.add(h<=e.selectedDates[0].getTime()?"startRange":"endRange"),w<h&&Oe===w?ie.classList.add("startRange"):w>h&&Oe===w&&ie.classList.add("endRange"),Oe>=B&&($===0||Oe<=$)&&js(Oe,w,h)&&ie.classList.add("inRange"))}}}function xp(){e.isOpen&&!e.config.static&&!e.config.inline&&yn()}function Cp(f,h=e._positionElement){if(e.isMobile===!0){if(f){f.preventDefault();const C=ye(f);C&&C.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),J("onOpen");return}else if(e._input.disabled||e.config.inline)return;const w=e.isOpen;e.isOpen=!0,w||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),J("onOpen"),yn(h)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(f===void 0||!e.timeContainer.contains(f.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Xa(f){return h=>{const w=e.config[`_${f}Date`]=e.parseDate(h,e.config.dateFormat),C=e.config[`_${f==="min"?"max":"min"}Date`];w!==void 0&&(e[f==="min"?"minDateHasTime":"maxDateHasTime"]=w.getHours()>0||w.getMinutes()>0||w.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(S=>Je(S)),!e.selectedDates.length&&f==="min"&&p(w),qe()),e.daysContainer&&(ei(),w!==void 0?e.currentYearElement[f]=w.getFullYear().toString():e.currentYearElement.removeAttribute(f),e.currentYearElement.disabled=!!C&&w!==void 0&&C.getFullYear()===w.getFullYear())}}function kp(){const f=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],h=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),w={};e.config.parseDate=h.parseDate,e.config.formatDate=h.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:_=>{e.config._enable=ri(_)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:_=>{e.config._disable=ri(_)}});const C=h.mode==="time";if(!h.dateFormat&&(h.enableTime||C)){const _=ee.defaultConfig.dateFormat||st.dateFormat;w.dateFormat=h.noCalendar||C?"H:i"+(h.enableSeconds?":S":""):_+" H:i"+(h.enableSeconds?":S":"")}if(h.altInput&&(h.enableTime||C)&&!h.altFormat){const _=ee.defaultConfig.altFormat||st.altFormat;w.altFormat=h.noCalendar||C?"h:i"+(h.enableSeconds?":S K":" K"):_+` h:i${h.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Xa("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Xa("max")});const S=_=>B=>{e.config[_==="min"?"_minTime":"_maxTime"]=e.parseDate(B,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:S("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:S("max")}),h.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,w,h);for(let _=0;_<f.length;_++)e.config[f[_]]=e.config[f[_]]===!0||e.config[f[_]]==="true";nr.filter(_=>e.config[_]!==void 0).forEach(_=>{e.config[_]=rr(e.config[_]||[]).map(i)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let _=0;_<e.config.plugins.length;_++){const B=e.config.plugins[_](e)||{};for(const $ in B)nr.indexOf($)>-1?e.config[$]=rr(B[$]).map(i).concat(e.config[$]):typeof h[$]>"u"&&(e.config[$]=B[$])}h.altInputClass||(e.config.altInputClass=Za().className+" "+e.config.altInputClass),J("onParseConfig")}function Za(){return e.config.wrap?n.querySelector("[data-input]"):n}function Qa(){typeof e.config.locale!="object"&&typeof ee.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},ee.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?ee.l10ns[e.config.locale]:void 0),ar.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&ee.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ka(e),e.parseDate=ir({config:e.config,l10n:e.l10n})}function yn(f){if(typeof e.config.position=="function")return void e.config.position(e,f);if(e.calendarContainer===void 0)return;J("onPreCalendarPosition");const h=f||e._positionElement,w=Array.prototype.reduce.call(e.calendarContainer.children,(Bt,wr)=>Bt+wr.offsetHeight,0),C=e.calendarContainer.offsetWidth,S=e.config.position.split(" "),_=S[0],B=S.length>1?S[1]:null,$=h.getBoundingClientRect(),O=window.innerHeight-$.bottom,P=_==="above"||_!=="below"&&O<w&&$.top>w,W=window.pageYOffset+$.top+(P?-w-2:h.offsetHeight+2);if(ce(e.calendarContainer,"arrowTop",!P),ce(e.calendarContainer,"arrowBottom",P),e.config.inline)return;let Ee=window.pageXOffset+$.left,ie=!1,Cn=!1;B==="center"?(Ee-=(C-$.width)/2,ie=!0):B==="right"&&(Ee-=C-$.width,Cn=!0),ce(e.calendarContainer,"arrowLeft",!ie&&!Cn),ce(e.calendarContainer,"arrowCenter",ie),ce(e.calendarContainer,"arrowRight",Cn);const Oe=window.document.body.offsetWidth-(window.pageXOffset+$.right),Vt=Ee+C>window.document.body.offsetWidth,$t=Oe+C>window.document.body.offsetWidth;if(ce(e.calendarContainer,"rightMost",Vt),!e.config.static)if(e.calendarContainer.style.top=`${W}px`,!Vt)e.calendarContainer.style.left=`${Ee}px`,e.calendarContainer.style.right="auto";else if(!$t)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Oe}px`;else{const Bt=Ep();if(Bt===void 0)return;const wr=window.document.body.offsetWidth,Op=Math.max(0,wr/2-C/2),Pp=".flatpickr-calendar.centerMost:before",Ap=".flatpickr-calendar.centerMost:after",Lp=Bt.cssRules.length,Rp=`{left:${$.left}px;right:auto;}`;ce(e.calendarContainer,"rightMost",!1),ce(e.calendarContainer,"centerMost",!0),Bt.insertRule(`${Pp},${Ap}${Rp}`,Lp),e.calendarContainer.style.left=`${Op}px`,e.calendarContainer.style.right="auto"}}function Ep(){let f=null;for(let h=0;h<document.styleSheets.length;h++){const w=document.styleSheets[h];try{w.cssRules}catch{continue}f=w;break}return f??_p()}function _p(){const f=document.createElement("style");return document.head.appendChild(f),f.sheet}function ei(){e.config.noCalendar||e.isMobile||(ae(),xn(),X())}function gr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ti(f){f.preventDefault(),f.stopPropagation();const h=B=>B.classList&&B.classList.contains("flatpickr-day")&&!B.classList.contains("flatpickr-disabled")&&!B.classList.contains("notAllowed"),w=Ca(ye(f),h);if(w===void 0)return;const C=w,S=e.latestSelectedDateObj=new Date(C.dateObj.getTime()),_=(S.getMonth()<e.currentMonth||S.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=C,e.config.mode==="single")e.selectedDates=[S];else if(e.config.mode==="multiple"){const B=yr(S);B?e.selectedDates.splice(parseInt(B),1):e.selectedDates.push(S)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=S,e.selectedDates.push(S),we(S,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((B,$)=>B.getTime()-$.getTime()));if(u(),_){const B=e.currentYear!==S.getFullYear();e.currentYear=S.getFullYear(),e.currentMonth=S.getMonth(),B&&(J("onYearChange"),ae()),J("onMonthChange")}if(xn(),X(),qe(),!_&&e.config.mode!=="range"&&e.config.showMonths===1?R(C):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const B=e.config.mode==="single"&&!e.config.enableTime,$=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(B||$)&&gr()}y()}const wn={locale:[Qa,Ja],showMonths:[Ka,l,Ga],minDate:[k],maxDate:[k],clickOpens:[()=>{e.config.clickOpens===!0?(b(e._input,"focus",e.open),b(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Dp(f,h){if(f!==null&&typeof f=="object"){Object.assign(e.config,f);for(const w in f)wn[w]!==void 0&&wn[w].forEach(C=>C())}else e.config[f]=h,wn[f]!==void 0?wn[f].forEach(w=>w()):nr.indexOf(f)>-1&&(e.config[f]=rr(h));e.redraw(),qe(!0)}function ni(f,h){let w=[];if(f instanceof Array)w=f.map(C=>e.parseDate(C,h));else if(f instanceof Date||typeof f=="number")w=[e.parseDate(f,h)];else if(typeof f=="string")switch(e.config.mode){case"single":case"time":w=[e.parseDate(f,h)];break;case"multiple":w=f.split(e.config.conjunction).map(C=>e.parseDate(C,h));break;case"range":w=f.split(e.l10n.rangeSeparator).map(C=>e.parseDate(C,h));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(f)}`));e.selectedDates=e.config.allowInvalidPreload?w:w.filter(C=>C instanceof Date&&Je(C,!1)),e.config.mode==="range"&&e.selectedDates.sort((C,S)=>C.getTime()-S.getTime())}function Np(f,h=!1,w=e.config.dateFormat){if(f!==0&&!f||f instanceof Array&&f.length===0)return e.clear(h);ni(f,w),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),k(void 0,h),p(),e.selectedDates.length===0&&e.clear(!1),qe(h),h&&J("onChange")}function ri(f){return f.slice().map(h=>typeof h=="string"||typeof h=="number"||h instanceof Date?e.parseDate(h,void 0,!0):h&&typeof h=="object"&&h.from&&h.to?{from:e.parseDate(h.from,void 0),to:e.parseDate(h.to,void 0)}:h).filter(h=>h)}function Sp(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const f=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);f&&ni(f,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function vp(){if(e.input=Za(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=j(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function Vp(){const f=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=j("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=f,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=f==="datetime-local"?"Y-m-d\\TH:i:S":f==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}b(e.mobileInput,"change",h=>{e.setDate(ye(h).value,!1,e.mobileFormatStr),J("onChange"),J("onClose")})}function $p(f){if(e.isOpen===!0)return e.close();e.open(f)}function J(f,h){if(e.config===void 0)return;const w=e.config[f];if(w!==void 0&&w.length>0)for(let C=0;w[C]&&C<w.length;C++)w[C](e.selectedDates,e.input.value,e,h);f==="onChange"&&(e.input.dispatchEvent(br("change")),e.input.dispatchEvent(br("input")))}function br(f){const h=document.createEvent("Event");return h.initEvent(f,!0,!0),h}function yr(f){for(let h=0;h<e.selectedDates.length;h++)if(we(e.selectedDates[h],f)===0)return""+h;return!1}function Bp(f){return e.config.mode!=="range"||e.selectedDates.length<2?!1:we(f,e.selectedDates[0])>=0&&we(f,e.selectedDates[1])<=0}function xn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((f,h)=>{const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+h),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[h].textContent=un(w.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=w.getMonth().toString(),f.value=w.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function oi(f){return e.selectedDates.map(h=>e.formatDate(h,f)).filter((h,w,C)=>e.config.mode!=="range"||e.config.enableTime||C.indexOf(h)===w).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function qe(f=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=oi(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=oi(e.config.altFormat)),f!==!1&&J("onValueUpdate")}function Tp(f){const h=ye(f),w=e.prevMonthNav.contains(h),C=e.nextMonthNav.contains(h);w||C?pr(w?-1:1):e.yearElements.indexOf(h)>=0?h.select():h.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):h.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Mp(f){f.preventDefault();const h=f.type==="keydown",w=ye(f),C=w;e.amPM!==void 0&&w===e.amPM&&(e.amPM.textContent=e.l10n.amPM[ke(e.amPM.textContent===e.l10n.amPM[0])]);const S=parseFloat(C.getAttribute("min")),_=parseFloat(C.getAttribute("max")),B=parseFloat(C.getAttribute("step")),$=parseInt(C.value,10),O=f.delta||(h?f.which===38?1:-1:0);let P=$+B*O;if(typeof C.value<"u"&&C.value.length===2){const W=C===e.hourElement,Ee=C===e.minuteElement;P<S?(P=_+P+ke(!W)+(ke(W)&&ke(!e.amPM)),Ee&&v(void 0,-1,e.hourElement)):P>_&&(P=C===e.hourElement?P-_-ke(!e.amPM):S,Ee&&v(void 0,1,e.hourElement)),e.amPM&&W&&(B===1?P+$===23:Math.abs(P-$)>B)&&(e.amPM.textContent=e.l10n.amPM[ke(e.amPM.textContent===e.l10n.amPM[0])]),C.value=fe(P)}}return a(),e}function ct(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=zs(i,r||{}),o.push(i._flatpickr)}catch(l){console.error(l)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return ct(this,n)},HTMLElement.prototype.flatpickr=function(n){return ct([this],n)});var ee=function(n,r){return typeof n=="string"?ct(window.document.querySelectorAll(n),r):n instanceof Node?ct([n],r):ct(n,r)};ee.defaultConfig={},ee.l10ns={en:Object.assign({},Dt),default:Object.assign({},Dt)},ee.localize=n=>{ee.l10ns.default=Object.assign(Object.assign({},ee.l10ns.default),n)},ee.setDefaults=n=>{ee.defaultConfig=Object.assign(Object.assign({},ee.defaultConfig),n)},ee.parseDate=ir({}),ee.formatDate=ka({}),ee.compareDates=we,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return ct(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=ee);const qp="",qs=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],fn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeDefaults({modelValue:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Ae,maxRange:0,modelValue:()=>({maxDate:0,minDate:0}),placeholder:"mm-dd-yyyy range",startDate:0}),setup(n){const r=n,{aria:e,errorState:o,modelState:a,inputID:i,isRequired:l,onInvalid:s,validate:c}=Be(r),d=u=>{a.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:r.startDate,onClose:p=>{p.length===2?d({minDate:p[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(p[1].setUTCHours(23,59,59,999)/1e3)}):p.length===0&&d({minDate:0,maxDate:0})}};r.modelValue.minDate!=0&&r.modelValue.maxDate!=0&&(u.defaultDate=[r.modelValue.minDate*1e3,r.modelValue.maxDate*1e3]),r.maxRange&&(u.onChange=(p,m,g)=>{if(p.length===1){var b=new Date(p[0].getTime()),y=new Date(p[0].getTime());b.setDate(b.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const x=new Date;b>x&&(b=x),g.set("minDate",y),g.set("maxDate",b)}}),ee(`#${i.value}`,u)}),(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(i),label:u.label,required:t.unref(l)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(i),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(o)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder},u.$attrs,{type:"text",onInput:p[0]||(p[0]=(...m)=>t.unref(c)&&t.unref(c)(...m)),onInvalid:p[1]||(p[1]=(...m)=>t.unref(s)&&t.unref(s)(...m))}),null,16,qs),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(o)},null,8,["id","text"])]))}}),Ys=["id","aria-labelledby","aria-describedby","aria-errormessage","value"],Ws=["textContent"],Ks=["value","disabled","textContent"],sr=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Ae,placeholder:"Select an option"}),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isRequired:a,validate:i,modelState:l,errorState:s,onInvalid:c}=Be(r),d=u=>{l.value=u.target.value,i(u)};return(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(o),label:u.label,required:t.unref(a)},null,8,["id","for","label","required"]),t.createElementVNode("select",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(s)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],value:t.unref(l)},u.$attrs,{onChange:d,onInvalid:p[0]||(p[0]=(...m)=>t.unref(c)&&t.unref(c)(...m))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(u.placeholder)},null,8,Ws),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{key:m.value,value:m.value,disabled:m.disabled,textContent:t.toDisplayString(m.label)},null,8,Ks))),128))],16,Ys),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(s)},null,8,["id","text"])]))}}),Gs={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Js={class:"flex-1 min-w-0"},Xs={class:"text-lg leading-6 font-semibold text-gray-900"},Zs={class:"mt-4 flex md:mt-0 md:ml-4"},cr=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{},title:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),i=[{label:"Newest-Oldest",value:"DESC"},{label:"Oldest-Newest",value:"ASC"}],l=c=>{r("sort-dir-changed",c)},s=c=>{r("date-range-changed",c)};return(c,d)=>(t.openBlock(),t.createElementBlock("div",Gs,[t.createElementVNode("div",Js,[t.createElementVNode("h1",Xs,t.toDisplayString(c.title),1)]),t.createElementVNode("div",Zs,[t.createVNode(sr,{modelValue:a.value,"onUpdate:modelValue":[d[0]||(d[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(fn,{modelValue:o.value,"onUpdate:modelValue":[d[1]||(d[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function dt(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),c=t.ref(!1);let d=0,u;const p=()=>{u!==void 0&&u.abort()},m=(g={},b={})=>{d++;const y=d;u=new AbortController,c.value=!1,l.value=!1,s.value=!0;const x={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return Qe(x,{...e,...b}).then(k=>(o.value=k,a.value=void 0,c.value=!1,k),k=>{throw a.value=k,to(k)&&(c.value=!0),k}).finally(()=>{y==d&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&m(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:p,execute:m}}function Qs(n,r={}){return dt(n,"GET",r)}function ec(n,r={}){return dt(n,"DELETE",r)}function tc(n,r={}){return dt(n,"PATCH",r)}function nc(n,r={}){return dt(n,"POST",r)}function rc(n,r={}){return dt(n,"PUT",r)}function Ea(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=m=>{e={...e,...m}},a=m=>{r.value.delete(m)},i=m=>{const g=ro.CreateIdAttribute();return r.value.set(g,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},l=m=>i(m),s=(m,g=!1)=>i({message:m,persistent:g,type:"error"}),c=(m,g=!1)=>i({message:m,persistent:g,type:"info"}),d=(m,g=!1)=>i({message:m,persistent:g,type:"success"}),u=(m,g=!1)=>i({message:m,persistent:g,type:"warning"}),p=(m="",g=!1)=>{const b=m||e.email,y=b?`Whoops! Something went wrong, please reach out to
|
|
12
12
|
<a class="underline text-xy-blue" href="mailto:${b}">${b}</a>
|
|
13
|
-
if the issue persists.`:"Whoops! Something went wrong.";return i({message:y,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:c,success:d,genericError:p},flashes:r,configure:o}}const rc=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let dr;function Ge(){return dr===void 0&&(dr=Ea()),dr}const ur={error(n,r){Ge().flasher.error(n,r)},info(n,r){Ge().flasher.info(n,r)},success(n,r){Ge().flasher.success(n,r)},warning(n,r){Ge().flasher.warning(n,r)},genericError(n,r){Ge().flasher.genericError(n,r)}},oc=(n,r)=>{var d;const e=t.ref(n),o={initial:((d=e==null?void 0:e.value[0])==null?void 0:d.value)||"",paramName:(r==null?void 0:r.paramName)||"tab"},a=t.ref(o.initial),i=u=>!!e.value.find(p=>p.value===u),l=u=>a.value===u,c=new URLSearchParams(window.location.search).get(o.paramName);return c&&i(c)&&(a.value=c),t.watch(a,u=>{const p=new URLSearchParams(window.location.search);p.set(o.paramName,u.toString());const m=p.toString()!==""?`?${p.toString()}`:"";window.history.replaceState({tab:u},document.title,`${window.location.pathname}${m}`)}),{activeTab:a,isActiveTab:l,tabs:e}},ac=n=>{const r=t.ref(n);return t.watch(r,e=>{const o=new URLSearchParams(window.location.search);for(const i in e){const l=e[i];if(l==null||l==null){o.delete(i);continue}if(Array.isArray(l)){o.delete(i),l.forEach(s=>{o.append(i,s.toString())});continue}!o.has(i)&&!l||o.set(i,l.toString())}const a=o.toString()!==""?`?${o.toString()}`:"";window.history.replaceState(t.toRaw(e),document.title,`${window.location.pathname}${a}`)},{deep:!0}),r},ic={class:"px-4 flex items-center justify-between sm:px-0"},lc={class:"w-0 flex-1 flex"},sc=t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),cc={class:"hidden md:flex"},dc=["onClick","textContent"],uc={class:"w-0 flex-1 flex justify-end"},fc=t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),pn=t.defineComponent({__name:"Paginator",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=i=>{r("update:modelValue",{...e.modelValue,page:i})},a=t.computed(()=>{const i=[];if(e.modelValue.totalPages<=4){for(let s=0;s<e.modelValue.totalPages;s++)i.push(s+1);return i}if(e.modelValue.totalPages-e.modelValue.page>=3){for(let s=0;s<4;s++)i.push(e.modelValue.page+s);return i}for(let s=0;s<4;s++)i.unshift(e.modelValue.totalPages-s);return i});return(i,l)=>(t.openBlock(),t.createElementBlock("div",ic,[t.createElementVNode("div",lc,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[0]||(l[0]=t.withModifiers(s=>o(i.modelValue.page-1),["prevent"]))},[sc,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",cc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,s=>(t.openBlock(),t.createElementBlock("a",{key:s,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",i.modelValue.page===s?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(c=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,dc))),128))]),t.createElementVNode("div",uc,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page>=i.modelValue.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[1]||(l[1]=t.withModifiers(s=>o(i.modelValue.page+1),["prevent"]))},[t.createTextVNode(" Next "),fc],2)])]))}}),pc={key:0,class:"shadow overflow-hidden sm:rounded-md border"},_a=t.defineComponent({__name:"DetailList",props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:{},url:{}},setup(n){const r=n,e=t.ref({minDate:0,maxDate:0}),o=t.ref(!0),a=t.ref([]),i=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),l=t.ref("DESC"),s=c=>{const d={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};In.get(r.url,{},Object.assign(d,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,c&&(o.value=a.value.length!=0)},()=>{ur.genericError()})};return t.watch([l,e],()=>{s(!1)}),t.watch(()=>r.refreshTrigger,()=>{s(!1)}),t.watch(()=>r.reloadTrigger,()=>{i.value.page=1,s(!0)}),s(!0),(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(cr,{"date-range":e.value,"sort-dir":l.value,title:c.title,onSortDirChanged:d[0]||(d[0]=u=>l.value=u),onDateRangeChanged:d[1]||(d[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",pc,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,p)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"border-t border-gray-200":p>0})},[t.renderSlot(c.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(pn,{key:2,modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=u=>i.value=u),d[3]||(d[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),mc=["href"],Da=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(rs),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,mc))}}),hc={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},gc={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},bc={class:"p-4"},yc={class:"flex items-center"},wc={class:"w-0 flex-1 flex justify-between"},xc=["innerHTML"],Cc={class:"ml-4 shrink-0 flex"},kc=["onClick"],Ec=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)],mn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ge(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{rc(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(jn),null,{default:t.withCtx(()=>[t.createElementVNode("div",hc,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([l,s])=>(t.openBlock(),t.createElementBlock("div",{key:s.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(s.type)]])},[t.createElementVNode("div",gc,[t.createElementVNode("div",bc,[t.createElementVNode("div",yc,[t.createElementVNode("div",wc,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,xc)]),t.createElementVNode("div",Cc,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(l)},Ec,8,kc)])])])])],2))),128))]),_:1})])]),_:1}))}}),Yp="";function _c(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Dc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function Nc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function Na(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function St(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const Sc={class:"flex"},vc={class:"flex-shrink-0"},Vc={class:"ml-2.5"},$c={key:0,role:"list",class:"list-disc space-y-1 pl-5"},Bc={key:1},Tc={key:1,class:"mt-4"},Mc={class:"flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"},Oc={key:0},Pc=["href","role"],Ac={key:1},Lc=["href","role"],Rc={key:0,class:"ml-auto pl-3"},Ic={class:"-mx-1.5 -my-1.5"},Fc=t.createElementVNode("span",{class:"sr-only"},"close",-1),Sa=t.defineComponent({__name:"InlineAlert",props:{btnLink:{default:""},btnText:{default:""},content:{},dismissable:{type:Boolean,default:!1},secondaryBtnLink:{default:""},secondaryBtnText:{default:""},title:{default:""},kind:{}},emits:["close","click","click:secondary"],setup(n,{emit:r}){const e=n,o=t.ref(!0),a=()=>{o.value=!1,r("close",!0)},i=t.computed(()=>{const s={bgColor:"",btnAction:"",btnClose:"",contentColor:"",iconColor:""};switch(e.kind){case"alert":s.bgColor="bg-red-50",s.btnAction="bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",s.btnClose="bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",s.contentColor="text-red-800",s.iconColor="text-red-400";break;case"info":s.bgColor="bg-blue-50",s.btnAction="bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",s.btnClose="bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",s.contentColor="text-blue-800",s.iconColor="text-blue-400";break;case"success":s.bgColor="bg-emerald-50",s.btnAction="bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",s.btnClose="bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",s.contentColor="text-emerald-800",s.iconColor="text-emerald-400";break;case"warn":s.bgColor="bg-amber-50",s.btnAction="bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",s.btnClose="bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",s.contentColor="text-amber-800",s.iconColor="text-amber-400";break}return s}),l=t.computed(()=>{let s=null;switch(e.kind){case"alert":s=is;break;case"info":s=as;break;case"success":s=qo;break;case"warn":s=os;break}return s});return(s,c)=>o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rounded-lg p-4",i.value.bgColor])},[t.createElementVNode("div",Sc,[t.createElementVNode("div",vc,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:t.normalizeClass(["h-5 w-5",i.value.iconColor]),"aria-hidden":"true"},null,8,["class"]))]),t.createElementVNode("div",Vc,[s.title?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["text-sm leading-snug font-semibold mb-1.5",i.value.contentColor])},t.toDisplayString(s.title),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["text-sm",i.value.contentColor])},[Array.isArray(s.content)?(t.openBlock(),t.createElementBlock("ul",$c,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.content,(d,u)=>(t.openBlock(),t.createElementBlock("li",{key:u},t.toDisplayString(d),1))),128))])):(t.openBlock(),t.createElementBlock("p",Bc,t.toDisplayString(s.content),1))],2),s.btnText||s.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Tc,[t.createElementVNode("div",Mc,[s.btnText?(t.openBlock(),t.createElementBlock("div",Oc,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:s.btnLink,role:s.btnLink?"link":"button",onClick:c[0]||(c[0]=d=>s.$emit("click",d))},t.toDisplayString(s.btnText),11,Pc)])):t.createCommentVNode("",!0),s.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Ac,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:s.secondaryBtnLink,role:s.secondaryBtnLink?"link":"button",onClick:c[1]||(c[1]=d=>s.$emit("click:secondary",d))},t.toDisplayString(s.secondaryBtnText),11,Lc)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),s.dismissable?(t.openBlock(),t.createElementBlock("div",Rc,[t.createElementVNode("div",Ic,[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnClose]),type:"button",onClick:a},[Fc,t.createVNode(t.unref(St),{class:"h-4 w-4"})],2)])])):t.createCommentVNode("",!0)])],2)):t.createCommentVNode("",!0)}}),jc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Hc=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Uc={class:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full"},zc={class:"block absolute top-0 right-0 pt-4 pr-4"},qc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),Yc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Wc={class:"mt-3 sm:mt-0 sm:text-left"},Kc={class:"mt-2"},Gc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},Jc=["disabled","textContent"],va=t.defineComponent({__name:"Modal",props:{destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean},submitText:{default:""},title:{default:""}},emits:["submit","update:modelValue"],setup(n,{emit:r}){const e=()=>{r("submit")},o=a=>{r("update:modelValue",a)};return(a,i)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:a.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",jc,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Hc,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",Uc,[t.createElementVNode("div",zc,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>o(!1))},[qc,t.createVNode(t.unref(St),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Yc,[t.createElementVNode("div",Wc,[t.createVNode(t.unref(zn),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",Kc,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",Gc,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[a.destructive?"xy-btn-red":"xy-btn"]]),disabled:a.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(a.submitText)},null,10,Jc),t.createElementVNode("button",{ref:"cancelButtonRef",type:"button",class:"xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>o(!1))}," Cancel ",512)])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"buttons")])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Xc={class:"aspect-square overflow-hidden"},Zc={class:"flex justify-center relative"},Qc={class:"sr-only"},ed=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-sm"},[t.createElementVNode("svg",{class:"h-full w-full text-xy-green-300",viewBox:"0 0 129 129",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("polygon",{id:"path-1",points:"0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"})]),t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-6-Copy-3"},[t.createElementVNode("g",{id:"Group-3"},[t.createElementVNode("mask",{id:"mask-2",fill:"white"},[t.createElementVNode("use",{"xlink:href":"#path-1"})]),t.createElementVNode("g",{id:"Clip-2"}),t.createElementVNode("path",{id:"Fill-1",d:"M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",fill:"currentColor",mask:"url(#mask-2)"})])])])])],-1),td=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{viewBox:"0 0 280 280",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("path",{class:"fill-xy-green",d:"m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"}),t.createElementVNode("path",{class:"fill-xy-blue",d:"m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"})])],-1),fr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,i;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(i=t.unref(r))==null?void 0:i.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",Xc,[t.createElementVNode("div",Zc,[t.createElementVNode("p",Qc,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),ed,td])])],2)}}}),nd={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},rd={class:"mt-2"},hn=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Qr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},c=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(jn),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",nd,[t.createVNode(fr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",rd,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:s},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(i)),513),[[t.vShow,t.unref(l)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),od={class:"h-screen flex overflow-hidden bg-gray-100"},ad={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},id={class:"absolute top-0 right-0 -mr-12 pt-2"},ld=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),sd={class:"shrink-0 flex justify-center px-4"},cd=["src"],dd={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},ud={class:"flex-1 px-2 space-y-1"},fd=["href","target"],pd={key:0,class:"mt-auto"},md={class:"mt-6 px-2"},hd=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),gd={class:"hidden lg:flex lg:shrink-0"},bd={class:"flex flex-col w-64"},yd={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},wd={class:"flex justify-center shrink-0 px-4"},xd=["src"],Cd={class:"mt-5 grow flex flex-col"},kd={class:"flex-1 px-2 bg-white space-y-1"},Ed=["href","target"],_d={key:0,class:"mt-atuo"},Dd={class:"mt-6 px-2"},Nd={class:"flex flex-col w-0 flex-1 overflow-hidden"},Sd={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},vd=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Vd={class:"flex-1 px-4 flex justify-between"},$d={class:"flex-1 flex"},Bd={class:"flex items-center text-2xl text-white"},Td={class:"ml-4 flex items-center lg:ml-6"},Md=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Od=["href"],Pd={class:"flex-1 relative overflow-y-auto focus:outline-none"},Ad={class:"mx-auto"},Va=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",od,[t.createVNode(t.unref(Ct),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:i[1]||(i[1]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Le),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Le),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",ad,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createElementVNode("div",id,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:i[0]||(i[0]=l=>e.value=!1)},[ld,t.createVNode(t.unref(St),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",sd,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,cd)]),t.createElementVNode("div",dd,[t.createElementVNode("nav",ud,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,fd))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",pd,[t.createElementVNode("div",md,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),hd]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",gd,[t.createElementVNode("div",bd,[t.createElementVNode("div",yd,[t.createElementVNode("div",wd,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,xd)]),t.createElementVNode("div",Cd,[t.createElementVNode("nav",kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,Ed))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",_d,[t.createElementVNode("div",Dd,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Nd,[t.createElementVNode("div",Sd,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:i[2]||(i[2]=l=>e.value=!0)},[vd,t.createVNode(t.unref(Dc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Vd,[t.createElementVNode("div",$d,[t.createElementVNode("h1",Bd,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Td,[t.createVNode(t.unref(qn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Yn),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Md,t.createVNode(t.unref(ts),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,Od)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Pd,[t.createElementVNode("div",Ad,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(mn),t.createVNode(hn)],64))}}),vt=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.ref(null),o=t.ref(null),a=t.computed(()=>{const s=[bs(5),ws()];return r.position==="auto"&&s.push(gs()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=ba(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Mo),{as:s.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(Hl),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref_key:"wrapper",ref:o,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Ul),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),Ld=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},Rd={},Id={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function Fd(n,r){return t.openBlock(),t.createElementBlock("div",Id,[t.renderSlot(n.$slots,"default")])}const $a=Ld(Rd,[["render",Fd]]),jd={class:"absolute inset-0 overflow-hidden"},Hd={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},Ud={class:"w-screen max-w-md"},zd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},qd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},Yd={class:"flex items-center justify-between"},Wd={class:"ml-3 h-7 flex items-center"},Kd=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),Gd={class:"mt-1"},Jd=["textContent"],Xd={class:"relative flex-1 py-6 px-4 sm:px-6"},Ba=t.defineComponent({__name:"Slideover",props:{header:{},description:{},modelValue:{type:Boolean}},emits:["close","update:modelValue"],setup(n,{emit:r}){const e=n,o=t.ref(e.modelValue),a=()=>{o.value=!1,r("close",o.value),r("update:modelValue",o.value)};return(i,l)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:i.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",jd,[t.createVNode(t.unref(Xt),{class:"absolute inset-0"}),t.createElementVNode("div",Hd,[t.createVNode(t.unref(Le),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",Ud,[t.createElementVNode("div",zd,[t.createElementVNode("div",qd,[t.createElementVNode("div",Yd,[t.createVNode(t.unref(zn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",Wd,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[Kd,t.createVNode(t.unref(St),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Gd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,Jd)])]),t.createElementVNode("div",Xd,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Zd=["onMouseover","onMouseleave"],Qd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),eu=["onMouseleave"],tu={class:"max-w-xs"},Ta=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=i=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||i()},100)},a=(i,l)=>{r=!0,!l&&i.target&&i.target.click()};return(i,l)=>(t.openBlock(),t.createBlock(vt,{position:i.position,as:i.as},{button:t.withCtx(({open:s,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,s),onMouseleave:d=>o(c)},[t.createVNode(t.unref(_c)),Qd],40,Zd)]),default:t.withCtx(({close:s})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:l[0]||(l[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(s),["prevent"])},[t.createElementVNode("div",tu,[t.renderSlot(i.$slots,"default")])],40,eu)]),_:3},8,["position","as"]))}}),nu={class:"min-h-screen bg-gray-100"},ru={class:"mx-auto px-4 sm:px-6 lg:px-8"},ou={class:"flex justify-between h-16"},au={class:"flex"},iu={class:"shrink-0 flex items-center"},lu=["src"],su={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},cu=["href","aria-current"],du={class:"hidden sm:ml-6 sm:flex sm:items-center"},uu=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),fu=["href"],pu={class:"-mr-2 flex items-center sm:hidden"},mu=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),hu={class:"pt-2 pb-3 space-y-1"},gu=["href","aria-current"],bu={class:"pt-4 pb-3 border-t border-gray-200"},yu={class:"flex items-center px-4"},wu={class:"shrink-0"},xu={class:"ml-3"},Cu=["textContent"],ku=["textContent"],Eu={class:"mt-3 space-y-1"},_u=["href"],Du={class:"mx-auto sm:px-6 lg:px-8"},Nu={class:"px-4 py-8 sm:px-0"},Ma=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",nu,[t.createVNode(t.unref(Ol),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",ru,[t.createElementVNode("div",ou,[t.createElementVNode("div",au,[t.createElementVNode("div",iu,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,lu)]),t.createElementVNode("div",su,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,cu))),128))])]),t.createElementVNode("div",du,[t.createVNode(t.unref(qn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Yn),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[uu,t.createVNode(t.unref(Na),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,fu)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",pu,[t.createVNode(t.unref(Pl),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[mu,i?(t.openBlock(),t.createBlock(t.unref(St),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Nc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Al),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",hu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,gu))),128))]),t.createElementVNode("div",bu,[t.createElementVNode("div",yu,[t.createElementVNode("div",wu,[t.createVNode(t.unref(Na),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",xu,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,Cu)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,ku)])]),t.createElementVNode("div",Eu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(l.name),9,_u))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Du,[t.createElementVNode("div",Nu,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(mn),t.createVNode(hn)],64))}}),Su=n=>n==null,vu={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Oa=(n,r,e,o=vu)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),c=t.computed(()=>a.value.map(u=>{let p="";switch((u==null?void 0:u.alignment)||"left"){case"left":p="text-left";break;case"right":p="text-right";break;case"center":p="text-center";break}return{...u,alignment:p}})),d=t.computed(()=>i.value.map((u,p)=>({actions:l.value.actions.map(m=>({...m,disabled:typeof m.disabled=="function"?m.disabled.apply(void 0,[u,p]):m.disabled,onClick:()=>m.onClick(u,p,o),show:typeof m.show=="function"?m.show.apply(void 0,[u,p]):m.show})),rowData:u,cells:c.value.map(m=>{const g=typeof m.render=="string"?u[m.render]:m.render(u,p),b=(m==null?void 0:m.classNames)||"";return{...m,isComponent:t.isVNode(g),classNames:typeof b=="function"?b.apply(void 0,[u,p]):b,val:g}})})));return{columns:c,hasActions:s,isEmptyCellValue:Su,rows:d}},Vu={key:0,class:"flex items-center space-x-2 justify-end"},$u={class:"isolate inline-flex rounded-md shadow-sm"},Bu=["disabled","onClick"],Tu={class:"relative inline-flex items-center gap-x-1.5"},Pa=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Yo(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Vu,[t.createElementVNode("span",$u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Tu,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,Bu))),128))])])):t.createCommentVNode("",!0)}}),Mu={class:"flex flex-col"},Ou={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Pu={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Au={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},Lu={class:"min-w-full divide-y divide-gray-200"},Ru={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Iu={class:"bg-white divide-y divide-gray-200"},Fu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},ju={key:0},Hu=["colspan"],Aa=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Oa(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",Mu,[t.createElementVNode("div",Ou,[t.createElementVNode("div",Pu,[t.createElementVNode("div",Au,[t.createElementVNode("table",Lu,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",Ru)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Iu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,p)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:p,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",Fu,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(sn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Pa,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",ju,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Hu)])):t.createCommentVNode("",!0)])])])])])]))}}),Uu={class:"flex items-center justify-center space-x-8"},zu={class:"font-medium"},qu={class:"flex items-center space-x-5"},Yu={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},Wu={key:1,class:"relative flex items-center justify-center"},Ku=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)],Gu={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Ju={key:0,class:"flex shrink-0"},Xu={key:0,class:"inline-flex rounded-md shadow-sm"},Zu=["textContent"],Qu={class:"ml-3 inline-flex rounded-md shadow-sm"},ef=["textContent"],La=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=()=>{r("next")},o=()=>{r("previous")};return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",Uu,[t.createElementVNode("p",zu,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",qu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[a.step>l?(t.openBlock(),t.createElementBlock("span",Yu)):a.step===l?(t.openBlock(),t.createElementBlock("div",Wu,Ku)):(t.openBlock(),t.createElementBlock("span",Gu))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ju,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Xu,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,Zu)])),t.createElementVNode("span",Qu,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,ef)])]))]))}}),tf={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},nf={key:0,class:"w-full max-w-lg lg:max-w-xs"},rf=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),of={class:"flex items-center gap-x-2"},af=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),lf={class:"flex-1"},sf={key:1,class:"w-full max-w-lg lg:max-w-xs"},cf=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1),df={class:"flex items-center gap-x-2"},uf=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1),ff={class:"flex-1"},pf={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},mf={class:"min-w-full divide-y divide-gray-200"},hf={key:0},gf=["onClick"],bf={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},yf=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)],wf={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},xf=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],Cf={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},kf=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],Ef={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},_f={class:"bg-white divide-y divide-gray-200"},Df=["onClick"],Nf={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Sf={key:0},vf=["colspan"],Ra=t.defineComponent({__name:"DynamicTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableOptions:{}},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const A={minDate:b.value.minDate,maxDate:b.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:m.value,sortDir:g.value,q:x.value};In.get(e.tableOptions.url,{skipLoader:!1},A).then(R=>{y.value={page:R.data.page,perPage:R.data.perPage,totalItems:R.data.totalItems,totalPages:R.data.totalPages},l.value=R.data.items},()=>{ur.genericError()})},a=()=>{y.value.page=1,o()},i=()=>{if(v.value.maxRange){const A=new Date,R=A.setDate(A.getDate()-v.value.maxRange),M=new Date;b.value={minDate:Math.floor(R/1e3),maxDate:Math.floor(M.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:c,hasActions:d,isEmptyCellValue:u,rows:p}=Oa(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),m=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),g=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),b=t.ref({minDate:0,maxDate:0}),y=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),x=t.ref(""),k=A=>{y.value.page=1,b.value=A,o()},D=A=>{m.value==A?g.value=g.value==="desc"?"asc":"desc":(m.value=A,g.value="desc"),o()},v=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),H=t.computed(()=>!!p.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(s),i(),o(),(A,R)=>{const M=t.resolveComponent("BaseInput");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",tf,[A.tableOptions.search?(t.openBlock(),t.createElementBlock("div",nf,[rf,t.createElementVNode("div",of,[af,t.createElementVNode("div",lf,[t.createVNode(M,{id:"table-search",modelValue:x.value,"onUpdate:modelValue":R[0]||(R[0]=U=>x.value=U),modelModifiers:{trim:!0},type:"search",placeholder:"Search",onChange:R[1]||(R[1]=U=>a())},null,8,["modelValue"])])])])):t.createCommentVNode("",!0),A.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",sf,[cf,t.createElementVNode("div",df,[uf,t.createElementVNode("div",ff,[t.createVNode(fn,t.mergeProps({id:"table-date-range",modelValue:b.value,"onUpdate:modelValue":R[2]||(R[2]=U=>b.value=U)},{...v.value},{"onUpdate:modelValue":k}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",pf,[t.createElementVNode("table",mf,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(U,I)=>(t.openBlock(),t.createElementBlock("th",{key:I,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",U.alignment])},[U.title?(t.openBlock(),t.createElementBlock("span",hf,t.toDisplayString(U.title),1)):t.createCommentVNode("",!0),U.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(F=>D(U.sort),["prevent"])},[m.value!==U.sort?(t.openBlock(),t.createElementBlock("svg",bf,yf)):g.value=="desc"?(t.openBlock(),t.createElementBlock("svg",wf,xf)):(t.openBlock(),t.createElementBlock("svg",Cf,kf))],8,gf)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Ef)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",_f,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(U,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I,onClick:F=>A.$emit("click:row",U.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.cells,(F,X)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:X,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",F.alignment])},{default:t.withCtx(()=>[F.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(F.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(F.classNames)},t.toDisplayString(t.unref(u)(F.val)?"-":String(F.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",Nf,[A.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(sn),{key:0,actions:U.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Pa,{key:1,actions:U.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Df))),128)),H.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Sf,[t.createElementVNode("td",{colspan:t.unref(p).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,vf)]))])])]),H.value?(t.openBlock(),t.createBlock(pn,{key:0,modelValue:y.value,"onUpdate:modelValue":[R[3]||(R[3]=U=>y.value=U),R[4]||(R[4]=U=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)])}}}),Vf=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),$f={class:"hidden sm:block"},Bf=["onClick","textContent"],Ia=t.defineComponent({__name:"Tabs",props:{modelValue:{},pillDesign:{type:Boolean,default:!1},tabs:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=l=>{r("update:modelValue",l)},a=(l,s)=>{let c="";return e.pillDesign?(c="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?c=c+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":c=c+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",c):(c="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?c=c+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":c=c+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(c=c+" ml-8"),c)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const c=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":l.pillDesign}])},[Vf,t.createVNode(c,{name:"tabs","model-value":l.modelValue,options:l.tabs,"onUpdate:modelValue":s[0]||(s[0]=d=>o(d))},null,8,["model-value","options"])],2),t.createElementVNode("div",$f,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":i.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[l.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.tabs,(d,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(d.value,u>0)),onClick:t.withModifiers(p=>o(d.value),["prevent"]),textContent:t.toDisplayString(d.label)},null,10,Bf))),128))],2)],2)])])}}}),Tf={key:0,class:"sr-only"},Mf={class:"ml-3 mt-0.5"},Fa=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:{modelValue:{type:Boolean},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=t.useAttrs(),o=t.computed(()=>Fn(e,"disabled"));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(Yl),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wl),{class:t.normalizeClass([a.modelValue?"bg-xy-blue":"bg-gray-200",o.value?"opacity-75 cursor-not-allowed":"cursor-pointer","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),disabled:o.value,"model-value":a.modelValue,"onUpdate:modelValue":i[0]||(i[0]=l=>r("update:modelValue",l))},{default:t.withCtx(()=>[a.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Tf,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([a.modelValue?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["class","disabled","model-value"]),t.createElementVNode("div",Mf,[a.label?(t.openBlock(),t.createBlock(t.unref(Kl),{key:0},{default:t.withCtx(()=>[t.createVNode(be,{label:a.label,class:t.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),a.help?(t.openBlock(),t.createBlock(t.unref(Gl),{key:1},{default:t.withCtx(()=>[t.createVNode(se,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),Of=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","type","value"],ja=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeDefaults({modelValue:{},type:{},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n,{expose:r}){const e=n,o=t.ref(null),{errorState:a,modelState:i,inputID:l,isRequired:s,onInvalid:c,inputValidation:d}=Be(e);r({input:o});const u=t.computed(()=>{switch(e.type){case"number":return{max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER};case"email":return{pattern:io};case"tel":return{pattern:lo};default:return{}}}),p=m=>{let g=m.target.value;e.type==="number"&&(g=so(g)),i.value=g,d(m)};return(m,g)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:`${t.unref(l)}-label`,class:"mb-2",for:t.unref(l),label:m.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(l),ref_key:"input",ref:o,"aria-labelledby":m.label?`${t.unref(l)}-label`:void 0,"aria-describedby":m.help?`${t.unref(l)}-help`:void 0,"aria-errormessage":t.unref(a)?`${t.unref(l)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:m.placeholder,type:m.type,value:t.unref(i)},{...u.value,...m.$attrs},{onInput:p,onInvalid:g[0]||(g[0]=(...b)=>t.unref(c)&&t.unref(c)(...b))}),null,16,Of),t.createVNode(se,{id:`${t.unref(l)}-help`,class:"mt-1",text:m.help},null,8,["id","text"]),t.createVNode(Ve,{id:`${t.unref(l)}-error`,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])]))}}),Pf={class:"relative flex items-start"},Af={class:"flex items-center h-5"},Lf=["id","aria-labelledby","aria-describedby","aria-errormessage","checked"],Rf={class:"ml-3"},Ha=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isDisabled:a,isRequired:i,errorState:l,modelState:s,validate:c,onInvalid:d}=Be(r),u=p=>{s.value=p.target.checked,c(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("div",Pf,[t.createElementVNode("div",Af,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,checked:t.unref(s)||void 0,class:["h-4 w-4 rounded text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},p.$attrs,{onChange:u,onInvalid:m[0]||(m[0]=(...g)=>t.unref(d)&&t.unref(d)(...g))}),null,16,Lf)]),t.createElementVNode("div",Rf,[t.createVNode(be,{id:t.unref(e).labelledby,for:t.unref(o),label:p.label,class:t.normalizeClass(t.unref(a)?"cursor-not-allowed":"cursor-pointer"),required:t.unref(i)},null,8,["id","for","label","class","required"]),t.createVNode(se,{id:t.unref(e).describedby,text:p.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])])]))}}),If={key:0,class:"text-red-700/80"},ut=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"legend"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>o.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-base leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",If,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),Ff=["aria-labelledby","aria-describedby","aria-errormessage"],jf={key:0},Hf={class:"flex"},Uf={class:"flex items-center h-5"},zf=["id","aria-labelledby","aria-describedby","checked","disabled","onChange"],qf={class:"ml-3"},Ua=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeDefaults({max:{},min:{},modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isDisabled:a,modelState:i,errorState:l,validate:s}=Be(r),c=(y,x)=>{const k=y.target.checked;Array.isArray(i.value)||(i.value=[]),k?i.value.push(x):i.value.splice(i.value.indexOf(x),1),s(y)},d=t.computed(()=>Array.isArray(i.value)?i.value.length:0),u=t.computed(()=>r.min||0),p=t.computed(()=>r.max||r.options.filter(y=>!y.disabled).length),m=t.computed(()=>d.value<u.value?`Please select ${u.value} of these option${u.value>1?"s":""}.`:d.value>p.value?`Please select only ${p.value} of these option${p.value>1?"s":""}.`:""),g=t.ref(null),b=()=>{var y;l.value||(l.value=m.value,(y=g.value)==null||y.setCustomValidity(m.value))};return(y,x)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[y.label?(t.openBlock(),t.createElementBlock("div",jf,[t.createVNode(ut,{id:t.unref(e).labelledby,label:y.label,required:u.value>0},null,8,["id","label","required"]),y.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:y.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(l)},null,8,["id","text"]),m.value?(t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"errorInput",ref:g,required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:b},null,544)):t.createCommentVNode("",!0),t.createElementVNode("div",Hf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-6",{"sm:grid sm:gap-x-5 sm:space-y-0":y.columns!==void 0,"sm:grid-cols-2":y.columns===2,"sm:grid-cols-3":y.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.options,(k,D)=>{var v;return t.openBlock(),t.createElementBlock("div",{key:k.value,class:"flex items-start"},[t.createElementVNode("div",Uf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(o)}-${D}`,"aria-labelledby":`${t.unref(o)}-${D}-label`,"aria-describedby":k.help?`${t.unref(o)}-${D}-help`:void 0,checked:(v=y.modelValue)==null?void 0:v.includes(k.value),disabled:k.disabled,class:["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},y.$attrs,{onChange:H=>c(H,k.value)}),null,16,zf)]),t.createElementVNode("div",qf,[t.createVNode(be,{id:`${t.unref(o)}-${D}-label`,for:`${t.unref(o)}-${D}`,label:k.label,class:t.normalizeClass(t.unref(a)||k.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(se,{id:`${t.unref(o)}-${D}-help`,text:k.help},null,8,["id","text"])])])}),128))],2)])],8,Ff))}}),Yf=["aria-labelledby","aria-describedby","aria-errormessage"],Wf={key:0},Kf={class:"flex"},Gf={class:"flex items-center h-5"},Jf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value","onChange"],Xf={class:"ml-3"},za=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,errorState:o,modelState:a,inputID:i,isDisabled:l,isRequired:s,onInvalid:c,validate:d}=Be(r),u=(p,m)=>{a.value=m,d(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[p.label?(t.openBlock(),t.createElementBlock("div",Wf,[t.createVNode(ut,{id:t.unref(e).labelledby,label:p.label,required:t.unref(s)},null,8,["id","label","required"]),p.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(o)},null,8,["id","text"]),t.createElementVNode("div",Kf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-6",{"sm:grid sm:gap-x-5 sm:space-y-0":p.columns!==void 0,"sm:grid-cols-2":p.columns===2,"sm:grid-cols-3":p.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.options,(g,b)=>(t.openBlock(),t.createElementBlock("div",{key:g.value,class:"flex items-start"},[t.createElementVNode("div",Gf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${b}`,"aria-describedby":g.help?`${t.unref(i)}-${b}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${b}-label`,checked:t.unref(a)===g.value,class:["h-4 w-4 cursor-pointer text-xy-blue","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(o)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],disabled:g.disabled,name:t.unref(i),type:"radio",value:g.value},p.$attrs,{onChange:y=>u(y,g.value),onInvalid:m[0]||(m[0]=(...y)=>t.unref(c)&&t.unref(c)(...y))}),null,16,Jf)]),t.createElementVNode("div",Xf,[t.createVNode(be,{id:`${t.unref(i)}-${b}-label`,for:`${t.unref(i)}-${b}`,label:g.label,class:t.normalizeClass(t.unref(l)||g.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(se,{id:`${t.unref(i)}-${b}-help`,text:g.help},null,8,["id","text"])])]))),128))],2)])],8,Yf))}}),Zf={class:"flex-1 flex pr-1"},Qf={class:"flex flex-col"},ep={key:1,class:"mt-auto mb-0"},tp=["checked","name","required","value"],qa=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:t.mergeDefaults({options:{},modelValue:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,isDisabled:o,isRequired:a,nameAttr:i,modelState:l,errorState:s,onInvalid:c}=Be(r),d=u=>{u&&(s.value="")};return(u,p)=>(t.openBlock(),t.createBlock(t.unref(zl),{modelValue:t.unref(l),"onUpdate:modelValue":[p[1]||(p[1]=m=>t.isRef(l)?l.value=m:null),d],disabled:t.unref(o),"aria-invalid":t.unref(s)?"true":null,"aria-errormessage":t.unref(e).errormessage},{default:t.withCtx(()=>[u.label?(t.openBlock(),t.createBlock(t.unref(Io),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(ut,{tag:"div",label:u.label,required:t.unref(a)},null,8,["label","required"])]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(Jn),{key:1},{default:t.withCtx(()=>[t.createVNode(se,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(s)},null,8,["id","text"]),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createBlock(t.unref(ql),{key:m.value,as:"template",disabled:t.unref(o)||m.disabled,value:m.value},{default:t.withCtx(({active:g,checked:b,disabled:y})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[y?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",t.unref(s)&&!y?"border-red-700":"",b?"border-transparent":"",g?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",Zf,[t.createElementVNode("div",Qf,[t.createVNode(t.unref(Io),{as:"div"},{default:t.withCtx(()=>[t.createVNode(be,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Jn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(se,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",ep,[t.createVNode(t.unref(Jn),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:b,disabled:y,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(qo),{class:t.normalizeClass([b?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",b?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:b,name:t.unref(i),required:t.unref(a),tabindex:"-1",type:"radio",value:m.value,onInvalid:p[0]||(p[0]=(...x)=>t.unref(c)&&t.unref(c)(...x))},null,40,tp)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["modelValue","disabled","aria-invalid","aria-errormessage"]))}}),np=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","value"],Ya=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isRequired:a,modelState:i,errorState:l,onInvalid:s,inputValidation:c}=Be(r),d=u=>{i.value=u.target.value,c(u)};return(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(o),label:u.label,required:t.unref(a)},null,8,["id","for","label","required"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder,value:t.unref(i)||void 0},u.$attrs,{onInput:d,onInvalid:p[0]||(p[0]=(...m)=>t.unref(s)&&t.unref(s)(...m))}),null,16,np),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),rp=["aria-labelledby","aria-describedby","aria-errormessage"],op={key:0},ap=["for"],ip=["id","name","checked"],lp=["for"],sp=["id","name","checked"],Wa=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,isDisabled:o,isRequired:a,nameAttr:i,modelState:l,errorState:s,onInvalid:c,validate:d}=Be(r),u=(p,m)=>{l.value=m,d(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[p.label?(t.openBlock(),t.createElementBlock("div",op,[t.createVNode(ut,{id:t.unref(e).labelledby,class:"block my-auto",label:p.label,required:t.unref(a),tag:"legend"},null,8,["id","label","required"]),p.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(s)},null,8,["id","text"]),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(o)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-true`,type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(s)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!0,checked:t.unref(l)===!0},p.$attrs,{onChange:m[0]||(m[0]=g=>u(g,!0)),onInvalid:m[1]||(m[1]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,ip),t.createVNode(be,{class:"ml-3",label:"Yes",tag:"span"})],10,ap),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(o)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-false`,type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(s)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!1,checked:t.unref(l)===!1},p.$attrs,{onChange:m[2]||(m[2]=g=>u(g,!1)),onInvalid:m[3]||(m[3]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,sp),t.createVNode(be,{class:"ml-3",label:"No",tag:"span"})],10,lp)])],8,rp))}}),cp=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:sn,BaseInput:ja,Cards:ya,Checkbox:Ha,ContentModal:wa,DataTable:Aa,DateFilter:cr,DateRangePicker:fn,DetailList:_a,DownloadCell:Da,DynamicTable:Ra,FieldsetLegend:ut,Flash:mn,InlineAlert:Sa,InputError:Ve,InputHelp:se,InputLabel:be,Modal:va,MultiCheckboxes:Ua,Paginator:pn,Popover:vt,PopoverContent:$a,PopoverPosition:vt,Radio:za,RadioCards:qa,Select:sr,SidebarLayout:Va,Slideover:Ba,Spinner:hn,StackedLayout:Ma,Steps:La,Tabs:Ia,TextArea:Ya,Toggle:Fa,Tooltip:Ta,XYSpinner:fr,YesOrNoRadio:Wa},Symbol.toStringTag,{value:"Module"})),dp=function(r){Object.entries(cp).forEach(([e,o])=>{r.component(e,o)})};N.ActionsDropdown=sn,N.BaseAPI=In,N.BaseInput=ja,N.Cards=ya,N.Checkbox=Ha,N.ContentModal=wa,N.DataTable=Aa,N.DateFilter=cr,N.DateRangePicker=fn,N.DetailList=_a,N.DownloadCell=Da,N.DynamicTable=Ra,N.FieldsetLegend=ut,N.Flash=mn,N.InlineAlert=Sa,N.InputError=Ve,N.InputHelp=se,N.InputLabel=be,N.Modal=va,N.MultiCheckboxes=Ua,N.Paginator=pn,N.Popover=vt,N.PopoverContent=$a,N.PopoverPosition=vt,N.Radio=za,N.RadioCards=qa,N.Select=sr,N.SidebarLayout=Va,N.Slideover=Ba,N.Spinner=hn,N.StackedLayout=Ma,N.Steps=La,N.Tabs=Ia,N.TextArea=Ya,N.Toggle=Fa,N.Tooltip=Ta,N.XYSpinner=fr,N.YesOrNoRadio=Wa,N.debounceFn=oo,N.debounceLeading=yl,N.default=dp,N.emailPattern=io,N.isHttpCancel=to,N.isHttpError=eo,N.looseToNumber=so,N.phonePattern=lo,N.setBaseAPIDefaults=bl,N.throttleFn=wl,N.useAppFlasher=ur,N.useAppFlashes=Ge,N.useAppSpinner=Rn,N.useBaseAPI=dt,N.useBaseAPIDelete=Qs,N.useBaseAPIGet=Zs,N.useBaseAPIPatch=ec,N.useBaseAPIPost=tc,N.useBaseAPIPut=nc,N.useFlashes=Ea,N.useInputField=Be,N.useModel=ao,N.useSpinnerDisplay=Zr,N.useTabHistory=oc,N.useUrlSearchParams=ac,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
if the issue persists.`:"Whoops! Something went wrong.";return i({message:y,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:c,success:d,genericError:p},flashes:r,configure:o}}const oc=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let dr;function Ge(){return dr===void 0&&(dr=Ea()),dr}const ur={error(n,r){Ge().flasher.error(n,r)},info(n,r){Ge().flasher.info(n,r)},success(n,r){Ge().flasher.success(n,r)},warning(n,r){Ge().flasher.warning(n,r)},genericError(n,r){Ge().flasher.genericError(n,r)}},ac=(n,r)=>{var d;const e=t.ref(n),o={initial:((d=e==null?void 0:e.value[0])==null?void 0:d.value)||"",paramName:(r==null?void 0:r.paramName)||"tab"},a=t.ref(o.initial),i=u=>!!e.value.find(p=>p.value===u),l=u=>a.value===u,c=new URLSearchParams(window.location.search).get(o.paramName);return c&&i(c)&&(a.value=c),t.watch(a,u=>{const p=new URLSearchParams(window.location.search);p.set(o.paramName,u.toString());const m=p.toString()!==""?`?${p.toString()}`:"";window.history.replaceState({tab:u},document.title,`${window.location.pathname}${m}`)}),{activeTab:a,isActiveTab:l,tabs:e}},ic=n=>{const r=t.ref(n);return t.watch(r,e=>{const o=new URLSearchParams(window.location.search);for(const i in e){const l=e[i];if(l==null||l==null){o.delete(i);continue}if(Array.isArray(l)){o.delete(i),l.forEach(s=>{o.append(i,s.toString())});continue}!o.has(i)&&!l||o.set(i,l.toString())}const a=o.toString()!==""?`?${o.toString()}`:"";window.history.replaceState(t.toRaw(e),document.title,`${window.location.pathname}${a}`)},{deep:!0}),r},lc={class:"px-4 flex items-center justify-between sm:px-0"},sc={class:"w-0 flex-1 flex"},cc=t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),dc={class:"hidden md:flex"},uc=["onClick","textContent"],fc={class:"w-0 flex-1 flex justify-end"},pc=t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),pn=t.defineComponent({__name:"Paginator",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=i=>{r("update:modelValue",{...e.modelValue,page:i})},a=t.computed(()=>{const i=[];if(e.modelValue.totalPages<=4){for(let s=0;s<e.modelValue.totalPages;s++)i.push(s+1);return i}if(e.modelValue.totalPages-e.modelValue.page>=3){for(let s=0;s<4;s++)i.push(e.modelValue.page+s);return i}for(let s=0;s<4;s++)i.unshift(e.modelValue.totalPages-s);return i});return(i,l)=>(t.openBlock(),t.createElementBlock("div",lc,[t.createElementVNode("div",sc,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[0]||(l[0]=t.withModifiers(s=>o(i.modelValue.page-1),["prevent"]))},[cc,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",dc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,s=>(t.openBlock(),t.createElementBlock("a",{key:s,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",i.modelValue.page===s?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(c=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,uc))),128))]),t.createElementVNode("div",fc,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page>=i.modelValue.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[1]||(l[1]=t.withModifiers(s=>o(i.modelValue.page+1),["prevent"]))},[t.createTextVNode(" Next "),pc],2)])]))}}),mc={key:0,class:"shadow overflow-hidden sm:rounded-md border"},_a=t.defineComponent({__name:"DetailList",props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:{},url:{}},setup(n){const r=n,e=t.ref({minDate:0,maxDate:0}),o=t.ref(!0),a=t.ref([]),i=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),l=t.ref("DESC"),s=c=>{const d={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};In.get(r.url,{},Object.assign(d,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,c&&(o.value=a.value.length!=0)},()=>{ur.genericError()})};return t.watch([l,e],()=>{s(!1)}),t.watch(()=>r.refreshTrigger,()=>{s(!1)}),t.watch(()=>r.reloadTrigger,()=>{i.value.page=1,s(!0)}),s(!0),(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(cr,{"date-range":e.value,"sort-dir":l.value,title:c.title,onSortDirChanged:d[0]||(d[0]=u=>l.value=u),onDateRangeChanged:d[1]||(d[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",mc,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,p)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"border-t border-gray-200":p>0})},[t.renderSlot(c.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(pn,{key:2,modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=u=>i.value=u),d[3]||(d[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),hc=["href"],Da=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(os),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,hc))}}),gc={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},bc={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},yc={class:"p-4"},wc={class:"flex items-center"},xc={class:"w-0 flex-1 flex justify-between"},Cc=["innerHTML"],kc={class:"ml-4 shrink-0 flex"},Ec=["onClick"],_c=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)],mn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ge(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{oc(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(jn),null,{default:t.withCtx(()=>[t.createElementVNode("div",gc,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([l,s])=>(t.openBlock(),t.createElementBlock("div",{key:s.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(s.type)]])},[t.createElementVNode("div",bc,[t.createElementVNode("div",yc,[t.createElementVNode("div",wc,[t.createElementVNode("div",xc,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,Cc)]),t.createElementVNode("div",kc,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(l)},_c,8,Ec)])])])])],2))),128))]),_:1})])]),_:1}))}}),Wp="";function Dc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Nc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function Sc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function Na(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function St(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const vc={class:"flex"},Vc={class:"flex-shrink-0"},$c={class:"ml-2.5"},Bc={key:0,role:"list",class:"list-disc space-y-1 pl-5"},Tc={key:1},Mc={key:1,class:"mt-4"},Oc={class:"flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"},Pc={key:0},Ac=["href","role"],Lc={key:1},Rc=["href","role"],Ic={key:0,class:"ml-auto pl-3"},Fc={class:"-mx-1.5 -my-1.5"},jc=t.createElementVNode("span",{class:"sr-only"},"close",-1),Sa=t.defineComponent({__name:"InlineAlert",props:{btnLink:{default:""},btnText:{default:""},content:{},dismissable:{type:Boolean,default:!1},secondaryBtnLink:{default:""},secondaryBtnText:{default:""},title:{default:""},kind:{}},emits:["close","click","click:secondary"],setup(n,{emit:r}){const e=n,o=t.ref(!0),a=()=>{o.value=!1,r("close",!0)},i=t.computed(()=>{const s={bgColor:"",btnAction:"",btnClose:"",contentColor:"",iconColor:""};switch(e.kind){case"alert":s.bgColor="bg-red-50",s.btnAction="bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",s.btnClose="bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",s.contentColor="text-red-800",s.iconColor="text-red-400";break;case"info":s.bgColor="bg-blue-50",s.btnAction="bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",s.btnClose="bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",s.contentColor="text-blue-800",s.iconColor="text-blue-400";break;case"success":s.bgColor="bg-emerald-50",s.btnAction="bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",s.btnClose="bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",s.contentColor="text-emerald-800",s.iconColor="text-emerald-400";break;case"warn":s.bgColor="bg-amber-50",s.btnAction="bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",s.btnClose="bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",s.contentColor="text-amber-800",s.iconColor="text-amber-400";break}return s}),l=t.computed(()=>{let s=null;switch(e.kind){case"alert":s=ls;break;case"info":s=is;break;case"success":s=qo;break;case"warn":s=as;break}return s});return(s,c)=>o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rounded-lg p-4",i.value.bgColor])},[t.createElementVNode("div",vc,[t.createElementVNode("div",Vc,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:t.normalizeClass(["h-5 w-5",i.value.iconColor]),"aria-hidden":"true"},null,8,["class"]))]),t.createElementVNode("div",$c,[s.title?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["text-sm leading-snug font-semibold mb-1.5",i.value.contentColor])},t.toDisplayString(s.title),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["text-sm",i.value.contentColor])},[Array.isArray(s.content)?(t.openBlock(),t.createElementBlock("ul",Bc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.content,(d,u)=>(t.openBlock(),t.createElementBlock("li",{key:u},t.toDisplayString(d),1))),128))])):(t.openBlock(),t.createElementBlock("p",Tc,t.toDisplayString(s.content),1))],2),s.btnText||s.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Mc,[t.createElementVNode("div",Oc,[s.btnText?(t.openBlock(),t.createElementBlock("div",Pc,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:s.btnLink,role:s.btnLink?"link":"button",onClick:c[0]||(c[0]=d=>s.$emit("click",d))},t.toDisplayString(s.btnText),11,Ac)])):t.createCommentVNode("",!0),s.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",Lc,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:s.secondaryBtnLink,role:s.secondaryBtnLink?"link":"button",onClick:c[1]||(c[1]=d=>s.$emit("click:secondary",d))},t.toDisplayString(s.secondaryBtnText),11,Rc)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),s.dismissable?(t.openBlock(),t.createElementBlock("div",Ic,[t.createElementVNode("div",Fc,[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnClose]),type:"button",onClick:a},[jc,t.createVNode(t.unref(St),{class:"h-4 w-4"})],2)])])):t.createCommentVNode("",!0)])],2)):t.createCommentVNode("",!0)}}),Hc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Uc=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),zc={class:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full"},qc={class:"block absolute top-0 right-0 pt-4 pr-4"},Yc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),Wc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Kc={class:"mt-3 sm:mt-0 sm:text-left"},Gc={class:"mt-2"},Jc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},Xc=["disabled","textContent"],va=t.defineComponent({__name:"Modal",props:{destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean},submitText:{default:""},title:{default:""}},emits:["submit","update:modelValue"],setup(n,{emit:r}){const e=()=>{r("submit")},o=a=>{r("update:modelValue",a)};return(a,i)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:a.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",Hc,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Uc,t.createVNode(t.unref(Le),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",zc,[t.createElementVNode("div",qc,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>o(!1))},[Yc,t.createVNode(t.unref(St),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Wc,[t.createElementVNode("div",Kc,[t.createVNode(t.unref(zn),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",Gc,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",Jc,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[a.destructive?"xy-btn-red":"xy-btn"]]),disabled:a.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(a.submitText)},null,10,Xc),t.createElementVNode("button",{ref:"cancelButtonRef",type:"button",class:"xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>o(!1))}," Cancel ",512)])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"buttons")])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Zc={class:"aspect-square overflow-hidden"},Qc={class:"flex justify-center relative"},ed={class:"sr-only"},td=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-sm"},[t.createElementVNode("svg",{class:"h-full w-full text-xy-green-300",viewBox:"0 0 129 129",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("polygon",{id:"path-1",points:"0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"})]),t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-6-Copy-3"},[t.createElementVNode("g",{id:"Group-3"},[t.createElementVNode("mask",{id:"mask-2",fill:"white"},[t.createElementVNode("use",{"xlink:href":"#path-1"})]),t.createElementVNode("g",{id:"Clip-2"}),t.createElementVNode("path",{id:"Fill-1",d:"M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",fill:"currentColor",mask:"url(#mask-2)"})])])])])],-1),nd=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{viewBox:"0 0 280 280",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("path",{class:"fill-xy-green",d:"m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"}),t.createElementVNode("path",{class:"fill-xy-blue",d:"m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"})])],-1),fr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,i;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(i=t.unref(r))==null?void 0:i.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",Zc,[t.createElementVNode("div",Qc,[t.createElementVNode("p",ed,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),td,nd])])],2)}}}),rd={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},od={class:"mt-2"},hn=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Qr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},c=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(jn),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",rd,[t.createVNode(fr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",od,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:s},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(i)),513),[[t.vShow,t.unref(l)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),ad={class:"h-screen flex overflow-hidden bg-gray-100"},id={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},ld={class:"absolute top-0 right-0 -mr-12 pt-2"},sd=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),cd={class:"shrink-0 flex justify-center px-4"},dd=["src"],ud={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},fd={class:"flex-1 px-2 space-y-1"},pd=["href","target"],md={key:0,class:"mt-auto"},hd={class:"mt-6 px-2"},gd=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),bd={class:"hidden lg:flex lg:shrink-0"},yd={class:"flex flex-col w-64"},wd={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},xd={class:"flex justify-center shrink-0 px-4"},Cd=["src"],kd={class:"mt-5 grow flex flex-col"},Ed={class:"flex-1 px-2 bg-white space-y-1"},_d=["href","target"],Dd={key:0,class:"mt-atuo"},Nd={class:"mt-6 px-2"},Sd={class:"flex flex-col w-0 flex-1 overflow-hidden"},vd={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Vd=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),$d={class:"flex-1 px-4 flex justify-between"},Bd={class:"flex-1 flex"},Td={class:"flex items-center text-2xl text-white"},Md={class:"ml-4 flex items-center lg:ml-6"},Od=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Pd=["href"],Ad={class:"flex-1 relative overflow-y-auto focus:outline-none"},Ld={class:"mx-auto"},Va=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",ad,[t.createVNode(t.unref(Ct),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:i[1]||(i[1]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Le),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Le),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",id,[t.createVNode(t.unref(Le),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createElementVNode("div",ld,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:i[0]||(i[0]=l=>e.value=!1)},[sd,t.createVNode(t.unref(St),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",cd,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,dd)]),t.createElementVNode("div",ud,[t.createElementVNode("nav",fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,pd))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",md,[t.createElementVNode("div",hd,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),gd]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",bd,[t.createElementVNode("div",yd,[t.createElementVNode("div",wd,[t.createElementVNode("div",xd,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Cd)]),t.createElementVNode("div",kd,[t.createElementVNode("nav",Ed,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,_d))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Dd,[t.createElementVNode("div",Nd,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Sd,[t.createElementVNode("div",vd,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:i[2]||(i[2]=l=>e.value=!0)},[Vd,t.createVNode(t.unref(Nc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",$d,[t.createElementVNode("div",Bd,[t.createElementVNode("h1",Td,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Md,[t.createVNode(t.unref(qn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Yn),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Od,t.createVNode(t.unref(ns),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,Pd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Ad,[t.createElementVNode("div",Ld,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(mn),t.createVNode(hn)],64))}}),vt=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.ref(null),o=t.ref(null),a=t.computed(()=>{const s=[ys(5),xs()];return r.position==="auto"&&s.push(bs()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=ba(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:pa});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Mo),{as:s.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(Ul),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref_key:"wrapper",ref:o,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(zl),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),Rd=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},Id={},Fd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function jd(n,r){return t.openBlock(),t.createElementBlock("div",Fd,[t.renderSlot(n.$slots,"default")])}const $a=Rd(Id,[["render",jd]]),Hd={class:"absolute inset-0 overflow-hidden"},Ud={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},zd={class:"w-screen max-w-md"},qd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},Yd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},Wd={class:"flex items-center justify-between"},Kd={class:"ml-3 h-7 flex items-center"},Gd=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),Jd={class:"mt-1"},Xd=["textContent"],Zd={class:"relative flex-1 py-6 px-4 sm:px-6"},Ba=t.defineComponent({__name:"Slideover",props:{header:{},description:{},modelValue:{type:Boolean}},emits:["close","update:modelValue"],setup(n,{emit:r}){const e=n,o=t.ref(e.modelValue),a=()=>{o.value=!1,r("close",o.value),r("update:modelValue",o.value)};return(i,l)=>(t.openBlock(),t.createBlock(t.unref(Ct),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Jt),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:i.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",Hd,[t.createVNode(t.unref(Xt),{class:"absolute inset-0"}),t.createElementVNode("div",Ud,[t.createVNode(t.unref(Le),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",zd,[t.createElementVNode("div",qd,[t.createElementVNode("div",Yd,[t.createElementVNode("div",Wd,[t.createVNode(t.unref(zn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",Kd,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[Gd,t.createVNode(t.unref(St),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Jd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,Xd)])]),t.createElementVNode("div",Zd,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Qd=["onMouseover","onMouseleave"],eu=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),tu=["onMouseleave"],nu={class:"max-w-xs"},Ta=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=i=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||i()},100)},a=(i,l)=>{r=!0,!l&&i.target&&i.target.click()};return(i,l)=>(t.openBlock(),t.createBlock(vt,{position:i.position,as:i.as},{button:t.withCtx(({open:s,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,s),onMouseleave:d=>o(c)},[t.createVNode(t.unref(Dc)),eu],40,Qd)]),default:t.withCtx(({close:s})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:l[0]||(l[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(s),["prevent"])},[t.createElementVNode("div",nu,[t.renderSlot(i.$slots,"default")])],40,tu)]),_:3},8,["position","as"]))}}),ru={class:"min-h-screen bg-gray-100"},ou={class:"mx-auto px-4 sm:px-6 lg:px-8"},au={class:"flex justify-between h-16"},iu={class:"flex"},lu={class:"shrink-0 flex items-center"},su=["src"],cu={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},du=["href","aria-current"],uu={class:"hidden sm:ml-6 sm:flex sm:items-center"},fu=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),pu=["href"],mu={class:"-mr-2 flex items-center sm:hidden"},hu=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),gu={class:"pt-2 pb-3 space-y-1"},bu=["href","aria-current"],yu={class:"pt-4 pb-3 border-t border-gray-200"},wu={class:"flex items-center px-4"},xu={class:"shrink-0"},Cu={class:"ml-3"},ku=["textContent"],Eu=["textContent"],_u={class:"mt-3 space-y-1"},Du=["href"],Nu={class:"mx-auto sm:px-6 lg:px-8"},Su={class:"px-4 py-8 sm:px-0"},Ma=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",ru,[t.createVNode(t.unref(Pl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",ou,[t.createElementVNode("div",au,[t.createElementVNode("div",iu,[t.createElementVNode("div",lu,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,su)]),t.createElementVNode("div",cu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,du))),128))])]),t.createElementVNode("div",uu,[t.createVNode(t.unref(qn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Yn),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[fu,t.createVNode(t.unref(Na),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wn),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Kn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,pu)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",mu,[t.createVNode(t.unref(Al),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[hu,i?(t.openBlock(),t.createBlock(t.unref(St),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Sc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Ll),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",gu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,bu))),128))]),t.createElementVNode("div",yu,[t.createElementVNode("div",wu,[t.createElementVNode("div",xu,[t.createVNode(t.unref(Na),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",Cu,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,ku)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,Eu)])]),t.createElementVNode("div",_u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(l.name),9,Du))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Nu,[t.createElementVNode("div",Su,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(mn),t.createVNode(hn)],64))}}),vu=n=>n==null,Vu={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Oa=(n,r,e,o=Vu)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),c=t.computed(()=>a.value.map(u=>{let p="";switch((u==null?void 0:u.alignment)||"left"){case"left":p="text-left";break;case"right":p="text-right";break;case"center":p="text-center";break}return{...u,alignment:p}})),d=t.computed(()=>i.value.map((u,p)=>({actions:l.value.actions.map(m=>({...m,disabled:typeof m.disabled=="function"?m.disabled.apply(void 0,[u,p]):m.disabled,onClick:()=>m.onClick(u,p,o),show:typeof m.show=="function"?m.show.apply(void 0,[u,p]):m.show})),rowData:u,cells:c.value.map(m=>{const g=typeof m.render=="string"?u[m.render]:m.render(u,p),b=(m==null?void 0:m.classNames)||"";return{...m,isComponent:t.isVNode(g),classNames:typeof b=="function"?b.apply(void 0,[u,p]):b,val:g}})})));return{columns:c,hasActions:s,isEmptyCellValue:vu,rows:d}},$u={key:0,class:"flex items-center space-x-2 justify-end"},Bu={class:"isolate inline-flex rounded-md shadow-sm"},Tu=["disabled","onClick"],Mu={class:"relative inline-flex items-center gap-x-1.5"},Pa=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Yo(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",$u,[t.createElementVNode("span",Bu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Mu,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,Tu))),128))])])):t.createCommentVNode("",!0)}}),Ou={class:"flex flex-col"},Pu={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Au={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Lu={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},Ru={class:"min-w-full divide-y divide-gray-200"},Iu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Fu={class:"bg-white divide-y divide-gray-200"},ju={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Hu={key:0},Uu=["colspan"],Aa=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Oa(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",Ou,[t.createElementVNode("div",Pu,[t.createElementVNode("div",Au,[t.createElementVNode("div",Lu,[t.createElementVNode("table",Ru,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",Iu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,p)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:p,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",ju,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(sn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Pa,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",Hu,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Uu)])):t.createCommentVNode("",!0)])])])])])]))}}),zu={class:"flex items-center justify-center space-x-8"},qu={class:"font-medium"},Yu={class:"flex items-center space-x-5"},Wu={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},Ku={key:1,class:"relative flex items-center justify-center"},Gu=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)],Ju={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Xu={key:0,class:"flex shrink-0"},Zu={key:0,class:"inline-flex rounded-md shadow-sm"},Qu=["textContent"],ef={class:"ml-3 inline-flex rounded-md shadow-sm"},tf=["textContent"],La=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=()=>{r("next")},o=()=>{r("previous")};return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",zu,[t.createElementVNode("p",qu,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",Yu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[a.step>l?(t.openBlock(),t.createElementBlock("span",Wu)):a.step===l?(t.openBlock(),t.createElementBlock("div",Ku,Gu)):(t.openBlock(),t.createElementBlock("span",Ju))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Xu,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Zu,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,Qu)])),t.createElementVNode("span",ef,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,tf)])]))]))}}),nf={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},rf={key:0,class:"w-full max-w-lg lg:max-w-xs"},of=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),af={class:"flex items-center gap-x-2"},lf=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),sf={class:"flex-1"},cf={key:1,class:"w-full max-w-lg lg:max-w-xs"},df=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1),uf={class:"flex items-center gap-x-2"},ff=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1),pf={class:"flex-1"},mf={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},hf={class:"min-w-full divide-y divide-gray-200"},gf={key:0},bf=["onClick"],yf={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},wf=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)],xf={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Cf=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],kf={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Ef=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],_f={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Df={class:"bg-white divide-y divide-gray-200"},Nf=["onClick"],Sf={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},vf={key:0},Vf=["colspan"],Ra=t.defineComponent({__name:"DynamicTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableOptions:{}},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const A={minDate:b.value.minDate,maxDate:b.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:m.value,sortDir:g.value,q:x.value};In.get(e.tableOptions.url,{skipLoader:!1},A).then(R=>{y.value={page:R.data.page,perPage:R.data.perPage,totalItems:R.data.totalItems,totalPages:R.data.totalPages},l.value=R.data.items},()=>{ur.genericError()})},a=()=>{y.value.page=1,o()},i=()=>{if(v.value.maxRange){const A=new Date,R=A.setDate(A.getDate()-v.value.maxRange),M=new Date;b.value={minDate:Math.floor(R/1e3),maxDate:Math.floor(M.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:c,hasActions:d,isEmptyCellValue:u,rows:p}=Oa(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),m=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),g=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),b=t.ref({minDate:0,maxDate:0}),y=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),x=t.ref(""),k=A=>{y.value.page=1,b.value=A,o()},D=A=>{m.value==A?g.value=g.value==="desc"?"asc":"desc":(m.value=A,g.value="desc"),o()},v=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),H=t.computed(()=>!!p.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(s),i(),o(),(A,R)=>{const M=t.resolveComponent("BaseInput");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",nf,[A.tableOptions.search?(t.openBlock(),t.createElementBlock("div",rf,[of,t.createElementVNode("div",af,[lf,t.createElementVNode("div",sf,[t.createVNode(M,{id:"table-search",modelValue:x.value,"onUpdate:modelValue":R[0]||(R[0]=U=>x.value=U),modelModifiers:{trim:!0},type:"search",placeholder:"Search",onChange:R[1]||(R[1]=U=>a())},null,8,["modelValue"])])])])):t.createCommentVNode("",!0),A.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",cf,[df,t.createElementVNode("div",uf,[ff,t.createElementVNode("div",pf,[t.createVNode(fn,t.mergeProps({id:"table-date-range",modelValue:b.value,"onUpdate:modelValue":R[2]||(R[2]=U=>b.value=U)},{...v.value},{"onUpdate:modelValue":k}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",mf,[t.createElementVNode("table",hf,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(U,I)=>(t.openBlock(),t.createElementBlock("th",{key:I,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",U.alignment])},[U.title?(t.openBlock(),t.createElementBlock("span",gf,t.toDisplayString(U.title),1)):t.createCommentVNode("",!0),U.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(F=>D(U.sort),["prevent"])},[m.value!==U.sort?(t.openBlock(),t.createElementBlock("svg",yf,wf)):g.value=="desc"?(t.openBlock(),t.createElementBlock("svg",xf,Cf)):(t.openBlock(),t.createElementBlock("svg",kf,Ef))],8,bf)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",_f)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Df,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(U,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I,onClick:F=>A.$emit("click:row",U.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.cells,(F,X)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:X,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",F.alignment])},{default:t.withCtx(()=>[F.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(F.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(F.classNames)},t.toDisplayString(t.unref(u)(F.val)?"-":String(F.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",Sf,[A.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(sn),{key:0,actions:U.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Pa,{key:1,actions:U.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Nf))),128)),H.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",vf,[t.createElementVNode("td",{colspan:t.unref(p).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Vf)]))])])]),H.value?(t.openBlock(),t.createBlock(pn,{key:0,modelValue:y.value,"onUpdate:modelValue":[R[3]||(R[3]=U=>y.value=U),R[4]||(R[4]=U=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)])}}}),$f=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),Bf={class:"hidden sm:block"},Tf=["onClick","textContent"],Ia=t.defineComponent({__name:"Tabs",props:{modelValue:{},pillDesign:{type:Boolean,default:!1},tabs:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=l=>{r("update:modelValue",l)},a=(l,s)=>{let c="";return e.pillDesign?(c="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?c=c+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":c=c+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",c):(c="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?c=c+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":c=c+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(c=c+" ml-8"),c)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const c=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":l.pillDesign}])},[$f,t.createVNode(c,{name:"tabs","model-value":l.modelValue,options:l.tabs,"onUpdate:modelValue":s[0]||(s[0]=d=>o(d))},null,8,["model-value","options"])],2),t.createElementVNode("div",Bf,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":i.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[l.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.tabs,(d,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(d.value,u>0)),onClick:t.withModifiers(p=>o(d.value),["prevent"]),textContent:t.toDisplayString(d.label)},null,10,Tf))),128))],2)],2)])])}}}),Mf={key:0,class:"sr-only"},Of={class:"ml-3 mt-0.5"},Fa=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:{modelValue:{type:Boolean},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=t.useAttrs(),o=t.computed(()=>Fn(e,"disabled"));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(Wl),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(Kl),{class:t.normalizeClass([a.modelValue?"bg-xy-blue":"bg-gray-200",o.value?"opacity-75 cursor-not-allowed":"cursor-pointer","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),disabled:o.value,"model-value":a.modelValue,"onUpdate:modelValue":i[0]||(i[0]=l=>r("update:modelValue",l))},{default:t.withCtx(()=>[a.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Mf,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([a.modelValue?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["class","disabled","model-value"]),t.createElementVNode("div",Of,[a.label?(t.openBlock(),t.createBlock(t.unref(Gl),{key:0},{default:t.withCtx(()=>[t.createVNode(be,{label:a.label,class:t.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),a.help?(t.openBlock(),t.createBlock(t.unref(Jl),{key:1},{default:t.withCtx(()=>[t.createVNode(se,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),Pf=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","type","value"],ja=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeDefaults({modelValue:{},type:{},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n,{expose:r}){const e=n,o=t.ref(null),{errorState:a,modelState:i,inputID:l,isRequired:s,onInvalid:c,inputValidation:d}=Be(e);r({input:o});const u=t.computed(()=>{switch(e.type){case"number":return{max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER};case"email":return{pattern:io};case"tel":return{pattern:lo};default:return{}}}),p=g=>{let b=g.target.value;switch(e.type){case"datetime-local":b=b&&new Date(b).toISOString();break;case"number":b=so(b);break}i.value=b,d(g)},m=t.computed(()=>{switch(e.type){case"datetime-local":return wl(i.value);default:return i.value}});return(g,b)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:`${t.unref(l)}-label`,class:"mb-2",for:t.unref(l),label:g.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(l),ref_key:"input",ref:o,"aria-labelledby":g.label?`${t.unref(l)}-label`:void 0,"aria-describedby":g.help?`${t.unref(l)}-help`:void 0,"aria-errormessage":t.unref(a)?`${t.unref(l)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:g.placeholder,type:g.type,value:m.value},{...u.value,...g.$attrs},{onInput:p,onInvalid:b[0]||(b[0]=(...y)=>t.unref(c)&&t.unref(c)(...y))}),null,16,Pf),t.createVNode(se,{id:`${t.unref(l)}-help`,class:"mt-1",text:g.help},null,8,["id","text"]),t.createVNode(Ve,{id:`${t.unref(l)}-error`,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])]))}}),Af={class:"relative flex items-start"},Lf={class:"flex items-center h-5"},Rf=["id","aria-labelledby","aria-describedby","aria-errormessage","checked"],If={class:"ml-3"},Ha=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isDisabled:a,isRequired:i,errorState:l,modelState:s,validate:c,onInvalid:d}=Be(r),u=p=>{s.value=p.target.checked,c(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("div",Af,[t.createElementVNode("div",Lf,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,checked:t.unref(s)||void 0,class:["h-4 w-4 rounded text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},p.$attrs,{onChange:u,onInvalid:m[0]||(m[0]=(...g)=>t.unref(d)&&t.unref(d)(...g))}),null,16,Rf)]),t.createElementVNode("div",If,[t.createVNode(be,{id:t.unref(e).labelledby,for:t.unref(o),label:p.label,class:t.normalizeClass(t.unref(a)?"cursor-not-allowed":"cursor-pointer"),required:t.unref(i)},null,8,["id","for","label","class","required"]),t.createVNode(se,{id:t.unref(e).describedby,text:p.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])])]))}}),Ff={key:0,class:"text-red-700/80"},ut=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"legend"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>o.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-base leading-snug font-medium text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value)+" ",1),r.required?(t.openBlock(),t.createElementBlock("span",Ff,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),jf=["aria-labelledby","aria-describedby","aria-errormessage"],Hf={key:0},Uf={class:"flex"},zf={class:"flex items-center h-5"},qf=["id","aria-labelledby","aria-describedby","checked","disabled","onChange"],Yf={class:"ml-3"},Ua=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeDefaults({max:{},min:{},modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isDisabled:a,modelState:i,errorState:l,validate:s}=Be(r),c=(y,x)=>{const k=y.target.checked;Array.isArray(i.value)||(i.value=[]),k?i.value.push(x):i.value.splice(i.value.indexOf(x),1),s(y)},d=t.computed(()=>Array.isArray(i.value)?i.value.length:0),u=t.computed(()=>r.min||0),p=t.computed(()=>r.max||r.options.filter(y=>!y.disabled).length),m=t.computed(()=>d.value<u.value?`Please select ${u.value} of these option${u.value>1?"s":""}.`:d.value>p.value?`Please select only ${p.value} of these option${p.value>1?"s":""}.`:""),g=t.ref(null),b=()=>{var y;l.value||(l.value=m.value,(y=g.value)==null||y.setCustomValidity(m.value))};return(y,x)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[y.label?(t.openBlock(),t.createElementBlock("div",Hf,[t.createVNode(ut,{id:t.unref(e).labelledby,label:y.label,required:u.value>0},null,8,["id","label","required"]),y.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:y.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(l)},null,8,["id","text"]),m.value?(t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"errorInput",ref:g,required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:b},null,544)):t.createCommentVNode("",!0),t.createElementVNode("div",Uf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-6",{"sm:grid sm:gap-x-5 sm:space-y-0":y.columns!==void 0,"sm:grid-cols-2":y.columns===2,"sm:grid-cols-3":y.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.options,(k,D)=>{var v;return t.openBlock(),t.createElementBlock("div",{key:k.value,class:"flex items-start"},[t.createElementVNode("div",zf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(o)}-${D}`,"aria-labelledby":`${t.unref(o)}-${D}-label`,"aria-describedby":k.help?`${t.unref(o)}-${D}-help`:void 0,checked:(v=y.modelValue)==null?void 0:v.includes(k.value),disabled:k.disabled,class:["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},y.$attrs,{onChange:H=>c(H,k.value)}),null,16,qf)]),t.createElementVNode("div",Yf,[t.createVNode(be,{id:`${t.unref(o)}-${D}-label`,for:`${t.unref(o)}-${D}`,label:k.label,class:t.normalizeClass(t.unref(a)||k.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(se,{id:`${t.unref(o)}-${D}-help`,text:k.help},null,8,["id","text"])])])}),128))],2)])],8,jf))}}),Wf=["aria-labelledby","aria-describedby","aria-errormessage"],Kf={key:0},Gf={class:"flex"},Jf={class:"flex items-center h-5"},Xf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value","onChange"],Zf={class:"ml-3"},za=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,errorState:o,modelState:a,inputID:i,isDisabled:l,isRequired:s,onInvalid:c,validate:d}=Be(r),u=(p,m)=>{a.value=m,d(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[p.label?(t.openBlock(),t.createElementBlock("div",Kf,[t.createVNode(ut,{id:t.unref(e).labelledby,label:p.label,required:t.unref(s)},null,8,["id","label","required"]),p.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(o)},null,8,["id","text"]),t.createElementVNode("div",Gf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-6",{"sm:grid sm:gap-x-5 sm:space-y-0":p.columns!==void 0,"sm:grid-cols-2":p.columns===2,"sm:grid-cols-3":p.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.options,(g,b)=>(t.openBlock(),t.createElementBlock("div",{key:g.value,class:"flex items-start"},[t.createElementVNode("div",Jf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${b}`,"aria-describedby":g.help?`${t.unref(i)}-${b}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${b}-label`,checked:t.unref(a)===g.value,class:["h-4 w-4 cursor-pointer text-xy-blue","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(o)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],disabled:g.disabled,name:t.unref(i),type:"radio",value:g.value},p.$attrs,{onChange:y=>u(y,g.value),onInvalid:m[0]||(m[0]=(...y)=>t.unref(c)&&t.unref(c)(...y))}),null,16,Xf)]),t.createElementVNode("div",Zf,[t.createVNode(be,{id:`${t.unref(i)}-${b}-label`,for:`${t.unref(i)}-${b}`,label:g.label,class:t.normalizeClass(t.unref(l)||g.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(se,{id:`${t.unref(i)}-${b}-help`,text:g.help},null,8,["id","text"])])]))),128))],2)])],8,Wf))}}),Qf={class:"flex-1 flex pr-1"},ep={class:"flex flex-col"},tp={key:1,class:"mt-auto mb-0"},np=["checked","name","required","value"],qa=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:t.mergeDefaults({options:{},modelValue:{},label:{},help:{},placeholder:{},columns:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,isDisabled:o,isRequired:a,nameAttr:i,modelState:l,errorState:s,onInvalid:c}=Be(r),d=u=>{u&&(s.value="")};return(u,p)=>(t.openBlock(),t.createBlock(t.unref(ql),{modelValue:t.unref(l),"onUpdate:modelValue":[p[1]||(p[1]=m=>t.isRef(l)?l.value=m:null),d],disabled:t.unref(o),"aria-invalid":t.unref(s)?"true":null,"aria-errormessage":t.unref(e).errormessage},{default:t.withCtx(()=>[u.label?(t.openBlock(),t.createBlock(t.unref(Io),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(ut,{tag:"div",label:u.label,required:t.unref(a)},null,8,["label","required"])]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(Jn),{key:1},{default:t.withCtx(()=>[t.createVNode(se,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(s)},null,8,["id","text"]),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createBlock(t.unref(Yl),{key:m.value,as:"template",disabled:t.unref(o)||m.disabled,value:m.value},{default:t.withCtx(({active:g,checked:b,disabled:y})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[y?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",t.unref(s)&&!y?"border-red-700":"",b?"border-transparent":"",g?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",Qf,[t.createElementVNode("div",ep,[t.createVNode(t.unref(Io),{as:"div"},{default:t.withCtx(()=>[t.createVNode(be,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Jn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(se,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",tp,[t.createVNode(t.unref(Jn),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:b,disabled:y,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(qo),{class:t.normalizeClass([b?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",b?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:b,name:t.unref(i),required:t.unref(a),tabindex:"-1",type:"radio",value:m.value,onInvalid:p[0]||(p[0]=(...x)=>t.unref(c)&&t.unref(c)(...x))},null,40,np)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["modelValue","disabled","aria-invalid","aria-errormessage"]))}}),rp=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","value"],Ya=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,inputID:o,isRequired:a,modelState:i,errorState:l,onInvalid:s,inputValidation:c}=Be(r),d=u=>{i.value=u.target.value,c(u)};return(u,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(be,{id:t.unref(e).labelledby,class:"mb-2",for:t.unref(o),label:u.label,required:t.unref(a)},null,8,["id","for","label","required"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder,value:t.unref(i)||void 0},u.$attrs,{onInput:d,onInvalid:p[0]||(p[0]=(...m)=>t.unref(s)&&t.unref(s)(...m))}),null,16,rp),t.createVNode(se,{id:t.unref(e).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(Ve,{id:t.unref(e).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),op=["aria-labelledby","aria-describedby","aria-errormessage"],ap={key:0},ip=["for"],lp=["id","name","checked"],sp=["for"],cp=["id","name","checked"],Wa=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),emits:["update:modelValue","update:error"],setup(n){const r=n,{aria:e,isDisabled:o,isRequired:a,nameAttr:i,modelState:l,errorState:s,onInvalid:c,validate:d}=Be(r),u=(p,m)=>{l.value=m,d(p)};return(p,m)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":t.unref(e).labelledby,"aria-describedby":t.unref(e).describedby,"aria-errormessage":t.unref(e).errormessage},[p.label?(t.openBlock(),t.createElementBlock("div",ap,[t.createVNode(ut,{id:t.unref(e).labelledby,class:"block my-auto",label:p.label,required:t.unref(a),tag:"legend"},null,8,["id","label","required"]),p.help?(t.openBlock(),t.createBlock(se,{key:0,id:t.unref(e).describedby,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(Ve,{id:t.unref(e).errormessage,text:t.unref(s)},null,8,["id","text"]),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(o)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-true`,type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(s)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!0,checked:t.unref(l)===!0},p.$attrs,{onChange:m[0]||(m[0]=g=>u(g,!0)),onInvalid:m[1]||(m[1]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,lp),t.createVNode(be,{class:"ml-3",label:"Yes",tag:"span"})],10,ip),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(o)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(i)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-false`,type:"radio",class:["h-4 w-4 text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(s)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(i),value:!1,checked:t.unref(l)===!1},p.$attrs,{onChange:m[2]||(m[2]=g=>u(g,!1)),onInvalid:m[3]||(m[3]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,cp),t.createVNode(be,{class:"ml-3",label:"No",tag:"span"})],10,sp)])],8,op))}}),dp=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:sn,BaseInput:ja,Cards:ya,Checkbox:Ha,ContentModal:wa,DataTable:Aa,DateFilter:cr,DateRangePicker:fn,DetailList:_a,DownloadCell:Da,DynamicTable:Ra,FieldsetLegend:ut,Flash:mn,InlineAlert:Sa,InputError:Ve,InputHelp:se,InputLabel:be,Modal:va,MultiCheckboxes:Ua,Paginator:pn,Popover:vt,PopoverContent:$a,PopoverPosition:vt,Radio:za,RadioCards:qa,Select:sr,SidebarLayout:Va,Slideover:Ba,Spinner:hn,StackedLayout:Ma,Steps:La,Tabs:Ia,TextArea:Ya,Toggle:Fa,Tooltip:Ta,XYSpinner:fr,YesOrNoRadio:Wa},Symbol.toStringTag,{value:"Module"})),up=function(r){Object.entries(dp).forEach(([e,o])=>{r.component(e,o)})};N.ActionsDropdown=sn,N.BaseAPI=In,N.BaseInput=ja,N.Cards=ya,N.Checkbox=Ha,N.ContentModal=wa,N.DataTable=Aa,N.DateFilter=cr,N.DateRangePicker=fn,N.DetailList=_a,N.DownloadCell=Da,N.DynamicTable=Ra,N.FieldsetLegend=ut,N.Flash=mn,N.InlineAlert=Sa,N.InputError=Ve,N.InputHelp=se,N.InputLabel=be,N.Modal=va,N.MultiCheckboxes=Ua,N.Paginator=pn,N.Popover=vt,N.PopoverContent=$a,N.PopoverPosition=vt,N.Radio=za,N.RadioCards=qa,N.Select=sr,N.SidebarLayout=Va,N.Slideover=Ba,N.Spinner=hn,N.StackedLayout=Ma,N.Steps=La,N.Tabs=Ia,N.TextArea=Ya,N.Toggle=Fa,N.Tooltip=Ta,N.XYSpinner=fr,N.YesOrNoRadio=Wa,N.debounceFn=oo,N.debounceLeading=yl,N.default=up,N.emailPattern=io,N.isHttpCancel=to,N.isHttpError=eo,N.looseToNumber=so,N.phonePattern=lo,N.setBaseAPIDefaults=bl,N.throttleFn=xl,N.useAppFlasher=ur,N.useAppFlashes=Ge,N.useAppSpinner=Rn,N.useBaseAPI=dt,N.useBaseAPIDelete=ec,N.useBaseAPIGet=Qs,N.useBaseAPIPatch=tc,N.useBaseAPIPost=nc,N.useBaseAPIPut=rc,N.useFlashes=Ea,N.useInputField=Be,N.useModel=ao,N.useSpinnerDisplay=Zr,N.useTabHistory=ac,N.useUrlSearchParams=ic,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|