@qikdev/vue-ui 0.2.95 → 0.2.99
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/lib.es.js +8 -5
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lib.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(E,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@qikdev/sdk")):typeof define=="function"&&define.amd?define(["exports","vue","@qikdev/sdk"],t):(E=typeof globalThis<"u"?globalThis:E||self,t(E["@qikdev/vue-ui"]={},E.Vue,E["@qikdev/sdk"]))})(this,function(E,t,As){"use strict";const Ms="0.2.95";class at extends Error{}class Fs extends at{constructor(n){super(`Invalid DateTime: ${n.toMessage()}`)}}class Is extends at{constructor(n){super(`Invalid Interval: ${n.toMessage()}`)}}class $s extends at{constructor(n){super(`Invalid Duration: ${n.toMessage()}`)}}class zt extends at{}class bo extends at{constructor(n){super(`Invalid unit ${n}`)}}class Ne extends at{}class Je extends at{constructor(){super("Zone is an abstract class")}}const C="numeric",Oe="short",we="long",dr={year:C,month:C,day:C},Co={year:C,month:Oe,day:C},Ls={year:C,month:Oe,day:C,weekday:Oe},wo={year:C,month:we,day:C},Vo={year:C,month:we,day:C,weekday:we},Eo={hour:C,minute:C},Bo={hour:C,minute:C,second:C},No={hour:C,minute:C,second:C,timeZoneName:Oe},So={hour:C,minute:C,second:C,timeZoneName:we},To={hour:C,minute:C,hourCycle:"h23"},Do={hour:C,minute:C,second:C,hourCycle:"h23"},Oo={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:Oe},Ao={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:we},Mo={year:C,month:C,day:C,hour:C,minute:C},Fo={year:C,month:C,day:C,hour:C,minute:C,second:C},Io={year:C,month:Oe,day:C,hour:C,minute:C},$o={year:C,month:Oe,day:C,hour:C,minute:C,second:C},Ps={year:C,month:Oe,day:C,weekday:Oe,hour:C,minute:C},Lo={year:C,month:we,day:C,hour:C,minute:C,timeZoneName:Oe},Po={year:C,month:we,day:C,hour:C,minute:C,second:C,timeZoneName:Oe},Uo={year:C,month:we,day:C,weekday:we,hour:C,minute:C,timeZoneName:we},jo={year:C,month:we,day:C,weekday:we,hour:C,minute:C,second:C,timeZoneName:we};function I(e){return typeof e>"u"}function st(e){return typeof e=="number"}function gn(e){return typeof e=="number"&&e%1===0}function Us(e){return typeof e=="string"}function js(e){return Object.prototype.toString.call(e)==="[object Date]"}function Ro(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Rs(e){return Array.isArray(e)?e:[e]}function zo(e,n,r){if(e.length!==0)return e.reduce((i,l)=>{const o=[n(l),l];return i&&r(i[0],o[0])===i[0]?i:o},null)[1]}function zs(e,n){return n.reduce((r,i)=>(r[i]=e[i],r),{})}function _t(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Ge(e,n,r){return gn(e)&&e>=n&&e<=r}function Hs(e,n){return e-n*Math.floor(e/n)}function te(e,n=2){const r=e<0;let i;return r?i="-"+(""+-e).padStart(n,"0"):i=(""+e).padStart(n,"0"),i}function Xe(e){if(!(I(e)||e===null||e===""))return parseInt(e,10)}function ct(e){if(!(I(e)||e===null||e===""))return parseFloat(e)}function ur(e){if(!(I(e)||e===null||e==="")){const n=parseFloat("0."+e)*1e3;return Math.floor(n)}}function mr(e,n,r=!1){const i=10**n;return(r?Math.trunc:Math.round)(e*i)/i}function Ht(e){return e%4===0&&(e%100!==0||e%400===0)}function qt(e){return Ht(e)?366:365}function _n(e,n){const r=Hs(n-1,12)+1,i=e+(n-r)/12;return r===2?Ht(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function fr(e){let n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(n=new Date(n),n.setUTCFullYear(n.getUTCFullYear()-1900)),+n}function kn(e){const n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,i=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return n===4||i===3?53:52}function pr(e){return e>99?e:e>60?1900+e:2e3+e}function Ho(e,n,r,i=null){const l=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:n,...o},s=new Intl.DateTimeFormat(r,a).formatToParts(l).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function xn(e,n){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(n,10)||0,l=r<0||Object.is(r,-0)?-i:i;return r*60+l}function qo(e){const n=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(n))throw new Ne(`Invalid unit value ${e}`);return n}function bn(e,n){const r={};for(const i in e)if(_t(e,i)){const l=e[i];if(l==null)continue;r[n(i)]=qo(l)}return r}function Cn(e,n){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(n){case"short":return`${l}${te(r,2)}:${te(i,2)}`;case"narrow":return`${l}${r}${i>0?`:${i}`:""}`;case"techie":return`${l}${te(r,2)}${te(i,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}function wn(e){return zs(e,["hour","minute","second","millisecond"])}const qs=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,Gs=["January","February","March","April","May","June","July","August","September","October","November","December"],Go=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ws=["J","F","M","A","M","J","J","A","S","O","N","D"];function Wo(e){switch(e){case"narrow":return[...Ws];case"short":return[...Go];case"long":return[...Gs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ko=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Yo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ks=["M","T","W","T","F","S","S"];function Zo(e){switch(e){case"narrow":return[...Ks];case"short":return[...Yo];case"long":return[...Ko];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Jo=["AM","PM"],Ys=["Before Christ","Anno Domini"],Zs=["BC","AD"],Js=["B","A"];function Xo(e){switch(e){case"narrow":return[...Js];case"short":return[...Zs];case"long":return[...Ys];default:return null}}function Xs(e){return Jo[e.hour<12?0:1]}function Qs(e,n){return Zo(n)[e.weekday-1]}function vs(e,n){return Wo(n)[e.month-1]}function ec(e,n){return Xo(n)[e.year<0?0:1]}function tc(e,n,r="always",i=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const m=e==="days";switch(n){case 1:return m?"tomorrow":`next ${l[e][0]}`;case-1:return m?"yesterday":`last ${l[e][0]}`;case 0:return m?"today":`this ${l[e][0]}`}}const a=Object.is(n,-0)||n<0,s=Math.abs(n),c=s===1,d=l[e],u=i?c?d[1]:d[2]||d[1]:c?l[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function Qo(e,n){let r="";for(const i of e)i.literal?r+=i.val:r+=n(i.val);return r}const nc={D:dr,DD:Co,DDD:wo,DDDD:Vo,t:Eo,tt:Bo,ttt:No,tttt:So,T:To,TT:Do,TTT:Oo,TTTT:Ao,f:Mo,ff:Io,fff:Lo,ffff:Uo,F:Fo,FF:$o,FFF:Po,FFFF:jo};class _e{static create(n,r={}){return new _e(n,r)}static parseFormat(n){let r=null,i="",l=!1;const o=[];for(let a=0;a<n.length;a++){const s=n.charAt(a);s==="'"?(i.length>0&&o.push({literal:l,val:i}),r=null,i="",l=!l):l||s===r?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,r=s)}return i.length>0&&o.push({literal:l,val:i}),o}static macroTokenToFormatOpts(n){return nc[n]}constructor(n,r){this.opts=r,this.loc=n,this.systemLoc=null}formatWithSystemDefault(n,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,{...this.opts,...r}).format()}formatDateTime(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).format()}formatDateTimeParts(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).formatToParts()}resolvedOptions(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).resolvedOptions()}num(n,r=0){if(this.opts.forceSimple)return te(n,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(n)}formatDateTimeFromString(n,r){const i=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,h)=>this.loc.extract(n,p,h),a=p=>n.isOffsetFixed&&n.offset===0&&p.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,p.format):"",s=()=>i?Xs(n):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,h)=>i?vs(n,p):o(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>i?Qs(n,p):o(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{const h=_e.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(n,h):p},m=p=>i?ec(n,p):o({era:p},"era"),f=p=>{switch(p){case"S":return this.num(n.millisecond);case"u":case"SSS":return this.num(n.millisecond,3);case"s":return this.num(n.second);case"ss":return this.num(n.second,2);case"uu":return this.num(Math.floor(n.millisecond/10),2);case"uuu":return this.num(Math.floor(n.millisecond/100));case"m":return this.num(n.minute);case"mm":return this.num(n.minute,2);case"h":return this.num(n.hour%12===0?12:n.hour%12);case"hh":return this.num(n.hour%12===0?12:n.hour%12,2);case"H":return this.num(n.hour);case"HH":return this.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:this.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return l?o({day:"numeric"},"day"):this.num(n.day);case"dd":return l?o({day:"2-digit"},"day"):this.num(n.day,2);case"c":return this.num(n.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(n.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return l?o({month:"numeric",day:"numeric"},"month"):this.num(n.month);case"LL":return l?o({month:"2-digit",day:"numeric"},"month"):this.num(n.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return l?o({month:"numeric"},"month"):this.num(n.month);case"MM":return l?o({month:"2-digit"},"month"):this.num(n.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return l?o({year:"numeric"},"year"):this.num(n.year);case"yy":return l?o({year:"2-digit"},"year"):this.num(n.year.toString().slice(-2),2);case"yyyy":return l?o({year:"numeric"},"year"):this.num(n.year,4);case"yyyyyy":return l?o({year:"numeric"},"year"):this.num(n.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(n.weekYear.toString().slice(-2),2);case"kkkk":return this.num(n.weekYear,4);case"W":return this.num(n.weekNumber);case"WW":return this.num(n.weekNumber,2);case"o":return this.num(n.ordinal);case"ooo":return this.num(n.ordinal,3);case"q":return this.num(n.quarter);case"qq":return this.num(n.quarter,2);case"X":return this.num(Math.floor(n.ts/1e3));case"x":return this.num(n.ts);default:return u(p)}};return Qo(_e.parseFormat(r),f)}formatDurationFromString(n,r){const i=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=c=>d=>{const u=i(d);return u?this.num(c.get(u),d.length):d},o=_e.parseFormat(r),a=o.reduce((c,{literal:d,val:u})=>d?c:c.concat(u),[]),s=n.shiftTo(...a.map(i).filter(c=>c));return Qo(o,l(s))}}class Ae{constructor(n,r){this.reason=n,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Gt{get type(){throw new Je}get name(){throw new Je}get isUniversal(){throw new Je}offsetName(n,r){throw new Je}formatOffset(n,r){throw new Je}offset(n){throw new Je}equals(n){throw new Je}get isValid(){throw new Je}}let hr=null;class yr extends Gt{static get instance(){return hr===null&&(hr=new yr),hr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return Ho(n,r,i)}formatOffset(n,r){return Cn(this.offset(n),r)}offset(n){return-new Date(n).getTimezoneOffset()}equals(n){return n.type==="system"}get isValid(){return!0}}let Vn={};function rc(e){return Vn[e]||(Vn[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Vn[e]}const oc={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ic(e,n){const r=e.format(n).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,l,o,a,s,c,d,u]=i;return[a,l,o,s,c,d,u]}function lc(e,n){const r=e.formatToParts(n),i=[];for(let l=0;l<r.length;l++){const{type:o,value:a}=r[l],s=oc[o];o==="era"?i[s]=a:I(s)||(i[s]=parseInt(a,10))}return i}let En={};class We extends Gt{static create(n){return En[n]||(En[n]=new We(n)),En[n]}static resetCache(){En={},Vn={}}static isValidSpecifier(n){return this.isValidZone(n)}static isValidZone(n){if(!n)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch{return!1}}constructor(n){super(),this.zoneName=n,this.valid=We.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return Ho(n,r,i,this.name)}formatOffset(n,r){return Cn(this.offset(n),r)}offset(n){const r=new Date(n);if(isNaN(r))return NaN;const i=rc(this.name);let[l,o,a,s,c,d,u]=i.formatToParts?lc(i,r):ic(i,r);s==="BC"&&(l=-Math.abs(l)+1);const f=fr({year:l,month:o,day:a,hour:c===24?0:c,minute:d,second:u,millisecond:0});let p=+r;const h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let gr=null;class fe extends Gt{static get utcInstance(){return gr===null&&(gr=new fe(0)),gr}static instance(n){return n===0?fe.utcInstance:new fe(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new fe(xn(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Cn(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return Cn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(n){return n.type==="fixed"&&n.fixed===this.fixed}get isValid(){return!0}}class ac extends Gt{constructor(n){super(),this.zoneName=n}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qe(e,n){if(I(e)||e===null)return n;if(e instanceof Gt)return e;if(Us(e)){const r=e.toLowerCase();return r==="local"||r==="system"?n:r==="utc"||r==="gmt"?fe.utcInstance:fe.parseSpecifier(r)||We.create(e)}else return st(e)?fe.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new ac(e)}let vo=()=>Date.now(),ei="system",ti=null,ni=null,ri=null,oi;class re{static get now(){return vo}static set now(n){vo=n}static set defaultZone(n){ei=n}static get defaultZone(){return Qe(ei,yr.instance)}static get defaultLocale(){return ti}static set defaultLocale(n){ti=n}static get defaultNumberingSystem(){return ni}static set defaultNumberingSystem(n){ni=n}static get defaultOutputCalendar(){return ri}static set defaultOutputCalendar(n){ri=n}static get throwOnInvalid(){return oi}static set throwOnInvalid(n){oi=n}static resetCaches(){X.resetCache(),We.resetCache()}}let ii={};function sc(e,n={}){const r=JSON.stringify([e,n]);let i=ii[r];return i||(i=new Intl.ListFormat(e,n),ii[r]=i),i}let _r={};function kr(e,n={}){const r=JSON.stringify([e,n]);let i=_r[r];return i||(i=new Intl.DateTimeFormat(e,n),_r[r]=i),i}let xr={};function cc(e,n={}){const r=JSON.stringify([e,n]);let i=xr[r];return i||(i=new Intl.NumberFormat(e,n),xr[r]=i),i}let br={};function dc(e,n={}){const{base:r,...i}=n,l=JSON.stringify([e,i]);let o=br[l];return o||(o=new Intl.RelativeTimeFormat(e,n),br[l]=o),o}let Wt=null;function uc(){return Wt||(Wt=new Intl.DateTimeFormat().resolvedOptions().locale,Wt)}function mc(e){const n=e.indexOf("-u-");if(n===-1)return[e];{let r;const i=e.substring(0,n);try{r=kr(e).resolvedOptions()}catch{r=kr(i).resolvedOptions()}const{numberingSystem:l,calendar:o}=r;return[i,l,o]}}function fc(e,n,r){return(r||n)&&(e+="-u",r&&(e+=`-ca-${r}`),n&&(e+=`-nu-${n}`)),e}function pc(e){const n=[];for(let r=1;r<=12;r++){const i=S.utc(2016,r,1);n.push(e(i))}return n}function hc(e){const n=[];for(let r=1;r<=7;r++){const i=S.utc(2016,11,13+r);n.push(e(i))}return n}function Bn(e,n,r,i,l){const o=e.listingMode(r);return o==="error"?null:o==="en"?i(n):l(n)}function yc(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class gc{constructor(n,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:l,floor:o,...a}=i;if(!r||Object.keys(a).length>0){const s={useGrouping:!1,...i};i.padTo>0&&(s.minimumIntegerDigits=i.padTo),this.inf=cc(n,s)}}format(n){if(this.inf){const r=this.floor?Math.floor(n):n;return this.inf.format(r)}else{const r=this.floor?Math.floor(n):mr(n,3);return te(r,this.padTo)}}}class _c{constructor(n,r,i){this.opts=i;let l;if(n.zone.isUniversal){const a=-1*(n.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;n.offset!==0&&We.create(s).valid?(l=s,this.dt=n):(l="UTC",i.timeZoneName?this.dt=n:this.dt=n.offset===0?n:S.fromMillis(n.ts+n.offset*60*1e3))}else n.zone.type==="system"?this.dt=n:(this.dt=n,l=n.zone.name);const o={...this.opts};l&&(o.timeZone=l),this.dtf=kr(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class kc{constructor(n,r,i){this.opts={style:"long",...i},!r&&Ro()&&(this.rtf=dc(n,i))}format(n,r){return this.rtf?this.rtf.format(n,r):tc(r,n,this.opts.numeric,this.opts.style!=="long")}formatToParts(n,r){return this.rtf?this.rtf.formatToParts(n,r):[]}}class X{static fromOpts(n){return X.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)}static create(n,r,i,l=!1){const o=n||re.defaultLocale,a=o||(l?"en-US":uc()),s=r||re.defaultNumberingSystem,c=i||re.defaultOutputCalendar;return new X(a,s,c,o)}static resetCache(){Wt=null,_r={},xr={},br={}}static fromObject({locale:n,numberingSystem:r,outputCalendar:i}={}){return X.create(n,r,i)}constructor(n,r,i,l){const[o,a,s]=mc(n);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=i||s||null,this.intl=fc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=yc(this)),this.fastNumbersCached}listingMode(){const n=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return n&&r?"en":"intl"}clone(n){return!n||Object.getOwnPropertyNames(n).length===0?this:X.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1)}redefaultToEN(n={}){return this.clone({...n,defaultToEN:!0})}redefaultToSystem(n={}){return this.clone({...n,defaultToEN:!1})}months(n,r=!1,i=!0){return Bn(this,n,i,Wo,()=>{const l=r?{month:n,day:"numeric"}:{month:n},o=r?"format":"standalone";return this.monthsCache[o][n]||(this.monthsCache[o][n]=pc(a=>this.extract(a,l,"month"))),this.monthsCache[o][n]})}weekdays(n,r=!1,i=!0){return Bn(this,n,i,Zo,()=>{const l=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},o=r?"format":"standalone";return this.weekdaysCache[o][n]||(this.weekdaysCache[o][n]=hc(a=>this.extract(a,l,"weekday"))),this.weekdaysCache[o][n]})}meridiems(n=!0){return Bn(this,void 0,n,()=>Jo,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(i=>this.extract(i,r,"dayperiod"))}return this.meridiemCache})}eras(n,r=!0){return Bn(this,n,r,Xo,()=>{const i={era:n};return this.eraCache[n]||(this.eraCache[n]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(l=>this.extract(l,i,"era"))),this.eraCache[n]})}extract(n,r,i){const l=this.dtFormatter(n,r),o=l.formatToParts(),a=o.find(s=>s.type.toLowerCase()===i);return a?a.value:null}numberFormatter(n={}){return new gc(this.intl,n.forceSimple||this.fastNumbers,n)}dtFormatter(n,r={}){return new _c(n,this.intl,r)}relFormatter(n={}){return new kc(this.intl,this.isEnglish(),n)}listFormatter(n={}){return sc(this.intl,n)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar}}function kt(...e){const n=e.reduce((r,i)=>r+i.source,"");return RegExp(`^${n}$`)}function dt(...e){return n=>e.reduce(([r,i,l],o)=>{const[a,s,c]=o(n,l);return[{...r,...a},i||s,c]},[{},null,1]).slice(0,2)}function xt(e,...n){if(e==null)return[null,null];for(const[r,i]of n){const l=r.exec(e);if(l)return i(l)}return[null,null]}function li(...e){return(n,r)=>{const i={};let l;for(l=0;l<e.length;l++)i[e[l]]=Xe(n[r+l]);return[i,null,r+l]}}const ai=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Cr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,si=RegExp(`${Cr.source}${ai.source}?`),wr=RegExp(`(?:T${si.source})?`),xc=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bc=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Cc=/(\d{4})-?(\d{3})/,wc=li("weekYear","weekNumber","weekDay"),Vc=li("year","ordinal"),Ec=/(\d{4})-(\d\d)-(\d\d)/,ci=RegExp(`${Cr.source} ?(?:${ai.source}|(${qs.source}))?`),Bc=RegExp(`(?: ${ci.source})?`);function bt(e,n,r){const i=e[n];return I(i)?r:Xe(i)}function di(e,n){return[{year:bt(e,n),month:bt(e,n+1,1),day:bt(e,n+2,1)},null,n+3]}function ut(e,n){return[{hours:bt(e,n,0),minutes:bt(e,n+1,0),seconds:bt(e,n+2,0),milliseconds:ur(e[n+3])},null,n+4]}function Ct(e,n){const r=!e[n]&&!e[n+1],i=xn(e[n+1],e[n+2]),l=r?null:fe.instance(i);return[{},l,n+3]}function ui(e,n){const r=e[n]?We.create(e[n]):null;return[{},r,n+1]}const Nc=RegExp(`^T?${Cr.source}$`),Sc=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Tc(e){const[n,r,i,l,o,a,s,c,d]=e,u=n[0]==="-",m=c&&c[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&u)?-p:p;return[{years:f(ct(r)),months:f(ct(i)),weeks:f(ct(l)),days:f(ct(o)),hours:f(ct(a)),minutes:f(ct(s)),seconds:f(ct(c),c==="-0"),milliseconds:f(ur(d),m)}]}const Dc={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Vr(e,n,r,i,l,o,a){const s={year:n.length===2?pr(Xe(n)):Xe(n),month:Go.indexOf(r)+1,day:Xe(i),hour:Xe(l),minute:Xe(o)};return a&&(s.second=Xe(a)),e&&(s.weekday=e.length>3?Ko.indexOf(e)+1:Yo.indexOf(e)+1),s}const Oc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ac(e){const[,n,r,i,l,o,a,s,c,d,u,m]=e,f=Vr(n,l,i,r,o,a,s);let p;return c?p=Dc[c]:d?p=0:p=xn(u,m),[f,new fe(p)]}function Mc(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fc=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ic=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mi(e){const[,n,r,i,l,o,a,s]=e;return[Vr(n,l,i,r,o,a,s),fe.utcInstance]}function Lc(e){const[,n,r,i,l,o,a,s]=e;return[Vr(n,s,r,i,l,o,a),fe.utcInstance]}const Pc=kt(xc,wr),Uc=kt(bc,wr),jc=kt(Cc,wr),Rc=kt(si),zc=dt(di,ut,Ct),Hc=dt(wc,ut,Ct),qc=dt(Vc,ut,Ct),Gc=dt(ut,Ct);function Wc(e){return xt(e,[Pc,zc],[Uc,Hc],[jc,qc],[Rc,Gc])}function Kc(e){return xt(Mc(e),[Oc,Ac])}function Yc(e){return xt(e,[Fc,mi],[Ic,mi],[$c,Lc])}function Zc(e){return xt(e,[Sc,Tc])}const Jc=dt(ut);function Xc(e){return xt(e,[Nc,Jc])}const Qc=kt(Ec,Bc),vc=kt(ci),ed=dt(di,ut,Ct,ui),td=dt(ut,Ct,ui);function nd(e){return xt(e,[Qc,ed],[vc,td])}const rd="Invalid Duration",fi={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},od={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...fi},Se=146097/400,wt=146097/4800,id={years:{quarters:4,months:12,weeks:Se/7,days:Se,hours:Se*24,minutes:Se*24*60,seconds:Se*24*60*60,milliseconds:Se*24*60*60*1e3},quarters:{months:3,weeks:Se/28,days:Se/4,hours:Se*24/4,minutes:Se*24*60/4,seconds:Se*24*60*60/4,milliseconds:Se*24*60*60*1e3/4},months:{weeks:wt/7,days:wt,hours:wt*24,minutes:wt*24*60,seconds:wt*24*60*60,milliseconds:wt*24*60*60*1e3},...fi},mt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ld=mt.slice(0).reverse();function ft(e,n,r=!1){const i={values:r?n.values:{...e.values,...n.values||{}},loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new L(i)}function ad(e){return e<0?Math.floor(e):Math.ceil(e)}function pi(e,n,r,i,l){const o=e[l][r],a=n[r]/o,s=Math.sign(a)===Math.sign(i[l]),c=!s&&i[l]!==0&&Math.abs(a)<=1?ad(a):Math.trunc(a);i[l]+=c,n[r]-=c*o}function sd(e,n){ld.reduce((r,i)=>I(n[i])?r:(r&&pi(e,n,r,n,i),i),null)}class L{constructor(n){const r=n.conversionAccuracy==="longterm"||!1;this.values=n.values,this.loc=n.loc||X.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=r?id:od,this.isLuxonDuration=!0}static fromMillis(n,r){return L.fromObject({milliseconds:n},r)}static fromObject(n,r={}){if(n==null||typeof n!="object")throw new Ne(`Duration.fromObject: argument expected to be an object, got ${n===null?"null":typeof n}`);return new L({values:bn(n,L.normalizeUnit),loc:X.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(n){if(st(n))return L.fromMillis(n);if(L.isDuration(n))return n;if(typeof n=="object")return L.fromObject(n);throw new Ne(`Unknown duration argument ${n} of type ${typeof n}`)}static fromISO(n,r){const[i]=Zc(n);return i?L.fromObject(i,r):L.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static fromISOTime(n,r){const[i]=Xc(n);return i?L.fromObject(i,r):L.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the Duration is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new $s(i);return new L({invalid:i})}static normalizeUnit(n){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n&&n.toLowerCase()];if(!r)throw new bo(n);return r}static isDuration(n){return n&&n.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(n,r={}){const i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?_e.create(this.loc,i).formatDurationFromString(this,n):rd}toHuman(n={}){const r=mt.map(i=>{const l=this.values[i];return I(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...n,unit:i.slice(0,-1)}).format(l)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:n.listStyle||"narrow",...n}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let n="P";return this.years!==0&&(n+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(n+=this.months+this.quarters*3+"M"),this.weeks!==0&&(n+=this.weeks+"W"),this.days!==0&&(n+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(n+="T"),this.hours!==0&&(n+=this.hours+"H"),this.minutes!==0&&(n+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(n+=mr(this.seconds+this.milliseconds/1e3,3)+"S"),n==="P"&&(n+="T0S"),n}toISOTime(n={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;n={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...n};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let l=n.format==="basic"?"hhmm":"hh:mm";(!n.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(l+=n.format==="basic"?"ss":":ss",(!n.suppressMilliseconds||i.milliseconds!==0)&&(l+=".SSS"));let o=i.toFormat(l);return n.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n),i={};for(const l of mt)(_t(r.values,l)||_t(this.values,l))&&(i[l]=r.get(l)+this.get(l));return ft(this,{values:i},!0)}minus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n);return this.plus(r.negate())}mapUnits(n){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=qo(n(this.values[i],i));return ft(this,{values:r},!0)}get(n){return this[L.normalizeUnit(n)]}set(n){if(!this.isValid)return this;const r={...this.values,...bn(n,L.normalizeUnit)};return ft(this,{values:r})}reconfigure({locale:n,numberingSystem:r,conversionAccuracy:i}={}){const l=this.loc.clone({locale:n,numberingSystem:r}),o={loc:l};return i&&(o.conversionAccuracy=i),ft(this,o)}as(n){return this.isValid?this.shiftTo(n).get(n):NaN}normalize(){if(!this.isValid)return this;const n=this.toObject();return sd(this.matrix,n),ft(this,{values:n},!0)}shiftTo(...n){if(!this.isValid)return this;if(n.length===0)return this;n=n.map(a=>L.normalizeUnit(a));const r={},i={},l=this.toObject();let o;for(const a of mt)if(n.indexOf(a)>=0){o=a;let s=0;for(const d in i)s+=this.matrix[d][a]*i[d],i[d]=0;st(l[a])&&(s+=l[a]);const c=Math.trunc(s);r[a]=c,i[a]=(s*1e3-c*1e3)/1e3;for(const d in l)mt.indexOf(d)>mt.indexOf(a)&&pi(this.matrix,l,d,r,a)}else st(l[a])&&(i[a]=l[a]);for(const a in i)i[a]!==0&&(r[o]+=a===o?i[a]:i[a]/this.matrix[o][a]);return ft(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=this.values[r]===0?0:-this.values[r];return ft(this,{values:n},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(n){if(!this.isValid||!n.isValid||!this.loc.equals(n.loc))return!1;function r(i,l){return i===void 0||i===0?l===void 0||l===0:i===l}for(const i of mt)if(!r(this.values[i],n.values[i]))return!1;return!0}}const Kt="Invalid Interval";function cd(e,n){return!e||!e.isValid?Q.invalid("missing or invalid start"):!n||!n.isValid?Q.invalid("missing or invalid end"):n<e?Q.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${n.toISO()}`):null}class Q{constructor(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the Interval is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new Is(i);return new Q({invalid:i})}static fromDateTimes(n,r){const i=Jt(n),l=Jt(r),o=cd(i,l);return o??new Q({start:i,end:l})}static after(n,r){const i=L.fromDurationLike(r),l=Jt(n);return Q.fromDateTimes(l,l.plus(i))}static before(n,r){const i=L.fromDurationLike(r),l=Jt(n);return Q.fromDateTimes(l.minus(i),l)}static fromISO(n,r){const[i,l]=(n||"").split("/",2);if(i&&l){let o,a;try{o=S.fromISO(i,r),a=o.isValid}catch{a=!1}let s,c;try{s=S.fromISO(l,r),c=s.isValid}catch{c=!1}if(a&&c)return Q.fromDateTimes(o,s);if(a){const d=L.fromISO(l,r);if(d.isValid)return Q.after(o,d)}else if(c){const d=L.fromISO(i,r);if(d.isValid)return Q.before(s,d)}}return Q.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static isInterval(n){return n&&n.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(n="milliseconds"){return this.isValid?this.toDuration(n).get(n):NaN}count(n="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(n),i=this.end.startOf(n);return Math.floor(i.diff(r,n).get(n))+1}hasSame(n){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,n):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(n){return this.isValid?this.s>n:!1}isBefore(n){return this.isValid?this.e<=n:!1}contains(n){return this.isValid?this.s<=n&&this.e>n:!1}set({start:n,end:r}={}){return this.isValid?Q.fromDateTimes(n||this.s,r||this.e):this}splitAt(...n){if(!this.isValid)return[];const r=n.map(Jt).filter(a=>this.contains(a)).sort(),i=[];let{s:l}=this,o=0;for(;l<this.e;){const a=r[o]||this.e,s=+a>+this.e?this.e:a;i.push(Q.fromDateTimes(l,s)),l=s,o+=1}return i}splitBy(n){const r=L.fromDurationLike(n);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:i}=this,l=1,o;const a=[];for(;i<this.e;){const s=this.start.plus(r.mapUnits(c=>c*l));o=+s>+this.e?this.e:s,a.push(Q.fromDateTimes(i,o)),i=o,l+=1}return a}divideEqually(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]}overlaps(n){return this.e>n.s&&this.s<n.e}abutsStart(n){return this.isValid?+this.e==+n.s:!1}abutsEnd(n){return this.isValid?+n.e==+this.s:!1}engulfs(n){return this.isValid?this.s<=n.s&&this.e>=n.e:!1}equals(n){return!this.isValid||!n.isValid?!1:this.s.equals(n.s)&&this.e.equals(n.e)}intersection(n){if(!this.isValid)return this;const r=this.s>n.s?this.s:n.s,i=this.e<n.e?this.e:n.e;return r>=i?null:Q.fromDateTimes(r,i)}union(n){if(!this.isValid)return this;const r=this.s<n.s?this.s:n.s,i=this.e>n.e?this.e:n.e;return Q.fromDateTimes(r,i)}static merge(n){const[r,i]=n.sort((l,o)=>l.s-o.s).reduce(([l,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[l,o.union(a)]:[l.concat([o]),a]:[l,a],[[],null]);return i&&r.push(i),r}static xor(n){let r=null,i=0;const l=[],o=n.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((c,d)=>c.time-d.time);for(const c of s)i+=c.type==="s"?1:-1,i===1?r=c.time:(r&&+r!=+c.time&&l.push(Q.fromDateTimes(r,c.time)),r=null);return Q.merge(l)}difference(...n){return Q.xor([this].concat(n)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Kt}toISO(n){return this.isValid?`${this.s.toISO(n)}/${this.e.toISO(n)}`:Kt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Kt}toISOTime(n){return this.isValid?`${this.s.toISOTime(n)}/${this.e.toISOTime(n)}`:Kt}toFormat(n,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(n)}${r}${this.e.toFormat(n)}`:Kt}toDuration(n,r){return this.isValid?this.e.diff(this.s,n,r):L.invalid(this.invalidReason)}mapEndpoints(n){return Q.fromDateTimes(n(this.s),n(this.e))}}let Nn=class{static hasDST(n=re.defaultZone){const r=S.now().setZone(n).set({month:12});return!n.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(n){return We.isValidZone(n)}static normalizeZone(n){return Qe(n,re.defaultZone)}static months(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||X.create(r,i,o)).months(n)}static monthsFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||X.create(r,i,o)).months(n,!0)}static weekdays(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null}={}){return(l||X.create(r,i,null)).weekdays(n)}static weekdaysFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null}={}){return(l||X.create(r,i,null)).weekdays(n,!0)}static meridiems({locale:n=null}={}){return X.create(n).meridiems()}static eras(n="short",{locale:r=null}={}){return X.create(r,null,"gregory").eras(n)}static features(){return{relative:Ro()}}};function hi(e,n){const r=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(n)-r(e);return Math.floor(L.fromMillis(i).as("days"))}function dd(e,n,r){const i=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const d=hi(s,c);return(d-d%7)/7}],["days",hi]],l={};let o,a;for(const[s,c]of i)if(r.indexOf(s)>=0){o=s;let d=c(e,n);a=e.plus({[s]:d}),a>n?(e=e.plus({[s]:d-1}),d-=1):e=a,l[s]=d}return[e,l,a,o]}function ud(e,n,r,i){let[l,o,a,s]=dd(e,n,r);const c=n-l,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(a<n&&(a=l.plus({[s]:1})),a!==l&&(o[s]=(o[s]||0)+c/(a-l)));const u=L.fromObject(o,i);return d.length>0?L.fromMillis(c,i).shiftTo(...d).plus(u):u}const Er={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},md=Er.hanidec.replace(/[\[|\]]/g,"").split("");function fd(e){let n=parseInt(e,10);if(isNaN(n)){n="";for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(e[r].search(Er.hanidec)!==-1)n+=md.indexOf(e[r]);else for(const l in yi){const[o,a]=yi[l];i>=o&&i<=a&&(n+=i-o)}}return parseInt(n,10)}else return n}function Me({numberingSystem:e},n=""){return new RegExp(`${Er[e||"latn"]}${n}`)}const pd="missing Intl.DateTimeFormat.formatToParts support";function U(e,n=r=>r){return{regex:e,deser:([r])=>n(fd(r))}}const gi=`( |${String.fromCharCode(160)})`,_i=new RegExp(gi,"g");function hd(e){return e.replace(/\./g,"\\.?").replace(_i,gi)}function ki(e){return e.replace(/\./g,"").replace(_i," ").toLowerCase()}function Fe(e,n){return e===null?null:{regex:RegExp(e.map(hd).join("|")),deser:([r])=>e.findIndex(i=>ki(r)===ki(i))+n}}function xi(e,n){return{regex:e,deser:([,r,i])=>xn(r,i),groups:n}}function Br(e){return{regex:e,deser:([n])=>n}}function yd(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function gd(e,n){const r=Me(n),i=Me(n,"{2}"),l=Me(n,"{3}"),o=Me(n,"{4}"),a=Me(n,"{6}"),s=Me(n,"{1,2}"),c=Me(n,"{1,3}"),d=Me(n,"{1,6}"),u=Me(n,"{1,9}"),m=Me(n,"{2,4}"),f=Me(n,"{4,6}"),p=x=>({regex:RegExp(yd(x.val)),deser:([F])=>F,literal:!0}),y=(x=>{if(e.literal)return p(x);switch(x.val){case"G":return Fe(n.eras("short",!1),0);case"GG":return Fe(n.eras("long",!1),0);case"y":return U(d);case"yy":return U(m,pr);case"yyyy":return U(o);case"yyyyy":return U(f);case"yyyyyy":return U(a);case"M":return U(s);case"MM":return U(i);case"MMM":return Fe(n.months("short",!0,!1),1);case"MMMM":return Fe(n.months("long",!0,!1),1);case"L":return U(s);case"LL":return U(i);case"LLL":return Fe(n.months("short",!1,!1),1);case"LLLL":return Fe(n.months("long",!1,!1),1);case"d":return U(s);case"dd":return U(i);case"o":return U(c);case"ooo":return U(l);case"HH":return U(i);case"H":return U(s);case"hh":return U(i);case"h":return U(s);case"mm":return U(i);case"m":return U(s);case"q":return U(s);case"qq":return U(i);case"s":return U(s);case"ss":return U(i);case"S":return U(c);case"SSS":return U(l);case"u":return Br(u);case"uu":return Br(s);case"uuu":return U(r);case"a":return Fe(n.meridiems(),0);case"kkkk":return U(o);case"kk":return U(m,pr);case"W":return U(s);case"WW":return U(i);case"E":case"c":return U(r);case"EEE":return Fe(n.weekdays("short",!1,!1),1);case"EEEE":return Fe(n.weekdays("long",!1,!1),1);case"ccc":return Fe(n.weekdays("short",!0,!1),1);case"cccc":return Fe(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xi(new RegExp(`([+-]${s.source})(?::(${i.source}))?`),2);case"ZZZ":return xi(new RegExp(`([+-]${s.source})(${i.source})?`),2);case"z":return Br(/[a-z_+-/]{1,256}?/i);default:return p(x)}})(e)||{invalidReason:pd};return y.token=e,y}const _d={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function kd(e,n,r){const{type:i,value:l}=e;if(i==="literal")return{literal:!0,val:l};const o=r[i];let a=_d[i];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function xd(e){return[`^${e.map(r=>r.regex).reduce((r,i)=>`${r}(${i.source})`,"")}$`,e]}function bd(e,n,r){const i=e.match(n);if(i){const l={};let o=1;for(const a in r)if(_t(r,a)){const s=r[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(l[s.token.val[0]]=s.deser(i.slice(o,o+c))),o+=c}return[i,l]}else return[i,{}]}function Cd(e){const n=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,i;return I(e.z)||(r=We.create(e.z)),I(e.Z)||(r||(r=new fe(e.Z)),i=e.Z),I(e.q)||(e.M=(e.q-1)*3+1),I(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),I(e.u)||(e.S=ur(e.u)),[Object.keys(e).reduce((o,a)=>{const s=n(a);return s&&(o[s]=e[a]),o},{}),r,i]}let Nr=null;function wd(){return Nr||(Nr=S.fromMillis(1555555555555)),Nr}function Vd(e,n){if(e.literal)return e;const r=_e.macroTokenToFormatOpts(e.val);if(!r)return e;const o=_e.create(n,r).formatDateTimeParts(wd()).map(a=>kd(a,n,r));return o.includes(void 0)?e:o}function Ed(e,n){return Array.prototype.concat(...e.map(r=>Vd(r,n)))}function bi(e,n,r){const i=Ed(_e.parseFormat(r),e),l=i.map(a=>gd(a,e)),o=l.find(a=>a.invalidReason);if(o)return{input:n,tokens:i,invalidReason:o.invalidReason};{const[a,s]=xd(l),c=RegExp(a,"i"),[d,u]=bd(n,c,s),[m,f,p]=u?Cd(u):[null,null,void 0];if(_t(u,"a")&&_t(u,"H"))throw new zt("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:i,regex:c,rawMatches:d,matches:u,result:m,zone:f,specificOffset:p}}}function Bd(e,n,r){const{result:i,zone:l,specificOffset:o,invalidReason:a}=bi(e,n,r);return[i,l,o,a]}const Ci=[0,31,59,90,120,151,181,212,243,273,304,334],wi=[0,31,60,91,121,152,182,213,244,274,305,335];function Te(e,n){return new Ae("unit out of range",`you specified ${n} (of type ${typeof n}) as a ${e}, which is invalid`)}function Vi(e,n,r){const i=new Date(Date.UTC(e,n-1,r));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const l=i.getUTCDay();return l===0?7:l}function Ei(e,n,r){return r+(Ht(e)?wi:Ci)[n-1]}function Bi(e,n){const r=Ht(e)?wi:Ci,i=r.findIndex(o=>o<n),l=n-r[i];return{month:i+1,day:l}}function Sr(e){const{year:n,month:r,day:i}=e,l=Ei(n,r,i),o=Vi(n,r,i);let a=Math.floor((l-o+10)/7),s;return a<1?(s=n-1,a=kn(s)):a>kn(n)?(s=n+1,a=1):s=n,{weekYear:s,weekNumber:a,weekday:o,...wn(e)}}function Ni(e){const{weekYear:n,weekNumber:r,weekday:i}=e,l=Vi(n,1,4),o=qt(n);let a=r*7+i-l-3,s;a<1?(s=n-1,a+=qt(s)):a>o?(s=n+1,a-=qt(n)):s=n;const{month:c,day:d}=Bi(s,a);return{year:s,month:c,day:d,...wn(e)}}function Tr(e){const{year:n,month:r,day:i}=e,l=Ei(n,r,i);return{year:n,ordinal:l,...wn(e)}}function Si(e){const{year:n,ordinal:r}=e,{month:i,day:l}=Bi(n,r);return{year:n,month:i,day:l,...wn(e)}}function Nd(e){const n=gn(e.weekYear),r=Ge(e.weekNumber,1,kn(e.weekYear)),i=Ge(e.weekday,1,7);return n?r?i?!1:Te("weekday",e.weekday):Te("week",e.week):Te("weekYear",e.weekYear)}function Sd(e){const n=gn(e.year),r=Ge(e.ordinal,1,qt(e.year));return n?r?!1:Te("ordinal",e.ordinal):Te("year",e.year)}function Ti(e){const n=gn(e.year),r=Ge(e.month,1,12),i=Ge(e.day,1,_n(e.year,e.month));return n?r?i?!1:Te("day",e.day):Te("month",e.month):Te("year",e.year)}function Di(e){const{hour:n,minute:r,second:i,millisecond:l}=e,o=Ge(n,0,23)||n===24&&r===0&&i===0&&l===0,a=Ge(r,0,59),s=Ge(i,0,59),c=Ge(l,0,999);return o?a?s?c?!1:Te("millisecond",l):Te("second",i):Te("minute",r):Te("hour",n)}const Dr="Invalid DateTime",Oi=864e13;function Sn(e){return new Ae("unsupported zone",`the zone "${e.name}" is not supported`)}function Or(e){return e.weekData===null&&(e.weekData=Sr(e.c)),e.weekData}function Yt(e,n){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new S({...r,...n,old:r})}function Ai(e,n,r){let i=e-n*60*1e3;const l=r.offset(i);if(n===l)return[i,n];i-=(l-n)*60*1e3;const o=r.offset(i);return l===o?[i,l]:[e-Math.min(l,o)*60*1e3,Math.max(l,o)]}function Mi(e,n){e+=n*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Tn(e,n,r){return Ai(fr(e),n,r)}function Fi(e,n){const r=e.o,i=e.c.year+Math.trunc(n.years),l=e.c.month+Math.trunc(n.months)+Math.trunc(n.quarters)*3,o={...e.c,year:i,month:l,day:Math.min(e.c.day,_n(i,l))+Math.trunc(n.days)+Math.trunc(n.weeks)*7},a=L.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),s=fr(o);let[c,d]=Ai(s,r,e.zone);return a!==0&&(c+=a,d=e.zone.offset(c)),{ts:c,o:d}}function Zt(e,n,r,i,l,o){const{setZone:a,zone:s}=r;if(e&&Object.keys(e).length!==0){const c=n||s,d=S.fromObject(e,{...r,zone:c,specificOffset:o});return a?d:d.setZone(s)}else return S.invalid(new Ae("unparsable",`the input "${l}" can't be parsed as ${i}`))}function Dn(e,n,r=!0){return e.isValid?_e.create(X.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,n):null}function Ar(e,n){const r=e.c.year>9999||e.c.year<0;let i="";return r&&e.c.year>=0&&(i+="+"),i+=te(e.c.year,r?6:4),n?(i+="-",i+=te(e.c.month),i+="-",i+=te(e.c.day)):(i+=te(e.c.month),i+=te(e.c.day)),i}function Ii(e,n,r,i,l){let o=te(e.c.hour);return n?(o+=":",o+=te(e.c.minute),(e.c.second!==0||!r)&&(o+=":")):o+=te(e.c.minute),(e.c.second!==0||!r)&&(o+=te(e.c.second),(e.c.millisecond!==0||!i)&&(o+=".",o+=te(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0?o+="Z":e.o<0?(o+="-",o+=te(Math.trunc(-e.o/60)),o+=":",o+=te(Math.trunc(-e.o%60))):(o+="+",o+=te(Math.trunc(e.o/60)),o+=":",o+=te(Math.trunc(e.o%60)))),o}const $i={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Td={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Dd={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Li=["year","month","day","hour","minute","second","millisecond"],Od=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ad=["year","ordinal","hour","minute","second","millisecond"];function Pi(e){const n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!n)throw new bo(e);return n}function Ui(e,n){const r=Qe(n.zone,re.defaultZone),i=X.fromObject(n),l=re.now();let o,a;if(I(e.year))o=l;else{for(const d of Li)I(e[d])&&(e[d]=$i[d]);const s=Ti(e)||Di(e);if(s)return S.invalid(s);const c=r.offset(l);[o,a]=Tn(e,c,r)}return new S({ts:o,zone:r,loc:i,o:a})}function ji(e,n,r){const i=I(r.round)?!0:r.round,l=(a,s)=>(a=mr(a,i||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(a,s)),o=a=>r.calendary?n.hasSame(e,a)?0:n.startOf(a).diff(e.startOf(a),a).get(a):n.diff(e,a).get(a);if(r.unit)return l(o(r.unit),r.unit);for(const a of r.units){const s=o(a);if(Math.abs(s)>=1)return l(s,a)}return l(e>n?-0:0,r.units[r.units.length-1])}function Ri(e){let n={},r;return e.length>0&&typeof e[e.length-1]=="object"?(n=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[n,r]}class S{constructor(n){const r=n.zone||re.defaultZone;let i=n.invalid||(Number.isNaN(n.ts)?new Ae("invalid input"):null)||(r.isValid?null:Sn(r));this.ts=I(n.ts)?re.now():n.ts;let l=null,o=null;if(!i)if(n.old&&n.old.ts===this.ts&&n.old.zone.equals(r))[l,o]=[n.old.c,n.old.o];else{const s=r.offset(this.ts);l=Mi(this.ts,s),i=Number.isNaN(l.year)?new Ae("invalid input"):null,l=i?null:l,o=i?null:s}this._zone=r,this.loc=n.loc||X.create(),this.invalid=i,this.weekData=null,this.c=l,this.o=o,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[n,r]=Ri(arguments),[i,l,o,a,s,c,d]=r;return Ui({year:i,month:l,day:o,hour:a,minute:s,second:c,millisecond:d},n)}static utc(){const[n,r]=Ri(arguments),[i,l,o,a,s,c,d]=r;return n.zone=fe.utcInstance,Ui({year:i,month:l,day:o,hour:a,minute:s,second:c,millisecond:d},n)}static fromJSDate(n,r={}){const i=js(n)?n.valueOf():NaN;if(Number.isNaN(i))return S.invalid("invalid input");const l=Qe(r.zone,re.defaultZone);return l.isValid?new S({ts:i,zone:l,loc:X.fromObject(r)}):S.invalid(Sn(l))}static fromMillis(n,r={}){if(st(n))return n<-Oi||n>Oi?S.invalid("Timestamp out of range"):new S({ts:n,zone:Qe(r.zone,re.defaultZone),loc:X.fromObject(r)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof n} with value ${n}`)}static fromSeconds(n,r={}){if(st(n))return new S({ts:n*1e3,zone:Qe(r.zone,re.defaultZone),loc:X.fromObject(r)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(n,r={}){n=n||{};const i=Qe(r.zone,re.defaultZone);if(!i.isValid)return S.invalid(Sn(i));const l=re.now(),o=I(r.specificOffset)?i.offset(l):r.specificOffset,a=bn(n,Pi),s=!I(a.ordinal),c=!I(a.year),d=!I(a.month)||!I(a.day),u=c||d,m=a.weekYear||a.weekNumber,f=X.fromObject(r);if((u||s)&&m)throw new zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new zt("Can't mix ordinal dates with month/day");const p=m||a.weekday&&!u;let h,y,x=Mi(l,o);p?(h=Od,y=Td,x=Sr(x)):s?(h=Ad,y=Dd,x=Tr(x)):(h=Li,y=$i);let F=!1;for(const W of h){const M=a[W];I(M)?F?a[W]=y[W]:a[W]=x[W]:F=!0}const R=p?Nd(a):s?Sd(a):Ti(a),H=R||Di(a);if(H)return S.invalid(H);const Y=p?Ni(a):s?Si(a):a,[Z,A]=Tn(Y,o,i),V=new S({ts:Z,zone:i,o:A,loc:f});return a.weekday&&u&&n.weekday!==V.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${V.toISO()}`):V}static fromISO(n,r={}){const[i,l]=Wc(n);return Zt(i,l,r,"ISO 8601",n)}static fromRFC2822(n,r={}){const[i,l]=Kc(n);return Zt(i,l,r,"RFC 2822",n)}static fromHTTP(n,r={}){const[i,l]=Yc(n);return Zt(i,l,r,"HTTP",r)}static fromFormat(n,r,i={}){if(I(n)||I(r))throw new Ne("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:o=null}=i,a=X.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0}),[s,c,d,u]=Bd(a,n,r);return u?S.invalid(u):Zt(s,c,i,`format ${r}`,n,d)}static fromString(n,r,i={}){return S.fromFormat(n,r,i)}static fromSQL(n,r={}){const[i,l]=nd(n);return Zt(i,l,r,"SQL",n)}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the DateTime is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new Fs(i);return new S({invalid:i})}static isDateTime(n){return n&&n.isLuxonDateTime||!1}get(n){return this[n]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Or(this).weekYear:NaN}get weekNumber(){return this.isValid?Or(this).weekNumber:NaN}get weekday(){return this.isValid?Or(this).weekday:NaN}get ordinal(){return this.isValid?Tr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Nn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Nn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Nn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Nn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ht(this.year)}get daysInMonth(){return _n(this.year,this.month)}get daysInYear(){return this.isValid?qt(this.year):NaN}get weeksInWeekYear(){return this.isValid?kn(this.weekYear):NaN}resolvedLocaleOptions(n={}){const{locale:r,numberingSystem:i,calendar:l}=_e.create(this.loc.clone(n),n).resolvedOptions(this);return{locale:r,numberingSystem:i,outputCalendar:l}}toUTC(n=0,r={}){return this.setZone(fe.instance(n),r)}toLocal(){return this.setZone(re.defaultZone)}setZone(n,{keepLocalTime:r=!1,keepCalendarTime:i=!1}={}){if(n=Qe(n,re.defaultZone),n.equals(this.zone))return this;if(n.isValid){let l=this.ts;if(r||i){const o=n.offset(this.ts),a=this.toObject();[l]=Tn(a,o,n)}return Yt(this,{ts:l,zone:n})}else return S.invalid(Sn(n))}reconfigure({locale:n,numberingSystem:r,outputCalendar:i}={}){const l=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return Yt(this,{loc:l})}setLocale(n){return this.reconfigure({locale:n})}set(n){if(!this.isValid)return this;const r=bn(n,Pi),i=!I(r.weekYear)||!I(r.weekNumber)||!I(r.weekday),l=!I(r.ordinal),o=!I(r.year),a=!I(r.month)||!I(r.day),s=o||a,c=r.weekYear||r.weekNumber;if((s||l)&&c)throw new zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&l)throw new zt("Can't mix ordinal dates with month/day");let d;i?d=Ni({...Sr(this.c),...r}):I(r.ordinal)?(d={...this.toObject(),...r},I(r.day)&&(d.day=Math.min(_n(d.year,d.month),d.day))):d=Si({...Tr(this.c),...r});const[u,m]=Tn(d,this.o,this.zone);return Yt(this,{ts:u,o:m})}plus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n);return Yt(this,Fi(this,r))}minus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n).negate();return Yt(this,Fi(this,r))}startOf(n){if(!this.isValid)return this;const r={},i=L.normalizeUnit(n);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks"&&(r.weekday=1),i==="quarters"){const l=Math.ceil(this.month/3);r.month=(l-1)*3+1}return this.set(r)}endOf(n){return this.isValid?this.plus({[n]:1}).startOf(n).minus(1):this}toFormat(n,r={}){return this.isValid?_e.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,n):Dr}toLocaleString(n=dr,r={}){return this.isValid?_e.create(this.loc.clone(r),n).formatDateTime(this):Dr}toLocaleParts(n={}){return this.isValid?_e.create(this.loc.clone(n),n).formatDateTimeParts(this):[]}toISO({format:n="extended",suppressSeconds:r=!1,suppressMilliseconds:i=!1,includeOffset:l=!0}={}){if(!this.isValid)return null;const o=n==="extended";let a=Ar(this,o);return a+="T",a+=Ii(this,o,r,i,l),a}toISODate({format:n="extended"}={}){return this.isValid?Ar(this,n==="extended"):null}toISOWeekDate(){return Dn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:n=!1,suppressSeconds:r=!1,includeOffset:i=!0,includePrefix:l=!1,format:o="extended"}={}){return this.isValid?(l?"T":"")+Ii(this,o==="extended",r,n,i):null}toRFC2822(){return Dn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Dn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ar(this,!0):null}toSQLTime({includeOffset:n=!0,includeZone:r=!1,includeOffsetSpace:i=!0}={}){let l="HH:mm:ss.SSS";return(r||n)&&(i&&(l+=" "),r?l+="z":n&&(l+="ZZ")),Dn(this,l,!0)}toSQL(n={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(n)}`:null}toString(){return this.isValid?this.toISO():Dr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(n={}){if(!this.isValid)return{};const r={...this.c};return n.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(n,r="milliseconds",i={}){if(!this.isValid||!n.isValid)return L.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=Rs(r).map(L.normalizeUnit),a=n.valueOf()>this.valueOf(),s=a?this:n,c=a?n:this,d=ud(s,c,o,l);return a?d.negate():d}diffNow(n="milliseconds",r={}){return this.diff(S.now(),n,r)}until(n){return this.isValid?Q.fromDateTimes(this,n):this}hasSame(n,r){if(!this.isValid)return!1;const i=n.valueOf(),l=this.setZone(n.zone,{keepLocalTime:!0});return l.startOf(r)<=i&&i<=l.endOf(r)}equals(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)}toRelative(n={}){if(!this.isValid)return null;const r=n.base||S.fromObject({},{zone:this.zone}),i=n.padding?this<r?-n.padding:n.padding:0;let l=["years","months","days","hours","minutes","seconds"],o=n.unit;return Array.isArray(n.unit)&&(l=n.unit,o=void 0),ji(r,this.plus(i),{...n,numeric:"always",units:l,unit:o})}toRelativeCalendar(n={}){return this.isValid?ji(n.base||S.fromObject({},{zone:this.zone}),this,{...n,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...n){if(!n.every(S.isDateTime))throw new Ne("min requires all arguments be DateTimes");return zo(n,r=>r.valueOf(),Math.min)}static max(...n){if(!n.every(S.isDateTime))throw new Ne("max requires all arguments be DateTimes");return zo(n,r=>r.valueOf(),Math.max)}static fromFormatExplain(n,r,i={}){const{locale:l=null,numberingSystem:o=null}=i,a=X.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0});return bi(a,n,r)}static fromStringExplain(n,r,i={}){return S.fromFormatExplain(n,r,i)}static get DATE_SHORT(){return dr}static get DATE_MED(){return Co}static get DATE_MED_WITH_WEEKDAY(){return Ls}static get DATE_FULL(){return wo}static get DATE_HUGE(){return Vo}static get TIME_SIMPLE(){return Eo}static get TIME_WITH_SECONDS(){return Bo}static get TIME_WITH_SHORT_OFFSET(){return No}static get TIME_WITH_LONG_OFFSET(){return So}static get TIME_24_SIMPLE(){return To}static get TIME_24_WITH_SECONDS(){return Do}static get TIME_24_WITH_SHORT_OFFSET(){return Oo}static get TIME_24_WITH_LONG_OFFSET(){return Ao}static get DATETIME_SHORT(){return Mo}static get DATETIME_SHORT_WITH_SECONDS(){return Fo}static get DATETIME_MED(){return Io}static get DATETIME_MED_WITH_SECONDS(){return $o}static get DATETIME_MED_WITH_WEEKDAY(){return Ps}static get DATETIME_FULL(){return Lo}static get DATETIME_FULL_WITH_SECONDS(){return Po}static get DATETIME_HUGE(){return Uo}static get DATETIME_HUGE_WITH_SECONDS(){return jo}}function Jt(e){if(S.isDateTime(e))return e;if(e&&e.valueOf&&st(e.valueOf()))return S.fromJSDate(e);if(e&&typeof e=="object")return S.fromObject(e);throw new Ne(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Ie={};Ie.readableDateRange=function(e,n){if(!e)return;if(!n)return Ie.readableDate(e);e=S.fromJSDate(new Date(e)),n=S.fromJSDate(new Date(n));const r=e.toFormat("yyyy"),i=e.toFormat("LLL yyyy"),l=e.toFormat("WW yyyy"),o=e.toFormat("d LLL yyyy"),a=n.toFormat("yyyy"),s=n.toFormat("LLL yyyy"),c=n.toFormat("WW yyyy"),d=n.toFormat("d LLL yyyy");return o===d?`${e.toFormat("h:mma")} - ${Ie.readableDate(n)}`:l===c?`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`:i===s?`${e.toFormat("d")} - ${n.toFormat("d LLL")}`:r===a?`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`:`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`},Ie.readableDate=function(e){if(!e)return;const n=new Date,r=S.fromJSDate(n),i=r.toFormat("yyyy"),l=r.toFormat("LLL yyyy"),o=r.toFormat("WW yyyy"),a=r.toFormat("d LLL yyyy");e=new Date(e);const s=S.fromJSDate(e),c=s.toFormat("yyyy"),d=s.toFormat("LLL yyyy"),u=s.toFormat("WW yyyy");if(s.toFormat("d LLL yyyy")===a)return`${s.toFormat("h:mma")} today`;if(u===o)if(e>n){const f=parseInt(r.toFormat("d"));return parseInt(s.toFormat("d"))-f===1?`${s.toFormat("h:mma")} tomorrow`:`${s.toFormat("h:mma")} ${s.toFormat("cccc")}`}else return`${s.toRelativeCalendar()}`;return d===l?`${s.toFormat("h:mma")} ${s.toFormat("d LLL")}`:c===i?s.toFormat("cccc d LLL"):s.toFormat("d LLL yyyy")};const On={STRIPE_NOT_LOADED:"Stripe v3 library is not loaded",INSTANCE_NOT_DEFINED:"Instance object is not defined. Make sure you initialized Stripe before creating elements",ELEMENTS_NOT_DEFINED:"Elements object is not defined. You can't create stripe element without it",ELEMENT_TYPE_NOT_DEFINED:"elementType is required. You can't create stripe element without it"},Md=(e,n)=>{try{if(!window.Stripe)throw new Error(On.STRIPE_NOT_LOADED);return window.Stripe(e,n)}catch(r){return console.error(r),r}},Fd=(e,n)=>{try{if(!e)throw new Error(On.INSTANCE_NOT_DEFINED);return e.elements(n)}catch(r){return console.error(r),r}},Id=(e,n,r)=>{try{if(!e)throw new Error(On.ELEMENTS_NOT_DEFINED);if(!n)throw new Error(On.ELEMENT_TYPE_NOT_DEFINED);return e.create(n,r)}catch(i){return console.error(i),i}};var zi=(e,n)=>{const r=e.__vccOpts||e;for(const[i,l]of n)r[i]=l;return r};const $d=t.defineComponent({name:"StripeElement",props:{elements:{type:Object,required:!0},type:{type:String,default:()=>"card"},options:{type:Object,default:()=>({})}},setup(e,{emit:n}){const r=t.ref(document.createElement("div")),i=t.ref(),l=t.ref(),{elements:o,type:a,options:s}=t.toRefs(e);return t.onMounted(()=>{const c=()=>{i.value=Id(o.value,a.value,s.value),i.value.mount(r.value),l.value.appendChild(r.value)},d=(m,f)=>{n(m,f)},u=()=>{["change","ready","focus","blur","click","escape"].forEach(f=>{i.value.on(f,d.bind(null,f))})};try{c(),u()}catch(m){console.error(m)}}),t.onBeforeUnmount(()=>{var c,d;(c=i.value)==null||c.unmount(),(d=i.value)==null||d.destroy()}),t.watch(s,()=>{var c;(c=i.value)==null||c.update(e.options)}),{stripeElement:i,domElement:r,mountPoint:l}}}),Ld={ref:"mountPoint"};function Pd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Ld,null,512)}var Hi=zi($d,[["render",Pd]]);const Ud=t.defineComponent({name:"StripeElements",props:{stripeKey:{type:String,required:!0},instanceOptions:{type:Object,default:()=>({})},elementsOptions:{type:Object,default:()=>({})}},setup(e){const{stripeKey:n,instanceOptions:r,elementsOptions:i}=t.toRefs(e),l=t.ref(),o=t.ref(),a=t.computed(()=>o.value?Object.keys(o.value).length>0:!1);return t.onMounted(()=>{l.value=Md(n.value,r.value),o.value=Fd(l.value,i.value)}),t.watch(i,()=>{var s;(s=o.value)==null||s.update(i.value)}),{elements:o,instance:l,elementsUsable:a}}}),jd={key:0};function Rd(e,n,r,i,l,o){return e.elementsUsable?(t.openBlock(),t.createElementBlock("div",jd,[t.renderSlot(e.$slots,"default",{instance:e.instance,elements:e.elements})])):t.createCommentVNode("",!0)}var qi=zi(Ud,[["render",Rd]]);const QS="",g=(e,n)=>{const r=e.__vccOpts||e;for(const[i,l]of n)r[i]=l;return r},zd={},Hd={class:"flex-column"};function qd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Hd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Gi=g(zd,[["render",qd],["__scopeId","data-v-71e77c4f"]]),vS="",Gd={},Wd={class:"flex-column-body"};function Kd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Wd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Wi=g(Gd,[["render",Kd],["__scopeId","data-v-ab49c425"]]),eT="",Yd={},Zd={class:"flex-column-header"};function Jd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Zd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ki=g(Yd,[["render",Jd],["__scopeId","data-v-968bcded"]]),tT="",Xd={},Qd={class:"flex-column-footer"};function vd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Qd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Yi=g(Xd,[["render",vd],["__scopeId","data-v-941966e2"]]),nT="",eu={},tu={class:"flex-cell"};function nu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",tu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Zi=g(eu,[["render",nu],["__scopeId","data-v-ceefef08"]]),rT="",ru={},ou={class:"flex-row"};function iu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",ou,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ji=g(ru,[["render",iu],["__scopeId","data-v-a4b9a8e0"]]),oT="",lu={},au={class:"flex-spacer"};function su(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",au)}const Xi=g(lu,[["render",su],["__scopeId","data-v-f42ac625"]]),iT="",cu={},du={class:"panel"};function uu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",du,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Qi=g(cu,[["render",uu],["__scopeId","data-v-d5c9d9ec"]]),lT="",mu={},fu={class:"panel-body"};function pu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",fu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const vi=g(mu,[["render",pu],["__scopeId","data-v-53a6d4be"]]),aT="",hu={},yu={class:"panel-header"};function gu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",yu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const el=g(hu,[["render",gu],["__scopeId","data-v-12bf7f04"]]),sT="",_u={},ku={class:"panel-footer"};function xu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",ku,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const tl=g(_u,[["render",xu],["__scopeId","data-v-d8937de9"]]);var An=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mn=bu,Cu=typeof An=="object"&&An&&An.Object===Object&&An,nl=Cu,wu=nl,Vu=typeof self=="object"&&self&&self.Object===Object&&self,Eu=wu||Vu||Function("return this")(),Vt=Eu,Bu=Vt,Nu=function(){return Bu.Date.now()},Su=Nu,Tu=/\s/;function Du(e){for(var n=e.length;n--&&Tu.test(e.charAt(n)););return n}var Ou=Du,Au=Ou,Mu=/^\s+/;function Fu(e){return e&&e.slice(0,Au(e)+1).replace(Mu,"")}var Iu=Fu,$u=Vt,Lu=$u.Symbol,Mr=Lu,rl=Mr,ol=Object.prototype,Pu=ol.hasOwnProperty,Uu=ol.toString,Xt=rl?rl.toStringTag:void 0;function ju(e){var n=Pu.call(e,Xt),r=e[Xt];try{e[Xt]=void 0;var i=!0}catch{}var l=Uu.call(e);return i&&(n?e[Xt]=r:delete e[Xt]),l}var Ru=ju,zu=Object.prototype,Hu=zu.toString;function qu(e){return Hu.call(e)}var Gu=qu,il=Mr,Wu=Ru,Ku=Gu,Yu="[object Null]",Zu="[object Undefined]",ll=il?il.toStringTag:void 0;function Ju(e){return e==null?e===void 0?Zu:Yu:ll&&ll in Object(e)?Wu(e):Ku(e)}var Qt=Ju;function Xu(e){return e!=null&&typeof e=="object"}var vt=Xu,Qu=Qt,vu=vt,em="[object Symbol]";function tm(e){return typeof e=="symbol"||vu(e)&&Qu(e)==em}var Fn=tm,nm=Iu,al=Mn,rm=Fn,sl=0/0,om=/^[-+]0x[0-9a-f]+$/i,im=/^0b[01]+$/i,lm=/^0o[0-7]+$/i,am=parseInt;function sm(e){if(typeof e=="number")return e;if(rm(e))return sl;if(al(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=al(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=nm(e);var r=im.test(e);return r||lm.test(e)?am(e.slice(2),r?2:8):om.test(e)?sl:+e}var cl=sm,cm=Mn,Fr=Su,dl=cl,dm="Expected a function",um=Math.max,mm=Math.min;function fm(e,n,r){var i,l,o,a,s,c,d=0,u=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(dm);n=dl(n)||0,cm(r)&&(u=!!r.leading,m="maxWait"in r,o=m?um(dl(r.maxWait)||0,n):o,f="trailing"in r?!!r.trailing:f);function p(A){var V=i,W=l;return i=l=void 0,d=A,a=e.apply(W,V),a}function h(A){return d=A,s=setTimeout(F,n),u?p(A):a}function y(A){var V=A-c,W=A-d,M=n-V;return m?mm(M,o-W):M}function x(A){var V=A-c,W=A-d;return c===void 0||V>=n||V<0||m&&W>=o}function F(){var A=Fr();if(x(A))return R(A);s=setTimeout(F,y(A))}function R(A){return s=void 0,f&&i?p(A):(i=l=void 0,a)}function H(){s!==void 0&&clearTimeout(s),d=0,i=c=l=s=void 0}function Y(){return s===void 0?a:R(Fr())}function Z(){var A=Fr(),V=x(A);if(i=arguments,l=this,c=A,V){if(s===void 0)return h(c);if(m)return clearTimeout(s),s=setTimeout(F,n),p(c)}return s===void 0&&(s=setTimeout(F,n)),a}return Z.cancel=H,Z.flush=Y,Z}var Et=fm;const cT="",pm=["onClick"],hm=["onClick"],ul=g({__name:"tabset",props:{vertical:Boolean,inline:Boolean},setup(e){const n=t.useSlots(),r=t.reactive({tabs:[]});t.provide("tabset",r);const i=t.ref();t.provide("activeHeading",i);const l=function(c){i.value=c},o=Et(function(){const d=n.default().reduce(function(f,p){var h;return((h=p.type)==null?void 0:h.name)==="tab"?f.push(p):p.children&&(f=[...f,...p.children]),f},[]).filter(function(f){var p;return((p=f.type)==null?void 0:p.name)==="tab"&&f.props.enabled!==!1}).map(function(f,p){return{heading:f.props.heading,index:p}});r.tabs=d;const u=d.reduce(function(f,p){return f[p.heading]=!0,f},{}),m=i.value;(!m||!u[m])&&d.length&&(i.value=d[0].heading)});t.provide("rebuild",o);const a=t.computed(function(){return r.tabs.map(function(c){if(c)return c.heading}).filter(Boolean)}),s=t.computed(function(){return a.value.length>1});return o(),(c,d)=>{const u=t.resolveComponent("flex-body"),m=t.resolveComponent("flex-column"),f=t.resolveComponent("flex-row"),p=t.resolveComponent("flex-header");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-tabset",{vertical:e.vertical,horizontal:!e.vertical,inline:e.inline,block:!e.inline}])},[e.vertical?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(s)?(t.openBlock(),t.createBlock(m,{key:0,class:"tabset-menu"},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(h,y)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass({active:i.value===h}),key:`tab-link-${h}`,onClick:x=>l(h)},t.toDisplayString(h),11,pm))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(s)?(t.openBlock(),t.createBlock(p,{key:0,class:"tabset-menu"},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(h,y)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass({active:i.value===h}),key:`tab-link-${h}`,onClick:x=>l(h)},t.toDisplayString(h),11,hm))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)],64)),t.createVNode(m,null,{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3})],2)}}},[["__scopeId","data-v-1568a756"]]),ym={name:"tab",props:{heading:{type:String,required:!0},enabled:{type:Boolean,default:!0}},created(){this.rebuild()},unmounted(){this.rebuild()},inject:["tabset","activeHeading","rebuild"],computed:{active(){var n;return String(this.heading)===String(((n=this.activeHeading)==null?void 0:n.value)||this.activeHeading)}}};function gm(e,n,r,i,l,o){const a=t.resolveComponent("flex-column");return o.active?(t.openBlock(),t.createBlock(a,{key:0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3})):t.createCommentVNode("",!0)}const ml=g(ym,[["render",gm]]);var _m=Array.isArray,en=_m,km=en,xm=Fn,bm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cm=/^\w*$/;function wm(e,n){if(km(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xm(e)?!0:Cm.test(e)||!bm.test(e)||n!=null&&e in Object(n)}var Vm=wm,Em=Qt,Bm=Mn,Nm="[object AsyncFunction]",Sm="[object Function]",Tm="[object GeneratorFunction]",Dm="[object Proxy]";function Om(e){if(!Bm(e))return!1;var n=Em(e);return n==Sm||n==Tm||n==Nm||n==Dm}var fl=Om,Am=Vt,Mm=Am["__core-js_shared__"],Fm=Mm,Ir=Fm,pl=function(){var e=/[^.]+$/.exec(Ir&&Ir.keys&&Ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Im(e){return!!pl&&pl in e}var $m=Im,Lm=Function.prototype,Pm=Lm.toString;function Um(e){if(e!=null){try{return Pm.call(e)}catch{}try{return e+""}catch{}}return""}var jm=Um,Rm=fl,zm=$m,Hm=Mn,qm=jm,Gm=/[\\^$.*+?()[\]{}|]/g,Wm=/^\[object .+?Constructor\]$/,Km=Function.prototype,Ym=Object.prototype,Zm=Km.toString,Jm=Ym.hasOwnProperty,Xm=RegExp("^"+Zm.call(Jm).replace(Gm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qm(e){if(!Hm(e)||zm(e))return!1;var n=Rm(e)?Xm:Wm;return n.test(qm(e))}var vm=Qm;function ef(e,n){return e==null?void 0:e[n]}var tf=ef,nf=vm,rf=tf;function of(e,n){var r=rf(e,n);return nf(r)?r:void 0}var $r=of,lf=$r,af=lf(Object,"create"),In=af,hl=In;function sf(){this.__data__=hl?hl(null):{},this.size=0}var cf=sf;function df(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var uf=df,mf=In,ff="__lodash_hash_undefined__",pf=Object.prototype,hf=pf.hasOwnProperty;function yf(e){var n=this.__data__;if(mf){var r=n[e];return r===ff?void 0:r}return hf.call(n,e)?n[e]:void 0}var gf=yf,_f=In,kf=Object.prototype,xf=kf.hasOwnProperty;function bf(e){var n=this.__data__;return _f?n[e]!==void 0:xf.call(n,e)}var Cf=bf,wf=In,Vf="__lodash_hash_undefined__";function Ef(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wf&&n===void 0?Vf:n,this}var Bf=Ef,Nf=cf,Sf=uf,Tf=gf,Df=Cf,Of=Bf;function Bt(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}Bt.prototype.clear=Nf,Bt.prototype.delete=Sf,Bt.prototype.get=Tf,Bt.prototype.has=Df,Bt.prototype.set=Of;var Af=Bt;function Mf(){this.__data__=[],this.size=0}var Ff=Mf;function If(e,n){return e===n||e!==e&&n!==n}var $f=If,Lf=$f;function Pf(e,n){for(var r=e.length;r--;)if(Lf(e[r][0],n))return r;return-1}var $n=Pf,Uf=$n,jf=Array.prototype,Rf=jf.splice;function zf(e){var n=this.__data__,r=Uf(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():Rf.call(n,r,1),--this.size,!0}var Hf=zf,qf=$n;function Gf(e){var n=this.__data__,r=qf(n,e);return r<0?void 0:n[r][1]}var Wf=Gf,Kf=$n;function Yf(e){return Kf(this.__data__,e)>-1}var Zf=Yf,Jf=$n;function Xf(e,n){var r=this.__data__,i=Jf(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}var Qf=Xf,vf=Ff,ep=Hf,tp=Wf,np=Zf,rp=Qf;function Nt(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}Nt.prototype.clear=vf,Nt.prototype.delete=ep,Nt.prototype.get=tp,Nt.prototype.has=np,Nt.prototype.set=rp;var op=Nt,ip=$r,lp=Vt,ap=ip(lp,"Map"),sp=ap,yl=Af,cp=op,dp=sp;function up(){this.size=0,this.__data__={hash:new yl,map:new(dp||cp),string:new yl}}var mp=up;function fp(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var pp=fp,hp=pp;function yp(e,n){var r=e.__data__;return hp(n)?r[typeof n=="string"?"string":"hash"]:r.map}var Ln=yp,gp=Ln;function _p(e){var n=gp(this,e).delete(e);return this.size-=n?1:0,n}var kp=_p,xp=Ln;function bp(e){return xp(this,e).get(e)}var Cp=bp,wp=Ln;function Vp(e){return wp(this,e).has(e)}var Ep=Vp,Bp=Ln;function Np(e,n){var r=Bp(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}var Sp=Np,Tp=mp,Dp=kp,Op=Cp,Ap=Ep,Mp=Sp;function St(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}St.prototype.clear=Tp,St.prototype.delete=Dp,St.prototype.get=Op,St.prototype.has=Ap,St.prototype.set=Mp;var gl=St,_l=gl,Fp="Expected a function";function Lr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Fp);var r=function(){var i=arguments,l=n?n.apply(this,i):i[0],o=r.cache;if(o.has(l))return o.get(l);var a=e.apply(this,i);return r.cache=o.set(l,a)||o,a};return r.cache=new(Lr.Cache||_l),r}Lr.Cache=_l;var Ip=Lr,$p=Ip,Lp=500;function Pp(e){var n=$p(e,function(i){return r.size===Lp&&r.clear(),i}),r=n.cache;return n}var Up=Pp,jp=Up,Rp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zp=/\\(\\)?/g,Hp=jp(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Rp,function(r,i,l,o){n.push(l?o.replace(zp,"$1"):i||r)}),n}),qp=Hp;function Gp(e,n){for(var r=-1,i=e==null?0:e.length,l=Array(i);++r<i;)l[r]=n(e[r],r,e);return l}var kl=Gp,xl=Mr,Wp=kl,Kp=en,Yp=Fn,Zp=1/0,bl=xl?xl.prototype:void 0,Cl=bl?bl.toString:void 0;function wl(e){if(typeof e=="string")return e;if(Kp(e))return Wp(e,wl)+"";if(Yp(e))return Cl?Cl.call(e):"";var n=e+"";return n=="0"&&1/e==-Zp?"-0":n}var Jp=wl,Xp=Jp;function Qp(e){return e==null?"":Xp(e)}var Pr=Qp,vp=en,eh=Vm,th=qp,nh=Pr;function rh(e,n){return vp(e)?e:eh(e,n)?[e]:th(nh(e))}var oh=rh,ih=Fn,lh=1/0;function ah(e){if(typeof e=="string"||ih(e))return e;var n=e+"";return n=="0"&&1/e==-lh?"-0":n}var sh=ah,ch=oh,dh=sh;function uh(e,n){n=ch(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[dh(n[r++])];return r&&r==i?e:void 0}var mh=uh,fh=mh;function ph(e,n,r){var i=e==null?void 0:fh(e,n);return i===void 0?r:i}var Pn=ph;const Pe={props:{column:{type:Object,required:!0},row:{type:Object,required:!0},value:{}}},uT="",hh={mixins:[Pe],computed:{imageSource(){return this.value&&this.value._id?this.value:this.row},type(){var e,n;return(n=(e=this.imageSource)==null?void 0:e.meta)==null?void 0:n.type}},methods:{clicked(e){this.$sdk.dispatch("item:view",this.imageSource)}}},yh={class:"table-image-cell"};function gh(e,n,r,i,l,o){const a=t.resolveComponent("ux-image"),s=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",yh,[o.type=="image"||o.type=="video"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:n[0]||(n[0]=t.withModifiers(c=>o.clicked(e.value),["stop","prevent"])),class:"image-wrapper"},[t.createVNode(a,{item:o.imageSource,type:o.type,width:100,height:100},null,8,["item","type"])])):(t.openBlock(),t.createBlock(s,{key:1,icon:"fa-file"}))])}const _h=g(hh,[["render",gh],["__scopeId","data-v-868d2120"]]),mT="",kh={mixins:[Pe],computed:{string(){return isNaN(this.amount)?"":this.amount.toFixed(2)},amount(){return Number(parseInt(this.value)/100)},credit(){return this.amount>0},debit(){return this.amount<0},empty(){return parseInt(this.value)===0},currency(){return this.column.currency||this.row.currency}}};function xh(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-currency-cell",{credit:o.credit,empty:o.empty,debit:o.debit}])},t.toDisplayString(o.string),3)}const bh=g(kh,[["render",xh],["__scopeId","data-v-c8cb509d"]]),fT="",Ch={data(){return{processing:!1}},mixins:[Pe],computed:{button(){return this.column.button},type(){var e,n;return(n=(e=this.row)==null?void 0:e.meta)==null?void 0:n.type},label(){const e=this.button;return typeof e.text=="function"?e.text(this):e.text}},methods:{async clicked(){this.processing=!0,await this.button.action(this.row,this.column),this.processing=!1}}},wh={class:"table-button-cell"};function Vh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("td",wh,[t.createVNode(s,{color:o.button.color,size:o.button.size,loading:l.processing,onClick:t.withModifiers(o.clicked,["stop","prevent"])},{default:t.withCtx(()=>[o.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.label),1)],64)):t.createCommentVNode("",!0),o.button.icon?(t.openBlock(),t.createBlock(a,{key:1,icon:o.button.icon,right:""},null,8,["icon"])):t.createCommentVNode("",!0)]),_:1},8,["color","size","loading","onClick"])])}const Eh=g(Ch,[["render",Vh],["__scopeId","data-v-bddd5589"]]),pT="",Bh={mixins:[Pe],computed:{hasValue(){return this.value!==void 0&&this.value!==null},timeago(){return S.fromISO(this.value).toRelative()},readable(){let e=S.fromISO(this.value),n=S.now(),r=n.toFormat("yyyy");return n.toFormat("MMM yyyy"),e.toFormat("yyyy")===r?S.fromISO(this.value).toFormat("h:mm a - dd MMM"):S.fromISO(this.value).toFormat("h:mm a - dd MMM yyyy")}}},Nh={class:"table-date-cell"},Sh={key:0},Th={class:"off"},Dh={class:"on"},Oh={class:"spacer"};function Ah(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",Nh,[o.hasValue?(t.openBlock(),t.createElementBlock("div",Sh,[t.createElementVNode("span",Th,t.toDisplayString(o.readable),1),t.createElementVNode("span",Dh,t.toDisplayString(o.timeago),1),t.createElementVNode("span",Oh,t.toDisplayString(o.readable),1)])):t.createCommentVNode("",!0)])}const Vl=g(Bh,[["render",Ah],["__scopeId","data-v-d6b72564"]]),hT="",Mh={mixins:[Pe],computed:{boolean(){return!!this.value}}};function Fh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-boolean-cell",{true:o.boolean,false:!o.boolean}])},[t.createVNode(a,{icon:o.boolean?"fa-check":"fa-times"},null,8,["icon"])],2)}const El=g(Mh,[["render",Fh],["__scopeId","data-v-897e69cd"]]),yT="",Ih={mixins:[Pe],methods:{async clicked(){const e=this,n=e.$sdk.utils.id(e.row),r=e.public?"secure":"public";e.processing=!0,e.$sdk.content.patch(n,{meta:{security:r}}).catch(function(i){e.$sdk.error(i),e.processing=!1}).then(function(i){e.v=r,e.processing=!1,e.$sdk.notify(`Set security to ${r}`)})}},data(){return{processing:!1,v:this.value}},computed:{canEdit(){var e=this.user;return this.$sdk.access.canEditItem(e,this.row)},public(){return this.security==="public"},security(){return this.v||"secure"}}};function $h(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-security-cell",o.security])},[o.canEdit?(t.openBlock(),t.createBlock(s,{key:0,size:"sm",loading:l.processing,onClick:t.withModifiers(o.clicked,["stop","prevent"])},{default:t.withCtx(()=>[t.createVNode(a,{icon:o.public?"fa-lock-open":"fa-lock"},null,8,["icon"])]),_:1},8,["loading","onClick"])):(t.openBlock(),t.createBlock(a,{key:1,icon:o.public?"fa-lock-open":"fa-lock"},null,8,["icon"]))],2)}const Lh=g(Ih,[["render",$h],["__scopeId","data-v-45dd2b07"]]),gT="",Ph={mixins:[Pe],methods:{open(){window.open(this.href)}},computed:{href(){return`http://${this.value}`}}},Uh={class:"table-url-cell"},jh=["href"];function Rh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",Uh,[t.createElementVNode("a",{href:o.href,onClick:n[0]||(n[0]=t.withModifiers((...s)=>o.open&&o.open(...s),["stop","prevent"])),target:"_blank"},[t.createTextVNode(t.toDisplayString(e.value)+" ",1),t.createVNode(a,{right:"",icon:"fa-external-link"})],8,jh)])}const Bl=g(Ph,[["render",Rh],["__scopeId","data-v-7dbf1e30"]]);var Nl=function(e,n,r){if(!n.hasOwnProperty(r)){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i)}};const Ur={props:{template:String,parent:Object,templateProps:{type:Object,default:function(){return{}}}},render:function(){if(this.template){var e=this.parent||this.$parent,n=e.$data;n===void 0&&(n={});var r=e.$props;r===void 0&&(r={});var i=e.$options;i===void 0&&(i={});var l=i.components;l===void 0&&(l={});var o=i.computed;o===void 0&&(o={});var a=i.methods;a===void 0&&(a={});var s=this.$data;s===void 0&&(s={});var c=this.$props;c===void 0&&(c={});var d=this.$options;d===void 0&&(d={});var u=d.methods;u===void 0&&(u={});var m=d.computed;m===void 0&&(m={});var f=d.components;f===void 0&&(f={});var p={$data:{},$props:{},$options:{},components:{},computed:{},methods:{}};Object.keys(n).forEach(function(V){s[V]===void 0&&(p.$data[V]=n[V])}),Object.keys(r).forEach(function(V){c[V]===void 0&&(p.$props[V]=r[V])}),Object.keys(a).forEach(function(V){u[V]===void 0&&(p.methods[V]=a[V])}),Object.keys(o).forEach(function(V){m[V]===void 0&&(p.computed[V]=o[V])}),Object.keys(l).forEach(function(V){f[V]===void 0&&(p.components[V]=l[V])});var h=Object.keys(p.methods||{}),y=Object.keys(p.$data||{}),x=Object.keys(p.$props||{}),F=Object.keys(this.templateProps),R=y.concat(x).concat(h).concat(F),H=(Z=e,A={},h.forEach(function(V){return Nl(Z,A,V)}),A),Y=function(V){var W={};return V.forEach(function(M){M&&Object.getOwnPropertyNames(M).forEach(function(ye){return Nl(M,W,ye)})}),W}([p.$data,p.$props,H,this.templateProps]);return t.h({template:this.template||"<div></div>",props:R,computed:p.computed,components:p.components,provide:this.$parent.$.provides?this.$parent.$.provides:{}},Object.assign({},Y))}var Z,A}},_T="",zh={components:{Compile:Ur},mixins:[Pe]},Hh={class:"table-computed-cell"};function qh(e,n,r,i,l,o){const a=t.resolveComponent("compile");return t.openBlock(),t.createElementBlock("td",Hh,[t.createVNode(a,{template:this.column.code},null,8,["template"])])}const Gh=g(zh,[["render",qh],["__scopeId","data-v-05dd3203"]]),kT="",Wh={props:{multi:{type:Boolean},last:{type:Boolean},value:{required:!0},type:{type:String},widget:{type:String}},computed:{reference(){return!!(this.value&&this.value._id)},renderValue(){return this.value?this.value.title||this.value.name||this.value:void 0},date(){return S.fromISO(this.value).toFormat("dd MMM yyyy")},actualWidget(){var e;if(this.widget)e=this.widget;else switch(this.type){case"date":e="datetime";break}return e}},methods:{clicked(e){this.$sdk.dispatch("item:view",e)}}};function Kh(e,n,r,i,l,o){return o.reference?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:n[0]||(n[0]=t.withModifiers(a=>o.clicked(r.value),["stop","prevent"]))},t.toDisplayString(o.renderValue),1)):r.type=="date"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.date),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString(o.renderValue),1),r.multi&&!r.last?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)],64))}const Yh=g(Wh,[["render",Kh],["__scopeId","data-v-cb9b14f7"]]),xT="",Zh={mixins:[Pe],computed:{status(){return String(this.value).toLowerCase()}}},Jh={class:"pill"};function Xh(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-status-cell",o.status])},[t.createElementVNode("div",Jh,t.toDisplayString(o.status),1)],2)}const Qh=g(Zh,[["render",Xh],["__scopeId","data-v-e4a3b2f2"]]),bT="",vh={mixins:[Pe],computed:{typeKey(){var e;return(e=this.row.meta)==null?void 0:e.type},subtitle(){var a;const e=this,n=this.row,r=n.subtitle,i=n.description,l=(a=n.meta)==null?void 0:a.description,o=r||i||l;switch(this.typeKey){case"event":{const s=n.startDate,c=n.endDate;if(e.$sdk.date)return o?`${o} - ${e.$sdk.date.readableDateRange(s,c)}`:`${e.$sdk.date.readableDateRange(s,c)}`}break}return o}}},ey={class:"title"},ty={key:0,class:"subtitle"};function ny(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-title-cell",e.status])},[t.createElementVNode("div",ey,t.toDisplayString(e.value),1),o.subtitle?(t.openBlock(),t.createElementBlock("div",ty,t.toDisplayString(o.subtitle),1)):t.createCommentVNode("",!0)],2)}const ry=g(vh,[["render",ny],["__scopeId","data-v-69182ca5"]]),CT="";function jr(e,n){if(!e||!n)return;var r=Pn(e,n);if(r)return r;const i=n.split("."),l=i.shift(),o=i.join("."),a=Pn(e,l);return Array.isArray(a)?a.map(function(s){return jr(s,o)}).flat().filter(Boolean):jr(a,o)}const oy={data(){return{component:null}},components:{ValueRenderer:Yh},async created(){const e=this;let n,r=e.column.type,i=e.column.renderer||e.column.widget;switch(r=="reference"&&e.column.referenceType==="image"&&(i="thumbnail"),i){case"button":n=Eh;break;case"security":n=Lh;break;case"boolean":n=El;break;case"date":case"datetime":n=Vl;break;case"title":n=ry;break;case"status":n=Qh;break;case"computed":n=Gh;break;case"url":n=Bl;break;case"currency":n=bh;break;case"thumbnail":n=_h;break;default:switch(r){case"date":n=Vl;break;case"boolean":n=El;break;case"url":n=Bl;break}break}e.component=n},props:{column:{type:Object,required:!0},row:{type:Object,required:!0}},computed:{nowrap(){return this.column.wrap===!1},multiValue(){return Array.isArray(this.value)},complex(){this.multiValue},renderer(){return this.column.renderer},renderValue(){var e=this.value;if(e!=null)return e.title||e.name||e},value(){var e=jr(this.row,this.column.key);return e}}},iy={class:"value"},ly={class:"value"};function ay(e,n,r,i,l,o){const a=t.resolveComponent("value-renderer");return l.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.component),{key:0,column:r.column,row:r.row,value:o.value},null,8,["column","row","value"])):(t.openBlock(),t.createElementBlock("td",{key:1,class:t.normalizeClass(["table-cell",{nowrap:o.nowrap}])},[o.multiValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.complex?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.value,(s,c)=>(t.openBlock(),t.createElementBlock("span",iy,[t.createVNode(a,{type:r.column.type,multi:"",last:c===o.value.length-1,value:s},null,8,["type","last","value"])]))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.value,(s,c)=>(t.openBlock(),t.createElementBlock("span",ly,[t.createVNode(a,{type:r.column.type,multi:"",last:c===o.value.length-1,value:s},null,8,["type","last","value"])]))),256))],64)):(t.openBlock(),t.createBlock(a,{key:1,type:r.column.type,value:o.value},null,8,["type","value"]))],2))}const Sl=g(oy,[["render",ay],["__scopeId","data-v-2b9d12bd"]]),wT="",sy={components:{TableCell:Sl},props:{selected:{type:Boolean},index:{type:Number},row:{type:Object,required:!0},columns:{type:Array,required:!0},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}}},methods:{clickCell(e){this.$emit("click:cell",{row:this.row,column:e}),this.$emit("click:row",this.row)},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){const n=this.index;this.$emit("click:select",e,n)}},computed:{classes(){var n,r;var e=[];return this.selected&&e.push("selected"),((r=(n=this.row)==null?void 0:n.meta)==null?void 0:r.status)==="inactive"&&e.push("inactive"),e}}};function cy(e,n,r,i,l,o){const a=t.resolveComponent("ux-checkbox"),s=t.resolveComponent("table-cell"),c=t.resolveComponent("ux-icon"),d=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("tr",{class:t.normalizeClass([o.classes,"table-row"])},[t.renderSlot(e.$slots,"default",{},()=>[r.enableSelection?(t.openBlock(),t.createElementBlock("th",{key:0,class:"table-cell table-select first shrink",onClick:n[0]||(n[0]=t.withModifiers(u=>o.clickSelect(r.row),["stop","prevent"]))},[t.createVNode(a,{value:r.selected},null,8,["value"])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.columns,(u,m)=>(t.openBlock(),t.createBlock(s,{key:`${u.path||u.key}-${m}`,onClick:t.withModifiers(f=>o.clickCell(u),["stop","prevent"]),column:u,row:r.row},null,8,["onClick","column","row"]))),128)),r.enableActions?(t.openBlock(),t.createElementBlock("th",{key:1,class:"table-cell last shrink",onClick:n[1]||(n[1]=t.withModifiers(u=>o.clickActions(r.row),["stop","prevent"]))},[t.createVNode(d,{size:"xs",icon:""},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-ellipsis"})]),_:1})])):t.createCommentVNode("",!0)],!0)],2)}const dy=g(sy,[["render",cy],["__scopeId","data-v-32f1a8a7"]]),Tl={data(){return{scrollTop:0}},methods:{updateScroll(e){var n=this.$refs.scroll;n=n.$el||n,this.scrollTop=n.scrollTop}},mounted(){var e=this.$refs.scroll;e=e.$el||e,e.addEventListener("scroll",this.updateScroll)},beforeUnmount(){var e=this.$refs.scroll;e=e.$el||e,e.removeEventListener("scroll",this.updateScroll)},activated(){var e=this.$refs.scroll;e=e.$el||e,e.scrollTop=this.scrollTop}},VT="",uy={mixins:[Tl],components:{TableRow:dy,TableCell:Sl},watch:{rows(){this.$refs.scroll.scroll({top:0,left:0})},sort(e){this.sorting=e},sorting(e){this.$emit("update:sort",e)}},props:{total:{type:Number},columns:{type:Array,default(){return[]}},rows:{type:Array,default(){return[]}},scrollable:{type:Boolean,default(){return!0}},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}},sort:{type:Object,default(){return{key:"meta.created",type:"date",direction:"desc"}}},selection:{type:Array,default(){return[]}},selectAll:{type:Function},deselectAll:{type:Function}},data(){return{sorting:this.sort,lastSelectedIndex:null,shift:!1,keyListenersAdded:!1}},mounted(){this.addKeyListeners()},activated(){this.addKeyListeners()},beforeUnmount(){this.removeKeyListeners()},deactivated(){this.removeKeyListeners()},computed:{currentSortDirection(){var e;return((e=this.sorting)==null?void 0:e.direction)||"asc"},selectionHash(){var e=this;return e.selection.reduce(function(n,r){var i=r._id||r.id;return n[i]=r,n},{})},pageSelected(){var e=this;if(!(!e.rows||!e.rows.length))return!e.rows.some(function(n){return!e.selectionHash[n._id||n.id]})},renderColumns(){return this.columns.map(function(e){var n=Object.assign({},e);return n.class=[],n.shrink&&n.class.push("shrink"),n})},renderRows(){return this.rows},someSelectedOnPage(){return this.rows.some(this.isSelected)}},methods:{keyDown(e){e.keyCode==16&&(this.shift=!0)},keyUp(e){e.keyCode==16&&(this.shift=!1)},addKeyListeners(){this.keyListenersAdded||(window.addEventListener("keydown",this.keyDown,!0),window.addEventListener("keyup",this.keyUp,!0),this.keyListenersAdded=!0)},removeKeyListeners(){this.keyListenersAdded&&(window.removeEventListener("keydown",this.keyDown,!0),window.removeEventListener("keyup",this.keyUp,!0),this.keyListenersAdded=!1)},togglePage(){var e=this;e.pageSelected?e.deselectPage():e.selectPage()},selectPage(){var e=this;e.$emit("select:multiple",e.rows)},deselectPage(){var e=this;e.$emit("deselect:multiple",e.rows)},isSelected(e){var n=this,r=e._id||e.id;return n.selection.some(function(i){var l=i._id||i.id;return i==e||l==r})},classes(e){let n=[];return this.isSelected(e)&&n.push("selected"),n},selectRange(e,n){const r=this,i=Math.min(e,n),l=Math.max(e,n)+1;var o=r.renderRows.slice(i,l);r.$emit("select:multiple",o)},toggleSort(e){var o,a;const n=(o=this.sorting)==null?void 0:o.key,r=((a=this.sorting)==null?void 0:a.direction)||"asc";let{key:i,direction:l}=e;i===n&&(l=r==="dsc"?"asc":"dsc"),this.sorting={key:i,direction:l,type:e.type},this.$emit("")},clickRow(e){this.$emit("click:row",e)},clickCell({row:e,column:n}){this.$emit("click:cell",{row:e,column:n})},clickActions(e){this.$emit("click:actions",e)},clickSelect(e,n){const r=this.lastSelectedIndex;if(this.shift&&r!=n)return this.selectRange(r,n);this.lastSelectedIndex=n,this.$emit("select:row:toggle",e)}}},my={class:"table-wrapper"},fy={class:"table-scroll",ref:"scroll"},py={key:0,class:"first table-select shrink"},hy=["onClick"],yy={key:1,class:"last shrink"};function gy(e,n,r,i,l,o){const a=t.resolveComponent("ux-checkbox"),s=t.resolveComponent("ux-list-item"),c=t.resolveComponent("ux-list"),d=t.resolveComponent("ux-menu"),u=t.resolveComponent("flex-cell"),m=t.resolveComponent("flex-row"),f=t.resolveComponent("table-row");return t.openBlock(),t.createElementBlock("div",my,[t.createElementVNode("div",fy,[t.createElementVNode("table",null,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[r.enableSelection?(t.openBlock(),t.createElementBlock("th",py,[t.createVNode(d,null,{activator:t.withCtx(({on:p})=>[t.createVNode(a,t.mergeProps(t.toHandlers(p),{value:o.pageSelected}),null,16,["value"])]),default:t.withCtx(()=>[t.createVNode(c,null,{default:t.withCtx(()=>[t.createVNode(s,{onClick:n[0]||(n[0]=p=>o.selectPage())},{default:t.withCtx(()=>[t.createTextVNode(" Select Page ")]),_:1}),o.someSelectedOnPage?(t.openBlock(),t.createBlock(s,{key:0,onClick:n[1]||(n[1]=p=>o.deselectPage())},{default:t.withCtx(()=>[t.createTextVNode(" Deselect Page ")]),_:1})):t.createCommentVNode("",!0),r.selectAll?(t.openBlock(),t.createBlock(s,{key:1,onClick:n[2]||(n[2]=p=>r.selectAll())},{default:t.withCtx(()=>[t.createTextVNode(" Select All ("+t.toDisplayString(r.total)+") ",1)]),_:1})):t.createCommentVNode("",!0),r.deselectAll?(t.openBlock(),t.createBlock(s,{key:2,onClick:n[3]||(n[3]=p=>r.deselectAll())},{default:t.withCtx(()=>[t.createTextVNode(" Deselect All ")]),_:1})):t.createCommentVNode("",!0)]),_:1})]),_:1})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.renderColumns,p=>{var h;return t.openBlock(),t.createElementBlock("th",{onClick:y=>o.toggleSort(p),class:t.normalizeClass([{sortable:p.sortable!==!1,active:p.key===((h=l.sorting)==null?void 0:h.key)},p.class])},[t.createVNode(m,{gap:"",vcenter:""},{default:t.withCtx(()=>{var y;return[t.createVNode(u,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p.title),1)]),_:2},1024),p.key===((y=l.sorting)==null?void 0:y.key)?(t.openBlock(),t.createBlock(u,{key:0,class:"caret",shrink:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.currentSortDirection==="asc"?"▲":"▼"),1)]),_:1})):t.createCommentVNode("",!0)]}),_:2},1024)],10,hy)}),256)),r.enableActions?(t.openBlock(),t.createElementBlock("th",yy,[t.renderSlot(e.$slots,"corner",{},void 0,!0)])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.renderRows,(p,h)=>(t.openBlock(),t.createBlock(f,{enableSelection:r.enableSelection,enableActions:r.enableActions,key:p._id,"onClick:cell":o.clickCell,"onClick:row":o.clickRow,"onClick:select":o.clickSelect,"onClick:actions":o.clickActions,selected:o.isSelected(p),row:p,index:h,columns:r.columns},null,8,["enableSelection","enableActions","onClick:cell","onClick:row","onClick:select","onClick:actions","selected","row","index","columns"]))),128))])])],512)])}const Dl=g(uy,[["render",gy],["__scopeId","data-v-91800cfb"]]);var Tt={},_y={get exports(){return Tt},set exports(e){Tt=e}},ky=Object.prototype.hasOwnProperty;function Ol(e){return"[Throws: "+(e?e.message:"?")+"]"}function xy(e,n){if(ky.call(e,n))try{return e[n]}catch(r){return Ol(r)}return e[n]}function Al(e){var n=[];function r(i){if(i===null||typeof i!="object")return i;if(n.indexOf(i)!==-1)return"[Circular]";if(n.push(i),typeof i.toJSON=="function")try{var l=r(i.toJSON());return n.pop(),l}catch(s){return Ol(s)}if(Array.isArray(i)){var o=i.map(r);return n.pop(),o}var a=Object.keys(i).reduce(function(s,c){return s[c]=r(xy(i,c)),s},{});return n.pop(),a}return r(e)}_y.exports=function(e,n,r){return JSON.stringify(Al(e),n,r)},Tt.ensureProperties=Al;function by(e,n){return e==null||n=="date"&&e.toString&&e.toString()==="Invalid Date"}function Ml(e){return e!=null}const z={props:{field:{type:Object,default(){return{}}},parentModel:{type:Object}},data(){return{dynamicOptions:[],asyncOptionsAreLoading:this.field.asyncOptions,value:this.modelValue}},watch:{modelValue(e,n){this.model=e}},mounted(){this.checkAutofocus()},async created(){const e=this;e.hasAsyncOptions&&await e.reloadAsyncOptions()},inject:["form","fieldPath"],computed:{hasAsyncOptions(){return this.field.asyncOptions},loadingAsyncOptions(){return this.hasAsyncOptions&&this.asyncOptionsAreLoading},optionLookup(){var e=this;return e.options.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{})},selectableOptions(){return this.options},required(){return this.minimum},model:{get(){var e=this.cleanOutput(this.value);return e},set(e){let n;(this.isGroup||this.widget==="form")&&(e===this.value?n=!1:n=!0);const r=this.cleanInput(e),i=this.cleanInput(this.value);(Tt(r)!=Tt(i)||n)&&(this.value=r,this.checkAutofocus(),this.dispatch())}},options(){var e=this;return e.hasAsyncOptions?e.dynamicOptions:(e.field.options||[]).reduce(function(n,r){if(!r)return n;const i=e.getValue(r);var o={title:r.title||r.name||r.label||i,value:i,none:r.none,source:r};return e.field.type=="reference"&&(o._id=i),n.push(o),n},[])},prefix(){return this.field.suffix},suffix(){return this.field.suffix},type(){return this.field.type||"string"},key(){return this.field.key},isGroup(){return this.type==="group"},asObject(){return this.isGroup&&!!this.field.asObject},layoutGroup(){return this.isGroup&&!this.field.asObject},canAddValue(){if(!this.singleValue&&!(this.options.length&&this.selectableOptions.length===0))return this.maximum===0||this.numValues<this.maximum},canRemoveValue(){return this.numValues>this.minimum},widget(){return this.field.widget},singleValue(){if(this.asObject){var e=this.minimum===1&&this.maximum===1;return e}else return this.maximum===1},multiValue(){return!this.singleValue},label(){return this.field.title},title(){return this.label},plural(){return this.field.plural},description(){return this.field.description},placeholder(){return this.field.placeholder||this.field.hint},addLabel(){return this.numValues?`Add another ${this.label}`:`Add ${this.label}`},removeLabel(){return"Remove"},numValues(){return this.singleValue?1:(this.value||[]).length||0},showLabel(){return this.field.title},showDescription(){return this.description},fields(){var e=this.field.fields;if(e&&e.length)return e},minimum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.minimum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),e=this.maximum?Math.min(e,this.maximum):e,parseInt(e)},maximum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.maximum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),parseInt(e)},ask(){var e=parseInt(this.field.ask);return e=Math.max(e,this.minimum),this.maximum&&(e=Math.min(e,this.maximum)),e}},methods:{async reloadAsyncOptions(){const e=this;if(!e.hasAsyncOptions){e.asyncOptionsAreLoading=!1;return}e.asyncOptionsAreLoading=!0;const{data:n}=await e.$sdk.api.get(e.field.asyncOptions);e.dynamicOptions=n,e.asyncOptionsAreLoading=!1},cleanTextInput(e,n,r){switch(n){case"url":e=r.$sdk.utils.parseURL(e);break;case"key":e=String(r.$sdk.utils.machineName(e||"")||"").trim();break;case"integer":e=parseInt(String(e).replace(/[^0-9-]/g,"")),isNaN(e)&&(e=void 0);break;case"number":case"decimal":case"float":e=Number(String(e).replace(/[^0-9.-]/g,"")),isNaN(e)&&(e=void 0);break}return e},checkAutofocus(){if(this.field.autofocus){if(this.value)return;this.$nextTick(function(){this.refocus()})}},getValue(e){if(!e)return this.cleanTextInput(e);var n=this.cleanTextInput(e._id||e.value),r=Ml(n);return!r&&e.title&&!this.returnObject&&(n=e.title),n=this.cleanTextInput(n),Ml(n)?n:e},getLabel(e){if(e){var n=e.title||e.name||e.label;return typeof n=="object"?"(no title)":n}},touch(){this.$emit("touched")},getNewDefaultEntry(){},add(){if(this.canAddValue){var e=this.cleanInputValue(this.getNewDefaultEntry());(!this.value||!Array.isArray(this.value))&&(this.value=[]),this.value.push(e),this.dispatch(),this.$nextTick(function(){this.refocus()}),this.touch()}},remove(e){var n=this.model.indexOf(e);this.value.splice(n,1),this.dispatch(),this.touch()},dispatch(){this.$emit("update:modelValue",this.value)},cleanInputValue(e){return e},cleanOutputValue(e){return e},cleanOutput(e){var n=this;return by(e,n.field.type)?n.multiValue?e=[]:e=void 0:n.multiValue?(Array.isArray(e)||(e=[]),e.forEach(function(r,i){e[i]=n.cleanOutputValue(r)})):e=n.cleanOutputValue(e),e},cleanInput(e){var n=this;if(n.multiValue){for(e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum);e.length<n.minimum;)e.push(n.cleanInputValue(n.getNewDefaultEntry()));e=e.map(function(r){var i=n.cleanInputValue(r);return i})}else e&&(e=n.cleanInputValue(e));return e},refocus(){var e=this.$refs.input;if(e){var n;Array.isArray(e)?n=e[e.length-1]:n=e,n&&n.focus()}}}},ET="";function Cy(e){return e===void 0||typeof e>"u"||e===null||String(e)==="null"||String(e)==="undefined"}const wy={data(){return{candidate:null}},props:{title:{type:String},modelValue:{}},mixins:[z],created(){this.model=this.model},methods:{displayLabelFromValue(e){if(!e)return;const n=e.value||e,r=this.optionLookup[n]||{};return r.title||r.name||e.title||e.value||e},addValue(e){this.canAddValue&&this.model.indexOf(e)===-1&&(this.model=[...this.model,e])},removeValue(e){var n=this.model.slice();e!=-1&&(n.splice(e,1),this.model=n)},cleanOutput(e){var n=this;return Cy(e)?n.multiValue?e=[]:e=void 0:n.multiValue?e=(e||[]).filter(function(r){return r!=null}).map(function(r){return n.getValue(r)}):e=n.getValue(e),e},cleanInput(e){var n=this;if(n.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum),e=e.filter(function(i){return i!=null}).map(function(i){var l=n.getValue(i);return n.returnObject?n.optionLookup[l]:l});else{var r=n.getValue(e);switch(e=n.returnObject?n.optionLookup[r]:r,e){case"":switch(n.type){case"decimal":case"float":case"number":case"integer":e=void 0;break}break}}return e}},watch:{candidate(e){e&&(this.addValue(e),this.candidate=null)}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},summary(){if(this.multiValue)return"Select an option";const e=this.selectableOptions.find(function(r){return r.none}),n=(e==null?void 0:e.title)||(e==null?void 0:e.label);return this.model?this.getLabel(this.optionLookup[this.model]):n||this.title||"Click to select"},grouped(){const e=this,{values:n}=e.selectableOptions.reduce(function(r,i){const l=i.group||"";let o=r.hash[l];return o||(o=r.hash[l]={title:l,options:[]},r.values.push(o)),o.options.push(i),r},{hash:{},values:[]});if(!(n.length<=1))return n},modelLookup(){var e=this;return e.multiValue?e.model.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{}):{}},selectableOptions(){var r;const e=this;let n=e.options;return e.multiValue&&(n=n.filter(function(i){return!e.modelLookup[e.getValue(i)]})),(r=e.field)!=null&&r.sorted?n.sort(function(i,l){var o=(i.title||i).toLowerCase(),a=(l.title||l).toLowerCase();return o<a?-1:o>a?1:0}):n},showNoneOption(){return!(!(this.singleValue&&!this.minimum)||this.selectableOptions.find(function(r){return r.none}))}}},Vy=e=>(t.pushScopeId("data-v-74bb87d8"),e=e(),t.popScopeId(),e),Ey={key:0,class:"ux-field-title"},By={key:0,class:"ux-required-marker"},Ny={key:1,class:"ux-field-description"},Sy={key:2,class:"select-tags"},Ty=["onClick"],Dy={key:3},Oy={key:4,class:"select-input-wrapper"},Ay={class:"ui-select-button"},My=Vy(()=>t.createElementVNode("option",{value:""},"Select an option",-1)),Fy=["label"],Iy=["value"],$y=["value"],Ly={class:"ui-select-button"},Py=["multiple"],Uy={key:0,value:""},jy=["label"],Ry=["value"],zy=["value"];function Hy(e,n,r,i,l,o){const a=t.resolveComponent("flex-cell"),s=t.resolveComponent("ux-icon"),c=t.resolveComponent("flex-row"),d=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["native-select",o.classes])},[e.showLabel?(t.openBlock(),t.createElementBlock("label",Ey,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",By,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",Ny,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.multiValue?(t.openBlock(),t.createElementBlock("div",Sy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model,(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"select-tag",key:u.value||u},[t.createVNode(c,{gap:"",center:""},{default:t.withCtx(()=>[t.createVNode(a,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.displayLabelFromValue(u)),1)]),_:2},1024),t.createVNode(a,{shrink:""},{default:t.withCtx(()=>[t.createElementVNode("a",{onClick:f=>o.removeValue(m)},[t.createVNode(s,{icon:"fa-times"})],8,Ty)]),_:2},1024)]),_:2},1024)]))),128))])):t.createCommentVNode("",!0),e.loadingAsyncOptions?(t.openBlock(),t.createElementBlock("div",Dy,[t.createVNode(s,{icon:"fa-spinner",spin:"",left:""}),t.createTextVNode(" Loading Options ")])):(t.openBlock(),t.createElementBlock("div",Oy,[e.multiValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.canAddValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Ay,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(d,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)]),t.withDirectives(t.createElementVNode("select",{onFocus:n[0]||(n[0]=(...u)=>e.touch&&e.touch(...u)),"onUpdate:modelValue":n[1]||(n[1]=u=>l.candidate=u)},[My,o.grouped?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.grouped,u=>(t.openBlock(),t.createElementBlock("optgroup",{label:u.title,key:u.title},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Iy))),256))],8,Fy))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.selectableOptions,u=>(t.openBlock(),t.createElementBlock("option",{value:u.value},t.toDisplayString(u.title),9,$y))),256))],544),[[t.vModelSelect,l.candidate]])],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ly,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(d,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)]),t.withDirectives(t.createElementVNode("select",{onFocus:n[2]||(n[2]=(...u)=>e.touch&&e.touch(...u)),multiple:e.multiValue,"onUpdate:modelValue":n[3]||(n[3]=u=>e.model=u)},[o.showNoneOption?(t.openBlock(),t.createElementBlock("option",Uy,"None")):t.createCommentVNode("",!0),o.grouped?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.grouped,u=>(t.openBlock(),t.createElementBlock("optgroup",{label:u.title,key:u.title},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Ry))),256))],8,jy))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(o.selectableOptions,u=>(t.openBlock(),t.createElementBlock("option",{value:u.value},t.toDisplayString(u.title),9,zy))),256))],40,Py),[[t.vModelSelect,e.model]])],64))]))],2)}const ve=g(wy,[["render",Hy],["__scopeId","data-v-74bb87d8"]]),BT="",qy={props:{total:{type:Number,default(){return 0}},page:{type:Object,default(){return{size:50,index:1}}}},components:{NativeSelect:ve},watch:{totalPages(){this.currentPage=0}},computed:{perPage:{get(){return this.pageModel.size},set(e){e=Math.max(e,1),this.pageModel.size=e,this.dispatch()}},pageField(){return{type:"integer",maximum:1,minimum:1,options:Array(this.totalPages).fill(1).map((e,n)=>e+n)}},totalPages(){return Math.ceil(this.total/this.perPage)},startIndex(){return(this.currentPage-1)*this.pageModel.size},displayStartIndex(){return this.total?this.startIndex+1:0},endIndex(){return Math.min(this.startIndex+this.pageModel.size,this.total)},currentPage:{get(){return this.pageModel.index},set(e){this.totalPages&&(e=Math.min(this.totalPages,e)),e=Math.max(e,1),this.pageModel.index=e,this.dispatch()}}},methods:{dispatch(){return this.$emit("update:page",this.pageModel)},previousPage(){this.currentPage--},nextPage(){this.currentPage++}},data(){return{pageModel:this.page,perPageField:{minimum:1,maximum:1,options:[{title:"50 per page",value:50},{title:"100 per page",value:100},{title:"250 per page",value:250},{title:"500 per page",value:500}]}}}};function Gy(e,n,r,i,l,o){const a=t.resolveComponent("native-select"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("ux-icon"),d=t.resolveComponent("ux-button"),u=t.resolveComponent("flex-row");return t.openBlock(),t.createBlock(u,{center:"",gap:""},{default:t.withCtx(()=>[t.createVNode(s,{shrink:"",class:"text"},{default:t.withCtx(()=>[t.createVNode(a,{modelValue:o.perPage,"onUpdate:modelValue":n[0]||(n[0]=m=>o.perPage=m),field:l.perPageField},{default:t.withCtx(()=>[e.$device.breakpoint.xs?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.displayStartIndex)+"-"+t.toDisplayString(o.endIndex)+" of "+t.toDisplayString(r.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Showing "+t.toDisplayString(o.displayStartIndex)+" to "+t.toDisplayString(o.endIndex)+" of "+t.toDisplayString(r.total)+" total",1)],64))]),_:1},8,["modelValue","field"])]),_:1}),t.createVNode(s),o.totalPages>1?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createVNode(u,{gap:"",center:""},{default:t.withCtx(()=>[t.createVNode(s,{shrink:"",class:"text"},{default:t.withCtx(()=>[t.createVNode(a,{modelValue:o.currentPage,"onUpdate:modelValue":n[1]||(n[1]=m=>o.currentPage=m),field:o.pageField},{default:t.withCtx(()=>[e.$device.breakpoint.xs?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.currentPage)+"/"+t.toDisplayString(o.totalPages),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Page "+t.toDisplayString(o.currentPage)+" of "+t.toDisplayString(o.totalPages),1)],64))]),_:1},8,["modelValue","field"])]),_:1}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.createVNode(d,{icon:"",onClick:n[2]||(n[2]=m=>o.previousPage())},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-arrow-left"})]),_:1})]),_:1}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.createVNode(d,{icon:"",onClick:n[3]||(n[3]=m=>o.nextPage())},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-arrow-right"})]),_:1})]),_:1})]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1})}const Wy=g(qy,[["render",Gy],["__scopeId","data-v-f4838c15"]]),NT="",Ky={props:{icon:{type:[Object,String],default(){return"fa-exclamation"}},type:{type:String,default:"info"}},computed:{classes(){var e=[];return e.push(`ux-info-${this.type}`),e}}},Yy={class:"icon-circle"};function Zy(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-info-box",o.classes])},[t.createVNode(c,{style:{gap:"1em"},center:""},{default:t.withCtx(()=>[r.icon?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createElementVNode("div",Yy,[t.createVNode(a,{icon:r.icon},null,8,["icon"])])]),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})],2)}const Fl=g(Ky,[["render",Zy],["__scopeId","data-v-9669e7c0"]]),ST="",Jy={props:{id:{type:[Object,String]}},computed:{stringID(){return this.$sdk.utils.id(this.id)},url(){}}},Xy={class:"avatar"};function Qy(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Xy)}const Il=g(Jy,[["render",Qy]]),TT="",vy={props:{large:{type:Boolean}}},eg=[(e=>(t.pushScopeId("data-v-d68fe1cf"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"fa fa-spin fa-spinner"},null,-1))];function tg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-spinner",{large:r.large}])},eg,2)}const Rr=g(vy,[["render",tg],["__scopeId","data-v-d68fe1cf"]]),AT="",ng={components:{Spinner:Rr},props:{to:{type:[Object,String]},icon:{type:Boolean},color:{type:String,default:"default"},bgColor:{type:String},fgColor:{type:String},tag:{type:String},href:{type:String},target:{type:String},loading:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean},block:{type:Boolean},size:{type:String,default:"md"}},computed:{style(){var e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.fgColor&&(e.color=this.fgColor),e},classes(){var e=[];return e.push(`ux-btn-${this.size}`),this.block&&e.push("ux-btn-block"),this.loading&&e.push("ux-btn-loading"),this.active&&e.push("ux-btn-active"),this.icon&&e.push("ux-btn-icon"),e.push(`ux-btn-color-${this.color}`),this.disabled&&e.push("ux-btn-disabled"),e},element(){switch(this.tag){case"span":return this.tag;case"submit":return"button";default:return this.to||this.href?"ux-link":this.tag||"button"}}}},rg={class:"ux-btn-text"};function og(e,n,r,i,l,o){const a=t.resolveComponent("spinner");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{active:r.active,loading:r.loading,to:r.to,href:r.href,target:r.target,style:t.normalizeStyle(o.style),class:t.normalizeClass([o.classes,"ux-btn"]),disabled:r.disabled},{default:t.withCtx(()=>[r.loading?(t.openBlock(),t.createBlock(a,{key:0})):t.createCommentVNode("",!0),t.createElementVNode("span",rg,[t.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["active","loading","to","href","target","style","class","disabled"])}const $l=g(ng,[["render",og],["__scopeId","data-v-66b9c2a8"]]),MT="",ig={props:{value:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-checkbox-true"):e.push("ux-checkbox-false"),e}}};function lg(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["ux-checkbox",o.classes])},[t.createVNode(a,{class:"icon",icon:"fa-check"})],2)}const zr=g(ig,[["render",lg],["__scopeId","data-v-46a835a5"]]),FT="",ag={props:{value:{type:Boolean,default(){return!1}},loading:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-switch-true"):e.push("ux-switch-false"),this.loading&&e.push("ux-switch-loading"),e}}};function sg(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["ux-switch",o.classes])},[t.createElementVNode("span",null,[t.createVNode(a,{spin:"",icon:"fa-spinner"})])],2)}const Ll=g(ag,[["render",sg],["__scopeId","data-v-9663da46"]]),IT="",cg={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean},active:{type:Boolean}},methods:{clicked(e){var n=this;if(n.to&&(n.buildMode||n.nuxtMode))return e.preventDefault(),e.stopImmediatePropagation(),n.$sdk.app.to(n.to);if(n.href&&(n.buildMode||n.nuxtMode)){e.preventDefault(),e.stopImmediatePropagation();return}}},computed:{actualHref(){if(this.href)return this.href;if(this.nuxtMode)return this.$sdk.app.createHref(this.to)},nuxtMode(){return this.to&&this.$sdk.nuxt&&this.$sdk.app&&this.$sdk.app.createHref},buildMode(){return!!this.$sdk&&this.$sdk.app&&this.$sdk.app.builder},class(){var e=[];return this.disabled&&e.push("disabled"),this.active&&e.push("active"),(this.href||this.to)&&e.push("haslink"),e},element(){return this.nuxtMode||this.buildMode?"a":this.to?"router-link":"a"}}};function dg(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{onClick:o.clicked,to:r.to,href:o.actualHref,target:r.target,class:t.normalizeClass([o.class,"ux-link"])},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","to","href","target","class"])}const Pl=g(cg,[["render",dg],["__scopeId","data-v-c91c7a6c"]]),$T="",ug={props:{icon:{type:[Object,String]},spin:{type:Boolean},left:{type:Boolean},right:{type:Boolean}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},element(){return"i"}}};function mg(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{class:t.normalizeClass(["ux-icon fa",o.classes])},null,8,["class"])}const Ul=g(ug,[["render",mg],["__scopeId","data-v-dd53ba4e"]]),Un={cache:{}},LT="",fg={props:{group:{type:String},right:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},stop:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default(){return!0}},modelValue:{type:Boolean,default(){return!1}}},data(){return{outerStyle:{},innerStyle:{},isExpanded:this.modelValue,triggerEvent:null,refMenu:null,mounted:!1}},watch:{modelValue(e){this.expanded=e}},mounted(){this.refMenu=this.$refs.menu,this.mounted=!0},beforeUnmount(){this.removeListeners(),this.refMenu=null,this.mounted=!1,Un.cache[this.group]===this&&(Un.cache[this.group]=null)},methods:{removeListeners(){document.removeEventListener("click",this.globalClick),this.refMenu&&this.refMenu.removeEventListener("click",this.immediateClick)},addEventListeners(){document.addEventListener("click",this.globalClick),this.refMenu&&this.refMenu.addEventListener("click",this.immediateClick)},immediateClick(e){this.expanded&&this.closeOnClick&&(e.stopImmediatePropagation(),this.expanded=!1)},globalClick(e){if(this.triggerEvent!==e){var n=this.$refs.menu,r=e.srcElement;n&&n.contains(r)?this.closeOnClick&&(this.expanded=!1):this.expanded=!1}},position(){const e=this.$el.getBoundingClientRect();this.outerStyle.left=`${e.left+window.scrollX}px`,this.outerStyle.top=`${e.bottom+window.scrollY}px`,this.right&&(this.innerStyle.right=`-${e.width}px`),this.bottom&&(this.innerStyle.bottom=`${e.height}px`);var n=this.getMaxZIndex();this.outerStyle.zIndex=n},getMaxZIndex(){return Math.max(...Array.from(document.querySelectorAll("body *"),e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!Number.isNaN(e)),0)},close(){this.expanded=!1}},computed:{expanded:{get(){return this.isExpanded},set(e){var n;this.group&&(n=Un.cache[this.group]),this.isExpanded!=e&&(this.isExpanded=e,e?(this.position(),this.addEventListeners(),Un.cache[this.group]=this,n&&n!=this&&(n.expanded=!1)):this.removeListeners(),this.$emit("update:modelValue",e))}},on(){var e=this;return{click(n){e.stop&&n.stopImmediatePropagation(),e.triggerEvent=n,e.expanded=!e.expanded}}}}};function pg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-menu",{right:r.right}])},[t.createElementVNode("span",null,[t.renderSlot(e.$slots,"activator",{on:o.on},void 0,!0)]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[l.isExpanded?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ux-menu-outer",style:t.normalizeStyle(l.outerStyle)},[t.createElementVNode("div",{class:"ux-menu-panel",ref:"menu",style:t.normalizeStyle(l.innerStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)],4)):t.createCommentVNode("",!0)]))],2)}const jl=g(fg,[["render",pg],["__scopeId","data-v-db935124"]]),hg={name:"menulist",props:{items:{type:Array,default(){return[]}},expandOn:{type:String,default:"none"}},mounted(){this.mounted=!0},beforeUnmount(){this.mounted=!1,this.removeListeners()},computed:{filteredItems(){return this.tree.filter(function(e){return!e.disabled})},expandedItem:{get(){return this.currentExpandedItem},set(e){this.currentExpandedItem&&(this.currentExpandedItem.expanded=!1,this.currentExpandedItem.collapsed=!0),this.currentExpandedItem=e,this.currentExpandedItem?(this.currentExpandedItem.expanded=!0,this.currentExpandedItem.collapsed=!1,this.addListeners()):this.removeListeners()}}},data(){return{currentExpandedItem:null,tree:JSON.parse(JSON.stringify(this.items))}},methods:{globalClick(e){this.expandedItem=null},addListeners(){var n;this.$sdk.addEventListener("route:change",this.globalClick);const e=(n=this.$el)==null?void 0:n.ownerDocument;e&&e.body.addEventListener("click",this.globalClick)},removeListeners(){var n;this.$sdk.removeEventListener("route:change",this.globalClick);const e=(n=this.$el)==null?void 0:n.ownerDocument;e&&e.body.removeEventListener("click",this.globalClick)},toggle(e){this.currentExpandedItem===e?this.expandedItem=null:this.expandedItem=e}},watch:{items:{handler(e){this.tree=JSON.parse(JSON.stringify(e))},deep:!0}}};function yg(e,n,r,i,l,o){const a=t.resolveComponent("ux-link"),s=t.resolveComponent("menulist",!0);return t.openBlock(),t.createElementBlock("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.filteredItems,c=>{var d;return t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass({expanded:c.expanded,collapsed:c.collapsed})},[r.expandOn==="click"&&((d=c.items)!=null&&d.length)?(t.openBlock(),t.createBlock(a,{key:0,onClick:t.withModifiers(u=>o.toggle(c),["stop","prevent"]),class:t.normalizeClass(c.class)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["onClick","class"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.type==="url"?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(c.class),target:c.target,href:c.href||c.url},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["class","target","href"])):c.type==="route"?(t.openBlock(),t.createBlock(a,{key:1,class:t.normalizeClass(c.class),to:{name:c.route}},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["class","to"])):t.createCommentVNode("",!0)],64)),c.items&&c.items.length?(t.openBlock(),t.createBlock(s,{key:2,items:c.items},null,8,["items"])):t.createCommentVNode("",!0)],2)}),256))])}const Rl=g(hg,[["render",yg]]),PT="",gg={props:{item:{type:[Object,String]},alt:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},inline:{type:Boolean},quality:{type:[Number,String]},contain:{type:Boolean,default:!0},preview:{type:Boolean,default:!1},crop:{type:Boolean},format:{type:String},upscale:{type:Boolean,default:!0},type:{type:String,default:"image"},svg:{type:Boolean}},data(){return{model:this.item,retries:0,cacheBuster:0}},watch:{item(e){this.model=e}},beforeMount(){this.$sdk.auth.ensureValidToken()},mounted(){const e=this.$refs.img;e&&e.addEventListener("error",this.imageLoadError)},beforeUnmount(){const e=this.$refs.img;e&&e.removeEventListener("error",this.imageLoadError)},methods:{imageLoadError:Et(function(e){this.retries<3&&(this.cacheBuster++,this.retries++)},100)},computed:{altText(){var e;return this.alt||((e=this.model)==null?void 0:e.title)},className(){var e=[];return this.portrait&&e.push("img-portrait"),e.join(" ")},isSvg(){var e;if(this.svg)return!0;switch((e=this.item)==null?void 0:e.fileMime){case"image/svg+xml":case"image/svg":return!0}},portrait(){return this.crop?this.dimensionHeight>this.dimensionWidth:this.modelHeight>this.modelWidth},imageWidth(){return parseInt(this.width)},imageHeight(){return parseInt(this.height)},modelWidth(){var e;return parseInt((e=this.model)==null?void 0:e.width)},modelHeight(){var e;return parseInt((e=this.model)==null?void 0:e.height)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),e.cb=this.cacheBuster,this.imageWidth&&(e.w=this.imageWidth?this.imageWidth:null),this.imageHeight&&(e.h=this.imageHeight?this.imageHeight:null),this.crop?e.c=!0:this.contain||(e.c=this.imageWidth&&this.imageHeight),this.quality&&(e.q=parseInt(this.quality)),this.upscale&&(e.u=!0),this.format&&(e.f=this.format),e},src(){const e="image";return this.$sdk.api.generateEndpointURL(`/${e}/${this.id}`,this.params,{file:!0})},previewSrc(){var e=Object.assign({},this.params);e.w=50,delete e.h;const n="image";return this.$sdk.api.generateEndpointURL(`/${n}/${this.id}`,e,{file:!0})},imageStyle(){var e={};return this.crop||(e["object-fit"]="contain"),this.inline?e.maxWidth="100%":(e.width="100%",e.height="100%",e.top="0",e.left="0",e.position="absolute"),e},dimensionWidth(){return this.imageWidth&&this.imageHeight?this.imageWidth:this.modelWidth},dimensionHeight(){return this.imageWidth&&this.imageHeight?this.imageHeight:this.modelHeight},style(){var r,i,l;var e={};this.inline?e.display="inline-block":this.dimensionHeight&&this.dimensionWidth&&(e.height=0,e.overflow="hidden",e.paddingBottom=`${this.dimensionHeight/this.dimensionWidth*100}%`,e.position="relative");var n=(l=(i=(r=this.model)==null?void 0:r.fileMeta)==null?void 0:i.colors)==null?void 0:l.colors;return n&&n.length&&(e.backgroundColor=n[0]),this.isSvg||this.preview&&(e.backgroundImage=`url(${this.previewSrc})`),e}}},_g=["alt","data"],kg=["alt","src"];function xg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-image",o.className]),style:t.normalizeStyle(o.style)},[r.svg?(t.openBlock(),t.createElementBlock("object",{key:0,alt:o.altText,type:"image/svg+xml",data:o.src},null,8,_g)):(t.openBlock(),t.createElementBlock("img",{key:1,ref:"img",alt:o.altText,style:t.normalizeStyle(o.imageStyle),src:o.src},null,12,kg))],6)}const zl=g(gg,[["render",xg],["__scopeId","data-v-258037a0"]]),UT="",bg={props:{item:{type:[Object,String]},width:{type:[Number,String]},height:{type:[Number,String]},controls:{type:Boolean,default:!0}},data(){return{model:this.item}},beforeMount(){this.$sdk.auth.ensureValidToken()},computed:{mediaType(){var e;return((e=this.model)==null?void 0:e.mediaIntegrationType)||"upload"},mimetype(){var e;return((e=this.model)==null?void 0:e.fileMime)||"video/mp4"},actualWidth(){return parseInt(this.width)||this.modelWidth||1920},actualHeight(){return parseInt(this.height)||this.modelHeight||1080},className(){var e=[];return this.portrait&&e.push("video-portrait"),e.push(`video-type-${this.mediaType}`),e.join(" ")},portrait(){return this.actualHeight>this.actualWidth},modelWidth(){var e;return parseInt(((e=this.model)==null?void 0:e.width)||0)},modelHeight(){var e;return parseInt(((e=this.model)==null?void 0:e.height)||0)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),e},src(){return this.$sdk.api.generateEndpointURL(`/video/${this.id}`,this.params,{file:!0})},thumbnailSrc(){var e=Object.assign({},this.params);return e.w=this.actualWidth,e.h=this.actualHeight,delete e.h,this.$sdk.api.generateEndpointURL(`/image/${this.id}`,e,{file:!0})},style(){var e={};return e}}},Cg={class:"ux-video-embed-upload"},wg=["width","height","controls"],Vg=["src","type"];function Eg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-video",o.className]),style:t.normalizeStyle(o.style)},[t.createElementVNode("div",Cg,[t.createElementVNode("video",{width:o.actualWidth,height:o.actualHeight,controls:r.controls},[t.createElementVNode("source",{src:o.src,type:o.mimetype},null,8,Vg),t.createTextVNode(" Your browser does not support the video tag. ")],8,wg)])],6)}const Hl=g(bg,[["render",Eg],["__scopeId","data-v-e032a513"]]),jT="",Bg={props:{value:{type:Number}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},percent(){return this.value},barStyle(){return{width:`${this.percent}%`}},element(){return"i"}}},Ng=e=>(t.pushScopeId("data-v-d56ad6e1"),e=e(),t.popScopeId(),e),Sg={class:"ux-progress"},Tg=Ng(()=>t.createElementVNode("div",{class:"ux-progress-bg"},null,-1));function Dg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Sg,[Tg,t.createElementVNode("div",{class:"ux-progress-fg",style:t.normalizeStyle(o.barStyle)},null,4)])}const ql=g(Bg,[["render",Dg],["__scopeId","data-v-d56ad6e1"]]),RT="",Og={},Ag={class:"ux-list"};function Mg(e,n){return t.openBlock(),t.createElementBlock("ul",Ag,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Gl=g(Og,[["render",Mg],["__scopeId","data-v-98a2be3e"]]),zT="",Fg={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean}},computed:{element(){return this.to||this.href?"ux-link":"div"}}};function Ig(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{class:"ux-list-item",to:r.to,href:r.href,target:r.target,disabled:r.disabled},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["to","href","target","disabled"])}const Wl=g(Fg,[["render",Ig],["__scopeId","data-v-a5af4698"]]),HT="";function tn(e){var n=new Date(e);if(n instanceof Date&&!isNaN(n))return n}const $g={props:{modelValue:{type:Object}},data(){return{model:this.modelValue}},computed:{startDate:{get(){var e;return(e=tn(this.model.startDate))==null?void 0:e.toISOString().slice(0,10)},set(e){e=tn(e),e?this.model.startDate=e:this.model.startDate=void 0}},endDate:{get(){var e;return(e=tn(this.model.endDate))==null?void 0:e.toISOString().slice(0,10)},set(e){e=tn(e),tn(e)?this.model.endDate=e:this.model.endDate=void 0}}},watch:{model(e){this.$emit("updated:modelValue",e)},modelValue(e){this.model=e}}},Kl=e=>(t.pushScopeId("data-v-dc53841d"),e=e(),t.popScopeId(),e),Lg=Kl(()=>t.createElementVNode("label",null,"From Date",-1)),Pg=Kl(()=>t.createElementVNode("label",null,"To Date",-1));function Ug(e,n,r,i,l,o){const a=t.resolveComponent("flex-cell"),s=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(s,{wrap:"",gap:"",vcenter:""},{default:t.withCtx(()=>[t.createVNode(a,{class:"cell"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[Lg,t.withDirectives(t.createElementVNode("input",{type:"date",class:"ux-field-focus ux-text-input-multiple",ref:"input","onUpdate:modelValue":n[0]||(n[0]=c=>o.startDate=c)},null,512),[[t.vModelText,o.startDate]])])]),_:1}),t.createVNode(a,{class:"cell"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[Pg,t.withDirectives(t.createElementVNode("input",{type:"date",class:"ux-field-focus ux-text-input-multiple",ref:"input","onUpdate:modelValue":n[1]||(n[1]=c=>o.endDate=c)},null,512),[[t.vModelText,o.endDate]])])]),_:1})]),_:1})])}const Yl=g($g,[["render",Ug],["__scopeId","data-v-dc53841d"]]),qT="",jg={props:{modelValue:{type:[Object,Array]}},components:{NativeSelect:ve},mixins:[z],async created(){var e=await this.$sdk.system.countries(),n=e.reduce(function(r,i){if(!i.countryCallingCodes||!i.countryCallingCodes.length)return r;var l=`${i.name} (${i.countryCallingCodes.join(", ")})`,o=l;return r.values[o]||(r.values[o]=!0,r.lookup[i.alpha2]=i,r.value.push({title:`${l} - ${i.emoji}`,value:i.alpha2,emoji:i.emoji})),r},{value:[],values:{},lookup:{}});this.countryCodes=n.value,this.lookup=n.lookup},data(){return{countryCodes:[],lookup:{}}},computed:{actualPlaceholder(){return"+61 000 000 000"},countryCodeField(){return{minimum:0,maximum:1,type:"string",options:this.countryCodes}},defaultCountryCode(){var e=this.user?this.user.countryCode:"",n=this.user&&this.user.organisation?this.user.organisation.countryCode:"";return e||n}},methods:{getNewDefaultEntry(){return{label:"",countryCode:this.defaultCountryCode,number:""}}}},Rg=e=>(t.pushScopeId("data-v-d61960a4"),e=e(),t.popScopeId(),e),zg={key:0,class:"ux-field-title"},Hg={key:0,class:"ux-required-marker"},qg={key:1,class:"ux-field-description"},Gg={key:2},Wg={key:0},Kg={key:1},Yg={class:"ux-text-wrap"},Zg=["placeholder","onUpdate:modelValue"],Jg=Rg(()=>t.createElementVNode("option",{value:""},"None",-1)),Xg=["value"],Qg={class:"ux-text-wrap"},vg=["placeholder"];function e_(e,n,r,i,l,o){const a=t.resolveComponent("ux-button"),s=t.resolveComponent("native-select"),c=t.resolveComponent("flex-cell"),d=t.resolveComponent("ux-icon"),u=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.showLabel?(t.openBlock(),t.createElementBlock("label",zg,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",Hg,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",qg,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.multiValue?(t.openBlock(),t.createElementBlock("div",Gg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model,(m,f)=>(t.openBlock(),t.createBlock(u,{gap:"",vcenter:"",wrap:"",class:"ux-text-row",key:f},{default:t.withCtx(()=>[t.createVNode(c,{shrink:""},{default:t.withCtx(()=>[t.createVNode(s,{modelValue:m.countryCode,"onUpdate:modelValue":p=>m.countryCode=p,field:o.countryCodeField},{default:t.withCtx(()=>[t.createVNode(a,{tag:"a"},{default:t.withCtx(()=>[m.countryCode?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.lookup[m.countryCode]?(t.openBlock(),t.createElementBlock("div",Wg,t.toDisplayString(l.lookup[m.countryCode].emoji)+" - "+t.toDisplayString(l.lookup[m.countryCode].alpha2),1)):(t.openBlock(),t.createElementBlock("div",Kg,"Loading"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Country Code ")],64))]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue","field"])]),_:2},1024),t.createVNode(c,null,{default:t.withCtx(()=>[t.createElementVNode("div",Yg,[t.withDirectives(t.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:o.actualPlaceholder,onFocus:n[0]||(n[0]=(...p)=>e.touch&&e.touch(...p)),ref_for:!0,ref:"input",onKeydown:n[1]||(n[1]=t.withKeys(t.withModifiers(p=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":p=>m.number=p},null,40,Zg),[[t.vModelText,m.number]])])]),_:2},1024),t.createVNode(c,{shrink:"",vcenter:""},{default:t.withCtx(()=>[e.canRemoveValue?(t.openBlock(),t.createBlock(a,{key:0,tag:"a",icon:"",onClick:p=>e.remove(m)},{default:t.withCtx(()=>[t.createVNode(d,{icon:"fa-times"})]),_:2},1032,["onClick"])):t.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024))),128)),e.canAddValue?(t.openBlock(),t.createBlock(a,{key:0,onClick:n[2]||(n[2]=m=>e.add())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.addLabel)+" ",1),t.createVNode(d,{icon:"fa-plus",right:""})]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(u,{wrap:"",class:"ux-text-row",key:e.index},{default:t.withCtx(()=>[t.createVNode(c,{shrink:""},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("select",{class:"ux-country-code-select","onUpdate:modelValue":n[3]||(n[3]=m=>e.model.countryCode=m)},[Jg,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.countryCodes,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Xg))),256))],512),[[t.vModelSelect,e.model.countryCode]])]),_:1}),t.createVNode(c,null,{default:t.withCtx(()=>[t.createElementVNode("div",Qg,[t.withDirectives(t.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:o.actualPlaceholder,onFocus:n[4]||(n[4]=(...m)=>e.touch&&e.touch(...m)),ref:"input",onKeydown:n[5]||(n[5]=t.withKeys(t.withModifiers(m=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":n[6]||(n[6]=m=>e.model.number=m)},null,40,vg),[[t.vModelText,e.model.number]])])]),_:1})]),_:1}))],64)}const t_=g(jg,[["render",e_],["__scopeId","data-v-d61960a4"]]),GT="";function n_(e){return e===void 0||typeof e>"u"||e===null||String(e)==="null"||String(e)==="undefined"}const r_={props:{modelValue:{}},mixins:[z],created(){this.model=this.model},methods:{cleanOutput(e){var n=this;return n_(e)?n.multiValue?e=[]:e=void 0:n.multiValue?e=(e||[]).filter(Boolean).map(function(r){return n.getValue(r)}):e=n.getValue(e),e},cleanInput(e){var n=this;if(n.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum),e=e.filter(Boolean).map(function(i){var l=n.getValue(i);return n.returnObject?n.optionLookup[l]:l});else{var r=n.getValue(e);e=n.returnObject?n.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{})},summary(){return this.getLabel(this.optionLookup[this.model])||"Click to select"},options(){return["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Mexico_City","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Perth","Australia/Sydney","CST6CDT","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis"].map(function(e){return{title:e,value:e}})},selectableOptions(){return this.options}}},o_={key:0,class:"ux-field-title"},i_={key:0,class:"ux-required-marker"},l_={key:1,class:"ux-field-description"},a_={key:2,class:"ui-select-button"},s_=["multiple"],c_={key:0,value:""},d_=["value"];function u_(e,n,r,i,l,o){const a=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["native-select",o.classes])},[e.showLabel?(t.openBlock(),t.createElementBlock("label",o_,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",i_,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",l_,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.singleValue?(t.openBlock(),t.createElementBlock("div",a_,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",{onFocus:n[0]||(n[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":n[1]||(n[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(t.openBlock(),t.createElementBlock("option",c_,"None")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.selectableOptions,s=>(t.openBlock(),t.createElementBlock("option",{value:s.value},t.toDisplayString(s.title),9,d_))),256))],40,s_),[[t.vModelSelect,e.model]])],2)}const m_=g(r_,[["render",u_],["__scopeId","data-v-dc886566"]]),WT="",f_={props:{item:{type:Object,required:!0}},data(){return{model:this.item}},watch:{item(e){this.model=e}},computed:{basicType(){var e,n;return(n=(e=this.model)==null?void 0:e.meta)==null?void 0:n.type},hasImage(){switch(this.basicType){case"image":case"video":case"profile":return!0}},title(){return this.model.title||this.model.name||this.model.label||(this.model.firstName?`${this.model.firstName} ${this.model.lastName}`:"(Title unknown)")}},methods:{clicked(){this.$sdk.dispatch("item:view",this.model)}}};function p_(e,n,r,i,l,o){const a=t.resolveComponent("ux-image"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",{class:"content-item",onClick:n[0]||(n[0]=(...d)=>o.clicked&&o.clicked(...d))},[t.createVNode(c,{gap:"",vcenter:""},{default:t.withCtx(()=>[o.hasImage?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["image-wrapper",o.basicType])},[t.createVNode(a,{item:l.model,width:100,height:100},null,8,["item"])],2)]),_:1})):t.createCommentVNode("",!0),t.createVNode(s,{vcenter:""},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(o.title),1)],!0)])]),_:3}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})]),_:3})])}const Hr=g(f_,[["render",p_],["__scopeId","data-v-f1a20da8"]]);/**!
|
|
1
|
+
(function(E,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@qikdev/sdk")):typeof define=="function"&&define.amd?define(["exports","vue","@qikdev/sdk"],t):(E=typeof globalThis<"u"?globalThis:E||self,t(E["@qikdev/vue-ui"]={},E.Vue,E["@qikdev/sdk"]))})(this,function(E,t,As){"use strict";const Ms="0.2.99";class at extends Error{}class Fs extends at{constructor(n){super(`Invalid DateTime: ${n.toMessage()}`)}}class Is extends at{constructor(n){super(`Invalid Interval: ${n.toMessage()}`)}}class $s extends at{constructor(n){super(`Invalid Duration: ${n.toMessage()}`)}}class zt extends at{}class bo extends at{constructor(n){super(`Invalid unit ${n}`)}}class Ne extends at{}class Je extends at{constructor(){super("Zone is an abstract class")}}const C="numeric",Oe="short",we="long",dr={year:C,month:C,day:C},Co={year:C,month:Oe,day:C},Ls={year:C,month:Oe,day:C,weekday:Oe},wo={year:C,month:we,day:C},Vo={year:C,month:we,day:C,weekday:we},Eo={hour:C,minute:C},Bo={hour:C,minute:C,second:C},No={hour:C,minute:C,second:C,timeZoneName:Oe},So={hour:C,minute:C,second:C,timeZoneName:we},To={hour:C,minute:C,hourCycle:"h23"},Do={hour:C,minute:C,second:C,hourCycle:"h23"},Oo={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:Oe},Ao={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:we},Mo={year:C,month:C,day:C,hour:C,minute:C},Fo={year:C,month:C,day:C,hour:C,minute:C,second:C},Io={year:C,month:Oe,day:C,hour:C,minute:C},$o={year:C,month:Oe,day:C,hour:C,minute:C,second:C},Ps={year:C,month:Oe,day:C,weekday:Oe,hour:C,minute:C},Lo={year:C,month:we,day:C,hour:C,minute:C,timeZoneName:Oe},Po={year:C,month:we,day:C,hour:C,minute:C,second:C,timeZoneName:Oe},Uo={year:C,month:we,day:C,weekday:we,hour:C,minute:C,timeZoneName:we},jo={year:C,month:we,day:C,weekday:we,hour:C,minute:C,second:C,timeZoneName:we};function I(e){return typeof e>"u"}function st(e){return typeof e=="number"}function gn(e){return typeof e=="number"&&e%1===0}function Us(e){return typeof e=="string"}function js(e){return Object.prototype.toString.call(e)==="[object Date]"}function Ro(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Rs(e){return Array.isArray(e)?e:[e]}function zo(e,n,r){if(e.length!==0)return e.reduce((i,l)=>{const o=[n(l),l];return i&&r(i[0],o[0])===i[0]?i:o},null)[1]}function zs(e,n){return n.reduce((r,i)=>(r[i]=e[i],r),{})}function _t(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Ge(e,n,r){return gn(e)&&e>=n&&e<=r}function Hs(e,n){return e-n*Math.floor(e/n)}function te(e,n=2){const r=e<0;let i;return r?i="-"+(""+-e).padStart(n,"0"):i=(""+e).padStart(n,"0"),i}function Xe(e){if(!(I(e)||e===null||e===""))return parseInt(e,10)}function ct(e){if(!(I(e)||e===null||e===""))return parseFloat(e)}function ur(e){if(!(I(e)||e===null||e==="")){const n=parseFloat("0."+e)*1e3;return Math.floor(n)}}function mr(e,n,r=!1){const i=10**n;return(r?Math.trunc:Math.round)(e*i)/i}function Ht(e){return e%4===0&&(e%100!==0||e%400===0)}function qt(e){return Ht(e)?366:365}function _n(e,n){const r=Hs(n-1,12)+1,i=e+(n-r)/12;return r===2?Ht(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function fr(e){let n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(n=new Date(n),n.setUTCFullYear(n.getUTCFullYear()-1900)),+n}function kn(e){const n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,i=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return n===4||i===3?53:52}function pr(e){return e>99?e:e>60?1900+e:2e3+e}function Ho(e,n,r,i=null){const l=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:n,...o},s=new Intl.DateTimeFormat(r,a).formatToParts(l).find(c=>c.type.toLowerCase()==="timezonename");return s?s.value:null}function xn(e,n){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(n,10)||0,l=r<0||Object.is(r,-0)?-i:i;return r*60+l}function qo(e){const n=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(n))throw new Ne(`Invalid unit value ${e}`);return n}function bn(e,n){const r={};for(const i in e)if(_t(e,i)){const l=e[i];if(l==null)continue;r[n(i)]=qo(l)}return r}function Cn(e,n){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(n){case"short":return`${l}${te(r,2)}:${te(i,2)}`;case"narrow":return`${l}${r}${i>0?`:${i}`:""}`;case"techie":return`${l}${te(r,2)}${te(i,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}function wn(e){return zs(e,["hour","minute","second","millisecond"])}const qs=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,Gs=["January","February","March","April","May","June","July","August","September","October","November","December"],Go=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ws=["J","F","M","A","M","J","J","A","S","O","N","D"];function Wo(e){switch(e){case"narrow":return[...Ws];case"short":return[...Go];case"long":return[...Gs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ko=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Yo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ks=["M","T","W","T","F","S","S"];function Zo(e){switch(e){case"narrow":return[...Ks];case"short":return[...Yo];case"long":return[...Ko];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Jo=["AM","PM"],Ys=["Before Christ","Anno Domini"],Zs=["BC","AD"],Js=["B","A"];function Xo(e){switch(e){case"narrow":return[...Js];case"short":return[...Zs];case"long":return[...Ys];default:return null}}function Xs(e){return Jo[e.hour<12?0:1]}function Qs(e,n){return Zo(n)[e.weekday-1]}function vs(e,n){return Wo(n)[e.month-1]}function ec(e,n){return Xo(n)[e.year<0?0:1]}function tc(e,n,r="always",i=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const m=e==="days";switch(n){case 1:return m?"tomorrow":`next ${l[e][0]}`;case-1:return m?"yesterday":`last ${l[e][0]}`;case 0:return m?"today":`this ${l[e][0]}`}}const a=Object.is(n,-0)||n<0,s=Math.abs(n),c=s===1,d=l[e],u=i?c?d[1]:d[2]||d[1]:c?l[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function Qo(e,n){let r="";for(const i of e)i.literal?r+=i.val:r+=n(i.val);return r}const nc={D:dr,DD:Co,DDD:wo,DDDD:Vo,t:Eo,tt:Bo,ttt:No,tttt:So,T:To,TT:Do,TTT:Oo,TTTT:Ao,f:Mo,ff:Io,fff:Lo,ffff:Uo,F:Fo,FF:$o,FFF:Po,FFFF:jo};class _e{static create(n,r={}){return new _e(n,r)}static parseFormat(n){let r=null,i="",l=!1;const o=[];for(let a=0;a<n.length;a++){const s=n.charAt(a);s==="'"?(i.length>0&&o.push({literal:l,val:i}),r=null,i="",l=!l):l||s===r?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,r=s)}return i.length>0&&o.push({literal:l,val:i}),o}static macroTokenToFormatOpts(n){return nc[n]}constructor(n,r){this.opts=r,this.loc=n,this.systemLoc=null}formatWithSystemDefault(n,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,{...this.opts,...r}).format()}formatDateTime(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).format()}formatDateTimeParts(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).formatToParts()}resolvedOptions(n,r={}){return this.loc.dtFormatter(n,{...this.opts,...r}).resolvedOptions()}num(n,r=0){if(this.opts.forceSimple)return te(n,r);const i={...this.opts};return r>0&&(i.padTo=r),this.loc.numberFormatter(i).format(n)}formatDateTimeFromString(n,r){const i=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,h)=>this.loc.extract(n,p,h),a=p=>n.isOffsetFixed&&n.offset===0&&p.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,p.format):"",s=()=>i?Xs(n):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,h)=>i?vs(n,p):o(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>i?Qs(n,p):o(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{const h=_e.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(n,h):p},m=p=>i?ec(n,p):o({era:p},"era"),f=p=>{switch(p){case"S":return this.num(n.millisecond);case"u":case"SSS":return this.num(n.millisecond,3);case"s":return this.num(n.second);case"ss":return this.num(n.second,2);case"uu":return this.num(Math.floor(n.millisecond/10),2);case"uuu":return this.num(Math.floor(n.millisecond/100));case"m":return this.num(n.minute);case"mm":return this.num(n.minute,2);case"h":return this.num(n.hour%12===0?12:n.hour%12);case"hh":return this.num(n.hour%12===0?12:n.hour%12,2);case"H":return this.num(n.hour);case"HH":return this.num(n.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:this.loc.locale});case"z":return n.zoneName;case"a":return s();case"d":return l?o({day:"numeric"},"day"):this.num(n.day);case"dd":return l?o({day:"2-digit"},"day"):this.num(n.day,2);case"c":return this.num(n.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(n.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return l?o({month:"numeric",day:"numeric"},"month"):this.num(n.month);case"LL":return l?o({month:"2-digit",day:"numeric"},"month"):this.num(n.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return l?o({month:"numeric"},"month"):this.num(n.month);case"MM":return l?o({month:"2-digit"},"month"):this.num(n.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return l?o({year:"numeric"},"year"):this.num(n.year);case"yy":return l?o({year:"2-digit"},"year"):this.num(n.year.toString().slice(-2),2);case"yyyy":return l?o({year:"numeric"},"year"):this.num(n.year,4);case"yyyyyy":return l?o({year:"numeric"},"year"):this.num(n.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(n.weekYear.toString().slice(-2),2);case"kkkk":return this.num(n.weekYear,4);case"W":return this.num(n.weekNumber);case"WW":return this.num(n.weekNumber,2);case"o":return this.num(n.ordinal);case"ooo":return this.num(n.ordinal,3);case"q":return this.num(n.quarter);case"qq":return this.num(n.quarter,2);case"X":return this.num(Math.floor(n.ts/1e3));case"x":return this.num(n.ts);default:return u(p)}};return Qo(_e.parseFormat(r),f)}formatDurationFromString(n,r){const i=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=c=>d=>{const u=i(d);return u?this.num(c.get(u),d.length):d},o=_e.parseFormat(r),a=o.reduce((c,{literal:d,val:u})=>d?c:c.concat(u),[]),s=n.shiftTo(...a.map(i).filter(c=>c));return Qo(o,l(s))}}class Ae{constructor(n,r){this.reason=n,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Gt{get type(){throw new Je}get name(){throw new Je}get isUniversal(){throw new Je}offsetName(n,r){throw new Je}formatOffset(n,r){throw new Je}offset(n){throw new Je}equals(n){throw new Je}get isValid(){throw new Je}}let hr=null;class yr extends Gt{static get instance(){return hr===null&&(hr=new yr),hr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return Ho(n,r,i)}formatOffset(n,r){return Cn(this.offset(n),r)}offset(n){return-new Date(n).getTimezoneOffset()}equals(n){return n.type==="system"}get isValid(){return!0}}let Vn={};function rc(e){return Vn[e]||(Vn[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Vn[e]}const oc={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ic(e,n){const r=e.format(n).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,l,o,a,s,c,d,u]=i;return[a,l,o,s,c,d,u]}function lc(e,n){const r=e.formatToParts(n),i=[];for(let l=0;l<r.length;l++){const{type:o,value:a}=r[l],s=oc[o];o==="era"?i[s]=a:I(s)||(i[s]=parseInt(a,10))}return i}let En={};class We extends Gt{static create(n){return En[n]||(En[n]=new We(n)),En[n]}static resetCache(){En={},Vn={}}static isValidSpecifier(n){return this.isValidZone(n)}static isValidZone(n){if(!n)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch{return!1}}constructor(n){super(),this.zoneName=n,this.valid=We.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return Ho(n,r,i,this.name)}formatOffset(n,r){return Cn(this.offset(n),r)}offset(n){const r=new Date(n);if(isNaN(r))return NaN;const i=rc(this.name);let[l,o,a,s,c,d,u]=i.formatToParts?lc(i,r):ic(i,r);s==="BC"&&(l=-Math.abs(l)+1);const f=fr({year:l,month:o,day:a,hour:c===24?0:c,minute:d,second:u,millisecond:0});let p=+r;const h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let gr=null;class fe extends Gt{static get utcInstance(){return gr===null&&(gr=new fe(0)),gr}static instance(n){return n===0?fe.utcInstance:new fe(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new fe(xn(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Cn(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return Cn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(n){return n.type==="fixed"&&n.fixed===this.fixed}get isValid(){return!0}}class ac extends Gt{constructor(n){super(),this.zoneName=n}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qe(e,n){if(I(e)||e===null)return n;if(e instanceof Gt)return e;if(Us(e)){const r=e.toLowerCase();return r==="local"||r==="system"?n:r==="utc"||r==="gmt"?fe.utcInstance:fe.parseSpecifier(r)||We.create(e)}else return st(e)?fe.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new ac(e)}let vo=()=>Date.now(),ei="system",ti=null,ni=null,ri=null,oi;class re{static get now(){return vo}static set now(n){vo=n}static set defaultZone(n){ei=n}static get defaultZone(){return Qe(ei,yr.instance)}static get defaultLocale(){return ti}static set defaultLocale(n){ti=n}static get defaultNumberingSystem(){return ni}static set defaultNumberingSystem(n){ni=n}static get defaultOutputCalendar(){return ri}static set defaultOutputCalendar(n){ri=n}static get throwOnInvalid(){return oi}static set throwOnInvalid(n){oi=n}static resetCaches(){X.resetCache(),We.resetCache()}}let ii={};function sc(e,n={}){const r=JSON.stringify([e,n]);let i=ii[r];return i||(i=new Intl.ListFormat(e,n),ii[r]=i),i}let _r={};function kr(e,n={}){const r=JSON.stringify([e,n]);let i=_r[r];return i||(i=new Intl.DateTimeFormat(e,n),_r[r]=i),i}let xr={};function cc(e,n={}){const r=JSON.stringify([e,n]);let i=xr[r];return i||(i=new Intl.NumberFormat(e,n),xr[r]=i),i}let br={};function dc(e,n={}){const{base:r,...i}=n,l=JSON.stringify([e,i]);let o=br[l];return o||(o=new Intl.RelativeTimeFormat(e,n),br[l]=o),o}let Wt=null;function uc(){return Wt||(Wt=new Intl.DateTimeFormat().resolvedOptions().locale,Wt)}function mc(e){const n=e.indexOf("-u-");if(n===-1)return[e];{let r;const i=e.substring(0,n);try{r=kr(e).resolvedOptions()}catch{r=kr(i).resolvedOptions()}const{numberingSystem:l,calendar:o}=r;return[i,l,o]}}function fc(e,n,r){return(r||n)&&(e+="-u",r&&(e+=`-ca-${r}`),n&&(e+=`-nu-${n}`)),e}function pc(e){const n=[];for(let r=1;r<=12;r++){const i=S.utc(2016,r,1);n.push(e(i))}return n}function hc(e){const n=[];for(let r=1;r<=7;r++){const i=S.utc(2016,11,13+r);n.push(e(i))}return n}function Bn(e,n,r,i,l){const o=e.listingMode(r);return o==="error"?null:o==="en"?i(n):l(n)}function yc(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class gc{constructor(n,r,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:l,floor:o,...a}=i;if(!r||Object.keys(a).length>0){const s={useGrouping:!1,...i};i.padTo>0&&(s.minimumIntegerDigits=i.padTo),this.inf=cc(n,s)}}format(n){if(this.inf){const r=this.floor?Math.floor(n):n;return this.inf.format(r)}else{const r=this.floor?Math.floor(n):mr(n,3);return te(r,this.padTo)}}}class _c{constructor(n,r,i){this.opts=i;let l;if(n.zone.isUniversal){const a=-1*(n.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;n.offset!==0&&We.create(s).valid?(l=s,this.dt=n):(l="UTC",i.timeZoneName?this.dt=n:this.dt=n.offset===0?n:S.fromMillis(n.ts+n.offset*60*1e3))}else n.zone.type==="system"?this.dt=n:(this.dt=n,l=n.zone.name);const o={...this.opts};l&&(o.timeZone=l),this.dtf=kr(r,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class kc{constructor(n,r,i){this.opts={style:"long",...i},!r&&Ro()&&(this.rtf=dc(n,i))}format(n,r){return this.rtf?this.rtf.format(n,r):tc(r,n,this.opts.numeric,this.opts.style!=="long")}formatToParts(n,r){return this.rtf?this.rtf.formatToParts(n,r):[]}}class X{static fromOpts(n){return X.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)}static create(n,r,i,l=!1){const o=n||re.defaultLocale,a=o||(l?"en-US":uc()),s=r||re.defaultNumberingSystem,c=i||re.defaultOutputCalendar;return new X(a,s,c,o)}static resetCache(){Wt=null,_r={},xr={},br={}}static fromObject({locale:n,numberingSystem:r,outputCalendar:i}={}){return X.create(n,r,i)}constructor(n,r,i,l){const[o,a,s]=mc(n);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=i||s||null,this.intl=fc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=yc(this)),this.fastNumbersCached}listingMode(){const n=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return n&&r?"en":"intl"}clone(n){return!n||Object.getOwnPropertyNames(n).length===0?this:X.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1)}redefaultToEN(n={}){return this.clone({...n,defaultToEN:!0})}redefaultToSystem(n={}){return this.clone({...n,defaultToEN:!1})}months(n,r=!1,i=!0){return Bn(this,n,i,Wo,()=>{const l=r?{month:n,day:"numeric"}:{month:n},o=r?"format":"standalone";return this.monthsCache[o][n]||(this.monthsCache[o][n]=pc(a=>this.extract(a,l,"month"))),this.monthsCache[o][n]})}weekdays(n,r=!1,i=!0){return Bn(this,n,i,Zo,()=>{const l=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},o=r?"format":"standalone";return this.weekdaysCache[o][n]||(this.weekdaysCache[o][n]=hc(a=>this.extract(a,l,"weekday"))),this.weekdaysCache[o][n]})}meridiems(n=!0){return Bn(this,void 0,n,()=>Jo,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(i=>this.extract(i,r,"dayperiod"))}return this.meridiemCache})}eras(n,r=!0){return Bn(this,n,r,Xo,()=>{const i={era:n};return this.eraCache[n]||(this.eraCache[n]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(l=>this.extract(l,i,"era"))),this.eraCache[n]})}extract(n,r,i){const l=this.dtFormatter(n,r),o=l.formatToParts(),a=o.find(s=>s.type.toLowerCase()===i);return a?a.value:null}numberFormatter(n={}){return new gc(this.intl,n.forceSimple||this.fastNumbers,n)}dtFormatter(n,r={}){return new _c(n,this.intl,r)}relFormatter(n={}){return new kc(this.intl,this.isEnglish(),n)}listFormatter(n={}){return sc(this.intl,n)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar}}function kt(...e){const n=e.reduce((r,i)=>r+i.source,"");return RegExp(`^${n}$`)}function dt(...e){return n=>e.reduce(([r,i,l],o)=>{const[a,s,c]=o(n,l);return[{...r,...a},i||s,c]},[{},null,1]).slice(0,2)}function xt(e,...n){if(e==null)return[null,null];for(const[r,i]of n){const l=r.exec(e);if(l)return i(l)}return[null,null]}function li(...e){return(n,r)=>{const i={};let l;for(l=0;l<e.length;l++)i[e[l]]=Xe(n[r+l]);return[i,null,r+l]}}const ai=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Cr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,si=RegExp(`${Cr.source}${ai.source}?`),wr=RegExp(`(?:T${si.source})?`),xc=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bc=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Cc=/(\d{4})-?(\d{3})/,wc=li("weekYear","weekNumber","weekDay"),Vc=li("year","ordinal"),Ec=/(\d{4})-(\d\d)-(\d\d)/,ci=RegExp(`${Cr.source} ?(?:${ai.source}|(${qs.source}))?`),Bc=RegExp(`(?: ${ci.source})?`);function bt(e,n,r){const i=e[n];return I(i)?r:Xe(i)}function di(e,n){return[{year:bt(e,n),month:bt(e,n+1,1),day:bt(e,n+2,1)},null,n+3]}function ut(e,n){return[{hours:bt(e,n,0),minutes:bt(e,n+1,0),seconds:bt(e,n+2,0),milliseconds:ur(e[n+3])},null,n+4]}function Ct(e,n){const r=!e[n]&&!e[n+1],i=xn(e[n+1],e[n+2]),l=r?null:fe.instance(i);return[{},l,n+3]}function ui(e,n){const r=e[n]?We.create(e[n]):null;return[{},r,n+1]}const Nc=RegExp(`^T?${Cr.source}$`),Sc=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Tc(e){const[n,r,i,l,o,a,s,c,d]=e,u=n[0]==="-",m=c&&c[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&u)?-p:p;return[{years:f(ct(r)),months:f(ct(i)),weeks:f(ct(l)),days:f(ct(o)),hours:f(ct(a)),minutes:f(ct(s)),seconds:f(ct(c),c==="-0"),milliseconds:f(ur(d),m)}]}const Dc={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Vr(e,n,r,i,l,o,a){const s={year:n.length===2?pr(Xe(n)):Xe(n),month:Go.indexOf(r)+1,day:Xe(i),hour:Xe(l),minute:Xe(o)};return a&&(s.second=Xe(a)),e&&(s.weekday=e.length>3?Ko.indexOf(e)+1:Yo.indexOf(e)+1),s}const Oc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ac(e){const[,n,r,i,l,o,a,s,c,d,u,m]=e,f=Vr(n,l,i,r,o,a,s);let p;return c?p=Dc[c]:d?p=0:p=xn(u,m),[f,new fe(p)]}function Mc(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fc=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ic=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mi(e){const[,n,r,i,l,o,a,s]=e;return[Vr(n,l,i,r,o,a,s),fe.utcInstance]}function Lc(e){const[,n,r,i,l,o,a,s]=e;return[Vr(n,s,r,i,l,o,a),fe.utcInstance]}const Pc=kt(xc,wr),Uc=kt(bc,wr),jc=kt(Cc,wr),Rc=kt(si),zc=dt(di,ut,Ct),Hc=dt(wc,ut,Ct),qc=dt(Vc,ut,Ct),Gc=dt(ut,Ct);function Wc(e){return xt(e,[Pc,zc],[Uc,Hc],[jc,qc],[Rc,Gc])}function Kc(e){return xt(Mc(e),[Oc,Ac])}function Yc(e){return xt(e,[Fc,mi],[Ic,mi],[$c,Lc])}function Zc(e){return xt(e,[Sc,Tc])}const Jc=dt(ut);function Xc(e){return xt(e,[Nc,Jc])}const Qc=kt(Ec,Bc),vc=kt(ci),ed=dt(di,ut,Ct,ui),td=dt(ut,Ct,ui);function nd(e){return xt(e,[Qc,ed],[vc,td])}const rd="Invalid Duration",fi={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},od={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...fi},Se=146097/400,wt=146097/4800,id={years:{quarters:4,months:12,weeks:Se/7,days:Se,hours:Se*24,minutes:Se*24*60,seconds:Se*24*60*60,milliseconds:Se*24*60*60*1e3},quarters:{months:3,weeks:Se/28,days:Se/4,hours:Se*24/4,minutes:Se*24*60/4,seconds:Se*24*60*60/4,milliseconds:Se*24*60*60*1e3/4},months:{weeks:wt/7,days:wt,hours:wt*24,minutes:wt*24*60,seconds:wt*24*60*60,milliseconds:wt*24*60*60*1e3},...fi},mt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ld=mt.slice(0).reverse();function ft(e,n,r=!1){const i={values:r?n.values:{...e.values,...n.values||{}},loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new L(i)}function ad(e){return e<0?Math.floor(e):Math.ceil(e)}function pi(e,n,r,i,l){const o=e[l][r],a=n[r]/o,s=Math.sign(a)===Math.sign(i[l]),c=!s&&i[l]!==0&&Math.abs(a)<=1?ad(a):Math.trunc(a);i[l]+=c,n[r]-=c*o}function sd(e,n){ld.reduce((r,i)=>I(n[i])?r:(r&&pi(e,n,r,n,i),i),null)}class L{constructor(n){const r=n.conversionAccuracy==="longterm"||!1;this.values=n.values,this.loc=n.loc||X.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=r?id:od,this.isLuxonDuration=!0}static fromMillis(n,r){return L.fromObject({milliseconds:n},r)}static fromObject(n,r={}){if(n==null||typeof n!="object")throw new Ne(`Duration.fromObject: argument expected to be an object, got ${n===null?"null":typeof n}`);return new L({values:bn(n,L.normalizeUnit),loc:X.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(n){if(st(n))return L.fromMillis(n);if(L.isDuration(n))return n;if(typeof n=="object")return L.fromObject(n);throw new Ne(`Unknown duration argument ${n} of type ${typeof n}`)}static fromISO(n,r){const[i]=Zc(n);return i?L.fromObject(i,r):L.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static fromISOTime(n,r){const[i]=Xc(n);return i?L.fromObject(i,r):L.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the Duration is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new $s(i);return new L({invalid:i})}static normalizeUnit(n){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n&&n.toLowerCase()];if(!r)throw new bo(n);return r}static isDuration(n){return n&&n.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(n,r={}){const i={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?_e.create(this.loc,i).formatDurationFromString(this,n):rd}toHuman(n={}){const r=mt.map(i=>{const l=this.values[i];return I(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...n,unit:i.slice(0,-1)}).format(l)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:n.listStyle||"narrow",...n}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let n="P";return this.years!==0&&(n+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(n+=this.months+this.quarters*3+"M"),this.weeks!==0&&(n+=this.weeks+"W"),this.days!==0&&(n+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(n+="T"),this.hours!==0&&(n+=this.hours+"H"),this.minutes!==0&&(n+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(n+=mr(this.seconds+this.milliseconds/1e3,3)+"S"),n==="P"&&(n+="T0S"),n}toISOTime(n={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;n={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...n};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let l=n.format==="basic"?"hhmm":"hh:mm";(!n.suppressSeconds||i.seconds!==0||i.milliseconds!==0)&&(l+=n.format==="basic"?"ss":":ss",(!n.suppressMilliseconds||i.milliseconds!==0)&&(l+=".SSS"));let o=i.toFormat(l);return n.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n),i={};for(const l of mt)(_t(r.values,l)||_t(this.values,l))&&(i[l]=r.get(l)+this.get(l));return ft(this,{values:i},!0)}minus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n);return this.plus(r.negate())}mapUnits(n){if(!this.isValid)return this;const r={};for(const i of Object.keys(this.values))r[i]=qo(n(this.values[i],i));return ft(this,{values:r},!0)}get(n){return this[L.normalizeUnit(n)]}set(n){if(!this.isValid)return this;const r={...this.values,...bn(n,L.normalizeUnit)};return ft(this,{values:r})}reconfigure({locale:n,numberingSystem:r,conversionAccuracy:i}={}){const l=this.loc.clone({locale:n,numberingSystem:r}),o={loc:l};return i&&(o.conversionAccuracy=i),ft(this,o)}as(n){return this.isValid?this.shiftTo(n).get(n):NaN}normalize(){if(!this.isValid)return this;const n=this.toObject();return sd(this.matrix,n),ft(this,{values:n},!0)}shiftTo(...n){if(!this.isValid)return this;if(n.length===0)return this;n=n.map(a=>L.normalizeUnit(a));const r={},i={},l=this.toObject();let o;for(const a of mt)if(n.indexOf(a)>=0){o=a;let s=0;for(const d in i)s+=this.matrix[d][a]*i[d],i[d]=0;st(l[a])&&(s+=l[a]);const c=Math.trunc(s);r[a]=c,i[a]=(s*1e3-c*1e3)/1e3;for(const d in l)mt.indexOf(d)>mt.indexOf(a)&&pi(this.matrix,l,d,r,a)}else st(l[a])&&(i[a]=l[a]);for(const a in i)i[a]!==0&&(r[o]+=a===o?i[a]:i[a]/this.matrix[o][a]);return ft(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=this.values[r]===0?0:-this.values[r];return ft(this,{values:n},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(n){if(!this.isValid||!n.isValid||!this.loc.equals(n.loc))return!1;function r(i,l){return i===void 0||i===0?l===void 0||l===0:i===l}for(const i of mt)if(!r(this.values[i],n.values[i]))return!1;return!0}}const Kt="Invalid Interval";function cd(e,n){return!e||!e.isValid?Q.invalid("missing or invalid start"):!n||!n.isValid?Q.invalid("missing or invalid end"):n<e?Q.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${n.toISO()}`):null}class Q{constructor(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the Interval is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new Is(i);return new Q({invalid:i})}static fromDateTimes(n,r){const i=Jt(n),l=Jt(r),o=cd(i,l);return o??new Q({start:i,end:l})}static after(n,r){const i=L.fromDurationLike(r),l=Jt(n);return Q.fromDateTimes(l,l.plus(i))}static before(n,r){const i=L.fromDurationLike(r),l=Jt(n);return Q.fromDateTimes(l.minus(i),l)}static fromISO(n,r){const[i,l]=(n||"").split("/",2);if(i&&l){let o,a;try{o=S.fromISO(i,r),a=o.isValid}catch{a=!1}let s,c;try{s=S.fromISO(l,r),c=s.isValid}catch{c=!1}if(a&&c)return Q.fromDateTimes(o,s);if(a){const d=L.fromISO(l,r);if(d.isValid)return Q.after(o,d)}else if(c){const d=L.fromISO(i,r);if(d.isValid)return Q.before(s,d)}}return Q.invalid("unparsable",`the input "${n}" can't be parsed as ISO 8601`)}static isInterval(n){return n&&n.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(n="milliseconds"){return this.isValid?this.toDuration(n).get(n):NaN}count(n="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(n),i=this.end.startOf(n);return Math.floor(i.diff(r,n).get(n))+1}hasSame(n){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,n):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(n){return this.isValid?this.s>n:!1}isBefore(n){return this.isValid?this.e<=n:!1}contains(n){return this.isValid?this.s<=n&&this.e>n:!1}set({start:n,end:r}={}){return this.isValid?Q.fromDateTimes(n||this.s,r||this.e):this}splitAt(...n){if(!this.isValid)return[];const r=n.map(Jt).filter(a=>this.contains(a)).sort(),i=[];let{s:l}=this,o=0;for(;l<this.e;){const a=r[o]||this.e,s=+a>+this.e?this.e:a;i.push(Q.fromDateTimes(l,s)),l=s,o+=1}return i}splitBy(n){const r=L.fromDurationLike(n);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:i}=this,l=1,o;const a=[];for(;i<this.e;){const s=this.start.plus(r.mapUnits(c=>c*l));o=+s>+this.e?this.e:s,a.push(Q.fromDateTimes(i,o)),i=o,l+=1}return a}divideEqually(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]}overlaps(n){return this.e>n.s&&this.s<n.e}abutsStart(n){return this.isValid?+this.e==+n.s:!1}abutsEnd(n){return this.isValid?+n.e==+this.s:!1}engulfs(n){return this.isValid?this.s<=n.s&&this.e>=n.e:!1}equals(n){return!this.isValid||!n.isValid?!1:this.s.equals(n.s)&&this.e.equals(n.e)}intersection(n){if(!this.isValid)return this;const r=this.s>n.s?this.s:n.s,i=this.e<n.e?this.e:n.e;return r>=i?null:Q.fromDateTimes(r,i)}union(n){if(!this.isValid)return this;const r=this.s<n.s?this.s:n.s,i=this.e>n.e?this.e:n.e;return Q.fromDateTimes(r,i)}static merge(n){const[r,i]=n.sort((l,o)=>l.s-o.s).reduce(([l,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[l,o.union(a)]:[l.concat([o]),a]:[l,a],[[],null]);return i&&r.push(i),r}static xor(n){let r=null,i=0;const l=[],o=n.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((c,d)=>c.time-d.time);for(const c of s)i+=c.type==="s"?1:-1,i===1?r=c.time:(r&&+r!=+c.time&&l.push(Q.fromDateTimes(r,c.time)),r=null);return Q.merge(l)}difference(...n){return Q.xor([this].concat(n)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Kt}toISO(n){return this.isValid?`${this.s.toISO(n)}/${this.e.toISO(n)}`:Kt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Kt}toISOTime(n){return this.isValid?`${this.s.toISOTime(n)}/${this.e.toISOTime(n)}`:Kt}toFormat(n,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(n)}${r}${this.e.toFormat(n)}`:Kt}toDuration(n,r){return this.isValid?this.e.diff(this.s,n,r):L.invalid(this.invalidReason)}mapEndpoints(n){return Q.fromDateTimes(n(this.s),n(this.e))}}let Nn=class{static hasDST(n=re.defaultZone){const r=S.now().setZone(n).set({month:12});return!n.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(n){return We.isValidZone(n)}static normalizeZone(n){return Qe(n,re.defaultZone)}static months(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||X.create(r,i,o)).months(n)}static monthsFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null,outputCalendar:o="gregory"}={}){return(l||X.create(r,i,o)).months(n,!0)}static weekdays(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null}={}){return(l||X.create(r,i,null)).weekdays(n)}static weekdaysFormat(n="long",{locale:r=null,numberingSystem:i=null,locObj:l=null}={}){return(l||X.create(r,i,null)).weekdays(n,!0)}static meridiems({locale:n=null}={}){return X.create(n).meridiems()}static eras(n="short",{locale:r=null}={}){return X.create(r,null,"gregory").eras(n)}static features(){return{relative:Ro()}}};function hi(e,n){const r=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=r(n)-r(e);return Math.floor(L.fromMillis(i).as("days"))}function dd(e,n,r){const i=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const d=hi(s,c);return(d-d%7)/7}],["days",hi]],l={};let o,a;for(const[s,c]of i)if(r.indexOf(s)>=0){o=s;let d=c(e,n);a=e.plus({[s]:d}),a>n?(e=e.plus({[s]:d-1}),d-=1):e=a,l[s]=d}return[e,l,a,o]}function ud(e,n,r,i){let[l,o,a,s]=dd(e,n,r);const c=n-l,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(a<n&&(a=l.plus({[s]:1})),a!==l&&(o[s]=(o[s]||0)+c/(a-l)));const u=L.fromObject(o,i);return d.length>0?L.fromMillis(c,i).shiftTo(...d).plus(u):u}const Er={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},md=Er.hanidec.replace(/[\[|\]]/g,"").split("");function fd(e){let n=parseInt(e,10);if(isNaN(n)){n="";for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(e[r].search(Er.hanidec)!==-1)n+=md.indexOf(e[r]);else for(const l in yi){const[o,a]=yi[l];i>=o&&i<=a&&(n+=i-o)}}return parseInt(n,10)}else return n}function Me({numberingSystem:e},n=""){return new RegExp(`${Er[e||"latn"]}${n}`)}const pd="missing Intl.DateTimeFormat.formatToParts support";function U(e,n=r=>r){return{regex:e,deser:([r])=>n(fd(r))}}const gi=`( |${String.fromCharCode(160)})`,_i=new RegExp(gi,"g");function hd(e){return e.replace(/\./g,"\\.?").replace(_i,gi)}function ki(e){return e.replace(/\./g,"").replace(_i," ").toLowerCase()}function Fe(e,n){return e===null?null:{regex:RegExp(e.map(hd).join("|")),deser:([r])=>e.findIndex(i=>ki(r)===ki(i))+n}}function xi(e,n){return{regex:e,deser:([,r,i])=>xn(r,i),groups:n}}function Br(e){return{regex:e,deser:([n])=>n}}function yd(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function gd(e,n){const r=Me(n),i=Me(n,"{2}"),l=Me(n,"{3}"),o=Me(n,"{4}"),a=Me(n,"{6}"),s=Me(n,"{1,2}"),c=Me(n,"{1,3}"),d=Me(n,"{1,6}"),u=Me(n,"{1,9}"),m=Me(n,"{2,4}"),f=Me(n,"{4,6}"),p=x=>({regex:RegExp(yd(x.val)),deser:([F])=>F,literal:!0}),y=(x=>{if(e.literal)return p(x);switch(x.val){case"G":return Fe(n.eras("short",!1),0);case"GG":return Fe(n.eras("long",!1),0);case"y":return U(d);case"yy":return U(m,pr);case"yyyy":return U(o);case"yyyyy":return U(f);case"yyyyyy":return U(a);case"M":return U(s);case"MM":return U(i);case"MMM":return Fe(n.months("short",!0,!1),1);case"MMMM":return Fe(n.months("long",!0,!1),1);case"L":return U(s);case"LL":return U(i);case"LLL":return Fe(n.months("short",!1,!1),1);case"LLLL":return Fe(n.months("long",!1,!1),1);case"d":return U(s);case"dd":return U(i);case"o":return U(c);case"ooo":return U(l);case"HH":return U(i);case"H":return U(s);case"hh":return U(i);case"h":return U(s);case"mm":return U(i);case"m":return U(s);case"q":return U(s);case"qq":return U(i);case"s":return U(s);case"ss":return U(i);case"S":return U(c);case"SSS":return U(l);case"u":return Br(u);case"uu":return Br(s);case"uuu":return U(r);case"a":return Fe(n.meridiems(),0);case"kkkk":return U(o);case"kk":return U(m,pr);case"W":return U(s);case"WW":return U(i);case"E":case"c":return U(r);case"EEE":return Fe(n.weekdays("short",!1,!1),1);case"EEEE":return Fe(n.weekdays("long",!1,!1),1);case"ccc":return Fe(n.weekdays("short",!0,!1),1);case"cccc":return Fe(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xi(new RegExp(`([+-]${s.source})(?::(${i.source}))?`),2);case"ZZZ":return xi(new RegExp(`([+-]${s.source})(${i.source})?`),2);case"z":return Br(/[a-z_+-/]{1,256}?/i);default:return p(x)}})(e)||{invalidReason:pd};return y.token=e,y}const _d={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function kd(e,n,r){const{type:i,value:l}=e;if(i==="literal")return{literal:!0,val:l};const o=r[i];let a=_d[i];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function xd(e){return[`^${e.map(r=>r.regex).reduce((r,i)=>`${r}(${i.source})`,"")}$`,e]}function bd(e,n,r){const i=e.match(n);if(i){const l={};let o=1;for(const a in r)if(_t(r,a)){const s=r[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(l[s.token.val[0]]=s.deser(i.slice(o,o+c))),o+=c}return[i,l]}else return[i,{}]}function Cd(e){const n=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,i;return I(e.z)||(r=We.create(e.z)),I(e.Z)||(r||(r=new fe(e.Z)),i=e.Z),I(e.q)||(e.M=(e.q-1)*3+1),I(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),I(e.u)||(e.S=ur(e.u)),[Object.keys(e).reduce((o,a)=>{const s=n(a);return s&&(o[s]=e[a]),o},{}),r,i]}let Nr=null;function wd(){return Nr||(Nr=S.fromMillis(1555555555555)),Nr}function Vd(e,n){if(e.literal)return e;const r=_e.macroTokenToFormatOpts(e.val);if(!r)return e;const o=_e.create(n,r).formatDateTimeParts(wd()).map(a=>kd(a,n,r));return o.includes(void 0)?e:o}function Ed(e,n){return Array.prototype.concat(...e.map(r=>Vd(r,n)))}function bi(e,n,r){const i=Ed(_e.parseFormat(r),e),l=i.map(a=>gd(a,e)),o=l.find(a=>a.invalidReason);if(o)return{input:n,tokens:i,invalidReason:o.invalidReason};{const[a,s]=xd(l),c=RegExp(a,"i"),[d,u]=bd(n,c,s),[m,f,p]=u?Cd(u):[null,null,void 0];if(_t(u,"a")&&_t(u,"H"))throw new zt("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:i,regex:c,rawMatches:d,matches:u,result:m,zone:f,specificOffset:p}}}function Bd(e,n,r){const{result:i,zone:l,specificOffset:o,invalidReason:a}=bi(e,n,r);return[i,l,o,a]}const Ci=[0,31,59,90,120,151,181,212,243,273,304,334],wi=[0,31,60,91,121,152,182,213,244,274,305,335];function Te(e,n){return new Ae("unit out of range",`you specified ${n} (of type ${typeof n}) as a ${e}, which is invalid`)}function Vi(e,n,r){const i=new Date(Date.UTC(e,n-1,r));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const l=i.getUTCDay();return l===0?7:l}function Ei(e,n,r){return r+(Ht(e)?wi:Ci)[n-1]}function Bi(e,n){const r=Ht(e)?wi:Ci,i=r.findIndex(o=>o<n),l=n-r[i];return{month:i+1,day:l}}function Sr(e){const{year:n,month:r,day:i}=e,l=Ei(n,r,i),o=Vi(n,r,i);let a=Math.floor((l-o+10)/7),s;return a<1?(s=n-1,a=kn(s)):a>kn(n)?(s=n+1,a=1):s=n,{weekYear:s,weekNumber:a,weekday:o,...wn(e)}}function Ni(e){const{weekYear:n,weekNumber:r,weekday:i}=e,l=Vi(n,1,4),o=qt(n);let a=r*7+i-l-3,s;a<1?(s=n-1,a+=qt(s)):a>o?(s=n+1,a-=qt(n)):s=n;const{month:c,day:d}=Bi(s,a);return{year:s,month:c,day:d,...wn(e)}}function Tr(e){const{year:n,month:r,day:i}=e,l=Ei(n,r,i);return{year:n,ordinal:l,...wn(e)}}function Si(e){const{year:n,ordinal:r}=e,{month:i,day:l}=Bi(n,r);return{year:n,month:i,day:l,...wn(e)}}function Nd(e){const n=gn(e.weekYear),r=Ge(e.weekNumber,1,kn(e.weekYear)),i=Ge(e.weekday,1,7);return n?r?i?!1:Te("weekday",e.weekday):Te("week",e.week):Te("weekYear",e.weekYear)}function Sd(e){const n=gn(e.year),r=Ge(e.ordinal,1,qt(e.year));return n?r?!1:Te("ordinal",e.ordinal):Te("year",e.year)}function Ti(e){const n=gn(e.year),r=Ge(e.month,1,12),i=Ge(e.day,1,_n(e.year,e.month));return n?r?i?!1:Te("day",e.day):Te("month",e.month):Te("year",e.year)}function Di(e){const{hour:n,minute:r,second:i,millisecond:l}=e,o=Ge(n,0,23)||n===24&&r===0&&i===0&&l===0,a=Ge(r,0,59),s=Ge(i,0,59),c=Ge(l,0,999);return o?a?s?c?!1:Te("millisecond",l):Te("second",i):Te("minute",r):Te("hour",n)}const Dr="Invalid DateTime",Oi=864e13;function Sn(e){return new Ae("unsupported zone",`the zone "${e.name}" is not supported`)}function Or(e){return e.weekData===null&&(e.weekData=Sr(e.c)),e.weekData}function Yt(e,n){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new S({...r,...n,old:r})}function Ai(e,n,r){let i=e-n*60*1e3;const l=r.offset(i);if(n===l)return[i,n];i-=(l-n)*60*1e3;const o=r.offset(i);return l===o?[i,l]:[e-Math.min(l,o)*60*1e3,Math.max(l,o)]}function Mi(e,n){e+=n*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Tn(e,n,r){return Ai(fr(e),n,r)}function Fi(e,n){const r=e.o,i=e.c.year+Math.trunc(n.years),l=e.c.month+Math.trunc(n.months)+Math.trunc(n.quarters)*3,o={...e.c,year:i,month:l,day:Math.min(e.c.day,_n(i,l))+Math.trunc(n.days)+Math.trunc(n.weeks)*7},a=L.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),s=fr(o);let[c,d]=Ai(s,r,e.zone);return a!==0&&(c+=a,d=e.zone.offset(c)),{ts:c,o:d}}function Zt(e,n,r,i,l,o){const{setZone:a,zone:s}=r;if(e&&Object.keys(e).length!==0){const c=n||s,d=S.fromObject(e,{...r,zone:c,specificOffset:o});return a?d:d.setZone(s)}else return S.invalid(new Ae("unparsable",`the input "${l}" can't be parsed as ${i}`))}function Dn(e,n,r=!0){return e.isValid?_e.create(X.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,n):null}function Ar(e,n){const r=e.c.year>9999||e.c.year<0;let i="";return r&&e.c.year>=0&&(i+="+"),i+=te(e.c.year,r?6:4),n?(i+="-",i+=te(e.c.month),i+="-",i+=te(e.c.day)):(i+=te(e.c.month),i+=te(e.c.day)),i}function Ii(e,n,r,i,l){let o=te(e.c.hour);return n?(o+=":",o+=te(e.c.minute),(e.c.second!==0||!r)&&(o+=":")):o+=te(e.c.minute),(e.c.second!==0||!r)&&(o+=te(e.c.second),(e.c.millisecond!==0||!i)&&(o+=".",o+=te(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0?o+="Z":e.o<0?(o+="-",o+=te(Math.trunc(-e.o/60)),o+=":",o+=te(Math.trunc(-e.o%60))):(o+="+",o+=te(Math.trunc(e.o/60)),o+=":",o+=te(Math.trunc(e.o%60)))),o}const $i={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Td={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Dd={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Li=["year","month","day","hour","minute","second","millisecond"],Od=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ad=["year","ordinal","hour","minute","second","millisecond"];function Pi(e){const n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!n)throw new bo(e);return n}function Ui(e,n){const r=Qe(n.zone,re.defaultZone),i=X.fromObject(n),l=re.now();let o,a;if(I(e.year))o=l;else{for(const d of Li)I(e[d])&&(e[d]=$i[d]);const s=Ti(e)||Di(e);if(s)return S.invalid(s);const c=r.offset(l);[o,a]=Tn(e,c,r)}return new S({ts:o,zone:r,loc:i,o:a})}function ji(e,n,r){const i=I(r.round)?!0:r.round,l=(a,s)=>(a=mr(a,i||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(a,s)),o=a=>r.calendary?n.hasSame(e,a)?0:n.startOf(a).diff(e.startOf(a),a).get(a):n.diff(e,a).get(a);if(r.unit)return l(o(r.unit),r.unit);for(const a of r.units){const s=o(a);if(Math.abs(s)>=1)return l(s,a)}return l(e>n?-0:0,r.units[r.units.length-1])}function Ri(e){let n={},r;return e.length>0&&typeof e[e.length-1]=="object"?(n=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[n,r]}class S{constructor(n){const r=n.zone||re.defaultZone;let i=n.invalid||(Number.isNaN(n.ts)?new Ae("invalid input"):null)||(r.isValid?null:Sn(r));this.ts=I(n.ts)?re.now():n.ts;let l=null,o=null;if(!i)if(n.old&&n.old.ts===this.ts&&n.old.zone.equals(r))[l,o]=[n.old.c,n.old.o];else{const s=r.offset(this.ts);l=Mi(this.ts,s),i=Number.isNaN(l.year)?new Ae("invalid input"):null,l=i?null:l,o=i?null:s}this._zone=r,this.loc=n.loc||X.create(),this.invalid=i,this.weekData=null,this.c=l,this.o=o,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[n,r]=Ri(arguments),[i,l,o,a,s,c,d]=r;return Ui({year:i,month:l,day:o,hour:a,minute:s,second:c,millisecond:d},n)}static utc(){const[n,r]=Ri(arguments),[i,l,o,a,s,c,d]=r;return n.zone=fe.utcInstance,Ui({year:i,month:l,day:o,hour:a,minute:s,second:c,millisecond:d},n)}static fromJSDate(n,r={}){const i=js(n)?n.valueOf():NaN;if(Number.isNaN(i))return S.invalid("invalid input");const l=Qe(r.zone,re.defaultZone);return l.isValid?new S({ts:i,zone:l,loc:X.fromObject(r)}):S.invalid(Sn(l))}static fromMillis(n,r={}){if(st(n))return n<-Oi||n>Oi?S.invalid("Timestamp out of range"):new S({ts:n,zone:Qe(r.zone,re.defaultZone),loc:X.fromObject(r)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof n} with value ${n}`)}static fromSeconds(n,r={}){if(st(n))return new S({ts:n*1e3,zone:Qe(r.zone,re.defaultZone),loc:X.fromObject(r)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(n,r={}){n=n||{};const i=Qe(r.zone,re.defaultZone);if(!i.isValid)return S.invalid(Sn(i));const l=re.now(),o=I(r.specificOffset)?i.offset(l):r.specificOffset,a=bn(n,Pi),s=!I(a.ordinal),c=!I(a.year),d=!I(a.month)||!I(a.day),u=c||d,m=a.weekYear||a.weekNumber,f=X.fromObject(r);if((u||s)&&m)throw new zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new zt("Can't mix ordinal dates with month/day");const p=m||a.weekday&&!u;let h,y,x=Mi(l,o);p?(h=Od,y=Td,x=Sr(x)):s?(h=Ad,y=Dd,x=Tr(x)):(h=Li,y=$i);let F=!1;for(const W of h){const M=a[W];I(M)?F?a[W]=y[W]:a[W]=x[W]:F=!0}const R=p?Nd(a):s?Sd(a):Ti(a),H=R||Di(a);if(H)return S.invalid(H);const Y=p?Ni(a):s?Si(a):a,[Z,A]=Tn(Y,o,i),V=new S({ts:Z,zone:i,o:A,loc:f});return a.weekday&&u&&n.weekday!==V.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${V.toISO()}`):V}static fromISO(n,r={}){const[i,l]=Wc(n);return Zt(i,l,r,"ISO 8601",n)}static fromRFC2822(n,r={}){const[i,l]=Kc(n);return Zt(i,l,r,"RFC 2822",n)}static fromHTTP(n,r={}){const[i,l]=Yc(n);return Zt(i,l,r,"HTTP",r)}static fromFormat(n,r,i={}){if(I(n)||I(r))throw new Ne("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:o=null}=i,a=X.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0}),[s,c,d,u]=Bd(a,n,r);return u?S.invalid(u):Zt(s,c,i,`format ${r}`,n,d)}static fromString(n,r,i={}){return S.fromFormat(n,r,i)}static fromSQL(n,r={}){const[i,l]=nd(n);return Zt(i,l,r,"SQL",n)}static invalid(n,r=null){if(!n)throw new Ne("need to specify a reason the DateTime is invalid");const i=n instanceof Ae?n:new Ae(n,r);if(re.throwOnInvalid)throw new Fs(i);return new S({invalid:i})}static isDateTime(n){return n&&n.isLuxonDateTime||!1}get(n){return this[n]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Or(this).weekYear:NaN}get weekNumber(){return this.isValid?Or(this).weekNumber:NaN}get weekday(){return this.isValid?Or(this).weekday:NaN}get ordinal(){return this.isValid?Tr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Nn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Nn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Nn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Nn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ht(this.year)}get daysInMonth(){return _n(this.year,this.month)}get daysInYear(){return this.isValid?qt(this.year):NaN}get weeksInWeekYear(){return this.isValid?kn(this.weekYear):NaN}resolvedLocaleOptions(n={}){const{locale:r,numberingSystem:i,calendar:l}=_e.create(this.loc.clone(n),n).resolvedOptions(this);return{locale:r,numberingSystem:i,outputCalendar:l}}toUTC(n=0,r={}){return this.setZone(fe.instance(n),r)}toLocal(){return this.setZone(re.defaultZone)}setZone(n,{keepLocalTime:r=!1,keepCalendarTime:i=!1}={}){if(n=Qe(n,re.defaultZone),n.equals(this.zone))return this;if(n.isValid){let l=this.ts;if(r||i){const o=n.offset(this.ts),a=this.toObject();[l]=Tn(a,o,n)}return Yt(this,{ts:l,zone:n})}else return S.invalid(Sn(n))}reconfigure({locale:n,numberingSystem:r,outputCalendar:i}={}){const l=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return Yt(this,{loc:l})}setLocale(n){return this.reconfigure({locale:n})}set(n){if(!this.isValid)return this;const r=bn(n,Pi),i=!I(r.weekYear)||!I(r.weekNumber)||!I(r.weekday),l=!I(r.ordinal),o=!I(r.year),a=!I(r.month)||!I(r.day),s=o||a,c=r.weekYear||r.weekNumber;if((s||l)&&c)throw new zt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&l)throw new zt("Can't mix ordinal dates with month/day");let d;i?d=Ni({...Sr(this.c),...r}):I(r.ordinal)?(d={...this.toObject(),...r},I(r.day)&&(d.day=Math.min(_n(d.year,d.month),d.day))):d=Si({...Tr(this.c),...r});const[u,m]=Tn(d,this.o,this.zone);return Yt(this,{ts:u,o:m})}plus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n);return Yt(this,Fi(this,r))}minus(n){if(!this.isValid)return this;const r=L.fromDurationLike(n).negate();return Yt(this,Fi(this,r))}startOf(n){if(!this.isValid)return this;const r={},i=L.normalizeUnit(n);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks"&&(r.weekday=1),i==="quarters"){const l=Math.ceil(this.month/3);r.month=(l-1)*3+1}return this.set(r)}endOf(n){return this.isValid?this.plus({[n]:1}).startOf(n).minus(1):this}toFormat(n,r={}){return this.isValid?_e.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,n):Dr}toLocaleString(n=dr,r={}){return this.isValid?_e.create(this.loc.clone(r),n).formatDateTime(this):Dr}toLocaleParts(n={}){return this.isValid?_e.create(this.loc.clone(n),n).formatDateTimeParts(this):[]}toISO({format:n="extended",suppressSeconds:r=!1,suppressMilliseconds:i=!1,includeOffset:l=!0}={}){if(!this.isValid)return null;const o=n==="extended";let a=Ar(this,o);return a+="T",a+=Ii(this,o,r,i,l),a}toISODate({format:n="extended"}={}){return this.isValid?Ar(this,n==="extended"):null}toISOWeekDate(){return Dn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:n=!1,suppressSeconds:r=!1,includeOffset:i=!0,includePrefix:l=!1,format:o="extended"}={}){return this.isValid?(l?"T":"")+Ii(this,o==="extended",r,n,i):null}toRFC2822(){return Dn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Dn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ar(this,!0):null}toSQLTime({includeOffset:n=!0,includeZone:r=!1,includeOffsetSpace:i=!0}={}){let l="HH:mm:ss.SSS";return(r||n)&&(i&&(l+=" "),r?l+="z":n&&(l+="ZZ")),Dn(this,l,!0)}toSQL(n={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(n)}`:null}toString(){return this.isValid?this.toISO():Dr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(n={}){if(!this.isValid)return{};const r={...this.c};return n.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(n,r="milliseconds",i={}){if(!this.isValid||!n.isValid)return L.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=Rs(r).map(L.normalizeUnit),a=n.valueOf()>this.valueOf(),s=a?this:n,c=a?n:this,d=ud(s,c,o,l);return a?d.negate():d}diffNow(n="milliseconds",r={}){return this.diff(S.now(),n,r)}until(n){return this.isValid?Q.fromDateTimes(this,n):this}hasSame(n,r){if(!this.isValid)return!1;const i=n.valueOf(),l=this.setZone(n.zone,{keepLocalTime:!0});return l.startOf(r)<=i&&i<=l.endOf(r)}equals(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)}toRelative(n={}){if(!this.isValid)return null;const r=n.base||S.fromObject({},{zone:this.zone}),i=n.padding?this<r?-n.padding:n.padding:0;let l=["years","months","days","hours","minutes","seconds"],o=n.unit;return Array.isArray(n.unit)&&(l=n.unit,o=void 0),ji(r,this.plus(i),{...n,numeric:"always",units:l,unit:o})}toRelativeCalendar(n={}){return this.isValid?ji(n.base||S.fromObject({},{zone:this.zone}),this,{...n,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...n){if(!n.every(S.isDateTime))throw new Ne("min requires all arguments be DateTimes");return zo(n,r=>r.valueOf(),Math.min)}static max(...n){if(!n.every(S.isDateTime))throw new Ne("max requires all arguments be DateTimes");return zo(n,r=>r.valueOf(),Math.max)}static fromFormatExplain(n,r,i={}){const{locale:l=null,numberingSystem:o=null}=i,a=X.fromOpts({locale:l,numberingSystem:o,defaultToEN:!0});return bi(a,n,r)}static fromStringExplain(n,r,i={}){return S.fromFormatExplain(n,r,i)}static get DATE_SHORT(){return dr}static get DATE_MED(){return Co}static get DATE_MED_WITH_WEEKDAY(){return Ls}static get DATE_FULL(){return wo}static get DATE_HUGE(){return Vo}static get TIME_SIMPLE(){return Eo}static get TIME_WITH_SECONDS(){return Bo}static get TIME_WITH_SHORT_OFFSET(){return No}static get TIME_WITH_LONG_OFFSET(){return So}static get TIME_24_SIMPLE(){return To}static get TIME_24_WITH_SECONDS(){return Do}static get TIME_24_WITH_SHORT_OFFSET(){return Oo}static get TIME_24_WITH_LONG_OFFSET(){return Ao}static get DATETIME_SHORT(){return Mo}static get DATETIME_SHORT_WITH_SECONDS(){return Fo}static get DATETIME_MED(){return Io}static get DATETIME_MED_WITH_SECONDS(){return $o}static get DATETIME_MED_WITH_WEEKDAY(){return Ps}static get DATETIME_FULL(){return Lo}static get DATETIME_FULL_WITH_SECONDS(){return Po}static get DATETIME_HUGE(){return Uo}static get DATETIME_HUGE_WITH_SECONDS(){return jo}}function Jt(e){if(S.isDateTime(e))return e;if(e&&e.valueOf&&st(e.valueOf()))return S.fromJSDate(e);if(e&&typeof e=="object")return S.fromObject(e);throw new Ne(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Ie={};Ie.readableDateRange=function(e,n){if(!e)return;if(!n)return Ie.readableDate(e);e=S.fromJSDate(new Date(e)),n=S.fromJSDate(new Date(n));const r=e.toFormat("yyyy"),i=e.toFormat("LLL yyyy"),l=e.toFormat("WW yyyy"),o=e.toFormat("d LLL yyyy"),a=n.toFormat("yyyy"),s=n.toFormat("LLL yyyy"),c=n.toFormat("WW yyyy"),d=n.toFormat("d LLL yyyy");return o===d?`${e.toFormat("h:mma")} - ${Ie.readableDate(n)}`:l===c?`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`:i===s?`${e.toFormat("d")} - ${n.toFormat("d LLL")}`:r===a?`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`:`${Ie.readableDate(e)} - ${Ie.readableDate(n)}`},Ie.readableDate=function(e){if(!e)return;const n=new Date,r=S.fromJSDate(n),i=r.toFormat("yyyy"),l=r.toFormat("LLL yyyy"),o=r.toFormat("WW yyyy"),a=r.toFormat("d LLL yyyy");e=new Date(e);const s=S.fromJSDate(e),c=s.toFormat("yyyy"),d=s.toFormat("LLL yyyy"),u=s.toFormat("WW yyyy");if(s.toFormat("d LLL yyyy")===a)return`${s.toFormat("h:mma")} today`;if(u===o)if(e>n){const f=parseInt(r.toFormat("d"));return parseInt(s.toFormat("d"))-f===1?`${s.toFormat("h:mma")} tomorrow`:`${s.toFormat("h:mma")} ${s.toFormat("cccc")}`}else return`${s.toRelativeCalendar()}`;return d===l?`${s.toFormat("h:mma")} ${s.toFormat("d LLL")}`:c===i?s.toFormat("cccc d LLL"):s.toFormat("d LLL yyyy")};const On={STRIPE_NOT_LOADED:"Stripe v3 library is not loaded",INSTANCE_NOT_DEFINED:"Instance object is not defined. Make sure you initialized Stripe before creating elements",ELEMENTS_NOT_DEFINED:"Elements object is not defined. You can't create stripe element without it",ELEMENT_TYPE_NOT_DEFINED:"elementType is required. You can't create stripe element without it"},Md=(e,n)=>{try{if(!window.Stripe)throw new Error(On.STRIPE_NOT_LOADED);return window.Stripe(e,n)}catch(r){return console.error(r),r}},Fd=(e,n)=>{try{if(!e)throw new Error(On.INSTANCE_NOT_DEFINED);return e.elements(n)}catch(r){return console.error(r),r}},Id=(e,n,r)=>{try{if(!e)throw new Error(On.ELEMENTS_NOT_DEFINED);if(!n)throw new Error(On.ELEMENT_TYPE_NOT_DEFINED);return e.create(n,r)}catch(i){return console.error(i),i}};var zi=(e,n)=>{const r=e.__vccOpts||e;for(const[i,l]of n)r[i]=l;return r};const $d=t.defineComponent({name:"StripeElement",props:{elements:{type:Object,required:!0},type:{type:String,default:()=>"card"},options:{type:Object,default:()=>({})}},setup(e,{emit:n}){const r=t.ref(document.createElement("div")),i=t.ref(),l=t.ref(),{elements:o,type:a,options:s}=t.toRefs(e);return t.onMounted(()=>{const c=()=>{i.value=Id(o.value,a.value,s.value),i.value.mount(r.value),l.value.appendChild(r.value)},d=(m,f)=>{n(m,f)},u=()=>{["change","ready","focus","blur","click","escape"].forEach(f=>{i.value.on(f,d.bind(null,f))})};try{c(),u()}catch(m){console.error(m)}}),t.onBeforeUnmount(()=>{var c,d;(c=i.value)==null||c.unmount(),(d=i.value)==null||d.destroy()}),t.watch(s,()=>{var c;(c=i.value)==null||c.update(e.options)}),{stripeElement:i,domElement:r,mountPoint:l}}}),Ld={ref:"mountPoint"};function Pd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Ld,null,512)}var Hi=zi($d,[["render",Pd]]);const Ud=t.defineComponent({name:"StripeElements",props:{stripeKey:{type:String,required:!0},instanceOptions:{type:Object,default:()=>({})},elementsOptions:{type:Object,default:()=>({})}},setup(e){const{stripeKey:n,instanceOptions:r,elementsOptions:i}=t.toRefs(e),l=t.ref(),o=t.ref(),a=t.computed(()=>o.value?Object.keys(o.value).length>0:!1);return t.onMounted(()=>{l.value=Md(n.value,r.value),o.value=Fd(l.value,i.value)}),t.watch(i,()=>{var s;(s=o.value)==null||s.update(i.value)}),{elements:o,instance:l,elementsUsable:a}}}),jd={key:0};function Rd(e,n,r,i,l,o){return e.elementsUsable?(t.openBlock(),t.createElementBlock("div",jd,[t.renderSlot(e.$slots,"default",{instance:e.instance,elements:e.elements})])):t.createCommentVNode("",!0)}var qi=zi(Ud,[["render",Rd]]);const QS="",g=(e,n)=>{const r=e.__vccOpts||e;for(const[i,l]of n)r[i]=l;return r},zd={},Hd={class:"flex-column"};function qd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Hd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Gi=g(zd,[["render",qd],["__scopeId","data-v-71e77c4f"]]),vS="",Gd={},Wd={class:"flex-column-body"};function Kd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Wd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Wi=g(Gd,[["render",Kd],["__scopeId","data-v-ab49c425"]]),eT="",Yd={},Zd={class:"flex-column-header"};function Jd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Zd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ki=g(Yd,[["render",Jd],["__scopeId","data-v-968bcded"]]),tT="",Xd={},Qd={class:"flex-column-footer"};function vd(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Qd,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Yi=g(Xd,[["render",vd],["__scopeId","data-v-941966e2"]]),nT="",eu={},tu={class:"flex-cell"};function nu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",tu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Zi=g(eu,[["render",nu],["__scopeId","data-v-ceefef08"]]),rT="",ru={},ou={class:"flex-row"};function iu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",ou,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ji=g(ru,[["render",iu],["__scopeId","data-v-a4b9a8e0"]]),oT="",lu={},au={class:"flex-spacer"};function su(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",au)}const Xi=g(lu,[["render",su],["__scopeId","data-v-f42ac625"]]),iT="",cu={},du={class:"panel"};function uu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",du,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Qi=g(cu,[["render",uu],["__scopeId","data-v-d5c9d9ec"]]),lT="",mu={},fu={class:"panel-body"};function pu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",fu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const vi=g(mu,[["render",pu],["__scopeId","data-v-53a6d4be"]]),aT="",hu={},yu={class:"panel-header"};function gu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",yu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const el=g(hu,[["render",gu],["__scopeId","data-v-12bf7f04"]]),sT="",_u={},ku={class:"panel-footer"};function xu(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",ku,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const tl=g(_u,[["render",xu],["__scopeId","data-v-d8937de9"]]);var An=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mn=bu,Cu=typeof An=="object"&&An&&An.Object===Object&&An,nl=Cu,wu=nl,Vu=typeof self=="object"&&self&&self.Object===Object&&self,Eu=wu||Vu||Function("return this")(),Vt=Eu,Bu=Vt,Nu=function(){return Bu.Date.now()},Su=Nu,Tu=/\s/;function Du(e){for(var n=e.length;n--&&Tu.test(e.charAt(n)););return n}var Ou=Du,Au=Ou,Mu=/^\s+/;function Fu(e){return e&&e.slice(0,Au(e)+1).replace(Mu,"")}var Iu=Fu,$u=Vt,Lu=$u.Symbol,Mr=Lu,rl=Mr,ol=Object.prototype,Pu=ol.hasOwnProperty,Uu=ol.toString,Xt=rl?rl.toStringTag:void 0;function ju(e){var n=Pu.call(e,Xt),r=e[Xt];try{e[Xt]=void 0;var i=!0}catch{}var l=Uu.call(e);return i&&(n?e[Xt]=r:delete e[Xt]),l}var Ru=ju,zu=Object.prototype,Hu=zu.toString;function qu(e){return Hu.call(e)}var Gu=qu,il=Mr,Wu=Ru,Ku=Gu,Yu="[object Null]",Zu="[object Undefined]",ll=il?il.toStringTag:void 0;function Ju(e){return e==null?e===void 0?Zu:Yu:ll&&ll in Object(e)?Wu(e):Ku(e)}var Qt=Ju;function Xu(e){return e!=null&&typeof e=="object"}var vt=Xu,Qu=Qt,vu=vt,em="[object Symbol]";function tm(e){return typeof e=="symbol"||vu(e)&&Qu(e)==em}var Fn=tm,nm=Iu,al=Mn,rm=Fn,sl=0/0,om=/^[-+]0x[0-9a-f]+$/i,im=/^0b[01]+$/i,lm=/^0o[0-7]+$/i,am=parseInt;function sm(e){if(typeof e=="number")return e;if(rm(e))return sl;if(al(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=al(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=nm(e);var r=im.test(e);return r||lm.test(e)?am(e.slice(2),r?2:8):om.test(e)?sl:+e}var cl=sm,cm=Mn,Fr=Su,dl=cl,dm="Expected a function",um=Math.max,mm=Math.min;function fm(e,n,r){var i,l,o,a,s,c,d=0,u=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(dm);n=dl(n)||0,cm(r)&&(u=!!r.leading,m="maxWait"in r,o=m?um(dl(r.maxWait)||0,n):o,f="trailing"in r?!!r.trailing:f);function p(A){var V=i,W=l;return i=l=void 0,d=A,a=e.apply(W,V),a}function h(A){return d=A,s=setTimeout(F,n),u?p(A):a}function y(A){var V=A-c,W=A-d,M=n-V;return m?mm(M,o-W):M}function x(A){var V=A-c,W=A-d;return c===void 0||V>=n||V<0||m&&W>=o}function F(){var A=Fr();if(x(A))return R(A);s=setTimeout(F,y(A))}function R(A){return s=void 0,f&&i?p(A):(i=l=void 0,a)}function H(){s!==void 0&&clearTimeout(s),d=0,i=c=l=s=void 0}function Y(){return s===void 0?a:R(Fr())}function Z(){var A=Fr(),V=x(A);if(i=arguments,l=this,c=A,V){if(s===void 0)return h(c);if(m)return clearTimeout(s),s=setTimeout(F,n),p(c)}return s===void 0&&(s=setTimeout(F,n)),a}return Z.cancel=H,Z.flush=Y,Z}var Et=fm;const cT="",pm=["onClick"],hm=["onClick"],ul=g({__name:"tabset",props:{vertical:Boolean,inline:Boolean},setup(e){const n=t.useSlots(),r=t.reactive({tabs:[]});t.provide("tabset",r);const i=t.ref();t.provide("activeHeading",i);const l=function(c){i.value=c},o=Et(function(){const d=n.default().reduce(function(f,p){var h;return((h=p.type)==null?void 0:h.name)==="tab"?f.push(p):p.children&&(f=[...f,...p.children]),f},[]).filter(function(f){var p;return((p=f.type)==null?void 0:p.name)==="tab"&&f.props.enabled!==!1}).map(function(f,p){return{heading:f.props.heading,index:p}});r.tabs=d;const u=d.reduce(function(f,p){return f[p.heading]=!0,f},{}),m=i.value;(!m||!u[m])&&d.length&&(i.value=d[0].heading)});t.provide("rebuild",o);const a=t.computed(function(){return r.tabs.map(function(c){if(c)return c.heading}).filter(Boolean)}),s=t.computed(function(){return a.value.length>1});return o(),(c,d)=>{const u=t.resolveComponent("flex-body"),m=t.resolveComponent("flex-column"),f=t.resolveComponent("flex-row"),p=t.resolveComponent("flex-header");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-tabset",{vertical:e.vertical,horizontal:!e.vertical,inline:e.inline,block:!e.inline}])},[e.vertical?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(s)?(t.openBlock(),t.createBlock(m,{key:0,class:"tabset-menu"},{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(h,y)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass({active:i.value===h}),key:`tab-link-${h}`,onClick:x=>l(h)},t.toDisplayString(h),11,pm))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(s)?(t.openBlock(),t.createBlock(p,{key:0,class:"tabset-menu"},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(h,y)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass({active:i.value===h}),key:`tab-link-${h}`,onClick:x=>l(h)},t.toDisplayString(h),11,hm))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)],64)),t.createVNode(m,null,{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3})],2)}}},[["__scopeId","data-v-1568a756"]]),ym={name:"tab",props:{heading:{type:String,required:!0},enabled:{type:Boolean,default:!0}},created(){this.rebuild()},unmounted(){this.rebuild()},inject:["tabset","activeHeading","rebuild"],computed:{active(){var n;return String(this.heading)===String(((n=this.activeHeading)==null?void 0:n.value)||this.activeHeading)}}};function gm(e,n,r,i,l,o){const a=t.resolveComponent("flex-column");return o.active?(t.openBlock(),t.createBlock(a,{key:0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3})):t.createCommentVNode("",!0)}const ml=g(ym,[["render",gm]]);var _m=Array.isArray,en=_m,km=en,xm=Fn,bm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cm=/^\w*$/;function wm(e,n){if(km(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xm(e)?!0:Cm.test(e)||!bm.test(e)||n!=null&&e in Object(n)}var Vm=wm,Em=Qt,Bm=Mn,Nm="[object AsyncFunction]",Sm="[object Function]",Tm="[object GeneratorFunction]",Dm="[object Proxy]";function Om(e){if(!Bm(e))return!1;var n=Em(e);return n==Sm||n==Tm||n==Nm||n==Dm}var fl=Om,Am=Vt,Mm=Am["__core-js_shared__"],Fm=Mm,Ir=Fm,pl=function(){var e=/[^.]+$/.exec(Ir&&Ir.keys&&Ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Im(e){return!!pl&&pl in e}var $m=Im,Lm=Function.prototype,Pm=Lm.toString;function Um(e){if(e!=null){try{return Pm.call(e)}catch{}try{return e+""}catch{}}return""}var jm=Um,Rm=fl,zm=$m,Hm=Mn,qm=jm,Gm=/[\\^$.*+?()[\]{}|]/g,Wm=/^\[object .+?Constructor\]$/,Km=Function.prototype,Ym=Object.prototype,Zm=Km.toString,Jm=Ym.hasOwnProperty,Xm=RegExp("^"+Zm.call(Jm).replace(Gm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qm(e){if(!Hm(e)||zm(e))return!1;var n=Rm(e)?Xm:Wm;return n.test(qm(e))}var vm=Qm;function ef(e,n){return e==null?void 0:e[n]}var tf=ef,nf=vm,rf=tf;function of(e,n){var r=rf(e,n);return nf(r)?r:void 0}var $r=of,lf=$r,af=lf(Object,"create"),In=af,hl=In;function sf(){this.__data__=hl?hl(null):{},this.size=0}var cf=sf;function df(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var uf=df,mf=In,ff="__lodash_hash_undefined__",pf=Object.prototype,hf=pf.hasOwnProperty;function yf(e){var n=this.__data__;if(mf){var r=n[e];return r===ff?void 0:r}return hf.call(n,e)?n[e]:void 0}var gf=yf,_f=In,kf=Object.prototype,xf=kf.hasOwnProperty;function bf(e){var n=this.__data__;return _f?n[e]!==void 0:xf.call(n,e)}var Cf=bf,wf=In,Vf="__lodash_hash_undefined__";function Ef(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wf&&n===void 0?Vf:n,this}var Bf=Ef,Nf=cf,Sf=uf,Tf=gf,Df=Cf,Of=Bf;function Bt(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}Bt.prototype.clear=Nf,Bt.prototype.delete=Sf,Bt.prototype.get=Tf,Bt.prototype.has=Df,Bt.prototype.set=Of;var Af=Bt;function Mf(){this.__data__=[],this.size=0}var Ff=Mf;function If(e,n){return e===n||e!==e&&n!==n}var $f=If,Lf=$f;function Pf(e,n){for(var r=e.length;r--;)if(Lf(e[r][0],n))return r;return-1}var $n=Pf,Uf=$n,jf=Array.prototype,Rf=jf.splice;function zf(e){var n=this.__data__,r=Uf(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():Rf.call(n,r,1),--this.size,!0}var Hf=zf,qf=$n;function Gf(e){var n=this.__data__,r=qf(n,e);return r<0?void 0:n[r][1]}var Wf=Gf,Kf=$n;function Yf(e){return Kf(this.__data__,e)>-1}var Zf=Yf,Jf=$n;function Xf(e,n){var r=this.__data__,i=Jf(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}var Qf=Xf,vf=Ff,ep=Hf,tp=Wf,np=Zf,rp=Qf;function Nt(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}Nt.prototype.clear=vf,Nt.prototype.delete=ep,Nt.prototype.get=tp,Nt.prototype.has=np,Nt.prototype.set=rp;var op=Nt,ip=$r,lp=Vt,ap=ip(lp,"Map"),sp=ap,yl=Af,cp=op,dp=sp;function up(){this.size=0,this.__data__={hash:new yl,map:new(dp||cp),string:new yl}}var mp=up;function fp(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var pp=fp,hp=pp;function yp(e,n){var r=e.__data__;return hp(n)?r[typeof n=="string"?"string":"hash"]:r.map}var Ln=yp,gp=Ln;function _p(e){var n=gp(this,e).delete(e);return this.size-=n?1:0,n}var kp=_p,xp=Ln;function bp(e){return xp(this,e).get(e)}var Cp=bp,wp=Ln;function Vp(e){return wp(this,e).has(e)}var Ep=Vp,Bp=Ln;function Np(e,n){var r=Bp(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}var Sp=Np,Tp=mp,Dp=kp,Op=Cp,Ap=Ep,Mp=Sp;function St(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}St.prototype.clear=Tp,St.prototype.delete=Dp,St.prototype.get=Op,St.prototype.has=Ap,St.prototype.set=Mp;var gl=St,_l=gl,Fp="Expected a function";function Lr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Fp);var r=function(){var i=arguments,l=n?n.apply(this,i):i[0],o=r.cache;if(o.has(l))return o.get(l);var a=e.apply(this,i);return r.cache=o.set(l,a)||o,a};return r.cache=new(Lr.Cache||_l),r}Lr.Cache=_l;var Ip=Lr,$p=Ip,Lp=500;function Pp(e){var n=$p(e,function(i){return r.size===Lp&&r.clear(),i}),r=n.cache;return n}var Up=Pp,jp=Up,Rp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zp=/\\(\\)?/g,Hp=jp(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Rp,function(r,i,l,o){n.push(l?o.replace(zp,"$1"):i||r)}),n}),qp=Hp;function Gp(e,n){for(var r=-1,i=e==null?0:e.length,l=Array(i);++r<i;)l[r]=n(e[r],r,e);return l}var kl=Gp,xl=Mr,Wp=kl,Kp=en,Yp=Fn,Zp=1/0,bl=xl?xl.prototype:void 0,Cl=bl?bl.toString:void 0;function wl(e){if(typeof e=="string")return e;if(Kp(e))return Wp(e,wl)+"";if(Yp(e))return Cl?Cl.call(e):"";var n=e+"";return n=="0"&&1/e==-Zp?"-0":n}var Jp=wl,Xp=Jp;function Qp(e){return e==null?"":Xp(e)}var Pr=Qp,vp=en,eh=Vm,th=qp,nh=Pr;function rh(e,n){return vp(e)?e:eh(e,n)?[e]:th(nh(e))}var oh=rh,ih=Fn,lh=1/0;function ah(e){if(typeof e=="string"||ih(e))return e;var n=e+"";return n=="0"&&1/e==-lh?"-0":n}var sh=ah,ch=oh,dh=sh;function uh(e,n){n=ch(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[dh(n[r++])];return r&&r==i?e:void 0}var mh=uh,fh=mh;function ph(e,n,r){var i=e==null?void 0:fh(e,n);return i===void 0?r:i}var Pn=ph;const Pe={props:{column:{type:Object,required:!0},row:{type:Object,required:!0},value:{}}},uT="",hh={mixins:[Pe],computed:{imageSource(){return this.value&&this.value._id?this.value:this.row},type(){var e,n;return(n=(e=this.imageSource)==null?void 0:e.meta)==null?void 0:n.type}},methods:{clicked(e){this.$sdk.dispatch("item:view",this.imageSource)}}},yh={class:"table-image-cell"};function gh(e,n,r,i,l,o){const a=t.resolveComponent("ux-image"),s=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",yh,[o.type=="image"||o.type=="video"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:n[0]||(n[0]=t.withModifiers(c=>o.clicked(e.value),["stop","prevent"])),class:"image-wrapper"},[t.createVNode(a,{item:o.imageSource,type:o.type,width:100,height:100},null,8,["item","type"])])):(t.openBlock(),t.createBlock(s,{key:1,icon:"fa-file"}))])}const _h=g(hh,[["render",gh],["__scopeId","data-v-868d2120"]]),mT="",kh={mixins:[Pe],computed:{string(){return isNaN(this.amount)?"":this.amount.toFixed(2)},amount(){return Number(parseInt(this.value)/100)},credit(){return this.amount>0},debit(){return this.amount<0},empty(){return parseInt(this.value)===0},currency(){return this.column.currency||this.row.currency}}};function xh(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-currency-cell",{credit:o.credit,empty:o.empty,debit:o.debit}])},t.toDisplayString(o.string),3)}const bh=g(kh,[["render",xh],["__scopeId","data-v-c8cb509d"]]),fT="",Ch={data(){return{processing:!1}},mixins:[Pe],computed:{button(){return this.column.button},type(){var e,n;return(n=(e=this.row)==null?void 0:e.meta)==null?void 0:n.type},label(){const e=this.button;return typeof e.text=="function"?e.text(this):e.text}},methods:{async clicked(){this.processing=!0,await this.button.action(this.row,this.column),this.processing=!1}}},wh={class:"table-button-cell"};function Vh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("td",wh,[t.createVNode(s,{color:o.button.color,size:o.button.size,loading:l.processing,onClick:t.withModifiers(o.clicked,["stop","prevent"])},{default:t.withCtx(()=>[o.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.label),1)],64)):t.createCommentVNode("",!0),o.button.icon?(t.openBlock(),t.createBlock(a,{key:1,icon:o.button.icon,right:""},null,8,["icon"])):t.createCommentVNode("",!0)]),_:1},8,["color","size","loading","onClick"])])}const Eh=g(Ch,[["render",Vh],["__scopeId","data-v-bddd5589"]]),pT="",Bh={mixins:[Pe],computed:{hasValue(){return this.value!==void 0&&this.value!==null},timeago(){return S.fromISO(this.value).toRelative()},readable(){let e=S.fromISO(this.value),n=S.now(),r=n.toFormat("yyyy");return n.toFormat("MMM yyyy"),e.toFormat("yyyy")===r?S.fromISO(this.value).toFormat("h:mm a - dd MMM"):S.fromISO(this.value).toFormat("h:mm a - dd MMM yyyy")}}},Nh={class:"table-date-cell"},Sh={key:0},Th={class:"off"},Dh={class:"on"},Oh={class:"spacer"};function Ah(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",Nh,[o.hasValue?(t.openBlock(),t.createElementBlock("div",Sh,[t.createElementVNode("span",Th,t.toDisplayString(o.readable),1),t.createElementVNode("span",Dh,t.toDisplayString(o.timeago),1),t.createElementVNode("span",Oh,t.toDisplayString(o.readable),1)])):t.createCommentVNode("",!0)])}const Vl=g(Bh,[["render",Ah],["__scopeId","data-v-d6b72564"]]),hT="",Mh={mixins:[Pe],computed:{boolean(){return!!this.value}}};function Fh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-boolean-cell",{true:o.boolean,false:!o.boolean}])},[t.createVNode(a,{icon:o.boolean?"fa-check":"fa-times"},null,8,["icon"])],2)}const El=g(Mh,[["render",Fh],["__scopeId","data-v-897e69cd"]]),yT="",Ih={mixins:[Pe],methods:{async clicked(){const e=this,n=e.$sdk.utils.id(e.row),r=e.public?"secure":"public";e.processing=!0,e.$sdk.content.patch(n,{meta:{security:r}}).catch(function(i){e.$sdk.error(i),e.processing=!1}).then(function(i){e.v=r,e.processing=!1,e.$sdk.notify(`Set security to ${r}`)})}},data(){return{processing:!1,v:this.value}},computed:{canEdit(){var e=this.user;return this.$sdk.access.canEditItem(e,this.row)},public(){return this.security==="public"},security(){return this.v||"secure"}}};function $h(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-security-cell",o.security])},[o.canEdit?(t.openBlock(),t.createBlock(s,{key:0,size:"sm",loading:l.processing,onClick:t.withModifiers(o.clicked,["stop","prevent"])},{default:t.withCtx(()=>[t.createVNode(a,{icon:o.public?"fa-lock-open":"fa-lock"},null,8,["icon"])]),_:1},8,["loading","onClick"])):(t.openBlock(),t.createBlock(a,{key:1,icon:o.public?"fa-lock-open":"fa-lock"},null,8,["icon"]))],2)}const Lh=g(Ih,[["render",$h],["__scopeId","data-v-45dd2b07"]]),gT="",Ph={mixins:[Pe],methods:{open(){window.open(this.href)}},computed:{href(){return`http://${this.value}`}}},Uh={class:"table-url-cell"},jh=["href"];function Rh(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("td",Uh,[t.createElementVNode("a",{href:o.href,onClick:n[0]||(n[0]=t.withModifiers((...s)=>o.open&&o.open(...s),["stop","prevent"])),target:"_blank"},[t.createTextVNode(t.toDisplayString(e.value)+" ",1),t.createVNode(a,{right:"",icon:"fa-external-link"})],8,jh)])}const Bl=g(Ph,[["render",Rh],["__scopeId","data-v-7dbf1e30"]]);var Nl=function(e,n,r){if(!n.hasOwnProperty(r)){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i)}};const Ur={props:{template:String,parent:Object,templateProps:{type:Object,default:function(){return{}}}},render:function(){if(this.template){var e=this.parent||this.$parent,n=e.$data;n===void 0&&(n={});var r=e.$props;r===void 0&&(r={});var i=e.$options;i===void 0&&(i={});var l=i.components;l===void 0&&(l={});var o=i.computed;o===void 0&&(o={});var a=i.methods;a===void 0&&(a={});var s=this.$data;s===void 0&&(s={});var c=this.$props;c===void 0&&(c={});var d=this.$options;d===void 0&&(d={});var u=d.methods;u===void 0&&(u={});var m=d.computed;m===void 0&&(m={});var f=d.components;f===void 0&&(f={});var p={$data:{},$props:{},$options:{},components:{},computed:{},methods:{}};Object.keys(n).forEach(function(V){s[V]===void 0&&(p.$data[V]=n[V])}),Object.keys(r).forEach(function(V){c[V]===void 0&&(p.$props[V]=r[V])}),Object.keys(a).forEach(function(V){u[V]===void 0&&(p.methods[V]=a[V])}),Object.keys(o).forEach(function(V){m[V]===void 0&&(p.computed[V]=o[V])}),Object.keys(l).forEach(function(V){f[V]===void 0&&(p.components[V]=l[V])});var h=Object.keys(p.methods||{}),y=Object.keys(p.$data||{}),x=Object.keys(p.$props||{}),F=Object.keys(this.templateProps),R=y.concat(x).concat(h).concat(F),H=(Z=e,A={},h.forEach(function(V){return Nl(Z,A,V)}),A),Y=function(V){var W={};return V.forEach(function(M){M&&Object.getOwnPropertyNames(M).forEach(function(ye){return Nl(M,W,ye)})}),W}([p.$data,p.$props,H,this.templateProps]);return t.h({template:this.template||"<div></div>",props:R,computed:p.computed,components:p.components,provide:this.$parent.$.provides?this.$parent.$.provides:{}},Object.assign({},Y))}var Z,A}},_T="",zh={components:{Compile:Ur},mixins:[Pe]},Hh={class:"table-computed-cell"};function qh(e,n,r,i,l,o){const a=t.resolveComponent("compile");return t.openBlock(),t.createElementBlock("td",Hh,[t.createVNode(a,{template:this.column.code},null,8,["template"])])}const Gh=g(zh,[["render",qh],["__scopeId","data-v-05dd3203"]]),kT="",Wh={props:{multi:{type:Boolean},last:{type:Boolean},value:{required:!0},type:{type:String},widget:{type:String}},computed:{reference(){return!!(this.value&&this.value._id)},renderValue(){return this.value?this.value.title||this.value.name||this.value:void 0},date(){return S.fromISO(this.value).toFormat("dd MMM yyyy")},actualWidget(){var e;if(this.widget)e=this.widget;else switch(this.type){case"date":e="datetime";break}return e}},methods:{clicked(e){this.$sdk.dispatch("item:view",e)}}};function Kh(e,n,r,i,l,o){return o.reference?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:n[0]||(n[0]=t.withModifiers(a=>o.clicked(r.value),["stop","prevent"]))},t.toDisplayString(o.renderValue),1)):r.type=="date"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.date),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString(o.renderValue),1),r.multi&&!r.last?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)],64))}const Yh=g(Wh,[["render",Kh],["__scopeId","data-v-cb9b14f7"]]),xT="",Zh={mixins:[Pe],computed:{status(){return String(this.value).toLowerCase()}}},Jh={key:0,class:"pill"};function Xh(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-status-cell",o.status])},[o.status?(t.openBlock(),t.createElementBlock("div",Jh,t.toDisplayString(o.status),1)):t.createCommentVNode("",!0)],2)}const Qh=g(Zh,[["render",Xh],["__scopeId","data-v-22006590"]]),bT="",vh={mixins:[Pe],computed:{typeKey(){var e;return(e=this.row.meta)==null?void 0:e.type},subtitle(){var a;const e=this,n=this.row,r=n.subtitle,i=n.description,l=(a=n.meta)==null?void 0:a.description,o=r||i||l;switch(this.typeKey){case"event":{const s=n.startDate,c=n.endDate;if(e.$sdk.date)return o?`${o} - ${e.$sdk.date.readableDateRange(s,c)}`:`${e.$sdk.date.readableDateRange(s,c)}`}break}return o}}},ey={class:"title"},ty={key:0,class:"subtitle"};function ny(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(["table-title-cell",e.status])},[t.createElementVNode("div",ey,t.toDisplayString(e.value),1),o.subtitle?(t.openBlock(),t.createElementBlock("div",ty,t.toDisplayString(o.subtitle),1)):t.createCommentVNode("",!0)],2)}const ry=g(vh,[["render",ny],["__scopeId","data-v-69182ca5"]]),CT="";function jr(e,n){if(!e||!n)return;var r=Pn(e,n);if(r)return r;const i=n.split("."),l=i.shift(),o=i.join("."),a=Pn(e,l);return Array.isArray(a)?a.map(function(s){return jr(s,o)}).flat().filter(Boolean):jr(a,o)}const oy={data(){return{component:null}},components:{ValueRenderer:Yh},async created(){const e=this;let n,r=e.column.type,i=e.column.renderer||e.column.widget;switch(r=="reference"&&e.column.referenceType==="image"&&(i="thumbnail"),i){case"button":n=Eh;break;case"security":n=Lh;break;case"boolean":n=El;break;case"date":case"datetime":n=Vl;break;case"title":n=ry;break;case"status":n=Qh;break;case"computed":n=Gh;break;case"url":n=Bl;break;case"currency":n=bh;break;case"thumbnail":n=_h;break;default:switch(r){case"date":n=Vl;break;case"boolean":n=El;break;case"url":n=Bl;break}break}e.component=n},props:{column:{type:Object,required:!0},row:{type:Object,required:!0}},computed:{nowrap(){return this.column.wrap===!1},multiValue(){return Array.isArray(this.value)},complex(){this.multiValue},renderer(){return this.column.renderer},renderValue(){var e=this.value;if(e!=null)return e.title||e.name||e},value(){var e=jr(this.row,this.column.key);return e}}},iy={class:"value"},ly={class:"value"};function ay(e,n,r,i,l,o){const a=t.resolveComponent("value-renderer");return l.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.component),{key:0,column:r.column,row:r.row,value:o.value},null,8,["column","row","value"])):(t.openBlock(),t.createElementBlock("td",{key:1,class:t.normalizeClass(["table-cell",{nowrap:o.nowrap}])},[o.multiValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.complex?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.value,(s,c)=>(t.openBlock(),t.createElementBlock("span",iy,[t.createVNode(a,{type:r.column.type,multi:"",last:c===o.value.length-1,value:s},null,8,["type","last","value"])]))),256)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.value,(s,c)=>(t.openBlock(),t.createElementBlock("span",ly,[t.createVNode(a,{type:r.column.type,multi:"",last:c===o.value.length-1,value:s},null,8,["type","last","value"])]))),256))],64)):(t.openBlock(),t.createBlock(a,{key:1,type:r.column.type,value:o.value},null,8,["type","value"]))],2))}const Sl=g(oy,[["render",ay],["__scopeId","data-v-2b9d12bd"]]),wT="",sy={components:{TableCell:Sl},props:{selected:{type:Boolean},index:{type:Number},row:{type:Object,required:!0},columns:{type:Array,required:!0},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}}},methods:{clickCell(e){this.$emit("click:cell",{row:this.row,column:e}),this.$emit("click:row",this.row)},clickActions(e){this.$emit("click:actions",e)},clickSelect(e){const n=this.index;this.$emit("click:select",e,n)}},computed:{classes(){var n,r;var e=[];return this.selected&&e.push("selected"),((r=(n=this.row)==null?void 0:n.meta)==null?void 0:r.status)==="inactive"&&e.push("inactive"),e}}};function cy(e,n,r,i,l,o){const a=t.resolveComponent("ux-checkbox"),s=t.resolveComponent("table-cell"),c=t.resolveComponent("ux-icon"),d=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("tr",{class:t.normalizeClass([o.classes,"table-row"])},[t.renderSlot(e.$slots,"default",{},()=>[r.enableSelection?(t.openBlock(),t.createElementBlock("th",{key:0,class:"table-cell table-select first shrink",onClick:n[0]||(n[0]=t.withModifiers(u=>o.clickSelect(r.row),["stop","prevent"]))},[t.createVNode(a,{value:r.selected},null,8,["value"])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.columns,(u,m)=>(t.openBlock(),t.createBlock(s,{key:`${u.path||u.key}-${m}`,onClick:t.withModifiers(f=>o.clickCell(u),["stop","prevent"]),column:u,row:r.row},null,8,["onClick","column","row"]))),128)),r.enableActions?(t.openBlock(),t.createElementBlock("th",{key:1,class:"table-cell last shrink",onClick:n[1]||(n[1]=t.withModifiers(u=>o.clickActions(r.row),["stop","prevent"]))},[t.createVNode(d,{size:"xs",icon:""},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-ellipsis"})]),_:1})])):t.createCommentVNode("",!0)],!0)],2)}const dy=g(sy,[["render",cy],["__scopeId","data-v-3a549ee3"]]),Tl={data(){return{scrollTop:0}},methods:{updateScroll(e){var n=this.$refs.scroll;n=n.$el||n,this.scrollTop=n.scrollTop}},mounted(){var e=this.$refs.scroll;e=e.$el||e,e.addEventListener("scroll",this.updateScroll)},beforeUnmount(){var e=this.$refs.scroll;e=e.$el||e,e.removeEventListener("scroll",this.updateScroll)},activated(){var e=this.$refs.scroll;e=e.$el||e,e.scrollTop=this.scrollTop}},VT="",uy={mixins:[Tl],components:{TableRow:dy,TableCell:Sl},watch:{rows(){this.$refs.scroll.scroll({top:0,left:0})},sort(e){this.sorting=e},sorting(e){this.$emit("update:sort",e)}},props:{total:{type:Number},columns:{type:Array,default(){return[]}},rows:{type:Array,default(){return[]}},scrollable:{type:Boolean,default(){return!0}},enableActions:{type:Boolean,default(){return!1}},enableSelection:{type:Boolean,default(){return!0}},sort:{type:Object,default(){return{key:"meta.created",type:"date",direction:"desc"}}},selection:{type:Array,default(){return[]}},selectAll:{type:Function},deselectAll:{type:Function}},data(){return{sorting:this.sort,lastSelectedIndex:null,shift:!1,keyListenersAdded:!1}},mounted(){this.addKeyListeners()},activated(){this.addKeyListeners()},beforeUnmount(){this.removeKeyListeners()},deactivated(){this.removeKeyListeners()},computed:{currentSortDirection(){var e;return((e=this.sorting)==null?void 0:e.direction)||"asc"},selectionHash(){var e=this;return e.selection.reduce(function(n,r){var i=r._id||r.id;return n[i]=r,n},{})},pageSelected(){var e=this;if(!(!e.rows||!e.rows.length))return!e.rows.some(function(n){return!e.selectionHash[n._id||n.id]})},renderColumns(){return this.columns.map(function(e){var n=Object.assign({},e);return n.class=[],n.shrink&&n.class.push("shrink"),n})},renderRows(){return this.rows},someSelectedOnPage(){return this.rows.some(this.isSelected)}},methods:{keyDown(e){e.keyCode==16&&(this.shift=!0)},keyUp(e){e.keyCode==16&&(this.shift=!1)},addKeyListeners(){this.keyListenersAdded||(window.addEventListener("keydown",this.keyDown,!0),window.addEventListener("keyup",this.keyUp,!0),this.keyListenersAdded=!0)},removeKeyListeners(){this.keyListenersAdded&&(window.removeEventListener("keydown",this.keyDown,!0),window.removeEventListener("keyup",this.keyUp,!0),this.keyListenersAdded=!1)},togglePage(){var e=this;e.pageSelected?e.deselectPage():e.selectPage()},selectPage(){var e=this;e.$emit("select:multiple",e.rows)},deselectPage(){var e=this;e.$emit("deselect:multiple",e.rows)},isSelected(e){var n=this,r=e._id||e.id;return n.selection.some(function(i){var l=i._id||i.id;return i==e||l==r})},classes(e){let n=[];return this.isSelected(e)&&n.push("selected"),n},selectRange(e,n){const r=this,i=Math.min(e,n),l=Math.max(e,n)+1;var o=r.renderRows.slice(i,l);r.$emit("select:multiple",o)},toggleSort(e){var o,a;const n=(o=this.sorting)==null?void 0:o.key,r=((a=this.sorting)==null?void 0:a.direction)||"asc";let{key:i,direction:l}=e;i===n&&(l=r==="dsc"?"asc":"dsc"),this.sorting={key:i,direction:l,type:e.type},this.$emit("")},clickRow(e){this.$emit("click:row",e)},clickCell({row:e,column:n}){this.$emit("click:cell",{row:e,column:n})},clickActions(e){this.$emit("click:actions",e)},clickSelect(e,n){const r=this.lastSelectedIndex;if(this.shift&&r!=n)return this.selectRange(r,n);this.lastSelectedIndex=n,this.$emit("select:row:toggle",e)}}},my={class:"table-wrapper"},fy={class:"table-scroll",ref:"scroll"},py={key:0,class:"first table-select shrink"},hy=["onClick"],yy={key:1,class:"last shrink"};function gy(e,n,r,i,l,o){const a=t.resolveComponent("ux-checkbox"),s=t.resolveComponent("ux-list-item"),c=t.resolveComponent("ux-list"),d=t.resolveComponent("ux-menu"),u=t.resolveComponent("flex-cell"),m=t.resolveComponent("flex-row"),f=t.resolveComponent("table-row");return t.openBlock(),t.createElementBlock("div",my,[t.createElementVNode("div",fy,[t.createElementVNode("table",null,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[r.enableSelection?(t.openBlock(),t.createElementBlock("th",py,[t.createVNode(d,null,{activator:t.withCtx(({on:p})=>[t.createVNode(a,t.mergeProps(t.toHandlers(p),{value:o.pageSelected}),null,16,["value"])]),default:t.withCtx(()=>[t.createVNode(c,null,{default:t.withCtx(()=>[t.createVNode(s,{onClick:n[0]||(n[0]=p=>o.selectPage())},{default:t.withCtx(()=>[t.createTextVNode(" Select Page ")]),_:1}),o.someSelectedOnPage?(t.openBlock(),t.createBlock(s,{key:0,onClick:n[1]||(n[1]=p=>o.deselectPage())},{default:t.withCtx(()=>[t.createTextVNode(" Deselect Page ")]),_:1})):t.createCommentVNode("",!0),r.selectAll?(t.openBlock(),t.createBlock(s,{key:1,onClick:n[2]||(n[2]=p=>r.selectAll())},{default:t.withCtx(()=>[t.createTextVNode(" Select All ("+t.toDisplayString(r.total)+") ",1)]),_:1})):t.createCommentVNode("",!0),r.deselectAll?(t.openBlock(),t.createBlock(s,{key:2,onClick:n[3]||(n[3]=p=>r.deselectAll())},{default:t.withCtx(()=>[t.createTextVNode(" Deselect All ")]),_:1})):t.createCommentVNode("",!0)]),_:1})]),_:1})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.renderColumns,p=>{var h;return t.openBlock(),t.createElementBlock("th",{onClick:y=>o.toggleSort(p),class:t.normalizeClass([{sortable:p.sortable!==!1,active:p.key===((h=l.sorting)==null?void 0:h.key)},p.class])},[t.createVNode(m,{gap:"",vcenter:""},{default:t.withCtx(()=>{var y;return[t.createVNode(u,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p.title),1)]),_:2},1024),p.key===((y=l.sorting)==null?void 0:y.key)?(t.openBlock(),t.createBlock(u,{key:0,class:"caret",shrink:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.currentSortDirection==="asc"?"▲":"▼"),1)]),_:1})):t.createCommentVNode("",!0)]}),_:2},1024)],10,hy)}),256)),r.enableActions?(t.openBlock(),t.createElementBlock("th",yy,[t.renderSlot(e.$slots,"corner",{},void 0,!0)])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.renderRows,(p,h)=>(t.openBlock(),t.createBlock(f,{enableSelection:r.enableSelection,enableActions:r.enableActions,key:p._id,"onClick:cell":o.clickCell,"onClick:row":o.clickRow,"onClick:select":o.clickSelect,"onClick:actions":o.clickActions,selected:o.isSelected(p),row:p,index:h,columns:r.columns},null,8,["enableSelection","enableActions","onClick:cell","onClick:row","onClick:select","onClick:actions","selected","row","index","columns"]))),128))])])],512)])}const Dl=g(uy,[["render",gy],["__scopeId","data-v-91800cfb"]]);var Tt={},_y={get exports(){return Tt},set exports(e){Tt=e}},ky=Object.prototype.hasOwnProperty;function Ol(e){return"[Throws: "+(e?e.message:"?")+"]"}function xy(e,n){if(ky.call(e,n))try{return e[n]}catch(r){return Ol(r)}return e[n]}function Al(e){var n=[];function r(i){if(i===null||typeof i!="object")return i;if(n.indexOf(i)!==-1)return"[Circular]";if(n.push(i),typeof i.toJSON=="function")try{var l=r(i.toJSON());return n.pop(),l}catch(s){return Ol(s)}if(Array.isArray(i)){var o=i.map(r);return n.pop(),o}var a=Object.keys(i).reduce(function(s,c){return s[c]=r(xy(i,c)),s},{});return n.pop(),a}return r(e)}_y.exports=function(e,n,r){return JSON.stringify(Al(e),n,r)},Tt.ensureProperties=Al;function by(e,n){return e==null||n=="date"&&e.toString&&e.toString()==="Invalid Date"}function Ml(e){return e!=null}const z={props:{field:{type:Object,default(){return{}}},parentModel:{type:Object}},data(){return{dynamicOptions:[],asyncOptionsAreLoading:this.field.asyncOptions,value:this.modelValue}},watch:{modelValue(e,n){this.model=e}},mounted(){this.checkAutofocus()},async created(){const e=this;e.hasAsyncOptions&&await e.reloadAsyncOptions()},inject:["form","fieldPath"],computed:{hasAsyncOptions(){return this.field.asyncOptions},loadingAsyncOptions(){return this.hasAsyncOptions&&this.asyncOptionsAreLoading},optionLookup(){var e=this;return e.options.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{})},selectableOptions(){return this.options},required(){return this.minimum},model:{get(){var e=this.cleanOutput(this.value);return e},set(e){let n;(this.isGroup||this.widget==="form")&&(e===this.value?n=!1:n=!0);const r=this.cleanInput(e),i=this.cleanInput(this.value);(Tt(r)!=Tt(i)||n)&&(this.value=r,this.checkAutofocus(),this.dispatch())}},options(){var e=this;return e.hasAsyncOptions?e.dynamicOptions:(e.field.options||[]).reduce(function(n,r){if(!r)return n;const i=e.getValue(r);var o={title:r.title||r.name||r.label||i,value:i,none:r.none,source:r};return e.field.type=="reference"&&(o._id=i),n.push(o),n},[])},prefix(){return this.field.suffix},suffix(){return this.field.suffix},type(){return this.field.type||"string"},key(){return this.field.key},isGroup(){return this.type==="group"},asObject(){return this.isGroup&&!!this.field.asObject},layoutGroup(){return this.isGroup&&!this.field.asObject},canAddValue(){if(!this.singleValue&&!(this.options.length&&this.selectableOptions.length===0))return this.maximum===0||this.numValues<this.maximum},canRemoveValue(){return this.numValues>this.minimum},widget(){return this.field.widget},singleValue(){if(this.asObject){var e=this.minimum===1&&this.maximum===1;return e}else return this.maximum===1},multiValue(){return!this.singleValue},label(){return this.field.title},title(){return this.label},plural(){return this.field.plural},description(){return this.field.description},placeholder(){return this.field.placeholder||this.field.hint},addLabel(){return this.numValues?`Add another ${this.label}`:`Add ${this.label}`},removeLabel(){return"Remove"},numValues(){return this.singleValue?1:(this.value||[]).length||0},showLabel(){return this.field.title},showDescription(){return this.description},fields(){var e=this.field.fields;if(e&&e.length)return e},minimum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.minimum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),e=this.maximum?Math.min(e,this.maximum):e,parseInt(e)},maximum(){if(this.layoutGroup)return 1;var e=parseInt(this.field.maximum||0);return isNaN(e)&&(e=0),e=Math.max(e,0),parseInt(e)},ask(){var e=parseInt(this.field.ask);return e=Math.max(e,this.minimum),this.maximum&&(e=Math.min(e,this.maximum)),e}},methods:{async reloadAsyncOptions(){const e=this;if(!e.hasAsyncOptions){e.asyncOptionsAreLoading=!1;return}e.asyncOptionsAreLoading=!0;const{data:n}=await e.$sdk.api.get(e.field.asyncOptions);e.dynamicOptions=n,e.asyncOptionsAreLoading=!1},cleanTextInput(e,n,r){switch(n){case"url":e=r.$sdk.utils.parseURL(e);break;case"key":e=String(r.$sdk.utils.machineName(e||"")||"").trim();break;case"integer":e=parseInt(String(e).replace(/[^0-9-]/g,"")),isNaN(e)&&(e=void 0);break;case"number":case"decimal":case"float":e=Number(String(e).replace(/[^0-9.-]/g,"")),isNaN(e)&&(e=void 0);break}return e},checkAutofocus(){if(this.field.autofocus){if(this.value)return;this.$nextTick(function(){this.refocus()})}},getValue(e){if(!e)return this.cleanTextInput(e);var n=this.cleanTextInput(e._id||e.value),r=Ml(n);return!r&&e.title&&!this.returnObject&&(n=e.title),n=this.cleanTextInput(n),Ml(n)?n:e},getLabel(e){if(e){var n=e.title||e.name||e.label;return typeof n=="object"?"(no title)":n}},touch(){this.$emit("touched")},getNewDefaultEntry(){},add(){if(this.canAddValue){var e=this.cleanInputValue(this.getNewDefaultEntry());(!this.value||!Array.isArray(this.value))&&(this.value=[]),this.value.push(e),this.dispatch(),this.$nextTick(function(){this.refocus()}),this.touch()}},remove(e){var n=this.model.indexOf(e);this.value.splice(n,1),this.dispatch(),this.touch()},dispatch(){this.$emit("update:modelValue",this.value)},cleanInputValue(e){return e},cleanOutputValue(e){return e},cleanOutput(e){var n=this;return by(e,n.field.type)?n.multiValue?e=[]:e=void 0:n.multiValue?(Array.isArray(e)||(e=[]),e.forEach(function(r,i){e[i]=n.cleanOutputValue(r)})):e=n.cleanOutputValue(e),e},cleanInput(e){var n=this;if(n.multiValue){for(e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum);e.length<n.minimum;)e.push(n.cleanInputValue(n.getNewDefaultEntry()));e=e.map(function(r){var i=n.cleanInputValue(r);return i})}else e&&(e=n.cleanInputValue(e));return e},refocus(){var e=this.$refs.input;if(e){var n;Array.isArray(e)?n=e[e.length-1]:n=e,n&&n.focus()}}}},ET="";function Cy(e){return e===void 0||typeof e>"u"||e===null||String(e)==="null"||String(e)==="undefined"}const wy={data(){return{candidate:null}},props:{title:{type:String},modelValue:{}},mixins:[z],created(){this.model=this.model},methods:{displayLabelFromValue(e){if(!e)return;const n=e.value||e,r=this.optionLookup[n]||{};return r.title||r.name||e.title||e.value||e},addValue(e){this.canAddValue&&this.model.indexOf(e)===-1&&(this.model=[...this.model,e])},removeValue(e){var n=this.model.slice();e!=-1&&(n.splice(e,1),this.model=n)},cleanOutput(e){var n=this;return Cy(e)?n.multiValue?e=[]:e=void 0:n.multiValue?e=(e||[]).filter(function(r){return r!=null}).map(function(r){return n.getValue(r)}):e=n.getValue(e),e},cleanInput(e){var n=this;if(n.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum),e=e.filter(function(i){return i!=null}).map(function(i){var l=n.getValue(i);return n.returnObject?n.optionLookup[l]:l});else{var r=n.getValue(e);switch(e=n.returnObject?n.optionLookup[r]:r,e){case"":switch(n.type){case"decimal":case"float":case"number":case"integer":e=void 0;break}break}}return e}},watch:{candidate(e){e&&(this.addValue(e),this.candidate=null)}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},summary(){if(this.multiValue)return"Select an option";const e=this.selectableOptions.find(function(r){return r.none}),n=(e==null?void 0:e.title)||(e==null?void 0:e.label);return this.model?this.getLabel(this.optionLookup[this.model]):n||this.title||"Click to select"},grouped(){const e=this,{values:n}=e.selectableOptions.reduce(function(r,i){const l=i.group||"";let o=r.hash[l];return o||(o=r.hash[l]={title:l,options:[]},r.values.push(o)),o.options.push(i),r},{hash:{},values:[]});if(!(n.length<=1))return n},modelLookup(){var e=this;return e.multiValue?e.model.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{}):{}},selectableOptions(){var r;const e=this;let n=e.options;return e.multiValue&&(n=n.filter(function(i){return!e.modelLookup[e.getValue(i)]})),(r=e.field)!=null&&r.sorted?n.sort(function(i,l){var o=(i.title||i).toLowerCase(),a=(l.title||l).toLowerCase();return o<a?-1:o>a?1:0}):n},showNoneOption(){return!(!(this.singleValue&&!this.minimum)||this.selectableOptions.find(function(r){return r.none}))}}},Vy=e=>(t.pushScopeId("data-v-74bb87d8"),e=e(),t.popScopeId(),e),Ey={key:0,class:"ux-field-title"},By={key:0,class:"ux-required-marker"},Ny={key:1,class:"ux-field-description"},Sy={key:2,class:"select-tags"},Ty=["onClick"],Dy={key:3},Oy={key:4,class:"select-input-wrapper"},Ay={class:"ui-select-button"},My=Vy(()=>t.createElementVNode("option",{value:""},"Select an option",-1)),Fy=["label"],Iy=["value"],$y=["value"],Ly={class:"ui-select-button"},Py=["multiple"],Uy={key:0,value:""},jy=["label"],Ry=["value"],zy=["value"];function Hy(e,n,r,i,l,o){const a=t.resolveComponent("flex-cell"),s=t.resolveComponent("ux-icon"),c=t.resolveComponent("flex-row"),d=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["native-select",o.classes])},[e.showLabel?(t.openBlock(),t.createElementBlock("label",Ey,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",By,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",Ny,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.multiValue?(t.openBlock(),t.createElementBlock("div",Sy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model,(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"select-tag",key:u.value||u},[t.createVNode(c,{gap:"",center:""},{default:t.withCtx(()=>[t.createVNode(a,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.displayLabelFromValue(u)),1)]),_:2},1024),t.createVNode(a,{shrink:""},{default:t.withCtx(()=>[t.createElementVNode("a",{onClick:f=>o.removeValue(m)},[t.createVNode(s,{icon:"fa-times"})],8,Ty)]),_:2},1024)]),_:2},1024)]))),128))])):t.createCommentVNode("",!0),e.loadingAsyncOptions?(t.openBlock(),t.createElementBlock("div",Dy,[t.createVNode(s,{icon:"fa-spinner",spin:"",left:""}),t.createTextVNode(" Loading Options ")])):(t.openBlock(),t.createElementBlock("div",Oy,[e.multiValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.canAddValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Ay,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(d,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)]),t.withDirectives(t.createElementVNode("select",{onFocus:n[0]||(n[0]=(...u)=>e.touch&&e.touch(...u)),"onUpdate:modelValue":n[1]||(n[1]=u=>l.candidate=u)},[My,o.grouped?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.grouped,u=>(t.openBlock(),t.createElementBlock("optgroup",{label:u.title,key:u.title},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Iy))),256))],8,Fy))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.selectableOptions,u=>(t.openBlock(),t.createElementBlock("option",{value:u.value},t.toDisplayString(u.title),9,$y))),256))],544),[[t.vModelSelect,l.candidate]])],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ly,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(d,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)]),t.withDirectives(t.createElementVNode("select",{onFocus:n[2]||(n[2]=(...u)=>e.touch&&e.touch(...u)),multiple:e.multiValue,"onUpdate:modelValue":n[3]||(n[3]=u=>e.model=u)},[o.showNoneOption?(t.openBlock(),t.createElementBlock("option",Uy,"None")):t.createCommentVNode("",!0),o.grouped?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.grouped,u=>(t.openBlock(),t.createElementBlock("optgroup",{label:u.title,key:u.title},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Ry))),256))],8,jy))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(o.selectableOptions,u=>(t.openBlock(),t.createElementBlock("option",{value:u.value},t.toDisplayString(u.title),9,zy))),256))],40,Py),[[t.vModelSelect,e.model]])],64))]))],2)}const ve=g(wy,[["render",Hy],["__scopeId","data-v-74bb87d8"]]),BT="",qy={props:{total:{type:Number,default(){return 0}},page:{type:Object,default(){return{size:50,index:1}}}},components:{NativeSelect:ve},watch:{totalPages(){this.currentPage=0}},computed:{perPage:{get(){return this.pageModel.size},set(e){e=Math.max(e,1),this.pageModel.size=e,this.dispatch()}},pageField(){return{type:"integer",maximum:1,minimum:1,options:Array(this.totalPages).fill(1).map((e,n)=>e+n)}},totalPages(){return Math.ceil(this.total/this.perPage)},startIndex(){return(this.currentPage-1)*this.pageModel.size},displayStartIndex(){return this.total?this.startIndex+1:0},endIndex(){return Math.min(this.startIndex+this.pageModel.size,this.total)},currentPage:{get(){return this.pageModel.index},set(e){this.totalPages&&(e=Math.min(this.totalPages,e)),e=Math.max(e,1),this.pageModel.index=e,this.dispatch()}}},methods:{dispatch(){return this.$emit("update:page",this.pageModel)},previousPage(){this.currentPage--},nextPage(){this.currentPage++}},data(){return{pageModel:this.page,perPageField:{minimum:1,maximum:1,options:[{title:"50 per page",value:50},{title:"100 per page",value:100},{title:"250 per page",value:250},{title:"500 per page",value:500}]}}}};function Gy(e,n,r,i,l,o){const a=t.resolveComponent("native-select"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("ux-icon"),d=t.resolveComponent("ux-button"),u=t.resolveComponent("flex-row");return t.openBlock(),t.createBlock(u,{center:"",gap:""},{default:t.withCtx(()=>[t.createVNode(s,{shrink:"",class:"text"},{default:t.withCtx(()=>[t.createVNode(a,{modelValue:o.perPage,"onUpdate:modelValue":n[0]||(n[0]=m=>o.perPage=m),field:l.perPageField},{default:t.withCtx(()=>[e.$device.breakpoint.xs?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.displayStartIndex)+"-"+t.toDisplayString(o.endIndex)+" of "+t.toDisplayString(r.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Showing "+t.toDisplayString(o.displayStartIndex)+" to "+t.toDisplayString(o.endIndex)+" of "+t.toDisplayString(r.total)+" total",1)],64))]),_:1},8,["modelValue","field"])]),_:1}),t.createVNode(s),o.totalPages>1?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createVNode(u,{gap:"",center:""},{default:t.withCtx(()=>[t.createVNode(s,{shrink:"",class:"text"},{default:t.withCtx(()=>[t.createVNode(a,{modelValue:o.currentPage,"onUpdate:modelValue":n[1]||(n[1]=m=>o.currentPage=m),field:o.pageField},{default:t.withCtx(()=>[e.$device.breakpoint.xs?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.currentPage)+"/"+t.toDisplayString(o.totalPages),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Page "+t.toDisplayString(o.currentPage)+" of "+t.toDisplayString(o.totalPages),1)],64))]),_:1},8,["modelValue","field"])]),_:1}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.createVNode(d,{icon:"",onClick:n[2]||(n[2]=m=>o.previousPage())},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-arrow-left"})]),_:1})]),_:1}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.createVNode(d,{icon:"",onClick:n[3]||(n[3]=m=>o.nextPage())},{default:t.withCtx(()=>[t.createVNode(c,{icon:"fa-arrow-right"})]),_:1})]),_:1})]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1})}const Wy=g(qy,[["render",Gy],["__scopeId","data-v-f4838c15"]]),NT="",Ky={props:{icon:{type:[Object,String],default(){return"fa-exclamation"}},type:{type:String,default:"info"}},computed:{classes(){var e=[];return e.push(`ux-info-${this.type}`),e}}},Yy={class:"icon-circle"};function Zy(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-info-box",o.classes])},[t.createVNode(c,{style:{gap:"1em"},center:""},{default:t.withCtx(()=>[r.icon?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createElementVNode("div",Yy,[t.createVNode(a,{icon:r.icon},null,8,["icon"])])]),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})],2)}const Fl=g(Ky,[["render",Zy],["__scopeId","data-v-9669e7c0"]]),ST="",Jy={props:{id:{type:[Object,String]}},computed:{stringID(){return this.$sdk.utils.id(this.id)},url(){}}},Xy={class:"avatar"};function Qy(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Xy)}const Il=g(Jy,[["render",Qy]]),TT="",vy={props:{large:{type:Boolean}}},eg=[(e=>(t.pushScopeId("data-v-d68fe1cf"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"fa fa-spin fa-spinner"},null,-1))];function tg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-spinner",{large:r.large}])},eg,2)}const Rr=g(vy,[["render",tg],["__scopeId","data-v-d68fe1cf"]]),AT="",ng={components:{Spinner:Rr},props:{to:{type:[Object,String]},icon:{type:Boolean},color:{type:String,default:"default"},bgColor:{type:String},fgColor:{type:String},tag:{type:String},href:{type:String},target:{type:String},loading:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean},block:{type:Boolean},size:{type:String,default:"md"}},computed:{style(){var e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.fgColor&&(e.color=this.fgColor),e},classes(){var e=[];return e.push(`ux-btn-${this.size}`),this.block&&e.push("ux-btn-block"),this.loading&&e.push("ux-btn-loading"),this.active&&e.push("ux-btn-active"),this.icon&&e.push("ux-btn-icon"),e.push(`ux-btn-color-${this.color}`),this.disabled&&e.push("ux-btn-disabled"),e},element(){switch(this.tag){case"span":return this.tag;case"submit":return"button";default:return this.to||this.href?"ux-link":this.tag||"button"}}}},rg={class:"ux-btn-text"};function og(e,n,r,i,l,o){const a=t.resolveComponent("spinner");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{active:r.active,loading:r.loading,to:r.to,href:r.href,target:r.target,style:t.normalizeStyle(o.style),class:t.normalizeClass([o.classes,"ux-btn"]),disabled:r.disabled},{default:t.withCtx(()=>[r.loading?(t.openBlock(),t.createBlock(a,{key:0})):t.createCommentVNode("",!0),t.createElementVNode("span",rg,[t.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["active","loading","to","href","target","style","class","disabled"])}const $l=g(ng,[["render",og],["__scopeId","data-v-66b9c2a8"]]),MT="",ig={props:{value:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-checkbox-true"):e.push("ux-checkbox-false"),e}}};function lg(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["ux-checkbox",o.classes])},[t.createVNode(a,{class:"icon",icon:"fa-check"})],2)}const zr=g(ig,[["render",lg],["__scopeId","data-v-46a835a5"]]),FT="",ag={props:{value:{type:Boolean,default(){return!1}},loading:{type:Boolean,default(){return!1}}},computed:{classes(){var e=[];return this.value?e.push("ux-switch-true"):e.push("ux-switch-false"),this.loading&&e.push("ux-switch-loading"),e}}};function sg(e,n,r,i,l,o){const a=t.resolveComponent("ux-icon");return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["ux-switch",o.classes])},[t.createElementVNode("span",null,[t.createVNode(a,{spin:"",icon:"fa-spinner"})])],2)}const Ll=g(ag,[["render",sg],["__scopeId","data-v-9663da46"]]),IT="",cg={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean},active:{type:Boolean}},methods:{clicked(e){var n=this;if(n.to&&(n.buildMode||n.nuxtMode))return e.preventDefault(),e.stopImmediatePropagation(),n.$sdk.app.to(n.to);if(n.href&&(n.buildMode||n.nuxtMode)){e.preventDefault(),e.stopImmediatePropagation();return}}},computed:{actualHref(){if(this.href)return this.href;if(this.nuxtMode)return this.$sdk.app.createHref(this.to)},nuxtMode(){return this.to&&this.$sdk.nuxt&&this.$sdk.app&&this.$sdk.app.createHref},buildMode(){return!!this.$sdk&&this.$sdk.app&&this.$sdk.app.builder},class(){var e=[];return this.disabled&&e.push("disabled"),this.active&&e.push("active"),(this.href||this.to)&&e.push("haslink"),e},element(){return this.nuxtMode||this.buildMode?"a":this.to?"router-link":"a"}}};function dg(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{onClick:o.clicked,to:r.to,href:o.actualHref,target:r.target,class:t.normalizeClass([o.class,"ux-link"])},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick","to","href","target","class"])}const Pl=g(cg,[["render",dg],["__scopeId","data-v-c91c7a6c"]]),$T="",ug={props:{icon:{type:[Object,String]},spin:{type:Boolean},left:{type:Boolean},right:{type:Boolean}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},element(){return"i"}}};function mg(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{class:t.normalizeClass(["ux-icon fa",o.classes])},null,8,["class"])}const Ul=g(ug,[["render",mg],["__scopeId","data-v-dd53ba4e"]]),Un={cache:{}},LT="",fg={props:{group:{type:String},right:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},stop:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default(){return!0}},modelValue:{type:Boolean,default(){return!1}}},data(){return{outerStyle:{},innerStyle:{},isExpanded:this.modelValue,triggerEvent:null,refMenu:null,mounted:!1}},watch:{modelValue(e){this.expanded=e}},mounted(){this.refMenu=this.$refs.menu,this.mounted=!0},beforeUnmount(){this.removeListeners(),this.refMenu=null,this.mounted=!1,Un.cache[this.group]===this&&(Un.cache[this.group]=null)},methods:{removeListeners(){document.removeEventListener("click",this.globalClick),this.refMenu&&this.refMenu.removeEventListener("click",this.immediateClick)},addEventListeners(){document.addEventListener("click",this.globalClick),this.refMenu&&this.refMenu.addEventListener("click",this.immediateClick)},immediateClick(e){this.expanded&&this.closeOnClick&&(e.stopImmediatePropagation(),this.expanded=!1)},globalClick(e){if(this.triggerEvent!==e){var n=this.$refs.menu,r=e.srcElement;n&&n.contains(r)?this.closeOnClick&&(this.expanded=!1):this.expanded=!1}},position(){const e=this.$el.getBoundingClientRect();this.outerStyle.left=`${e.left+window.scrollX}px`,this.outerStyle.top=`${e.bottom+window.scrollY}px`,this.right&&(this.innerStyle.right=`-${e.width}px`),this.bottom&&(this.innerStyle.bottom=`${e.height}px`);var n=this.getMaxZIndex();this.outerStyle.zIndex=n},getMaxZIndex(){return Math.max(...Array.from(document.querySelectorAll("body *"),e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!Number.isNaN(e)),0)},close(){this.expanded=!1}},computed:{expanded:{get(){return this.isExpanded},set(e){var n;this.group&&(n=Un.cache[this.group]),this.isExpanded!=e&&(this.isExpanded=e,e?(this.position(),this.addEventListeners(),Un.cache[this.group]=this,n&&n!=this&&(n.expanded=!1)):this.removeListeners(),this.$emit("update:modelValue",e))}},on(){var e=this;return{click(n){e.stop&&n.stopImmediatePropagation(),e.triggerEvent=n,e.expanded=!e.expanded}}}}};function pg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-menu",{right:r.right}])},[t.createElementVNode("span",null,[t.renderSlot(e.$slots,"activator",{on:o.on},void 0,!0)]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[l.isExpanded?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ux-menu-outer",style:t.normalizeStyle(l.outerStyle)},[t.createElementVNode("div",{class:"ux-menu-panel",ref:"menu",style:t.normalizeStyle(l.innerStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)],4)):t.createCommentVNode("",!0)]))],2)}const jl=g(fg,[["render",pg],["__scopeId","data-v-db935124"]]),hg={name:"menulist",props:{items:{type:Array,default(){return[]}},expandOn:{type:String,default:"none"}},mounted(){this.mounted=!0},beforeUnmount(){this.mounted=!1,this.removeListeners()},computed:{filteredItems(){return this.tree.filter(function(e){return!e.disabled})},expandedItem:{get(){return this.currentExpandedItem},set(e){this.currentExpandedItem&&(this.currentExpandedItem.expanded=!1,this.currentExpandedItem.collapsed=!0),this.currentExpandedItem=e,this.currentExpandedItem?(this.currentExpandedItem.expanded=!0,this.currentExpandedItem.collapsed=!1,this.addListeners()):this.removeListeners()}}},data(){return{currentExpandedItem:null,tree:JSON.parse(JSON.stringify(this.items))}},methods:{globalClick(e){this.expandedItem=null},addListeners(){var n;this.$sdk.addEventListener("route:change",this.globalClick);const e=(n=this.$el)==null?void 0:n.ownerDocument;e&&e.body.addEventListener("click",this.globalClick)},removeListeners(){var n;this.$sdk.removeEventListener("route:change",this.globalClick);const e=(n=this.$el)==null?void 0:n.ownerDocument;e&&e.body.removeEventListener("click",this.globalClick)},toggle(e){this.currentExpandedItem===e?this.expandedItem=null:this.expandedItem=e}},watch:{items:{handler(e){this.tree=JSON.parse(JSON.stringify(e))},deep:!0}}};function yg(e,n,r,i,l,o){const a=t.resolveComponent("ux-link"),s=t.resolveComponent("menulist",!0);return t.openBlock(),t.createElementBlock("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.filteredItems,c=>{var d;return t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass({expanded:c.expanded,collapsed:c.collapsed})},[r.expandOn==="click"&&((d=c.items)!=null&&d.length)?(t.openBlock(),t.createBlock(a,{key:0,onClick:t.withModifiers(u=>o.toggle(c),["stop","prevent"]),class:t.normalizeClass(c.class)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["onClick","class"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.type==="url"?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(c.class),target:c.target,href:c.href||c.url},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["class","target","href"])):c.type==="route"?(t.openBlock(),t.createBlock(a,{key:1,class:t.normalizeClass(c.class),to:{name:c.route}},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["class","to"])):t.createCommentVNode("",!0)],64)),c.items&&c.items.length?(t.openBlock(),t.createBlock(s,{key:2,items:c.items},null,8,["items"])):t.createCommentVNode("",!0)],2)}),256))])}const Rl=g(hg,[["render",yg]]),PT="",gg={props:{item:{type:[Object,String]},alt:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},inline:{type:Boolean},quality:{type:[Number,String]},contain:{type:Boolean,default:!0},preview:{type:Boolean,default:!1},crop:{type:Boolean},format:{type:String},upscale:{type:Boolean,default:!0},type:{type:String,default:"image"},svg:{type:Boolean}},data(){return{model:this.item,retries:0,cacheBuster:0}},watch:{item(e){this.model=e}},beforeMount(){this.$sdk.auth.ensureValidToken()},mounted(){const e=this.$refs.img;e&&e.addEventListener("error",this.imageLoadError)},beforeUnmount(){const e=this.$refs.img;e&&e.removeEventListener("error",this.imageLoadError)},methods:{imageLoadError:Et(function(e){this.retries<3&&(this.cacheBuster++,this.retries++)},100)},computed:{altText(){var e;return this.alt||((e=this.model)==null?void 0:e.title)},className(){var e=[];return this.portrait&&e.push("img-portrait"),e.join(" ")},isSvg(){var e;if(this.svg)return!0;switch((e=this.item)==null?void 0:e.fileMime){case"image/svg+xml":case"image/svg":return!0}},portrait(){return this.crop?this.dimensionHeight>this.dimensionWidth:this.modelHeight>this.modelWidth},imageWidth(){return parseInt(this.width)},imageHeight(){return parseInt(this.height)},modelWidth(){var e;return parseInt((e=this.model)==null?void 0:e.width)},modelHeight(){var e;return parseInt((e=this.model)==null?void 0:e.height)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),e.cb=this.cacheBuster,this.imageWidth&&(e.w=this.imageWidth?this.imageWidth:null),this.imageHeight&&(e.h=this.imageHeight?this.imageHeight:null),this.crop?e.c=!0:this.contain||(e.c=this.imageWidth&&this.imageHeight),this.quality&&(e.q=parseInt(this.quality)),this.upscale&&(e.u=!0),this.format&&(e.f=this.format),e},src(){const e="image";return this.$sdk.api.generateEndpointURL(`/${e}/${this.id}`,this.params,{file:!0})},previewSrc(){var e=Object.assign({},this.params);e.w=50,delete e.h;const n="image";return this.$sdk.api.generateEndpointURL(`/${n}/${this.id}`,e,{file:!0})},imageStyle(){var e={};return this.crop||(e["object-fit"]="contain"),this.inline?e.maxWidth="100%":(e.width="100%",e.height="100%",e.top="0",e.left="0",e.position="absolute"),e},dimensionWidth(){return this.imageWidth&&this.imageHeight?this.imageWidth:this.modelWidth},dimensionHeight(){return this.imageWidth&&this.imageHeight?this.imageHeight:this.modelHeight},style(){var r,i,l;var e={};this.inline?e.display="inline-block":this.dimensionHeight&&this.dimensionWidth&&(e.height=0,e.overflow="hidden",e.paddingBottom=`${this.dimensionHeight/this.dimensionWidth*100}%`,e.position="relative");var n=(l=(i=(r=this.model)==null?void 0:r.fileMeta)==null?void 0:i.colors)==null?void 0:l.colors;return n&&n.length&&(e.backgroundColor=n[0]),this.isSvg||this.preview&&(e.backgroundImage=`url(${this.previewSrc})`),e}}},_g=["alt","data"],kg=["alt","src"];function xg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-image",o.className]),style:t.normalizeStyle(o.style)},[r.svg?(t.openBlock(),t.createElementBlock("object",{key:0,alt:o.altText,type:"image/svg+xml",data:o.src},null,8,_g)):(t.openBlock(),t.createElementBlock("img",{key:1,ref:"img",alt:o.altText,style:t.normalizeStyle(o.imageStyle),src:o.src},null,12,kg))],6)}const zl=g(gg,[["render",xg],["__scopeId","data-v-258037a0"]]),UT="",bg={props:{item:{type:[Object,String]},width:{type:[Number,String]},height:{type:[Number,String]},controls:{type:Boolean,default:!0}},data(){return{model:this.item}},beforeMount(){this.$sdk.auth.ensureValidToken()},computed:{mediaType(){var e;return((e=this.model)==null?void 0:e.mediaIntegrationType)||"upload"},mimetype(){var e;return((e=this.model)==null?void 0:e.fileMime)||"video/mp4"},actualWidth(){return parseInt(this.width)||this.modelWidth||1920},actualHeight(){return parseInt(this.height)||this.modelHeight||1080},className(){var e=[];return this.portrait&&e.push("video-portrait"),e.push(`video-type-${this.mediaType}`),e.join(" ")},portrait(){return this.actualHeight>this.actualWidth},modelWidth(){var e;return parseInt(((e=this.model)==null?void 0:e.width)||0)},modelHeight(){var e;return parseInt(((e=this.model)==null?void 0:e.height)||0)},id(){return this.$sdk.utils.id(this.model)},params(){var e={};return e.access_token=this.$sdk.auth.getCurrentToken(),e},src(){return this.$sdk.api.generateEndpointURL(`/video/${this.id}`,this.params,{file:!0})},thumbnailSrc(){var e=Object.assign({},this.params);return e.w=this.actualWidth,e.h=this.actualHeight,delete e.h,this.$sdk.api.generateEndpointURL(`/image/${this.id}`,e,{file:!0})},style(){var e={};return e}}},Cg={class:"ux-video-embed-upload"},wg=["width","height","controls"],Vg=["src","type"];function Eg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ux-video",o.className]),style:t.normalizeStyle(o.style)},[t.createElementVNode("div",Cg,[t.createElementVNode("video",{width:o.actualWidth,height:o.actualHeight,controls:r.controls},[t.createElementVNode("source",{src:o.src,type:o.mimetype},null,8,Vg),t.createTextVNode(" Your browser does not support the video tag. ")],8,wg)])],6)}const Hl=g(bg,[["render",Eg],["__scopeId","data-v-e032a513"]]),jT="",Bg={props:{value:{type:Number}},computed:{classes(){var e=[];return e.push(this.icon),this.spin&&e.push("fa-spin"),this.left&&e.push("ux-icon-left"),this.right&&e.push("ux-icon-right"),e},percent(){return this.value},barStyle(){return{width:`${this.percent}%`}},element(){return"i"}}},Ng=e=>(t.pushScopeId("data-v-d56ad6e1"),e=e(),t.popScopeId(),e),Sg={class:"ux-progress"},Tg=Ng(()=>t.createElementVNode("div",{class:"ux-progress-bg"},null,-1));function Dg(e,n,r,i,l,o){return t.openBlock(),t.createElementBlock("div",Sg,[Tg,t.createElementVNode("div",{class:"ux-progress-fg",style:t.normalizeStyle(o.barStyle)},null,4)])}const ql=g(Bg,[["render",Dg],["__scopeId","data-v-d56ad6e1"]]),RT="",Og={},Ag={class:"ux-list"};function Mg(e,n){return t.openBlock(),t.createElementBlock("ul",Ag,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Gl=g(Og,[["render",Mg],["__scopeId","data-v-98a2be3e"]]),zT="",Fg={props:{to:{type:[Object,String]},href:{type:String},target:{type:String},disabled:{type:Boolean}},computed:{element(){return this.to||this.href?"ux-link":"div"}}};function Ig(e,n,r,i,l,o){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.element),{class:"ux-list-item",to:r.to,href:r.href,target:r.target,disabled:r.disabled},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["to","href","target","disabled"])}const Wl=g(Fg,[["render",Ig],["__scopeId","data-v-a5af4698"]]),HT="";function tn(e){var n=new Date(e);if(n instanceof Date&&!isNaN(n))return n}const $g={props:{modelValue:{type:Object}},data(){return{model:this.modelValue}},computed:{startDate:{get(){var e;return(e=tn(this.model.startDate))==null?void 0:e.toISOString().slice(0,10)},set(e){e=tn(e),e?this.model.startDate=e:this.model.startDate=void 0}},endDate:{get(){var e;return(e=tn(this.model.endDate))==null?void 0:e.toISOString().slice(0,10)},set(e){e=tn(e),tn(e)?this.model.endDate=e:this.model.endDate=void 0}}},watch:{model(e){this.$emit("updated:modelValue",e)},modelValue(e){this.model=e}}},Kl=e=>(t.pushScopeId("data-v-dc53841d"),e=e(),t.popScopeId(),e),Lg=Kl(()=>t.createElementVNode("label",null,"From Date",-1)),Pg=Kl(()=>t.createElementVNode("label",null,"To Date",-1));function Ug(e,n,r,i,l,o){const a=t.resolveComponent("flex-cell"),s=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(s,{wrap:"",gap:"",vcenter:""},{default:t.withCtx(()=>[t.createVNode(a,{class:"cell"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[Lg,t.withDirectives(t.createElementVNode("input",{type:"date",class:"ux-field-focus ux-text-input-multiple",ref:"input","onUpdate:modelValue":n[0]||(n[0]=c=>o.startDate=c)},null,512),[[t.vModelText,o.startDate]])])]),_:1}),t.createVNode(a,{class:"cell"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[Pg,t.withDirectives(t.createElementVNode("input",{type:"date",class:"ux-field-focus ux-text-input-multiple",ref:"input","onUpdate:modelValue":n[1]||(n[1]=c=>o.endDate=c)},null,512),[[t.vModelText,o.endDate]])])]),_:1})]),_:1})])}const Yl=g($g,[["render",Ug],["__scopeId","data-v-dc53841d"]]),qT="",jg={props:{modelValue:{type:[Object,Array]}},components:{NativeSelect:ve},mixins:[z],async created(){var e=await this.$sdk.system.countries(),n=e.reduce(function(r,i){if(!i.countryCallingCodes||!i.countryCallingCodes.length)return r;var l=`${i.name} (${i.countryCallingCodes.join(", ")})`,o=l;return r.values[o]||(r.values[o]=!0,r.lookup[i.alpha2]=i,r.value.push({title:`${l} - ${i.emoji}`,value:i.alpha2,emoji:i.emoji})),r},{value:[],values:{},lookup:{}});this.countryCodes=n.value,this.lookup=n.lookup},data(){return{countryCodes:[],lookup:{}}},computed:{actualPlaceholder(){return"+61 000 000 000"},countryCodeField(){return{minimum:0,maximum:1,type:"string",options:this.countryCodes}},defaultCountryCode(){var e=this.user?this.user.countryCode:"",n=this.user&&this.user.organisation?this.user.organisation.countryCode:"";return e||n}},methods:{getNewDefaultEntry(){return{label:"",countryCode:this.defaultCountryCode,number:""}}}},Rg=e=>(t.pushScopeId("data-v-d61960a4"),e=e(),t.popScopeId(),e),zg={key:0,class:"ux-field-title"},Hg={key:0,class:"ux-required-marker"},qg={key:1,class:"ux-field-description"},Gg={key:2},Wg={key:0},Kg={key:1},Yg={class:"ux-text-wrap"},Zg=["placeholder","onUpdate:modelValue"],Jg=Rg(()=>t.createElementVNode("option",{value:""},"None",-1)),Xg=["value"],Qg={class:"ux-text-wrap"},vg=["placeholder"];function e_(e,n,r,i,l,o){const a=t.resolveComponent("ux-button"),s=t.resolveComponent("native-select"),c=t.resolveComponent("flex-cell"),d=t.resolveComponent("ux-icon"),u=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.showLabel?(t.openBlock(),t.createElementBlock("label",zg,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",Hg,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",qg,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.multiValue?(t.openBlock(),t.createElementBlock("div",Gg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model,(m,f)=>(t.openBlock(),t.createBlock(u,{gap:"",vcenter:"",wrap:"",class:"ux-text-row",key:f},{default:t.withCtx(()=>[t.createVNode(c,{shrink:""},{default:t.withCtx(()=>[t.createVNode(s,{modelValue:m.countryCode,"onUpdate:modelValue":p=>m.countryCode=p,field:o.countryCodeField},{default:t.withCtx(()=>[t.createVNode(a,{tag:"a"},{default:t.withCtx(()=>[m.countryCode?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.lookup[m.countryCode]?(t.openBlock(),t.createElementBlock("div",Wg,t.toDisplayString(l.lookup[m.countryCode].emoji)+" - "+t.toDisplayString(l.lookup[m.countryCode].alpha2),1)):(t.openBlock(),t.createElementBlock("div",Kg,"Loading"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Country Code ")],64))]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue","field"])]),_:2},1024),t.createVNode(c,null,{default:t.withCtx(()=>[t.createElementVNode("div",Yg,[t.withDirectives(t.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:o.actualPlaceholder,onFocus:n[0]||(n[0]=(...p)=>e.touch&&e.touch(...p)),ref_for:!0,ref:"input",onKeydown:n[1]||(n[1]=t.withKeys(t.withModifiers(p=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":p=>m.number=p},null,40,Zg),[[t.vModelText,m.number]])])]),_:2},1024),t.createVNode(c,{shrink:"",vcenter:""},{default:t.withCtx(()=>[e.canRemoveValue?(t.openBlock(),t.createBlock(a,{key:0,tag:"a",icon:"",onClick:p=>e.remove(m)},{default:t.withCtx(()=>[t.createVNode(d,{icon:"fa-times"})]),_:2},1032,["onClick"])):t.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024))),128)),e.canAddValue?(t.openBlock(),t.createBlock(a,{key:0,onClick:n[2]||(n[2]=m=>e.add())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.addLabel)+" ",1),t.createVNode(d,{icon:"fa-plus",right:""})]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(u,{wrap:"",class:"ux-text-row",key:e.index},{default:t.withCtx(()=>[t.createVNode(c,{shrink:""},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("select",{class:"ux-country-code-select","onUpdate:modelValue":n[3]||(n[3]=m=>e.model.countryCode=m)},[Jg,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.countryCodes,m=>(t.openBlock(),t.createElementBlock("option",{value:m.value},t.toDisplayString(m.title),9,Xg))),256))],512),[[t.vModelSelect,e.model.countryCode]])]),_:1}),t.createVNode(c,null,{default:t.withCtx(()=>[t.createElementVNode("div",Qg,[t.withDirectives(t.createElementVNode("input",{class:"ux-field-focus ux-text-input-multiple",placeholder:o.actualPlaceholder,onFocus:n[4]||(n[4]=(...m)=>e.touch&&e.touch(...m)),ref:"input",onKeydown:n[5]||(n[5]=t.withKeys(t.withModifiers(m=>e.add(),["stop","prevent"]),["enter"])),"onUpdate:modelValue":n[6]||(n[6]=m=>e.model.number=m)},null,40,vg),[[t.vModelText,e.model.number]])])]),_:1})]),_:1}))],64)}const t_=g(jg,[["render",e_],["__scopeId","data-v-d61960a4"]]),GT="";function n_(e){return e===void 0||typeof e>"u"||e===null||String(e)==="null"||String(e)==="undefined"}const r_={props:{modelValue:{}},mixins:[z],created(){this.model=this.model},methods:{cleanOutput(e){var n=this;return n_(e)?n.multiValue?e=[]:e=void 0:n.multiValue?e=(e||[]).filter(Boolean).map(function(r){return n.getValue(r)}):e=n.getValue(e),e},cleanInput(e){var n=this;if(n.multiValue)e||(e=[]),Array.isArray(e)||(e=[e]),n.maximum&&e.length>n.maximum&&(e.length=n.maximum),e=e.filter(Boolean).map(function(i){var l=n.getValue(i);return n.returnObject?n.optionLookup[l]:l});else{var r=n.getValue(e);e=n.returnObject?n.optionLookup[r]:r}return e}},computed:{returnObject(){return this.type=="reference"},classes(){var e=[];return this.multiValue?e.push("multiple"):e.push("single"),e},optionLookup(){var e=this;return e.options.reduce(function(n,r){const i=e.getValue(r);return n[i]=r,n},{})},summary(){return this.getLabel(this.optionLookup[this.model])||"Click to select"},options(){return["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmera","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Buenos_Aires","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Catamarca","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Coral_Harbour","America/Cordoba","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Inuvik","America/Iqaluit","America/Jamaica","America/Jujuy","America/Juneau","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Louisville","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Mendoza","America/Menominee","America/Merida","America/Mexico_City","America/Moncton","America/Monterrey","America/Montevideo","America/Montreal","America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Calcutta","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh","Asia/Saigon","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faeroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Perth","Australia/Sydney","CST6CDT","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Nicosia","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zaporozhye","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Ponape","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Truk","Pacific/Wake","Pacific/Wallis"].map(function(e){return{title:e,value:e}})},selectableOptions(){return this.options}}},o_={key:0,class:"ux-field-title"},i_={key:0,class:"ux-required-marker"},l_={key:1,class:"ux-field-description"},a_={key:2,class:"ui-select-button"},s_=["multiple"],c_={key:0,value:""},d_=["value"];function u_(e,n,r,i,l,o){const a=t.resolveComponent("ux-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["native-select",o.classes])},[e.showLabel?(t.openBlock(),t.createElementBlock("label",o_,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),e.required?(t.openBlock(),t.createElementBlock("span",i_,"*")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.showDescription?(t.openBlock(),t.createElementBlock("div",l_,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.singleValue?(t.openBlock(),t.createElementBlock("div",a_,[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.summary),1)]),_:1})],!0)])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",{onFocus:n[0]||(n[0]=(...s)=>e.touch&&e.touch(...s)),multiple:e.multiValue,"onUpdate:modelValue":n[1]||(n[1]=s=>e.model=s)},[e.singleValue&&!e.minimum?(t.openBlock(),t.createElementBlock("option",c_,"None")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.selectableOptions,s=>(t.openBlock(),t.createElementBlock("option",{value:s.value},t.toDisplayString(s.title),9,d_))),256))],40,s_),[[t.vModelSelect,e.model]])],2)}const m_=g(r_,[["render",u_],["__scopeId","data-v-dc886566"]]),WT="",f_={props:{item:{type:Object,required:!0}},data(){return{model:this.item}},watch:{item(e){this.model=e}},computed:{basicType(){var e,n;return(n=(e=this.model)==null?void 0:e.meta)==null?void 0:n.type},hasImage(){switch(this.basicType){case"image":case"video":case"profile":return!0}},title(){return this.model.title||this.model.name||this.model.label||(this.model.firstName?`${this.model.firstName} ${this.model.lastName}`:"(Title unknown)")}},methods:{clicked(){this.$sdk.dispatch("item:view",this.model)}}};function p_(e,n,r,i,l,o){const a=t.resolveComponent("ux-image"),s=t.resolveComponent("flex-cell"),c=t.resolveComponent("flex-row");return t.openBlock(),t.createElementBlock("div",{class:"content-item",onClick:n[0]||(n[0]=(...d)=>o.clicked&&o.clicked(...d))},[t.createVNode(c,{gap:"",vcenter:""},{default:t.withCtx(()=>[o.hasImage?(t.openBlock(),t.createBlock(s,{key:0,shrink:""},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["image-wrapper",o.basicType])},[t.createVNode(a,{item:l.model,width:100,height:100},null,8,["item"])],2)]),_:1})):t.createCommentVNode("",!0),t.createVNode(s,{vcenter:""},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(o.title),1)],!0)])]),_:3}),t.createVNode(s,{shrink:""},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})]),_:3})])}const Hr=g(f_,[["render",p_],["__scopeId","data-v-f1a20da8"]]);/**!
|
|
2
2
|
* Sortable 1.14.0
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|