@xy-planning-network/trees 0.7.5-dev → 0.7.5-rc2
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 +4058 -3743
- package/dist/trees.umd.js +10 -10
- package/package.json +2 -2
- package/src/lib-components/forms/BaseInput.vue +80 -42
- package/src/lib-components/forms/Checkbox.vue +36 -26
- package/src/lib-components/forms/DateRangePicker.vue +50 -30
- package/src/lib-components/forms/FieldsetLegend.vue +23 -3
- package/src/lib-components/forms/InputHelp.vue +1 -1
- package/src/lib-components/forms/InputLabel.vue +24 -4
- package/src/lib-components/forms/MultiCheckboxes.vue +95 -44
- package/src/lib-components/forms/Radio.vue +59 -37
- package/src/lib-components/forms/RadioCards.vue +45 -57
- package/src/lib-components/forms/Select.vue +37 -40
- package/src/lib-components/forms/TextArea.vue +36 -28
- package/src/lib-components/forms/Toggle.vue +9 -6
- package/src/lib-components/forms/YesOrNoRadio.vue +49 -35
- package/src/lib-components/lists/DynamicTable.vue +43 -20
- package/types/composables/forms.d.ts +110 -2
- package/types/lib-components/forms/BaseInput.vue.d.ts +60 -34
- package/types/lib-components/forms/Checkbox.vue.d.ts +50 -29
- package/types/lib-components/forms/DateRangePicker.vue.d.ts +71 -39
- package/types/lib-components/forms/FieldsetLegend.vue.d.ts +28 -27
- package/types/lib-components/forms/InputHelp.vue.d.ts +19 -27
- package/types/lib-components/forms/InputLabel.vue.d.ts +28 -27
- package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +75 -47
- package/types/lib-components/forms/Radio.vue.d.ts +62 -47
- package/types/lib-components/forms/RadioCards.vue.d.ts +68 -71
- package/types/lib-components/forms/Select.vue.d.ts +55 -39
- package/types/lib-components/forms/TextArea.vue.d.ts +50 -32
- package/types/lib-components/forms/Toggle.vue.d.ts +27 -32
- package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +50 -32
- package/types/lib-components/indicators/XYSpinner.vue.d.ts +1 -1
- package/types/lib-components/layout/DateFilter.vue.d.ts +28 -20
- package/types/lib-components/layout/SidebarLayout.vue.d.ts +38 -32
- package/types/lib-components/layout/StackedLayout.vue.d.ts +45 -33
- package/types/lib-components/lists/Cards.vue.d.ts +14 -17
- package/types/lib-components/lists/DataTable.vue.d.ts +31 -31
- package/types/lib-components/lists/DetailList.vue.d.ts +38 -34
- package/types/lib-components/lists/DownloadCell.vue.d.ts +18 -15
- package/types/lib-components/lists/DynamicTable.vue.d.ts +32 -32
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +11 -23
- package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +11 -23
- package/types/lib-components/navigation/Paginator.vue.d.ts +12 -15
- package/types/lib-components/navigation/Steps.vue.d.ts +54 -39
- package/types/lib-components/navigation/Tabs.vue.d.ts +34 -34
- package/types/lib-components/overlays/ContentModal.vue.d.ts +22 -28
- package/types/lib-components/overlays/Modal.vue.d.ts +47 -42
- package/types/lib-components/overlays/Popover/Popover.vue.d.ts +23 -31
- package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +1 -1
- package/types/lib-components/overlays/Slideover.vue.d.ts +30 -22
- package/types/lib-components/overlays/Tooltip.vue.d.ts +20 -28
package/dist/trees.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(S,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(S=typeof globalThis<"u"?globalThis:S||self,t(S.Trees={},S.Vue))})(this,function(S,t){"use strict";var sp=Object.defineProperty;var cp=(S,t,Ae)=>t in S?sp(S,t,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):S[t]=Ae;var yr=(S,t,Ae)=>(cp(S,typeof t!="symbol"?t+"":t,Ae),Ae);function Ae(n,r){return function(){return n.apply(r,arguments)}}const{toString:Ga}=Object.prototype,{getPrototypeOf:xn}=Object,$t=(n=>r=>{const e=Ga.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),$e=n=>(n=n.toLowerCase(),r=>$t(r)===n),Vt=n=>r=>typeof r===n,{isArray:Ge}=Array,dt=Vt("undefined");function Ja(n){return n!==null&&!dt(n)&&n.constructor!==null&&!dt(n.constructor)&&xe(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const wr=$e("ArrayBuffer");function Xa(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&wr(n.buffer),r}const Za=Vt("string"),xe=Vt("function"),xr=Vt("number"),Tt=n=>n!==null&&typeof n=="object",Qa=n=>n===!0||n===!1,Bt=n=>{if($t(n)!=="object")return!1;const r=xn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ei=$e("Date"),ti=$e("File"),ni=$e("Blob"),ri=$e("FileList"),oi=n=>Tt(n)&&xe(n.pipe),ai=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||xe(n.append)&&((r=$t(n))==="formdata"||r==="object"&&xe(n.toString)&&n.toString()==="[object FormData]"))},ii=$e("URLSearchParams"),li=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ut(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Ge(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 Cr(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 Er=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),kr=n=>!dt(n)&&n!==Er;function Cn(){const{caseless:n}=kr(this)&&this||{},r={},e=(o,a)=>{const i=n&&Cr(r,a)||a;Bt(r[i])&&Bt(o)?r[i]=Cn(r[i],o):Bt(o)?r[i]=Cn({},o):Ge(o)?r[i]=o.slice():r[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&ut(arguments[o],e);return r}const si=(n,r,e,{allOwnKeys:o}={})=>(ut(r,(a,i)=>{e&&xe(a)?n[i]=Ae(a,e):n[i]=a},{allOwnKeys:o}),n),ci=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),di=(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)},ui=(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&&xn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},fi=(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},pi=n=>{if(!n)return null;if(Ge(n))return n;let r=n.length;if(!xr(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},mi=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&xn(Uint8Array)),hi=(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])}},gi=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},bi=$e("HTMLFormElement"),yi=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),_r=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),wi=$e("RegExp"),Dr=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};ut(e,(a,i)=>{let l;(l=r(a,i,n))!==!1&&(o[i]=l||a)}),Object.defineProperties(n,o)},xi=n=>{Dr(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+"'")})}})},Ci=(n,r)=>{const e={},o=a=>{a.forEach(i=>{e[i]=!0})};return Ge(n)?o(n):o(String(n).split(r)),e},Ei=()=>{},ki=(n,r)=>(n=+n,Number.isFinite(n)?n:r),En="abcdefghijklmnopqrstuvwxyz",vr="0123456789",Nr={DIGIT:vr,ALPHA:En,ALPHA_DIGIT:En+En.toUpperCase()+vr},_i=(n=16,r=Nr.ALPHA_DIGIT)=>{let e="";const{length:o}=r;for(;n--;)e+=r[Math.random()*o|0];return e};function Di(n){return!!(n&&xe(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const vi=n=>{const r=new Array(10),e=(o,a)=>{if(Tt(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const i=Ge(o)?[]:{};return ut(o,(l,s)=>{const c=e(l,a+1);!dt(c)&&(i[s]=c)}),r[a]=void 0,i}}return o};return e(n,0)},Ni=$e("AsyncFunction"),E={isArray:Ge,isArrayBuffer:wr,isBuffer:Ja,isFormData:ai,isArrayBufferView:Xa,isString:Za,isNumber:xr,isBoolean:Qa,isObject:Tt,isPlainObject:Bt,isUndefined:dt,isDate:ei,isFile:ti,isBlob:ni,isRegExp:wi,isFunction:xe,isStream:oi,isURLSearchParams:ii,isTypedArray:mi,isFileList:ri,forEach:ut,merge:Cn,extend:si,trim:li,stripBOM:ci,inherits:di,toFlatObject:ui,kindOf:$t,kindOfTest:$e,endsWith:fi,toArray:pi,forEachEntry:hi,matchAll:gi,isHTMLForm:bi,hasOwnProperty:_r,hasOwnProp:_r,reduceDescriptors:Dr,freezeMethods:xi,toObjectSet:Ci,toCamelCase:yi,noop:Ei,toFiniteNumber:ki,findKey:Cr,global:Er,isContextDefined:kr,ALPHABET:Nr,generateString:_i,isSpecCompliantForm:Di,toJSONObject:vi,isAsyncFn:Ni,isThenable:n=>n&&(Tt(n)||xe(n))&&xe(n.then)&&xe(n.catch)};function R(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(R,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 Sr=R.prototype,$r={};["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=>{$r[n]={value:n}}),Object.defineProperties(R,$r),Object.defineProperty(Sr,"isAxiosError",{value:!0}),R.from=(n,r,e,o,a,i)=>{const l=Object.create(Sr);return E.toFlatObject(n,l,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),R.call(l,n.message,r,e,o,a),l.cause=n,l.name=n.name,i&&Object.assign(l,i),l};const Si=null;function kn(n){return E.isPlainObject(n)||E.isArray(n)}function Vr(n){return E.endsWith(n,"[]")?n.slice(0,-2):n}function Tr(n,r,e){return n?n.concat(r).map(function(a,i){return a=Vr(a),!e&&i?"["+a+"]":a}).join(e?".":""):r}function $i(n){return E.isArray(n)&&!n.some(kn)}const Vi=E.toFlatObject(E,{},null,function(r){return/^is[A-Z]/.test(r)});function Mt(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,C){return!E.isUndefined(C[y])});const o=e.metaTokens,a=e.visitor||f,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 R("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 f(b,y,C){let k=b;if(b&&!C&&typeof b=="object"){if(E.endsWith(y,"{}"))y=o?y:y.slice(0,-2),b=JSON.stringify(b);else if(E.isArray(b)&&$i(b)||(E.isFileList(b)||E.endsWith(y,"[]"))&&(k=E.toArray(b)))return y=Vr(y),k.forEach(function(N,j){!(E.isUndefined(N)||N===null)&&r.append(l===!0?Tr([y],j,i):l===null?y:y+"[]",d(N))}),!1}return kn(b)?!0:(r.append(Tr(C,y,i),d(b)),!1)}const m=[],g=Object.assign(Vi,{defaultVisitor:f,convertValue:d,isVisitable:kn});function h(b,y){if(!E.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(b),E.forEach(b,function(k,v){(!(E.isUndefined(k)||k===null)&&a.call(r,k,E.isString(v)?v.trim():v,y,g))===!0&&h(k,y?y.concat(v):[v])}),m.pop()}}if(!E.isObject(n))throw new TypeError("data must be an object");return h(n),r}function Br(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function _n(n,r){this._pairs=[],n&&Mt(n,this,r)}const Mr=_n.prototype;Mr.append=function(r,e){this._pairs.push([r,e])},Mr.toString=function(r){const e=r?function(o){return r.call(this,o,Br)}:Br;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function Ti(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Or(n,r,e){if(!r)return n;const o=e&&e.encode||Ti,a=e&&e.serialize;let i;if(a?i=a(r,e):i=E.isURLSearchParams(r)?r.toString():new _n(r,e).toString(o),i){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Bi{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 Pr=Bi,Ar={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mi=typeof URLSearchParams<"u"?URLSearchParams:_n,Oi=typeof FormData<"u"?FormData:null,Pi=typeof Blob<"u"?Blob:null,Ai=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Li=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_e={isBrowser:!0,classes:{URLSearchParams:Mi,FormData:Oi,Blob:Pi},isStandardBrowserEnv:Ai,isStandardBrowserWebWorkerEnv:Li,protocols:["http","https","file","blob","url","data"]};function Ri(n,r){return Mt(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 Ii(n){return E.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Fi(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 Lr(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]=Fi(a[l])),!s)}if(E.isFormData(n)&&E.isFunction(n.entries)){const e={};return E.forEachEntry(n,(o,a)=>{r(Ii(o),a,e,0)}),e}return null}function ji(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 Dn={transitional:Ar,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(Lr(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 Ri(r,this.formSerializer).toString();if((s=E.isFileList(r))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Mt(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),ji(r)):r}],transformResponse:[function(r){const e=this.transitional||Dn.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"?R.from(s,R.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=>{Dn.headers[n]={}});const vn=Dn,Hi=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"]),Ui=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
2
|
-
`).forEach(function(l){a=l.indexOf(":"),e=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!e||r[e]&&
|
|
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[Rr]=this[Rr]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=ft(l);o[s]||(Ki(a,l),o[s]=!0)}return E.isArray(r)?r.forEach(i):i(r),this}}Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Pt.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),E.freezeMethods(Pt);const Oe=Pt;function Sn(n,r){const e=this||vn,o=r||e,a=Oe.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 Ir(n){return!!(n&&n.__CANCEL__)}function pt(n,r,e){R.call(this,n??"canceled",R.ERR_CANCELED,r,e),this.name="CanceledError"}E.inherits(pt,R,{__CANCEL__:!0});function qi(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new R("Request failed with status code "+e.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const Gi=_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 Ji(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Xi(n,r){return r?n.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):n}function Fr(n,r){return n&&!Ji(r)?Xi(n,r):r}const Zi=_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 Qi(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function el(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(),f=o[i];l||(l=d),e[a]=c,o[a]=d;let m=i,g=0;for(;m!==a;)g+=e[m++],m=m%n;if(a=(a+1)%n,a===i&&(i=(i+1)%n),d-l<r)return;const h=f&&d-f;return h?Math.round(g*1e3/h):void 0}}function jr(n,r){let e=0;const o=el(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 f={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};f[r?"download":"upload"]=!0,n(f)}}const At={http:Si,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){let a=n.data;const i=Oe.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 h=n.auth.username||"",b=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+b))}const f=Fr(n.baseURL,n.url);d.open(n.method.toUpperCase(),Or(f,n.params,n.paramsSerializer),!0),d.timeout=n.timeout;function m(){if(!d)return;const h=Oe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:n,request:d};qi(function(k){e(k),c()},function(k){o(k),c()},y),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(o(new R("Request aborted",R.ECONNABORTED,n,d)),d=null)},d.onerror=function(){o(new R("Network Error",R.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||Ar;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),o(new R(b,y.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,n,d)),d=null},_e.isStandardBrowserEnv){const h=(n.withCredentials||Zi(f))&&n.xsrfCookieName&&Gi.read(n.xsrfCookieName);h&&i.set(n.xsrfHeaderName,h)}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",jr(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",jr(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=h=>{d&&(o(!h||h.type?new pt(null,n,d):h),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=Qi(f);if(g&&_e.protocols.indexOf(g)===-1){o(new R("Unsupported protocol "+g+":",R.ERR_BAD_REQUEST,n));return}d.send(a||null)})}};E.forEach(At,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const Hr={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)?At[e.toLowerCase()]:e));a++);if(!o)throw o===!1?new R(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(E.hasOwnProp(At,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:At};function $n(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new pt(null,n)}function Ur(n){return $n(n),n.headers=Oe.from(n.headers),n.data=Sn.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Hr.getAdapter(n.adapter||vn.adapter)(n).then(function(o){return $n(n),o.data=Sn.call(n,n.transformResponse,o),o.headers=Oe.from(o.headers),o},function(o){return Ir(o)||($n(n),o&&o.response&&(o.response.data=Sn.call(n,n.transformResponse,o.response),o.response.headers=Oe.from(o.response.headers))),Promise.reject(o)})}const zr=n=>n instanceof Oe?n.toJSON():n;function Je(n,r){r=r||{};const e={};function o(d,f,m){return E.isPlainObject(d)&&E.isPlainObject(f)?E.merge.call({caseless:m},d,f):E.isPlainObject(f)?E.merge({},f):E.isArray(f)?f.slice():f}function a(d,f,m){if(E.isUndefined(f)){if(!E.isUndefined(d))return o(void 0,d,m)}else return o(d,f,m)}function i(d,f){if(!E.isUndefined(f))return o(void 0,f)}function l(d,f){if(E.isUndefined(f)){if(!E.isUndefined(d))return o(void 0,d)}else return o(void 0,f)}function s(d,f,m){if(m in r)return o(d,f);if(m 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,f)=>a(zr(d),zr(f),!0)};return E.forEach(Object.keys(Object.assign({},n,r)),function(f){const m=c[f]||a,g=m(n[f],r[f],f);E.isUndefined(g)&&m!==s||(e[f]=g)}),e}const Yr="1.5.0",Vn={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Vn[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const Wr={};Vn.transitional=function(r,e,o){function a(i,l){return"[Axios v"+Yr+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(r===!1)throw new R(a(l," has been removed"+(e?" in "+e:"")),R.ERR_DEPRECATED);return e&&!Wr[l]&&(Wr[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 tl(n,r,e){if(typeof n!="object")throw new R("options must be an object",R.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 R("option "+i+" must be "+c,R.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new R("Unknown option "+i,R.ERR_BAD_OPTION)}}const Tn={assertOptions:tl,validators:Vn},Le=Tn.validators;class Lt{constructor(r){this.defaults=r,this.interceptors={request:new Pr,response:new Pr}}request(r,e){typeof r=="string"?(e=e||{},e.url=r):e=r||{},e=Je(this.defaults,e);const{transitional:o,paramsSerializer:a,headers:i}=e;o!==void 0&&Tn.assertOptions(o,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),a!=null&&(E.isFunction(a)?e.paramsSerializer={serialize:a}:Tn.assertOptions(a,{encode:Le.function,serialize:Le.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=Oe.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 f,m=0,g;if(!c){const b=[Ur.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,d),g=b.length,f=Promise.resolve(e);m<g;)f=f.then(b[m++],b[m++]);return f}g=s.length;let h=e;for(m=0;m<g;){const b=s[m++],y=s[m++];try{h=b(h)}catch(C){y.call(this,C);break}}try{f=Ur.call(this,h)}catch(b){return Promise.reject(b)}for(m=0,g=d.length;m<g;)f=f.then(d[m++],d[m++]);return f}getUri(r){r=Je(this.defaults,r);const e=Fr(r.baseURL,r.url);return Or(e,r.params,r.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(r){Lt.prototype[r]=function(e,o){return this.request(Je(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(Je(s||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Lt.prototype[r]=e(),Lt.prototype[r+"Form"]=e(!0)});const Rt=Lt;class Bn{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 pt(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 Bn(function(a){r=a}),cancel:r}}}const nl=Bn;function rl(n){return function(e){return n.apply(null,e)}}function ol(n){return E.isObject(n)&&n.isAxiosError===!0}const Mn={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(Mn).forEach(([n,r])=>{Mn[r]=n});const al=Mn;function Kr(n){const r=new Rt(n),e=Ae(Rt.prototype.request,r);return E.extend(e,Rt.prototype,r,{allOwnKeys:!0}),E.extend(e,r,null,{allOwnKeys:!0}),e.create=function(a){return Kr(Je(n,a))},e}const J=Kr(vn);J.Axios=Rt,J.CanceledError=pt,J.CancelToken=nl,J.isCancel=Ir,J.VERSION=Yr,J.toFormData=Mt,J.AxiosError=R,J.Cancel=J.CanceledError,J.all=function(r){return Promise.all(r)},J.spread=rl,J.isAxiosError=ol,J.mergeConfig=Je,J.AxiosHeaders=Oe,J.formToJSON=n=>Lr(E.isHTMLForm(n)?new FormData(n):n),J.getAdapter=Hr.getAdapter,J.HttpStatusCode=al,J.default=J;const On=J,qr="HttpError",Gr="HttpErrorCanceled";class It extends Error{constructor(e,o,a,i){super(e||"");yr(this,"response");yr(this,"status");this.name=i||qr,this.status=o||0,this.response=a}}function Jr(){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 Pn;function Xr(){return Pn===void 0&&(Pn=Jr()),Pn}const An=(()=>{const{show:n,hide:r}=Xr();return{show:n,hide:r}})(),il=n=>{const r=n.withDelay||0;return new Promise(e=>{setTimeout(()=>{e(n)},Math.max(r,0))})},Ft=On.create({baseURL:"/api/v1",paramsSerializer:{indexes:null},responseType:"json",withCredentials:!0});Ft.interceptors.request.use(il);const Xe=(n,r)=>{const e={skipLoader:!1,withDelay:0,...r},o=window.setTimeout(()=>{e.skipLoader!==!0&&An.show()},200);return Ft({...n,...r}).then(a=>a.data).catch(a=>{var i,l;throw On.isAxiosError(a)?new It(a.message,(i=a.response)==null?void 0:i.status,(l=a.response)==null?void 0:l.data,On.isCancel(a)?Gr:qr):a instanceof Error?new It(a.message,0):new It("An unknown error has occurred.",0)}).finally(()=>{e.skipLoader!==!0&&An.hide(),window.clearTimeout(o)})},Ln={delete(n,r){return Xe({url:n,method:"DELETE"},r||{})},get(n,r,e){return Xe({url:n,method:"GET",params:e},r||{})},patch(n,r,e){return Xe({url:n,data:r,method:"PATCH"},e||{})},post(n,r,e){return Xe({url:n,data:r,method:"POST"},e||{})},put(n,r,e){return Xe({url:n,data:r,method:"PUT"},e||{})}},ll=n=>{Ft.defaults={...Ft.defaults,...n}},Zr=n=>n instanceof It,Qr=n=>Zr(n)&&n.name===Gr;function H(){return H=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},H.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 sl(n,r){if(n){if(typeof n=="string")return eo(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 eo(n,r)}}function eo(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 Ve(n,r){var e;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(e=sl(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
|
|
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(
|
|
1
|
+
(function(v,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(v=typeof globalThis<"u"?globalThis:v||self,t(v.Trees={},v.Vue))})(this,function(v,t){"use strict";var Mp=Object.defineProperty;var Op=(v,t,Ie)=>t in v?Mp(v,t,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):v[t]=Ie;var wr=(v,t,Ie)=>(Op(v,typeof t!="symbol"?t+"":t,Ie),Ie);function Ie(n,r){return function(){return n.apply(r,arguments)}}const{toString:Za}=Object.prototype,{getPrototypeOf:Cn}=Object,Vt=(n=>r=>{const e=Za.call(r);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),$e=n=>(n=n.toLowerCase(),r=>Vt(r)===n),Bt=n=>r=>typeof r===n,{isArray:Je}=Array,ut=Bt("undefined");function Qa(n){return n!==null&&!ut(n)&&n.constructor!==null&&!ut(n.constructor)&&xe(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const xr=$e("ArrayBuffer");function ei(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&xr(n.buffer),r}const ti=Bt("string"),xe=Bt("function"),Cr=Bt("number"),Tt=n=>n!==null&&typeof n=="object",ni=n=>n===!0||n===!1,Mt=n=>{if(Vt(n)!=="object")return!1;const r=Cn(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ri=$e("Date"),oi=$e("File"),ai=$e("Blob"),ii=$e("FileList"),li=n=>Tt(n)&&xe(n.pipe),si=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||xe(n.append)&&((r=Vt(n))==="formdata"||r==="object"&&xe(n.toString)&&n.toString()==="[object FormData]"))},ci=$e("URLSearchParams"),di=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(n,r,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let o,a;if(typeof n!="object"&&(n=[n]),Je(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 kr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_r=n=>!ut(n)&&n!==kr;function En(){const{caseless:n}=_r(this)&&this||{},r={},e=(o,a)=>{const i=n&&Er(r,a)||a;Mt(r[i])&&Mt(o)?r[i]=En(r[i],o):Mt(o)?r[i]=En({},o):Je(o)?r[i]=o.slice():r[i]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&ft(arguments[o],e);return r}const ui=(n,r,e,{allOwnKeys:o}={})=>(ft(r,(a,i)=>{e&&xe(a)?n[i]=Ie(a,e):n[i]=a},{allOwnKeys:o}),n),fi=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),pi=(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)},mi=(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&&Cn(n)}while(n&&(!e||e(n,r))&&n!==Object.prototype);return r},hi=(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},gi=n=>{if(!n)return null;if(Je(n))return n;let r=n.length;if(!Cr(r))return null;const e=new Array(r);for(;r-- >0;)e[r]=n[r];return e},bi=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&Cn(Uint8Array)),yi=(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])}},wi=(n,r)=>{let e;const o=[];for(;(e=n.exec(r))!==null;)o.push(e);return o},xi=$e("HTMLFormElement"),Ci=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,a){return o.toUpperCase()+a}),Dr=(({hasOwnProperty:n})=>(r,e)=>n.call(r,e))(Object.prototype),Ei=$e("RegExp"),Nr=(n,r)=>{const e=Object.getOwnPropertyDescriptors(n),o={};ft(e,(a,i)=>{let l;(l=r(a,i,n))!==!1&&(o[i]=l||a)}),Object.defineProperties(n,o)},ki=n=>{Nr(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+"'")})}})},_i=(n,r)=>{const e={},o=a=>{a.forEach(i=>{e[i]=!0})};return Je(n)?o(n):o(String(n).split(r)),e},Di=()=>{},Ni=(n,r)=>(n=+n,Number.isFinite(n)?n:r),kn="abcdefghijklmnopqrstuvwxyz",Sr="0123456789",vr={DIGIT:Sr,ALPHA:kn,ALPHA_DIGIT:kn+kn.toUpperCase()+Sr},Si=(n=16,r=vr.ALPHA_DIGIT)=>{let e="";const{length:o}=r;for(;n--;)e+=r[Math.random()*o|0];return e};function vi(n){return!!(n&&xe(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const $i=n=>{const r=new Array(10),e=(o,a)=>{if(Tt(o)){if(r.indexOf(o)>=0)return;if(!("toJSON"in o)){r[a]=o;const i=Je(o)?[]:{};return ft(o,(l,s)=>{const d=e(l,a+1);!ut(d)&&(i[s]=d)}),r[a]=void 0,i}}return o};return e(n,0)},Vi=$e("AsyncFunction"),k={isArray:Je,isArrayBuffer:xr,isBuffer:Qa,isFormData:si,isArrayBufferView:ei,isString:ti,isNumber:Cr,isBoolean:ni,isObject:Tt,isPlainObject:Mt,isUndefined:ut,isDate:ri,isFile:oi,isBlob:ai,isRegExp:Ei,isFunction:xe,isStream:li,isURLSearchParams:ci,isTypedArray:bi,isFileList:ii,forEach:ft,merge:En,extend:ui,trim:di,stripBOM:fi,inherits:pi,toFlatObject:mi,kindOf:Vt,kindOfTest:$e,endsWith:hi,toArray:gi,forEachEntry:yi,matchAll:wi,isHTMLForm:xi,hasOwnProperty:Dr,hasOwnProp:Dr,reduceDescriptors:Nr,freezeMethods:ki,toObjectSet:_i,toCamelCase:Ci,noop:Di,toFiniteNumber:Ni,findKey:Er,global:kr,isContextDefined:_r,ALPHABET:vr,generateString:Si,isSpecCompliantForm:vi,toJSONObject:$i,isAsyncFn:Vi,isThenable:n=>n&&(Tt(n)||xe(n))&&xe(n.then)&&xe(n.catch)};function I(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)}k.inherits(I,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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $r=I.prototype,Vr={};["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=>{Vr[n]={value:n}}),Object.defineProperties(I,Vr),Object.defineProperty($r,"isAxiosError",{value:!0}),I.from=(n,r,e,o,a,i)=>{const l=Object.create($r);return k.toFlatObject(n,l,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),I.call(l,n.message,r,e,o,a),l.cause=n,l.name=n.name,i&&Object.assign(l,i),l};const Bi=null;function _n(n){return k.isPlainObject(n)||k.isArray(n)}function Br(n){return k.endsWith(n,"[]")?n.slice(0,-2):n}function Tr(n,r,e){return n?n.concat(r).map(function(a,i){return a=Br(a),!e&&i?"["+a+"]":a}).join(e?".":""):r}function Ti(n){return k.isArray(n)&&!n.some(_n)}const Mi=k.toFlatObject(k,{},null,function(r){return/^is[A-Z]/.test(r)});function Ot(n,r,e){if(!k.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,e=k.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!k.isUndefined(x[y])});const o=e.metaTokens,a=e.visitor||u,i=e.dots,l=e.indexes,d=(e.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(r);if(!k.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!d&&k.isBlob(m))throw new I("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?d&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,x){let E=m;if(m&&!x&&typeof m=="object"){if(k.endsWith(y,"{}"))y=o?y:y.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&Ti(m)||(k.isFileList(m)||k.endsWith(y,"[]"))&&(E=k.toArray(m)))return y=Br(y),E.forEach(function(S,H){!(k.isUndefined(S)||S===null)&&r.append(l===!0?Tr([y],H,i):l===null?y:y+"[]",c(S))}),!1}return _n(m)?!0:(r.append(Tr(x,y,i),c(m)),!1)}const h=[],p=Object.assign(Mi,{defaultVisitor:u,convertValue:c,isVisitable:_n});function b(m,y){if(!k.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(m),k.forEach(m,function(E,D){(!(k.isUndefined(E)||E===null)&&a.call(r,E,k.isString(D)?D.trim():D,y,p))===!0&&b(E,y?y.concat(D):[D])}),h.pop()}}if(!k.isObject(n))throw new TypeError("data must be an object");return b(n),r}function Mr(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return r[o]})}function Dn(n,r){this._pairs=[],n&&Ot(n,this,r)}const Or=Dn.prototype;Or.append=function(r,e){this._pairs.push([r,e])},Or.toString=function(r){const e=r?function(o){return r.call(this,o,Mr)}:Mr;return this._pairs.map(function(a){return e(a[0])+"="+e(a[1])},"").join("&")};function Oi(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pr(n,r,e){if(!r)return n;const o=e&&e.encode||Oi,a=e&&e.serialize;let i;if(a?i=a(r,e):i=k.isURLSearchParams(r)?r.toString():new Dn(r,e).toString(o),i){const l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}class Pi{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){k.forEach(this.handlers,function(o){o!==null&&r(o)})}}const Ar=Pi,Ir={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ai=typeof URLSearchParams<"u"?URLSearchParams:Dn,Ii=typeof FormData<"u"?FormData:null,Ri=typeof Blob<"u"?Blob:null,Li=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_e={isBrowser:!0,classes:{URLSearchParams:Ai,FormData:Ii,Blob:Ri},isStandardBrowserEnv:Li,isStandardBrowserWebWorkerEnv:Fi,protocols:["http","https","file","blob","url","data"]};function ji(n,r){return Ot(n,new _e.classes.URLSearchParams,Object.assign({visitor:function(e,o,a,i){return _e.isNode&&k.isBuffer(e)?(this.append(o,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Hi(n){return k.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Ui(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 Rr(n){function r(e,o,a,i){let l=e[i++];const s=Number.isFinite(+l),d=i>=e.length;return l=!l&&k.isArray(a)?a.length:l,d?(k.hasOwnProp(a,l)?a[l]=[a[l],o]:a[l]=o,!s):((!a[l]||!k.isObject(a[l]))&&(a[l]=[]),r(e,o,a[l],i)&&k.isArray(a[l])&&(a[l]=Ui(a[l])),!s)}if(k.isFormData(n)&&k.isFunction(n.entries)){const e={};return k.forEachEntry(n,(o,a)=>{r(Hi(o),a,e,0)}),e}return null}function zi(n,r,e){if(k.isString(n))try{return(r||JSON.parse)(n),k.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(n)}const Nn={transitional:Ir,adapter:_e.isNode?"http":"xhr",transformRequest:[function(r,e){const o=e.getContentType()||"",a=o.indexOf("application/json")>-1,i=k.isObject(r);if(i&&k.isHTMLForm(r)&&(r=new FormData(r)),k.isFormData(r))return a&&a?JSON.stringify(Rr(r)):r;if(k.isArrayBuffer(r)||k.isBuffer(r)||k.isStream(r)||k.isFile(r)||k.isBlob(r))return r;if(k.isArrayBufferView(r))return r.buffer;if(k.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 ji(r,this.formSerializer).toString();if((s=k.isFileList(r))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ot(s?{"files[]":r}:r,d&&new d,this.formSerializer)}}return i||a?(e.setContentType("application/json",!1),zi(r)):r}],transformResponse:[function(r){const e=this.transitional||Nn.transitional,o=e&&e.forcedJSONParsing,a=this.responseType==="json";if(r&&k.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"?I.from(s,I.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}}};k.forEach(["delete","get","head","post","put","patch"],n=>{Nn.headers[n]={}});const Sn=Nn,qi=k.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"]),Yi=n=>{const r={};let e,o,a;return n&&n.split(`
|
|
2
|
+
`).forEach(function(l){a=l.indexOf(":"),e=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!e||r[e]&&qi[e])&&(e==="set-cookie"?r[e]?r[e].push(o):r[e]=[o]:r[e]=r[e]?r[e]+", "+o:o)}),r},Lr=Symbol("internals");function pt(n){return n&&String(n).trim().toLowerCase()}function Pt(n){return n===!1||n==null?n:k.isArray(n)?n.map(Pt):String(n)}function Wi(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 Ki=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function vn(n,r,e,o,a){if(k.isFunction(o))return o.call(this,r,e);if(a&&(r=e),!!k.isString(r)){if(k.isString(o))return r.indexOf(o)!==-1;if(k.isRegExp(o))return o.test(r)}}function Gi(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,e,o)=>e.toUpperCase()+o)}function Ji(n,r){const e=k.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 At{constructor(r){r&&this.set(r)}set(r,e,o){const a=this;function i(s,d,c){const u=pt(d);if(!u)throw new Error("header name must be a non-empty string");const h=k.findKey(a,u);(!h||a[h]===void 0||c===!0||c===void 0&&a[h]!==!1)&&(a[h||d]=Pt(s))}const l=(s,d)=>k.forEach(s,(c,u)=>i(c,u,d));return k.isPlainObject(r)||r instanceof this.constructor?l(r,e):k.isString(r)&&(r=r.trim())&&!Ki(r)?l(Yi(r),e):r!=null&&i(e,r,o),this}get(r,e){if(r=pt(r),r){const o=k.findKey(this,r);if(o){const a=this[o];if(!e)return a;if(e===!0)return Wi(a);if(k.isFunction(e))return e.call(this,a,o);if(k.isRegExp(e))return e.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,e){if(r=pt(r),r){const o=k.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=pt(l),l){const s=k.findKey(o,l);s&&(!e||vn(o,o[s],s,e))&&(delete o[s],a=!0)}}return k.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 k.forEach(this,(a,i)=>{const l=k.findKey(o,i);if(l){e[l]=Pt(a),delete e[i];return}const s=r?Gi(i):String(i).trim();s!==i&&delete e[i],e[s]=Pt(a),o[s]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const e=Object.create(null);return k.forEach(this,(o,a)=>{o!=null&&o!==!1&&(e[a]=r&&k.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[Lr]=this[Lr]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=pt(l);o[s]||(Ji(a,l),o[s]=!0)}return k.isArray(r)?r.forEach(i):i(r),this}}At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(At.prototype,({value:n},r)=>{let e=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(o){this[e]=o}}}),k.freezeMethods(At);const Me=At;function $n(n,r){const e=this||Sn,o=r||e,a=Me.from(o.headers);let i=o.data;return k.forEach(n,function(s){i=s.call(e,i,a.normalize(),r?r.status:void 0)}),a.normalize(),i}function Fr(n){return!!(n&&n.__CANCEL__)}function mt(n,r,e){I.call(this,n??"canceled",I.ERR_CANCELED,r,e),this.name="CanceledError"}k.inherits(mt,I,{__CANCEL__:!0});function Xi(n,r,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?n(e):r(new I("Request failed with status code "+e.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const Zi=_e.isStandardBrowserEnv?function(){return{write:function(e,o,a,i,l,s){const d=[];d.push(e+"="+encodeURIComponent(o)),k.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),k.isString(i)&&d.push("path="+i),k.isString(l)&&d.push("domain="+l),s===!0&&d.push("secure"),document.cookie=d.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 Qi(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function el(n,r){return r?n.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):n}function jr(n,r){return n&&!Qi(r)?el(n,r):r}const tl=_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=k.isString(l)?a(l):l;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}();function nl(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function rl(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(d){const c=Date.now(),u=o[i];l||(l=c),e[a]=d,o[a]=c;let h=i,p=0;for(;h!==a;)p+=e[h++],h=h%n;if(a=(a+1)%n,a===i&&(i=(i+1)%n),c-l<r)return;const b=u&&c-u;return b?Math.round(p*1e3/b):void 0}}function Hr(n,r){let e=0;const o=rl(50,250);return a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-e,d=o(s),c=i<=l;e=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:d||void 0,estimated:d&&l&&c?(l-i)/d:void 0,event:a};u[r?"download":"upload"]=!0,n(u)}}const It={http:Bi,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(e,o){let a=n.data;const i=Me.from(n.headers).normalize(),l=n.responseType;let s;function d(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}k.isFormData(a)&&(_e.isStandardBrowserEnv||_e.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(n.auth){const b=n.auth.username||"",m=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(b+":"+m))}const u=jr(n.baseURL,n.url);c.open(n.method.toUpperCase(),Pr(u,n.params,n.paramsSerializer),!0),c.timeout=n.timeout;function h(){if(!c)return;const b=Me.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:b,config:n,request:c};Xi(function(E){e(E),d()},function(E){o(E),d()},y),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(o(new I("Request aborted",I.ECONNABORTED,n,c)),c=null)},c.onerror=function(){o(new I("Network Error",I.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Ir;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),o(new I(m,y.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,n,c)),c=null},_e.isStandardBrowserEnv){const b=(n.withCredentials||tl(u))&&n.xsrfCookieName&&Zi.read(n.xsrfCookieName);b&&i.set(n.xsrfHeaderName,b)}a===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(m,y){c.setRequestHeader(y,m)}),k.isUndefined(n.withCredentials)||(c.withCredentials=!!n.withCredentials),l&&l!=="json"&&(c.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&c.addEventListener("progress",Hr(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Hr(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=b=>{c&&(o(!b||b.type?new mt(null,n,c):b),c.abort(),c=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const p=nl(u);if(p&&_e.protocols.indexOf(p)===-1){o(new I("Unsupported protocol "+p+":",I.ERR_BAD_REQUEST,n));return}c.send(a||null)})}};k.forEach(It,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const Ur={getAdapter:n=>{n=k.isArray(n)?n:[n];const{length:r}=n;let e,o;for(let a=0;a<r&&(e=n[a],!(o=k.isString(e)?It[e.toLowerCase()]:e));a++);if(!o)throw o===!1?new I(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(k.hasOwnProp(It,e)?`Adapter '${e}' is not available in the build`:`Unknown adapter '${e}'`);if(!k.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:It};function Vn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new mt(null,n)}function zr(n){return Vn(n),n.headers=Me.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),Ur.getAdapter(n.adapter||Sn.adapter)(n).then(function(o){return Vn(n),o.data=$n.call(n,n.transformResponse,o),o.headers=Me.from(o.headers),o},function(o){return Fr(o)||(Vn(n),o&&o.response&&(o.response.data=$n.call(n,n.transformResponse,o.response),o.response.headers=Me.from(o.response.headers))),Promise.reject(o)})}const qr=n=>n instanceof Me?n.toJSON():n;function Xe(n,r){r=r||{};const e={};function o(c,u,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function a(c,u,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return o(void 0,c,h)}else return o(c,u,h)}function i(c,u){if(!k.isUndefined(u))return o(void 0,u)}function l(c,u){if(k.isUndefined(u)){if(!k.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,h){if(h in r)return o(c,u);if(h in n)return o(void 0,c)}const d={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:(c,u)=>a(qr(c),qr(u),!0)};return k.forEach(Object.keys(Object.assign({},n,r)),function(u){const h=d[u]||a,p=h(n[u],r[u],u);k.isUndefined(p)&&h!==s||(e[u]=p)}),e}const Yr="1.5.0",Bn={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Bn[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});const Wr={};Bn.transitional=function(r,e,o){function a(i,l){return"[Axios v"+Yr+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(r===!1)throw new I(a(l," has been removed"+(e?" in "+e:"")),I.ERR_DEPRECATED);return e&&!Wr[l]&&(Wr[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 ol(n,r,e){if(typeof n!="object")throw new I("options must be an object",I.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],d=s===void 0||l(s,i,n);if(d!==!0)throw new I("option "+i+" must be "+d,I.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}}const Tn={assertOptions:ol,validators:Bn},Re=Tn.validators;class Rt{constructor(r){this.defaults=r,this.interceptors={request:new Ar,response:new Ar}}request(r,e){typeof r=="string"?(e=e||{},e.url=r):e=r||{},e=Xe(this.defaults,e);const{transitional:o,paramsSerializer:a,headers:i}=e;o!==void 0&&Tn.assertOptions(o,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),a!=null&&(k.isFunction(a)?e.paramsSerializer={serialize:a}:Tn.assertOptions(a,{encode:Re.function,serialize:Re.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let l=i&&k.merge(i.common,i[e.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),e.headers=Me.concat(l,i);const s=[];let d=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(e)===!1||(d=d&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,h=0,p;if(!d){const m=[zr.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),p=m.length,u=Promise.resolve(e);h<p;)u=u.then(m[h++],m[h++]);return u}p=s.length;let b=e;for(h=0;h<p;){const m=s[h++],y=s[h++];try{b=m(b)}catch(x){y.call(this,x);break}}try{u=zr.call(this,b)}catch(m){return Promise.reject(m)}for(h=0,p=c.length;h<p;)u=u.then(c[h++],c[h++]);return u}getUri(r){r=Xe(this.defaults,r);const e=jr(r.baseURL,r.url);return Pr(e,r.params,r.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(r){Rt.prototype[r]=function(e,o){return this.request(Xe(o||{},{method:r,url:e,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(r){function e(o){return function(i,l,s){return this.request(Xe(s||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Rt.prototype[r]=e(),Rt.prototype[r+"Form"]=e(!0)});const Lt=Rt;class Mn{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 mt(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 Mn(function(a){r=a}),cancel:r}}}const al=Mn;function il(n){return function(e){return n.apply(null,e)}}function ll(n){return k.isObject(n)&&n.isAxiosError===!0}const On={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(On).forEach(([n,r])=>{On[r]=n});const sl=On;function Kr(n){const r=new Lt(n),e=Ie(Lt.prototype.request,r);return k.extend(e,Lt.prototype,r,{allOwnKeys:!0}),k.extend(e,r,null,{allOwnKeys:!0}),e.create=function(a){return Kr(Xe(n,a))},e}const Z=Kr(Sn);Z.Axios=Lt,Z.CanceledError=mt,Z.CancelToken=al,Z.isCancel=Fr,Z.VERSION=Yr,Z.toFormData=Ot,Z.AxiosError=I,Z.Cancel=Z.CanceledError,Z.all=function(r){return Promise.all(r)},Z.spread=il,Z.isAxiosError=ll,Z.mergeConfig=Xe,Z.AxiosHeaders=Me,Z.formToJSON=n=>Rr(k.isHTMLForm(n)?new FormData(n):n),Z.getAdapter=Ur.getAdapter,Z.HttpStatusCode=sl,Z.default=Z;const Pn=Z,Gr="HttpError",Jr="HttpErrorCanceled";class Ft extends Error{constructor(e,o,a,i){super(e||"");wr(this,"response");wr(this,"status");this.name=i||Gr,this.status=o||0,this.response=a}}function Xr(){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:(d=[])=>{d&&(o.value=d,e.value=d.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 An;function Zr(){return An===void 0&&(An=Xr()),An}const In=(()=>{const{show:n,hide:r}=Zr();return{show:n,hide:r}})(),cl=n=>{const r=n.withDelay||0;return new Promise(e=>{setTimeout(()=>{e(n)},Math.max(r,0))})},jt=Pn.create({baseURL:"/api/v1",paramsSerializer:{indexes:null},responseType:"json",withCredentials:!0});jt.interceptors.request.use(cl);const Ze=(n,r)=>{const e={skipLoader:!1,withDelay:0,...r},o=window.setTimeout(()=>{e.skipLoader!==!0&&In.show()},200);return jt({...n,...r}).then(a=>a.data).catch(a=>{var i,l;throw Pn.isAxiosError(a)?new Ft(a.message,(i=a.response)==null?void 0:i.status,(l=a.response)==null?void 0:l.data,Pn.isCancel(a)?Jr:Gr):a instanceof Error?new Ft(a.message,0):new Ft("An unknown error has occurred.",0)}).finally(()=>{e.skipLoader!==!0&&In.hide(),window.clearTimeout(o)})},Rn={delete(n,r){return Ze({url:n,method:"DELETE"},r||{})},get(n,r,e){return Ze({url:n,method:"GET",params:e},r||{})},patch(n,r,e){return Ze({url:n,data:r,method:"PATCH"},e||{})},post(n,r,e){return Ze({url:n,data:r,method:"POST"},e||{})},put(n,r,e){return Ze({url:n,data:r,method:"PUT"},e||{})}},dl=n=>{jt.defaults={...jt.defaults,...n}},Qr=n=>n instanceof Ft,eo=n=>Qr(n)&&n.name===Jr;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 ul(n,r){if(n){if(typeof n=="string")return to(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 to(n,r)}}function to(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 Ve(n,r){var e;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(e=ul(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 ce(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,ce),l}var de;(function(n){n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static"})(de||(de={}));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?de.None:o,i=De(n,["visible","features"]);if(e||a&de.Static&&i.props.static)return Ht(i);if(a&de.RenderStrategy){var l,s,d=(l=i.props.unmount)==null||l?me.Unmount:me.Hidden;return ce(d,(s={},s[me.Unmount]=function(){return null},s[me.Hidden]=function(){return Ht(z({},i,{props:z({},i.props,{hidden:!0,style:{display:"none"}})}))},s))}return Ht(i)}function Ht(n){var r=n.props,e=n.attrs,o=n.slots,a=n.slot,i=n.name,l=fl(r,["unmount","static"]),s=l.as,d=De(l,["as"]),c=o.default==null?void 0:o.default(a);if(s==="template"){if(Object.keys(d).length>0||Object.keys(e).length>0){var u=c??[],h=u[0],p=u.slice(1);if(!pl(h)||p.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(d).concat(Object.keys(e)).map(function(b){return" - "+b}).join(`
|
|
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(b){return" - "+b}).join(`
|
|
6
6
|
`)].join(`
|
|
7
|
-
`));return t.cloneVNode(m,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=Ve(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function dl(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var to=Symbol("StackContext"),Ze;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(Ze||(Ze={}));function no(){return t.inject(to,function(){})}function ul(n){var r=no();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(Ze.AddElement,o),e(function(){return r(Ze.RemoveElement,o)}))})}function ro(n){var r=no();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(to,e)}var oo=Symbol("ForcePortalRootContext");function fl(){return t.inject(oo,!1)}var ao=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(oo,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function io(){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 Rn=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=fl(),l=t.inject(lo,null),s=t.ref(i===!0||l===null?io():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var c=t.ref(null);return ul(c),t.onUnmounted(function(){var d=document.getElementById("headlessui-portal-root");if(d&&s.value===d&&s.value.children.length<=0){var f;(f=s.value.parentElement)==null||f.removeChild(s.value)}}),ro(),function(){if(s.value===null)return null;var d={ref:c};return t.h(t.Teleport,{to:s.value},K({props:H({},r,d),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),lo=Symbol("PortalGroupContext"),pl=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(lo,i),function(){var l=De(r,["target"]);return K({props:l,slot:{},attrs:o,slots:a,name:"PortalGroup"})}}}),M;(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"})(M||(M={}));var ml=0;function hl(){return++ml}function ne(){return hl()}function Te(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function In(n,r){for(var e=Ve(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var Fn=["[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(","),U;(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"})(U||(U={}));var me;(function(n){n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow"})(me||(me={}));var Ht;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(Ht||(Ht={}));function Ut(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(Fn))}var Qe;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(Qe||(Qe={}));function gl(n,r){var e;return r===void 0&&(r=Qe.Strict),n===document.body?!1:se(r,(e={},e[Qe.Strict]=function(){return n.matches(Fn)},e[Qe.Loose]=function(){for(var o=n;o!==null;){if(o.matches(Fn))return!0;o=o.parentElement}return!1},e))}function mt(n){n==null||n.focus({preventScroll:!0})}function ve(n,r){var e=Array.isArray(n)?n:Ut(n),o=document.activeElement,a=function(){if(r&(U.First|U.Next))return Ht.Next;if(r&(U.Previous|U.Last))return Ht.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),i=function(){if(r&U.First)return 0;if(r&U.Previous)return Math.max(0,e.indexOf(o))-1;if(r&U.Next)return Math.max(0,e.indexOf(o))+1;if(r&U.Last)return e.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),l=r&U.NoScroll?{preventScroll:!0}:{},s=0,c=e.length,d=void 0;do{var f;if(s>=c||s+c<=0)return me.Error;var m=i+s;if(r&U.WrapAround)m=(m+c)%c;else{if(m<0)return me.Underflow;if(m>=c)return me.Overflow}d=e[m],(f=d)==null||f.focus(l),s+=a}while(d!==document.activeElement);return d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),me.Success}function bl(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(In(n.value,c))return;if(o.value=c,s)mt(s);else{for(var d=!1,f=Ve(n.value),m;!(m=f()).done;){var g=m.value,h=ve(g,U.First);if(h===me.Success){d=!0;break}}d||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){mt(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Te("keydown",function(s){if(r.value&&s.key===M.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var c=Ve(n.value),d;!(d=c()).done;){var f=d.value,m=ve(f,(s.shiftKey?U.Previous:U.Next)|U.WrapAround);if(m===me.Success){a.value=document.activeElement;break}}}}),Te("focus",function(s){if(r.value&&n.value.size===1){var c=a.value;if(c){var d=s.target;d&&d instanceof HTMLElement?In(n.value,d)?(a.value=d,mt(d)):(s.preventDefault(),s.stopPropagation(),mt(c)):mt(a.value)}}},!0)}var so=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",et=new Set,Re=new Map;function co(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function uo(n){var r=Re.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function yl(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;et.add(o);for(var a=Ve(Re.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(uo(l),Re.delete(l))}document.querySelectorAll(so).forEach(function(s){if(s instanceof HTMLElement){for(var c=Ve(et),d;!(d=c()).done;){var f=d.value;if(s.contains(f))return}et.size===1&&(Re.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),co(s))}}),e(function(){if(et.delete(o),et.size>0)document.querySelectorAll(so).forEach(function(f){if(f instanceof HTMLElement&&!Re.has(f)){for(var m=Ve(et),g;!(g=m()).done;){var h=g.value;if(f.contains(h))return}Re.set(f,{"aria-hidden":f.getAttribute("aria-hidden"),inert:f.inert}),co(f)}});else for(var s=Ve(Re.keys()),c;!(c=s()).done;){var d=c.value;uo(d),Re.delete(d)}})}})}var fo=Symbol("DescriptionContext");function wl(){var n=t.inject(fo,null);if(n===null)throw new Error("Missing parent");return n}function zt(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(f){return c.value.push(f),function(){var m=c.value.indexOf(f);m!==-1&&c.value.splice(m,1)}}return t.provide(fo,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var po=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=H({},Object.entries(s).reduce(function(f,m){var g,h=m[0],b=m[1];return Object.assign(f,(g={},g[h]=t.unref(b),g))},{}),{id:this.id});return K({props:H({},c,d),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=wl(),e="headlessui-description-"+ne();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function $(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var mo=Symbol("Context"),ee;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ee||(ee={}));function xl(){return tt()!==null}function tt(){return t.inject(mo,null)}function Yt(n){t.provide(mo,n)}var ie;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ie||(ie={}));var ho=Symbol("DialogContext");function ht(n){var r=t.inject(ho,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ht),e}return r}var Wt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Kt=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:Wt},initialFocus:{type:Object,default:null}},emits:{close:function(r){return!0}},render:function(){var r=this,e=H({},this.$attrs,{ref:"el",id:this.id,role:"dialog","aria-modal":this.dialogState===ie.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===ie.Open};return t.h(ao,{force:!0},function(){return t.h(Rn,function(){return t.h(pl,{target:r.dialogRef},function(){return t.h(ao,{force:!1},function(){return K({props:H({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:ce.RenderStrategy|ce.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=tt(),l=t.computed(function(){if(r.open===Wt&&i!==null){var k;return se(i.value,(k={},k[ee.Open]=!0,k[ee.Closed]=!1,k))}return r.open}),s=r.open!==Wt||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===Wt?void 0:r.open));var c=t.computed(function(){return r.open?ie.Open:ie.Closed}),d=t.computed(function(){return i!==null?i.value===ee.Open:c.value===ie.Open}),f=t.ref(null),m=t.ref(c.value===ie.Open);t.onUpdated(function(){m.value=c.value===ie.Open});var g="headlessui-dialog-"+ne(),h=t.computed(function(){return{initialFocus:r.initialFocus}});bl(a,m,h),yl(f,m),ro(function(k,v){var N;return se(k,(N={},N[Ze.AddElement]=function(){a.value.add(v)},N[Ze.RemoveElement]=function(){a.value.delete(v)},N))});var b=zt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),C={titleId:y,dialogState:c,setTitleId:function(v){y.value!==v&&(y.value=v)},close:function(){o("close",!1)}};return t.provide(ho,C),Te("mousedown",function(k){var v=k.target;c.value===ie.Open&&a.value.size===1&&(In(a.value,v)||(C.close(),t.nextTick(function(){return v==null?void 0:v.focus()})))}),Te("keydown",function(k){k.key===M.Escape&&c.value===ie.Open&&(a.value.size>1||(k.preventDefault(),k.stopPropagation(),C.close()))}),t.watchEffect(function(k){if(c.value===ie.Open){var v=document.documentElement.style.overflow,N=document.documentElement.style.paddingRight,j=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=j+"px",k(function(){document.documentElement.style.overflow=v,document.documentElement.style.paddingRight=N})}}),t.watchEffect(function(k){if(c.value===ie.Open){var v=$(f);if(v){var N=new IntersectionObserver(function(j){for(var L=Ve(j),I;!(I=L()).done;){var T=I.value;T.boundingClientRect.x===0&&T.boundingClientRect.y===0&&T.boundingClientRect.width===0&&T.boundingClientRect.height===0&&C.close()}});N.observe(v),k(function(){return N.disconnect()})}}}),{id:g,el:f,dialogRef:f,containers:a,dialogState:c,titleId:y,describedby:b,visible:d,open:l,handleClick:function(v){v.stopPropagation()}}}}),qt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=ht("DialogOverlay"),e={ref:"el",id:this.id,"aria-hidden":!0,onClick:this.handleClick},o=this.$props;return K({props:H({},o,e),slot:{open:r.dialogState.value===ie.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogOverlay"})},setup:function(){var r=ht("DialogOverlay"),e="headlessui-dialog-overlay-"+ne();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),jn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=ht("DialogTitle"),e={id:this.id},o=this.$props;return K({props:H({},o,e),slot:{open:r.dialogState.value===ie.Open},attrs:this.$attrs,slots:this.$slots,name:"DialogTitle"})},setup:function(){var r=ht("DialogTitle"),e="headlessui-dialog-title-"+ne();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function go(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Gt(n,r){var e=t.ref(go(n.value.type,n.value.as));return t.onMounted(function(){e.value=go(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||$(r)&&$(r)instanceof HTMLButtonElement&&!((o=$(r))!=null&&o.hasAttribute("type"))&&(e.value="button")}),e}var te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));var bo=Symbol("DisclosureContext");function gt(n){var r=t.inject(bo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gt),e}return r}var yo=Symbol("DisclosurePanelContext");function Cl(){return t.inject(yo,null)}var El=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-"+ne(),l="headlessui-disclosure-panel-"+ne(),s=t.ref(r.defaultOpen?te.Open:te.Closed),c=t.ref(null),d=t.ref(null),f={buttonId:i,panelId:l,disclosureState:s,panel:c,button:d,toggleDisclosure:function(){var g;s.value=se(s.value,(g={},g[te.Open]=te.Closed,g[te.Closed]=te.Open,g))},closeDisclosure:function(){s.value!==te.Closed&&(s.value=te.Closed)},close:function(g){f.closeDisclosure();var h=function(){return g?g instanceof HTMLElement?g:g.value instanceof HTMLElement?$(g):$(f.button):$(f.button)}();h==null||h.focus()}};return t.provide(bo,f),Yt(t.computed(function(){var m;return se(s.value,(m={},m[te.Open]=ee.Open,m[te.Closed]=ee.Closed,m))})),function(){var m=De(r,["defaultOpen"]),g={open:s.value===te.Open,close:f.close};return K({props:m,slot:g,slots:o,attrs:a,name:"Disclosure"})}}}),kl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=gt("DisclosureButton"),e={open:r.disclosureState.value===te.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===te.Open,"aria-controls":$(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:H({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"DisclosureButton"})},setup:function(r,e){var o=e.attrs,a=gt("DisclosureButton"),i=Cl(),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:Gt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var d;a.toggleDisclosure(),(d=$(a.button))==null||d.focus()}else a.toggleDisclosure()},handleKeyDown:function(d){var f;if(!r.disabled)if(l)switch(d.key){case M.Space:case M.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure(),(f=$(a.button))==null||f.focus();break}else switch(d.key){case M.Space:case M.Enter:d.preventDefault(),d.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(d){switch(d.key){case M.Space:d.preventDefault();break}}}}}),_l=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=gt("DisclosurePanel"),e={open:r.disclosureState.value===te.Open,close:r.close},o={id:this.id,ref:"el"};return K({props:H({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ce.RenderStrategy|ce.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=gt("DisclosurePanel");t.provide(yo,r.panelId);var e=tt(),o=t.computed(function(){return e!==null?e.value===ee.Open:r.disclosureState.value===te.Open});return{id:r.panelId,el:r.panel,visible:o}}});function Dl(n){throw new Error("Unexpected object: "+n)}var X;(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"})(X||(X={}));function vl(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 X.First:return e.findIndex(function(c){return!r.resolveDisabled(c)});case X.Previous:{var l=e.slice().reverse().findIndex(function(c,d,f){return a!==-1&&f.length-d-1>=a?!1:!r.resolveDisabled(c)});return l===-1?l:e.length-1-l}case X.Next:return e.findIndex(function(c,d){return d<=a?!1:!r.resolveDisabled(c)});case X.Last:{var s=e.slice().reverse().findIndex(function(c){return!r.resolveDisabled(c)});return s===-1?s:e.length-1-s}case X.Specific:return e.findIndex(function(c){return r.resolveId(c)===n.id});case X.Nothing:return null;default:Dl(n)}}();return i===-1?o:i}function wo(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 re;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(re||(re={}));function Nl(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var xo=Symbol("MenuContext");function nt(n){var r=t.inject(xo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,nt),e}return r}var Hn=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(re.Closed),l=t.ref(null),s=t.ref(null),c=t.ref([]),d=t.ref(""),f=t.ref(null),m={menuState:i,buttonRef:l,itemsRef:s,items:c,searchQuery:d,activeItemIndex:f,closeMenu:function(){i.value=re.Closed,f.value=null},openMenu:function(){return i.value=re.Open},goToItem:function(h,b){var y=vl(h===X.Specific?{focus:X.Specific,id:b}:{focus:h},{resolveItems:function(){return c.value},resolveActiveIndex:function(){return f.value},resolveId:function(k){return k.id},resolveDisabled:function(k){return k.dataRef.disabled}});d.value===""&&f.value===y||(d.value="",f.value=y)},search:function(h){d.value+=h.toLowerCase();var b=c.value.findIndex(function(y){return y.dataRef.textValue.startsWith(d.value)&&!y.dataRef.disabled});b===-1||b===f.value||(f.value=b)},clearSearch:function(){d.value=""},registerItem:function(h,b){c.value.push({id:h,dataRef:b})},unregisterItem:function(h){var b=c.value.slice(),y=f.value!==null?b[f.value]:null,C=b.findIndex(function(k){return k.id===h});C!==-1&&b.splice(C,1),c.value=b,f.value=function(){return C===f.value||y===null?null:b.indexOf(y)}()}};return Te("mousedown",function(g){var h,b,y,C=g.target,k=document.activeElement;i.value===re.Open&&((h=$(l))!=null&&h.contains(C)||((b=$(s))!=null&&b.contains(C)||m.closeMenu(),!(k!==document.body&&(k!=null&&k.contains(C)))&&(g.defaultPrevented||(y=$(l))==null||y.focus({preventScroll:!0}))))}),t.provide(xo,m),Yt(t.computed(function(){var g;return se(i.value,(g={},g[re.Open]=ee.Open,g[re.Closed]=ee.Closed,g))})),function(){var g={open:i.value===re.Open};return K({props:r,slot:g,slots:o,attrs:a,name:"Menu"})}}}),Un=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=nt("MenuButton"),o={open:e.menuState.value===re.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=$(e.itemsRef))==null?void 0:r.id,"aria-expanded":this.$props.disabled?void 0:e.menuState.value===re.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return K({props:H({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(r,e){var o=e.attrs,a=nt("MenuButton"),i="headlessui-menu-button-"+ne();function l(d){switch(d.key){case M.Space:case M.Enter:case M.ArrowDown:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var f;(f=$(a.itemsRef))==null||f.focus({preventScroll:!0}),a.goToItem(X.First)});break;case M.ArrowUp:d.preventDefault(),d.stopPropagation(),a.openMenu(),t.nextTick(function(){var f;(f=$(a.itemsRef))==null||f.focus({preventScroll:!0}),a.goToItem(X.Last)});break}}function s(d){switch(d.key){case M.Space:d.preventDefault();break}}function c(d){r.disabled||(a.menuState.value===re.Open?(a.closeMenu(),t.nextTick(function(){var f;return(f=$(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),d.stopPropagation(),a.openMenu(),Nl(function(){var f;return(f=$(a.itemsRef))==null?void 0:f.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Gt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:c}}}),zn=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=nt("MenuItems"),a={open:o.menuState.value===re.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(r=o.items.value[o.activeItemIndex.value])==null?void 0:r.id,"aria-labelledby":(e=$(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:H({},l,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:ce.RenderStrategy|ce.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=nt("MenuItems"),e="headlessui-menu-items-"+ne(),o=t.ref(null);wo({container:t.computed(function(){return $(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===re.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 M.Space:if(r.searchQuery.value!=="")return c.preventDefault(),c.stopPropagation(),r.search(c.key);case M.Enter:if(c.preventDefault(),c.stopPropagation(),r.activeItemIndex.value!==null){var d,f=r.items.value[r.activeItemIndex.value].id;(d=document.getElementById(f))==null||d.click()}r.closeMenu(),t.nextTick(function(){var m;return(m=$(r.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case M.ArrowDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(X.Next);case M.ArrowUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(X.Previous);case M.Home:case M.PageUp:return c.preventDefault(),c.stopPropagation(),r.goToItem(X.First);case M.End:case M.PageDown:return c.preventDefault(),c.stopPropagation(),r.goToItem(X.Last);case M.Escape:c.preventDefault(),c.stopPropagation(),r.closeMenu(),t.nextTick(function(){var m;return(m=$(r.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case M.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 M.Space:c.preventDefault();break}}var l=tt(),s=t.computed(function(){return l!==null?l.value===ee.Open:r.menuState.value===re.Open});return{id:e,el:r.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Yn=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=nt("MenuItem"),l="headlessui-menu-item-"+ne(),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 h,b,y=(h=document.getElementById(l))==null||(b=h.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===re.Open&&s.value&&t.nextTick(function(){var h;return(h=document.getElementById(l))==null||h.scrollIntoView==null?void 0:h.scrollIntoView({block:"nearest"})})});function d(h){if(r.disabled)return h.preventDefault();i.closeMenu(),t.nextTick(function(){var b;return(b=$(i.buttonRef))==null?void 0:b.focus({preventScroll:!0})})}function f(){if(r.disabled)return i.goToItem(X.Nothing);i.goToItem(X.Specific,l)}function m(){r.disabled||s.value||i.goToItem(X.Specific,l)}function g(){r.disabled||s.value&&i.goToItem(X.Nothing)}return function(){var h=r.disabled,b={active:s.value,disabled:h},y={id:l,role:"menuitem",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,onClick:d,onFocus:f,onPointermove:m,onMousemove:m,onPointerleave:g,onMouseleave:g};return K({props:H({},r,y),slot:b,attrs:a,slots:o,name:"MenuItem"})}}}),z;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(z||(z={}));var Co=Symbol("PopoverContext");function bt(n){var r=t.inject(Co,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+_o.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,bt),e}return r}var Sl=Symbol("PopoverGroupContext");function Eo(){return t.inject(Sl,null)}var ko=Symbol("PopoverPanelContext");function $l(){return t.inject(ko,null)}var _o=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-"+ne(),l="headlessui-popover-panel-"+ne(),s=t.ref(z.Closed),c=t.ref(null),d=t.ref(null),f={popoverState:s,buttonId:i,panelId:l,panel:d,button:c,togglePopover:function(){var C;s.value=se(s.value,(C={},C[z.Open]=z.Closed,C[z.Closed]=z.Open,C))},closePopover:function(){s.value!==z.Closed&&(s.value=z.Closed)},close:function(C){f.closePopover();var k=function(){return C?C instanceof HTMLElement?C:C.value instanceof HTMLElement?$(C):$(f.button):$(f.button)}();k==null||k.focus()}};t.provide(Co,f),Yt(t.computed(function(){var y;return se(s.value,(y={},y[z.Open]=ee.Open,y[z.Closed]=ee.Closed,y))}));var m={buttonId:i,panelId:l,close:function(){f.closePopover()}},g=Eo(),h=g==null?void 0:g.registerPopover;function b(){var y,C,k;return(y=g==null?void 0:g.isFocusWithinPopoverGroup())!=null?y:((C=$(c))==null?void 0:C.contains(document.activeElement))||((k=$(d))==null?void 0:k.contains(document.activeElement))}return t.watchEffect(function(){return h==null?void 0:h(m)}),Te("focus",function(){s.value===z.Open&&(b()||c&&d&&f.closePopover())},!0),Te("mousedown",function(y){var C,k,v=y.target;if(s.value===z.Open&&!((C=$(c))!=null&&C.contains(v))&&!((k=$(d))!=null&&k.contains(v))&&(f.closePopover(),!gl(v,Qe.Loose))){var N;y.preventDefault(),(N=$(c))==null||N.focus()}}),function(){var y={open:s.value===z.Open,close:f.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Vl=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=bt("PopoverButton"),e={open:r.popoverState.value===z.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===z.Open,"aria-controls":$(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:H({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,name:"PopoverButton"})},setup:function(r,e){var o=e.attrs,a=bt("PopoverButton"),i=Eo(),l=i==null?void 0:i.closeOthers,s=$l(),c=s===null?!1:s===a.panelId,d=t.ref(null),f=t.ref(typeof window>"u"?null:document.activeElement);Te("focus",function(){f.value=d.value,d.value=document.activeElement},!0);var m=t.ref(null);return c||t.watchEffect(function(){a.button.value=m.value}),{isWithinPanel:c,el:m,type:Gt(t.computed(function(){return{as:r.as,type:o.type}}),m),handleKeyDown:function(h){var b,y;if(c){if(a.popoverState.value===z.Closed)return;switch(h.key){case M.Space:case M.Enter:h.preventDefault(),h.stopPropagation(),a.closePopover(),(b=$(a.button))==null||b.focus();break}}else switch(h.key){case M.Space:case M.Enter:h.preventDefault(),h.stopPropagation(),a.popoverState.value===z.Closed&&(l==null||l(a.buttonId)),a.togglePopover();break;case M.Escape:if(a.popoverState.value!==z.Open)return l==null?void 0:l(a.buttonId);if(!$(a.button)||!((y=$(a.button))!=null&&y.contains(document.activeElement)))return;h.preventDefault(),h.stopPropagation(),a.closePopover();break;case M.Tab:if(a.popoverState.value!==z.Open||!a.panel||!a.button)return;if(h.shiftKey){var C,k;if(!f.value||(C=$(a.button))!=null&&C.contains(f.value)||(k=$(a.panel))!=null&&k.contains(f.value))return;var v=Ut(),N=v.indexOf(f.value),j=v.indexOf($(a.button));if(j>N)return;h.preventDefault(),h.stopPropagation(),ve($(a.panel),U.Last)}else h.preventDefault(),h.stopPropagation(),ve($(a.panel),U.First);break}},handleKeyUp:function(h){var b,y;if(!c&&(h.key===M.Space&&h.preventDefault(),a.popoverState.value===z.Open&&a.panel&&a.button))switch(h.key){case M.Tab:if(!f.value||(b=$(a.button))!=null&&b.contains(f.value)||(y=$(a.panel))!=null&&y.contains(f.value))return;var C=Ut(),k=C.indexOf(f.value),v=C.indexOf($(a.button));if(v>k)return;h.preventDefault(),h.stopPropagation(),ve($(a.panel),U.Last);break}},handleClick:function(){if(!r.disabled)if(c){var h;a.closePopover(),(h=$(a.button))==null||h.focus()}else{var b;a.popoverState.value===z.Closed&&(l==null||l(a.buttonId)),(b=$(a.button))==null||b.focus(),a.togglePopover()}}}}}),Tl=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=bt("PopoverPanel"),e={open:r.popoverState.value===z.Open,close:r.close},o={ref:"el",id:this.id,onKeydown:this.handleKeyDown};return K({props:H({},this.$props,o),slot:e,attrs:this.$attrs,slots:this.$slots,features:ce.RenderStrategy|ce.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=bt("PopoverPanel");t.provide(ko,o.panelId),t.onUnmounted(function(){o.panel.value=null}),t.watchEffect(function(){var l;if(e&&o.popoverState.value===z.Open&&o.panel){var s=document.activeElement;(l=$(o.panel))!=null&&l.contains(s)||ve($(o.panel),U.First)}}),Te("keydown",function(l){var s;if(o.popoverState.value===z.Open&&$(o.panel)&&l.key===M.Tab&&document.activeElement&&(s=$(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var c=ve($(o.panel),l.shiftKey?U.Previous:U.Next);if(c===me.Underflow){var d;return(d=$(o.button))==null?void 0:d.focus()}else if(c===me.Overflow){if(!$(o.button))return;var f=Ut(),m=f.indexOf($(o.button)),g=f.splice(m+1).filter(function(h){var b;return!((b=$(o.panel))!=null&&b.contains(h))});ve(g,U.First)===me.Error&&ve(document.body,U.First)}}}),Te("focus",function(){var l;e&&o.popoverState.value===z.Open&&$(o.panel)&&((l=$(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=tt(),i=t.computed(function(){return a!==null?a.value===ee.Open:o.popoverState.value===z.Open});return{id:o.panelId,el:o.panel,handleKeyDown:function(s){var c,d;switch(s.key){case M.Escape:if(o.popoverState.value!==z.Open||!$(o.panel)||!((c=$(o.panel))!=null&&c.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(d=$(o.button))==null||d.focus();break}},visible:i}}}),Do=Symbol("LabelContext");function vo(){var n=t.inject(Do,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,vo),r}return n}function Wn(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(f){return c.value.push(f),function(){var m=c.value.indexOf(f);m!==-1&&c.value.splice(m,1)}}return t.provide(Do,{register:d,slot:o,name:i,props:s}),t.computed(function(){return c.value.length>0?c.value.join(" "):void 0})}var No=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,f=De(c,["passive"]),m=H({},Object.entries(s).reduce(function(h,b){var y,C=b[0],k=b[1];return Object.assign(h,(y={},y[C]=t.unref(k),y))},{}),{id:this.id}),g=H({},f,m);return d&&delete g.onClick,K({props:g,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=vo(),e="headlessui-label-"+ne();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),So=Symbol("RadioGroupContext");function $o(n){var r=t.inject(So,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,$o),e}return r}var Bl=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:H({},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=Wn({name:"RadioGroupLabel"}),s=zt({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(g){return!g.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(g){return t.toRaw(g.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(h){var b;if(r.disabled||c.value===h)return!1;var y=(b=i.value.find(function(C){return t.toRaw(C.propsRef.value)===t.toRaw(h)}))==null?void 0:b.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",h),!0)},registerOption:function(h){var b,y=Array.from((b=a.value)==null?void 0:b.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(C,k,v){var N;return Object.assign(C,(N={},N[k.id]=v,N))},{});i.value.push(h),i.value.sort(function(C,k){return y[C.id]-y[k.id]})},unregisterOption:function(h){var b=i.value.findIndex(function(y){return y.id===h});b!==-1&&i.value.splice(b,1)}};t.provide(So,d),wo({container:t.computed(function(){return $(a)}),accept:function(h){return h.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(h){h.setAttribute("role","none")}});function f(g){if(a.value&&a.value.contains(g.target)){var h=i.value.filter(function(N){return N.propsRef.disabled===!1}).map(function(N){return N.element});switch(g.key){case M.ArrowLeft:case M.ArrowUp:{g.preventDefault(),g.stopPropagation();var b=ve(h,U.Previous|U.WrapAround);if(b===me.Success){var y=i.value.find(function(N){return N.element===document.activeElement});y&&d.change(y.propsRef.value)}}break;case M.ArrowRight:case M.ArrowDown:{g.preventDefault(),g.stopPropagation();var C=ve(h,U.Next|U.WrapAround);if(C===me.Success){var k=i.value.find(function(N){return N.element===document.activeElement});k&&d.change(k.propsRef.value)}}break;case M.Space:{g.preventDefault(),g.stopPropagation();var v=i.value.find(function(N){return N.element===document.activeElement});v&&d.change(v.propsRef.value)}break}}}var m="headlessui-radiogroup-"+ne();return{id:m,labelledby:l,describedby:s,el:a,handleKeyDown:f}}}),ze;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(ze||(ze={}));var Ml=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&ze.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:H({},e,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"RadioGroupOption"})},setup:function(r){var e=$o("RadioGroupOption"),o="headlessui-radiogroup-option-"+ne(),a=Wn({name:"RadioGroupLabel"}),i=zt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),c=t.ref(ze.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 g;return((g=e.firstOption.value)==null?void 0:g.id)===o}),f=t.computed(function(){return e.disabled.value||r.disabled}),m=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:f,checked:m,tabIndex:t.computed(function(){return f.value?-1:m.value||!e.containsCheckedOption.value&&d.value?0:-1}),handleClick:function(){var h;e.change(r.value)&&(c.value|=ze.Active,(h=l.value)==null||h.focus())},handleFocus:function(){c.value|=ze.Active},handleBlur:function(){c.value&=~ze.Active}}}}),Vo=No,Kn=po,To=Symbol("GroupContext"),Ol=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=Wn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=zt({name:"SwitchDescription"}),c={switchRef:i,labelledby:l,describedby:s};return t.provide(To,c),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Pl=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:H({},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(To,null),l="headlessui-switch-"+ne();function s(){o("update:modelValue",!r.modelValue)}var c=t.ref(null),d=i===null?c:i.switchRef;return{id:l,el:d,type:Gt(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(m){m.preventDefault(),s()},handleKeyUp:function(m){m.key!==M.Tab&&m.preventDefault(),m.key===M.Space&&s()},handleKeyPress:function(m){m.preventDefault()}}}}),Al=No,Ll=po;function Rl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function Bo(){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=Ve(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function qn(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 Jt(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 Ie;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Ie||(Ie={}));function Il(n,r){var e=Bo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(d){var f=d.split(",").filter(Boolean).map(function(h){return h.includes("ms")?parseFloat(h):parseFloat(h)*1e3}).sort(function(h,b){return b-h}),m=f[0],g=m===void 0?0:m;return g}),s=l[0],c=l[1];return s!==0?e.setTimeout(function(){return r(Ie.Finished)},s+c):r(Ie.Finished),e.add(function(){return r(Ie.Cancelled)}),e.dispose}function Mo(n,r,e,o,a,i){var l=Bo(),s=i!==void 0?Rl(i):function(){};return Jt.apply(void 0,[n].concat(a)),qn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Jt.apply(void 0,[n].concat(e)),qn.apply(void 0,[n].concat(o)),l.add(Il(n,function(c){return Jt.apply(void 0,[n].concat(o,r)),qn.apply(void 0,[n].concat(a)),s(c)}))}),l.add(function(){return Jt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(Ie.Cancelled)}),l.dispose}function Ye(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Gn=Symbol("TransitionContext"),q;(function(n){n.Visible="visible",n.Hidden="hidden"})(q||(q={}));function Fl(){return t.inject(Gn,null)!==null}function jl(){var n=t.inject(Gn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function Hl(){var n=t.inject(Jn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Jn=Symbol("NestingContext");function Xt(n){return"children"in n?Xt(n.children):n.value.filter(function(r){var e=r.state;return e===q.Visible}).length>0}function Oo(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=pe.Hidden);var c=r.value.findIndex(function(d){var f=d.id;return f===i});c!==-1&&(se(l,(s={},s[pe.Unmount]=function(){r.value.splice(c,1)},s[pe.Hidden]=function(){r.value[c].state=q.Hidden},s)),!Xt(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!==q.Visible&&(l.state=q.Visible):r.value.push({id:i,state:q.Visible}),function(){return o(i,pe.Unmount)}}return{children:r,register:a,unregister:o}}var Po=ce.RenderStrategy,Pe=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(yt,H({},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:H({},i,a),slot:{},slots:this.$slots,attrs:this.$attrs,features:Po,visible:this.state===q.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Fl()&&xl())return{renderAsRoot:!0};var a=t.ref(null),i=t.ref(q.Visible),l=t.computed(function(){return r.unmount?pe.Unmount:pe.Hidden}),s=jl(),c=s.show,d=s.appear,f=Hl(),m=f.register,g=f.unregister,h={value:!0},b=ne(),y={value:!1},C=Oo(function(){y.value||(i.value=q.Hidden,g(b),o("afterLeave"))});t.onMounted(function(){var P=m(b);t.onUnmounted(P)}),t.watchEffect(function(){var P;if(l.value===pe.Hidden&&b){if(c&&i.value!==q.Visible){i.value=q.Visible;return}se(i.value,(P={},P[q.Hidden]=function(){return g(b)},P[q.Visible]=function(){return m(b)},P))}});var k=Ye(r.enter),v=Ye(r.enterFrom),N=Ye(r.enterTo),j=Ye(r.entered),L=Ye(r.leave),I=Ye(r.leaveFrom),T=Ye(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===q.Visible){var P=$(a),Y=P instanceof Comment&&P.data==="";if(Y)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function we(P){var Y=h.value&&!d.value,Q=$(a);!Q||!(Q instanceof HTMLElement)||Y||(y.value=!0,c.value&&o("beforeEnter"),c.value||o("beforeLeave"),P(c.value?Mo(Q,k,v,N,j,function(oe){y.value=!1,oe===Ie.Finished&&o("afterEnter")}):Mo(Q,L,I,T,j,function(oe){y.value=!1,oe===Ie.Finished&&(Xt(C)||(i.value=q.Hidden,g(b),o("afterLeave")))})))}return t.onMounted(function(){t.watch([c,d],function(P,Y,Q){we(Q),h.value=!1},{immediate:!0})}),t.provide(Jn,C),Yt(t.computed(function(){var P;return se(i.value,(P={},P[q.Visible]=ee.Open,P[q.Hidden]=ee.Closed,P))})),{el:a,renderAsRoot:!1,state:i}}}),yt=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:H({},i,{as:"template"}),slot:{},slots:H({},this.$slots,{default:function(){return[t.h(Pe,H({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:Po,visible:this.state===q.Visible,name:"Transition"})},setup:function(r){var e=tt(),o=t.computed(function(){if(r.show===null&&e!==null){var c;return se(e.value,(c={},c[ee.Open]=!0,c[ee.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?q.Visible:q.Hidden),i=Oo(function(){a.value=q.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=q.Visible:Xt(i)||(a.value=q.Hidden)})}),t.provide(Jn,i),t.provide(Gn,s),{state:a,show:o}}});function Ul(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 zl(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 Yl(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 Wl(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"})])}const Ao=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 Fe(n){return n.split("-")[1]}function Lo(n){return n==="y"?"height":"width"}function rt(n){return n.split("-")[0]}function Zt(n){return["top","bottom"].includes(rt(n))?"x":"y"}function Ro(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=Zt(r),c=Lo(s),d=o[c]/2-a[c]/2,f=s==="x";let m;switch(rt(r)){case"top":m={x:i,y:o.y-a.height};break;case"bottom":m={x:i,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:l};break;case"left":m={x:o.x-a.width,y:l};break;default:m={x:o.x,y:o.y}}switch(Fe(r)){case"start":m[s]-=d*(e&&f?-1:1);break;case"end":m[s]+=d*(e&&f?-1:1)}return m}const Kl=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:f,y:m}=Ro(d,o,c),g=o,h={},b=0;for(let y=0;y<s.length;y++){const{name:C,fn:k}=s[y],{x:v,y:N,data:j,reset:L}=await k({x:f,y:m,initialPlacement:o,placement:g,strategy:a,middlewareData:h,rects:d,platform:l,elements:{reference:n,floating:r}});f=v??f,m=N??m,h={...h,[C]:{...h[C],...j}},L&&b<=50&&(b++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(d=L.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):L.rects),{x:f,y:m}=Ro(d,g,c)),y=-1)}return{x:f,y:m,placement:g,strategy:a,middlewareData:h}};function Qt(n,r){return typeof n=="function"?n(r):n}function ql(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 en(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Io(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:f="viewport",elementContext:m="floating",altBoundary:g=!1,padding:h=0}=Qt(r,n),b=ql(h),y=s[g?m==="floating"?"reference":"floating":m],C=en(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:f,strategy:c})),k=m==="floating"?{...l.floating,x:o,y:a}:l.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),N=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},j=en(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:v,strategy:c}):k);return{top:(C.top-j.top+b.top)/N.y,bottom:(j.bottom-C.bottom+b.bottom)/N.y,left:(C.left-j.left+b.left)/N.x,right:(j.right-C.right+b.right)/N.x}}const Gl=Math.min,Jl=Math.max;function Fo(n,r,e){return Jl(n,Gl(r,e))}const Xl=["top","right","bottom","left"],jo=Xl.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),Zl={left:"right",right:"left",bottom:"top",top:"bottom"};function Ho(n){return n.replace(/left|right|bottom|top/g,r=>Zl[r])}function Ql(n,r,e){e===void 0&&(e=!1);const o=Fe(n),a=Zt(n),i=Lo(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Ho(l)),{main:l,cross:Ho(l)}}const es={start:"end",end:"start"};function ts(n){return n.replace(/start|end/g,r=>es[r])}const ns=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:f=!1,alignment:m,allowedPlacements:g=jo,autoAlignment:h=!0,...b}=Qt(n,r),y=m!==void 0||g===jo?function(Y,Q,oe){return(Y?[...oe.filter(fe=>Fe(fe)===Y),...oe.filter(fe=>Fe(fe)!==Y)]:oe.filter(fe=>rt(fe)===fe)).filter(fe=>!Y||Fe(fe)===Y||!!Q&&ts(fe)!==fe)}(m||null,h,g):g,C=await Io(r,b),k=((e=l.autoPlacement)==null?void 0:e.index)||0,v=y[k];if(v==null)return{};const{main:N,cross:j}=Ql(v,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==v)return{reset:{placement:y[0]}};const L=[C[rt(v)],C[N],C[j]],I=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:v,overflows:L}],T=y[k+1];if(T)return{data:{index:k+1,overflows:I},reset:{placement:T}};const we=I.map(Y=>{const Q=Fe(Y.placement);return[Y.placement,Q&&f?Y.overflows.slice(0,2).reduce((oe,fe)=>oe+fe,0):Y.overflows[0],Y.overflows]}).sort((Y,Q)=>Y[1]-Q[1]),P=((a=we.filter(Y=>Y[2].slice(0,Fe(Y[0])?2:3).every(Q=>Q<=0))[0])==null?void 0:a[0])||we[0][0];return P!==s?{data:{index:k+1,overflows:I},reset:{placement:P}}:{}}}},rs=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,f=await(c.isRTL==null?void 0:c.isRTL(d.floating)),m=rt(s),g=Fe(s),h=Zt(s)==="x",b=["left","top"].includes(m)?-1:1,y=f&&h?-1:1,C=Qt(l,i);let{mainAxis:k,crossAxis:v,alignmentAxis:N}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...C};return g&&typeof N=="number"&&(v=g==="end"?-1*N:N),h?{x:v*y,y:k*b}:{x:k*b,y:v*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function os(n){return n==="x"?"y":"x"}const as=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:C=>{let{x:k,y:v}=C;return{x:k,y:v}}},...c}=Qt(n,r),d={x:e,y:o},f=await Io(r,c),m=Zt(rt(a)),g=os(m);let h=d[m],b=d[g];if(i){const C=m==="y"?"bottom":"right";h=Fo(h+f[m==="y"?"top":"left"],h,h-f[C])}if(l){const C=g==="y"?"bottom":"right";b=Fo(b+f[g==="y"?"top":"left"],b,b-f[C])}const y=s.fn({...r,[m]:h,[g]: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 Ne(n){return Ce(n).getComputedStyle(n)}function Uo(n){return n instanceof Ce(n).Node}function je(n){return Uo(n)?(n.nodeName||"").toLowerCase():""}function Se(n){return n instanceof Ce(n).HTMLElement}function he(n){return n instanceof Ce(n).Element}function zo(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function wt(n){const{overflow:r,overflowX:e,overflowY:o,display:a}=Ne(n);return/auto|scroll|overlay|hidden|clip/.test(r+o+e)&&!["inline","contents"].includes(a)}function is(n){return["table","td","th"].includes(je(n))}function Xn(n){const r=Zn(),e=Ne(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 Zn(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tn(n){return["html","body","#document"].includes(je(n))}const Yo=Math.min,xt=Math.max,nn=Math.round;function Wo(n){const r=Ne(n);let e=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Se(n),i=a?n.offsetWidth:e,l=a?n.offsetHeight:o,s=nn(e)!==i||nn(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function Ko(n){return he(n)?n:n.contextElement}const qo={x:1,y:1};function ot(n){const r=Ko(n);if(!Se(r))return qo;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=Wo(r);let l=(i?nn(e.width):e.width)/o,s=(i?nn(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const Go={x:0,y:0};function Jo(n,r,e){var o,a;if(r===void 0&&(r=!0),!Zn())return Go;const i=n?Ce(n):window;return!e||r&&e!==i?Go:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function We(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=Ko(n);let l=qo;r&&(o?he(o)&&(l=ot(o)):l=ot(n));const s=Jo(i,e,o);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,f=a.width/l.x,m=a.height/l.y;if(i){const g=Ce(i),h=o&&he(o)?Ce(o):o;let b=g.frameElement;for(;b&&o&&h!==g;){const y=ot(b),C=b.getBoundingClientRect(),k=getComputedStyle(b);C.x+=(b.clientLeft+parseFloat(k.paddingLeft))*y.x,C.y+=(b.clientTop+parseFloat(k.paddingTop))*y.y,c*=y.x,d*=y.y,f*=y.x,m*=y.y,c+=C.x,d+=C.y,b=Ce(b).frameElement}}return en({width:f,height:m,x:c,y:d})}function He(n){return((Uo(n)?n.ownerDocument:n.document)||window.document).documentElement}function rn(n){return he(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Xo(n){return We(He(n)).left+rn(n).scrollLeft}function at(n){if(je(n)==="html")return n;const r=n.assignedSlot||n.parentNode||zo(n)&&n.host||He(n);return zo(r)?r.host:r}function Zo(n){const r=at(n);return tn(r)?r.ownerDocument.body:Se(r)&&wt(r)?r:Zo(r)}function Ct(n,r){var e;r===void 0&&(r=[]);const o=Zo(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],wt(o)?o:[]):r.concat(o,Ct(o))}function Qo(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=He(a),c=l.visualViewport;let d=s.clientWidth,f=s.clientHeight,m=0,g=0;if(c){d=c.width,f=c.height;const h=Zn();(!h||h&&i==="fixed")&&(m=c.offsetLeft,g=c.offsetTop)}return{width:d,height:f,x:m,y:g}}(n,e);else if(r==="document")o=function(a){const i=He(a),l=rn(a),s=a.ownerDocument.body,c=xt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=xt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let f=-l.scrollLeft+Xo(a);const m=-l.scrollTop;return Ne(s).direction==="rtl"&&(f+=xt(i.clientWidth,s.clientWidth)-c),{width:c,height:d,x:f,y:m}}(He(n));else if(he(r))o=function(a,i){const l=We(a,!0,i==="fixed"),s=l.top+a.clientTop,c=l.left+a.clientLeft,d=Se(a)?ot(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=Jo(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return en(o)}function ea(n,r){const e=at(n);return!(e===r||!he(e)||tn(e))&&(Ne(e).position==="fixed"||ea(e,r))}function ta(n,r){return Se(n)&&Ne(n).position!=="fixed"?r?r(n):n.offsetParent:null}function na(n,r){const e=Ce(n);if(!Se(n))return e;let o=ta(n,r);for(;o&&is(o)&&Ne(o).position==="static";)o=ta(o,r);return o&&(je(o)==="html"||je(o)==="body"&&Ne(o).position==="static"&&!Xn(o))?e:o||function(a){let i=at(a);for(;Se(i)&&!tn(i);){if(Xn(i))return i;i=at(i)}return null}(n)||e}function ls(n,r,e){const o=Se(r),a=He(r),i=e==="fixed",l=We(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if((je(r)!=="body"||wt(a))&&(s=rn(r)),Se(r)){const d=We(r,!0,i,r);c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}else a&&(c.x=Xo(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}const ss={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(d,f){const m=f.get(d);if(m)return m;let g=Ct(d).filter(C=>he(C)&&je(C)!=="body"),h=null;const b=Ne(d).position==="fixed";let y=b?at(d):d;for(;he(y)&&!tn(y);){const C=Ne(y),k=Xn(y);k||C.position!=="fixed"||(h=null),(b?!k&&!h:!k&&C.position==="static"&&h&&["absolute","fixed"].includes(h.position)||wt(y)&&!k&&ea(d,y))?g=g.filter(v=>v!==y):h=C,y=at(y)}return f.set(d,g),g}(r,this._c):[].concat(e),l=[...i,o],s=l[0],c=l.reduce((d,f)=>{const m=Qo(r,f,a);return d.top=xt(m.top,d.top),d.right=Yo(m.right,d.right),d.bottom=Yo(m.bottom,d.bottom),d.left=xt(m.left,d.left),d},Qo(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=Se(e),i=He(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")&&((je(e)!=="body"||wt(i))&&(l=rn(e)),Se(e))){const d=We(e);s=ot(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:he,getDimensions:function(n){return Wo(n)},getOffsetParent:na,getDocumentElement:He,getScale:ot,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||na,i=this.getDimensions;return{reference:ls(r,await a(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>Ne(n).direction==="rtl"};function ra(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?[...he(n)?Ct(n):n.contextElement?Ct(n.contextElement):[],...Ct(r)]:[];c.forEach(g=>{const h=!he(g)&&g.toString().includes("V");!a||s&&!h||g.addEventListener("scroll",e,{passive:!0}),i&&g.addEventListener("resize",e)});let d,f=null;l&&(f=new ResizeObserver(()=>{e()}),he(n)&&!s&&f.observe(n),he(n)||!n.contextElement||s||f.observe(n.contextElement),f.observe(r));let m=s?We(n):null;return s&&function g(){const h=We(n);!m||h.x===m.x&&h.y===m.y&&h.width===m.width&&h.height===m.height||e(),m=h,d=requestAnimationFrame(g)}(),e(),()=>{var g;c.forEach(h=>{a&&h.removeEventListener("scroll",e),i&&h.removeEventListener("resize",e)}),(g=f)==null||g.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const cs=(n,r,e)=>{const o=new Map,a={platform:ss,...e},i={...a.platform,_c:o};return Kl(n,r,{...a,platform:i})};function oa(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function aa(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ia(n,r){const e=aa(n);return Math.round(r*e)/e}function la(n,r,e){e===void 0&&(e={});const o=e.whileElementsMounted,a=t.computed(()=>{var T;return(T=t.unref(e.open))!=null?T:!0}),i=t.computed(()=>t.unref(e.middleware)),l=t.computed(()=>{var T;return(T=t.unref(e.placement))!=null?T:"bottom"}),s=t.computed(()=>{var T;return(T=t.unref(e.strategy))!=null?T:"absolute"}),c=t.computed(()=>{var T;return(T=t.unref(e.transform))!=null?T:!0}),d=t.computed(()=>oa(n.value)),f=t.computed(()=>oa(r.value)),m=t.ref(0),g=t.ref(0),h=t.ref(s.value),b=t.ref(l.value),y=t.shallowRef({}),C=t.ref(!1),k=t.computed(()=>{const T={position:h.value,left:"0",top:"0"};if(!f.value)return T;const we=ia(f.value,m.value),P=ia(f.value,g.value);return c.value?{...T,transform:"translate("+we+"px, "+P+"px)",...aa(f.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:we+"px",top:P+"px"}});let v;function N(){d.value==null||f.value==null||cs(d.value,f.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(T=>{m.value=T.x,g.value=T.y,h.value=T.strategy,b.value=T.placement,y.value=T.middlewareData,C.value=!0})}function j(){typeof v=="function"&&(v(),v=void 0)}function L(){if(j(),o===void 0){N();return}if(d.value!=null&&f.value!=null){v=o(d.value,f.value,N);return}}function I(){a.value||(C.value=!1)}return t.watch([i,l,s],N,{flush:"sync"}),t.watch([d,f],L,{flush:"sync"}),t.watch(a,I,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(j),{x:t.shallowReadonly(m),y:t.shallowReadonly(g),strategy:t.shallowReadonly(h),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(C),floatingStyles:k,update:N}}const ds=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),us={class:"py-1"},fs=["disabled","onClick"],ps={class:"relative inline-flex items-center gap-x-1.5"},on=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Ao(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=la(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:ra});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Hn),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(Un),{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(Yl),{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(zn),{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",us,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,f)=>(t.openBlock(),t.createBlock(t.unref(Yn),{key:f,as:"div"},{default:t.withCtx(({active:m})=>[t.createElementVNode("button",{type:"submit",disabled:d.disabled,class:t.normalizeClass([m?"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",ps,[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,fs)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),ms={class:"px-4 py-5 sm:p-6 text-center"},hs=["textContent"],gs=["textContent"],sa=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",ms,[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,hs),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,gs)])])]))),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"},ys=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ws={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"},xs={class:"mt-3 text-center sm:mt-5"},Cs={class:"mt-2"},Es={class:"mt-5 sm:mt-6"},ca=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(yt),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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(Pe),{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(qt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),ys,t.createVNode(t.unref(Pe),{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",ws,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",xs,[t.createVNode(t.unref(jn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",Cs,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",Es,[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"]))}}),Qn=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],it={_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},Et={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},de=(n,r=2)=>`000${n}`.slice(r*-1),Ee=n=>n===!0?1:0;function da(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const er=n=>n instanceof Array?n:[n];function le(n,r,e){if(e===!0)return n.classList.add(r);n.classList.remove(r)}function F(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 an(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function ua(n,r){if(r(n))return n;if(n.parentNode)return ua(n.parentNode,r)}function ln(n,r){const e=F("div","numInputWrapper"),o=F("input","numInput "+n),a=F("span","arrowUp"),i=F("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 ge(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const tr=()=>{},sn=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],ks={D:tr,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*Ee(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:tr,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:tr,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},nr={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})"},kt={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[kt.w(n,r,e)]},F:function(n,r,e){return sn(kt.n(n,r,e)-1,!1,r)},G:function(n,r,e){return de(kt.h(n,r,e))},H:n=>de(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[Ee(n.getHours()>11)],M:function(n,r){return sn(n.getMonth(),!0,r)},S:n=>de(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>de(n.getFullYear(),4),d:n=>de(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>de(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>de(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)},fa=({config:n=it,l10n:r=Et,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)=>kt[s]&&d[c-1]!=="\\"?kt[s](o,l,n):s!=="\\"?s:"").join("")},rr=({config:n=it,l10n:r=Et})=>(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||it).dateFormat,f=String(e).trim();if(f==="today")s=new Date,a=!0;else if(/Z$/.test(f)||/GMT$/.test(f))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 m,g=[];for(let h=0,b=0,y="";h<d.length;h++){const C=d[h],k=C==="\\",v=d[h-1]==="\\"||k;if(nr[C]&&!v){y+=nr[C];const N=new RegExp(y).exec(e);N&&(m=!0)&&g[C!=="Y"?"push":"unshift"]({fn:ks[C],val:N[++b]})}else k||(y+=".");g.forEach(({fn:N,val:j})=>s=N(s,j,l)||s)}s=m?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 be(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 _s=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),Ds={DAY:864e5};function or(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 vs=300;function Ns(n,r){const e={config:Object.assign(Object.assign({},it),Z.defaultConfig),l10n:Et};e.parseDate=rr({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=b,e._setHoursFromDate=m,e._positionCalendar=gn,e.changeMonth=ur,e.changeYear=mn,e.clear=Rf,e.close=If,e._createElement=F,e.destroy=Ff,e.isEnabled=qe,e.jumpToDate=k,e.open=zf,e.redraw=za,e.set=qf,e.setDate=Gf,e.toggle=Qf;function o(){e.utils={getDaysInMonth(u=e.currentMonth,p=e.currentYear){return u===1&&(p%4===0&&p%100!==0||p%400===0)?29:e.l10n.daysInMonth[u]}}}function a(){e.element=e.input=n,e.isOpen=!1,Yf(),Ua(),Xf(),Jf(),o(),e.isMobile||j(),C(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&m(e.config.noCalendar?e.latestSelectedDateObj:void 0),Ue(!1)),l();const u=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&u&&gn(),G("onReady")}function i(u){return u.bind(e)}function l(){const u=e.config;u.weekNumbers===!1&&u.showMonths===1||u.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 p=(e.days.offsetWidth+1)*u.showMonths;e.daysContainer.style.width=p+"px",e.calendarContainer.style.width=p+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function s(u){if(e.selectedDates.length===0){const w=e.config.minDate===void 0||be(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),x=or(e.config);w.setHours(x.hours,x.minutes,x.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}u!==void 0&&u.type!=="blur"&&np(u);const p=e._input.value;f(),Ue(),e._input.value!==p&&e._debouncedChange()}function c(u,p){return u%12+12*Ee(p===e.l10n.amPM[1])}function d(u){switch(u%24){case 0:case 12:return 12;default:return u%12}}function f(){if(e.hourElement===void 0||e.minuteElement===void 0)return;let u=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,p=(parseInt(e.minuteElement.value,10)||0)%60,w=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(u=c(u,e.amPM.textContent));const x=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&be(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&be(e.latestSelectedDateObj,e.config.maxDate,!0)===0){const _=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;u=Math.min(u,_.getHours()),u===_.getHours()&&(p=Math.min(p,_.getMinutes())),p===_.getMinutes()&&(w=Math.min(w,_.getSeconds()))}if(x){const _=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;u=Math.max(u,_.getHours()),u===_.getHours()&&p<_.getMinutes()&&(p=_.getMinutes()),p===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}g(u,p,w)}function m(u){const p=u||e.latestSelectedDateObj;p&&g(p.getHours(),p.getMinutes(),p.getSeconds())}function g(u,p,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(u%24,p,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=de(e.config.time_24hr?u:(12+u)%12+12*Ee(u%12===0)),e.minuteElement.value=de(p),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[Ee(u>=12)]),e.secondElement!==void 0&&(e.secondElement.value=de(w)))}function h(u){const p=ge(u),w=parseInt(p.value)+(u.delta||0);(w/1e3>1||u.key==="Enter"&&!/[^\d]/.test(w.toString()))&&mn(w)}function b(u,p,w,x){if(p instanceof Array)return p.forEach(D=>b(u,D,w,x));if(u instanceof Array)return u.forEach(D=>b(D,p,w,x));u.addEventListener(p,w,x),e._handlers.push({remove:()=>u.removeEventListener(p,w)})}function y(){G("onChange")}function C(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(p=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${p}]`),w=>b(w,"click",e[p]))}),e.isMobile){Zf();return}const u=da(Uf,50);if(e._debouncedChange=da(y,vs),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&b(e.daysContainer,"mouseover",p=>{e.config.mode==="range"&&pr(ge(p))}),b(window.document.body,"keydown",Hf),!e.config.inline&&!e.config.static&&b(window,"resize",u),window.ontouchstart!==void 0?b(window.document,"touchstart",fr):b(window.document,"mousedown",fr),b(window.document,"focus",fr,{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"],h),b(e.daysContainer,"click",Ya)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const p=w=>ge(w).select();b(e.timeContainer,["increment"],s),b(e.timeContainer,"blur",s,{capture:!0}),b(e.timeContainer,"click",v),b([e.hourElement,e.minuteElement],["focus","click"],p),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",jf)}function k(u,p){const w=u!==void 0?e.parseDate(u):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),x=e.currentYear,D=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}p&&e.currentYear!==x&&(G("onYearChange"),oe()),p&&(e.currentYear!==x||e.currentMonth!==D)&&G("onMonthChange"),e.redraw()}function v(u){const p=ge(u);~p.className.indexOf("arrow")&&N(u,p.classList.contains("arrowUp")?1:-1)}function N(u,p,w){const x=u&&ge(u),D=w||x&&x.parentNode&&x.parentNode.firstChild,_=hr("increment");_.delta=p,D&&D.dispatchEvent(_)}function j(){const u=window.document.createDocumentFragment();if(e.calendarContainer=F("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(u.appendChild(Pf()),e.innerContainer=F("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:x}=Lf();e.innerContainer.appendChild(w),e.weekNumbers=x,e.weekWrapper=w}e.rContainer=F("div","flatpickr-rContainer"),e.rContainer.appendChild(Ia()),e.daysContainer||(e.daysContainer=F("div","flatpickr-days"),e.daysContainer.tabIndex=-1),Q(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),u.appendChild(e.innerContainer)}e.config.enableTime&&u.appendChild(Af()),le(e.calendarContainer,"rangeMode",e.config.mode==="range"),le(e.calendarContainer,"animate",e.config.animate===!0),le(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(u);const p=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&&(!p&&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=F("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 L(u,p,w,x){const D=qe(p,!0),_=F("span","flatpickr-day "+u,p.getDate().toString());return _.dateObj=p,_.$i=x,_.setAttribute("aria-label",e.formatDate(p,e.config.ariaDateFormat)),u.indexOf("hidden")===-1&&be(p,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),D?(_.tabIndex=-1,gr(p)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(le(_,"startRange",e.selectedDates[0]&&be(p,e.selectedDates[0],!0)===0),le(_,"endRange",e.selectedDates[1]&&be(p,e.selectedDates[1],!0)===0),u==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&ep(p)&&!gr(p)&&_.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&u!=="prevMonthDay"&&w%7===1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(p)+"</span>"),G("onDayCreate",_),_}function I(u){u.focus(),e.config.mode==="range"&&pr(u)}function T(u){const p=u>0?0:e.config.showMonths-1,w=u>0?e.config.showMonths:-1;for(let x=p;x!=w;x+=u){const D=e.daysContainer.children[x],_=u>0?0:D.children.length-1,B=u>0?D.children.length:-1;for(let V=_;V!=B;V+=u){const O=D.children[V];if(O.className.indexOf("hidden")===-1&&qe(O.dateObj))return O}}}function we(u,p){const w=u.className.indexOf("Month")===-1?u.dateObj.getMonth():e.currentMonth,x=p>0?e.config.showMonths:-1,D=p>0?1:-1;for(let _=w-e.currentMonth;_!=x;_+=D){const B=e.daysContainer.children[_],V=w-e.currentMonth===_?u.$i+p:p<0?B.children.length-1:0,O=B.children.length;for(let A=V;A>=0&&A<O&&A!=(p>0?O:-1);A+=D){const W=B.children[A];if(W.className.indexOf("hidden")===-1&&qe(W.dateObj)&&Math.abs(u.$i-A)>=Math.abs(p))return I(W)}}e.changeMonth(D),P(T(D),0)}function P(u,p){const w=hn(document.activeElement||document.body),x=u!==void 0?u:w?document.activeElement:e.selectedDateElem!==void 0&&hn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&hn(e.todayDateElem)?e.todayDateElem:T(p>0?1:-1);x===void 0?e._input.focus():w?we(x,p):I(x)}function Y(u,p){const w=(new Date(u,p,1).getDay()-e.l10n.firstDayOfWeek+7)%7,x=e.utils.getDaysInMonth((p-1+12)%12,u),D=e.utils.getDaysInMonth(p,u),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,V=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let A=x+1-w,W=0;for(;A<=x;A++,W++)_.appendChild(L(V,new Date(u,p-1,A),A,W));for(A=1;A<=D;A++,W++)_.appendChild(L("",new Date(u,p,A),A,W));for(let ae=D+1;ae<=42-w&&(e.config.showMonths===1||W%7!==0);ae++,W++)_.appendChild(L(O,new Date(u,p+1,ae%D),ae,W));const ke=F("div","dayContainer");return ke.appendChild(_),ke}function Q(){if(e.daysContainer===void 0)return;an(e.daysContainer),e.weekNumbers&&an(e.weekNumbers);const u=document.createDocumentFragment();for(let p=0;p<e.config.showMonths;p++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+p),u.appendChild(Y(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(u),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&pr()}function oe(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const u=function(p){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&p<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&p>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let p=0;p<12;p++){if(!u(p))continue;const w=F("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,p).getMonth().toString(),w.textContent=sn(p,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===p&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function fe(){const u=F("div","flatpickr-month"),p=window.document.createDocumentFragment();let w;e.config.showMonths>1||e.config.monthSelectorType==="static"?w=F("span","cur-month"):(e.monthsDropdownContainer=F("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),b(e.monthsDropdownContainer,"change",B=>{const V=ge(B),O=parseInt(V.value,10);e.changeMonth(O-e.currentMonth),G("onMonthChange")}),oe(),w=e.monthsDropdownContainer);const x=ln("cur-year",{tabindex:"-1"}),D=x.getElementsByTagName("input")[0];D.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&D.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(D.setAttribute("max",e.config.maxDate.getFullYear().toString()),D.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=F("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(x),p.appendChild(_),u.appendChild(p),{container:u,yearElement:D,monthElement:w}}function Ra(){an(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let u=e.config.showMonths;u--;){const p=fe();e.yearElements.push(p.yearElement),e.monthElements.push(p.monthElement),e.monthNav.appendChild(p.container)}e.monthNav.appendChild(e.nextMonthNav)}function Pf(){return e.monthNav=F("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=F("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=F("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Ra(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(u){e.__hidePrevMonthArrow!==u&&(le(e.prevMonthNav,"flatpickr-disabled",u),e.__hidePrevMonthArrow=u)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(u){e.__hideNextMonthArrow!==u&&(le(e.nextMonthNav,"flatpickr-disabled",u),e.__hideNextMonthArrow=u)}}),e.currentYearElement=e.yearElements[0],yn(),e.monthNav}function Af(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const u=or(e.config);e.timeContainer=F("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const p=F("span","flatpickr-time-separator",":"),w=ln("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const x=ln("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=x.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=de(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?u.hours:d(u.hours)),e.minuteElement.value=de(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():u.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(p),e.timeContainer.appendChild(x),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const D=ln("flatpickr-second");e.secondElement=D.getElementsByTagName("input")[0],e.secondElement.value=de(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():u.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(F("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(D)}return e.config.time_24hr||(e.amPM=F("span","flatpickr-am-pm",e.l10n.amPM[Ee((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 Ia(){e.weekdayContainer?an(e.weekdayContainer):e.weekdayContainer=F("div","flatpickr-weekdays");for(let u=e.config.showMonths;u--;){const p=F("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(p)}return Fa(),e.weekdayContainer}function Fa(){if(!e.weekdayContainer)return;const u=e.l10n.firstDayOfWeek;let p=[...e.l10n.weekdays.shorthand];u>0&&u<p.length&&(p=[...p.splice(u,p.length),...p.splice(0,u)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
7
|
+
`));return t.cloneVNode(h,d)}return Array.isArray(c)&&c.length===1?c[0]:c}return t.h(s,d,c)}function fl(n,r){r===void 0&&(r=[]);for(var e=Object.assign({},n),o=Ve(r),a;!(a=o()).done;){var i=a.value;i in e&&delete e[i]}return e}function pl(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}var no=Symbol("StackContext"),Qe;(function(n){n[n.AddElement=0]="AddElement",n[n.RemoveElement=1]="RemoveElement"})(Qe||(Qe={}));function ro(){return t.inject(no,function(){})}function ml(n){var r=ro();t.watchEffect(function(e){var o=n==null?void 0:n.value;o&&(r(Qe.AddElement,o),e(function(){return r(Qe.RemoveElement,o)}))})}function oo(n){var r=ro();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(no,e)}var ao=Symbol("ForcePortalRootContext");function hl(){return t.inject(ao,!1)}var io=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(ao,r.force),function(){var i=De(r,["force"]);return K({props:i,slot:{},slots:o,attrs:a,name:"ForcePortalRoot"})}}});function lo(){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 Ln=t.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup:function(r,e){var o=e.slots,a=e.attrs,i=hl(),l=t.inject(so,null),s=t.ref(i===!0||l===null?lo():l.resolveTarget());t.watchEffect(function(){i||l!==null&&(s.value=l.resolveTarget())});var d=t.ref(null);return ml(d),t.onUnmounted(function(){var c=document.getElementById("headlessui-portal-root");if(c&&s.value===c&&s.value.children.length<=0){var u;(u=s.value.parentElement)==null||u.removeChild(s.value)}}),oo(),function(){if(s.value===null)return null;var c={ref:d};return t.h(t.Teleport,{to:s.value},K({props:z({},r,c),slot:{},attrs:a,slots:o,name:"Portal"}))}}}),so=Symbol("PortalGroupContext"),gl=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(so,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 bl=0;function yl(){return++bl}function re(){return yl()}function Be(n,r,e){typeof window>"u"||t.watchEffect(function(o){window.addEventListener(n,r,e),o(function(){window.removeEventListener(n,r,e)})})}function Fn(n,r){for(var e=Ve(n),o;!(o=e()).done;){var a=o.value;if(a.contains(r))return!0}return!1}var jn=["[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 Ut;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(Ut||(Ut={}));function zt(n){return n===void 0&&(n=document.body),n==null?[]:Array.from(n.querySelectorAll(jn))}var et;(function(n){n[n.Strict=0]="Strict",n[n.Loose=1]="Loose"})(et||(et={}));function wl(n,r){var e;return r===void 0&&(r=et.Strict),n===document.body?!1:ce(r,(e={},e[et.Strict]=function(){return n.matches(jn)},e[et.Loose]=function(){for(var o=n;o!==null;){if(o.matches(jn))return!0;o=o.parentElement}return!1},e))}function ht(n){n==null||n.focus({preventScroll:!0})}function Ne(n,r){var e=Array.isArray(n)?n:zt(n),o=document.activeElement,a=function(){if(r&(q.First|q.Next))return Ut.Next;if(r&(q.Previous|q.Last))return Ut.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,d=e.length,c=void 0;do{var u;if(s>=d||s+d<=0)return he.Error;var h=i+s;if(r&q.WrapAround)h=(h+d)%d;else{if(h<0)return he.Underflow;if(h>=d)return he.Overflow}c=e[h],(u=c)==null||u.focus(l),s+=a}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),he.Success}function xl(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,d=document.activeElement;if(s){if(s===d)return}else if(Fn(n.value,d))return;if(o.value=d,s)ht(s);else{for(var c=!1,u=Ve(n.value),h;!(h=u()).done;){var p=h.value,b=Ne(p,q.First);if(b===he.Success){c=!0;break}}c||console.warn("There are no focusable elements inside the <FocusTrap />")}a.value=document.activeElement}}function l(){ht(o.value),o.value=null,a.value=null}t.watchEffect(i),t.onUpdated(function(){r.value?i():l()}),t.onUnmounted(l),Be("keydown",function(s){if(r.value&&s.key===T.Tab&&document.activeElement&&n.value.size===1){s.preventDefault();for(var d=Ve(n.value),c;!(c=d()).done;){var u=c.value,h=Ne(u,(s.shiftKey?q.Previous:q.Next)|q.WrapAround);if(h===he.Success){a.value=document.activeElement;break}}}}),Be("focus",function(s){if(r.value&&n.value.size===1){var d=a.value;if(d){var c=s.target;c&&c instanceof HTMLElement?Fn(n.value,c)?(a.value=c,ht(c)):(s.preventDefault(),s.stopPropagation(),ht(d)):ht(a.value)}}},!0)}var co=process.env.NODE_ENV==="test"?'[data-v-app=""] > *':"body > *",tt=new Set,Le=new Map;function uo(n){n.setAttribute("aria-hidden","true"),n.inert=!0}function fo(n){var r=Le.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert)}function Cl(n,r){r===void 0&&(r=t.ref(!0)),t.watchEffect(function(e){if(r.value&&n.value){var o=n.value;tt.add(o);for(var a=Ve(Le.keys()),i;!(i=a()).done;){var l=i.value;l.contains(o)&&(fo(l),Le.delete(l))}document.querySelectorAll(co).forEach(function(s){if(s instanceof HTMLElement){for(var d=Ve(tt),c;!(c=d()).done;){var u=c.value;if(s.contains(u))return}tt.size===1&&(Le.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),uo(s))}}),e(function(){if(tt.delete(o),tt.size>0)document.querySelectorAll(co).forEach(function(u){if(u instanceof HTMLElement&&!Le.has(u)){for(var h=Ve(tt),p;!(p=h()).done;){var b=p.value;if(u.contains(b))return}Le.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),uo(u)}});else for(var s=Ve(Le.keys()),d;!(d=s()).done;){var c=d.value;fo(c),Le.delete(c)}})}})}var po=Symbol("DescriptionContext");function El(){var n=t.inject(po,null);if(n===null)throw new Error("Missing parent");return n}function qt(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,d=t.ref([]);function c(u){return d.value.push(u),function(){var h=d.value.indexOf(u);h!==-1&&d.value.splice(h,1)}}return t.provide(po,{register:c,slot:o,name:i,props:s}),t.computed(function(){return d.value.length>0?d.value.join(" "):void 0})}var mo=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,d=this.$props,c=z({},Object.entries(s).reduce(function(u,h){var p,b=h[0],m=h[1];return Object.assign(u,(p={},p[b]=t.unref(m),p))},{}),{id:this.id});return K({props:z({},d,c),slot:i.value,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=El(),e="headlessui-description-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}});function $(n){var r;return n==null||n.value==null?null:(r=n.value.$el)!=null?r:n.value}var ho=Symbol("Context"),te;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(te||(te={}));function kl(){return nt()!==null}function nt(){return t.inject(ho,null)}function Yt(n){t.provide(ho,n)}var le;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(le||(le={}));var go=Symbol("DialogContext");function gt(n){var r=t.inject(go,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Dialog /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gt),e}return r}var Wt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Kt=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:Wt},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(io,{force:!0},function(){return t.h(Ln,function(){return t.h(gl,{target:r.dialogRef},function(){return t.h(io,{force:!1},function(){return K({props:z({},a,e),slot:i,attrs:r.$attrs,slots:r.$slots,visible:r.visible,features:de.RenderStrategy|de.Static,name:"Dialog"})})})})})},setup:function(r,e){var o=e.emit,a=t.ref(new Set),i=nt(),l=t.computed(function(){if(r.open===Wt&&i!==null){var E;return ce(i.value,(E={},E[te.Open]=!0,E[te.Closed]=!1,E))}return r.open}),s=r.open!==Wt||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===Wt?void 0:r.open));var d=t.computed(function(){return r.open?le.Open:le.Closed}),c=t.computed(function(){return i!==null?i.value===te.Open:d.value===le.Open}),u=t.ref(null),h=t.ref(d.value===le.Open);t.onUpdated(function(){h.value=d.value===le.Open});var p="headlessui-dialog-"+re(),b=t.computed(function(){return{initialFocus:r.initialFocus}});xl(a,h,b),Cl(u,h),oo(function(E,D){var S;return ce(E,(S={},S[Qe.AddElement]=function(){a.value.add(D)},S[Qe.RemoveElement]=function(){a.value.delete(D)},S))});var m=qt({name:"DialogDescription",slot:t.computed(function(){return{open:l.value}})}),y=t.ref(null),x={titleId:y,dialogState:d,setTitleId:function(D){y.value!==D&&(y.value=D)},close:function(){o("close",!1)}};return t.provide(go,x),Be("mousedown",function(E){var D=E.target;d.value===le.Open&&a.value.size===1&&(Fn(a.value,D)||(x.close(),t.nextTick(function(){return D==null?void 0:D.focus()})))}),Be("keydown",function(E){E.key===T.Escape&&d.value===le.Open&&(a.value.size>1||(E.preventDefault(),E.stopPropagation(),x.close()))}),t.watchEffect(function(E){if(d.value===le.Open){var D=document.documentElement.style.overflow,S=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=H+"px",E(function(){document.documentElement.style.overflow=D,document.documentElement.style.paddingRight=S})}}),t.watchEffect(function(E){if(d.value===le.Open){var D=$(u);if(D){var S=new IntersectionObserver(function(H){for(var A=Ve(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()}});S.observe(D),E(function(){return S.disconnect()})}}}),{id:p,el:u,dialogRef:u,containers:a,dialogState:d,titleId:y,describedby:m,visible:c,open:l,handleClick:function(D){D.stopPropagation()}}}}),Gt=t.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"}},render:function(){var r=gt("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=gt("DialogOverlay"),e="headlessui-dialog-overlay-"+re();return{id:e,handleClick:function(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),r.close())}}}}),Hn=t.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"}},render:function(){var r=gt("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=gt("DialogTitle"),e="headlessui-dialog-title-"+re();return t.onMounted(function(){r.setTitleId(e),t.onUnmounted(function(){return r.setTitleId(null)})}),{id:e}}});function bo(n,r){if(n)return n;var e=r??"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Jt(n,r){var e=t.ref(bo(n.value.type,n.value.as));return t.onMounted(function(){e.value=bo(n.value.type,n.value.as)}),t.watchEffect(function(){var o;e.value||$(r)&&$(r)instanceof HTMLButtonElement&&!((o=$(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 yo=Symbol("DisclosureContext");function bt(n){var r=t.inject(yo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Disclosure /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,bt),e}return r}var wo=Symbol("DisclosurePanelContext");function _l(){return t.inject(wo,null)}var Dl=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),d=t.ref(null),c=t.ref(null),u={buttonId:i,panelId:l,disclosureState:s,panel:d,button:c,toggleDisclosure:function(){var p;s.value=ce(s.value,(p={},p[ne.Open]=ne.Closed,p[ne.Closed]=ne.Open,p))},closeDisclosure:function(){s.value!==ne.Closed&&(s.value=ne.Closed)},close:function(p){u.closeDisclosure();var b=function(){return p?p instanceof HTMLElement?p:p.value instanceof HTMLElement?$(p):$(u.button):$(u.button)}();b==null||b.focus()}};return t.provide(yo,u),Yt(t.computed(function(){var h;return ce(s.value,(h={},h[ne.Open]=te.Open,h[ne.Closed]=te.Closed,h))})),function(){var h=De(r,["defaultOpen"]),p={open:s.value===ne.Open,close:u.close};return K({props:h,slot:p,slots:o,attrs:a,name:"Disclosure"})}}}),Nl=t.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=bt("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":$(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=bt("DisclosureButton"),i=_l(),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:Jt(t.computed(function(){return{as:r.as,type:o.type}}),s),handleClick:function(){if(!r.disabled)if(l){var c;a.toggleDisclosure(),(c=$(a.button))==null||c.focus()}else a.toggleDisclosure()},handleKeyDown:function(c){var u;if(!r.disabled)if(l)switch(c.key){case T.Space:case T.Enter:c.preventDefault(),c.stopPropagation(),a.toggleDisclosure(),(u=$(a.button))==null||u.focus();break}else switch(c.key){case T.Space:case T.Enter:c.preventDefault(),c.stopPropagation(),a.toggleDisclosure();break}},handleKeyUp:function(c){switch(c.key){case T.Space:c.preventDefault();break}}}}}),Sl=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=bt("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:de.RenderStrategy|de.Static,visible:this.visible,name:"DisclosurePanel"})},setup:function(){var r=bt("DisclosurePanel");t.provide(wo,r.panelId);var e=nt(),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 vl(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 $l(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(d){return!r.resolveDisabled(d)});case Q.Previous:{var l=e.slice().reverse().findIndex(function(d,c,u){return a!==-1&&u.length-c-1>=a?!1:!r.resolveDisabled(d)});return l===-1?l:e.length-1-l}case Q.Next:return e.findIndex(function(d,c){return c<=a?!1:!r.resolveDisabled(d)});case Q.Last:{var s=e.slice().reverse().findIndex(function(d){return!r.resolveDisabled(d)});return s===-1?s:e.length-1-s}case Q.Specific:return e.findIndex(function(d){return r.resolveId(d)===n.id});case Q.Nothing:return null;default:vl(n)}}();return i===-1?o:i}function xo(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(d){return e(d)},{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 Vl(n){requestAnimationFrame(function(){return requestAnimationFrame(n)})}var Co=Symbol("MenuContext");function rt(n){var r=t.inject(Co,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,rt),e}return r}var Un=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),d=t.ref([]),c=t.ref(""),u=t.ref(null),h={menuState:i,buttonRef:l,itemsRef:s,items:d,searchQuery:c,activeItemIndex:u,closeMenu:function(){i.value=oe.Closed,u.value=null},openMenu:function(){return i.value=oe.Open},goToItem:function(b,m){var y=$l(b===Q.Specific?{focus:Q.Specific,id:m}:{focus:b},{resolveItems:function(){return d.value},resolveActiveIndex:function(){return u.value},resolveId:function(E){return E.id},resolveDisabled:function(E){return E.dataRef.disabled}});c.value===""&&u.value===y||(c.value="",u.value=y)},search:function(b){c.value+=b.toLowerCase();var m=d.value.findIndex(function(y){return y.dataRef.textValue.startsWith(c.value)&&!y.dataRef.disabled});m===-1||m===u.value||(u.value=m)},clearSearch:function(){c.value=""},registerItem:function(b,m){d.value.push({id:b,dataRef:m})},unregisterItem:function(b){var m=d.value.slice(),y=u.value!==null?m[u.value]:null,x=m.findIndex(function(E){return E.id===b});x!==-1&&m.splice(x,1),d.value=m,u.value=function(){return x===u.value||y===null?null:m.indexOf(y)}()}};return Be("mousedown",function(p){var b,m,y,x=p.target,E=document.activeElement;i.value===oe.Open&&((b=$(l))!=null&&b.contains(x)||((m=$(s))!=null&&m.contains(x)||h.closeMenu(),!(E!==document.body&&(E!=null&&E.contains(x)))&&(p.defaultPrevented||(y=$(l))==null||y.focus({preventScroll:!0}))))}),t.provide(Co,h),Yt(t.computed(function(){var p;return ce(i.value,(p={},p[oe.Open]=te.Open,p[oe.Closed]=te.Closed,p))})),function(){var p={open:i.value===oe.Open};return K({props:r,slot:p,slots:o,attrs:a,name:"Menu"})}}}),zn=t.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var r,e=rt("MenuButton"),o={open:e.menuState.value===oe.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(r=$(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=rt("MenuButton"),i="headlessui-menu-button-"+re();function l(c){switch(c.key){case T.Space:case T.Enter:case T.ArrowDown:c.preventDefault(),c.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=$(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.First)});break;case T.ArrowUp:c.preventDefault(),c.stopPropagation(),a.openMenu(),t.nextTick(function(){var u;(u=$(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(Q.Last)});break}}function s(c){switch(c.key){case T.Space:c.preventDefault();break}}function d(c){r.disabled||(a.menuState.value===oe.Open?(a.closeMenu(),t.nextTick(function(){var u;return(u=$(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(c.preventDefault(),c.stopPropagation(),a.openMenu(),Vl(function(){var u;return(u=$(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:Jt(t.computed(function(){return{as:r.as,type:o.type}}),a.buttonRef),handleKeyDown:l,handleKeyUp:s,handleClick:d}}}),qn=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=rt("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=$(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:de.RenderStrategy|de.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var r=rt("MenuItems"),e="headlessui-menu-items-"+re(),o=t.ref(null);xo({container:t.computed(function(){return $(r.itemsRef)}),enabled:t.computed(function(){return r.menuState.value===oe.Open}),accept:function(c){return c.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(c){c.setAttribute("role","none")}});function a(d){switch(o.value&&clearTimeout(o.value),d.key){case T.Space:if(r.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),r.search(d.key);case T.Enter:if(d.preventDefault(),d.stopPropagation(),r.activeItemIndex.value!==null){var c,u=r.items.value[r.activeItemIndex.value].id;(c=document.getElementById(u))==null||c.click()}r.closeMenu(),t.nextTick(function(){var h;return(h=$(r.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case T.ArrowDown:return d.preventDefault(),d.stopPropagation(),r.goToItem(Q.Next);case T.ArrowUp:return d.preventDefault(),d.stopPropagation(),r.goToItem(Q.Previous);case T.Home:case T.PageUp:return d.preventDefault(),d.stopPropagation(),r.goToItem(Q.First);case T.End:case T.PageDown:return d.preventDefault(),d.stopPropagation(),r.goToItem(Q.Last);case T.Escape:d.preventDefault(),d.stopPropagation(),r.closeMenu(),t.nextTick(function(){var h;return(h=$(r.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case T.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(r.search(d.key),o.value=setTimeout(function(){return r.clearSearch()},350));break}}function i(d){switch(d.key){case T.Space:d.preventDefault();break}}var l=nt(),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}}}),Yn=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=rt("MenuItem"),l="headlessui-menu-item-"+re(),s=t.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===l:!1}),d=t.ref({disabled:r.disabled,textValue:""});t.onMounted(function(){var b,m,y=(b=document.getElementById(l))==null||(m=b.textContent)==null?void 0:m.toLowerCase().trim();y!==void 0&&(d.value.textValue=y)}),t.onMounted(function(){return i.registerItem(l,d)}),t.onUnmounted(function(){return i.unregisterItem(l)}),t.watchEffect(function(){i.menuState.value===oe.Open&&s.value&&t.nextTick(function(){var b;return(b=document.getElementById(l))==null||b.scrollIntoView==null?void 0:b.scrollIntoView({block:"nearest"})})});function c(b){if(r.disabled)return b.preventDefault();i.closeMenu(),t.nextTick(function(){var m;return(m=$(i.buttonRef))==null?void 0:m.focus({preventScroll:!0})})}function u(){if(r.disabled)return i.goToItem(Q.Nothing);i.goToItem(Q.Specific,l)}function h(){r.disabled||s.value||i.goToItem(Q.Specific,l)}function p(){r.disabled||s.value&&i.goToItem(Q.Nothing)}return function(){var b=r.disabled,m={active:s.value,disabled:b},y={id:l,role:"menuitem",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,onClick:c,onFocus:u,onPointermove:h,onMousemove:h,onPointerleave:p,onMouseleave:p};return K({props:z({},r,y),slot:m,attrs:a,slots:o,name:"MenuItem"})}}}),Y;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(Y||(Y={}));var Eo=Symbol("PopoverContext");function yt(n){var r=t.inject(Eo,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <"+Do.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,yt),e}return r}var Bl=Symbol("PopoverGroupContext");function ko(){return t.inject(Bl,null)}var _o=Symbol("PopoverPanelContext");function Tl(){return t.inject(_o,null)}var Do=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),d=t.ref(null),c=t.ref(null),u={popoverState:s,buttonId:i,panelId:l,panel:c,button:d,togglePopover:function(){var x;s.value=ce(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 E=function(){return x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?$(x):$(u.button):$(u.button)}();E==null||E.focus()}};t.provide(Eo,u),Yt(t.computed(function(){var y;return ce(s.value,(y={},y[Y.Open]=te.Open,y[Y.Closed]=te.Closed,y))}));var h={buttonId:i,panelId:l,close:function(){u.closePopover()}},p=ko(),b=p==null?void 0:p.registerPopover;function m(){var y,x,E;return(y=p==null?void 0:p.isFocusWithinPopoverGroup())!=null?y:((x=$(d))==null?void 0:x.contains(document.activeElement))||((E=$(c))==null?void 0:E.contains(document.activeElement))}return t.watchEffect(function(){return b==null?void 0:b(h)}),Be("focus",function(){s.value===Y.Open&&(m()||d&&c&&u.closePopover())},!0),Be("mousedown",function(y){var x,E,D=y.target;if(s.value===Y.Open&&!((x=$(d))!=null&&x.contains(D))&&!((E=$(c))!=null&&E.contains(D))&&(u.closePopover(),!wl(D,et.Loose))){var S;y.preventDefault(),(S=$(d))==null||S.focus()}}),function(){var y={open:s.value===Y.Open,close:u.close};return K({props:r,slot:y,slots:o,attrs:a,name:"Popover"})}}}),Ml=t.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1}},render:function(){var r=yt("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":$(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=yt("PopoverButton"),i=ko(),l=i==null?void 0:i.closeOthers,s=Tl(),d=s===null?!1:s===a.panelId,c=t.ref(null),u=t.ref(typeof window>"u"?null:document.activeElement);Be("focus",function(){u.value=c.value,c.value=document.activeElement},!0);var h=t.ref(null);return d||t.watchEffect(function(){a.button.value=h.value}),{isWithinPanel:d,el:h,type:Jt(t.computed(function(){return{as:r.as,type:o.type}}),h),handleKeyDown:function(b){var m,y;if(d){if(a.popoverState.value===Y.Closed)return;switch(b.key){case T.Space:case T.Enter:b.preventDefault(),b.stopPropagation(),a.closePopover(),(m=$(a.button))==null||m.focus();break}}else switch(b.key){case T.Space:case T.Enter:b.preventDefault(),b.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(!$(a.button)||!((y=$(a.button))!=null&&y.contains(document.activeElement)))return;b.preventDefault(),b.stopPropagation(),a.closePopover();break;case T.Tab:if(a.popoverState.value!==Y.Open||!a.panel||!a.button)return;if(b.shiftKey){var x,E;if(!u.value||(x=$(a.button))!=null&&x.contains(u.value)||(E=$(a.panel))!=null&&E.contains(u.value))return;var D=zt(),S=D.indexOf(u.value),H=D.indexOf($(a.button));if(H>S)return;b.preventDefault(),b.stopPropagation(),Ne($(a.panel),q.Last)}else b.preventDefault(),b.stopPropagation(),Ne($(a.panel),q.First);break}},handleKeyUp:function(b){var m,y;if(!d&&(b.key===T.Space&&b.preventDefault(),a.popoverState.value===Y.Open&&a.panel&&a.button))switch(b.key){case T.Tab:if(!u.value||(m=$(a.button))!=null&&m.contains(u.value)||(y=$(a.panel))!=null&&y.contains(u.value))return;var x=zt(),E=x.indexOf(u.value),D=x.indexOf($(a.button));if(D>E)return;b.preventDefault(),b.stopPropagation(),Ne($(a.panel),q.Last);break}},handleClick:function(){if(!r.disabled)if(d){var b;a.closePopover(),(b=$(a.button))==null||b.focus()}else{var m;a.popoverState.value===Y.Closed&&(l==null||l(a.buttonId)),(m=$(a.button))==null||m.focus(),a.togglePopover()}}}}}),Ol=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=yt("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:de.RenderStrategy|de.Static,visible:this.visible,name:"PopoverPanel"})},setup:function(r){var e=r.focus,o=yt("PopoverPanel");t.provide(_o,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=$(o.panel))!=null&&l.contains(s)||Ne($(o.panel),q.First)}}),Be("keydown",function(l){var s;if(o.popoverState.value===Y.Open&&$(o.panel)&&l.key===T.Tab&&document.activeElement&&(s=$(o.panel))!=null&&s.contains(document.activeElement)){l.preventDefault();var d=Ne($(o.panel),l.shiftKey?q.Previous:q.Next);if(d===he.Underflow){var c;return(c=$(o.button))==null?void 0:c.focus()}else if(d===he.Overflow){if(!$(o.button))return;var u=zt(),h=u.indexOf($(o.button)),p=u.splice(h+1).filter(function(b){var m;return!((m=$(o.panel))!=null&&m.contains(b))});Ne(p,q.First)===he.Error&&Ne(document.body,q.First)}}}),Be("focus",function(){var l;e&&o.popoverState.value===Y.Open&&$(o.panel)&&((l=$(o.panel))!=null&&l.contains(document.activeElement)||o.closePopover())},!0);var a=nt(),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 d,c;switch(s.key){case T.Escape:if(o.popoverState.value!==Y.Open||!$(o.panel)||!((d=$(o.panel))!=null&&d.contains(document.activeElement)))return;s.preventDefault(),s.stopPropagation(),o.closePopover(),(c=$(o.button))==null||c.focus();break}},visible:i}}}),No=Symbol("LabelContext");function So(){var n=t.inject(No,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,So),r}return n}function Wn(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,d=t.ref([]);function c(u){return d.value.push(u),function(){var h=d.value.indexOf(u);h!==-1&&d.value.splice(h,1)}}return t.provide(No,{register:c,slot:o,name:i,props:s}),t.computed(function(){return d.value.length>0?d.value.join(" "):void 0})}var vo=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,d=this.$props,c=d.passive,u=De(d,["passive"]),h=z({},Object.entries(s).reduce(function(b,m){var y,x=m[0],E=m[1];return Object.assign(b,(y={},y[x]=t.unref(E),y))},{}),{id:this.id}),p=z({},u,h);return c&&delete p.onClick,K({props:p,slot:i,attrs:this.$attrs,slots:this.$slots,name:o})},setup:function(){var r=So(),e="headlessui-label-"+re();return t.onMounted(function(){return t.onUnmounted(r.register(e))}),{id:e,context:r}}}),$o=Symbol("RadioGroupContext");function Vo(n){var r=t.inject($o,null);if(r===null){var e=new Error("<"+n+" /> is missing a parent <RadioGroup /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vo),e}return r}var Pl=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=Wn({name:"RadioGroupLabel"}),s=qt({name:"RadioGroupDescription"}),d=t.computed(function(){return r.modelValue}),c={options:i,value:d,disabled:t.computed(function(){return r.disabled}),firstOption:t.computed(function(){return i.value.find(function(p){return!p.propsRef.disabled})}),containsCheckedOption:t.computed(function(){return i.value.some(function(p){return t.toRaw(p.propsRef.value)===t.toRaw(r.modelValue)})}),change:function(b){var m;if(r.disabled||d.value===b)return!1;var y=(m=i.value.find(function(x){return t.toRaw(x.propsRef.value)===t.toRaw(b)}))==null?void 0:m.propsRef;return y!=null&&y.disabled?!1:(o("update:modelValue",b),!0)},registerOption:function(b){var m,y=Array.from((m=a.value)==null?void 0:m.querySelectorAll('[id^="headlessui-radiogroup-option-"]')).reduce(function(x,E,D){var S;return Object.assign(x,(S={},S[E.id]=D,S))},{});i.value.push(b),i.value.sort(function(x,E){return y[x.id]-y[E.id]})},unregisterOption:function(b){var m=i.value.findIndex(function(y){return y.id===b});m!==-1&&i.value.splice(m,1)}};t.provide($o,c),xo({container:t.computed(function(){return $(a)}),accept:function(b){return b.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:b.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(b){b.setAttribute("role","none")}});function u(p){if(a.value&&a.value.contains(p.target)){var b=i.value.filter(function(S){return S.propsRef.disabled===!1}).map(function(S){return S.element});switch(p.key){case T.ArrowLeft:case T.ArrowUp:{p.preventDefault(),p.stopPropagation();var m=Ne(b,q.Previous|q.WrapAround);if(m===he.Success){var y=i.value.find(function(S){return S.element===document.activeElement});y&&c.change(y.propsRef.value)}}break;case T.ArrowRight:case T.ArrowDown:{p.preventDefault(),p.stopPropagation();var x=Ne(b,q.Next|q.WrapAround);if(x===he.Success){var E=i.value.find(function(S){return S.element===document.activeElement});E&&c.change(E.propsRef.value)}}break;case T.Space:{p.preventDefault(),p.stopPropagation();var D=i.value.find(function(S){return S.element===document.activeElement});D&&c.change(D.propsRef.value)}break}}}var h="headlessui-radiogroup-"+re();return{id:h,labelledby:l,describedby:s,el:a,handleKeyDown:u}}}),qe;(function(n){n[n.Empty=1]="Empty",n[n.Active=2]="Active"})(qe||(qe={}));var Al=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&qe.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=Vo("RadioGroupOption"),o="headlessui-radiogroup-option-"+re(),a=Wn({name:"RadioGroupLabel"}),i=qt({name:"RadioGroupDescription"}),l=t.ref(null),s=t.computed(function(){return{value:r.value,disabled:r.disabled}}),d=t.ref(qe.Empty);t.onMounted(function(){return e.registerOption({id:o,element:l,propsRef:s})}),t.onUnmounted(function(){return e.unregisterOption(o)});var c=t.computed(function(){var p;return((p=e.firstOption.value)==null?void 0:p.id)===o}),u=t.computed(function(){return e.disabled.value||r.disabled}),h=t.computed(function(){return t.toRaw(e.value.value)===t.toRaw(r.value)});return{id:o,el:l,labelledby:a,describedby:i,state:d,disabled:u,checked:h,tabIndex:t.computed(function(){return u.value?-1:h.value||!e.containsCheckedOption.value&&c.value?0:-1}),handleClick:function(){var b;e.change(r.value)&&(d.value|=qe.Active,(b=l.value)==null||b.focus())},handleFocus:function(){d.value|=qe.Active},handleBlur:function(){d.value&=~qe.Active}}}}),Bo=vo,Kn=mo,To=Symbol("GroupContext"),Il=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=Wn({name:"SwitchLabel",props:{onClick:function(){i.value&&(i.value.click(),i.value.focus({preventScroll:!0}))}}}),s=qt({name:"SwitchDescription"}),d={switchRef:i,labelledby:l,describedby:s};return t.provide(To,d),function(){return K({props:r,slot:{},slots:o,attrs:a,name:"SwitchGroup"})}}}),Rl=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(To,null),l="headlessui-switch-"+re();function s(){o("update:modelValue",!r.modelValue)}var d=t.ref(null),c=i===null?d:i.switchRef;return{id:l,el:c,type:Jt(t.computed(function(){return{as:r.as,type:a.type}}),c),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(h){h.preventDefault(),s()},handleKeyUp:function(h){h.key!==T.Tab&&h.preventDefault(),h.key===T.Space&&s()},handleKeyPress:function(h){h.preventDefault()}}}}),Ll=vo,Fl=mo;function jl(n){var r={called:!1};return function(){if(!r.called)return r.called=!0,n.apply(void 0,arguments)}}function Mo(){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=Ve(n.splice(0)),a;!(a=o()).done;){var i=a.value;i()}}};return r}function Gn(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 Xt(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 Fe;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Fe||(Fe={}));function Hl(n,r){var e=Mo();if(!n)return e.dispose;var o=getComputedStyle(n),a=o.transitionDuration,i=o.transitionDelay,l=[a,i].map(function(c){var u=c.split(",").filter(Boolean).map(function(b){return b.includes("ms")?parseFloat(b):parseFloat(b)*1e3}).sort(function(b,m){return m-b}),h=u[0],p=h===void 0?0:h;return p}),s=l[0],d=l[1];return s!==0?e.setTimeout(function(){return r(Fe.Finished)},s+d):r(Fe.Finished),e.add(function(){return r(Fe.Cancelled)}),e.dispose}function Oo(n,r,e,o,a,i){var l=Mo(),s=i!==void 0?jl(i):function(){};return Xt.apply(void 0,[n].concat(a)),Gn.apply(void 0,[n].concat(r,e)),l.nextFrame(function(){Xt.apply(void 0,[n].concat(e)),Gn.apply(void 0,[n].concat(o)),l.add(Hl(n,function(d){return Xt.apply(void 0,[n].concat(o,r)),Gn.apply(void 0,[n].concat(a)),s(d)}))}),l.add(function(){return Xt.apply(void 0,[n].concat(r,e,o,a))}),l.add(function(){return s(Fe.Cancelled)}),l.dispose}function Ye(n){return n===void 0&&(n=""),n.split(" ").filter(function(r){return r.trim().length>1})}var Jn=Symbol("TransitionContext"),G;(function(n){n.Visible="visible",n.Hidden="hidden"})(G||(G={}));function Ul(){return t.inject(Jn,null)!==null}function zl(){var n=t.inject(Jn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function ql(){var n=t.inject(Xn,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}var Xn=Symbol("NestingContext");function Zt(n){return"children"in n?Zt(n.children):n.value.filter(function(r){var e=r.state;return e===G.Visible}).length>0}function Po(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 d=r.value.findIndex(function(c){var u=c.id;return u===i});d!==-1&&(ce(l,(s={},s[me.Unmount]=function(){r.value.splice(d,1)},s[me.Hidden]=function(){r.value[d].state=G.Hidden},s)),!Zt(r)&&e.value&&(n==null||n()))}function a(i){var l=r.value.find(function(s){var d=s.id;return d===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 Ao=de.RenderStrategy,Oe=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(wt,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:Ao,visible:this.state===G.Visible,name:"TransitionChild"})},setup:function(r,e){var o=e.emit;if(!Ul()&&kl())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=zl(),d=s.show,c=s.appear,u=ql(),h=u.register,p=u.unregister,b={value:!0},m=re(),y={value:!1},x=Po(function(){y.value||(i.value=G.Hidden,p(m),o("afterLeave"))});t.onMounted(function(){var L=h(m);t.onUnmounted(L)}),t.watchEffect(function(){var L;if(l.value===me.Hidden&&m){if(d&&i.value!==G.Visible){i.value=G.Visible;return}ce(i.value,(L={},L[G.Hidden]=function(){return p(m)},L[G.Visible]=function(){return h(m)},L))}});var E=Ye(r.enter),D=Ye(r.enterFrom),S=Ye(r.enterTo),H=Ye(r.entered),A=Ye(r.leave),R=Ye(r.leaveFrom),M=Ye(r.leaveTo);t.onMounted(function(){t.watchEffect(function(){if(i.value===G.Visible){var L=$(a),F=L instanceof Comment&&L.data==="";if(F)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function U(L){var F=b.value&&!c.value,X=$(a);!X||!(X instanceof HTMLElement)||F||(y.value=!0,d.value&&o("beforeEnter"),d.value||o("beforeLeave"),L(d.value?Oo(X,E,D,S,H,function(ae){y.value=!1,ae===Fe.Finished&&o("afterEnter")}):Oo(X,A,R,M,H,function(ae){y.value=!1,ae===Fe.Finished&&(Zt(x)||(i.value=G.Hidden,p(m),o("afterLeave")))})))}return t.onMounted(function(){t.watch([d,c],function(L,F,X){U(X),b.value=!1},{immediate:!0})}),t.provide(Xn,x),Yt(t.computed(function(){var L;return ce(i.value,(L={},L[G.Visible]=te.Open,L[G.Hidden]=te.Closed,L))})),{el:a,renderAsRoot:!1,state:i}}}),wt=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(Oe,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:Ao,visible:this.state===G.Visible,name:"Transition"})},setup:function(r){var e=nt(),o=t.computed(function(){if(r.show===null&&e!==null){var d;return ce(e.value,(d={},d[te.Open]=!0,d[te.Closed]=!1,d))}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=Po(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:Zt(i)||(a.value=G.Hidden)})}),t.provide(Xn,i),t.provide(Jn,s),{state:a,show:o}}});function Yl(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 Wl(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 Kl(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 Gl(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"})])}const Io=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 je(n){return n.split("-")[1]}function Ro(n){return n==="y"?"height":"width"}function ot(n){return n.split("-")[0]}function Qt(n){return["top","bottom"].includes(ot(n))?"x":"y"}function Lo(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=Qt(r),d=Ro(s),c=o[d]/2-a[d]/2,u=s==="x";let h;switch(ot(r)){case"top":h={x:i,y:o.y-a.height};break;case"bottom":h={x:i,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:l};break;case"left":h={x:o.x-a.width,y:l};break;default:h={x:o.x,y:o.y}}switch(je(r)){case"start":h[s]-=c*(e&&u?-1:1);break;case"end":h[s]+=c*(e&&u?-1:1)}return h}const Jl=async(n,r,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=e,s=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(r));let c=await l.getElementRects({reference:n,floating:r,strategy:a}),{x:u,y:h}=Lo(c,o,d),p=o,b={},m=0;for(let y=0;y<s.length;y++){const{name:x,fn:E}=s[y],{x:D,y:S,data:H,reset:A}=await E({x:u,y:h,initialPlacement:o,placement:p,strategy:a,middlewareData:b,rects:c,platform:l,elements:{reference:n,floating:r}});u=D??u,h=S??h,b={...b,[x]:{...b[x],...H}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await l.getElementRects({reference:n,floating:r,strategy:a}):A.rects),{x:u,y:h}=Lo(c,p,d)),y=-1)}return{x:u,y:h,placement:p,strategy:a,middlewareData:b}};function en(n,r){return typeof n=="function"?n(r):n}function Xl(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 tn(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}async function Fo(n,r){var e;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:d}=n,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:b=0}=en(r,n),m=Xl(b),y=s[p?h==="floating"?"reference":"floating":h],x=tn(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:c,rootBoundary:u,strategy:d})),E=h==="floating"?{...l.floating,x:o,y:a}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(D))&&await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1},H=tn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:E,offsetParent:D,strategy:d}):E);return{top:(x.top-H.top+m.top)/S.y,bottom:(H.bottom-x.bottom+m.bottom)/S.y,left:(x.left-H.left+m.left)/S.x,right:(H.right-x.right+m.right)/S.x}}const Zl=Math.min,Ql=Math.max;function jo(n,r,e){return Ql(n,Zl(r,e))}const es=["top","right","bottom","left"],Ho=es.reduce((n,r)=>n.concat(r,r+"-start",r+"-end"),[]),ts={left:"right",right:"left",bottom:"top",top:"bottom"};function Uo(n){return n.replace(/left|right|bottom|top/g,r=>ts[r])}function ns(n,r,e){e===void 0&&(e=!1);const o=je(n),a=Qt(n),i=Ro(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Uo(l)),{main:l,cross:Uo(l)}}const rs={start:"end",end:"start"};function os(n){return n.replace(/start|end/g,r=>rs[r])}const as=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:d,elements:c}=r,{crossAxis:u=!1,alignment:h,allowedPlacements:p=Ho,autoAlignment:b=!0,...m}=en(n,r),y=h!==void 0||p===Ho?function(F,X,ae){return(F?[...ae.filter(pe=>je(pe)===F),...ae.filter(pe=>je(pe)!==F)]:ae.filter(pe=>ot(pe)===pe)).filter(pe=>!F||je(pe)===F||!!X&&os(pe)!==pe)}(h||null,b,p):p,x=await Fo(r,m),E=((e=l.autoPlacement)==null?void 0:e.index)||0,D=y[E];if(D==null)return{};const{main:S,cross:H}=ns(D,i,await(d.isRTL==null?void 0:d.isRTL(c.floating)));if(s!==D)return{reset:{placement:y[0]}};const A=[x[ot(D)],x[S],x[H]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:D,overflows:A}],M=y[E+1];if(M)return{data:{index:E+1,overflows:R},reset:{placement:M}};const U=R.map(F=>{const X=je(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]),L=((a=U.filter(F=>F[2].slice(0,je(F[0])?2:3).every(X=>X<=0))[0])==null?void 0:a[0])||U[0][0];return L!==s?{data:{index:E+1,overflows:R},reset:{placement:L}}:{}}}},is=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:d,elements:c}=i,u=await(d.isRTL==null?void 0:d.isRTL(c.floating)),h=ot(s),p=je(s),b=Qt(s)==="x",m=["left","top"].includes(h)?-1:1,y=u&&b?-1:1,x=en(l,i);let{mainAxis:E,crossAxis:D,alignmentAxis:S}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...x};return p&&typeof S=="number"&&(D=p==="end"?-1*S:S),b?{x:D*y,y:E*m}:{x:E*m,y:D*y}}(r,n);return{x:e+a.x,y:o+a.y,data:a}}}};function ls(n){return n==="x"?"y":"x"}const ss=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:E,y:D}=x;return{x:E,y:D}}},...d}=en(n,r),c={x:e,y:o},u=await Fo(r,d),h=Qt(ot(a)),p=ls(h);let b=c[h],m=c[p];if(i){const x=h==="y"?"bottom":"right";b=jo(b+u[h==="y"?"top":"left"],b,b-u[x])}if(l){const x=p==="y"?"bottom":"right";m=jo(m+u[p==="y"?"top":"left"],m,m-u[x])}const y=s.fn({...r,[h]:b,[p]:m});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 zo(n){return n instanceof Ce(n).Node}function He(n){return zo(n)?(n.nodeName||"").toLowerCase():""}function ve(n){return n instanceof Ce(n).HTMLElement}function ge(n){return n instanceof Ce(n).Element}function qo(n){return typeof ShadowRoot>"u"?!1:n instanceof Ce(n).ShadowRoot||n instanceof ShadowRoot}function xt(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(He(n))}function Zn(n){const r=Qn(),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 Qn(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nn(n){return["html","body","#document"].includes(He(n))}const Yo=Math.min,Ct=Math.max,rn=Math.round;function Wo(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=rn(e)!==i||rn(o)!==l;return s&&(e=i,o=l),{width:e,height:o,fallback:s}}function Ko(n){return ge(n)?n:n.contextElement}const Go={x:1,y:1};function at(n){const r=Ko(n);if(!ve(r))return Go;const e=r.getBoundingClientRect(),{width:o,height:a,fallback:i}=Wo(r);let l=(i?rn(e.width):e.width)/o,s=(i?rn(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const Jo={x:0,y:0};function Xo(n,r,e){var o,a;if(r===void 0&&(r=!0),!Qn())return Jo;const i=n?Ce(n):window;return!e||r&&e!==i?Jo:{x:((o=i.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function We(n,r,e,o){r===void 0&&(r=!1),e===void 0&&(e=!1);const a=n.getBoundingClientRect(),i=Ko(n);let l=Go;r&&(o?ge(o)&&(l=at(o)):l=at(n));const s=Xo(i,e,o);let d=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,u=a.width/l.x,h=a.height/l.y;if(i){const p=Ce(i),b=o&&ge(o)?Ce(o):o;let m=p.frameElement;for(;m&&o&&b!==p;){const y=at(m),x=m.getBoundingClientRect(),E=getComputedStyle(m);x.x+=(m.clientLeft+parseFloat(E.paddingLeft))*y.x,x.y+=(m.clientTop+parseFloat(E.paddingTop))*y.y,d*=y.x,c*=y.y,u*=y.x,h*=y.y,d+=x.x,c+=x.y,m=Ce(m).frameElement}}return tn({width:u,height:h,x:d,y:c})}function Ue(n){return((zo(n)?n.ownerDocument:n.document)||window.document).documentElement}function on(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Zo(n){return We(Ue(n)).left+on(n).scrollLeft}function it(n){if(He(n)==="html")return n;const r=n.assignedSlot||n.parentNode||qo(n)&&n.host||Ue(n);return qo(r)?r.host:r}function Qo(n){const r=it(n);return nn(r)?r.ownerDocument.body:ve(r)&&xt(r)?r:Qo(r)}function Et(n,r){var e;r===void 0&&(r=[]);const o=Qo(n),a=o===((e=n.ownerDocument)==null?void 0:e.body),i=Ce(o);return a?r.concat(i,i.visualViewport||[],xt(o)?o:[]):r.concat(o,Et(o))}function ea(n,r,e){let o;if(r==="viewport")o=function(a,i){const l=Ce(a),s=Ue(a),d=l.visualViewport;let c=s.clientWidth,u=s.clientHeight,h=0,p=0;if(d){c=d.width,u=d.height;const b=Qn();(!b||b&&i==="fixed")&&(h=d.offsetLeft,p=d.offsetTop)}return{width:c,height:u,x:h,y:p}}(n,e);else if(r==="document")o=function(a){const i=Ue(a),l=on(a),s=a.ownerDocument.body,d=Ct(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),c=Ct(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let u=-l.scrollLeft+Zo(a);const h=-l.scrollTop;return Se(s).direction==="rtl"&&(u+=Ct(i.clientWidth,s.clientWidth)-d),{width:d,height:c,x:u,y:h}}(Ue(n));else if(ge(r))o=function(a,i){const l=We(a,!0,i==="fixed"),s=l.top+a.clientTop,d=l.left+a.clientLeft,c=ve(a)?at(a):{x:1,y:1};return{width:a.clientWidth*c.x,height:a.clientHeight*c.y,x:d*c.x,y:s*c.y}}(r,e);else{const a=Xo(n);o={...r,x:r.x-a.x,y:r.y-a.y}}return tn(o)}function ta(n,r){const e=it(n);return!(e===r||!ge(e)||nn(e))&&(Se(e).position==="fixed"||ta(e,r))}function na(n,r){return ve(n)&&Se(n).position!=="fixed"?r?r(n):n.offsetParent:null}function ra(n,r){const e=Ce(n);if(!ve(n))return e;let o=na(n,r);for(;o&&cs(o)&&Se(o).position==="static";)o=na(o,r);return o&&(He(o)==="html"||He(o)==="body"&&Se(o).position==="static"&&!Zn(o))?e:o||function(a){let i=it(a);for(;ve(i)&&!nn(i);){if(Zn(i))return i;i=it(i)}return null}(n)||e}function ds(n,r,e){const o=ve(r),a=Ue(r),i=e==="fixed",l=We(n,!0,i,r);let s={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&!i)if((He(r)!=="body"||xt(a))&&(s=on(r)),ve(r)){const c=We(r,!0,i,r);d.x=c.x+r.clientLeft,d.y=c.y+r.clientTop}else a&&(d.x=Zo(a));return{x:l.left+s.scrollLeft-d.x,y:l.top+s.scrollTop-d.y,width:l.width,height:l.height}}const us={getClippingRect:function(n){let{element:r,boundary:e,rootBoundary:o,strategy:a}=n;const i=e==="clippingAncestors"?function(c,u){const h=u.get(c);if(h)return h;let p=Et(c).filter(x=>ge(x)&&He(x)!=="body"),b=null;const m=Se(c).position==="fixed";let y=m?it(c):c;for(;ge(y)&&!nn(y);){const x=Se(y),E=Zn(y);E||x.position!=="fixed"||(b=null),(m?!E&&!b:!E&&x.position==="static"&&b&&["absolute","fixed"].includes(b.position)||xt(y)&&!E&&ta(c,y))?p=p.filter(D=>D!==y):b=x,y=it(y)}return u.set(c,p),p}(r,this._c):[].concat(e),l=[...i,o],s=l[0],d=l.reduce((c,u)=>{const h=ea(r,u,a);return c.top=Ct(h.top,c.top),c.right=Yo(h.right,c.right),c.bottom=Yo(h.bottom,c.bottom),c.left=Ct(h.left,c.left),c},ea(r,s,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:r,offsetParent:e,strategy:o}=n;const a=ve(e),i=Ue(e);if(e===i)return r;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const d={x:0,y:0};if((a||!a&&o!=="fixed")&&((He(e)!=="body"||xt(i))&&(l=on(e)),ve(e))){const c=We(e);s=at(e),d.x=c.x+e.clientLeft,d.y=c.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-l.scrollLeft*s.x+d.x,y:r.y*s.y-l.scrollTop*s.y+d.y}},isElement:ge,getDimensions:function(n){return Wo(n)},getOffsetParent:ra,getDocumentElement:Ue,getScale:at,async getElementRects(n){let{reference:r,floating:e,strategy:o}=n;const a=this.getOffsetParent||ra,i=this.getDimensions;return{reference:ds(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 oa(n,r,e,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=o,d=a||i?[...ge(n)?Et(n):n.contextElement?Et(n.contextElement):[],...Et(r)]:[];d.forEach(p=>{const b=!ge(p)&&p.toString().includes("V");!a||s&&!b||p.addEventListener("scroll",e,{passive:!0}),i&&p.addEventListener("resize",e)});let c,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 h=s?We(n):null;return s&&function p(){const b=We(n);!h||b.x===h.x&&b.y===h.y&&b.width===h.width&&b.height===h.height||e(),h=b,c=requestAnimationFrame(p)}(),e(),()=>{var p;d.forEach(b=>{a&&b.removeEventListener("scroll",e),i&&b.removeEventListener("resize",e)}),(p=u)==null||p.disconnect(),u=null,s&&cancelAnimationFrame(c)}}const fs=(n,r,e)=>{const o=new Map,a={platform:us,...e},i={...a.platform,_c:o};return Jl(n,r,{...a,platform:i})};function aa(n){var r;return(r=n==null?void 0:n.$el)!=null?r:n}function ia(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function la(n,r){const e=ia(n);return Math.round(r*e)/e}function sa(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"}),d=t.computed(()=>{var M;return(M=t.unref(e.transform))!=null?M:!0}),c=t.computed(()=>aa(n.value)),u=t.computed(()=>aa(r.value)),h=t.ref(0),p=t.ref(0),b=t.ref(s.value),m=t.ref(l.value),y=t.shallowRef({}),x=t.ref(!1),E=t.computed(()=>{const M={position:b.value,left:"0",top:"0"};if(!u.value)return M;const U=la(u.value,h.value),L=la(u.value,p.value);return d.value?{...M,transform:"translate("+U+"px, "+L+"px)",...ia(u.value)>=1.5&&{willChange:"transform"}}:{position:b.value,left:U+"px",top:L+"px"}});let D;function S(){c.value==null||u.value==null||fs(c.value,u.value,{middleware:i.value,placement:l.value,strategy:s.value}).then(M=>{h.value=M.x,p.value=M.y,b.value=M.strategy,m.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){S();return}if(c.value!=null&&u.value!=null){D=o(c.value,u.value,S);return}}function R(){a.value||(x.value=!1)}return t.watch([i,l,s],S,{flush:"sync"}),t.watch([c,u],A,{flush:"sync"}),t.watch(a,R,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(H),{x:t.shallowReadonly(h),y:t.shallowReadonly(p),strategy:t.shallowReadonly(b),placement:t.shallowReadonly(m),middlewareData:t.shallowReadonly(y),isPositioned:t.shallowReadonly(x),floatingStyles:E,update:S}}const ps=t.createElementVNode("span",{class:"sr-only"},"Open options",-1),ms={class:"py-1"},hs=["disabled","onClick"],gs={class:"relative inline-flex items-center gap-x-1.5"},an=t.defineComponent({__name:"ActionsDropdown",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Io(t.toRef(r,"actions")),a=t.ref(null),i=t.ref(null),{floatingStyles:l}=sa(a,i,{placement:"bottom-end",strategy:"fixed",whileElementsMounted:oa});return(s,d)=>(t.openBlock(),t.createBlock(t.unref(Un),{as:"div",class:"relative flex justify-end items-center"},{default:t.withCtx(()=>[t.createVNode(t.unref(zn),{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(()=>[ps,t.createVNode(t.unref(Kl),{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(qn),{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",ms,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,u)=>(t.openBlock(),t.createBlock(t.unref(Yn),{key:u,as:"div"},{default:t.withCtx(({active:h})=>[t.createElementVNode("button",{type:"submit",disabled:c.disabled,class:t.normalizeClass([h?"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:c.onClick},[t.createElementVNode("span",gs,[c.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.icon),{key:0,class:"-ml-0.5 h-4 w-4 text-gray-400","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(c.label),1)])],10,hs)]),_:2},1024))),128))])]),_:1})],4)]),_:1})]),_:1}))}}),bs={class:"px-4 py-5 sm:p-6 text-center"},ys=["textContent"],ws=["textContent"],ca=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",bs,[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,ys),t.createElementVNode("dt",{class:"text-sm leading-5 font-medium text-gray-700 truncate",textContent:t.toDisplayString(o.secondary)},null,8,ws)])])]))),128))],2))}}),xs={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Cs=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),Es={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"},ks={class:"mt-3 text-center sm:mt-5"},_s={class:"mt-2"},Ds={class:"mt-5 sm:mt-6"},da=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(wt),{as:"template",show:o.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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",xs,[t.createVNode(t.unref(Oe),{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(Gt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Cs,t.createVNode(t.unref(Oe),{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",Es,[t.createElementVNode("div",null,[t.renderSlot(o.$slots,"icon"),t.createElementVNode("div",ks,[t.createVNode(t.unref(Hn),{as:"h3"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createElementVNode("div",_s,[t.renderSlot(o.$slots,"default")])])]),t.createElementVNode("div",Ds,[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"]))}}),er=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],lt={_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},kt={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},ue=(n,r=2)=>`000${n}`.slice(r*-1),Ee=n=>n===!0?1:0;function ua(n,r){let e;return function(){clearTimeout(e),e=setTimeout(()=>n.apply(this,arguments),r)}}const tr=n=>n instanceof Array?n:[n];function se(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 ln(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function fa(n,r){if(r(n))return n;if(n.parentNode)return fa(n.parentNode,r)}function sn(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 be(n){try{return typeof n.composedPath=="function"?n.composedPath()[0]:n.target}catch{return n.target}}const nr=()=>{},cn=(n,r,e)=>e.months[r?"shorthand":"longhand"][n],Ns={D:nr,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*Ee(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:nr,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:nr,y:(n,r)=>{n.setFullYear(2e3+parseFloat(r))}},rr={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})"},_t={Z:n=>n.toISOString(),D:function(n,r,e){return r.weekdays.shorthand[_t.w(n,r,e)]},F:function(n,r,e){return cn(_t.n(n,r,e)-1,!1,r)},G:function(n,r,e){return ue(_t.h(n,r,e))},H:n=>ue(n.getHours()),J:function(n,r){return r.ordinal!==void 0?n.getDate()+r.ordinal(n.getDate()):n.getDate()},K:(n,r)=>r.amPM[Ee(n.getHours()>11)],M:function(n,r){return cn(n.getMonth(),!0,r)},S:n=>ue(n.getSeconds()),U:n=>n.getTime()/1e3,W:function(n,r,e){return e.getWeek(n)},Y:n=>ue(n.getFullYear(),4),d:n=>ue(n.getDate()),h:n=>n.getHours()%12?n.getHours()%12:12,i:n=>ue(n.getMinutes()),j:n=>n.getDate(),l:function(n,r){return r.weekdays.longhand[n.getDay()]},m:n=>ue(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)},pa=({config:n=lt,l10n:r=kt,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,d,c)=>_t[s]&&c[d-1]!=="\\"?_t[s](o,l,n):s!=="\\"?s:"").join("")},or=({config:n=lt,l10n:r=kt})=>(e,o,a,i)=>{if(e!==0&&!e)return;const l=i||r;let s;const d=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 c=o||(n||lt).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,c);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 h,p=[];for(let b=0,m=0,y="";b<c.length;b++){const x=c[b],E=x==="\\",D=c[b-1]==="\\"||E;if(rr[x]&&!D){y+=rr[x];const S=new RegExp(y).exec(e);S&&(h=!0)&&p[x!=="Y"?"push":"unshift"]({fn:Ns[x],val:S[++m]})}else E||(y+=".");p.forEach(({fn:S,val:H})=>s=S(s,H,l)||s)}s=h?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){n.errorHandler(new Error(`Invalid date provided: ${d}`));return}return a===!0&&s.setHours(0,0,0,0),s};function ye(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 Ss=(n,r,e)=>n>Math.min(r,e)&&n<Math.max(r,e),vs={DAY:864e5};function ar(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 $s=300;function Vs(n,r){const e={config:Object.assign(Object.assign({},lt),ee.defaultConfig),l10n:kt};e.parseDate=or({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=m,e._setHoursFromDate=h,e._positionCalendar=bn,e.changeMonth=fr,e.changeYear=hn,e.clear=cp,e.close=dp,e._createElement=j,e.destroy=up,e.isEnabled=Ge,e.jumpToDate=E,e.open=hp,e.redraw=Wa,e.set=wp,e.setDate=xp,e.toggle=_p;function o(){e.utils={getDaysInMonth(f=e.currentMonth,g=e.currentYear){return f===1&&(g%4===0&&g%100!==0||g%400===0)?29:e.l10n.daysInMonth[f]}}}function a(){e.element=e.input=n,e.isOpen=!1,gp(),Ya(),Ep(),Cp(),o(),e.isMobile||H(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&h(e.config.noCalendar?e.latestSelectedDateObj:void 0),ze(!1)),l();const f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&f&&bn(),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 g=(e.days.offsetWidth+1)*f.showMonths;e.daysContainer.style.width=g+"px",e.calendarContainer.style.width=g+(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||ye(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),C=ar(e.config);w.setHours(C.hours,C.minutes,C.seconds,w.getMilliseconds()),e.selectedDates=[w],e.latestSelectedDateObj=w}f!==void 0&&f.type!=="blur"&&Sp(f);const g=e._input.value;u(),ze(),e._input.value!==g&&e._debouncedChange()}function d(f,g){return f%12+12*Ee(g===e.l10n.amPM[1])}function c(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,g=(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=d(f,e.amPM.textContent));const C=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&ye(e.latestSelectedDateObj,e.config.minDate,!0)===0;if(e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&ye(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()&&(g=Math.min(g,_.getMinutes())),g===_.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()&&g<_.getMinutes()&&(g=_.getMinutes()),g===_.getMinutes()&&(w=Math.max(w,_.getSeconds()))}p(f,g,w)}function h(f){const g=f||e.latestSelectedDateObj;g&&p(g.getHours(),g.getMinutes(),g.getSeconds())}function p(f,g,w){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(f%24,g,w||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=ue(e.config.time_24hr?f:(12+f)%12+12*Ee(f%12===0)),e.minuteElement.value=ue(g),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[Ee(f>=12)]),e.secondElement!==void 0&&(e.secondElement.value=ue(w)))}function b(f){const g=be(f),w=parseInt(g.value)+(f.delta||0);(w/1e3>1||f.key==="Enter"&&!/[^\d]/.test(w.toString()))&&hn(w)}function m(f,g,w,C){if(g instanceof Array)return g.forEach(N=>m(f,N,w,C));if(f instanceof Array)return f.forEach(N=>m(N,g,w,C));f.addEventListener(g,w,C),e._handlers.push({remove:()=>f.removeEventListener(g,w)})}function y(){J("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(g=>{Array.prototype.forEach.call(e.element.querySelectorAll(`[data-${g}]`),w=>m(w,"click",e[g]))}),e.isMobile){kp();return}const f=ua(mp,50);if(e._debouncedChange=ua(y,$s),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&m(e.daysContainer,"mouseover",g=>{e.config.mode==="range"&&mr(be(g))}),m(window.document.body,"keydown",pp),!e.config.inline&&!e.config.static&&m(window,"resize",f),window.ontouchstart!==void 0?m(window.document,"touchstart",pr):m(window.document,"mousedown",pr),m(window.document,"focus",pr,{capture:!0}),e.config.clickOpens===!0&&(m(e._input,"focus",e.open),m(e._input,"click",e.open)),e.daysContainer!==void 0&&(m(e.monthNav,"click",Np),m(e.monthNav,["keyup","increment"],b),m(e.daysContainer,"click",Ka)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){const g=w=>be(w).select();m(e.timeContainer,["increment"],s),m(e.timeContainer,"blur",s,{capture:!0}),m(e.timeContainer,"click",D),m([e.hourElement,e.minuteElement],["focus","click"],g),e.secondElement!==void 0&&m(e.secondElement,"focus",()=>e.secondElement&&e.secondElement.select()),e.amPM!==void 0&&m(e.amPM,"click",w=>{s(w),y()})}e.config.allowInput&&m(e._input,"blur",fp)}function E(f,g){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,N=e.currentMonth;try{w!==void 0&&(e.currentYear=w.getFullYear(),e.currentMonth=w.getMonth())}catch(_){_.message="Invalid date supplied: "+w,e.config.errorHandler(_)}g&&e.currentYear!==C&&(J("onYearChange"),ae()),g&&(e.currentYear!==C||e.currentMonth!==N)&&J("onMonthChange"),e.redraw()}function D(f){const g=be(f);~g.className.indexOf("arrow")&&S(f,g.classList.contains("arrowUp")?1:-1)}function S(f,g,w){const C=f&&be(f),N=w||C&&C.parentNode&&C.parentNode.firstChild,_=gr("increment");_.delta=g,N&&N.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(ip()),e.innerContainer=j("div","flatpickr-innerContainer"),e.config.weekNumbers){const{weekWrapper:w,weekNumbers:C}=sp();e.innerContainer.appendChild(w),e.weekNumbers=C,e.weekWrapper=w}e.rContainer=j("div","flatpickr-rContainer"),e.rContainer.appendChild(Ha()),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(lp()),se(e.calendarContainer,"rangeMode",e.config.mode==="range"),se(e.calendarContainer,"animate",e.config.animate===!0),se(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(f);const g=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&&(!g&&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,g,w,C){const N=Ge(g,!0),_=j("span","flatpickr-day "+f,g.getDate().toString());return _.dateObj=g,_.$i=C,_.setAttribute("aria-label",e.formatDate(g,e.config.ariaDateFormat)),f.indexOf("hidden")===-1&&ye(g,e.now)===0&&(e.todayDateElem=_,_.classList.add("today"),_.setAttribute("aria-current","date")),N?(_.tabIndex=-1,br(g)&&(_.classList.add("selected"),e.selectedDateElem=_,e.config.mode==="range"&&(se(_,"startRange",e.selectedDates[0]&&ye(g,e.selectedDates[0],!0)===0),se(_,"endRange",e.selectedDates[1]&&ye(g,e.selectedDates[1],!0)===0),f==="nextMonthDay"&&_.classList.add("inRange")))):_.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Dp(g)&&!br(g)&&_.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(g)+"</span>"),J("onDayCreate",_),_}function R(f){f.focus(),e.config.mode==="range"&&mr(f)}function M(f){const g=f>0?0:e.config.showMonths-1,w=f>0?e.config.showMonths:-1;for(let C=g;C!=w;C+=f){const N=e.daysContainer.children[C],_=f>0?0:N.children.length-1,B=f>0?N.children.length:-1;for(let V=_;V!=B;V+=f){const O=N.children[V];if(O.className.indexOf("hidden")===-1&&Ge(O.dateObj))return O}}}function U(f,g){const w=f.className.indexOf("Month")===-1?f.dateObj.getMonth():e.currentMonth,C=g>0?e.config.showMonths:-1,N=g>0?1:-1;for(let _=w-e.currentMonth;_!=C;_+=N){const B=e.daysContainer.children[_],V=w-e.currentMonth===_?f.$i+g:g<0?B.children.length-1:0,O=B.children.length;for(let P=V;P>=0&&P<O&&P!=(g>0?O:-1);P+=N){const W=B.children[P];if(W.className.indexOf("hidden")===-1&&Ge(W.dateObj)&&Math.abs(f.$i-P)>=Math.abs(g))return R(W)}}e.changeMonth(N),L(M(N),0)}function L(f,g){const w=gn(document.activeElement||document.body),C=f!==void 0?f:w?document.activeElement:e.selectedDateElem!==void 0&&gn(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&gn(e.todayDateElem)?e.todayDateElem:M(g>0?1:-1);C===void 0?e._input.focus():w?U(C,g):R(C)}function F(f,g){const w=(new Date(f,g,1).getDay()-e.l10n.firstDayOfWeek+7)%7,C=e.utils.getDaysInMonth((g-1+12)%12,f),N=e.utils.getDaysInMonth(g,f),_=window.document.createDocumentFragment(),B=e.config.showMonths>1,V=B?"prevMonthDay hidden":"prevMonthDay",O=B?"nextMonthDay hidden":"nextMonthDay";let P=C+1-w,W=0;for(;P<=C;P++,W++)_.appendChild(A(V,new Date(f,g-1,P),P,W));for(P=1;P<=N;P++,W++)_.appendChild(A("",new Date(f,g,P),P,W));for(let ie=N+1;ie<=42-w&&(e.config.showMonths===1||W%7!==0);ie++,W++)_.appendChild(A(O,new Date(f,g+1,ie%N),ie,W));const ke=j("div","dayContainer");return ke.appendChild(_),ke}function X(){if(e.daysContainer===void 0)return;ln(e.daysContainer),e.weekNumbers&&ln(e.weekNumbers);const f=document.createDocumentFragment();for(let g=0;g<e.config.showMonths;g++){const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+g),f.appendChild(F(w.getFullYear(),w.getMonth()))}e.daysContainer.appendChild(f),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&mr()}function ae(){if(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")return;const f=function(g){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&g<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&g>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(let g=0;g<12;g++){if(!f(g))continue;const w=j("option","flatpickr-monthDropdown-month");w.value=new Date(e.currentYear,g).getMonth().toString(),w.textContent=cn(g,e.config.shorthandCurrentMonth,e.l10n),w.tabIndex=-1,e.currentMonth===g&&(w.selected=!0),e.monthsDropdownContainer.appendChild(w)}}function pe(){const f=j("div","flatpickr-month"),g=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),m(e.monthsDropdownContainer,"change",B=>{const V=be(B),O=parseInt(V.value,10);e.changeMonth(O-e.currentMonth),J("onMonthChange")}),ae(),w=e.monthsDropdownContainer);const C=sn("cur-year",{tabindex:"-1"}),N=C.getElementsByTagName("input")[0];N.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&N.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(N.setAttribute("max",e.config.maxDate.getFullYear().toString()),N.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());const _=j("div","flatpickr-current-month");return _.appendChild(w),_.appendChild(C),g.appendChild(_),f.appendChild(g),{container:f,yearElement:N,monthElement:w}}function ja(){ln(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(let f=e.config.showMonths;f--;){const g=pe();e.yearElements.push(g.yearElement),e.monthElements.push(g.monthElement),e.monthNav.appendChild(g.container)}e.monthNav.appendChild(e.nextMonthNav)}function ip(){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,ja(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:()=>e.__hidePrevMonthArrow,set(f){e.__hidePrevMonthArrow!==f&&(se(e.prevMonthNav,"flatpickr-disabled",f),e.__hidePrevMonthArrow=f)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:()=>e.__hideNextMonthArrow,set(f){e.__hideNextMonthArrow!==f&&(se(e.nextMonthNav,"flatpickr-disabled",f),e.__hideNextMonthArrow=f)}}),e.currentYearElement=e.yearElements[0],wn(),e.monthNav}function lp(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");const f=ar(e.config);e.timeContainer=j("div","flatpickr-time"),e.timeContainer.tabIndex=-1;const g=j("span","flatpickr-time-separator",":"),w=sn("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=w.getElementsByTagName("input")[0];const C=sn("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=C.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=ue(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?f.hours:c(f.hours)),e.minuteElement.value=ue(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(g),e.timeContainer.appendChild(C),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");const N=sn("flatpickr-second");e.secondElement=N.getElementsByTagName("input")[0],e.secondElement.value=ue(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(N)}return e.config.time_24hr||(e.amPM=j("span","flatpickr-am-pm",e.l10n.amPM[Ee((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 Ha(){e.weekdayContainer?ln(e.weekdayContainer):e.weekdayContainer=j("div","flatpickr-weekdays");for(let f=e.config.showMonths;f--;){const g=j("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(g)}return Ua(),e.weekdayContainer}function Ua(){if(!e.weekdayContainer)return;const f=e.l10n.firstDayOfWeek;let g=[...e.l10n.weekdays.shorthand];f>0&&f<g.length&&(g=[...g.splice(f,g.length),...g.splice(0,f)]);for(let w=e.config.showMonths;w--;)e.weekdayContainer.children[w].innerHTML=`
|
|
8
8
|
<span class='flatpickr-weekday'>
|
|
9
|
-
${
|
|
9
|
+
${g.join("</span><span class='flatpickr-weekday'>")}
|
|
10
10
|
</span>
|
|
11
|
-
`}function Lf(){e.calendarContainer.classList.add("hasWeeks");const u=F("div","flatpickr-weekwrapper");u.appendChild(F("span","flatpickr-weekday",e.l10n.weekAbbreviation));const p=F("div","flatpickr-weeks");return u.appendChild(p),{weekWrapper:u,weekNumbers:p}}function ur(u,p=!0){const w=p?u:u-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,G("onYearChange"),oe()),Q(),G("onMonthChange"),yn())}function Rf(u=!0,p=!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,p===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:w,minutes:x,seconds:D}=or(e.config);g(w,x,D)}e.redraw(),u&&G("onChange")}function If(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),G("onClose")}function Ff(){e.config!==void 0&&G("onDestroy");for(let u=e._handlers.length;u--;)e._handlers[u].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 u=e.calendarContainer.parentNode;if(u.lastChild&&u.removeChild(u.lastChild),u.parentNode){for(;u.firstChild;)u.parentNode.insertBefore(u.firstChild,u);u.parentNode.removeChild(u)}}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(u=>{try{delete e[u]}catch{}})}function ct(u){return e.config.appendTo&&e.config.appendTo.contains(u)?!0:e.calendarContainer.contains(u)}function fr(u){if(e.isOpen&&!e.config.inline){const p=ge(u),w=ct(p),x=p===e.input||p===e.altInput||e.element.contains(p)||u.path&&u.path.indexOf&&(~u.path.indexOf(e.input)||~u.path.indexOf(e.altInput)),D=u.type==="blur"?x&&u.relatedTarget&&!ct(u.relatedTarget):!x&&!w&&!ct(u.relatedTarget),_=!e.config.ignoredFocusElements.some(B=>B.contains(p));D&&_&&(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 mn(u){if(!u||e.config.minDate&&u<e.config.minDate.getFullYear()||e.config.maxDate&&u>e.config.maxDate.getFullYear())return;const p=u,w=e.currentYear!==p;e.currentYear=p||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(),G("onYearChange"),oe())}function qe(u,p=!0){var w;const x=e.parseDate(u,void 0,p);if(e.config.minDate&&x&&be(x,e.config.minDate,p!==void 0?p:!e.minDateHasTime)<0||e.config.maxDate&&x&&be(x,e.config.maxDate,p!==void 0?p:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(x===void 0)return!1;const D=!!e.config.enable,_=(w=e.config.enable)!==null&&w!==void 0?w:e.config.disable;for(let B=0,V;B<_.length;B++){if(V=_[B],typeof V=="function"&&V(x))return D;if(V instanceof Date&&x!==void 0&&V.getTime()===x.getTime())return D;if(typeof V=="string"){const O=e.parseDate(V,void 0,!0);return O&&O.getTime()===x.getTime()?D:!D}else if(typeof V=="object"&&x!==void 0&&V.from&&V.to&&x.getTime()>=V.from.getTime()&&x.getTime()<=V.to.getTime())return D}return!D}function hn(u){return e.daysContainer!==void 0?u.className.indexOf("hidden")===-1&&u.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(u):!1}function jf(u){u.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(u.relatedTarget&&ct(u.relatedTarget))&&e.setDate(e._input.value,!0,u.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Hf(u){const p=ge(u),w=e.config.wrap?n.contains(p):p===e._input,x=e.config.allowInput,D=e.isOpen&&(!x||!w),_=e.config.inline&&w&&!x;if(u.keyCode===13&&w){if(x)return e.setDate(e._input.value,!0,p===e.altInput?e.config.altFormat:e.config.dateFormat),p.blur();e.open()}else if(ct(p)||D||_){const B=!!e.timeContainer&&e.timeContainer.contains(p);switch(u.keyCode){case 13:B?(u.preventDefault(),s(),mr()):Ya(u);break;case 27:u.preventDefault(),mr();break;case 8:case 46:w&&!e.config.allowInput&&(u.preventDefault(),e.clear());break;case 37:case 39:if(!B&&!w){if(u.preventDefault(),e.daysContainer!==void 0&&(x===!1||document.activeElement&&hn(document.activeElement))){const O=u.keyCode===39?1:-1;u.ctrlKey?(u.stopPropagation(),ur(O),P(T(1),0)):P(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:u.preventDefault();const V=u.keyCode===40?1:-1;e.daysContainer&&p.$i!==void 0||p===e.input||p===e.altInput?u.ctrlKey?(u.stopPropagation(),mn(e.currentYear-V),P(T(1),0)):B||P(void 0,V*7):p===e.currentYearElement?mn(e.currentYear-V):e.config.enableTime&&(!B&&e.hourElement&&e.hourElement.focus(),s(u),e._debouncedChange());break;case 9:if(B){const O=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(W=>W),A=O.indexOf(p);if(A!==-1){const W=O[A+(u.shiftKey?-1:1)];u.preventDefault(),(W||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(p)&&u.shiftKey&&(u.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&p===e.amPM)switch(u.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],f(),Ue();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],f(),Ue();break}(w||ct(p))&&G("onKeyDown",u)}function pr(u){if(e.selectedDates.length!==1||u&&(!u.classList.contains("flatpickr-day")||u.classList.contains("flatpickr-disabled")))return;const p=u?u.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),w=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),x=Math.min(p,e.selectedDates[0].getTime()),D=Math.max(p,e.selectedDates[0].getTime());let _=!1,B=0,V=0;for(let O=x;O<D;O+=Ds.DAY)qe(new Date(O),!0)||(_=_||O>x&&O<D,O<w&&(!B||O>B)?B=O:O>w&&(!V||O<V)&&(V=O));for(let O=0;O<e.config.showMonths;O++){const A=e.daysContainer.children[O];for(let W=0,ke=A.children.length;W<ke;W++){const ae=A.children[W],Me=ae.dateObj.getTime(),vt=B>0&&Me<B||V>0&&Me>V;if(vt){ae.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Nt=>{ae.classList.remove(Nt)});continue}else if(_&&!vt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Nt=>{ae.classList.remove(Nt)}),u!==void 0&&(u.classList.add(p<=e.selectedDates[0].getTime()?"startRange":"endRange"),w<p&&Me===w?ae.classList.add("startRange"):w>p&&Me===w&&ae.classList.add("endRange"),Me>=B&&(V===0||Me<=V)&&_s(Me,w,p)&&ae.classList.add("inRange"))}}}function Uf(){e.isOpen&&!e.config.static&&!e.config.inline&&gn()}function zf(u,p=e._positionElement){if(e.isMobile===!0){if(u){u.preventDefault();const x=ge(u);x&&x.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),G("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"),G("onOpen"),gn(p)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(u===void 0||!e.timeContainer.contains(u.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function ja(u){return p=>{const w=e.config[`_${u}Date`]=e.parseDate(p,e.config.dateFormat),x=e.config[`_${u==="min"?"max":"min"}Date`];w!==void 0&&(e[u==="min"?"minDateHasTime":"maxDateHasTime"]=w.getHours()>0||w.getMinutes()>0||w.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(D=>qe(D)),!e.selectedDates.length&&u==="min"&&m(w),Ue()),e.daysContainer&&(za(),w!==void 0?e.currentYearElement[u]=w.getFullYear().toString():e.currentYearElement.removeAttribute(u),e.currentYearElement.disabled=!!x&&w!==void 0&&x.getFullYear()===w.getFullYear())}}function Yf(){const u=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],p=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),w={};e.config.parseDate=p.parseDate,e.config.formatDate=p.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:_=>{e.config._enable=Ka(_)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:_=>{e.config._disable=Ka(_)}});const x=p.mode==="time";if(!p.dateFormat&&(p.enableTime||x)){const _=Z.defaultConfig.dateFormat||it.dateFormat;w.dateFormat=p.noCalendar||x?"H:i"+(p.enableSeconds?":S":""):_+" H:i"+(p.enableSeconds?":S":"")}if(p.altInput&&(p.enableTime||x)&&!p.altFormat){const _=Z.defaultConfig.altFormat||it.altFormat;w.altFormat=p.noCalendar||x?"h:i"+(p.enableSeconds?":S K":" K"):_+` h:i${p.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:ja("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:ja("max")});const D=_=>B=>{e.config[_==="min"?"_minTime":"_maxTime"]=e.parseDate(B,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:D("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:D("max")}),p.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,w,p);for(let _=0;_<u.length;_++)e.config[u[_]]=e.config[u[_]]===!0||e.config[u[_]]==="true";Qn.filter(_=>e.config[_]!==void 0).forEach(_=>{e.config[_]=er(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 V in B)Qn.indexOf(V)>-1?e.config[V]=er(B[V]).map(i).concat(e.config[V]):typeof p[V]>"u"&&(e.config[V]=B[V])}p.altInputClass||(e.config.altInputClass=Ha().className+" "+e.config.altInputClass),G("onParseConfig")}function Ha(){return e.config.wrap?n.querySelector("[data-input]"):n}function Ua(){typeof e.config.locale!="object"&&typeof Z.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},Z.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Z.l10ns[e.config.locale]:void 0),nr.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&&Z.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=fa(e),e.parseDate=rr({config:e.config,l10n:e.l10n})}function gn(u){if(typeof e.config.position=="function")return void e.config.position(e,u);if(e.calendarContainer===void 0)return;G("onPreCalendarPosition");const p=u||e._positionElement,w=Array.prototype.reduce.call(e.calendarContainer.children,(St,br)=>St+br.offsetHeight,0),x=e.calendarContainer.offsetWidth,D=e.config.position.split(" "),_=D[0],B=D.length>1?D[1]:null,V=p.getBoundingClientRect(),O=window.innerHeight-V.bottom,A=_==="above"||_!=="below"&&O<w&&V.top>w,W=window.pageYOffset+V.top+(A?-w-2:p.offsetHeight+2);if(le(e.calendarContainer,"arrowTop",!A),le(e.calendarContainer,"arrowBottom",A),e.config.inline)return;let ke=window.pageXOffset+V.left,ae=!1,wn=!1;B==="center"?(ke-=(x-V.width)/2,ae=!0):B==="right"&&(ke-=x-V.width,wn=!0),le(e.calendarContainer,"arrowLeft",!ae&&!wn),le(e.calendarContainer,"arrowCenter",ae),le(e.calendarContainer,"arrowRight",wn);const Me=window.document.body.offsetWidth-(window.pageXOffset+V.right),vt=ke+x>window.document.body.offsetWidth,Nt=Me+x>window.document.body.offsetWidth;if(le(e.calendarContainer,"rightMost",vt),!e.config.static)if(e.calendarContainer.style.top=`${W}px`,!vt)e.calendarContainer.style.left=`${ke}px`,e.calendarContainer.style.right="auto";else if(!Nt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Me}px`;else{const St=Wf();if(St===void 0)return;const br=window.document.body.offsetWidth,rp=Math.max(0,br/2-x/2),op=".flatpickr-calendar.centerMost:before",ap=".flatpickr-calendar.centerMost:after",ip=St.cssRules.length,lp=`{left:${V.left}px;right:auto;}`;le(e.calendarContainer,"rightMost",!1),le(e.calendarContainer,"centerMost",!0),St.insertRule(`${op},${ap}${lp}`,ip),e.calendarContainer.style.left=`${rp}px`,e.calendarContainer.style.right="auto"}}function Wf(){let u=null;for(let p=0;p<document.styleSheets.length;p++){const w=document.styleSheets[p];try{w.cssRules}catch{continue}u=w;break}return u??Kf()}function Kf(){const u=document.createElement("style");return document.head.appendChild(u),u.sheet}function za(){e.config.noCalendar||e.isMobile||(oe(),yn(),Q())}function mr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Ya(u){u.preventDefault(),u.stopPropagation();const p=B=>B.classList&&B.classList.contains("flatpickr-day")&&!B.classList.contains("flatpickr-disabled")&&!B.classList.contains("notAllowed"),w=ua(ge(u),p);if(w===void 0)return;const x=w,D=e.latestSelectedDateObj=new Date(x.dateObj.getTime()),_=(D.getMonth()<e.currentMonth||D.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=x,e.config.mode==="single")e.selectedDates=[D];else if(e.config.mode==="multiple"){const B=gr(D);B?e.selectedDates.splice(parseInt(B),1):e.selectedDates.push(D)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=D,e.selectedDates.push(D),be(D,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((B,V)=>B.getTime()-V.getTime()));if(f(),_){const B=e.currentYear!==D.getFullYear();e.currentYear=D.getFullYear(),e.currentMonth=D.getMonth(),B&&(G("onYearChange"),oe()),G("onMonthChange")}if(yn(),Q(),Ue(),!_&&e.config.mode!=="range"&&e.config.showMonths===1?I(x):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,V=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(B||V)&&mr()}y()}const bn={locale:[Ua,Fa],showMonths:[Ra,l,Ia],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 qf(u,p){if(u!==null&&typeof u=="object"){Object.assign(e.config,u);for(const w in u)bn[w]!==void 0&&bn[w].forEach(x=>x())}else e.config[u]=p,bn[u]!==void 0?bn[u].forEach(w=>w()):Qn.indexOf(u)>-1&&(e.config[u]=er(p));e.redraw(),Ue(!0)}function Wa(u,p){let w=[];if(u instanceof Array)w=u.map(x=>e.parseDate(x,p));else if(u instanceof Date||typeof u=="number")w=[e.parseDate(u,p)];else if(typeof u=="string")switch(e.config.mode){case"single":case"time":w=[e.parseDate(u,p)];break;case"multiple":w=u.split(e.config.conjunction).map(x=>e.parseDate(x,p));break;case"range":w=u.split(e.l10n.rangeSeparator).map(x=>e.parseDate(x,p));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(u)}`));e.selectedDates=e.config.allowInvalidPreload?w:w.filter(x=>x instanceof Date&&qe(x,!1)),e.config.mode==="range"&&e.selectedDates.sort((x,D)=>x.getTime()-D.getTime())}function Gf(u,p=!1,w=e.config.dateFormat){if(u!==0&&!u||u instanceof Array&&u.length===0)return e.clear(p);Wa(u,w),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),k(void 0,p),m(),e.selectedDates.length===0&&e.clear(!1),Ue(p),p&&G("onChange")}function Ka(u){return u.slice().map(p=>typeof p=="string"||typeof p=="number"||p instanceof Date?e.parseDate(p,void 0,!0):p&&typeof p=="object"&&p.from&&p.to?{from:e.parseDate(p.from,void 0),to:e.parseDate(p.to,void 0)}:p).filter(p=>p)}function Jf(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const u=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);u&&Wa(u,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 Xf(){if(e.input=Ha(),!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=F(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 Zf(){const u=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=F("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=u,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=u==="datetime-local"?"Y-m-d\\TH:i:S":u==="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",p=>{e.setDate(ge(p).value,!1,e.mobileFormatStr),G("onChange"),G("onClose")})}function Qf(u){if(e.isOpen===!0)return e.close();e.open(u)}function G(u,p){if(e.config===void 0)return;const w=e.config[u];if(w!==void 0&&w.length>0)for(let x=0;w[x]&&x<w.length;x++)w[x](e.selectedDates,e.input.value,e,p);u==="onChange"&&(e.input.dispatchEvent(hr("change")),e.input.dispatchEvent(hr("input")))}function hr(u){const p=document.createEvent("Event");return p.initEvent(u,!0,!0),p}function gr(u){for(let p=0;p<e.selectedDates.length;p++)if(be(e.selectedDates[p],u)===0)return""+p;return!1}function ep(u){return e.config.mode!=="range"||e.selectedDates.length<2?!1:be(u,e.selectedDates[0])>=0&&be(u,e.selectedDates[1])<=0}function yn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((u,p)=>{const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+p),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[p].textContent=sn(w.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=w.getMonth().toString(),u.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 qa(u){return e.selectedDates.map(p=>e.formatDate(p,u)).filter((p,w,x)=>e.config.mode!=="range"||e.config.enableTime||x.indexOf(p)===w).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Ue(u=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=qa(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=qa(e.config.altFormat)),u!==!1&&G("onValueUpdate")}function tp(u){const p=ge(u),w=e.prevMonthNav.contains(p),x=e.nextMonthNav.contains(p);w||x?ur(w?-1:1):e.yearElements.indexOf(p)>=0?p.select():p.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):p.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function np(u){u.preventDefault();const p=u.type==="keydown",w=ge(u),x=w;e.amPM!==void 0&&w===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Ee(e.amPM.textContent===e.l10n.amPM[0])]);const D=parseFloat(x.getAttribute("min")),_=parseFloat(x.getAttribute("max")),B=parseFloat(x.getAttribute("step")),V=parseInt(x.value,10),O=u.delta||(p?u.which===38?1:-1:0);let A=V+B*O;if(typeof x.value<"u"&&x.value.length===2){const W=x===e.hourElement,ke=x===e.minuteElement;A<D?(A=_+A+Ee(!W)+(Ee(W)&&Ee(!e.amPM)),ke&&N(void 0,-1,e.hourElement)):A>_&&(A=x===e.hourElement?A-_-Ee(!e.amPM):D,ke&&N(void 0,1,e.hourElement)),e.amPM&&W&&(B===1?A+V===23:Math.abs(A-V)>B)&&(e.amPM.textContent=e.l10n.amPM[Ee(e.amPM.textContent===e.l10n.amPM[0])]),x.value=de(A)}}return a(),e}function lt(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=Ns(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 lt(this,n)},HTMLElement.prototype.flatpickr=function(n){return lt([this],n)});var Z=function(n,r){return typeof n=="string"?lt(window.document.querySelectorAll(n),r):n instanceof Node?lt([n],r):lt(n,r)};Z.defaultConfig={},Z.l10ns={en:Object.assign({},Et),default:Object.assign({},Et)},Z.localize=n=>{Z.l10ns.default=Object.assign(Object.assign({},Z.l10ns.default),n)},Z.setDefaults=n=>{Z.defaultConfig=Object.assign(Object.assign({},Z.defaultConfig),n)},Z.parseDate=rr({}),Z.formatDate=fa({}),Z.compareDates=be,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return lt(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=Z);const pp="",ye=t.defineComponent({__name:"InputLabel",props:{label:{default:""},tag:{default:"label"}},setup(n){return(r,e)=>r.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"block text-sm/6 font-medium text-gray-800"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.label),1)]),_:1},16)):t.createCommentVNode("",!0)}}),ue=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-6 font-normal text-gray-600"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ss=(n=8)=>{let r="";for(let e=0;e<n;e++)r+=pa.charAt(Math.floor(Math.random()*pa.length));return r},Be=()=>{const n=t.useAttrs(),r=t.computed(()=>n.id||Ss()),e=t.computed(()=>n.invalid===void 0),o=t.computed(()=>n.disabled!==void 0),a=t.computed(()=>n.required!==void 0),i=t.computed(()=>typeof n.name=="string"&&n.name!==""?n.name:r.value);return{attrs:n,inputID:r,isDisabled:o,isRequired:a,isValid:e,nameAttr:i}},$s={class:"mb-1"},Vs=["id","aria-labelledby","aria-describedby","type","value"],Ts={class:"mt-1"},ar=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:{type:{},help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isValid:o}=Be();return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",$s,[t.createVNode(ye,{id:`${t.unref(e)}-label`,for:t.unref(e),label:a.label},null,8,["id","for","label"])]),t.createElementVNode("input",t.mergeProps({id:t.unref(e),"aria-labelledby":a.label?`${t.unref(e)}-label`:void 0,"aria-describedby":a.help?`${t.unref(e)}-help`: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-600 disabled:ring-gray-200",t.unref(o)?"text-gray-800 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500":"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700"],type:a.type,value:a.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:modelValue",l.target.value))}),null,16,Vs),t.createElementVNode("div",Ts,[t.createVNode(ue,{id:`${t.unref(e)}-help`,text:a.help},null,8,["id","text"])])]))}}),cn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:{modelValue:{},maxRange:{default:0},startDate:{default:0},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,{inputID:o}=Be(),a=i=>{r("update:modelValue",i)};return t.onMounted(()=>{const i={dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:e.startDate,onClose:l=>{l.length===2?a({minDate:l[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(l[1].setUTCHours(23,59,59,999)/1e3)}):l.length===0&&a({minDate:0,maxDate:0})}};e.modelValue.minDate!=0&&e.modelValue.maxDate!=0&&(i.defaultDate=[e.modelValue.minDate*1e3,e.modelValue.maxDate*1e3]),e.maxRange&&(i.onChange=(l,s,c)=>{if(l.length===1){var d=new Date(l[0].getTime()),f=new Date(l[0].getTime());d.setDate(d.getDate()+e.maxRange),f.setDate(f.getDate()-e.maxRange);const m=new Date;d>m&&(d=m),c.set("minDate",f),c.set("maxDate",d)}}),Z(`#${o.value}`,i)}),(i,l)=>(t.openBlock(),t.createBlock(ar,{id:t.unref(o),type:"text",placeholder:"mm-dd-yyyy range",label:i.label,help:i.help},null,8,["id","label","help"]))}}),Bs={class:"mb-1"},Ms=["id","aria-labelledby","aria-describedby","value"],Os=["textContent"],Ps=["value","textContent"],As={class:"mt-1"},ir=t.defineComponent({inheritAttrs:!1,__name:"Select",props:{label:{default:""},help:{default:""},placeholder:{default:"Select an option"},options:{},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isValid:o}=Be();return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Bs,[t.createVNode(ye,{id:`${t.unref(e)}-label`,for:t.unref(e),label:a.label},null,8,["id","for","label"])]),t.createElementVNode("select",t.mergeProps({id:t.unref(e),"aria-labelledby":a.label?`${t.unref(e)}-label`:void 0,"aria-describedby":a.help?`${t.unref(e)}-help`: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 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-600 disabled:ring-gray-200 disabled:opacity-100",t.unref(o)?"text-gray-800 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500":"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700"],value:a.modelValue},{...a.$attrs,onChange:l=>{r("update:modelValue",l.target.value)}}),[a.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:"",disabled:"",selected:"",textContent:t.toDisplayString(a.placeholder)},null,8,Os)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.options,l=>(t.openBlock(),t.createElementBlock("option",{key:l.value,value:l.value,textContent:t.toDisplayString(l.label)},null,8,Ps))),128))],16,Ms),t.createElementVNode("div",As,[t.createVNode(ue,{id:`${t.unref(e)}-help`,text:a.help},null,8,["id","text"])])]))}}),Ls={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Rs={class:"flex-1 min-w-0"},Is={class:"text-lg leading-6 font-semibold text-gray-900"},Fs={class:"mt-4 flex md:mt-0 md:ml-4"},lr=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",Ls,[t.createElementVNode("div",Rs,[t.createElementVNode("h1",Is,t.toDisplayString(c.title),1)]),t.createElementVNode("div",Fs,[t.createVNode(ir,{modelValue:a.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>a.value=f),l],options:i},null,8,["modelValue"]),t.createVNode(cn,{modelValue:o.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>o.value=f),s],class:"ml-3"},null,8,["modelValue"])])]))}});function st(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,f;const m=()=>{f!==void 0&&f.abort()},g=(h={},b={})=>{d++;const y=d;f=new AbortController,c.value=!1,l.value=!1,s.value=!0;const C={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?h:{},method:r,params:["GET","get"].includes(r)?h:{},signal:f.signal,url:n};return Xe(C,{...e,...b}).then(k=>(o.value=k,a.value=void 0,c.value=!1,k),k=>{throw a.value=k,Qr(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&&g(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:m,execute:g}}function js(n,r={}){return st(n,"GET",r)}function Hs(n,r={}){return st(n,"DELETE",r)}function Us(n,r={}){return st(n,"PATCH",r)}function zs(n,r={}){return st(n,"POST",r)}function Ys(n,r={}){return st(n,"PUT",r)}const ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ws={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=ma.charAt(Math.floor(Math.random()*ma.length));return r}};function ha(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=g=>{e={...e,...g}},a=g=>{r.value.delete(g)},i=g=>{const h=Ws.CreateIdAttribute();return r.value.set(h,g),(g.persistent===void 0||!g.persistent)&&setTimeout(()=>a(h),e.removeDelay),h},l=g=>i(g),s=(g,h=!1)=>i({message:g,persistent:h,type:"error"}),c=(g,h=!1)=>i({message:g,persistent:h,type:"info"}),d=(g,h=!1)=>i({message:g,persistent:h,type:"success"}),f=(g,h=!1)=>i({message:g,persistent:h,type:"warning"}),m=(g="",h=!1)=>{const b=g||e.email,y=b?`Whoops! Something went wrong, please reach out to
|
|
12
|
-
<a class="underline text-xy-blue" href="mailto:${
|
|
13
|
-
if the issue persists.`:"Whoops! Something went wrong.";return i({message:y,persistent:h,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:f,info:c,success:d,genericError:m},flashes:r,configure:o}}const Ks=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 sr;function Ke(){return sr===void 0&&(sr=ha()),sr}const cr={error(n,r){Ke().flasher.error(n,r)},info(n,r){Ke().flasher.info(n,r)},success(n,r){Ke().flasher.success(n,r)},warning(n,r){Ke().flasher.warning(n,r)},genericError(n,r){Ke().flasher.genericError(n,r)}},qs={class:"px-4 flex items-center justify-between sm:px-0"},Gs={class:"w-0 flex-1 flex"},Js=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),Xs={class:"hidden md:flex"},Zs=["onClick","textContent"],Qs={class:"w-0 flex-1 flex justify-end"},ec=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),dn=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",qs,[t.createElementVNode("div",Gs,[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"]))},[Js,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",Xs,[(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,Zs))),128))]),t.createElementVNode("div",Qs,[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 "),ec],2)])]))}}),tc={key:0,class:"shadow overflow-hidden sm:rounded-md border"},ga=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};Ln.get(r.url,{},Object.assign(d,e.value)).then(f=>{i.value={page:f.data.page,perPage:f.data.perPage,totalItems:f.data.totalItems,totalPages:f.data.totalPages},a.value=f.data.items,c&&(o.value=a.value.length!=0)},()=>{cr.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(lr,{"date-range":e.value,"sort-dir":l.value,title:c.title,onSortDirChanged:d[0]||(d[0]=f=>l.value=f),onDateRangeChanged:d[1]||(d[1]=f=>e.value=f)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",tc,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(f,m)=>(t.openBlock(),t.createElementBlock("li",{key:m,class:t.normalizeClass({"border-t border-gray-200":m>0})},[t.renderSlot(c.$slots,"default",{item:f})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(dn,{key:2,modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=f=>i.value=f),d[3]||(d[3]=f=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),nc=["href"],ba=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(Wl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,nc))}}),rc={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},oc={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},ac={class:"p-4"},ic={class:"flex items-center"},lc={class:"w-0 flex-1 flex justify-between"},sc=["innerHTML"],cc={class:"ml-4 shrink-0 flex"},dc=["onClick"],uc=[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)],un=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ke(),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(()=>{Ks(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(Rn),null,{default:t.withCtx(()=>[t.createElementVNode("div",rc,[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",oc,[t.createElementVNode("div",ac,[t.createElementVNode("div",ic,[t.createElementVNode("div",lc,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,sc)]),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)},uc,8,dc)])])])])],2))),128))]),_:1})])]),_:1}))}}),gp="";function fc(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 pc(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 mc(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 ya(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 fn(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 hc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},gc=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),bc={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"},yc={class:"block absolute top-0 right-0 pt-4 pr-4"},wc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),xc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Cc={class:"mt-3 sm:mt-0 sm:text-left"},Ec={class:"mt-2"},kc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},_c=["disabled","textContent"],wa=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(yt),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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(Pe),{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(qt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),gc,t.createVNode(t.unref(Pe),{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",bc,[t.createElementVNode("div",yc,[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))},[wc,t.createVNode(t.unref(fn),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",xc,[t.createElementVNode("div",Cc,[t.createVNode(t.unref(jn),{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",Ec,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",kc,[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,_c),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"]))}}),Dc={class:"aspect-square overflow-hidden"},vc={class:"flex justify-center relative"},Nc={class:"sr-only"},Sc=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),$c=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),dr=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",Dc,[t.createElementVNode("div",vc,[t.createElementVNode("p",Nc,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),Sc,$c])])],2)}}}),Vc={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"},Tc={class:"mt-2"},pn=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Xr(),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,f)=>(t.openBlock(),t.createBlock(t.unref(Rn),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",Vc,[t.createVNode(dr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",Tc,[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}))}}),Bc={class:"h-screen flex overflow-hidden bg-gray-100"},Mc={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},Oc={class:"absolute top-0 right-0 -mr-12 pt-2"},Pc=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Ac={class:"shrink-0 flex justify-center px-4"},Lc=["src"],Rc={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Ic={class:"flex-1 px-2 space-y-1"},Fc=["href","target"],jc={key:0,class:"mt-auto"},Hc={class:"mt-6 px-2"},Uc=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),zc={class:"hidden lg:flex lg:shrink-0"},Yc={class:"flex flex-col w-64"},Wc={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Kc={class:"flex justify-center shrink-0 px-4"},qc=["src"],Gc={class:"mt-5 grow flex flex-col"},Jc={class:"flex-1 px-2 bg-white space-y-1"},Xc=["href","target"],Zc={key:0,class:"mt-atuo"},Qc={class:"mt-6 px-2"},ed={class:"flex flex-col w-0 flex-1 overflow-hidden"},td={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},nd=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),rd={class:"flex-1 px-4 flex justify-between"},od={class:"flex-1 flex"},ad={class:"flex items-center text-2xl text-white"},id={class:"ml-4 flex items-center lg:ml-6"},ld=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),sd=["href"],cd={class:"flex-1 relative overflow-y-auto focus:outline-none"},dd={class:"mx-auto"},xa=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",Bc,[t.createVNode(t.unref(yt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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(Pe),{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(qt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Pe),{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",Mc,[t.createVNode(t.unref(Pe),{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",Oc,[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)},[Pc,t.createVNode(t.unref(fn),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Ac,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Lc)]),t.createElementVNode("div",Rc,[t.createElementVNode("nav",Ic,[(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,Fc))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",jc,[t.createElementVNode("div",Hc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Uc]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",zc,[t.createElementVNode("div",Yc,[t.createElementVNode("div",Wc,[t.createElementVNode("div",Kc,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,qc)]),t.createElementVNode("div",Gc,[t.createElementVNode("nav",Jc,[(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,Xc))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Zc,[t.createElementVNode("div",Qc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",ed,[t.createElementVNode("div",td,[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)},[nd,t.createVNode(t.unref(pc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",rd,[t.createElementVNode("div",od,[t.createElementVNode("h1",ad,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",id,[t.createVNode(t.unref(Hn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Un),{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(()=>[ld,t.createVNode(t.unref(zl),{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(zn),{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(Yn),{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,sd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",cd,[t.createElementVNode("div",dd,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(un),t.createVNode(pn)],64))}}),_t=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=[rs(5),as()];return r.position==="auto"&&s.push(ns()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=la(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:ra});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(_o),{as:s.as,class:"relative"},{default:t.withCtx(({open:d,close:f})=>[t.createVNode(t.unref(Vl),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:d,close:f})]),_:2},1536),t.createElementVNode("div",{ref_key:"wrapper",ref:o,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Tl),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:d,close:f})]),_:2},1024)],4)]),_:3},8,["as"]))}}),ud=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},fd={},pd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function md(n,r){return t.openBlock(),t.createElementBlock("div",pd,[t.renderSlot(n.$slots,"default")])}const Ca=ud(fd,[["render",md]]),hd={class:"absolute inset-0 overflow-hidden"},gd={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},bd={class:"w-screen max-w-md"},yd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},wd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},xd={class:"flex items-center justify-between"},Cd={class:"ml-3 h-7 flex items-center"},Ed=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),kd={class:"mt-1"},_d=["textContent"],Dd={class:"relative flex-1 py-6 px-4 sm:px-6"},Ea=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(yt),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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(qt),{class:"absolute inset-0"}),t.createElementVNode("div",gd,[t.createVNode(t.unref(Pe),{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",bd,[t.createElementVNode("div",yd,[t.createElementVNode("div",wd,[t.createElementVNode("div",xd,[t.createVNode(t.unref(jn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",Cd,[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())},[Ed,t.createVNode(t.unref(fn),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",kd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,_d)])]),t.createElementVNode("div",Dd,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),vd=["onMouseover","onMouseleave"],Nd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),Sd=["onMouseleave"],$d={class:"max-w-xs"},ka=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(_t,{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(fc)),Nd],40,vd)]),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",$d,[t.renderSlot(i.$slots,"default")])],40,Sd)]),_:3},8,["position","as"]))}}),Vd={class:"min-h-screen bg-gray-100"},Td={class:"mx-auto px-4 sm:px-6 lg:px-8"},Bd={class:"flex justify-between h-16"},Md={class:"flex"},Od={class:"shrink-0 flex items-center"},Pd=["src"],Ad={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},Ld=["href","aria-current"],Rd={class:"hidden sm:ml-6 sm:flex sm:items-center"},Id=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Fd=["href"],jd={class:"-mr-2 flex items-center sm:hidden"},Hd=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Ud={class:"pt-2 pb-3 space-y-1"},zd=["href","aria-current"],Yd={class:"pt-4 pb-3 border-t border-gray-200"},Wd={class:"flex items-center px-4"},Kd={class:"shrink-0"},qd={class:"ml-3"},Gd=["textContent"],Jd=["textContent"],Xd={class:"mt-3 space-y-1"},Zd=["href"],Qd={class:"mx-auto sm:px-6 lg:px-8"},eu={class:"px-4 py-8 sm:px-0"},_a=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",Vd,[t.createVNode(t.unref(El),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",Td,[t.createElementVNode("div",Bd,[t.createElementVNode("div",Md,[t.createElementVNode("div",Od,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,Pd)]),t.createElementVNode("div",Ad,[(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,Ld))),128))])]),t.createElementVNode("div",Rd,[t.createVNode(t.unref(Hn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Un),{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(()=>[Id,t.createVNode(t.unref(ya),{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(zn),{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(Yn),{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,Fd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",jd,[t.createVNode(t.unref(kl),{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(()=>[Hd,i?(t.openBlock(),t.createBlock(t.unref(fn),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(mc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(_l),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Ud,[(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,zd))),128))]),t.createElementVNode("div",Yd,[t.createElementVNode("div",Wd,[t.createElementVNode("div",Kd,[t.createVNode(t.unref(ya),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",qd,[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,Gd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,Jd)])]),t.createElementVNode("div",Xd,[(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,Zd))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Qd,[t.createElementVNode("div",eu,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(un),t.createVNode(pn)],64))}}),tu=n=>n==null,nu={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?")}},Da=(n,r,e,o=nu)=>{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(f=>{let m="";switch((f==null?void 0:f.alignment)||"left"){case"left":m="text-left";break;case"right":m="text-right";break;case"center":m="text-center";break}return{...f,alignment:m}})),d=t.computed(()=>i.value.map((f,m)=>({actions:l.value.actions.map(g=>({...g,disabled:typeof g.disabled=="function"?g.disabled.apply(void 0,[f,m]):g.disabled,onClick:()=>g.onClick(f,m,o),show:typeof g.show=="function"?g.show.apply(void 0,[f,m]):g.show})),rowData:f,cells:c.value.map(g=>{const h=typeof g.render=="string"?f[g.render]:g.render(f,m),b=(g==null?void 0:g.classNames)||"";return{...g,isComponent:t.isVNode(h),classNames:typeof b=="function"?b.apply(void 0,[f,m]):b,val:h}})})));return{columns:c,hasActions:s,isEmptyCellValue:tu,rows:d}},ru={key:0,class:"flex items-center space-x-2 justify-end"},ou={class:"isolate inline-flex rounded-md shadow-sm"},au=["disabled","onClick"],iu={class:"relative inline-flex items-center gap-x-1.5"},va=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Ao(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",ru,[t.createElementVNode("span",ou,[(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",iu,[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,au))),128))])])):t.createCommentVNode("",!0)}}),lu={class:"flex flex-col"},su={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},cu={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},du={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},uu={class:"min-w-full divide-y divide-gray-200"},fu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},pu={class:"bg-white divide-y divide-gray-200"},mu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},hu={key:0},gu=["colspan"],Na=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}=Da(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",lu,[t.createElementVNode("div",su,[t.createElementVNode("div",cu,[t.createElementVNode("div",du,[t.createElementVNode("table",uu,[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",fu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",pu,[(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,(f,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:m,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(a)(f.val)?"-":String(f.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",mu,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(on),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(va,{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,gu)])):t.createCommentVNode("",!0)])])])])])]))}}),bu={class:"flex items-center justify-center space-x-8"},yu={class:"font-medium"},wu={class:"flex items-center space-x-5"},xu={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},Cu={key:1,class:"relative flex items-center justify-center"},Eu=[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)],ku={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},_u={key:0,class:"flex shrink-0"},Du={key:0,class:"inline-flex rounded-md shadow-sm"},vu=["textContent"],Nu={class:"ml-3 inline-flex rounded-md shadow-sm"},Su=["textContent"],Sa=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",bu,[t.createElementVNode("p",yu,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",wu,[(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",xu)):a.step===l?(t.openBlock(),t.createElementBlock("div",Cu,Eu)):(t.openBlock(),t.createElementBlock("span",ku))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",_u,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Du,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,vu)])),t.createElementVNode("span",Nu,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,Su)])]))]))}}),$u={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},Vu={key:0,class:"w-full max-w-lg lg:max-w-xs"},Tu=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),Bu={class:"relative"},Mu=t.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5 text-gray-400",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),Ou={key:1,class:"w-full max-w-lg lg:max-w-xs"},Pu={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Au={class:"min-w-full divide-y divide-gray-200"},Lu={key:0},Ru=["onClick"],Iu={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Fu=[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)],ju={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Hu=[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)],Uu={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},zu=[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)],Yu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Wu={class:"bg-white divide-y divide-gray-200"},Ku=["onClick"],qu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Gu={key:0},Ju=["colspan"],$a=t.defineComponent({__name:"DynamicTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableOptions:{}},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const L={minDate:b.value.minDate,maxDate:b.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:g.value,sortDir:h.value,q:C.value};Ln.get(e.tableOptions.url,{skipLoader:!1},L).then(I=>{y.value={page:I.data.page,perPage:I.data.perPage,totalItems:I.data.totalItems,totalPages:I.data.totalPages},l.value=I.data.items},()=>{cr.genericError()})},a=()=>{y.value.page=1,o()},i=()=>{if(N.value.maxRange){const L=new Date,I=L.setDate(L.getDate()-N.value.maxRange),T=new Date;b.value={minDate:Math.floor(I/1e3),maxDate:Math.floor(T.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:c,hasActions:d,isEmptyCellValue:f,rows:m}=Da(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),g=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),h=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}),C=t.ref(""),k=L=>{y.value.page=1,b.value=L,o()},v=L=>{g.value==L?h.value=h.value==="desc"?"asc":"desc":(g.value=L,h.value="desc"),o()},N=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),j=t.computed(()=>!!m.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(s),i(),o(),(L,I)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",$u,[L.tableOptions.search?(t.openBlock(),t.createElementBlock("div",Vu,[Tu,t.createElementVNode("div",Bu,[Mu,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":I[0]||(I[0]=T=>C.value=T),class:"pl-10",type:"search",placeholder:"Search",onChange:I[1]||(I[1]=T=>a())},null,544),[[t.vModelText,C.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),L.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",Ou,[t.createVNode(cn,t.mergeProps({modelValue:b.value,"onUpdate:modelValue":I[2]||(I[2]=T=>b.value=T)},{...N.value},{"onUpdate:modelValue":k}),null,16,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Pu,[t.createElementVNode("table",Au,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(T,we)=>(t.openBlock(),t.createElementBlock("th",{key:we,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",T.alignment])},[T.title?(t.openBlock(),t.createElementBlock("span",Lu,t.toDisplayString(T.title),1)):t.createCommentVNode("",!0),T.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(P=>v(T.sort),["prevent"])},[g.value!==T.sort?(t.openBlock(),t.createElementBlock("svg",Iu,Fu)):h.value=="desc"?(t.openBlock(),t.createElementBlock("svg",ju,Hu)):(t.openBlock(),t.createElementBlock("svg",Uu,zu))],8,Ru)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Yu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Wu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(m),(T,we)=>(t.openBlock(),t.createElementBlock("tr",{key:we,onClick:P=>L.$emit("click:row",T.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.cells,(P,Y)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:Y,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",P.alignment])},{default:t.withCtx(()=>[P.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(P.classNames)},t.toDisplayString(t.unref(f)(P.val)?"-":String(P.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",qu,[L.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(on),{key:0,actions:T.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(va,{key:1,actions:T.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Ku))),128)),j.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Gu,[t.createElementVNode("td",{colspan:t.unref(m).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Ju)]))])])]),j.value?(t.openBlock(),t.createBlock(dn,{key:0,modelValue:y.value,"onUpdate:modelValue":[I[3]||(I[3]=T=>y.value=T),I[4]||(I[4]=T=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Xu=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),Zu={class:"hidden sm:block"},Qu=["onClick","textContent"],Va=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}])},[Xu,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",Zu,[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,f)=>(t.openBlock(),t.createElementBlock("a",{key:f,href:"#",class:t.normalizeClass(a(d.value,f>0)),onClick:t.withModifiers(m=>o(d.value),["prevent"]),textContent:t.toDisplayString(d.label)},null,10,Qu))),128))],2)],2)])])}}}),ef={key:0,class:"sr-only"},tf={class:"ml-3"},Ta=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:{modelValue:{type:Boolean,default:void 0},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const{isDisabled:e}=Be();return(o,a)=>(t.openBlock(),t.createBlock(t.unref(Ol),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(Pl),{class:t.normalizeClass([o.modelValue?"bg-xy-blue":"bg-gray-200",t.unref(e)?"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:t.unref(e),"model-value":o.modelValue,"onUpdate:modelValue":a[0]||(a[0]=i=>r("update:modelValue",i))},{default:t.withCtx(()=>[o.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",ef,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([o.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",tf,[o.label?(t.openBlock(),t.createBlock(t.unref(Al),{key:0},{default:t.withCtx(()=>[t.createVNode(ye,{label:o.label,class:t.normalizeClass(t.unref(e)&&"cursor-not-allowed")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),o.help?(t.openBlock(),t.createBlock(t.unref(Ll),{key:1},{default:t.withCtx(()=>[t.createVNode(ue,{text:o.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),nf={class:"relative flex items-start"},rf={class:"flex items-center h-6"},of=["id","aria-labelledby","aria-describedby","checked"],af={class:"ml-3"},Ba=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isDisabled:o,isValid:a}=Be();return(i,l)=>(t.openBlock(),t.createElementBlock("div",nf,[t.createElementVNode("div",rf,[t.createElementVNode("input",t.mergeProps({id:t.unref(e),"aria-labelledby":i.label?`${t.unref(e)}-label`:void 0,"aria-describedby":i.help?`${t.unref(e)}-help`:void 0,checked:i.modelValue,class:["h-4 w-4 rounded","border-gray-300 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(a)?"focus:ring-xy-blue-500":"focus:ring-red-700"],type:"checkbox"},{onChange:s=>{r("update:modelValue",s.target.checked)},...i.$attrs}),null,16,of)]),t.createElementVNode("div",af,[t.createVNode(ye,{id:`${t.unref(e)}-label`,for:t.unref(e),label:i.label,class:t.normalizeClass(t.unref(o)&&"cursor-not-allowed")},null,8,["id","for","label","class"]),t.createVNode(ue,{id:`${t.unref(e)}-help`,text:i.help},null,8,["id","text"])])]))}}),Dt=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},tag:{default:"legend"}},setup(n){return(r,e)=>r.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:"block text-base/6 font-medium text-gray-800"},r.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.label),1)]),_:1},16)):t.createCommentVNode("",!0)}}),lf=["aria-labelledby","aria-describedby"],sf={key:0},cf={class:"flex"},df={class:"flex items-center h-6"},uf=["id","aria-labelledby","aria-describedby","checked","disabled"],ff={class:"ml-3"},Ma=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:{options:{},help:{default:""},label:{default:""},modelValue:{},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,{inputID:o,isDisabled:a}=Be(),i=(l,s)=>{let c=[...e.modelValue];l?c.push(s):c.splice(c.indexOf(s),1),r("update:modelValue",c)};return(l,s)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":l.label?`${t.unref(o)}-legend`:void 0,"aria-describedby":l.help?`${t.unref(o)}-help`:void 0},[l.label?(t.openBlock(),t.createElementBlock("div",sf,[t.createVNode(Dt,{id:`${t.unref(o)}-legend`,label:l.label},null,8,["id","label"]),l.help?(t.openBlock(),t.createBlock(ue,{key:0,id:`${t.unref(o)}-help`,tag:"p",text:l.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",cf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-5 sm:space-y-0":l.columns!==void 0,"sm:grid-cols-2":l.columns===2,"sm:grid-cols-3":l.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:c.value,class:"flex items-start"},[t.createElementVNode("div",df,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(o)}-${d}`,"aria-labelledby":`${t.unref(o)}-${d}-label`,"aria-describedby":c.help?`${t.unref(o)}-${d}-help`:void 0,checked:l.modelValue.includes(c.value),disabled:c.disabled,class:["h-4 w-4 rounded","border-gray-300 text-xy-blue focus:ring-xy-blue-500","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"],type:"checkbox"},{onChange:f=>{i(f.target.checked,c.value)},...l.$attrs}),null,16,uf)]),t.createElementVNode("div",ff,[t.createVNode(ye,{id:`${t.unref(o)}-${d}-label`,for:`${t.unref(o)}-${d}`,label:c.label,class:t.normalizeClass((t.unref(a)||c.disabled)&&"cursor-not-allowed")},null,8,["id","for","label","class"]),t.createVNode(ue,{id:`${t.unref(o)}-${d}-help`,text:c.help},null,8,["id","text"])])]))),128))],2)])],8,lf))}}),pf=["aria-labelledby","aria-describedby"],mf={key:0},hf={class:"flex"},gf={class:"flex items-center h-6"},bf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],yf={class:"ml-3"},Oa=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:{options:{},help:{default:""},label:{default:""},modelValue:{default:void 0},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isDisabled:o}=Be();return(a,i)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":a.label?`${t.unref(e)}-legend`:void 0,"aria-describedby":a.help?`${t.unref(e)}-help`:void 0},[a.label?(t.openBlock(),t.createElementBlock("div",mf,[t.createVNode(Dt,{id:`${t.unref(e)}-legend`,label:a.label},null,8,["id","label"]),a.help?(t.openBlock(),t.createBlock(ue,{key:0,id:`${t.unref(e)}-help`,tag:"p",text:a.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",hf,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-5 sm:space-y-0":a.columns!==void 0,"sm:grid-cols-2":a.columns===2,"sm:grid-cols-3":a.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.options,(l,s)=>(t.openBlock(),t.createElementBlock("div",{key:l.value,class:"flex items-start"},[t.createElementVNode("div",gf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(e)}-${s}`,"aria-describedby":l.help?`${t.unref(e)}-${s}-help`:void 0,"aria-labelledby":`${t.unref(e)}-${s}-label`,checked:a.modelValue===l.value,class:["h-4 w-4","border-gray-300 text-xy-blue focus:ring-xy-blue-500","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"],disabled:l.disabled,name:t.unref(e),type:"radio",value:l.value},{onChange:()=>{r("update:modelValue",l.value)},...a.$attrs}),null,16,bf)]),t.createElementVNode("div",yf,[t.createVNode(ye,{id:`${t.unref(e)}-${s}-label`,for:`${t.unref(e)}-${s}`,label:l.label,class:t.normalizeClass((t.unref(o)||l.disabled)&&"cursor-not-allowed")},null,8,["id","for","label","class"]),t.createVNode(ue,{id:`${t.unref(e)}-${s}-help`,text:l.help},null,8,["id","text"])])]))),128))],2)])],8,pf))}}),wf=["id"],xf={class:"flex-1 flex pr-1"},Cf={class:"flex flex-col"},Ef={key:1,class:"mt-auto mb-0"},kf=["checked","name","required","value"],Pa=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:{columns:{default:void 0},help:{default:""},label:{default:""},modelValue:{default:void 0},options:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,{inputID:o,isDisabled:a,isRequired:i,nameAttr:l}=Be(),s=t.ref(),c=t.ref(),d=t.computed(()=>e.modelValue===void 0?s.value:e.modelValue),f=m=>{s.value=m,c.value=!1,r("update:modelValue",m)};return(m,g)=>(t.openBlock(),t.createBlock(t.unref(Bl),{"model-value":d.value,disabled:t.unref(a),"aria-invalid":c.value===!0?"true":null,"aria-errormessage":c.value===!0?`error-${t.unref(o)}`:null,"onUpdate:modelValue":f},{default:t.withCtx(()=>[m.label?(t.openBlock(),t.createBlock(t.unref(Vo),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Dt,{tag:"div",label:m.label},null,8,["label"])]),_:1})):t.createCommentVNode("",!0),m.help?(t.openBlock(),t.createBlock(t.unref(Kn),{key:1},{default:t.withCtx(()=>[t.createVNode(ue,{text:m.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),c.value===!0?(t.openBlock(),t.createElementBlock("div",{key:2,id:`error-${t.unref(o)}`,class:"sr-only"}," Please select one of these options. ",8,wf)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":m.columns===2,"sm:grid-cols-3":m.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.options,h=>(t.openBlock(),t.createBlock(t.unref(Ml),{key:h.value,as:"template",disabled:t.unref(a)||h.disabled,value:h.value},{default:t.withCtx(({active:b,checked:y,disabled:C})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[C?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",y?"border-transparent":"",b?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",xf,[t.createElementVNode("div",Cf,[t.createVNode(t.unref(Vo),{as:"div"},{default:t.withCtx(()=>[t.createVNode(ye,{tag:"div",class:"mt-auto mb-auto",label:h.label},null,8,["label"])]),_:2},1024),h.help?(t.openBlock(),t.createBlock(t.unref(Kn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(ue,{tag:"div",class:"mt-auto",text:h.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),h.sublabel||m.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",Ef,[t.createVNode(t.unref(Kn),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"sublabel",{active:b,checked:y,disabled:C,option:h},()=>[t.createTextVNode(t.toDisplayString(h.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(Ul),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([b?"border":"border-2",y?"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:y,name:t.unref(l),required:t.unref(i),tabindex:"-1",type:"radio",value:h.value,onInvalid:g[0]||(g[0]=k=>c.value=!0)},null,40,kf)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),_f={class:"mb-1"},Df=["id","aria-labelledby","aria-describedby","value"],vf={class:"mt-1"},Aa=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isValid:o}=Be();return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",_f,[t.createVNode(ye,{id:`${t.unref(e)}-label`,for:t.unref(e),label:a.label},null,8,["id","for","label"])]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(e),"aria-labelledby":a.label?`${t.unref(e)}-label`:void 0,"aria-describedby":a.help?`${t.unref(e)}-help`: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-600 disabled:ring-gray-200",t.unref(o)?"text-gray-800 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500":"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700"],value:a.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:modelValue",l.target.value))}),null,16,Df),t.createElementVNode("div",vf,[t.createVNode(ue,{id:`${t.unref(e)}-help`,text:a.help},null,8,["id","text"])])]))}}),Nf=["aria-labelledby","aria-describedby"],Sf={key:0},$f=["for"],Vf=["id","name","checked"],Tf=["for"],Bf=["id","name","checked"],La=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:{modelValue:{type:Boolean,default:void 0},help:{default:""},label:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const{inputID:e,isDisabled:o,nameAttr:a}=Be(),i=l=>{r("update:modelValue",l.target.value==="true")};return(l,s)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-3","aria-labelledby":l.label?`${t.unref(e)}-legend`:void 0,"aria-describedby":l.help?`${t.unref(e)}-help`:void 0},[l.label?(t.openBlock(),t.createElementBlock("div",Sf,[t.createVNode(ye,{class:"block my-auto",label:l.label,tag:"legend"},null,8,["label"]),l.help?(t.openBlock(),t.createBlock(ue,{key:0,id:`${t.unref(e)}-help`,tag:"p",text:l.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(o)&&"cursor-not-allowed"]),for:`${t.unref(a)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(a)}-true`,type:"radio",class:["h-4 w-4","border-gray-300 text-xy-blue focus:ring-xy-blue-500","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"],name:t.unref(a),value:!0,checked:l.modelValue===!0},{...l.$attrs,onChange:i}),null,16,Vf),t.createVNode(ye,{class:"ml-3",label:"Yes",tag:"span"})],10,$f),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(o)&&"cursor-not-allowed"]),for:`${t.unref(a)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(a)}-false`,type:"radio",class:["h-4 w-4","border-gray-300 text-xy-blue focus:ring-xy-blue-500","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"],name:t.unref(a),value:!1,checked:l.modelValue===!1},{...l.$attrs,onChange:i}),null,16,Bf),t.createVNode(ye,{class:"ml-3",label:"No",tag:"span"})],10,Tf)])],8,Nf))}}),Mf=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:on,BaseInput:ar,Cards:sa,Checkbox:Ba,ContentModal:ca,DataTable:Na,DateFilter:lr,DateRangePicker:cn,DetailList:ga,DownloadCell:ba,DynamicTable:$a,FieldsetLegend:Dt,Flash:un,InputHelp:ue,InputLabel:ye,Modal:wa,MultiCheckboxes:Ma,Paginator:dn,Popover:_t,PopoverContent:Ca,PopoverPosition:_t,Radio:Oa,RadioCards:Pa,Select:ir,SidebarLayout:xa,Slideover:Ea,Spinner:pn,StackedLayout:_a,Steps:Sa,Tabs:Va,TextArea:Aa,Toggle:Ta,Tooltip:ka,XYSpinner:dr,YesOrNoRadio:La},Symbol.toStringTag,{value:"Module"})),Of=function(r){Object.entries(Mf).forEach(([e,o])=>{r.component(e,o)})};S.ActionsDropdown=on,S.BaseAPI=Ln,S.BaseInput=ar,S.Cards=sa,S.Checkbox=Ba,S.ContentModal=ca,S.DataTable=Na,S.DateFilter=lr,S.DateRangePicker=cn,S.DetailList=ga,S.DownloadCell=ba,S.DynamicTable=$a,S.FieldsetLegend=Dt,S.Flash=un,S.InputHelp=ue,S.InputLabel=ye,S.Modal=wa,S.MultiCheckboxes=Ma,S.Paginator=dn,S.Popover=_t,S.PopoverContent=Ca,S.PopoverPosition=_t,S.Radio=Oa,S.RadioCards=Pa,S.Select=ir,S.SidebarLayout=xa,S.Slideover=Ea,S.Spinner=pn,S.StackedLayout=_a,S.Steps=Sa,S.Tabs=Va,S.TextArea=Aa,S.Toggle=Ta,S.Tooltip=ka,S.XYSpinner=dr,S.YesOrNoRadio=La,S.default=Of,S.isHttpCancel=Qr,S.isHttpError=Zr,S.setBaseAPIDefaults=ll,S.useAppFlasher=cr,S.useAppFlashes=Ke,S.useAppSpinner=An,S.useBaseAPI=st,S.useBaseAPIDelete=Hs,S.useBaseAPIGet=js,S.useBaseAPIPatch=Us,S.useBaseAPIPost=zs,S.useBaseAPIPut=Ys,S.useFlashes=ha,S.useSpinnerDisplay=Jr,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
11
|
+
`}function sp(){e.calendarContainer.classList.add("hasWeeks");const f=j("div","flatpickr-weekwrapper");f.appendChild(j("span","flatpickr-weekday",e.l10n.weekAbbreviation));const g=j("div","flatpickr-weeks");return f.appendChild(g),{weekWrapper:f,weekNumbers:g}}function fr(f,g=!0){const w=g?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"),wn())}function cp(f=!0,g=!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,g===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:w,minutes:C,seconds:N}=ar(e.config);p(w,C,N)}e.redraw(),f&&J("onChange")}function dp(){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 up(){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 dt(f){return e.config.appendTo&&e.config.appendTo.contains(f)?!0:e.calendarContainer.contains(f)}function pr(f){if(e.isOpen&&!e.config.inline){const g=be(f),w=dt(g),C=g===e.input||g===e.altInput||e.element.contains(g)||f.path&&f.path.indexOf&&(~f.path.indexOf(e.input)||~f.path.indexOf(e.altInput)),N=f.type==="blur"?C&&f.relatedTarget&&!dt(f.relatedTarget):!C&&!w&&!dt(f.relatedTarget),_=!e.config.ignoredFocusElements.some(B=>B.contains(g));N&&_&&(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 hn(f){if(!f||e.config.minDate&&f<e.config.minDate.getFullYear()||e.config.maxDate&&f>e.config.maxDate.getFullYear())return;const g=f,w=e.currentYear!==g;e.currentYear=g||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 Ge(f,g=!0){var w;const C=e.parseDate(f,void 0,g);if(e.config.minDate&&C&&ye(C,e.config.minDate,g!==void 0?g:!e.minDateHasTime)<0||e.config.maxDate&&C&&ye(C,e.config.maxDate,g!==void 0?g:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(C===void 0)return!1;const N=!!e.config.enable,_=(w=e.config.enable)!==null&&w!==void 0?w:e.config.disable;for(let B=0,V;B<_.length;B++){if(V=_[B],typeof V=="function"&&V(C))return N;if(V instanceof Date&&C!==void 0&&V.getTime()===C.getTime())return N;if(typeof V=="string"){const O=e.parseDate(V,void 0,!0);return O&&O.getTime()===C.getTime()?N:!N}else if(typeof V=="object"&&C!==void 0&&V.from&&V.to&&C.getTime()>=V.from.getTime()&&C.getTime()<=V.to.getTime())return N}return!N}function gn(f){return e.daysContainer!==void 0?f.className.indexOf("hidden")===-1&&f.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(f):!1}function fp(f){f.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(f.relatedTarget&&dt(f.relatedTarget))&&e.setDate(e._input.value,!0,f.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function pp(f){const g=be(f),w=e.config.wrap?n.contains(g):g===e._input,C=e.config.allowInput,N=e.isOpen&&(!C||!w),_=e.config.inline&&w&&!C;if(f.keyCode===13&&w){if(C)return e.setDate(e._input.value,!0,g===e.altInput?e.config.altFormat:e.config.dateFormat),g.blur();e.open()}else if(dt(g)||N||_){const B=!!e.timeContainer&&e.timeContainer.contains(g);switch(f.keyCode){case 13:B?(f.preventDefault(),s(),hr()):Ka(f);break;case 27:f.preventDefault(),hr();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&&gn(document.activeElement))){const O=f.keyCode===39?1:-1;f.ctrlKey?(f.stopPropagation(),fr(O),L(M(1),0)):L(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:f.preventDefault();const V=f.keyCode===40?1:-1;e.daysContainer&&g.$i!==void 0||g===e.input||g===e.altInput?f.ctrlKey?(f.stopPropagation(),hn(e.currentYear-V),L(M(1),0)):B||L(void 0,V*7):g===e.currentYearElement?hn(e.currentYear-V):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(g);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(g)&&f.shiftKey&&(f.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&g===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(),ze();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),ze();break}(w||dt(g))&&J("onKeyDown",f)}function mr(f){if(e.selectedDates.length!==1||f&&(!f.classList.contains("flatpickr-day")||f.classList.contains("flatpickr-disabled")))return;const g=f?f.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),w=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),C=Math.min(g,e.selectedDates[0].getTime()),N=Math.max(g,e.selectedDates[0].getTime());let _=!1,B=0,V=0;for(let O=C;O<N;O+=vs.DAY)Ge(new Date(O),!0)||(_=_||O>C&&O<N,O<w&&(!B||O>B)?B=O:O>w&&(!V||O<V)&&(V=O));for(let O=0;O<e.config.showMonths;O++){const P=e.daysContainer.children[O];for(let W=0,ke=P.children.length;W<ke;W++){const ie=P.children[W],Te=ie.dateObj.getTime(),St=B>0&&Te<B||V>0&&Te>V;if(St){ie.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(vt=>{ie.classList.remove(vt)});continue}else if(_&&!St)continue;["startRange","inRange","endRange","notAllowed"].forEach(vt=>{ie.classList.remove(vt)}),f!==void 0&&(f.classList.add(g<=e.selectedDates[0].getTime()?"startRange":"endRange"),w<g&&Te===w?ie.classList.add("startRange"):w>g&&Te===w&&ie.classList.add("endRange"),Te>=B&&(V===0||Te<=V)&&Ss(Te,w,g)&&ie.classList.add("inRange"))}}}function mp(){e.isOpen&&!e.config.static&&!e.config.inline&&bn()}function hp(f,g=e._positionElement){if(e.isMobile===!0){if(f){f.preventDefault();const C=be(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"),bn(g)),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 za(f){return g=>{const w=e.config[`_${f}Date`]=e.parseDate(g,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(N=>Ge(N)),!e.selectedDates.length&&f==="min"&&h(w),ze()),e.daysContainer&&(Wa(),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 gp(){const f=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],g=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),w={};e.config.parseDate=g.parseDate,e.config.formatDate=g.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:_=>{e.config._enable=Ja(_)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:_=>{e.config._disable=Ja(_)}});const C=g.mode==="time";if(!g.dateFormat&&(g.enableTime||C)){const _=ee.defaultConfig.dateFormat||lt.dateFormat;w.dateFormat=g.noCalendar||C?"H:i"+(g.enableSeconds?":S":""):_+" H:i"+(g.enableSeconds?":S":"")}if(g.altInput&&(g.enableTime||C)&&!g.altFormat){const _=ee.defaultConfig.altFormat||lt.altFormat;w.altFormat=g.noCalendar||C?"h:i"+(g.enableSeconds?":S K":" K"):_+` h:i${g.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:za("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:za("max")});const N=_=>B=>{e.config[_==="min"?"_minTime":"_maxTime"]=e.parseDate(B,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:N("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:N("max")}),g.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,w,g);for(let _=0;_<f.length;_++)e.config[f[_]]=e.config[f[_]]===!0||e.config[f[_]]==="true";er.filter(_=>e.config[_]!==void 0).forEach(_=>{e.config[_]=tr(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 V in B)er.indexOf(V)>-1?e.config[V]=tr(B[V]).map(i).concat(e.config[V]):typeof g[V]>"u"&&(e.config[V]=B[V])}g.altInputClass||(e.config.altInputClass=qa().className+" "+e.config.altInputClass),J("onParseConfig")}function qa(){return e.config.wrap?n.querySelector("[data-input]"):n}function Ya(){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),rr.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=pa(e),e.parseDate=or({config:e.config,l10n:e.l10n})}function bn(f){if(typeof e.config.position=="function")return void e.config.position(e,f);if(e.calendarContainer===void 0)return;J("onPreCalendarPosition");const g=f||e._positionElement,w=Array.prototype.reduce.call(e.calendarContainer.children,($t,yr)=>$t+yr.offsetHeight,0),C=e.calendarContainer.offsetWidth,N=e.config.position.split(" "),_=N[0],B=N.length>1?N[1]:null,V=g.getBoundingClientRect(),O=window.innerHeight-V.bottom,P=_==="above"||_!=="below"&&O<w&&V.top>w,W=window.pageYOffset+V.top+(P?-w-2:g.offsetHeight+2);if(se(e.calendarContainer,"arrowTop",!P),se(e.calendarContainer,"arrowBottom",P),e.config.inline)return;let ke=window.pageXOffset+V.left,ie=!1,xn=!1;B==="center"?(ke-=(C-V.width)/2,ie=!0):B==="right"&&(ke-=C-V.width,xn=!0),se(e.calendarContainer,"arrowLeft",!ie&&!xn),se(e.calendarContainer,"arrowCenter",ie),se(e.calendarContainer,"arrowRight",xn);const Te=window.document.body.offsetWidth-(window.pageXOffset+V.right),St=ke+C>window.document.body.offsetWidth,vt=Te+C>window.document.body.offsetWidth;if(se(e.calendarContainer,"rightMost",St),!e.config.static)if(e.calendarContainer.style.top=`${W}px`,!St)e.calendarContainer.style.left=`${ke}px`,e.calendarContainer.style.right="auto";else if(!vt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Te}px`;else{const $t=bp();if($t===void 0)return;const yr=window.document.body.offsetWidth,vp=Math.max(0,yr/2-C/2),$p=".flatpickr-calendar.centerMost:before",Vp=".flatpickr-calendar.centerMost:after",Bp=$t.cssRules.length,Tp=`{left:${V.left}px;right:auto;}`;se(e.calendarContainer,"rightMost",!1),se(e.calendarContainer,"centerMost",!0),$t.insertRule(`${$p},${Vp}${Tp}`,Bp),e.calendarContainer.style.left=`${vp}px`,e.calendarContainer.style.right="auto"}}function bp(){let f=null;for(let g=0;g<document.styleSheets.length;g++){const w=document.styleSheets[g];try{w.cssRules}catch{continue}f=w;break}return f??yp()}function yp(){const f=document.createElement("style");return document.head.appendChild(f),f.sheet}function Wa(){e.config.noCalendar||e.isMobile||(ae(),wn(),X())}function hr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Ka(f){f.preventDefault(),f.stopPropagation();const g=B=>B.classList&&B.classList.contains("flatpickr-day")&&!B.classList.contains("flatpickr-disabled")&&!B.classList.contains("notAllowed"),w=fa(be(f),g);if(w===void 0)return;const C=w,N=e.latestSelectedDateObj=new Date(C.dateObj.getTime()),_=(N.getMonth()<e.currentMonth||N.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=C,e.config.mode==="single")e.selectedDates=[N];else if(e.config.mode==="multiple"){const B=br(N);B?e.selectedDates.splice(parseInt(B),1):e.selectedDates.push(N)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=N,e.selectedDates.push(N),ye(N,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((B,V)=>B.getTime()-V.getTime()));if(u(),_){const B=e.currentYear!==N.getFullYear();e.currentYear=N.getFullYear(),e.currentMonth=N.getMonth(),B&&(J("onYearChange"),ae()),J("onMonthChange")}if(wn(),X(),ze(),!_&&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,V=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(B||V)&&hr()}y()}const yn={locale:[Ya,Ua],showMonths:[ja,l,Ha],minDate:[E],maxDate:[E],clickOpens:[()=>{e.config.clickOpens===!0?(m(e._input,"focus",e.open),m(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function wp(f,g){if(f!==null&&typeof f=="object"){Object.assign(e.config,f);for(const w in f)yn[w]!==void 0&&yn[w].forEach(C=>C())}else e.config[f]=g,yn[f]!==void 0?yn[f].forEach(w=>w()):er.indexOf(f)>-1&&(e.config[f]=tr(g));e.redraw(),ze(!0)}function Ga(f,g){let w=[];if(f instanceof Array)w=f.map(C=>e.parseDate(C,g));else if(f instanceof Date||typeof f=="number")w=[e.parseDate(f,g)];else if(typeof f=="string")switch(e.config.mode){case"single":case"time":w=[e.parseDate(f,g)];break;case"multiple":w=f.split(e.config.conjunction).map(C=>e.parseDate(C,g));break;case"range":w=f.split(e.l10n.rangeSeparator).map(C=>e.parseDate(C,g));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&&Ge(C,!1)),e.config.mode==="range"&&e.selectedDates.sort((C,N)=>C.getTime()-N.getTime())}function xp(f,g=!1,w=e.config.dateFormat){if(f!==0&&!f||f instanceof Array&&f.length===0)return e.clear(g);Ga(f,w),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,g),h(),e.selectedDates.length===0&&e.clear(!1),ze(g),g&&J("onChange")}function Ja(f){return f.slice().map(g=>typeof g=="string"||typeof g=="number"||g instanceof Date?e.parseDate(g,void 0,!0):g&&typeof g=="object"&&g.from&&g.to?{from:e.parseDate(g.from,void 0),to:e.parseDate(g.to,void 0)}:g).filter(g=>g)}function Cp(){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&&Ga(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 Ep(){if(e.input=qa(),!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 kp(){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{}m(e.mobileInput,"change",g=>{e.setDate(be(g).value,!1,e.mobileFormatStr),J("onChange"),J("onClose")})}function _p(f){if(e.isOpen===!0)return e.close();e.open(f)}function J(f,g){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,g);f==="onChange"&&(e.input.dispatchEvent(gr("change")),e.input.dispatchEvent(gr("input")))}function gr(f){const g=document.createEvent("Event");return g.initEvent(f,!0,!0),g}function br(f){for(let g=0;g<e.selectedDates.length;g++)if(ye(e.selectedDates[g],f)===0)return""+g;return!1}function Dp(f){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ye(f,e.selectedDates[0])>=0&&ye(f,e.selectedDates[1])<=0}function wn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((f,g)=>{const w=new Date(e.currentYear,e.currentMonth,1);w.setMonth(e.currentMonth+g),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[g].textContent=cn(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 Xa(f){return e.selectedDates.map(g=>e.formatDate(g,f)).filter((g,w,C)=>e.config.mode!=="range"||e.config.enableTime||C.indexOf(g)===w).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function ze(f=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Xa(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Xa(e.config.altFormat)),f!==!1&&J("onValueUpdate")}function Np(f){const g=be(f),w=e.prevMonthNav.contains(g),C=e.nextMonthNav.contains(g);w||C?fr(w?-1:1):e.yearElements.indexOf(g)>=0?g.select():g.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):g.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Sp(f){f.preventDefault();const g=f.type==="keydown",w=be(f),C=w;e.amPM!==void 0&&w===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Ee(e.amPM.textContent===e.l10n.amPM[0])]);const N=parseFloat(C.getAttribute("min")),_=parseFloat(C.getAttribute("max")),B=parseFloat(C.getAttribute("step")),V=parseInt(C.value,10),O=f.delta||(g?f.which===38?1:-1:0);let P=V+B*O;if(typeof C.value<"u"&&C.value.length===2){const W=C===e.hourElement,ke=C===e.minuteElement;P<N?(P=_+P+Ee(!W)+(Ee(W)&&Ee(!e.amPM)),ke&&S(void 0,-1,e.hourElement)):P>_&&(P=C===e.hourElement?P-_-Ee(!e.amPM):N,ke&&S(void 0,1,e.hourElement)),e.amPM&&W&&(B===1?P+V===23:Math.abs(P-V)>B)&&(e.amPM.textContent=e.l10n.amPM[Ee(e.amPM.textContent===e.l10n.amPM[0])]),C.value=ue(P)}}return a(),e}function st(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=Vs(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 st(this,n)},HTMLElement.prototype.flatpickr=function(n){return st([this],n)});var ee=function(n,r){return typeof n=="string"?st(window.document.querySelectorAll(n),r):n instanceof Node?st([n],r):st(n,r)};ee.defaultConfig={},ee.l10ns={en:Object.assign({},kt),default:Object.assign({},kt)},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=or({}),ee.formatDate=pa({}),ee.compareDates=ye,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return st(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 Rp="",ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ha={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=ma.charAt(Math.floor(Math.random()*ma.length));return r}};function Bs(n,r=500){let e=null;return function(...o){e&&clearTimeout(e),e=setTimeout(()=>{n(...o)},r)}}const Pe={error:"",help:"",label:"",modelValue:void 0,placeholder:""},Ae=n=>{const r=t.useAttrs(),e=ga(n.props,"error"),o=ga(n.props,"modelValue"),a=t.toRef(n.targetInput),i=t.computed(()=>r.id||ha.CreateIdAttribute()),l=t.computed(()=>ir(r,"disabled")),s=t.computed(()=>ir(r,"required")),d=t.computed(()=>typeof r.name=="string"&&r.name!==""?r.name:i.value),c=p=>{p.type==="invalid"&&(e.value=p.target.validationMessage)},u=p=>{var m;if(!e.value)return;(m=a==null?void 0:a.value)==null||m.setCustomValidity("");const b=p.target;b.checkValidity()?e.value="":e.value=b.validationMessage},h=Bs(u,350);return t.onMounted(()=>{t.watch(e,p=>{var b,m;(b=a==null?void 0:a.value)==null||b.setCustomValidity(p||""),p&&((m=a==null?void 0:a.value)==null||m.reportValidity())})}),{attrs:r,inputID:i,isDisabled:l,isRequired:s,nameAttr:d,modelState:o,errorState:e,onInvalid:c,validate:u,inputValidation:h}},ir=(n,r)=>n[r]!==void 0&&n[r]!==null&&n[r]!==!1&&n[r]!==0,Ts=String.raw`^\w+([\-+.']\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$`,Ms=String.raw`(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*\(\)_+=\-]).{8,}`,Os=String.raw`[0-9]{10}|[0-9]{3}-[0-9]{3}-[0-9]{4}`,Ps=n=>{const r=parseFloat(n);return isNaN(r)?n:r},ga=(n,r)=>{const e=t.getCurrentInstance(),o=t.ref(n[r]);return t.watch(()=>n[r],a=>o.value=a),t.watch(o,a=>{a!==n[r]&&e.emit(`update:${String(r)}`,a)}),o},As=["id","aria-labelledby","aria-describedby","placeholder"],Is={key:0,class:"mt-0.5"},Rs={class:"text-sm text-red-700"},dn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeDefaults({modelValue:{},maxRange:{},startDate:{},error:{},label:{},help:{},placeholder:{}},{...Pe,maxRange:0,modelValue:()=>({maxDate:0,minDate:0}),placeholder:"mm-dd-yyyy range",startDate:0}),setup(n){const r=n,e=t.ref(null),{errorState:o,modelState:a,inputID:i,isRequired:l,onInvalid:s,validate:d}=Ae({props:r,targetInput:e}),c=u=>{a.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:r.startDate,onClose:h=>{h.length===2?c({minDate:h[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(h[1].setUTCHours(23,59,59,999)/1e3)}):h.length===0&&c({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=(h,p,b)=>{if(h.length===1){var m=new Date(h[0].getTime()),y=new Date(h[0].getTime());m.setDate(m.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const x=new Date;m>x&&(m=x),b.set("minDate",y),b.set("maxDate",m)}}),ee(`#${i.value}`,u)}),(u,h)=>{const p=t.resolveComponent("InputLabel"),b=t.resolveComponent("InputHelp");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(p,{id:`${t.unref(i)}-label`,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),ref_key:"targetInput",ref:e,"aria-labelledby":u.label?`${t.unref(i)}-label`:void 0,"aria-describedby":u.help?`${t.unref(i)}-help`: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(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:h[0]||(h[0]=(...m)=>t.unref(d)&&t.unref(d)(...m)),onInvalid:h[1]||(h[1]=(...m)=>t.unref(s)&&t.unref(s)(...m))}),null,16,As),t.createVNode(b,{id:`${t.unref(i)}-help`,class:"mt-1",text:u.help},null,8,["id","text"]),t.unref(o)?(t.openBlock(),t.createElementBlock("div",Is,[t.createElementVNode("p",Rs,t.toDisplayString(t.unref(o)),1)])):t.createCommentVNode("",!0)])}}}),Ls={key:0,class:"text-red-700/80"},we=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)}}),fe=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)}}),Fs=["id","aria-labelledby","aria-describedby","value"],js=["textContent"],Hs=["value","disabled","textContent"],Us={key:0,class:"mt-0.5"},zs={class:"text-sm text-red-700"},lr=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeDefaults({modelValue:{},options:{},error:{},label:{},help:{},placeholder:{}},{...Pe,placeholder:"Select an option"}),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref(null),{inputID:o,isRequired:a,validate:i,modelState:l,errorState:s,onInvalid:d}=Ae({props:r,targetInput:e}),c=u=>{l.value=u.target.value,i(u)};return(u,h)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(we,{id:`${t.unref(o)}-label`,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),ref_key:"targetInput",ref:e,"aria-labelledby":u.label?`${t.unref(o)}-label`:void 0,"aria-describedby":u.help?`${t.unref(o)}-help`: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 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:c,onInvalid:h[0]||(h[0]=(...p)=>t.unref(d)&&t.unref(d)(...p))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(u.placeholder)},null,8,js),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,p=>(t.openBlock(),t.createElementBlock("option",{key:p.value,value:p.value,disabled:p.disabled,textContent:t.toDisplayString(p.label)},null,8,Hs))),128))],16,Fs),t.createVNode(fe,{id:`${t.unref(o)}-help`,class:"mt-1",text:u.help},null,8,["id","text"]),t.unref(s)?(t.openBlock(),t.createElementBlock("div",Us,[t.createElementVNode("p",zs,t.toDisplayString(t.unref(s)),1)])):t.createCommentVNode("",!0)]))}}),qs={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Ys={class:"flex-1 min-w-0"},Ws={class:"text-lg leading-6 font-semibold text-gray-900"},Ks={class:"mt-4 flex md:mt-0 md:ml-4"},sr=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=d=>{r("sort-dir-changed",d)},s=d=>{r("date-range-changed",d)};return(d,c)=>(t.openBlock(),t.createElementBlock("div",qs,[t.createElementVNode("div",Ys,[t.createElementVNode("h1",Ws,t.toDisplayString(d.title),1)]),t.createElementVNode("div",Ks,[t.createVNode(lr,{modelValue:a.value,"onUpdate:modelValue":[c[0]||(c[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(dn,{modelValue:o.value,"onUpdate:modelValue":[c[1]||(c[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function ct(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),d=t.ref(!1);let c=0,u;const h=()=>{u!==void 0&&u.abort()},p=(b={},m={})=>{c++;const y=c;u=new AbortController,d.value=!1,l.value=!1,s.value=!0;const x={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?b:{},method:r,params:["GET","get"].includes(r)?b:{},signal:u.signal,url:n};return Ze(x,{...e,...m}).then(E=>(o.value=E,a.value=void 0,d.value=!1,E),E=>{throw a.value=E,eo(E)&&(d.value=!0),E}).finally(()=>{y==c&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&p(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:d,hasFetched:i,abort:h,execute:p}}function Gs(n,r={}){return ct(n,"GET",r)}function Js(n,r={}){return ct(n,"DELETE",r)}function Xs(n,r={}){return ct(n,"PATCH",r)}function Zs(n,r={}){return ct(n,"POST",r)}function Qs(n,r={}){return ct(n,"PUT",r)}function ba(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=p=>{e={...e,...p}},a=p=>{r.value.delete(p)},i=p=>{const b=ha.CreateIdAttribute();return r.value.set(b,p),(p.persistent===void 0||!p.persistent)&&setTimeout(()=>a(b),e.removeDelay),b},l=p=>i(p),s=(p,b=!1)=>i({message:p,persistent:b,type:"error"}),d=(p,b=!1)=>i({message:p,persistent:b,type:"info"}),c=(p,b=!1)=>i({message:p,persistent:b,type:"success"}),u=(p,b=!1)=>i({message:p,persistent:b,type:"warning"}),h=(p="",b=!1)=>{const m=p||e.email,y=m?`Whoops! Something went wrong, please reach out to
|
|
12
|
+
<a class="underline text-xy-blue" href="mailto:${m}">${m}</a>
|
|
13
|
+
if the issue persists.`:"Whoops! Something went wrong.";return i({message:y,persistent:b,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:d,success:c,genericError:h},flashes:r,configure:o}}const ec=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 cr;function Ke(){return cr===void 0&&(cr=ba()),cr}const dr={error(n,r){Ke().flasher.error(n,r)},info(n,r){Ke().flasher.info(n,r)},success(n,r){Ke().flasher.success(n,r)},warning(n,r){Ke().flasher.warning(n,r)},genericError(n,r){Ke().flasher.genericError(n,r)}},tc={class:"px-4 flex items-center justify-between sm:px-0"},nc={class:"w-0 flex-1 flex"},rc=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),oc={class:"hidden md:flex"},ac=["onClick","textContent"],ic={class:"w-0 flex-1 flex justify-end"},lc=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),un=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",tc,[t.createElementVNode("div",nc,[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"]))},[rc,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",oc,[(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(d=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,ac))),128))]),t.createElementVNode("div",ic,[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 "),lc],2)])]))}}),sc={key:0,class:"shadow overflow-hidden sm:rounded-md border"},ya=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=d=>{const c={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};Rn.get(r.url,{},Object.assign(c,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,d&&(o.value=a.value.length!=0)},()=>{dr.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),(d,c)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(sr,{"date-range":e.value,"sort-dir":l.value,title:d.title,onSortDirChanged:c[0]||(c[0]=u=>l.value=u),onDateRangeChanged:c[1]||(c[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",sc,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,h)=>(t.openBlock(),t.createElementBlock("li",{key:h,class:t.normalizeClass({"border-t border-gray-200":h>0})},[t.renderSlot(d.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(d.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(un,{key:2,modelValue:i.value,"onUpdate:modelValue":[c[2]||(c[2]=u=>i.value=u),c[3]||(c[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),cc=["href"],wa=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(Gl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,cc))}}),dc={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},uc={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},fc={class:"p-4"},pc={class:"flex items-center"},mc={class:"w-0 flex-1 flex justify-between"},hc=["innerHTML"],gc={class:"ml-4 shrink-0 flex"},bc=["onClick"],yc=[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)],fn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ke(),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(()=>{ec(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(Ln),null,{default:t.withCtx(()=>[t.createElementVNode("div",dc,[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",uc,[t.createElementVNode("div",fc,[t.createElementVNode("div",pc,[t.createElementVNode("div",mc,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,hc)]),t.createElementVNode("div",gc,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:d=>t.unref(r).remove(l)},yc,8,bc)])])])])],2))),128))]),_:1})])]),_:1}))}}),jp="";function wc(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 xc(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 Cc(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 xa(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 pn(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 Ec={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},kc=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),_c={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"},Dc={class:"block absolute top-0 right-0 pt-4 pr-4"},Nc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),Sc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},vc={class:"mt-3 sm:mt-0 sm:text-left"},$c={class:"mt-2"},Vc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},Bc=["disabled","textContent"],Ca=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(wt),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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",Ec,[t.createVNode(t.unref(Oe),{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(Gt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),kc,t.createVNode(t.unref(Oe),{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",_c,[t.createElementVNode("div",Dc,[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))},[Nc,t.createVNode(t.unref(pn),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Sc,[t.createElementVNode("div",vc,[t.createVNode(t.unref(Hn),{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",$c,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",Vc,[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,Bc),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"]))}}),Tc={class:"aspect-square overflow-hidden"},Mc={class:"flex justify-center relative"},Oc={class:"sr-only"},Pc=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),Ac=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),ur=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",Tc,[t.createElementVNode("div",Mc,[t.createElementVNode("p",Oc,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),Pc,Ac])])],2)}}}),Ic={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"},Rc={class:"mt-2"},mn=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Zr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},d=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(c,u)=>(t.openBlock(),t.createBlock(t.unref(Ln),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",Ic,[t.createVNode(ur,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",Rc,[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:d,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}))}}),Lc={class:"h-screen flex overflow-hidden bg-gray-100"},Fc={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},jc={class:"absolute top-0 right-0 -mr-12 pt-2"},Hc=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Uc={class:"shrink-0 flex justify-center px-4"},zc=["src"],qc={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Yc={class:"flex-1 px-2 space-y-1"},Wc=["href","target"],Kc={key:0,class:"mt-auto"},Gc={class:"mt-6 px-2"},Jc=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Xc={class:"hidden lg:flex lg:shrink-0"},Zc={class:"flex flex-col w-64"},Qc={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},ed={class:"flex justify-center shrink-0 px-4"},td=["src"],nd={class:"mt-5 grow flex flex-col"},rd={class:"flex-1 px-2 bg-white space-y-1"},od=["href","target"],ad={key:0,class:"mt-atuo"},id={class:"mt-6 px-2"},ld={class:"flex flex-col w-0 flex-1 overflow-hidden"},sd={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},cd=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),dd={class:"flex-1 px-4 flex justify-between"},ud={class:"flex-1 flex"},fd={class:"flex items-center text-2xl text-white"},pd={class:"ml-4 flex items-center lg:ml-6"},md=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),hd=["href"],gd={class:"flex-1 relative overflow-y-auto focus:outline-none"},bd={class:"mx-auto"},Ea=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",Lc,[t.createVNode(t.unref(wt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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(Oe),{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(Gt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Oe),{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",Fc,[t.createVNode(t.unref(Oe),{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",jc,[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)},[Hc,t.createVNode(t.unref(pn),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Uc,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,zc)]),t.createElementVNode("div",qc,[t.createElementVNode("nav",Yc,[(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,Wc))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Kc,[t.createElementVNode("div",Gc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Jc]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Xc,[t.createElementVNode("div",Zc,[t.createElementVNode("div",Qc,[t.createElementVNode("div",ed,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,td)]),t.createElementVNode("div",nd,[t.createElementVNode("nav",rd,[(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,od))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",ad,[t.createElementVNode("div",id,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",ld,[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)},[cd,t.createVNode(t.unref(xc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",dd,[t.createElementVNode("div",ud,[t.createElementVNode("h1",fd,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",pd,[t.createVNode(t.unref(Un),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(zn),{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(Wl),{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(qn),{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(Yn),{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,hd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",gd,[t.createElementVNode("div",bd,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(fn),t.createVNode(mn)],64))}}),Dt=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=[is(5),ss()];return r.position==="auto"&&s.push(as()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=sa(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:oa});return(s,d)=>(t.openBlock(),t.createBlock(t.unref(Do),{as:s.as,class:"relative"},{default:t.withCtx(({open:c,close:u})=>[t.createVNode(t.unref(Ml),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:c,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(Ol),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:c,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),yd=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},wd={},xd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function Cd(n,r){return t.openBlock(),t.createElementBlock("div",xd,[t.renderSlot(n.$slots,"default")])}const ka=yd(wd,[["render",Cd]]),Ed={class:"absolute inset-0 overflow-hidden"},kd={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},_d={class:"w-screen max-w-md"},Dd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},Nd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},Sd={class:"flex items-center justify-between"},vd={class:"ml-3 h-7 flex items-center"},$d=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),Vd={class:"mt-1"},Bd=["textContent"],Td={class:"relative flex-1 py-6 px-4 sm:px-6"},_a=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(wt),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Kt),{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",Ed,[t.createVNode(t.unref(Gt),{class:"absolute inset-0"}),t.createElementVNode("div",kd,[t.createVNode(t.unref(Oe),{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",_d,[t.createElementVNode("div",Dd,[t.createElementVNode("div",Nd,[t.createElementVNode("div",Sd,[t.createVNode(t.unref(Hn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",vd,[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())},[$d,t.createVNode(t.unref(pn),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Vd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,Bd)])]),t.createElementVNode("div",Td,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Md=["onMouseover","onMouseleave"],Od=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),Pd=["onMouseleave"],Ad={class:"max-w-xs"},Da=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(Dt,{position:i.position,as:i.as},{button:t.withCtx(({open:s,close:d})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:c=>a(c,s),onMouseleave:c=>o(d)},[t.createVNode(t.unref(wc)),Od],40,Md)]),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(d=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(d=>o(s),["prevent"])},[t.createElementVNode("div",Ad,[t.renderSlot(i.$slots,"default")])],40,Pd)]),_:3},8,["position","as"]))}}),Id={class:"min-h-screen bg-gray-100"},Rd={class:"mx-auto px-4 sm:px-6 lg:px-8"},Ld={class:"flex justify-between h-16"},Fd={class:"flex"},jd={class:"shrink-0 flex items-center"},Hd=["src"],Ud={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},zd=["href","aria-current"],qd={class:"hidden sm:ml-6 sm:flex sm:items-center"},Yd=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Wd=["href"],Kd={class:"-mr-2 flex items-center sm:hidden"},Gd=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Jd={class:"pt-2 pb-3 space-y-1"},Xd=["href","aria-current"],Zd={class:"pt-4 pb-3 border-t border-gray-200"},Qd={class:"flex items-center px-4"},eu={class:"shrink-0"},tu={class:"ml-3"},nu=["textContent"],ru=["textContent"],ou={class:"mt-3 space-y-1"},au=["href"],iu={class:"mx-auto sm:px-6 lg:px-8"},lu={class:"px-4 py-8 sm:px-0"},Na=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",Id,[t.createVNode(t.unref(Dl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",Rd,[t.createElementVNode("div",Ld,[t.createElementVNode("div",Fd,[t.createElementVNode("div",jd,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,Hd)]),t.createElementVNode("div",Ud,[(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,zd))),128))])]),t.createElementVNode("div",qd,[t.createVNode(t.unref(Un),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(zn),{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(()=>[Yd,t.createVNode(t.unref(xa),{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(qn),{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(Yn),{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,Wd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",Kd,[t.createVNode(t.unref(Nl),{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(()=>[Gd,i?(t.openBlock(),t.createBlock(t.unref(pn),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Cc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Sl),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Jd,[(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,Xd))),128))]),t.createElementVNode("div",Zd,[t.createElementVNode("div",Qd,[t.createElementVNode("div",eu,[t.createVNode(t.unref(xa),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",tu,[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,nu)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,ru)])]),t.createElementVNode("div",ou,[(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,au))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",iu,[t.createElementVNode("div",lu,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(fn),t.createVNode(mn)],64))}}),su=n=>n==null,cu={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?")}},Sa=(n,r,e,o=cu)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),d=t.computed(()=>a.value.map(u=>{let h="";switch((u==null?void 0:u.alignment)||"left"){case"left":h="text-left";break;case"right":h="text-right";break;case"center":h="text-center";break}return{...u,alignment:h}})),c=t.computed(()=>i.value.map((u,h)=>({actions:l.value.actions.map(p=>({...p,disabled:typeof p.disabled=="function"?p.disabled.apply(void 0,[u,h]):p.disabled,onClick:()=>p.onClick(u,h,o),show:typeof p.show=="function"?p.show.apply(void 0,[u,h]):p.show})),rowData:u,cells:d.value.map(p=>{const b=typeof p.render=="string"?u[p.render]:p.render(u,h),m=(p==null?void 0:p.classNames)||"";return{...p,isComponent:t.isVNode(b),classNames:typeof m=="function"?m.apply(void 0,[u,h]):m,val:b}})})));return{columns:d,hasActions:s,isEmptyCellValue:su,rows:c}},du={key:0,class:"flex items-center space-x-2 justify-end"},uu={class:"isolate inline-flex rounded-md shadow-sm"},fu=["disabled","onClick"],pu={class:"relative inline-flex items-center gap-x-1.5"},va=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Io(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",du,[t.createElementVNode("span",uu,[(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",pu,[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,fu))),128))])])):t.createCommentVNode("",!0)}}),mu={class:"flex flex-col"},hu={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},gu={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},bu={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},yu={class:"min-w-full divide-y divide-gray-200"},wu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},xu={class:"bg-white divide-y divide-gray-200"},Cu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Eu={key:0},ku=["colspan"],$a=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}=Sa(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",mu,[t.createElementVNode("div",hu,[t.createElementVNode("div",gu,[t.createElementVNode("div",bu,[t.createElementVNode("table",yu,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,c)=>(t.openBlock(),t.createElementBlock("th",{key:c,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",d.alignment])},t.toDisplayString(d.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",wu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",xu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(d,c)=>(t.openBlock(),t.createElementBlock("tr",{key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.cells,(u,h)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:h,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",Cu,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(an),{key:0,actions:d.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(va,{key:1,actions:d.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",Eu,[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,ku)])):t.createCommentVNode("",!0)])])])])])]))}}),_u={class:"flex items-center justify-center space-x-8"},Du={class:"font-medium"},Nu={class:"flex items-center space-x-5"},Su={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},vu={key:1,class:"relative flex items-center justify-center"},$u=[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)],Vu={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Bu={key:0,class:"flex shrink-0"},Tu={key:0,class:"inline-flex rounded-md shadow-sm"},Mu=["textContent"],Ou={class:"ml-3 inline-flex rounded-md shadow-sm"},Pu=["textContent"],Va=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",_u,[t.createElementVNode("p",Du,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",Nu,[(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",Su)):a.step===l?(t.openBlock(),t.createElementBlock("div",vu,$u)):(t.openBlock(),t.createElementBlock("span",Vu))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Bu,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Tu,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,Mu)])),t.createElementVNode("span",Ou,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,Pu)])]))]))}}),Au={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},Iu={key:0,class:"w-full max-w-lg lg:max-w-xs"},Ru=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),Lu={class:"flex items-center gap-x-2"},Fu=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),ju={class:"flex-1"},Hu={key:1,class:"w-full max-w-lg lg:max-w-xs"},Uu=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1),zu={class:"flex items-center gap-x-2"},qu=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),Yu={class:"flex-1"},Wu={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Ku={class:"min-w-full divide-y divide-gray-200"},Gu={key:0},Ju=["onClick"],Xu={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Zu=[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)],Qu={key:1,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:"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)],tf={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},nf=[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)],rf={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},of={class:"bg-white divide-y divide-gray-200"},af=["onClick"],lf={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},sf={key:0},cf=["colspan"],Ba=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:m.value.minDate,maxDate:m.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:p.value,sortDir:b.value,q:x.value};Rn.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},()=>{dr.genericError()})},a=()=>{y.value.page=1,o()},i=()=>{if(S.value.maxRange){const A=new Date,R=A.setDate(A.getDate()-S.value.maxRange),M=new Date;m.value={minDate:Math.floor(R/1e3),maxDate:Math.floor(M.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:d,hasActions:c,isEmptyCellValue:u,rows:h}=Sa(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),p=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),b=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),m=t.ref({minDate:0,maxDate:0}),y=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),x=t.ref(""),E=A=>{y.value.page=1,m.value=A,o()},D=A=>{p.value==A?b.value=b.value==="desc"?"asc":"desc":(p.value=A,b.value="desc"),o()},S=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),H=t.computed(()=>!!h.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",Au,[A.tableOptions.search?(t.openBlock(),t.createElementBlock("div",Iu,[Ru,t.createElementVNode("div",Lu,[Fu,t.createElementVNode("div",ju,[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",Hu,[Uu,t.createElementVNode("div",zu,[qu,t.createElementVNode("div",Yu,[t.createVNode(dn,t.mergeProps({id:"table-date-range",modelValue:m.value,"onUpdate:modelValue":R[2]||(R[2]=U=>m.value=U)},{...S.value},{"onUpdate:modelValue":E}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wu,[t.createElementVNode("table",Ku,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(U,L)=>(t.openBlock(),t.createElementBlock("th",{key:L,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",Gu,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"])},[p.value!==U.sort?(t.openBlock(),t.createElementBlock("svg",Xu,Zu)):b.value=="desc"?(t.openBlock(),t.createElementBlock("svg",Qu,ef)):(t.openBlock(),t.createElementBlock("svg",tf,nf))],8,Ju)):t.createCommentVNode("",!0)],2))),128)),t.unref(c)?(t.openBlock(),t.createElementBlock("th",rf)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",of,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(U,L)=>(t.openBlock(),t.createElementBlock("tr",{key:L,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(c)?(t.openBlock(),t.createElementBlock("td",lf,[A.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(an),{key:0,actions:U.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(va,{key:1,actions:U.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,af))),128)),H.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",sf,[t.createElementVNode("td",{colspan:t.unref(h).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,cf)]))])])]),H.value?(t.openBlock(),t.createBlock(un,{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)])}}}),df=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),uf={class:"hidden sm:block"},ff=["onClick","textContent"],Ta=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 d="";return e.pillDesign?(d="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?d=d+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":d=d+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",d):(d="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?d=d+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":d=d+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(d=d+" ml-8"),d)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const d=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":l.pillDesign}])},[df,t.createVNode(d,{name:"tabs","model-value":l.modelValue,options:l.tabs,"onUpdate:modelValue":s[0]||(s[0]=c=>o(c))},null,8,["model-value","options"])],2),t.createElementVNode("div",uf,[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,(c,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(c.value,u>0)),onClick:t.withModifiers(h=>o(c.value),["prevent"]),textContent:t.toDisplayString(c.label)},null,10,ff))),128))],2)],2)])])}}}),pf={key:0,class:"sr-only"},mf={class:"ml-3 mt-0.5"},Ma=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(()=>ir(e,"disabled"));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(Il),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(Rl),{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",pf,"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(Ll),{key:0},{default:t.withCtx(()=>[t.createVNode(we,{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(Fl),{key:1},{default:t.withCtx(()=>[t.createVNode(fe,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),hf=["id","aria-labelledby","aria-describedby","placeholder","type","value"],gf={key:0,class:"mt-0.5"},bf={class:"text-sm text-red-700"},Oa=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeDefaults({modelValue:{},type:{},error:{},label:{},help:{},placeholder:{}},Pe),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:d,inputValidation:c}=Ae({props:e,targetInput:o});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:Ts};case"password":return{pattern:Ms};case"tel":return{pattern:Os};default:return{}}}),h=p=>{let b=p.target.value;e.type==="number"&&(b=Ps(b)),i.value=b,c(p)};return(p,b)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(we,{id:`${t.unref(l)}-label`,class:"mb-2",for:t.unref(l),label:p.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(l),ref_key:"targetInput",ref:o,"aria-labelledby":p.label?`${t.unref(l)}-label`:void 0,"aria-describedby":p.help?`${t.unref(l)}-help`: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:p.placeholder,type:p.type,value:t.unref(i)},{...u.value,...p.$attrs},{onInput:h,onInvalid:b[0]||(b[0]=(...m)=>t.unref(d)&&t.unref(d)(...m))}),null,16,hf),t.createVNode(fe,{id:`${t.unref(l)}-help`,class:"mt-1",text:p.help},null,8,["id","text"]),t.unref(a)?(t.openBlock(),t.createElementBlock("div",gf,[t.createElementVNode("p",bf,t.toDisplayString(t.unref(a)),1)])):t.createCommentVNode("",!0)]))}}),yf={class:"relative flex items-start"},wf={class:"flex items-center h-5"},xf=["id","aria-labelledby","aria-describedby","checked"],Cf={class:"ml-3"},Ef={key:0,class:"mt-0.5"},kf={class:"text-sm text-red-700"},Pa=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},error:{},label:{},help:{},placeholder:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref(null),{inputID:o,isDisabled:a,isRequired:i,errorState:l,modelState:s,validate:d,onInvalid:c}=Ae({props:r,targetInput:e}),u=h=>{s.value=h.target.checked,d(h)};return(h,p)=>(t.openBlock(),t.createElementBlock("div",yf,[t.createElementVNode("div",wf,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),ref_key:"targetInput",ref:e,"aria-labelledby":h.label?`${t.unref(o)}-label`:void 0,"aria-describedby":h.help?`${t.unref(o)}-help`:void 0,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"},h.$attrs,{onChange:u,onInvalid:p[0]||(p[0]=(...b)=>t.unref(c)&&t.unref(c)(...b))}),null,16,xf)]),t.createElementVNode("div",Cf,[t.createVNode(we,{id:`${t.unref(o)}-label`,for:t.unref(o),label:h.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(fe,{id:`${t.unref(o)}-help`,text:h.help},null,8,["id","text"]),t.unref(l)?(t.openBlock(),t.createElementBlock("div",Ef,[t.createElementVNode("p",kf,t.toDisplayString(t.unref(l)),1)])):t.createCommentVNode("",!0)])]))}}),_f={key:0,class:"text-red-700/80"},Nt=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",_f,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),Df=["aria-labelledby","aria-describedby"],Nf={key:0},Sf={key:1,class:"mt-0.5"},vf={class:"text-sm text-red-700"},$f={class:"flex"},Vf={class:"flex items-center h-5"},Bf=["id","aria-labelledby","aria-describedby","checked","disabled","onChange"],Tf={class:"ml-3"},Aa=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeDefaults({max:{},min:{},modelValue:{},options:{},error:{},label:{},help:{},placeholder:{},columns:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref(null),{inputID:o,isDisabled:a,modelState:i,errorState:l,validate:s}=Ae({props:r,targetInput:e}),d=(m,y)=>{const x=m.target.checked;Array.isArray(i.value)||(i.value=[]),x?i.value.push(y):i.value.splice(i.value.indexOf(y),1),s(m)},c=t.computed(()=>Array.isArray(i.value)?i.value.length:0),u=t.computed(()=>r.min||0),h=t.computed(()=>r.max||r.options.filter(m=>!m.disabled).length),p=t.computed(()=>c.value<u.value?`Please select ${u.value} of these option${u.value>1?"s":""}.`:c.value>h.value?`Please select only ${h.value} of these option${h.value>1?"s":""}.`:""),b=()=>{l.value||(l.value=p.value)};return(m,y)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-4","aria-labelledby":m.label?`${t.unref(o)}-legend`:void 0,"aria-describedby":m.help?`${t.unref(o)}-help`:void 0},[m.label?(t.openBlock(),t.createElementBlock("div",Nf,[t.createVNode(Nt,{id:`${t.unref(o)}-legend`,label:m.label,required:u.value>0},null,8,["id","label","required"]),m.help?(t.openBlock(),t.createBlock(fe,{key:0,id:`${t.unref(o)}-help`,tag:"p",text:m.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.unref(l)?(t.openBlock(),t.createElementBlock("div",Sf,[t.createElementVNode("p",vf,t.toDisplayString(t.unref(l)),1)])):t.createCommentVNode("",!0),p.value||t.unref(l)?(t.openBlock(),t.createElementBlock("input",{key:2,ref_key:"targetInput",ref:e,required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:b},null,544)):t.createCommentVNode("",!0),t.createElementVNode("div",$f,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-6",{"sm:grid sm:gap-x-5 sm:space-y-0":m.columns!==void 0,"sm:grid-cols-2":m.columns===2,"sm:grid-cols-3":m.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.options,(x,E)=>{var D;return t.openBlock(),t.createElementBlock("div",{key:x.value,class:"flex items-start"},[t.createElementVNode("div",Vf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(o)}-${E}`,"aria-labelledby":`${t.unref(o)}-${E}-label`,"aria-describedby":x.help?`${t.unref(o)}-${E}-help`:void 0,checked:(D=m.modelValue)==null?void 0:D.includes(x.value),disabled:x.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"},m.$attrs,{onChange:S=>d(S,x.value)}),null,16,Bf)]),t.createElementVNode("div",Tf,[t.createVNode(we,{id:`${t.unref(o)}-${E}-label`,for:`${t.unref(o)}-${E}`,label:x.label,class:t.normalizeClass(t.unref(a)||x.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(fe,{id:`${t.unref(o)}-${E}-help`,text:x.help},null,8,["id","text"])])])}),128))],2)])],8,Df))}}),Mf=["aria-labelledby","aria-describedby"],Of={key:0},Pf={key:1,class:"mt-0.5"},Af={class:"text-sm text-red-700"},If={class:"flex"},Rf={class:"flex items-center h-5"},Lf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value","onChange"],Ff={class:"ml-3"},Ia=t.defineComponent({inheritAttrs:!1,__name:"Radio",props:t.mergeDefaults({modelValue:{},options:{},error:{},label:{},help:{},placeholder:{},columns:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref([]),o=t.computed(()=>e.value.length===0?null:e.value[0]),{errorState:a,modelState:i,inputID:l,isDisabled:s,isRequired:d,onInvalid:c,validate:u}=Ae({props:r,targetInput:o}),h=(p,b)=>{i.value=b,u(p)};return(p,b)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":p.label?`${t.unref(l)}-legend`:void 0,"aria-describedby":p.help?`${t.unref(l)}-help`:void 0},[p.label?(t.openBlock(),t.createElementBlock("div",Of,[t.createVNode(Nt,{id:`${t.unref(l)}-legend`,label:p.label,required:t.unref(d)},null,8,["id","label","required"]),p.help?(t.openBlock(),t.createBlock(fe,{key:0,id:`${t.unref(l)}-help`,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.unref(a)?(t.openBlock(),t.createElementBlock("div",Pf,[t.createElementVNode("p",Af,t.toDisplayString(t.unref(a)),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",If,[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,(m,y)=>(t.openBlock(),t.createElementBlock("div",{key:m.value,class:"flex items-start"},[t.createElementVNode("div",Rf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(l)}-${y}`,ref_for:!0,ref_key:"radios",ref:e,"aria-describedby":m.help?`${t.unref(l)}-${y}-help`:void 0,"aria-labelledby":`${t.unref(l)}-${y}-label`,checked:t.unref(i)===m.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(a)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],disabled:m.disabled,name:t.unref(l),type:"radio",value:m.value},p.$attrs,{onChange:x=>h(x,m.value),onInvalid:b[0]||(b[0]=(...x)=>t.unref(c)&&t.unref(c)(...x))}),null,16,Lf)]),t.createElementVNode("div",Ff,[t.createVNode(we,{id:`${t.unref(l)}-${y}-label`,for:`${t.unref(l)}-${y}`,label:m.label,class:t.normalizeClass(t.unref(s)||m.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(fe,{id:`${t.unref(l)}-${y}-help`,text:m.help},null,8,["id","text"])])]))),128))],2)])],8,Mf))}}),jf=["id"],Hf={class:"text-sm text-red-700"},Uf={class:"flex-1 flex pr-1"},zf={class:"flex flex-col"},qf={key:1,class:"mt-auto mb-0"},Yf=["checked","name","required","value"],Ra=t.defineComponent({inheritAttrs:!1,__name:"RadioCards",props:t.mergeDefaults({options:{},modelValue:{},error:{},label:{},help:{},placeholder:{},columns:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref([]),o=t.computed(()=>e.value.length===0?null:e.value[0]),{inputID:a,isDisabled:i,isRequired:l,nameAttr:s,modelState:d,errorState:c,onInvalid:u}=Ae({props:r,targetInput:o}),h=p=>{p&&(c.value="")};return(p,b)=>(t.openBlock(),t.createBlock(t.unref(Pl),{modelValue:t.unref(d),"onUpdate:modelValue":[b[1]||(b[1]=m=>t.isRef(d)?d.value=m:null),h],disabled:t.unref(i),"aria-invalid":t.unref(c)?"true":null,"aria-errormessage":t.unref(c)?`error-${t.unref(a)}`:null},{default:t.withCtx(()=>[p.label?(t.openBlock(),t.createBlock(t.unref(Bo),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Nt,{tag:"div",label:p.label,required:t.unref(l)},null,8,["label","required"])]),_:1})):t.createCommentVNode("",!0),p.help?(t.openBlock(),t.createBlock(t.unref(Kn),{key:1},{default:t.withCtx(()=>[t.createVNode(fe,{text:p.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),t.unref(c)?(t.openBlock(),t.createElementBlock("div",{key:2,id:`error-${t.unref(a)}`},[t.createElementVNode("p",Hf,t.toDisplayString(t.unref(c)),1)],8,jf)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"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,m=>(t.openBlock(),t.createBlock(t.unref(Al),{key:m.value,as:"template",disabled:t.unref(i)||m.disabled,value:m.value},{default:t.withCtx(({active:y,checked:x,disabled:E})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative border rounded-lg shadow-sm p-4 flex focus:outline-none",[E?"cursor-not-allowed bg-gray-50 border-gray-200 opacity-90":"cursor-pointer bg-white border-gray-300",t.unref(c)&&!E?"border-red-700":"",x?"border-transparent":"",y?"border-xy-blue ring-2 ring-xy-blue-500":""]])},[t.createElementVNode("div",Uf,[t.createElementVNode("div",zf,[t.createVNode(t.unref(Bo),{as:"div"},{default:t.withCtx(()=>[t.createVNode(we,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Kn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(fe,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||p.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",qf,[t.createVNode(t.unref(Kn),{as:"div",class:"text-sm/5 font-medium mt-4 text-gray-800"},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"sublabel",{active:y,checked:x,disabled:E,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(Yl),{class:t.normalizeClass([x?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([y?"border":"border-2",x?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{ref_for:!0,ref_key:"hiddenRadios",ref:e,class:"sr-only top-1 left-1","aria-hidden":"true",checked:x,name:t.unref(s),required:t.unref(l),tabindex:"-1",type:"radio",value:m.value,onInvalid:b[0]||(b[0]=(...D)=>t.unref(u)&&t.unref(u)(...D))},null,40,Yf)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["modelValue","disabled","aria-invalid","aria-errormessage"]))}}),Wf=["id","aria-labelledby","aria-describedby","value"],Kf={key:0,class:"mt-0.5"},Gf={class:"text-sm text-red-700"},La=t.defineComponent({inheritAttrs:!1,__name:"TextArea",props:t.mergeDefaults({modelValue:{},error:{},label:{},help:{},placeholder:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref(null),{inputID:o,isRequired:a,modelState:i,errorState:l,onInvalid:s,inputValidation:d}=Ae({props:r,targetInput:e}),c=u=>{i.value=u.target.value,d(u)};return(u,h)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(we,{id:`${t.unref(o)}-label`,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),ref_key:"targetInput",ref:e,"aria-labelledby":u.label?`${t.unref(o)}-label`:void 0,"aria-describedby":u.help?`${t.unref(o)}-help`: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(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"],value:t.unref(i)||void 0},u.$attrs,{onInput:c,onInvalid:h[0]||(h[0]=(...p)=>t.unref(s)&&t.unref(s)(...p))}),null,16,Wf),t.createVNode(fe,{id:`${t.unref(o)}-help`,class:"mb-1",text:u.help},null,8,["id","text"]),t.unref(l)?(t.openBlock(),t.createElementBlock("div",Kf,[t.createElementVNode("p",Gf,t.toDisplayString(t.unref(l)),1)])):t.createCommentVNode("",!0)]))}}),Jf=["aria-labelledby","aria-describedby"],Xf={key:0},Zf={key:1,class:"mt-0.5"},Qf={class:"text-sm text-red-700"},ep=["for"],tp=["id","name","checked"],np=["for"],rp=["id","name","checked"],Fa=t.defineComponent({inheritAttrs:!1,__name:"YesOrNoRadio",props:t.mergeDefaults({modelValue:{type:[Boolean,null]},error:{},label:{},help:{},placeholder:{}},Pe),emits:["update:modelValue","update:error"],setup(n){const r=n,e=t.ref(null),{inputID:o,isDisabled:a,isRequired:i,nameAttr:l,modelState:s,errorState:d,onInvalid:c,validate:u}=Ae({props:r,targetInput:e}),h=(p,b)=>{s.value=b,u(p)};return(p,b)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-4","aria-labelledby":p.label?`${t.unref(o)}-legend`:void 0,"aria-describedby":p.help?`${t.unref(o)}-help`:void 0},[p.label?(t.openBlock(),t.createElementBlock("div",Xf,[t.createVNode(we,{class:"block my-auto",label:p.label,tag:"legend",required:t.unref(i)},null,8,["label","required"]),p.help?(t.openBlock(),t.createBlock(fe,{key:0,id:`${t.unref(o)}-help`,tag:"p",text:p.help},null,8,["id","text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.unref(d)?(t.openBlock(),t.createElementBlock("div",Zf,[t.createElementVNode("p",Qf,t.toDisplayString(t.unref(d)),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center group",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(l)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(l)}-true`,rel:"targetInput",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(d)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(l),value:!0,checked:t.unref(s)===!0},p.$attrs,{onChange:b[0]||(b[0]=m=>h(m,!0)),onInvalid:b[1]||(b[1]=(...m)=>t.unref(c)&&t.unref(c)(...m))}),null,16,tp),t.createVNode(we,{class:"ml-3",label:"Yes",tag:"span"})],10,ep),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",t.unref(a)?"cursor-not-allowed":"cursor-pointer"]),for:`${t.unref(l)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(l)}-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(d)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],name:t.unref(l),value:!1,checked:t.unref(s)===!1},p.$attrs,{onChange:b[2]||(b[2]=m=>h(m,!1)),onInvalid:b[3]||(b[3]=(...m)=>t.unref(c)&&t.unref(c)(...m))}),null,16,rp),t.createVNode(we,{class:"ml-3",label:"No",tag:"span"})],10,np)])],8,Jf))}}),op=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:an,BaseInput:Oa,Cards:ca,Checkbox:Pa,ContentModal:da,DataTable:$a,DateFilter:sr,DateRangePicker:dn,DetailList:ya,DownloadCell:wa,DynamicTable:Ba,FieldsetLegend:Nt,Flash:fn,InputHelp:fe,InputLabel:we,Modal:Ca,MultiCheckboxes:Aa,Paginator:un,Popover:Dt,PopoverContent:ka,PopoverPosition:Dt,Radio:Ia,RadioCards:Ra,Select:lr,SidebarLayout:Ea,Slideover:_a,Spinner:mn,StackedLayout:Na,Steps:Va,Tabs:Ta,TextArea:La,Toggle:Ma,Tooltip:Da,XYSpinner:ur,YesOrNoRadio:Fa},Symbol.toStringTag,{value:"Module"})),ap=function(r){Object.entries(op).forEach(([e,o])=>{r.component(e,o)})};v.ActionsDropdown=an,v.BaseAPI=Rn,v.BaseInput=Oa,v.Cards=ca,v.Checkbox=Pa,v.ContentModal=da,v.DataTable=$a,v.DateFilter=sr,v.DateRangePicker=dn,v.DetailList=ya,v.DownloadCell=wa,v.DynamicTable=Ba,v.FieldsetLegend=Nt,v.Flash=fn,v.InputHelp=fe,v.InputLabel=we,v.Modal=Ca,v.MultiCheckboxes=Aa,v.Paginator=un,v.Popover=Dt,v.PopoverContent=ka,v.PopoverPosition=Dt,v.Radio=Ia,v.RadioCards=Ra,v.Select=lr,v.SidebarLayout=Ea,v.Slideover=_a,v.Spinner=mn,v.StackedLayout=Na,v.Steps=Va,v.Tabs=Ta,v.TextArea=La,v.Toggle=Ma,v.Tooltip=Da,v.XYSpinner=ur,v.YesOrNoRadio=Fa,v.default=ap,v.isHttpCancel=eo,v.isHttpError=Qr,v.setBaseAPIDefaults=dl,v.useAppFlasher=dr,v.useAppFlashes=Ke,v.useAppSpinner=In,v.useBaseAPI=ct,v.useBaseAPIDelete=Js,v.useBaseAPIGet=Gs,v.useBaseAPIPatch=Xs,v.useBaseAPIPost=Zs,v.useBaseAPIPut=Qs,v.useFlashes=ba,v.useSpinnerDisplay=Xr,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|