pangea-lib 2.11.547 → 2.11.549
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/main.cjs.js +2 -2
- package/dist/main.css +1 -1
- package/dist/main.es.js +121 -116
- package/dist/types/components/display/PgaDisplayText.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -774,7 +774,7 @@ var gM;function A1(){return gM.apply(null,arguments)}function cn1(e){gM=e}functi
|
|
|
774
774
|
[`+n+"] ";for(i in arguments[0])s2(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[n];c.push(r)}zM(e+`
|
|
775
775
|
Arguments: `+Array.prototype.slice.call(c).join("")+`
|
|
776
776
|
`+new Error().stack),t=!1}return a.apply(this,arguments)},a)}var Ds={};function CM(e,a){A1.deprecationHandler!=null&&A1.deprecationHandler(e,a),Ds[e]||(zM(a),Ds[e]=!0)}A1.suppressDeprecationWarnings=!1;A1.deprecationHandler=null;function o0(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function nn1(e){var a,t;for(t in e)s2(e,t)&&(a=e[t],o0(a)?this[t]=a:this["_"+t]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function sr(e,a){var t=j0({},e),c;for(c in a)s2(a,c)&&(Y6(e[c])&&Y6(a[c])?(t[c]={},j0(t[c],e[c]),j0(t[c],a[c])):a[c]!=null?t[c]=a[c]:delete t[c]);for(c in e)s2(e,c)&&!s2(a,c)&&Y6(e[c])&&(t[c]=j0({},t[c]));return t}function un(e){e!=null&&this.set(e)}var or;Object.keys?or=Object.keys:or=function(e){var a,t=[];for(a in e)s2(e,a)&&t.push(a);return t};var in1={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function sn1(e,a,t){var c=this._calendar[e]||this._calendar.sameElse;return o0(c)?c.call(a,t):c}function n0(e,a,t){var c=""+Math.abs(e),r=a-c.length,n=e>=0;return(n?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+c}var hn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,tc={},Fe={};function R1(e,a,t,c){var r=c;typeof c=="string"&&(r=function(){return this[c]()}),e&&(Fe[e]=r),a&&(Fe[a[0]]=function(){return n0(r.apply(this,arguments),a[1],a[2])}),t&&(Fe[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function on1(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ln1(e){var a=e.match(hn),t,c;for(t=0,c=a.length;t<c;t++)Fe[a[t]]?a[t]=Fe[a[t]]:a[t]=on1(a[t]);return function(r){var n="",i;for(i=0;i<c;i++)n+=o0(a[i])?a[i].call(r,e):a[i];return n}}function Ga(e,a){return e.isValid()?(a=MM(a,e.localeData()),tc[a]=tc[a]||ln1(a),tc[a](e)):e.localeData().invalidDate()}function MM(e,a){var t=5;function c(r){return a.longDateFormat(r)||r}for(pa.lastIndex=0;t>=0&&pa.test(e);)e=e.replace(pa,c),pa.lastIndex=0,t-=1;return e}var fn1={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function un1(e){var a=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return a||!t?a:(this._longDateFormat[e]=t.match(hn).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[e])}var hn1="Invalid date";function dn1(){return this._invalidDate}var mn1="%d",pn1=/\d{1,2}/;function vn1(e){return this._ordinal.replace("%d",e)}var gn1={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xn1(e,a,t,c){var r=this._relativeTime[t];return o0(r)?r(e,a,t,c):r.replace(/%d/i,e)}function zn1(e,a){var t=this._relativeTime[e>0?"future":"past"];return o0(t)?t(a):t.replace(/%s/i,a)}var Ps={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function v4(e){return typeof e=="string"?Ps[e]||Ps[e.toLowerCase()]:void 0}function dn(e){var a={},t,c;for(c in e)s2(e,c)&&(t=v4(c),t&&(a[t]=e[c]));return a}var Cn1={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Mn1(e){var a=[],t;for(t in e)s2(e,t)&&a.push({unit:t,priority:Cn1[t]});return a.sort(function(c,r){return c.priority-r.priority}),a}var HM=/\d/,s4=/\d\d/,VM=/\d{3}/,mn=/\d{4}/,Ht=/[+-]?\d{6}/,w2=/\d\d?/,yM=/\d\d\d\d?/,bM=/\d\d\d\d\d\d?/,Vt=/\d{1,3}/,pn=/\d{1,4}/,yt=/[+-]?\d{1,6}/,a8=/\d+/,bt=/[+-]?\d+/,Hn1=/Z|[+-]\d\d:?\d\d/gi,wt=/Z|[+-]\d\d(?::?\d\d)?/gi,Vn1=/[+-]?\d+(\.\d{1,3})?/,I5=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,t8=/^[1-9]\d?/,vn=/^([1-9]\d|\d)/,p7;p7={};function N1(e,a,t){p7[e]=o0(a)?a:function(c,r){return c&&t?t:a}}function yn1(e,a){return s2(p7,e)?p7[e](a._strict,a._locale):new RegExp(bn1(e))}function bn1(e){return V0(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,t,c,r,n){return t||c||r||n}))}function V0(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h4(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J1(e){var a=+e,t=0;return a!==0&&isFinite(a)&&(t=h4(a)),t}var lr={};function p2(e,a){var t,c=a,r;for(typeof e=="string"&&(e=[e]),A0(a)&&(c=function(n,i){i[a]=J1(n)}),r=e.length,t=0;t<r;t++)lr[e[t]]=c}function $5(e,a){p2(e,function(t,c,r,n){r._w=r._w||{},a(t,r._w,r,n)})}function wn1(e,a,t){a!=null&&s2(lr,e)&&lr[e](a,t._a,t,e)}function kt(e){return e%4===0&&e%100!==0||e%400===0}var L3=0,z0=1,j4=2,i3=3,k4=4,C0=5,$6=6,kn1=7,Ln1=8;R1("Y",0,0,function(){var e=this.year();return e<=9999?n0(e,4):"+"+e});R1(0,["YY",2],0,function(){return this.year()%100});R1(0,["YYYY",4],0,"year");R1(0,["YYYYY",5],0,"year");R1(0,["YYYYYY",6,!0],0,"year");N1("Y",bt);N1("YY",w2,s4);N1("YYYY",pn,mn);N1("YYYYY",yt,Ht);N1("YYYYYY",yt,Ht);p2(["YYYYY","YYYYYY"],L3);p2("YYYY",function(e,a){a[L3]=e.length===2?A1.parseTwoDigitYear(e):J1(e)});p2("YY",function(e,a){a[L3]=A1.parseTwoDigitYear(e)});p2("Y",function(e,a){a[L3]=parseInt(e,10)});function D8(e){return kt(e)?366:365}A1.parseTwoDigitYear=function(e){return J1(e)+(J1(e)>68?1900:2e3)};var wM=c8("FullYear",!0);function _n1(){return kt(this.year())}function c8(e,a){return function(t){return t!=null?(kM(this,e,t),A1.updateOffset(this,a),this):o5(this,e)}}function o5(e,a){if(!e.isValid())return NaN;var t=e._d,c=e._isUTC;switch(a){case"Milliseconds":return c?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return c?t.getUTCSeconds():t.getSeconds();case"Minutes":return c?t.getUTCMinutes():t.getMinutes();case"Hours":return c?t.getUTCHours():t.getHours();case"Date":return c?t.getUTCDate():t.getDate();case"Day":return c?t.getUTCDay():t.getDay();case"Month":return c?t.getUTCMonth():t.getMonth();case"FullYear":return c?t.getUTCFullYear():t.getFullYear();default:return NaN}}function kM(e,a,t){var c,r,n,i,s;if(!(!e.isValid()||isNaN(t))){switch(c=e._d,r=e._isUTC,a){case"Milliseconds":return void(r?c.setUTCMilliseconds(t):c.setMilliseconds(t));case"Seconds":return void(r?c.setUTCSeconds(t):c.setSeconds(t));case"Minutes":return void(r?c.setUTCMinutes(t):c.setMinutes(t));case"Hours":return void(r?c.setUTCHours(t):c.setHours(t));case"Date":return void(r?c.setUTCDate(t):c.setDate(t));case"FullYear":break;default:return}n=t,i=e.month(),s=e.date(),s=s===29&&i===1&&!kt(n)?28:s,r?c.setUTCFullYear(n,i,s):c.setFullYear(n,i,s)}}function An1(e){return e=v4(e),o0(this[e])?this[e]():this}function Sn1(e,a){if(typeof e=="object"){e=dn(e);var t=Mn1(e),c,r=t.length;for(c=0;c<r;c++)this[t[c].unit](e[t[c].unit])}else if(e=v4(e),o0(this[e]))return this[e](a);return this}function Nn1(e,a){return(e%a+a)%a}var q2;Array.prototype.indexOf?q2=Array.prototype.indexOf:q2=function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1};function gn(e,a){if(isNaN(e)||isNaN(a))return NaN;var t=Nn1(a,12);return e+=(a-t)/12,t===1?kt(e)?29:28:31-t%7%2}R1("M",["MM",2],"Mo",function(){return this.month()+1});R1("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});R1("MMMM",0,0,function(e){return this.localeData().months(this,e)});N1("M",w2,t8);N1("MM",w2,s4);N1("MMM",function(e,a){return a.monthsShortRegex(e)});N1("MMMM",function(e,a){return a.monthsRegex(e)});p2(["M","MM"],function(e,a){a[z0]=J1(e)-1});p2(["MMM","MMMM"],function(e,a,t,c){var r=t._locale.monthsParse(e,c,t._strict);r!=null?a[z0]=r:G1(t).invalidMonth=e});var Tn1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),LM="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_M=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,En1=I5,Fn1=I5;function Dn1(e,a){return e?F4(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_M).test(a)?"format":"standalone"][e.month()]:F4(this._months)?this._months:this._months.standalone}function Pn1(e,a){return e?F4(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_M.test(a)?"format":"standalone"][e.month()]:F4(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Bn1(e,a,t){var c,r,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)n=s0([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(n,"").toLocaleLowerCase();return t?a==="MMM"?(r=q2.call(this._shortMonthsParse,i),r!==-1?r:null):(r=q2.call(this._longMonthsParse,i),r!==-1?r:null):a==="MMM"?(r=q2.call(this._shortMonthsParse,i),r!==-1?r:(r=q2.call(this._longMonthsParse,i),r!==-1?r:null)):(r=q2.call(this._longMonthsParse,i),r!==-1?r:(r=q2.call(this._shortMonthsParse,i),r!==-1?r:null))}function On1(e,a,t){var c,r,n;if(this._monthsParseExact)return Bn1.call(this,e,a,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(r=s0([2e3,c]),t&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[c]&&(n="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[c]=new RegExp(n.replace(".",""),"i")),t&&a==="MMMM"&&this._longMonthsParse[c].test(e))return c;if(t&&a==="MMM"&&this._shortMonthsParse[c].test(e))return c;if(!t&&this._monthsParse[c].test(e))return c}}function AM(e,a){if(!e.isValid())return e;if(typeof a=="string"){if(/^\d+$/.test(a))a=J1(a);else if(a=e.localeData().monthsParse(a),!A0(a))return e}var t=a,c=e.date();return c=c<29?c:Math.min(c,gn(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,c):e._d.setMonth(t,c),e}function SM(e){return e!=null?(AM(this,e),A1.updateOffset(this,!0),this):o5(this,"Month")}function Rn1(){return gn(this.year(),this.month())}function In1(e){return this._monthsParseExact?(s2(this,"_monthsRegex")||NM.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s2(this,"_monthsShortRegex")||(this._monthsShortRegex=En1),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function $n1(e){return this._monthsParseExact?(s2(this,"_monthsRegex")||NM.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s2(this,"_monthsRegex")||(this._monthsRegex=Fn1),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function NM(){function e(l,f){return f.length-l.length}var a=[],t=[],c=[],r,n,i,s;for(r=0;r<12;r++)n=s0([2e3,r]),i=V0(this.monthsShort(n,"")),s=V0(this.months(n,"")),a.push(i),t.push(s),c.push(s),c.push(i);a.sort(e),t.sort(e),c.sort(e),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Un1(e,a,t,c,r,n,i){var s;return e<100&&e>=0?(s=new Date(e+400,a,t,c,r,n,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,a,t,c,r,n,i),s}function l5(e){var a,t;return e<100&&e>=0?(t=Array.prototype.slice.call(arguments),t[0]=e+400,a=new Date(Date.UTC.apply(null,t)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function v7(e,a,t){var c=7+a-t,r=(7+l5(e,0,c).getUTCDay()-a)%7;return-r+c-1}function TM(e,a,t,c,r){var n=(7+t-c)%7,i=v7(e,c,r),s=1+7*(a-1)+n+i,l,f;return s<=0?(l=e-1,f=D8(l)+s):s>D8(e)?(l=e+1,f=s-D8(e)):(l=e,f=s),{year:l,dayOfYear:f}}function f5(e,a,t){var c=v7(e.year(),a,t),r=Math.floor((e.dayOfYear()-c-1)/7)+1,n,i;return r<1?(i=e.year()-1,n=r+y0(i,a,t)):r>y0(e.year(),a,t)?(n=r-y0(e.year(),a,t),i=e.year()+1):(i=e.year(),n=r),{week:n,year:i}}function y0(e,a,t){var c=v7(e,a,t),r=v7(e+1,a,t);return(D8(e)-c+r)/7}R1("w",["ww",2],"wo","week");R1("W",["WW",2],"Wo","isoWeek");N1("w",w2,t8);N1("ww",w2,s4);N1("W",w2,t8);N1("WW",w2,s4);$5(["w","ww","W","WW"],function(e,a,t,c){a[c.substr(0,1)]=J1(e)});function Wn1(e){return f5(e,this._week.dow,this._week.doy).week}var Yn1={dow:0,doy:6};function qn1(){return this._week.dow}function Gn1(){return this._week.doy}function jn1(e){var a=this.localeData().week(this);return e==null?a:this.add((e-a)*7,"d")}function Xn1(e){var a=f5(this,1,4).week;return e==null?a:this.add((e-a)*7,"d")}R1("d",0,"do","day");R1("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});R1("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});R1("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});R1("e",0,0,"weekday");R1("E",0,0,"isoWeekday");N1("d",w2);N1("e",w2);N1("E",w2);N1("dd",function(e,a){return a.weekdaysMinRegex(e)});N1("ddd",function(e,a){return a.weekdaysShortRegex(e)});N1("dddd",function(e,a){return a.weekdaysRegex(e)});$5(["dd","ddd","dddd"],function(e,a,t,c){var r=t._locale.weekdaysParse(e,c,t._strict);r!=null?a.d=r:G1(t).invalidWeekday=e});$5(["d","e","E"],function(e,a,t,c){a[c]=J1(e)});function Zn1(e,a){return typeof e!="string"?e:isNaN(e)?(e=a.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Qn1(e,a){return typeof e=="string"?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xn(e,a){return e.slice(a,7).concat(e.slice(0,a))}var Kn1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),EM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jn1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ei1=I5,ai1=I5,ti1=I5;function ci1(e,a){var t=F4(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return e===!0?xn(t,this._week.dow):e?t[e.day()]:t}function ri1(e){return e===!0?xn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ni1(e){return e===!0?xn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ii1(e,a,t){var c,r,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)n=s0([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(n,"").toLocaleLowerCase();return t?a==="dddd"?(r=q2.call(this._weekdaysParse,i),r!==-1?r:null):a==="ddd"?(r=q2.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null):a==="dddd"?(r=q2.call(this._weekdaysParse,i),r!==-1||(r=q2.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null)):a==="ddd"?(r=q2.call(this._shortWeekdaysParse,i),r!==-1||(r=q2.call(this._weekdaysParse,i),r!==-1)?r:(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=q2.call(this._minWeekdaysParse,i),r!==-1||(r=q2.call(this._weekdaysParse,i),r!==-1)?r:(r=q2.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function si1(e,a,t){var c,r,n;if(this._weekdaysParseExact)return ii1.call(this,e,a,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(r=s0([2e3,1]).day(c),t&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[c]=new RegExp(n.replace(".",""),"i")),t&&a==="dddd"&&this._fullWeekdaysParse[c].test(e))return c;if(t&&a==="ddd"&&this._shortWeekdaysParse[c].test(e))return c;if(t&&a==="dd"&&this._minWeekdaysParse[c].test(e))return c;if(!t&&this._weekdaysParse[c].test(e))return c}}function oi1(e){if(!this.isValid())return e!=null?this:NaN;var a=o5(this,"Day");return e!=null?(e=Zn1(e,this.localeData()),this.add(e-a,"d")):a}function li1(e){if(!this.isValid())return e!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return e==null?a:this.add(e-a,"d")}function fi1(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var a=Qn1(e,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function ui1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s2(this,"_weekdaysRegex")||(this._weekdaysRegex=ei1),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function hi1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s2(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ai1),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function di1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||zn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s2(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ti1),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zn(){function e(u,h){return h.length-u.length}var a=[],t=[],c=[],r=[],n,i,s,l,f;for(n=0;n<7;n++)i=s0([2e3,1]).day(n),s=V0(this.weekdaysMin(i,"")),l=V0(this.weekdaysShort(i,"")),f=V0(this.weekdays(i,"")),a.push(s),t.push(l),c.push(f),r.push(s),r.push(l),r.push(f);a.sort(e),t.sort(e),c.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Cn(){return this.hours()%12||12}function mi1(){return this.hours()||24}R1("H",["HH",2],0,"hour");R1("h",["hh",2],0,Cn);R1("k",["kk",2],0,mi1);R1("hmm",0,0,function(){return""+Cn.apply(this)+n0(this.minutes(),2)});R1("hmmss",0,0,function(){return""+Cn.apply(this)+n0(this.minutes(),2)+n0(this.seconds(),2)});R1("Hmm",0,0,function(){return""+this.hours()+n0(this.minutes(),2)});R1("Hmmss",0,0,function(){return""+this.hours()+n0(this.minutes(),2)+n0(this.seconds(),2)});function FM(e,a){R1(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}FM("a",!0);FM("A",!1);function DM(e,a){return a._meridiemParse}N1("a",DM);N1("A",DM);N1("H",w2,vn);N1("h",w2,t8);N1("k",w2,t8);N1("HH",w2,s4);N1("hh",w2,s4);N1("kk",w2,s4);N1("hmm",yM);N1("hmmss",bM);N1("Hmm",yM);N1("Hmmss",bM);p2(["H","HH"],i3);p2(["k","kk"],function(e,a,t){var c=J1(e);a[i3]=c===24?0:c});p2(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e});p2(["h","hh"],function(e,a,t){a[i3]=J1(e),G1(t).bigHour=!0});p2("hmm",function(e,a,t){var c=e.length-2;a[i3]=J1(e.substr(0,c)),a[k4]=J1(e.substr(c)),G1(t).bigHour=!0});p2("hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=J1(e.substr(0,c)),a[k4]=J1(e.substr(c,2)),a[C0]=J1(e.substr(r)),G1(t).bigHour=!0});p2("Hmm",function(e,a,t){var c=e.length-2;a[i3]=J1(e.substr(0,c)),a[k4]=J1(e.substr(c))});p2("Hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=J1(e.substr(0,c)),a[k4]=J1(e.substr(c,2)),a[C0]=J1(e.substr(r))});function pi1(e){return(e+"").toLowerCase().charAt(0)==="p"}var vi1=/[ap]\.?m?\.?/i,gi1=c8("Hours",!0);function xi1(e,a,t){return e>11?t?"pm":"PM":t?"am":"AM"}var PM={calendar:in1,longDateFormat:fn1,invalidDate:hn1,ordinal:mn1,dayOfMonthOrdinalParse:pn1,relativeTime:gn1,months:Tn1,monthsShort:LM,week:Yn1,weekdays:Kn1,weekdaysMin:Jn1,weekdaysShort:EM,meridiemParse:vi1},L2={},u8={},u5;function zi1(e,a){var t,c=Math.min(e.length,a.length);for(t=0;t<c;t+=1)if(e[t]!==a[t])return t;return c}function Bs(e){return e&&e.toLowerCase().replace("_","-")}function Ci1(e){for(var a=0,t,c,r,n;a<e.length;){for(n=Bs(e[a]).split("-"),t=n.length,c=Bs(e[a+1]),c=c?c.split("-"):null;t>0;){if(r=Lt(n.slice(0,t).join("-")),r)return r;if(c&&c.length>=t&&zi1(n,c)>=t-1)break;t--}a++}return u5}function Mi1(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Lt(e){var a=null,t;if(L2[e]===void 0&&typeof module<"u"&&module&&module.exports&&Mi1(e))try{a=u5._abbr,t=require,t("./locale/"+e),i6(a)}catch{L2[e]=null}return L2[e]}function i6(e,a){var t;return e&&(q3(a)?t=E0(e):t=Mn(e,a),t?u5=t:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),u5._abbr}function Mn(e,a){if(a!==null){var t,c=PM;if(a.abbr=e,L2[e]!=null)CM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=L2[e]._config;else if(a.parentLocale!=null)if(L2[a.parentLocale]!=null)c=L2[a.parentLocale]._config;else if(t=Lt(a.parentLocale),t!=null)c=t._config;else return u8[a.parentLocale]||(u8[a.parentLocale]=[]),u8[a.parentLocale].push({name:e,config:a}),null;return L2[e]=new un(sr(c,a)),u8[e]&&u8[e].forEach(function(r){Mn(r.name,r.config)}),i6(e),L2[e]}else return delete L2[e],null}function Hi1(e,a){if(a!=null){var t,c,r=PM;L2[e]!=null&&L2[e].parentLocale!=null?L2[e].set(sr(L2[e]._config,a)):(c=Lt(e),c!=null&&(r=c._config),a=sr(r,a),c==null&&(a.abbr=e),t=new un(a),t.parentLocale=L2[e],L2[e]=t),i6(e)}else L2[e]!=null&&(L2[e].parentLocale!=null?(L2[e]=L2[e].parentLocale,e===i6()&&i6(e)):L2[e]!=null&&delete L2[e]);return L2[e]}function E0(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return u5;if(!F4(e)){if(a=Lt(e),a)return a;e=[e]}return Ci1(e)}function Vi1(){return or(L2)}function Hn(e){var a,t=e._a;return t&&G1(e).overflow===-2&&(a=t[z0]<0||t[z0]>11?z0:t[j4]<1||t[j4]>gn(t[L3],t[z0])?j4:t[i3]<0||t[i3]>24||t[i3]===24&&(t[k4]!==0||t[C0]!==0||t[$6]!==0)?i3:t[k4]<0||t[k4]>59?k4:t[C0]<0||t[C0]>59?C0:t[$6]<0||t[$6]>999?$6:-1,G1(e)._overflowDayOfYear&&(a<L3||a>j4)&&(a=j4),G1(e)._overflowWeeks&&a===-1&&(a=kn1),G1(e)._overflowWeekday&&a===-1&&(a=Ln1),G1(e).overflow=a),e}var yi1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bi1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wi1=/Z|[+-]\d\d(?::?\d\d)?/,va=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],cc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ki1=/^\/?Date\((-?\d+)/i,Li1=/^(?:(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{4}))$/,_i1={UT:0,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 BM(e){var a,t,c=e._i,r=yi1.exec(c)||bi1.exec(c),n,i,s,l,f=va.length,u=cc.length;if(r){for(G1(e).iso=!0,a=0,t=f;a<t;a++)if(va[a][1].exec(r[1])){i=va[a][0],n=va[a][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(a=0,t=u;a<t;a++)if(cc[a][1].exec(r[3])){s=(r[2]||" ")+cc[a][0];break}if(s==null){e._isValid=!1;return}}if(!n&&s!=null){e._isValid=!1;return}if(r[4])if(wi1.exec(r[4]))l="Z";else{e._isValid=!1;return}e._f=i+(s||"")+(l||""),yn(e)}else e._isValid=!1}function Ai1(e,a,t,c,r,n){var i=[Si1(e),LM.indexOf(a),parseInt(t,10),parseInt(c,10),parseInt(r,10)];return n&&i.push(parseInt(n,10)),i}function Si1(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function Ni1(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ti1(e,a,t){if(e){var c=EM.indexOf(e),r=new Date(a[0],a[1],a[2]).getDay();if(c!==r)return G1(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function Ei1(e,a,t){if(e)return _i1[e];if(a)return 0;var c=parseInt(t,10),r=c%100,n=(c-r)/100;return n*60+r}function OM(e){var a=Li1.exec(Ni1(e._i)),t;if(a){if(t=Ai1(a[4],a[3],a[2],a[5],a[6],a[7]),!Ti1(a[1],t,e))return;e._a=t,e._tzm=Ei1(a[8],a[9],a[10]),e._d=l5.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),G1(e).rfc2822=!0}else e._isValid=!1}function Fi1(e){var a=ki1.exec(e._i);if(a!==null){e._d=new Date(+a[1]);return}if(BM(e),e._isValid===!1)delete e._isValid;else return;if(OM(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:A1.createFromInputFallback(e)}A1.createFromInputFallback=p4("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ye(e,a,t){return e??a??t}function Di1(e){var a=new Date(A1.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Vn(e){var a,t,c=[],r,n,i;if(!e._d){for(r=Di1(e),e._w&&e._a[j4]==null&&e._a[z0]==null&&Pi1(e),e._dayOfYear!=null&&(i=ye(e._a[L3],r[L3]),(e._dayOfYear>D8(i)||e._dayOfYear===0)&&(G1(e)._overflowDayOfYear=!0),t=l5(i,0,e._dayOfYear),e._a[z0]=t.getUTCMonth(),e._a[j4]=t.getUTCDate()),a=0;a<3&&e._a[a]==null;++a)e._a[a]=c[a]=r[a];for(;a<7;a++)e._a[a]=c[a]=e._a[a]==null?a===2?1:0:e._a[a];e._a[i3]===24&&e._a[k4]===0&&e._a[C0]===0&&e._a[$6]===0&&(e._nextDay=!0,e._a[i3]=0),e._d=(e._useUTC?l5:Un1).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[i3]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(G1(e).weekdayMismatch=!0)}}function Pi1(e){var a,t,c,r,n,i,s,l,f;a=e._w,a.GG!=null||a.W!=null||a.E!=null?(n=1,i=4,t=ye(a.GG,e._a[L3],f5(b2(),1,4).year),c=ye(a.W,1),r=ye(a.E,1),(r<1||r>7)&&(l=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,f=f5(b2(),n,i),t=ye(a.gg,e._a[L3],f.year),c=ye(a.w,f.week),a.d!=null?(r=a.d,(r<0||r>6)&&(l=!0)):a.e!=null?(r=a.e+n,(a.e<0||a.e>6)&&(l=!0)):r=n),c<1||c>y0(t,n,i)?G1(e)._overflowWeeks=!0:l!=null?G1(e)._overflowWeekday=!0:(s=TM(t,c,r,n,i),e._a[L3]=s.year,e._dayOfYear=s.dayOfYear)}A1.ISO_8601=function(){};A1.RFC_2822=function(){};function yn(e){if(e._f===A1.ISO_8601){BM(e);return}if(e._f===A1.RFC_2822){OM(e);return}e._a=[],G1(e).empty=!0;var a=""+e._i,t,c,r,n,i,s=a.length,l=0,f,u;for(r=MM(e._f,e._locale).match(hn)||[],u=r.length,t=0;t<u;t++)n=r[t],c=(a.match(yn1(n,e))||[])[0],c&&(i=a.substr(0,a.indexOf(c)),i.length>0&&G1(e).unusedInput.push(i),a=a.slice(a.indexOf(c)+c.length),l+=c.length),Fe[n]?(c?G1(e).empty=!1:G1(e).unusedTokens.push(n),wn1(n,c,e)):e._strict&&!c&&G1(e).unusedTokens.push(n);G1(e).charsLeftOver=s-l,a.length>0&&G1(e).unusedInput.push(a),e._a[i3]<=12&&G1(e).bigHour===!0&&e._a[i3]>0&&(G1(e).bigHour=void 0),G1(e).parsedDateParts=e._a.slice(0),G1(e).meridiem=e._meridiem,e._a[i3]=Bi1(e._locale,e._a[i3],e._meridiem),f=G1(e).era,f!==null&&(e._a[L3]=e._locale.erasConvertYear(f,e._a[L3])),Vn(e),Hn(e)}function Bi1(e,a,t){var c;return t==null?a:e.meridiemHour!=null?e.meridiemHour(a,t):(e.isPM!=null&&(c=e.isPM(t),c&&a<12&&(a+=12),!c&&a===12&&(a=0)),a)}function Oi1(e){var a,t,c,r,n,i,s=!1,l=e._f.length;if(l===0){G1(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<l;r++)n=0,i=!1,a=fn({},e),e._useUTC!=null&&(a._useUTC=e._useUTC),a._f=e._f[r],yn(a),ln(a)&&(i=!0),n+=G1(a).charsLeftOver,n+=G1(a).unusedTokens.length*10,G1(a).score=n,s?n<c&&(c=n,t=a):(c==null||n<c||i)&&(c=n,t=a,i&&(s=!0));j0(e,t||a)}function Ri1(e){if(!e._d){var a=dn(e._i),t=a.day===void 0?a.date:a.day;e._a=xM([a.year,a.month,t,a.hour,a.minute,a.second,a.millisecond],function(c){return c&&parseInt(c,10)}),Vn(e)}}function Ii1(e){var a=new R5(Hn(RM(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function RM(e){var a=e._i,t=e._f;return e._locale=e._locale||E0(e._l),a===null||t===void 0&&a===""?Mt({nullInput:!0}):(typeof a=="string"&&(e._i=a=e._locale.preparse(a)),D4(a)?new R5(Hn(a)):(O5(a)?e._d=a:F4(t)?Oi1(e):t?yn(e):$i1(e),ln(e)||(e._d=null),e))}function $i1(e){var a=e._i;q3(a)?e._d=new Date(A1.now()):O5(a)?e._d=new Date(a.valueOf()):typeof a=="string"?Fi1(e):F4(a)?(e._a=xM(a.slice(0),function(t){return parseInt(t,10)}),Vn(e)):Y6(a)?Ri1(e):A0(a)?e._d=new Date(a):A1.createFromInputFallback(e)}function IM(e,a,t,c,r){var n={};return(a===!0||a===!1)&&(c=a,a=void 0),(t===!0||t===!1)&&(c=t,t=void 0),(Y6(e)&&on(e)||F4(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=t,n._i=e,n._f=a,n._strict=c,Ii1(n)}function b2(e,a,t,c){return IM(e,a,t,c,!1)}var Ui1=p4("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b2.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Mt()}),Wi1=p4("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b2.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Mt()});function $M(e,a){var t,c;if(a.length===1&&F4(a[0])&&(a=a[0]),!a.length)return b2();for(t=a[0],c=1;c<a.length;++c)(!a[c].isValid()||a[c][e](t))&&(t=a[c]);return t}function Yi1(){var e=[].slice.call(arguments,0);return $M("isBefore",e)}function qi1(){var e=[].slice.call(arguments,0);return $M("isAfter",e)}var Gi1=function(){return Date.now?Date.now():+new Date},h8=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ji1(e){var a,t=!1,c,r=h8.length;for(a in e)if(s2(e,a)&&!(q2.call(h8,a)!==-1&&(e[a]==null||!isNaN(e[a]))))return!1;for(c=0;c<r;++c)if(e[h8[c]]){if(t)return!1;parseFloat(e[h8[c]])!==J1(e[h8[c]])&&(t=!0)}return!0}function Xi1(){return this._isValid}function Zi1(){return B4(NaN)}function _t(e){var a=dn(e),t=a.year||0,c=a.quarter||0,r=a.month||0,n=a.week||a.isoWeek||0,i=a.day||0,s=a.hour||0,l=a.minute||0,f=a.second||0,u=a.millisecond||0;this._isValid=ji1(a),this._milliseconds=+u+f*1e3+l*6e4+s*1e3*60*60,this._days=+i+n*7,this._months=+r+c*3+t*12,this._data={},this._locale=E0(),this._bubble()}function ja(e){return e instanceof _t}function fr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Qi1(e,a,t){var c=Math.min(e.length,a.length),r=Math.abs(e.length-a.length),n=0,i;for(i=0;i<c;i++)(t&&e[i]!==a[i]||!t&&J1(e[i])!==J1(a[i]))&&n++;return n+r}function UM(e,a){R1(e,0,0,function(){var t=this.utcOffset(),c="+";return t<0&&(t=-t,c="-"),c+n0(~~(t/60),2)+a+n0(~~t%60,2)})}UM("Z",":");UM("ZZ","");N1("Z",wt);N1("ZZ",wt);p2(["Z","ZZ"],function(e,a,t){t._useUTC=!0,t._tzm=bn(wt,e)});var Ki1=/([\+\-]|\d\d)/gi;function bn(e,a){var t=(a||"").match(e),c,r,n;return t===null?null:(c=t[t.length-1]||[],r=(c+"").match(Ki1)||["-",0,0],n=+(r[1]*60)+J1(r[2]),n===0?0:r[0]==="+"?n:-n)}function wn(e,a){var t,c;return a._isUTC?(t=a.clone(),c=(D4(e)||O5(e)?e.valueOf():b2(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+c),A1.updateOffset(t,!1),t):b2(e).local()}function ur(e){return-Math.round(e._d.getTimezoneOffset())}A1.updateOffset=function(){};function Ji1(e,a,t){var c=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=bn(wt,e),e===null)return this}else Math.abs(e)<16&&!t&&(e=e*60);return!this._isUTC&&a&&(r=ur(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),c!==e&&(!a||this._changeInProgress?qM(this,B4(e-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A1.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:ur(this)}function es1(e,a){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function as1(e){return this.utcOffset(0,e)}function ts1(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ur(this),"m")),this}function cs1(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=bn(Hn1,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function rs1(e){return this.isValid()?(e=e?b2(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ns1(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function is1(){if(!q3(this._isDSTShifted))return this._isDSTShifted;var e={},a;return fn(e,this),e=RM(e),e._a?(a=e._isUTC?s0(e._a):b2(e._a),this._isDSTShifted=this.isValid()&&Qi1(e._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ss1(){return this.isValid()?!this._isUTC:!1}function os1(){return this.isValid()?this._isUTC:!1}function WM(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ls1=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fs1=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B4(e,a){var t=e,c=null,r,n,i;return ja(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:A0(e)||!isNaN(+e)?(t={},a?t[a]=+e:t.milliseconds=+e):(c=ls1.exec(e))?(r=c[1]==="-"?-1:1,t={y:0,d:J1(c[j4])*r,h:J1(c[i3])*r,m:J1(c[k4])*r,s:J1(c[C0])*r,ms:J1(fr(c[$6]*1e3))*r}):(c=fs1.exec(e))?(r=c[1]==="-"?-1:1,t={y:_6(c[2],r),M:_6(c[3],r),w:_6(c[4],r),d:_6(c[5],r),h:_6(c[6],r),m:_6(c[7],r),s:_6(c[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(i=us1(b2(t.from),b2(t.to)),t={},t.ms=i.milliseconds,t.M=i.months),n=new _t(t),ja(e)&&s2(e,"_locale")&&(n._locale=e._locale),ja(e)&&s2(e,"_isValid")&&(n._isValid=e._isValid),n}B4.fn=_t.prototype;B4.invalid=Zi1;function _6(e,a){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*a}function Os(e,a){var t={};return t.months=a.month()-e.month()+(a.year()-e.year())*12,e.clone().add(t.months,"M").isAfter(a)&&--t.months,t.milliseconds=+a-+e.clone().add(t.months,"M"),t}function us1(e,a){var t;return e.isValid()&&a.isValid()?(a=wn(a,e),e.isBefore(a)?t=Os(e,a):(t=Os(a,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function YM(e,a){return function(t,c){var r,n;return c!==null&&!isNaN(+c)&&(CM(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=c,c=n),r=B4(t,c),qM(this,r,e),this}}function qM(e,a,t,c){var r=a._milliseconds,n=fr(a._days),i=fr(a._months);e.isValid()&&(c=c??!0,i&&AM(e,o5(e,"Month")+i*t),n&&kM(e,"Date",o5(e,"Date")+n*t),r&&e._d.setTime(e._d.valueOf()+r*t),c&&A1.updateOffset(e,n||i))}var hs1=YM(1,"add"),ds1=YM(-1,"subtract");function GM(e){return typeof e=="string"||e instanceof String}function ms1(e){return D4(e)||O5(e)||GM(e)||A0(e)||vs1(e)||ps1(e)||e===null||e===void 0}function ps1(e){var a=Y6(e)&&!on(e),t=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,n,i=c.length;for(r=0;r<i;r+=1)n=c[r],t=t||s2(e,n);return a&&t}function vs1(e){var a=F4(e),t=!1;return a&&(t=e.filter(function(c){return!A0(c)&&GM(e)}).length===0),a&&t}function gs1(e){var a=Y6(e)&&!on(e),t=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,n;for(r=0;r<c.length;r+=1)n=c[r],t=t||s2(e,n);return a&&t}function xs1(e,a){var t=e.diff(a,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function zs1(e,a){arguments.length===1&&(arguments[0]?ms1(arguments[0])?(e=arguments[0],a=void 0):gs1(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var t=e||b2(),c=wn(t,this).startOf("day"),r=A1.calendarFormat(this,c)||"sameElse",n=a&&(o0(a[r])?a[r].call(this,t):a[r]);return this.format(n||this.localeData().calendar(r,this,b2(t)))}function Cs1(){return new R5(this)}function Ms1(e,a){var t=D4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=v4(a)||"millisecond",a==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(a).valueOf()):!1}function Hs1(e,a){var t=D4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=v4(a)||"millisecond",a==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(a).valueOf()<t.valueOf()):!1}function Vs1(e,a,t,c){var r=D4(e)?e:b2(e),n=D4(a)?a:b2(a);return this.isValid()&&r.isValid()&&n.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(c[1]===")"?this.isBefore(n,t):!this.isAfter(n,t))):!1}function ys1(e,a){var t=D4(e)?e:b2(e),c;return this.isValid()&&t.isValid()?(a=v4(a)||"millisecond",a==="millisecond"?this.valueOf()===t.valueOf():(c=t.valueOf(),this.clone().startOf(a).valueOf()<=c&&c<=this.clone().endOf(a).valueOf())):!1}function bs1(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function ws1(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function ks1(e,a,t){var c,r,n;if(!this.isValid())return NaN;if(c=wn(e,this),!c.isValid())return NaN;switch(r=(c.utcOffset()-this.utcOffset())*6e4,a=v4(a),a){case"year":n=Xa(this,c)/12;break;case"month":n=Xa(this,c);break;case"quarter":n=Xa(this,c)/3;break;case"second":n=(this-c)/1e3;break;case"minute":n=(this-c)/6e4;break;case"hour":n=(this-c)/36e5;break;case"day":n=(this-c-r)/864e5;break;case"week":n=(this-c-r)/6048e5;break;default:n=this-c}return t?n:h4(n)}function Xa(e,a){if(e.date()<a.date())return-Xa(a,e);var t=(a.year()-e.year())*12+(a.month()-e.month()),c=e.clone().add(t,"months"),r,n;return a-c<0?(r=e.clone().add(t-1,"months"),n=(a-c)/(c-r)):(r=e.clone().add(t+1,"months"),n=(a-c)/(r-c)),-(t+n)||0}A1.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";A1.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ls1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _s1(e){if(!this.isValid())return null;var a=e!==!0,t=a?this.clone().utc():this;return t.year()<0||t.year()>9999?Ga(t,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):o0(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ga(t,"Z")):Ga(t,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function As1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",a="",t,c,r,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),t="["+e+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(t+c+r+n)}function Ss1(e){e||(e=this.isUtc()?A1.defaultFormatUtc:A1.defaultFormat);var a=Ga(this,e);return this.localeData().postformat(a)}function Ns1(e,a){return this.isValid()&&(D4(e)&&e.isValid()||b2(e).isValid())?B4({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Ts1(e){return this.from(b2(),e)}function Es1(e,a){return this.isValid()&&(D4(e)&&e.isValid()||b2(e).isValid())?B4({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Fs1(e){return this.to(b2(),e)}function jM(e){var a;return e===void 0?this._locale._abbr:(a=E0(e),a!=null&&(this._locale=a),this)}var XM=p4("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ZM(){return this._locale}var g7=1e3,De=60*g7,x7=60*De,QM=(365*400+97)*24*x7;function Pe(e,a){return(e%a+a)%a}function KM(e,a,t){return e<100&&e>=0?new Date(e+400,a,t)-QM:new Date(e,a,t).valueOf()}function JM(e,a,t){return e<100&&e>=0?Date.UTC(e+400,a,t)-QM:Date.UTC(e,a,t)}function Ds1(e){var a,t;if(e=v4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?JM:KM,e){case"year":a=t(this.year(),0,1);break;case"quarter":a=t(this.year(),this.month()-this.month()%3,1);break;case"month":a=t(this.year(),this.month(),1);break;case"week":a=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=t(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Pe(a+(this._isUTC?0:this.utcOffset()*De),x7);break;case"minute":a=this._d.valueOf(),a-=Pe(a,De);break;case"second":a=this._d.valueOf(),a-=Pe(a,g7);break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function Ps1(e){var a,t;if(e=v4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?JM:KM,e){case"year":a=t(this.year()+1,0,1)-1;break;case"quarter":a=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=t(this.year(),this.month()+1,1)-1;break;case"week":a=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=x7-Pe(a+(this._isUTC?0:this.utcOffset()*De),x7)-1;break;case"minute":a=this._d.valueOf(),a+=De-Pe(a,De)-1;break;case"second":a=this._d.valueOf(),a+=g7-Pe(a,g7)-1;break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function Bs1(){return this._d.valueOf()-(this._offset||0)*6e4}function Os1(){return Math.floor(this.valueOf()/1e3)}function Rs1(){return new Date(this.valueOf())}function Is1(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $s1(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Us1(){return this.isValid()?this.toISOString():null}function Ws1(){return ln(this)}function Ys1(){return j0({},G1(this))}function qs1(){return G1(this).overflow}function Gs1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}R1("N",0,0,"eraAbbr");R1("NN",0,0,"eraAbbr");R1("NNN",0,0,"eraAbbr");R1("NNNN",0,0,"eraName");R1("NNNNN",0,0,"eraNarrow");R1("y",["y",1],"yo","eraYear");R1("y",["yy",2],0,"eraYear");R1("y",["yyy",3],0,"eraYear");R1("y",["yyyy",4],0,"eraYear");N1("N",kn);N1("NN",kn);N1("NNN",kn);N1("NNNN",ro1);N1("NNNNN",no1);p2(["N","NN","NNN","NNNN","NNNNN"],function(e,a,t,c){var r=t._locale.erasParse(e,c,t._strict);r?G1(t).era=r:G1(t).invalidEra=e});N1("y",a8);N1("yy",a8);N1("yyy",a8);N1("yyyy",a8);N1("yo",io1);p2(["y","yy","yyy","yyyy"],L3);p2(["yo"],function(e,a,t,c){var r;t._locale._eraYearOrdinalRegex&&(r=e.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?a[L3]=t._locale.eraYearOrdinalParse(e,r):a[L3]=parseInt(e,10)});function js1(e,a){var t,c,r,n=this._eras||E0("en")._eras;for(t=0,c=n.length;t<c;++t){switch(typeof n[t].since){case"string":r=A1(n[t].since).startOf("day"),n[t].since=r.valueOf();break}switch(typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":r=A1(n[t].until).startOf("day").valueOf(),n[t].until=r.valueOf();break}}return n}function Xs1(e,a,t){var c,r,n=this.eras(),i,s,l;for(e=e.toUpperCase(),c=0,r=n.length;c<r;++c)if(i=n[c].name.toUpperCase(),s=n[c].abbr.toUpperCase(),l=n[c].narrow.toUpperCase(),t)switch(a){case"N":case"NN":case"NNN":if(s===e)return n[c];break;case"NNNN":if(i===e)return n[c];break;case"NNNNN":if(l===e)return n[c];break}else if([i,s,l].indexOf(e)>=0)return n[c]}function Zs1(e,a){var t=e.since<=e.until?1:-1;return a===void 0?A1(e.since).year():A1(e.since).year()+(a-e.offset)*t}function Qs1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].name;return""}function Ks1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].narrow;return""}function Js1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].abbr;return""}function eo1(){var e,a,t,c,r=this.localeData().eras();for(e=0,a=r.length;e<a;++e)if(t=r[e].since<=r[e].until?1:-1,c=this.clone().startOf("day").valueOf(),r[e].since<=c&&c<=r[e].until||r[e].until<=c&&c<=r[e].since)return(this.year()-A1(r[e].since).year())*t+r[e].offset;return this.year()}function ao1(e){return s2(this,"_erasNameRegex")||Ln.call(this),e?this._erasNameRegex:this._erasRegex}function to1(e){return s2(this,"_erasAbbrRegex")||Ln.call(this),e?this._erasAbbrRegex:this._erasRegex}function co1(e){return s2(this,"_erasNarrowRegex")||Ln.call(this),e?this._erasNarrowRegex:this._erasRegex}function kn(e,a){return a.erasAbbrRegex(e)}function ro1(e,a){return a.erasNameRegex(e)}function no1(e,a){return a.erasNarrowRegex(e)}function io1(e,a){return a._eraYearOrdinalRegex||a8}function Ln(){var e=[],a=[],t=[],c=[],r,n,i,s,l,f=this.eras();for(r=0,n=f.length;r<n;++r)i=V0(f[r].name),s=V0(f[r].abbr),l=V0(f[r].narrow),a.push(i),e.push(s),t.push(l),c.push(i),c.push(s),c.push(l);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}R1(0,["gg",2],0,function(){return this.weekYear()%100});R1(0,["GG",2],0,function(){return this.isoWeekYear()%100});function At(e,a){R1(0,[e,e.length],0,a)}At("gggg","weekYear");At("ggggg","weekYear");At("GGGG","isoWeekYear");At("GGGGG","isoWeekYear");N1("G",bt);N1("g",bt);N1("GG",w2,s4);N1("gg",w2,s4);N1("GGGG",pn,mn);N1("gggg",pn,mn);N1("GGGGG",yt,Ht);N1("ggggg",yt,Ht);$5(["gggg","ggggg","GGGG","GGGGG"],function(e,a,t,c){a[c.substr(0,2)]=J1(e)});$5(["gg","GG"],function(e,a,t,c){a[c]=A1.parseTwoDigitYear(e)});function so1(e){return eH.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function oo1(e){return eH.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function lo1(){return y0(this.year(),1,4)}function fo1(){return y0(this.isoWeekYear(),1,4)}function uo1(){var e=this.localeData()._week;return y0(this.year(),e.dow,e.doy)}function ho1(){var e=this.localeData()._week;return y0(this.weekYear(),e.dow,e.doy)}function eH(e,a,t,c,r){var n;return e==null?f5(this,c,r).year:(n=y0(e,c,r),a>n&&(a=n),do1.call(this,e,a,t,c,r))}function do1(e,a,t,c,r){var n=TM(e,a,t,c,r),i=l5(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}R1("Q",0,"Qo","quarter");N1("Q",HM);p2("Q",function(e,a){a[z0]=(J1(e)-1)*3});function mo1(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}R1("D",["DD",2],"Do","date");N1("D",w2,t8);N1("DD",w2,s4);N1("Do",function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient});p2(["D","DD"],j4);p2("Do",function(e,a){a[j4]=J1(e.match(w2)[0])});var aH=c8("Date",!0);R1("DDD",["DDDD",3],"DDDo","dayOfYear");N1("DDD",Vt);N1("DDDD",VM);p2(["DDD","DDDD"],function(e,a,t){t._dayOfYear=J1(e)});function po1(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?a:this.add(e-a,"d")}R1("m",["mm",2],0,"minute");N1("m",w2,vn);N1("mm",w2,s4);p2(["m","mm"],k4);var vo1=c8("Minutes",!1);R1("s",["ss",2],0,"second");N1("s",w2,vn);N1("ss",w2,s4);p2(["s","ss"],C0);var go1=c8("Seconds",!1);R1("S",0,0,function(){return~~(this.millisecond()/100)});R1(0,["SS",2],0,function(){return~~(this.millisecond()/10)});R1(0,["SSS",3],0,"millisecond");R1(0,["SSSS",4],0,function(){return this.millisecond()*10});R1(0,["SSSSS",5],0,function(){return this.millisecond()*100});R1(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});R1(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});R1(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});R1(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});N1("S",Vt,HM);N1("SS",Vt,s4);N1("SSS",Vt,VM);var X0,tH;for(X0="SSSS";X0.length<=9;X0+="S")N1(X0,a8);function xo1(e,a){a[$6]=J1(("0."+e)*1e3)}for(X0="S";X0.length<=9;X0+="S")p2(X0,xo1);tH=c8("Milliseconds",!1);R1("z",0,0,"zoneAbbr");R1("zz",0,0,"zoneName");function zo1(){return this._isUTC?"UTC":""}function Co1(){return this._isUTC?"Coordinated Universal Time":""}var k1=R5.prototype;k1.add=hs1;k1.calendar=zs1;k1.clone=Cs1;k1.diff=ks1;k1.endOf=Ps1;k1.format=Ss1;k1.from=Ns1;k1.fromNow=Ts1;k1.to=Es1;k1.toNow=Fs1;k1.get=An1;k1.invalidAt=qs1;k1.isAfter=Ms1;k1.isBefore=Hs1;k1.isBetween=Vs1;k1.isSame=ys1;k1.isSameOrAfter=bs1;k1.isSameOrBefore=ws1;k1.isValid=Ws1;k1.lang=XM;k1.locale=jM;k1.localeData=ZM;k1.max=Wi1;k1.min=Ui1;k1.parsingFlags=Ys1;k1.set=Sn1;k1.startOf=Ds1;k1.subtract=ds1;k1.toArray=Is1;k1.toObject=$s1;k1.toDate=Rs1;k1.toISOString=_s1;k1.inspect=As1;typeof Symbol<"u"&&Symbol.for!=null&&(k1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});k1.toJSON=Us1;k1.toString=Ls1;k1.unix=Os1;k1.valueOf=Bs1;k1.creationData=Gs1;k1.eraName=Qs1;k1.eraNarrow=Ks1;k1.eraAbbr=Js1;k1.eraYear=eo1;k1.year=wM;k1.isLeapYear=_n1;k1.weekYear=so1;k1.isoWeekYear=oo1;k1.quarter=k1.quarters=mo1;k1.month=SM;k1.daysInMonth=Rn1;k1.week=k1.weeks=jn1;k1.isoWeek=k1.isoWeeks=Xn1;k1.weeksInYear=uo1;k1.weeksInWeekYear=ho1;k1.isoWeeksInYear=lo1;k1.isoWeeksInISOWeekYear=fo1;k1.date=aH;k1.day=k1.days=oi1;k1.weekday=li1;k1.isoWeekday=fi1;k1.dayOfYear=po1;k1.hour=k1.hours=gi1;k1.minute=k1.minutes=vo1;k1.second=k1.seconds=go1;k1.millisecond=k1.milliseconds=tH;k1.utcOffset=Ji1;k1.utc=as1;k1.local=ts1;k1.parseZone=cs1;k1.hasAlignedHourOffset=rs1;k1.isDST=ns1;k1.isLocal=ss1;k1.isUtcOffset=os1;k1.isUtc=WM;k1.isUTC=WM;k1.zoneAbbr=zo1;k1.zoneName=Co1;k1.dates=p4("dates accessor is deprecated. Use date instead.",aH);k1.months=p4("months accessor is deprecated. Use month instead",SM);k1.years=p4("years accessor is deprecated. Use year instead",wM);k1.zone=p4("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",es1);k1.isDSTShifted=p4("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",is1);function Mo1(e){return b2(e*1e3)}function Ho1(){return b2.apply(null,arguments).parseZone()}function cH(e){return e}var o2=un.prototype;o2.calendar=sn1;o2.longDateFormat=un1;o2.invalidDate=dn1;o2.ordinal=vn1;o2.preparse=cH;o2.postformat=cH;o2.relativeTime=xn1;o2.pastFuture=zn1;o2.set=nn1;o2.eras=js1;o2.erasParse=Xs1;o2.erasConvertYear=Zs1;o2.erasAbbrRegex=to1;o2.erasNameRegex=ao1;o2.erasNarrowRegex=co1;o2.months=Dn1;o2.monthsShort=Pn1;o2.monthsParse=On1;o2.monthsRegex=$n1;o2.monthsShortRegex=In1;o2.week=Wn1;o2.firstDayOfYear=Gn1;o2.firstDayOfWeek=qn1;o2.weekdays=ci1;o2.weekdaysMin=ni1;o2.weekdaysShort=ri1;o2.weekdaysParse=si1;o2.weekdaysRegex=ui1;o2.weekdaysShortRegex=hi1;o2.weekdaysMinRegex=di1;o2.isPM=pi1;o2.meridiem=xi1;function z7(e,a,t,c){var r=E0(),n=s0().set(c,a);return r[t](n,e)}function rH(e,a,t){if(A0(e)&&(a=e,e=void 0),e=e||"",a!=null)return z7(e,a,t,"month");var c,r=[];for(c=0;c<12;c++)r[c]=z7(e,c,t,"month");return r}function _n(e,a,t,c){typeof e=="boolean"?(A0(a)&&(t=a,a=void 0),a=a||""):(a=e,t=a,e=!1,A0(a)&&(t=a,a=void 0),a=a||"");var r=E0(),n=e?r._week.dow:0,i,s=[];if(t!=null)return z7(a,(t+n)%7,c,"day");for(i=0;i<7;i++)s[i]=z7(a,(i+n)%7,c,"day");return s}function Vo1(e,a){return rH(e,a,"months")}function yo1(e,a){return rH(e,a,"monthsShort")}function bo1(e,a,t){return _n(e,a,t,"weekdays")}function wo1(e,a,t){return _n(e,a,t,"weekdaysShort")}function ko1(e,a,t){return _n(e,a,t,"weekdaysMin")}i6("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10,t=J1(e%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return e+t}});A1.lang=p4("moment.lang is deprecated. Use moment.locale instead.",i6);A1.langData=p4("moment.langData is deprecated. Use moment.localeData instead.",E0);var h0=Math.abs;function Lo1(){var e=this._data;return this._milliseconds=h0(this._milliseconds),this._days=h0(this._days),this._months=h0(this._months),e.milliseconds=h0(e.milliseconds),e.seconds=h0(e.seconds),e.minutes=h0(e.minutes),e.hours=h0(e.hours),e.months=h0(e.months),e.years=h0(e.years),this}function nH(e,a,t,c){var r=B4(a,t);return e._milliseconds+=c*r._milliseconds,e._days+=c*r._days,e._months+=c*r._months,e._bubble()}function _o1(e,a){return nH(this,e,a,1)}function Ao1(e,a){return nH(this,e,a,-1)}function Rs(e){return e<0?Math.floor(e):Math.ceil(e)}function So1(){var e=this._milliseconds,a=this._days,t=this._months,c=this._data,r,n,i,s,l;return e>=0&&a>=0&&t>=0||e<=0&&a<=0&&t<=0||(e+=Rs(hr(t)+a)*864e5,a=0,t=0),c.milliseconds=e%1e3,r=h4(e/1e3),c.seconds=r%60,n=h4(r/60),c.minutes=n%60,i=h4(n/60),c.hours=i%24,a+=h4(i/24),l=h4(iH(a)),t+=l,a-=Rs(hr(l)),s=h4(t/12),t%=12,c.days=a,c.months=t,c.years=s,this}function iH(e){return e*4800/146097}function hr(e){return e*146097/4800}function No1(e){if(!this.isValid())return NaN;var a,t,c=this._milliseconds;if(e=v4(e),e==="month"||e==="quarter"||e==="year")switch(a=this._days+c/864e5,t=this._months+iH(a),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(a=this._days+Math.round(hr(this._months)),e){case"week":return a/7+c/6048e5;case"day":return a+c/864e5;case"hour":return a*24+c/36e5;case"minute":return a*1440+c/6e4;case"second":return a*86400+c/1e3;case"millisecond":return Math.floor(a*864e5)+c;default:throw new Error("Unknown unit "+e)}}function F0(e){return function(){return this.as(e)}}var sH=F0("ms"),To1=F0("s"),Eo1=F0("m"),Fo1=F0("h"),Do1=F0("d"),Po1=F0("w"),Bo1=F0("M"),Oo1=F0("Q"),Ro1=F0("y"),Io1=sH;function $o1(){return B4(this)}function Uo1(e){return e=v4(e),this.isValid()?this[e+"s"]():NaN}function se(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wo1=se("milliseconds"),Yo1=se("seconds"),qo1=se("minutes"),Go1=se("hours"),jo1=se("days"),Xo1=se("months"),Zo1=se("years");function Qo1(){return h4(this.days()/7)}var v0=Math.round,_e={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ko1(e,a,t,c,r){return r.relativeTime(a||1,!!t,e,c)}function Jo1(e,a,t,c){var r=B4(e).abs(),n=v0(r.as("s")),i=v0(r.as("m")),s=v0(r.as("h")),l=v0(r.as("d")),f=v0(r.as("M")),u=v0(r.as("w")),h=v0(r.as("y")),d=n<=t.ss&&["s",n]||n<t.s&&["ss",n]||i<=1&&["m"]||i<t.m&&["mm",i]||s<=1&&["h"]||s<t.h&&["hh",s]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(d=d||u<=1&&["w"]||u<t.w&&["ww",u]),d=d||f<=1&&["M"]||f<t.M&&["MM",f]||h<=1&&["y"]||["yy",h],d[2]=a,d[3]=+e>0,d[4]=c,Ko1.apply(null,d)}function el1(e){return e===void 0?v0:typeof e=="function"?(v0=e,!0):!1}function al1(e,a){return _e[e]===void 0?!1:a===void 0?_e[e]:(_e[e]=a,e==="s"&&(_e.ss=a-1),!0)}function tl1(e,a){if(!this.isValid())return this.localeData().invalidDate();var t=!1,c=_e,r,n;return typeof e=="object"&&(a=e,e=!1),typeof e=="boolean"&&(t=e),typeof a=="object"&&(c=Object.assign({},_e,a),a.s!=null&&a.ss==null&&(c.ss=a.s-1)),r=this.localeData(),n=Jo1(this,!t,c,r),t&&(n=r.pastFuture(+this,n)),r.postformat(n)}var rc=Math.abs;function xe(e){return(e>0)-(e<0)||+e}function St(){if(!this.isValid())return this.localeData().invalidDate();var e=rc(this._milliseconds)/1e3,a=rc(this._days),t=rc(this._months),c,r,n,i,s=this.asSeconds(),l,f,u,h;return s?(c=h4(e/60),r=h4(c/60),e%=60,c%=60,n=h4(t/12),t%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",f=xe(this._months)!==xe(s)?"-":"",u=xe(this._days)!==xe(s)?"-":"",h=xe(this._milliseconds)!==xe(s)?"-":"",l+"P"+(n?f+n+"Y":"")+(t?f+t+"M":"")+(a?u+a+"D":"")+(r||c||e?"T":"")+(r?h+r+"H":"")+(c?h+c+"M":"")+(e?h+i+"S":"")):"P0D"}var r2=_t.prototype;r2.isValid=Xi1;r2.abs=Lo1;r2.add=_o1;r2.subtract=Ao1;r2.as=No1;r2.asMilliseconds=sH;r2.asSeconds=To1;r2.asMinutes=Eo1;r2.asHours=Fo1;r2.asDays=Do1;r2.asWeeks=Po1;r2.asMonths=Bo1;r2.asQuarters=Oo1;r2.asYears=Ro1;r2.valueOf=Io1;r2._bubble=So1;r2.clone=$o1;r2.get=Uo1;r2.milliseconds=Wo1;r2.seconds=Yo1;r2.minutes=qo1;r2.hours=Go1;r2.days=jo1;r2.weeks=Qo1;r2.months=Xo1;r2.years=Zo1;r2.humanize=tl1;r2.toISOString=St;r2.toString=St;r2.toJSON=St;r2.locale=jM;r2.localeData=ZM;r2.toIsoString=p4("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",St);r2.lang=XM;R1("X",0,0,"unix");R1("x",0,0,"valueOf");N1("x",bt);N1("X",Vn1);p2("X",function(e,a,t){t._d=new Date(parseFloat(e)*1e3)});p2("x",function(e,a,t){t._d=new Date(J1(e))});//! moment.js
|
|
777
|
-
A1.version="2.30.1";cn1(b2);A1.fn=k1;A1.min=Yi1;A1.max=qi1;A1.now=Gi1;A1.utc=s0;A1.unix=Mo1;A1.months=Vo1;A1.isDate=O5;A1.locale=i6;A1.invalid=Mt;A1.duration=B4;A1.isMoment=D4;A1.weekdays=bo1;A1.parseZone=Ho1;A1.localeData=E0;A1.isDuration=ja;A1.monthsShort=yo1;A1.weekdaysMin=ko1;A1.defineLocale=Mn;A1.updateLocale=Hi1;A1.locales=Vi1;A1.weekdaysShort=wo1;A1.normalizeUnits=v4;A1.relativeTimeRounding=el1;A1.relativeTimeThreshold=al1;A1.calendarFormat=xs1;A1.prototype=k1;A1.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function cl1(e,a,t){a&&Object.keys(a).forEach(c=>{if(e.hasOwnProperty(c)&&a[c]!==void 0){if(a[c]===null){e[c]=null;return}if(a[c]instanceof File){const r=a[c];e[c]=r;return}if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(a[c])&&A1(a[c],A1.ISO_8601,!0).isValid()){e[c]=new Date(a[c]);return}if(typeof a[c]=="object"){if(t!=null&&t[c]){if(Array.isArray(a[c])){e[c]=a[c].map(r=>new t[c](r));return}e[c]=new t[c](a[c]);return}if(Array.isArray(a[c])){e[c]=a[c].map(r=>K6.cloneObjectProperties(r));return}e[c]=K6.cloneObjectProperties(a[c]);return}e[c]=a[c]}})}function rl1(e){if(!e)return!1;let a=e;const t=["http://","https://"];for(const c of t)if(e.startsWith(c)){a=e.replace(c,"");break}return a=a.replace(/:(\d*)$/,""),window.location.href.includes(a)}function q6(e){return typeof e=="function"?e():e}function oH(){window.scrollTo({top:0,behavior:"smooth"})}const nl1={key:0},il1={key:0},sl1=o.defineComponent({__name:"PgaDisplayText",props:{text:{type:[String,Number,Function]},icon:{},withUnderlineOnHover:{type:Boolean}},setup(e){const a=e,t=o.computed(()=>q6(a.text));return(c,r)=>c.text?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass({"text__underline-on-hover":c.withUnderlineOnHover})},[c.icon?(o.openBlock(),o.createElementBlock("span",il1,[o.createVNode(v3,{icon:c.icon},null,8,["icon"]),o.createTextVNode(" ")])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.value),1)],2)):(o.openBlock(),o.createElementBlock("span",nl1,"-"))}});const D0=X1(sl1,[["__scopeId","data-v-2cd4e46e"]]),ol1=["type","disabled"],ll1={key:1,class:"button--content"},fl1=["textContent"],ul1=o.defineComponent({__name:"PgaButton",props:{type:{default:"button"},icon:{},text:{},buttonType:{},size:{default:"m"},align:{default:"center"},borderRadius:{},color:{default:"primary"},width:{default:"max-content"},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{}},setup(e){o.useCssVars(p=>({"09af0463":r.value,"594d45af":o.unref(t).input.height,"79cc4bd4":p.width,"29e68a44":f.value,"2bba6dd1":i.value,"27bbb8d0":s.value,a25547fc:l.value,"16aeba48":u.value,a318b0b2:n.value,"98cd94cc":m.value,"42c79d8e":h.value,"7550f01c":d.value}));const a=e,{formOptions:t}=O3.storeToRefs(Z3()),c=o.computed(()=>a.buttonType?a.buttonType:Z3().buttonOptions.buttonType),r=o.computed(()=>{if(a.size==="xs")return"0.8em";if(a.size==="s")return"0.9em";if(a.size==="m")return"1em";if(a.size==="l")return"1.1em";if(a.size==="xl")return"1.2em"}),n=o.computed(()=>{if(a.align==="center")return"center";if(a.align==="left")return"flex-start";if(a.align==="right")return"flex-end"}),i=o.computed(()=>a.borderRadius?a.borderRadius:t.value.input.borderRadius),s=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="filled"?`var(--pga-color-${a.color}-contrast)`:`var(--pga-color-${a.color})`),l=o.computed(()=>a.color==="first"?"none":c.value==="filled"?`var(--pga-color-${a.color})`:`rgba(var(--pga-color-${a.color}-rgb), 0.1)`),f=o.computed(()=>a.color==="first"||c.value==="filled"||c.value==="flat"?"none":`var(--pga-color-${a.color})`),u=o.computed(()=>a.color==="first"?"rgba(var(--pga-color-text-first-rgb), 0.05)":c.value==="filled"?`rgba(var(--pga-color-${a.color}-rgb), 0.9)`:`rgba(var(--pga-color-${a.color}-rgb), 0.2)`),h=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="filled"?`var(--pga-color-${a.color})`:`var(--pga-color-${a.color}-contrast)`),d=o.computed(()=>a.color==="first"?"none":c.value==="filled"?`var(--pga-color-${a.color}-contrast)`:`var(--pga-color-${a.color})`),m=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="flat"?"none":c.value==="filled"?`var(--pga-color-${a.color})`:"none");return(p,v)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{button__disabled:p.disabled,"button__is-loading":p.isLoading}]),type:p.type,disabled:p.disabled||p.isLoading},[p.isLoading?(o.openBlock(),o.createBlock(B5,{key:0,class:"button--spinner",color:p.color},null,8,["color"])):(o.openBlock(),o.createElementBlock("div",ll1,[p.icon?(o.openBlock(),o.createBlock(v3,{key:0,icon:p.icon},null,8,["icon"])):o.createCommentVNode("",!0),p.text?(o.openBlock(),o.createBlock(D0,{key:1,text:p.text},null,8,["text"])):o.createCommentVNode("",!0),!p.icon&&!p.text?o.renderSlot(p.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)])),p.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:2,class:"button--number-to-display",onClick:v[0]||(v[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display--number",textContent:o.toDisplayString(p.numberToDisplay)},null,8,fl1)])):o.createCommentVNode("",!0)],10,ol1))}});const A3=X1(ul1,[["__scopeId","data-v-635508b7"]]);function lH(e,a){const t=c=>{var n;let r=(n=e.value)==null?void 0:n.parentElement;for(;r&&r!==document.body;){const i=window.getComputedStyle(r).overflowX,s=window.getComputedStyle(r).overflowY;(s==="auto"||s==="scroll"||i==="auto"||i==="scroll")&&r[c]("scroll",a),r=r.parentElement}window[c]("scroll",a)};o.onMounted(()=>t("addEventListener")),o.onBeforeUnmount(()=>t("removeEventListener"))}const hl1=o.defineComponent({__name:"PgaDropdown",props:{align:{default:"center"},item:{},options:{}},setup(e){const a=e,t=o.ref(),c=o.ref(),r=o.ref(),n=o.ref(!1),i=o.computed(()=>a.options?a.options.filter(s=>s.ifFn?s.ifFn(a.item):!0):[]);return o.watch(c,s=>{if(!s)return;const l=document.documentElement.clientHeight,f=document.documentElement.clientWidth,u=t.value.getBoundingClientRect(),h={},d=u.top<l/2,m="0.5rem";d?(h.top=`${u.bottom}px`,h["margin-top"]=m):(h.bottom=`${l-u.top}px`,h["margin-bottom"]=m),a.align==="center"?h.left=`${u.left+u.width/2-s.getBoundingClientRect().width/2}px`:a.align==="left"?h.left=`${u.left}px`:a.align==="right"&&(h.right=`${f-u.right}px`),r.value=h}),lH(t,()=>n.value=!1),(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",{ref_key:"dropdownRef",ref:t,class:"dropdown"},[o.createVNode(A3,{icon:"ellipsis-vertical",color:"first",onClick:l[0]||(l[0]=u=>n.value=!0)}),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"contentRef",ref:c,class:"dropdown--content",style:o.normalizeStyle(r.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(A3,{key:u.text,size:"s",align:"left",borderRadius:"0",buttonType:"flat",color:u.color||"first",icon:u.icon,text:u.text,onClick:h=>u.clickFn(s.item)},null,8,["color","icon","text","onClick"]))),128)),s.$slots.default?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("",!0)],4)),[[f,()=>n.value=!1]]):o.createCommentVNode("",!0)]))],512)}}});const fH=X1(hl1,[["__scopeId","data-v-95582594"]]),dl1={class:"information-card-container"},ml1={key:1,class:"information-card"},pl1=["textContent"],vl1=["textContent"],gl1=o.defineComponent({__name:"PgaInfoCardFullPage",props:{type:{},informationCardTitle:{},informationCardDescription:{},isLoading:{type:Boolean}},setup(e){const a=e;return(t,c)=>(o.openBlock(),o.createElementBlock("div",dl1,[a.isLoading?(o.openBlock(),o.createBlock(B5,{key:0})):(o.openBlock(),o.createElementBlock("div",ml1,[a.type==="success"?(o.openBlock(),o.createBlock(v3,{key:0,icon:["fas","circle-check"],class:"information-card--icon information-card--icon__success"})):o.createCommentVNode("",!0),a.type==="danger"?(o.openBlock(),o.createBlock(v3,{key:1,icon:["fas","circle-xmark"],class:"information-card--icon information-card--icon__danger"})):o.createCommentVNode("",!0),o.createElementVNode("span",{class:"information-card--title",textContent:o.toDisplayString(a.informationCardTitle)},null,8,pl1),a.informationCardDescription?(o.openBlock(),o.createElementBlock("span",{key:2,class:"information-card--description",textContent:o.toDisplayString(a.informationCardDescription)},null,8,vl1)):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const xl1=X1(gl1,[["__scopeId","data-v-a46feaff"]]),zl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const a=e;return(t,c)=>(o.openBlock(),o.createBlock(v3,{icon:a.isEnabled?"circle-check":"circle-xmark",color:a.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Cl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:a}){const t=o.useModel(e,"modelValue"),c=e;a({toggleItemSelected:n});const r=o.computed({get(){if(c.item)return!!t.value.find(s=>s.id===c.item.id);for(const i of c.items)if(!t.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?t.value.push(c.item):t.value=t.value.filter(s=>s.id!==c.item.id):i?t.value=[...c.items]:t.value=[]}});function n(){r.value=!r.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected__selected":r.value}]),onClick:s[0]||(s[0]=l=>n())},[r.value?(o.openBlock(),o.createBlock(v3,{key:0,class:"item-selected--check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const dr=X1(Cl1,[["__scopeId","data-v-fffb387e"]]),Ml1={class:"modal--header"},Hl1=["textContent"],Vl1={class:"modal--body"},yl1={key:0,class:"modal--footer"},bl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=a,r=$3("pgaModal");return o.watch(t,n=>m7(!n)),(n,i)=>t.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>t.value=!1)},[o.createElementVNode("div",{class:"modal--content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Ml1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,Hl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(v3,{icon:"xmark"})])]),o.createElementVNode("div",Vl1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",yl1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(A3,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(A3,{text:o.unref(r)("acceptBtn"),color:"success",isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const wl1=X1(bl1,[["__scopeId","data-v-43977872"]]);const kl1={},Ll1={class:"separator"};function _l1(e,a){return o.openBlock(),o.createElementBlock("div",Ll1)}const uH=X1(kl1,[["render",_l1],["__scopeId","data-v-0efe914f"]]),Al1={delayTime:300},Sl1={class:"user-menu"},Nl1={key:0,class:"user-menu--dropdown"},Tl1=["onClick"],El1=o.defineComponent({__name:"PgaUserMenu",props:{dropdownOptions:{}},setup(e){let a=!1,t;const c=o.ref(!1);function r(){a||(c.value=!0)}function n(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,Al1.delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveComponent("PgaIcon"),u=o.resolveComponent("PgaDisplayText"),h=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",Sl1,[o.createElementVNode("div",{class:"user-menu--icon-container",onClick:l[0]||(l[0]=d=>r())},[o.createVNode(f,{class:"user-menu--user-icon",icon:["far","user"]})]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",Nl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.dropdownOptions,(d,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:"dropdown--option",style:o.normalizeStyle({color:d.color}),onClick:p=>i(d)},[o.createVNode(f,{class:"option--icon",icon:d.icon},null,8,["icon"]),o.createVNode(u,{class:"option--label",text:d.label},null,8,["text"])],12,Tl1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const Fl1=X1(El1,[["__scopeId","data-v-4d1e5d6c"]]),Dl1={class:"button-link",type:"button"},Pl1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(r=>({"59a441d3":r.size,"0c87aff2":t.value,"1de55f2c":c.value}));const a=e,t=o.computed(()=>`var(--pga-color-${a.color})`),c=o.computed(()=>`rgba(var(--pga-color-${a.color}-rgb), 0.8)`);return(r,n)=>(o.openBlock(),o.createElementBlock("button",Dl1,[r.text?(o.openBlock(),o.createBlock(D0,{key:0,class:o.normalizeClass(["button-link--text",{"button-link--text__with-underline":!r.preventUnderline}]),text:r.text,icon:r.icon},null,8,["class","text","icon"])):o.renderSlot(r.$slots,"default",{key:1},void 0,!0)]))}});const An=X1(Pl1,[["__scopeId","data-v-5ce19627"]]),Bl1={class:"alert"},Ol1={class:"alert--content"},Rl1=["textContent"],Il1={class:"alert--buttons"},$l1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Number,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=Tf.directive,t=$3("alert");return o.onMounted(()=>m7(!1)),o.onUnmounted(()=>m7(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",Ol1,[o.createVNode(v3,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,Rl1),c.message?(o.openBlock(),o.createBlock(D0,{key:0,class:"alert--message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Il1,[o.createVNode(A3,{class:"alert--button",text:o.unref(t)("cancelBtn"),buttonType:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(A3,{class:"alert--button",text:o.unref(t)("acceptBtn"),buttonType:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const Ul1=X1($l1,[["__scopeId","data-v-5adfe3c3"]]);function hH(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(Ul1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const C7=o.defineComponent({__name:"PgaDeleteButton",props:{withoutText:{type:Boolean},confirmDeleteText:{type:[String,Number,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a,r=$3("pgaDeleteButton");function n(){const i=t.confirmDeleteText?t.confirmDeleteText:r("confirmDeleteText");hH(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(A3,{class:"delete-button",buttonType:"flat",icon:["fas","trash"],text:i.withoutText?void 0:o.unref(r)("text"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>n())},null,8,["text"]))}}),mr=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean}},setup(e){const a=$3("pgaEditButton");return(t,c)=>(o.openBlock(),o.createBlock(A3,{class:"edit-button",buttonType:"flat",color:"sky",icon:["far","pen-to-square"],text:t.withoutText?void 0:o.unref(a)("text"),size:"s",align:"left"},null,8,["text"]))}}),Wl1=["href","target"],Yl1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:a.href,target:a.target},[o.createVNode(D0,{text:a.text,withUnderlineOnHover:""},null,8,["text"])],8,Wl1))}});const ql1=X1(Yl1,[["__scopeId","data-v-b946d5e6"]]),Gl1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=$3("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(A3,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:n[0]||(n[0]=i=>t("click",i))},null,8,["text"]))}});/*!
|
|
777
|
+
A1.version="2.30.1";cn1(b2);A1.fn=k1;A1.min=Yi1;A1.max=qi1;A1.now=Gi1;A1.utc=s0;A1.unix=Mo1;A1.months=Vo1;A1.isDate=O5;A1.locale=i6;A1.invalid=Mt;A1.duration=B4;A1.isMoment=D4;A1.weekdays=bo1;A1.parseZone=Ho1;A1.localeData=E0;A1.isDuration=ja;A1.monthsShort=yo1;A1.weekdaysMin=ko1;A1.defineLocale=Mn;A1.updateLocale=Hi1;A1.locales=Vi1;A1.weekdaysShort=wo1;A1.normalizeUnits=v4;A1.relativeTimeRounding=el1;A1.relativeTimeThreshold=al1;A1.calendarFormat=xs1;A1.prototype=k1;A1.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function cl1(e,a,t){a&&Object.keys(a).forEach(c=>{if(e.hasOwnProperty(c)&&a[c]!==void 0){if(a[c]===null){e[c]=null;return}if(a[c]instanceof File){const r=a[c];e[c]=r;return}if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(a[c])&&A1(a[c],A1.ISO_8601,!0).isValid()){e[c]=new Date(a[c]);return}if(typeof a[c]=="object"){if(t!=null&&t[c]){if(Array.isArray(a[c])){e[c]=a[c].map(r=>new t[c](r));return}e[c]=new t[c](a[c]);return}if(Array.isArray(a[c])){e[c]=a[c].map(r=>K6.cloneObjectProperties(r));return}e[c]=K6.cloneObjectProperties(a[c]);return}e[c]=a[c]}})}function rl1(e){if(!e)return!1;let a=e;const t=["http://","https://"];for(const c of t)if(e.startsWith(c)){a=e.replace(c,"");break}return a=a.replace(/:(\d*)$/,""),window.location.href.includes(a)}function q6(e){return typeof e=="function"?e():e}function oH(){window.scrollTo({top:0,behavior:"smooth"})}const nl1={key:0},il1={key:0},sl1=o.defineComponent({__name:"PgaDisplayText",props:{text:{type:[String,Number,Function]},icon:{},showEmptyText:{type:Boolean},withUnderlineOnHover:{type:Boolean}},setup(e){const a=e,t=o.computed(()=>q6(a.text));return(c,r)=>c.text?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass({"text__underline-on-hover":c.withUnderlineOnHover})},[c.icon?(o.openBlock(),o.createElementBlock("span",il1,[o.createVNode(v3,{icon:c.icon},null,8,["icon"]),o.createTextVNode(" ")])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.value),1)],2)):(o.openBlock(),o.createElementBlock("span",nl1,o.toDisplayString(c.showEmptyText?"":"-"),1))}});const D0=X1(sl1,[["__scopeId","data-v-8beaebd8"]]),ol1=["type","disabled"],ll1={key:1,class:"button--content"},fl1=["textContent"],ul1=o.defineComponent({__name:"PgaButton",props:{type:{default:"button"},icon:{},text:{},buttonType:{},size:{default:"m"},align:{default:"center"},borderRadius:{},color:{default:"primary"},width:{default:"max-content"},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{}},setup(e){o.useCssVars(p=>({"09af0463":r.value,"594d45af":o.unref(t).input.height,"79cc4bd4":p.width,"29e68a44":f.value,"2bba6dd1":i.value,"27bbb8d0":s.value,a25547fc:l.value,"16aeba48":u.value,a318b0b2:n.value,"98cd94cc":m.value,"42c79d8e":h.value,"7550f01c":d.value}));const a=e,{formOptions:t}=O3.storeToRefs(Z3()),c=o.computed(()=>a.buttonType?a.buttonType:Z3().buttonOptions.buttonType),r=o.computed(()=>{if(a.size==="xs")return"0.8em";if(a.size==="s")return"0.9em";if(a.size==="m")return"1em";if(a.size==="l")return"1.1em";if(a.size==="xl")return"1.2em"}),n=o.computed(()=>{if(a.align==="center")return"center";if(a.align==="left")return"flex-start";if(a.align==="right")return"flex-end"}),i=o.computed(()=>a.borderRadius?a.borderRadius:t.value.input.borderRadius),s=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="filled"?`var(--pga-color-${a.color}-contrast)`:`var(--pga-color-${a.color})`),l=o.computed(()=>a.color==="first"?"none":c.value==="filled"?`var(--pga-color-${a.color})`:`rgba(var(--pga-color-${a.color}-rgb), 0.1)`),f=o.computed(()=>a.color==="first"||c.value==="filled"||c.value==="flat"?"none":`var(--pga-color-${a.color})`),u=o.computed(()=>a.color==="first"?"rgba(var(--pga-color-text-first-rgb), 0.05)":c.value==="filled"?`rgba(var(--pga-color-${a.color}-rgb), 0.9)`:`rgba(var(--pga-color-${a.color}-rgb), 0.2)`),h=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="filled"?`var(--pga-color-${a.color})`:`var(--pga-color-${a.color}-contrast)`),d=o.computed(()=>a.color==="first"?"none":c.value==="filled"?`var(--pga-color-${a.color}-contrast)`:`var(--pga-color-${a.color})`),m=o.computed(()=>a.color==="first"?"var(--pga-color-text-first)":c.value==="flat"?"none":c.value==="filled"?`var(--pga-color-${a.color})`:"none");return(p,v)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{button__disabled:p.disabled,"button__is-loading":p.isLoading}]),type:p.type,disabled:p.disabled||p.isLoading},[p.isLoading?(o.openBlock(),o.createBlock(B5,{key:0,class:"button--spinner",color:p.color},null,8,["color"])):(o.openBlock(),o.createElementBlock("div",ll1,[p.icon?(o.openBlock(),o.createBlock(v3,{key:0,icon:p.icon},null,8,["icon"])):o.createCommentVNode("",!0),p.text?(o.openBlock(),o.createBlock(D0,{key:1,text:p.text},null,8,["text"])):o.createCommentVNode("",!0),!p.icon&&!p.text?o.renderSlot(p.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)])),p.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:2,class:"button--number-to-display",onClick:v[0]||(v[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display--number",textContent:o.toDisplayString(p.numberToDisplay)},null,8,fl1)])):o.createCommentVNode("",!0)],10,ol1))}});const A3=X1(ul1,[["__scopeId","data-v-635508b7"]]);function lH(e,a){const t=c=>{var n;let r=(n=e.value)==null?void 0:n.parentElement;for(;r&&r!==document.body;){const i=window.getComputedStyle(r).overflowX,s=window.getComputedStyle(r).overflowY;(s==="auto"||s==="scroll"||i==="auto"||i==="scroll")&&r[c]("scroll",a),r=r.parentElement}window[c]("scroll",a)};o.onMounted(()=>t("addEventListener")),o.onBeforeUnmount(()=>t("removeEventListener"))}const hl1=o.defineComponent({__name:"PgaDropdown",props:{align:{default:"center"},item:{},options:{}},setup(e){const a=e,t=o.ref(),c=o.ref(),r=o.ref(),n=o.ref(!1),i=o.computed(()=>a.options?a.options.filter(s=>s.ifFn?s.ifFn(a.item):!0):[]);return o.watch(c,s=>{if(!s)return;const l=document.documentElement.clientHeight,f=document.documentElement.clientWidth,u=t.value.getBoundingClientRect(),h={},d=u.top<l/2,m="0.5rem";d?(h.top=`${u.bottom}px`,h["margin-top"]=m):(h.bottom=`${l-u.top}px`,h["margin-bottom"]=m),a.align==="center"?h.left=`${u.left+u.width/2-s.getBoundingClientRect().width/2}px`:a.align==="left"?h.left=`${u.left}px`:a.align==="right"&&(h.right=`${f-u.right}px`),r.value=h}),lH(t,()=>n.value=!1),(s,l)=>{const f=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",{ref_key:"dropdownRef",ref:t,class:"dropdown"},[o.createVNode(A3,{icon:"ellipsis-vertical",color:"first",onClick:l[0]||(l[0]=u=>n.value=!0)}),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"contentRef",ref:c,class:"dropdown--content",style:o.normalizeStyle(r.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(A3,{key:u.text,size:"s",align:"left",borderRadius:"0",buttonType:"flat",color:u.color||"first",icon:u.icon,text:u.text,onClick:h=>u.clickFn(s.item)},null,8,["color","icon","text","onClick"]))),128)),s.$slots.default?o.renderSlot(s.$slots,"default",{key:0},void 0,!0):o.createCommentVNode("",!0)],4)),[[f,()=>n.value=!1]]):o.createCommentVNode("",!0)]))],512)}}});const fH=X1(hl1,[["__scopeId","data-v-95582594"]]),dl1={class:"information-card-container"},ml1={key:1,class:"information-card"},pl1=["textContent"],vl1=["textContent"],gl1=o.defineComponent({__name:"PgaInfoCardFullPage",props:{type:{},informationCardTitle:{},informationCardDescription:{},isLoading:{type:Boolean}},setup(e){const a=e;return(t,c)=>(o.openBlock(),o.createElementBlock("div",dl1,[a.isLoading?(o.openBlock(),o.createBlock(B5,{key:0})):(o.openBlock(),o.createElementBlock("div",ml1,[a.type==="success"?(o.openBlock(),o.createBlock(v3,{key:0,icon:["fas","circle-check"],class:"information-card--icon information-card--icon__success"})):o.createCommentVNode("",!0),a.type==="danger"?(o.openBlock(),o.createBlock(v3,{key:1,icon:["fas","circle-xmark"],class:"information-card--icon information-card--icon__danger"})):o.createCommentVNode("",!0),o.createElementVNode("span",{class:"information-card--title",textContent:o.toDisplayString(a.informationCardTitle)},null,8,pl1),a.informationCardDescription?(o.openBlock(),o.createElementBlock("span",{key:2,class:"information-card--description",textContent:o.toDisplayString(a.informationCardDescription)},null,8,vl1)):o.createCommentVNode("",!0),o.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const xl1=X1(gl1,[["__scopeId","data-v-a46feaff"]]),zl1=o.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const a=e;return(t,c)=>(o.openBlock(),o.createBlock(v3,{icon:a.isEnabled?"circle-check":"circle-xmark",color:a.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Cl1=o.defineComponent({__name:"PgaItemSelected",props:o.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:a}){const t=o.useModel(e,"modelValue"),c=e;a({toggleItemSelected:n});const r=o.computed({get(){if(c.item)return!!t.value.find(s=>s.id===c.item.id);for(const i of c.items)if(!t.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?t.value.push(c.item):t.value=t.value.filter(s=>s.id!==c.item.id):i?t.value=[...c.items]:t.value=[]}});function n(){r.value=!r.value}return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["item-selected",{"item-selected__selected":r.value}]),onClick:s[0]||(s[0]=l=>n())},[r.value?(o.openBlock(),o.createBlock(v3,{key:0,class:"item-selected--check-icon",icon:"check"})):o.createCommentVNode("",!0)],2))}});const dr=X1(Cl1,[["__scopeId","data-v-fffb387e"]]),Ml1={class:"modal--header"},Hl1=["textContent"],Vl1={class:"modal--body"},yl1={key:0,class:"modal--footer"},bl1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=a,r=$3("pgaModal");return o.watch(t,n=>m7(!n)),(n,i)=>t.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>t.value=!1)},[o.createElementVNode("div",{class:"modal--content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Ml1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,Hl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(v3,{icon:"xmark"})])]),o.createElementVNode("div",Vl1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",yl1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(A3,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(A3,{text:o.unref(r)("acceptBtn"),color:"success",isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const wl1=X1(bl1,[["__scopeId","data-v-43977872"]]);const kl1={},Ll1={class:"separator"};function _l1(e,a){return o.openBlock(),o.createElementBlock("div",Ll1)}const uH=X1(kl1,[["render",_l1],["__scopeId","data-v-0efe914f"]]),Al1={delayTime:300},Sl1={class:"user-menu"},Nl1={key:0,class:"user-menu--dropdown"},Tl1=["onClick"],El1=o.defineComponent({__name:"PgaUserMenu",props:{dropdownOptions:{}},setup(e){let a=!1,t;const c=o.ref(!1);function r(){a||(c.value=!0)}function n(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,Al1.delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveComponent("PgaIcon"),u=o.resolveComponent("PgaDisplayText"),h=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",Sl1,[o.createElementVNode("div",{class:"user-menu--icon-container",onClick:l[0]||(l[0]=d=>r())},[o.createVNode(f,{class:"user-menu--user-icon",icon:["far","user"]})]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",Nl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.dropdownOptions,(d,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:"dropdown--option",style:o.normalizeStyle({color:d.color}),onClick:p=>i(d)},[o.createVNode(f,{class:"option--icon",icon:d.icon},null,8,["icon"]),o.createVNode(u,{class:"option--label",text:d.label},null,8,["text"])],12,Tl1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const Fl1=X1(El1,[["__scopeId","data-v-4d1e5d6c"]]),Dl1={class:"button-link",type:"button"},Pl1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(r=>({"59a441d3":r.size,"0c87aff2":t.value,"1de55f2c":c.value}));const a=e,t=o.computed(()=>`var(--pga-color-${a.color})`),c=o.computed(()=>`rgba(var(--pga-color-${a.color}-rgb), 0.8)`);return(r,n)=>(o.openBlock(),o.createElementBlock("button",Dl1,[r.text?(o.openBlock(),o.createBlock(D0,{key:0,class:o.normalizeClass(["button-link--text",{"button-link--text__with-underline":!r.preventUnderline}]),text:r.text,icon:r.icon},null,8,["class","text","icon"])):o.renderSlot(r.$slots,"default",{key:1},void 0,!0)]))}});const An=X1(Pl1,[["__scopeId","data-v-5ce19627"]]),Bl1={class:"alert"},Ol1={class:"alert--content"},Rl1=["textContent"],Il1={class:"alert--buttons"},$l1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Number,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=Tf.directive,t=$3("alert");return o.onMounted(()=>m7(!1)),o.onUnmounted(()=>m7(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",Bl1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",Ol1,[o.createVNode(v3,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,Rl1),c.message?(o.openBlock(),o.createBlock(D0,{key:0,class:"alert--message",text:c.message},null,8,["text"])):o.createCommentVNode("",!0),o.createElementVNode("div",Il1,[o.createVNode(A3,{class:"alert--button",text:o.unref(t)("cancelBtn"),buttonType:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(A3,{class:"alert--button",text:o.unref(t)("acceptBtn"),buttonType:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const Ul1=X1($l1,[["__scopeId","data-v-5adfe3c3"]]);function hH(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(Ul1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const C7=o.defineComponent({__name:"PgaDeleteButton",props:{withoutText:{type:Boolean},confirmDeleteText:{type:[String,Number,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a,r=$3("pgaDeleteButton");function n(){const i=t.confirmDeleteText?t.confirmDeleteText:r("confirmDeleteText");hH(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(A3,{class:"delete-button",buttonType:"flat",icon:["fas","trash"],text:i.withoutText?void 0:o.unref(r)("text"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>n())},null,8,["text"]))}}),mr=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean}},setup(e){const a=$3("pgaEditButton");return(t,c)=>(o.openBlock(),o.createBlock(A3,{class:"edit-button",buttonType:"flat",color:"sky",icon:["far","pen-to-square"],text:t.withoutText?void 0:o.unref(a)("text"),size:"s",align:"left"},null,8,["text"]))}}),Wl1=["href","target"],Yl1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:a.href,target:a.target},[o.createVNode(D0,{text:a.text,withUnderlineOnHover:""},null,8,["text"])],8,Wl1))}});const ql1=X1(Yl1,[["__scopeId","data-v-b946d5e6"]]),Gl1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=$3("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(A3,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:n[0]||(n[0]=i=>t("click",i))},null,8,["text"]))}});/*!
|
|
778
778
|
* @kurkle/color v0.3.2
|
|
779
779
|
* https://github.com/kurkle/color#readme
|
|
780
780
|
* (c) 2023 Jukka Kurkela
|
|
@@ -828,4 +828,4 @@ A1.version="2.30.1";cn1(b2);A1.fn=k1;A1.min=Yi1;A1.max=qi1;A1.now=Gi1;A1.utc=s0;
|
|
|
828
828
|
`),t=n2(a.replace(/<[^>]*>/g,""));return[t]}var yf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function bb(e,a){var t=a||{},c=Mi(e),r=[],n,i,s={name:""},l="",f=0,u,h,d={},m=[],p=t.dense?[]:{},v,g,z={value:""},M="",x=0,y=[],k=-1,_=-1,H={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,L={},W=[],Z={},E=0,e1=0,c1=[],F=1,R=1,X=[],h1={Names:[]},J={},p1=["",""],r1=[],A={},w="",D=0,Y=!1,P=!1,O=0;for(V5.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");v=V5.exec(c);)switch(v[3]=v[3].replace(/_.*$/,"")){case"table":case"工作表":v[1]==="/"?(H.e.c>=H.s.c&&H.e.r>=H.s.r?p["!ref"]=c2(H):p["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=H.e.r&&(p["!fullref"]=p["!ref"],H.e.r=t.sheetRows-1,p["!ref"]=c2(H)),W.length&&(p["!merges"]=W),c1.length&&(p["!rows"]=c1),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),m.push(u.name),d[u.name]=p,P=!1):v[0].charAt(v[0].length-2)!=="/"&&(u=$1(v[0],!1),k=_=-1,H.s.r=H.s.c=1e7,H.e.r=H.e.c=0,p=t.dense?[]:{},W=[],c1=[],P=!0);break;case"table-row-group":v[1]==="/"?--T:++T;break;case"table-row":case"行":if(v[1]==="/"){k+=F,F=1;break}if(h=$1(v[0],!1),h.行号?k=h.行号-1:k==-1&&(k=0),F=+h["number-rows-repeated"]||1,F<10)for(O=0;O<F;++O)T>0&&(c1[k+O]={level:T});_=-1;break;case"covered-table-cell":v[1]!=="/"&&++_,t.sheetStubs&&(t.dense?(p[k]||(p[k]=[]),p[k][_]={t:"z"}):p[W1({r:k,c:_})]={t:"z"}),M="",y=[];break;case"table-cell":case"数据":if(v[0].charAt(v[0].length-2)==="/")++_,z=$1(v[0],!1),R=parseInt(z["number-columns-repeated"]||"1",10),g={t:"z",v:null},z.formula&&t.cellFormula!=!1&&(g.f=xf(n2(z.formula))),(z.数据类型||z["value-type"])=="string"&&(g.t="s",g.v=n2(z["string-value"]||""),t.dense?(p[k]||(p[k]=[]),p[k][_]=g):p[W1({r:k,c:_})]=g),_+=R-1;else if(v[1]!=="/"){++_,M="",x=0,y=[],R=1;var u1=F?k+F-1:k;if(_>H.e.c&&(H.e.c=_),_<H.s.c&&(H.s.c=_),k<H.s.r&&(H.s.r=k),u1>H.e.r&&(H.e.r=u1),z=$1(v[0],!1),r1=[],A={},g={t:z.数据类型||z["value-type"],v:null},t.cellFormula)if(z.formula&&(z.formula=n2(z.formula)),z["number-matrix-columns-spanned"]&&z["number-matrix-rows-spanned"]&&(E=parseInt(z["number-matrix-rows-spanned"],10)||0,e1=parseInt(z["number-matrix-columns-spanned"],10)||0,Z={s:{r:k,c:_},e:{r:k+E-1,c:_+e1-1}},g.F=c2(Z),X.push([Z,g.F])),z.formula)g.f=xf(z.formula);else for(O=0;O<X.length;++O)k>=X[O][0].s.r&&k<=X[O][0].e.r&&_>=X[O][0].s.c&&_<=X[O][0].e.c&&(g.F=X[O][1]);switch((z["number-columns-spanned"]||z["number-rows-spanned"])&&(E=parseInt(z["number-rows-spanned"],10)||0,e1=parseInt(z["number-columns-spanned"],10)||0,Z={s:{r:k,c:_},e:{r:k+E-1,c:_+e1-1}},W.push(Z)),z["number-columns-repeated"]&&(R=parseInt(z["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=_2(z["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(z.value);break;case"percentage":g.t="n",g.v=parseFloat(z.value);break;case"currency":g.t="n",g.v=parseFloat(z.value);break;case"date":g.t="d",g.v=p3(z["date-value"]),t.cellDates||(g.t="n",g.v=I3(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=rC1(z["time-value"])/86400,t.cellDates&&(g.t="d",g.v=$t(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(z.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",z["string-value"]!=null&&(M=n2(z["string-value"]),y=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(Y=!1,g.t==="s"&&(g.v=M||"",y.length&&(g.R=y),Y=x==0),J.Target&&(g.l=J),r1.length>0&&(g.c=r1,r1=[]),M&&t.cellText!==!1&&(g.w=M),Y&&(g.t="z",delete g.v),(!Y||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=k))for(var n1=0;n1<F;++n1){if(R=parseInt(z["number-columns-repeated"]||"1",10),t.dense)for(p[k+n1]||(p[k+n1]=[]),p[k+n1][_]=n1==0?g:z3(g);--R>0;)p[k+n1][_+R]=z3(g);else for(p[W1({r:k+n1,c:_})]=g;--R>0;)p[W1({r:k+n1,c:_+R})]=z3(g);H.e.c<=_&&(H.e.c=_)}R=parseInt(z["number-columns-repeated"]||"1",10),_+=R-1,R=0,g={},M="",y=[]}J={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[3],!0]);break;case"annotation":if(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n;A.t=M,y.length&&(A.R=y),A.a=w,r1.push(A)}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[3],!1]);w="",D=0,M="",x=0,y=[];break;case"creator":v[1]==="/"?w=c.slice(D,v.index):D=v.index+v[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[3],!1]);M="",x=0,y=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(v[1]==="/"){if(L[s.name]=l,(n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&(l="",s=$1(v[0],!1),r.push([v[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(r[r.length-1][0]){case"time-style":case"date-style":i=$1(v[0],!1),l+=yf[v[3]][i.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(r[r.length-1][0]){case"time-style":case"date-style":i=$1(v[0],!1),l+=yf[v[3]][i.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(v[0].slice(-2)==="/>")break;if(v[1]==="/")switch(r[r.length-1][0]){case"number-style":case"date-style":case"time-style":l+=c.slice(f,v.index);break}else f=v.index+v[0].length;break;case"named-range":i=$1(v[0],!1),p1=Pc(i["cell-range-address"]);var d1={Name:i.name,Ref:p1[0]+"!"+p1[1]};P&&(d1.Sheet=m.length),h1.Names.push(d1);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(r[r.length-1][0])>-1)break;if(v[1]==="/"&&(!z||!z["string-value"])){var z1=Wk1(c.slice(x,v.index));M=(M.length>0?M+`
|
|
829
829
|
`:"")+z1[0]}else $1(v[0],!1),x=v.index+v[0].length;break;case"s":break;case"database-range":if(v[1]==="/")break;try{p1=Pc($1(v[0])["target-range-address"]),d[p1[0]]["!autofilter"]={ref:p1[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(v[1]!=="/"){if(J=$1(v[0],!1),!J.href)break;J.Target=n2(J.href),delete J.href,J.Target.charAt(0)=="#"&&J.Target.indexOf(".")>-1?(p1=Pc(J.Target.slice(1)),J.Target="#"+p1[0]+"!"+p1[1]):J.Target.match(/^\.\.[\\\/]/)&&(J.Target=J.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(v[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(t.WTF)throw new Error(v)}}var V={Sheets:d,SheetNames:m,Workbook:h1};return t.bookSheets&&delete V.Sheets,V}function bf(e,a){a=a||{},u4(e,"META-INF/manifest.xml")&&iM1(J2(e,"META-INF/manifest.xml"),a);var t=a4(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var c=bb(C2(t),a);return u4(e,"meta.xml")&&(c.Props=By(J2(e,"meta.xml"))),c}function wf(e,a){return bb(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ei(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Or(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):C2(he(e))}function Rr(e){var a=e.reduce(function(r,n){return r+n.length},0),t=new Uint8Array(a),c=0;return e.forEach(function(r){t.set(r,c),c+=r.length}),t}function kf(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Yk1(e,a){for(var t=(e[a+15]&127)<<7|e[a+14]>>1,c=e[a+14]&1,r=a+13;r>=a;--r)c=c*256+e[r];return(e[a+15]&128?-c:c)*Math.pow(10,t-6176)}function k5(e,a){var t=a?a[0]:0,c=e[t]&127;e:if(e[t++]>=128&&(c|=(e[t]&127)<<7,e[t++]<128||(c|=(e[t]&127)<<14,e[t++]<128)||(c|=(e[t]&127)<<21,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return a&&(a[0]=t),c}function o3(e){var a=0,t=e[a]&127;e:if(e[a++]>=128){if(t|=(e[a]&127)<<7,e[a++]<128||(t|=(e[a]&127)<<14,e[a++]<128)||(t|=(e[a]&127)<<21,e[a++]<128))break e;t|=(e[a]&127)<<28}return t}function k3(e){for(var a=[],t=[0];t[0]<e.length;){var c=t[0],r=k5(e,t),n=r&7;r=Math.floor(r/8);var i=0,s;if(r==0)break;switch(n){case 0:{for(var l=t[0];e[t[0]++]>=128;);s=e.slice(l,t[0])}break;case 5:i=4,s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 1:i=8,s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 2:i=k5(e,t),s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(n," for Field ").concat(r," at offset ").concat(c))}var f={data:s,type:n};a[r]==null?a[r]=[f]:a[r].push(f)}return a}function Fi(e,a){return(e==null?void 0:e.map(function(t){return a(t.data)}))||[]}function qk1(e){for(var a,t=[],c=[0];c[0]<e.length;){var r=k5(e,c),n=k3(e.slice(c[0],c[0]+r));c[0]+=r;var i={id:o3(n[1][0].data),messages:[]};n[2].forEach(function(s){var l=k3(s.data),f=o3(l[3][0].data);i.messages.push({meta:l,data:e.slice(c[0],c[0]+f)}),c[0]+=f}),(a=n[3])!=null&&a[0]&&(i.merge=o3(n[3][0].data)>>>0>0),t.push(i)}return t}function Gk1(e,a){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],c=k5(a,t),r=[];t[0]<a.length;){var n=a[t[0]]&3;if(n==0){var i=a[t[0]++]>>2;if(i<60)++i;else{var s=i-59;i=a[t[0]],s>1&&(i|=a[t[0]+1]<<8),s>2&&(i|=a[t[0]+2]<<16),s>3&&(i|=a[t[0]+3]<<24),i>>>=0,i++,t[0]+=s}r.push(a.slice(t[0],t[0]+i)),t[0]+=i;continue}else{var l=0,f=0;if(n==1?(f=(a[t[0]]>>2&7)+4,l=(a[t[0]++]&224)<<3,l|=a[t[0]++]):(f=(a[t[0]++]>>2)+1,n==2?(l=a[t[0]]|a[t[0]+1]<<8,t[0]+=2):(l=(a[t[0]]|a[t[0]+1]<<8|a[t[0]+2]<<16|a[t[0]+3]<<24)>>>0,t[0]+=4)),r=[Rr(r)],l==0)throw new Error("Invalid offset 0");if(l>r[0].length)throw new Error("Invalid offset beyond length");if(f>=l)for(r.push(r[0].slice(-l)),f-=l;f>=r[r.length-1].length;)r.push(r[r.length-1]),f-=r[r.length-1].length;r.push(r[0].slice(-l,-l+f))}}var u=Rr(r);if(u.length!=c)throw new Error("Unexpected length: ".concat(u.length," != ").concat(c));return u}function jk1(e){for(var a=[],t=0;t<e.length;){var c=e[t++],r=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,a.push(Gk1(c,e.slice(t,t+r))),t+=r}if(t!==e.length)throw new Error("data is not a valid framed stream!");return Rr(a)}function Xk1(e,a,t,c){var r=Ei(e),n=r.getUint32(4,!0),i=(c>1?12:8)+kf(n&(c>1?3470:398))*4,s=-1,l=-1,f=NaN,u=new Date(2001,0,1);n&512&&(s=r.getUint32(i,!0),i+=4),i+=kf(n&(c>1?12288:4096))*4,n&16&&(l=r.getUint32(i,!0),i+=4),n&32&&(f=r.getFloat64(i,!0),i+=8),n&64&&(u.setTime(u.getTime()+r.getFloat64(i,!0)*1e3),i+=8);var h;switch(e[2]){case 0:break;case 2:h={t:"n",v:f};break;case 3:h={t:"s",v:a[l]};break;case 5:h={t:"d",v:u};break;case 6:h={t:"b",v:f>0};break;case 7:h={t:"n",v:f/86400};break;case 8:h={t:"e",v:0};break;case 9:if(s>-1)h={t:"s",v:t[s]};else if(l>-1)h={t:"s",v:a[l]};else if(!isNaN(f))h={t:"n",v:f};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return h}function Zk1(e,a,t){var c=Ei(e),r=c.getUint32(8,!0),n=12,i=-1,s=-1,l=NaN,f=NaN,u=new Date(2001,0,1);r&1&&(l=Yk1(e,n),n+=16),r&2&&(f=c.getFloat64(n,!0),n+=8),r&4&&(u.setTime(u.getTime()+c.getFloat64(n,!0)*1e3),n+=8),r&8&&(s=c.getUint32(n,!0),n+=4),r&16&&(i=c.getUint32(n,!0),n+=4);var h;switch(e[1]){case 0:break;case 2:h={t:"n",v:l};break;case 3:h={t:"s",v:a[s]};break;case 5:h={t:"d",v:u};break;case 6:h={t:"b",v:f>0};break;case 7:h={t:"n",v:f/86400};break;case 8:h={t:"e",v:0};break;case 9:if(i>-1)h={t:"s",v:t[i]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(r&31," : ").concat(e.slice(0,4)));break;case 10:h={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(r&31," : ").concat(e.slice(0,4)))}return h}function Qk1(e,a,t){switch(e[0]){case 0:case 1:case 2:case 3:return Xk1(e,a,t,e[0]);case 5:return Zk1(e,a,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function h6(e){var a=k3(e);return k5(a[1][0].data)}function Lf(e,a){var t=k3(a.data),c=o3(t[1][0].data),r=t[3],n=[];return(r||[]).forEach(function(i){var s=k3(i.data),l=o3(s[1][0].data)>>>0;switch(c){case 1:n[l]=Or(s[3][0].data);break;case 8:{var f=e[h6(s[9][0].data)][0],u=k3(f.data),h=e[h6(u[1][0].data)][0],d=o3(h.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var m=k3(h.data);n[l]=m[3].map(function(p){return Or(p.data)}).join("")}break}}),n}function Kk1(e,a){var t,c,r,n,i,s,l,f,u,h,d,m,p,v,g=k3(e),z=o3(g[1][0].data)>>>0,M=o3(g[2][0].data)>>>0,x=((c=(t=g[8])==null?void 0:t[0])==null?void 0:c.data)&&o3(g[8][0].data)>0||!1,y,k;if((n=(r=g[7])==null?void 0:r[0])!=null&&n.data&&a!=0)y=(s=(i=g[7])==null?void 0:i[0])==null?void 0:s.data,k=(f=(l=g[6])==null?void 0:l[0])==null?void 0:f.data;else if((h=(u=g[4])==null?void 0:u[0])!=null&&h.data&&a!=1)y=(m=(d=g[4])==null?void 0:d[0])==null?void 0:m.data,k=(v=(p=g[3])==null?void 0:p[0])==null?void 0:v.data;else throw"NUMBERS Tile missing ".concat(a," cell storage");for(var _=x?4:1,H=Ei(y),T=[],L=0;L<y.length/2;++L){var W=H.getUint16(L*2,!0);W<65535&&T.push([L,W])}if(T.length!=M)throw"Expected ".concat(M," cells, found ").concat(T.length);var Z=[];for(L=0;L<T.length-1;++L)Z[T[L][0]]=k.subarray(T[L][1]*_,T[L+1][1]*_);return T.length>=1&&(Z[T[T.length-1][0]]=k.subarray(T[T.length-1][1]*_)),{R:z,cells:Z}}function Jk1(e,a){var t,c=k3(a.data),r=(t=c==null?void 0:c[7])!=null&&t[0]?o3(c[7][0].data)>>>0>0?1:0:-1,n=Fi(c[5],function(i){return Kk1(i,r)});return{nrows:o3(c[4][0].data)>>>0,data:n.reduce(function(i,s){return i[s.R]||(i[s.R]=[]),s.cells.forEach(function(l,f){if(i[s.R][f])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(f));i[s.R][f]=l}),i},[])}}function eL1(e,a,t){var c,r=k3(a.data),n={s:{r:0,c:0},e:{r:0,c:0}};if(n.e.r=(o3(r[6][0].data)>>>0)-1,n.e.r<0)throw new Error("Invalid row varint ".concat(r[6][0].data));if(n.e.c=(o3(r[7][0].data)>>>0)-1,n.e.c<0)throw new Error("Invalid col varint ".concat(r[7][0].data));t["!ref"]=c2(n);var i=k3(r[4][0].data),s=Lf(e,e[h6(i[4][0].data)][0]),l=(c=i[17])!=null&&c[0]?Lf(e,e[h6(i[17][0].data)][0]):[],f=k3(i[3][0].data),u=0;f[1].forEach(function(h){var d=k3(h.data),m=e[h6(d[2][0].data)][0],p=o3(m.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var v=Jk1(e,m);v.data.forEach(function(g,z){g.forEach(function(M,x){var y=W1({r:u+z,c:x}),k=Qk1(M,s,l);k&&(t[y]=k)})}),u+=v.nrows})}function aL1(e,a){var t=k3(a.data),c={"!ref":"A1"},r=e[h6(t[2][0].data)],n=o3(r[0].meta[1][0].data);if(n!=6001)throw new Error("6000 unexpected reference to ".concat(n));return eL1(e,r[0],c),c}function tL1(e,a){var t,c=k3(a.data),r={name:(t=c[1])!=null&&t[0]?Or(c[1][0].data):"",sheets:[]},n=Fi(c[2],h6);return n.forEach(function(i){e[i].forEach(function(s){var l=o3(s.meta[1][0].data);l==6e3&&r.sheets.push(aL1(e,s))})}),r}function cL1(e,a){var t=Bi(),c=k3(a.data),r=Fi(c[1],h6);if(r.forEach(function(n){e[n].forEach(function(i){var s=o3(i.meta[1][0].data);if(s==2){var l=tL1(e,i);l.sheets.forEach(function(f,u){Oi(t,f,u==0?l.name:l.name+"_"+u,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function Oc(e){var a,t,c,r,n={},i=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var f;try{f=jk1(l.content)}catch(h){return console.log("?? "+l.content.length+" "+(h.message||h))}var u;try{u=qk1(f)}catch(h){return console.log("## "+(h.message||h))}u.forEach(function(h){n[h.id]=h.messages,i.push(h.id)})}}),!i.length)throw new Error("File has no messages");var s=((r=(c=(t=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:t.meta)==null?void 0:c[1])==null?void 0:r[0].data)&&o3(n[1][0].meta[1][0].data)==1&&n[1][0];if(s||i.forEach(function(l){n[l].forEach(function(f){var u=o3(f.meta[1][0].data)>>>0;if(u==1)if(!s)s=f;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return cL1(n,s)}function rL1(e){return function(t){for(var c=0;c!=e.length;++c){var r=e[c];t[r[0]]===void 0&&(t[r[0]]=r[1]),r[2]==="n"&&(t[r[0]]=Number(t[r[0]]))}}}function Di(e){rL1([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function nL1(e){return Ne.WS.indexOf(e)>-1?"sheet":e==Ne.CS?"chart":e==Ne.DS?"dialog":e==Ne.MS?"macro":e&&e.length?e:"sheet"}function iL1(e,a){if(!e)return 0;try{e=a.map(function(c){return c.id||(c.id=c.strRelID),[c.name,e["!id"][c.id].Target,nL1(e["!id"][c.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function sL1(e,a,t,c,r,n,i,s,l,f,u,h){try{n[c]=G8(a4(e,t,!0),a);var d=J2(e,a),m;switch(s){case"sheet":m=dk1(d,a,r,l,n[c],f,u,h);break;case"chart":if(m=mk1(d,a,r,l,n[c],f,u,h),!m||!m["!drawel"])break;var p=k8(m["!drawel"].Target,a),v=Er(p),g=hy1(a4(e,p,!0),G8(a4(e,v,!0),p)),z=k8(g,p),M=Er(z);m=Zw1(a4(e,z,!0),z,l,G8(a4(e,M,!0),z),f,m);break;case"macro":m=pk1(d,a,r,l,n[c],f,u,h);break;case"dialog":m=vk1(d,a,r,l,n[c],f,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}i[c]=m;var x=[];n&&n[c]&&i0(n[c]).forEach(function(y){var k="";if(n[c][y].Type==Ne.CMNT){k=k8(n[c][y].Target,a);var _=Ck1(J2(e,k,!0),k,l);if(!_||!_.length)return;df(m,_,!1)}n[c][y].Type==Ne.TCMNT&&(k=k8(n[c][y].Target,a),x=x.concat(my1(J2(e,k,!0),l)))}),x&&x.length&&df(m,x,!0,l.people||[])}catch(y){if(l.WTF)throw y}}function l4(e){return e.charAt(0)=="/"?e.slice(1):e}function oL1(e,a){if(oy(),a=a||{},Di(a),u4(e,"META-INF/manifest.xml")||u4(e,"objectdata.xml"))return bf(e,a);if(u4(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Oc<"u"){if(e.FileIndex)return Oc(e);var t=t2.utils.cfb_new();return Ol(e).forEach(function(c1){lC1(t,c1,my(e,c1))}),Oc(t)}throw new Error("Unsupported NUMBERS file")}if(!u4(e,"[Content_Types].xml"))throw u4(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):u4(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c=Ol(e),r=rM1(a4(e,"[Content_Types].xml")),n=!1,i,s;if(r.workbooks.length===0&&(s="xl/workbook.xml",J2(e,s,!0)&&r.workbooks.push(s)),r.workbooks.length===0){if(s="xl/workbook.bin",!J2(e,s,!0))throw new Error("Could not find workbook");r.workbooks.push(s),n=!0}r.workbooks[0].slice(-3)=="bin"&&(n=!0);var l={},f={};if(!a.bookSheets&&!a.bookProps){if(Z8=[],r.sst)try{Z8=zk1(J2(e,l4(r.sst)),r.sst,a)}catch(c1){if(a.WTF)throw c1}a.cellStyles&&r.themes.length&&(l=xk1(a4(e,r.themes[0].replace(/^\//,""),!0)||"",r.themes[0],a)),r.style&&(f=gk1(J2(e,l4(r.style)),r.style,l,a))}r.links.map(function(c1){try{var F=G8(a4(e,Er(l4(c1))),c1);return Hk1(J2(e,l4(c1)),F,c1,a)}catch{}});var u=hk1(J2(e,l4(r.workbooks[0])),r.workbooks[0],a),h={},d="";r.coreprops.length&&(d=J2(e,l4(r.coreprops[0]),!0),d&&(h=By(d)),r.extprops.length!==0&&(d=J2(e,l4(r.extprops[0]),!0),d&&lM1(d,h,a)));var m={};(!a.bookSheets||a.bookProps)&&r.custprops.length!==0&&(d=a4(e,l4(r.custprops[0]),!0),d&&(m=uM1(d,a)));var p={};if((a.bookSheets||a.bookProps)&&(u.Sheets?i=u.Sheets.map(function(F){return F.name}):h.Worksheets&&h.SheetNames.length>0&&(i=h.SheetNames),a.bookProps&&(p.Props=h,p.Custprops=m),a.bookSheets&&typeof i<"u"&&(p.SheetNames=i),a.bookSheets?p.SheetNames:a.bookProps))return p;i={};var v={};a.bookDeps&&r.calcchain&&(v=Mk1(J2(e,l4(r.calcchain)),r.calcchain));var g=0,z={},M,x;{var y=u.Sheets;h.Worksheets=y.length,h.SheetNames=[];for(var k=0;k!=y.length;++k)h.SheetNames[k]=y[k].name}var _=n?"bin":"xml",H=r.workbooks[0].lastIndexOf("/"),T=(r.workbooks[0].slice(0,H+1)+"_rels/"+r.workbooks[0].slice(H+1)+".rels").replace(/^\//,"");u4(e,T)||(T="xl/_rels/workbook."+_+".rels");var L=G8(a4(e,T,!0),T.replace(/_rels.*/,"s5s"));(r.metadata||[]).length>=1&&(a.xlmeta=Vk1(J2(e,l4(r.metadata[0])),r.metadata[0],a)),(r.people||[]).length>=1&&(a.people=py1(J2(e,l4(r.people[0])),a)),L&&(L=iL1(L,u.Sheets));var W=J2(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=h.Worksheets;++g){var Z="sheet";if(L&&L[g]?(M="xl/"+L[g][1].replace(/[\/]?xl\//,""),u4(e,M)||(M=L[g][1]),u4(e,M)||(M=T.replace(/_rels\/.*$/,"")+L[g][1]),Z=L[g][2]):(M="xl/worksheets/sheet"+(g+1-W)+"."+_,M=M.replace(/sheet0\./,"sheet.")),x=M.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),a&&a.sheets!=null)switch(typeof a.sheets){case"number":if(g!=a.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=a.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(a.sheets)){for(var E=!1,e1=0;e1!=a.sheets.length;++e1)typeof a.sheets[e1]=="number"&&a.sheets[e1]==g&&(E=1),typeof a.sheets[e1]=="string"&&a.sheets[e1].toLowerCase()==h.SheetNames[g].toLowerCase()&&(E=1);if(!E)continue e}}sL1(e,M,x,h.SheetNames[g],g,z,i,Z,a,u,l,f)}return p={Directory:r,Workbook:u,Props:h,Custprops:m,Deps:v,Sheets:i,SheetNames:h.SheetNames,Strings:Z8,Styles:f,Themes:l,SSF:z3(Y1)},a&&a.bookFiles&&(e.files?(p.keys=c,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(c1,F){c1=c1.replace(/^Root Entry[\/]/,""),p.keys.push(c1),p.files[c1]=e.FileIndex[F]}))),a&&a.bookVBA&&(r.vba.length>0?p.vbaraw=J2(e,l4(r.vba[0]),!0):r.defaults&&r.defaults.bin===zy1&&(p.vbaraw=J2(e,"xl/vbaProject.bin",!0))),p}function lL1(e,a){var t=a||{},c="Workbook",r=t2.find(e,c);try{if(c="/!DataSpaces/Version",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(aV1(r.content),c="/!DataSpaces/DataSpaceMap",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var n=cV1(r.content);if(n.length!==1||n[0].comps.length!==1||n[0].comps[0].t!==0||n[0].name!=="StrongEncryptionDataSpace"||n[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var i=rV1(r.content);if(i.length!=1||i[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);iV1(r.content)}catch{}if(c="/EncryptionInfo",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var s=sV1(r.content);if(c="/EncryptedPackage",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],r.content,t.password||"",t);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],r.content,t.password||"",t);throw new Error("File is password-protected")}function Pi(e,a){var t="";switch((a||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=n4(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(a&&a.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function fL1(e,a){return t2.find(e,"EncryptedPackage")?lL1(e,a):Hb(e,a)}function uL1(e,a){var t,c=e,r=a||{};return r.type||(r.type=e2&&Buffer.isBuffer(e)?"buffer":"base64"),t=py(c,r),oL1(t,r)}function wb(e,a){var t=0;e:for(;t<e.length;)switch(e.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return Pr(e.slice(t),a);default:break e}return y5.to_workbook(e,a)}function hL1(e,a){var t="",c=Pi(e,a);switch(a.type){case"base64":t=n4(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=re(e);break;default:throw new Error("Unrecognized type "+a.type)}return c[0]==239&&c[1]==187&&c[2]==191&&(t=C2(t)),a.type="binary",wb(t,a)}function dL1(e,a){var t=e;return a.type=="base64"&&(t=n4(t)),t=q0.utils.decode(1200,t.slice(2),"str"),a.type="binary",wb(t,a)}function mL1(e){return e.match(/[^\x00-\x7F]/)?L8(e):e}function Rc(e,a,t,c){return c?(t.type="string",y5.to_workbook(e,t)):y5.to_workbook(a,t)}function Ir(e,a){ZV();var t=a||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return Ir(new Uint8Array(e),(t=z3(t),t.type="array",t));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var c=e,r=[0,0,0,0],n=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),Ie={},t.dateNF&&(Ie.dateNF=t.dateNF),t.type||(t.type=e2&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=e2?"buffer":"binary",c=tC1(e),typeof Uint8Array<"u"&&!e2&&(t.type="array")),t.type=="string"&&(n=!0,t.type="binary",t.codepage=65001,c=mL1(e)),t.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var i=new ArrayBuffer(3),s=new Uint8Array(i);if(s.foo="bar",!s.foo)return t=z3(t),t.type="array",Ir(pi(c),t)}switch((r=Pi(c,t))[0]){case 208:if(r[1]===207&&r[2]===17&&r[3]===224&&r[4]===161&&r[5]===177&&r[6]===26&&r[7]===225)return fL1(t2.read(c,t),t);break;case 9:if(r[1]<=8)return Hb(c,t);break;case 60:return Pr(c,t);case 73:if(r[1]===73&&r[2]===42&&r[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(r[1]===68)return $H1(c,t);break;case 84:if(r[1]===65&&r[2]===66&&r[3]===76)return RH1.to_workbook(c,t);break;case 80:return r[1]===75&&r[2]<9&&r[3]<9?uL1(c,t):Rc(e,c,t,n);case 239:return r[3]===60?Pr(c,t):Rc(e,c,t,n);case 255:if(r[1]===254)return dL1(c,t);if(r[1]===0&&r[2]===2&&r[3]===0)return X8.to_workbook(c,t);break;case 0:if(r[1]===0&&(r[2]>=2&&r[3]===0||r[2]===0&&(r[3]===8||r[3]===9)))return X8.to_workbook(c,t);break;case 3:case 131:case 139:case 140:return hf.to_workbook(c,t);case 123:if(r[1]===92&&r[2]===114&&r[3]===116)return zV1.to_workbook(c,t);break;case 10:case 13:case 32:return hL1(c,t);case 137:if(r[1]===80&&r[2]===78&&r[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return BH1.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?hf.to_workbook(c,t):Rc(e,c,t,n)}function pL1(e,a,t,c,r,n,i,s){var l=C3(t),f=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=r===1?[]:{};if(r!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:t,enumerable:!1})}catch{d.__rowNum__=t}else d.__rowNum__=t;if(!i||e[t])for(var m=a.s.c;m<=a.e.c;++m){var p=i?e[t][m]:e[c[m]+l];if(p===void 0||p.t===void 0){if(f===void 0)continue;n[m]!=null&&(d[n[m]]=f);continue}var v=p.v;switch(p.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(n[m]!=null){if(v==null)if(p.t=="e"&&v===null)d[n[m]]=null;else if(f!==void 0)d[n[m]]=f;else if(u&&v===null)d[n[m]]=null;else continue;else d[n[m]]=u&&(p.t!=="n"||p.t==="n"&&s.rawNumbers!==!1)?v:N0(p,v,s);v!=null&&(h=!1)}}return{row:d,isempty:h}}function $r(e,a){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},c=0,r=1,n=[],i=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},f=a||{},u=f.range!=null?f.range:e["!ref"];switch(f.header===1?c=1:f.header==="A"?c=2:Array.isArray(f.header)?c=3:f.header==null&&(c=0),typeof u){case"string":l=$2(u);break;case"number":l=$2(e["!ref"]),l.s.r=u;break;default:l=u}c>0&&(r=0);var h=C3(l.s.r),d=[],m=[],p=0,v=0,g=Array.isArray(e),z=l.s.r,M=0,x={};g&&!e[z]&&(e[z]=[]);var y=f.skipHidden&&e["!cols"]||[],k=f.skipHidden&&e["!rows"]||[];for(M=l.s.c;M<=l.e.c;++M)if(!(y[M]||{}).hidden)switch(d[M]=s3(M),t=g?e[z][M]:e[d[M]+h],c){case 1:n[M]=M-l.s.c;break;case 2:n[M]=d[M];break;case 3:n[M]=f.header[M-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=i=N0(t,null,f),v=x[i]||0,!v)x[i]=1;else{do s=i+"_"+v++;while(x[s]);x[i]=v,x[s]=1}n[M]=s}for(z=l.s.r+r;z<=l.e.r;++z)if(!(k[z]||{}).hidden){var _=pL1(e,l,z,d,c,n,g,f);(_.isempty===!1||(c===1?f.blankrows!==!1:f.blankrows))&&(m[p++]=_.row)}return m.length=p,m}var _f=/"/g;function vL1(e,a,t,c,r,n,i,s){for(var l=!0,f=[],u="",h=C3(t),d=a.s.c;d<=a.e.c;++d)if(c[d]){var m=s.dense?(e[t]||[])[d]:e[c[d]+h];if(m==null)u="";else if(m.v!=null){l=!1,u=""+(s.rawNumbers&&m.t=="n"?m.v:N0(m,null,s));for(var p=0,v=0;p!==u.length;++p)if((v=u.charCodeAt(p))===r||v===n||v===34||s.forceQuotes){u='"'+u.replace(_f,'""')+'"';break}u=="ID"&&(u='"ID"')}else m.f!=null&&!m.F?(l=!1,u="="+m.f,u.indexOf(",")>=0&&(u='"'+u.replace(_f,'""')+'"')):u="";f.push(u)}return s.blankrows===!1&&l?null:f.join(i)}function kb(e,a){var t=[],c=a??{};if(e==null||e["!ref"]==null)return"";var r=$2(e["!ref"]),n=c.FS!==void 0?c.FS:",",i=n.charCodeAt(0),s=c.RS!==void 0?c.RS:`
|
|
830
830
|
`,l=s.charCodeAt(0),f=new RegExp((n=="|"?"\\|":n)+"+$"),u="",h=[];c.dense=Array.isArray(e);for(var d=c.skipHidden&&e["!cols"]||[],m=c.skipHidden&&e["!rows"]||[],p=r.s.c;p<=r.e.c;++p)(d[p]||{}).hidden||(h[p]=s3(p));for(var v=0,g=r.s.r;g<=r.e.r;++g)(m[g]||{}).hidden||(u=vL1(e,r,g,h,i,l,n,c),u!=null&&(c.strip&&(u=u.replace(f,"")),(u||c.blankrows!==!1)&&t.push((v++?s:"")+u)));return delete c.dense,t.join("")}function gL1(e,a){a||(a={}),a.FS=" ",a.RS=`
|
|
831
|
-
`;var t=kb(e,a);return t}function xL1(e){var a="",t,c="";if(e==null||e["!ref"]==null)return[];var r=$2(e["!ref"]),n="",i=[],s,l=[],f=Array.isArray(e);for(s=r.s.c;s<=r.e.c;++s)i[s]=s3(s);for(var u=r.s.r;u<=r.e.r;++u)for(n=C3(u),s=r.s.c;s<=r.e.c;++s)if(a=i[s]+n,t=f?(e[u]||[])[s]:e[a],c="",t!==void 0){if(t.F!=null){if(a=t.F,!t.f)continue;c=t.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(t.f!=null)c=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)c=""+t.v;else if(t.t=="b")c=t.v?"TRUE":"FALSE";else if(t.w!==void 0)c="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?c="'"+t.v:c=""+t.v}}l[l.length]=a+"="+c}return l}function Lb(e,a,t){var c=t||{},r=+!c.skipHeader,n=e||{},i=0,s=0;if(n&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?P3(c.origin):c.origin;i=l.r,s=l.c}var f,u={s:{c:0,r:0},e:{c:s,r:i+a.length-1+r}};if(n["!ref"]){var h=$2(n["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),i==-1&&(i=h.e.r+1,u.e.r=i+a.length-1+r)}else i==-1&&(i=0,u.e.r=a.length-1+r);var d=c.header||[],m=0;a.forEach(function(v,g){i0(v).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=v[z],x="z",y="",k=W1({c:s+m,r:i+g+r});f=L5(n,k),M&&typeof M=="object"&&!(M instanceof Date)?n[k]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=I3(M)),y=c.dateNF||Y1[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,y&&(f.z=y)):n[k]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var p=C3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+p]={t:"s",v:d[m]};return n["!ref"]=c2(u),n}function zL1(e,a){return Lb(null,e,a)}function L5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=P3(a);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?L5(e,W1(a)):L5(e,W1({r:a,c:t||0}))}function CL1(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var t=e.SheetNames.indexOf(a);if(t>-1)return t;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function Bi(){return{SheetNames:[],Sheets:{}}}function Oi(e,a,t,c){var r=1;if(!t)for(;r<=65535&&e.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(t)>=0){var n=t.match(/(^.*?)(\d+)$/);r=n&&+n[2]||0;var i=n&&n[1]||t;for(++r;r<=65535&&e.SheetNames.indexOf(t=i+r)!=-1;++r);}if(rk1(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=a,t}function ML1(e,a,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=CL1(e,a);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[c].Hidden=t}function HL1(e,a){return e.z=a,e}function _b(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function VL1(e,a,t){return _b(e,"#"+a,t)}function yL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function bL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:c2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=L5(e,i,s);l.t="n",l.F=n,delete l.v,i==r.s.r&&s==r.s.c&&(l.f=t,c&&(l.D=!0))}return e}var wL1={encode_col:s3,encode_row:C3,encode_cell:W1,encode_range:c2,decode_col:yi,decode_row:Vi,split_cell:PC1,decode_cell:P3,decode_range:i8,format_cell:N0,sheet_add_aoa:Ty,sheet_add_json:Lb,sheet_add_dom:Vb,aoa_to_sheet:s8,json_to_sheet:zL1,table_to_sheet:yb,table_to_book:$k1,sheet_to_csv:kb,sheet_to_txt:gL1,sheet_to_json:$r,sheet_to_html:Ik1,sheet_to_formulae:xL1,sheet_to_row_object_array:$r,sheet_get_cell:L5,book_new:Bi,book_append_sheet:Oi,book_set_sheet_visibility:ML1,cell_set_number_format:HL1,cell_set_hyperlink:_b,cell_set_internal_link:VL1,cell_add_comment:yL1,sheet_set_array_formula:bL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const kL1=o.defineComponent({__name:"PgaInputFileExcel",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{},excelConfig:{}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:o.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:a,emit:t}){const c=o.useModel(e,"isReadingFile"),r=e,n=t;a({resetInput:s});const i=o.ref();function s(){var f;(f=i.value)==null||f.resetInput()}function l(f){if(n("newFile",f),r.excelConfig){if(!f){n("newFileRead",[]);return}const u=new FileReader;u.onload=function(h){var d;try{c.value=!0;const m=new Uint8Array((d=h.target)==null?void 0:d.result),p=Ir(m,{type:"array"}),v=p.SheetNames[0],g=p.Sheets[v],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((k,_)=>`empty${_+1}`);Object.entries(z).forEach(([k,_])=>x[_-1]=k);const y=wL1.sheet_to_json(g,{header:x,range:r.excelConfig.firstRow-1});n("newFileRead",y)}finally{c.value=!1}},u.readAsArrayBuffer(f)}}return(f,u)=>(o.openBlock(),o.createBlock(hi,{ref_key:"inputFileRef",ref:i,label:f.label,withOptionalLabel:f.withOptionalLabel,withLabelSpace:f.withLabelSpace,errors:f.errors,disabled:f.disabled,grow:f.grow,acceptedFormats:["xls","xlsx"],onNewFile:u[0]||(u[0]=h=>l(h))},null,8,["label","withOptionalLabel","withLabelSpace","errors","disabled","grow"]))}}),LL1={class:"input-container"},_L1=["placeholder","disabled"],AL1=["onMousedown"],SL1=["textContent"],NL1=o.defineComponent({__name:"PgaInputSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Number,Function]},placeholder:{type:[String,Number,Function]},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(c1=>({"2b16ba1c":o.unref(i).input.height,"50519c88":o.unref(i).input.padding,"55e3aec2":o.unref(i).input.borderColor,"7f61d913":o.unref(i).input.borderRadius,d2dfdd00:o.unref(i).input.backgroundColor,"3cf9fcac":o.unref(i).input.colorFocus,"6fb19fc8":o.unref(i).input.backgroundColorDisabled,d9a13736:o.unref(i).input.placeholderColor,"4fcaaf8a":o.unref(i).input.paddingWithIcon}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=$3("pgaSelect"),{formOptions:i}=O3.storeToRefs(Z3()),s=o.ref(),l=o.ref(),f=o.ref(),u=o.ref(""),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.options.find(c1=>c1.id===t.value)),p=o.computed(()=>!!c.options.length),v=o.computed(()=>{if(d.value)return c.options;const c1=K6.normalizeText(u.value).split(" ");return c.options.filter(F=>{const R=K6.normalizeText(k(F));return c1.every(X=>R.includes(X))})}),g=o.computed(()=>c.disabled||!p.value),z=o.computed(()=>{if(p.value){if(c.placeholder)return q6(c.placeholder)}else return c.emptyOptionsText?q6(c.emptyOptionsText):n("emptyOptionsText")}),M=o.computed(()=>g.value?!1:!!(u.value||t.value)),x=o.computed(()=>g.value?!1:!M.value&&!h.value),y=o.computed(()=>!!(M.value||x.value));o.watch(m,()=>e1()),o.watch(l,c1=>{if(!c1)return;const F=document.documentElement.clientHeight,R=document.documentElement.clientWidth,X=s.value.getBoundingClientRect(),h1={};X.top<F/2?h1.top=`${X.bottom}px`:h1.bottom=`${F-X.top}px`,h1.left=`${X.left}px`,h1.right=`${R-X.right}px`,f.value=h1});function k(c1){return q6(c1[c.descriptionField])}function _(){d.value=!0,h.value=!0}function H(){e1(),h.value=!1}function T(){d.value=!1}function L(c1){E(c1.id)}function W(){u.value="",E(null)}function Z(){var c1;(c1=s.value)==null||c1.focus()}function E(c1){t.value=c1,r("change",c1)}function e1(){const c1=m.value;u.value=c1?k(c1):""}return lH(s,()=>{var c1;return(c1=s.value)==null?void 0:c1.blur()}),e1(),(c1,F)=>(o.openBlock(),o.createBlock(M6,{label:c1.label,withOptionalLabel:c1.withOptionalLabel,withLabelSpace:c1.withLabelSpace,errors:c1.errors,grow:c1.grow},{default:o.withCtx(()=>[o.createElementVNode("div",LL1,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":F[0]||(F[0]=R=>u.value=R),ref_key:"inputRef",ref:s,class:o.normalizeClass({"input__with-btn":y.value}),type:"text",placeholder:z.value,disabled:g.value,onFocus:F[1]||(F[1]=R=>_()),onBlur:F[2]||(F[2]=R=>H()),onInput:F[3]||(F[3]=R=>T())},null,42,_L1),[[o.vModelText,u.value]]),M.value?(o.openBlock(),o.createBlock(T7,{key:0,icon:"xmark",onMousedown:F[4]||(F[4]=o.withModifiers(R=>W(),["prevent"]))})):o.createCommentVNode("",!0),x.value?(o.openBlock(),o.createBlock(T7,{key:1,icon:"chevron-down",onMousedown:F[5]||(F[5]=o.withModifiers(R=>Z(),["prevent"]))})):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[h.value&&v.value.length?(o.openBlock(),o.createElementBlock("ul",{key:0,ref_key:"dropdownRef",ref:l,class:"input-dropdown",style:o.normalizeStyle(f.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value,R=>(o.openBlock(),o.createElementBlock("li",{key:R.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":R.id===t.value}]),onMousedown:X=>L(R)},[o.createElementVNode("span",{textContent:o.toDisplayString(k(R))},null,8,SL1)],42,AL1))),128))],4)):o.createCommentVNode("",!0)]))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const TL1=X1(NL1,[["__scopeId","data-v-3852dfcf"]]),EL1=["disabled"],FL1=["value"],DL1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Number,Function]},placeholder:{type:[String,Number,Function]},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(s=>({d68fe07c:o.unref(r).input.height,bb3ede54:o.unref(r).input.padding,"1fd81e48":o.unref(r).input.borderColor,"2b39da39":o.unref(r).input.borderRadius,"3c3db69a":o.unref(r).input.backgroundColor,49951450:o.unref(r).input.colorFocus,c959c994:o.unref(r).input.backgroundColorDisabled}));const t=o.useModel(e,"modelValue"),c=e,{formOptions:r}=O3.storeToRefs(Z3()),n=o.computed(()=>!!c.options.length),i=o.computed(()=>c.disabled||!n.value);return(s,l)=>(o.openBlock(),o.createBlock(M6,{label:s.label,withOptionalLabel:s.withOptionalLabel,withLabelSpace:s.withLabelSpace,errors:s.errors,grow:s.grow},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=f=>t.value=f),disabled:i.value},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.options,f=>(o.openBlock(),o.createElementBlock("option",{key:f.id,value:f.id},o.toDisplayString(o.unref(q6)(f[s.descriptionField])),9,FL1))),128))],8,EL1),[[o.vModelSelect,t.value]])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const PL1=X1(DL1,[["__scopeId","data-v-257a0a5d"]]),BL1={class:"icons-container"},OL1=o.defineComponent({__name:"PgaSelectIcon",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=o.useModel(e,"modelValue"),t=["plus","minus","pen","edit","check","trash","file","clipboard","bell","calendar","clock","envelope","heart","star","money-check-dollar","gift","percent","magnifying-glass-dollar","house","car","store","gamepad","mobile","school","shirt","user-doctor","face-smile","face-frown-open","cog","lock","bug","camera","code","headphones","wifi","user","search","home","arrow-right-arrow-left","circle"];return(c,r)=>(o.openBlock(),o.createBlock(M6,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",BL1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(t,n=>o.createVNode(A3,{key:n,icon:n,buttonType:a.value===n?"outlined":"flat",color:a.value===n?"primary":"grey",width:"2.5em",disabled:c.disabled,onClick:i=>a.value=n},null,8,["icon","buttonType","color","disabled","onClick"])),64))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const RL1=X1(OL1,[["__scopeId","data-v-c0cafe41"]]),IL1=["disabled"],$L1={class:"slider--thumb"},UL1=o.defineComponent({__name:"PgaSwitch",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},disabled:{type:Boolean},fitContent:{type:Boolean},grow:{},updateFn:{type:Function}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=o.useModel(e,"modelValue"),t=e;async function c(r){if(t.updateFn){const n=r.target.checked;try{await t.updateFn(),a.value=n}catch{a.value=!n}}}return(r,n)=>(o.openBlock(),o.createBlock(M6,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,fitContent:r.fitContent,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("label",{class:o.normalizeClass(["switch",{"switch__with-label":r.label}])},[o.withDirectives(o.createElementVNode("input",{class:"switch--input","onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i),type:"checkbox",role:"switch",disabled:r.disabled,onChange:n[1]||(n[1]=i=>c(i))},null,40,IL1),[[o.vModelCheckbox,a.value]]),o.createElementVNode("div",{class:o.normalizeClass(["switch--slider",{"switch--slider__checked":a.value,"switch--slider__disabled":r.disabled}])},[o.createElementVNode("div",$L1,[o.createVNode(v3,{class:"thumb--icon",icon:a.value?"check":"xmark"},null,8,["icon"])])],2)],2)]),_:1},8,["label","withOptionalLabel","withLabelSpace","fitContent","grow"]))}});const WL1=X1(UL1,[["__scopeId","data-v-e527d102"]]),YL1={class:"switch-options"},qL1=["onClick"],GL1=o.defineComponent({__name:"PgaSwitchOptions",props:o.mergeModels({items:{},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(c=>({"6158f916":o.unref(t).input.borderRadius,"12a855fe":o.unref(t).input.height,fc7b9fc0:o.unref(t).input.borderColor,"7b1a9844":o.unref(t).input.backgroundColor,"2d3fdc8c":o.unref(t).input.colorFocus,"31b128cc":o.unref(t).input.backgroundColorFocus,31784004:o.unref(t).input.backgroundColorHover}));const a=o.useModel(e,"modelValue"),{formOptions:t}=O3.storeToRefs(Z3());return(c,r)=>{const n=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(n,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",YL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.items,(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["switch-options--item",{"switch-options--item__first-item":s===0,"switch-options--item__last-item":s+1===c.items.length,"switch-options--item__active":a.value===i.id}]),key:i.id,onClick:l=>a.value=i.id},[o.createVNode(D0,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,qL1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const jL1=X1(GL1,[["__scopeId","data-v-9c5b2d88"]]),XL1="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJj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DAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",ZL1=["src"],QL1=["src"],KL1=o.defineComponent({__name:"PgaImage",props:o.mergeModels({source:{default:"dynamic"},image:{},defaultImage:{},uploadFn:{},deleteFn:{},buttonsLayout:{default:"vertical"},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(k=>({"589d2b7a":s.value}));const a=o.useModel(e,"modelValue"),t=e,c=$3("pgaImage"),r=o.ref(!1),n=o.ref(),i=o.ref(),s=o.ref("0"),l=o.ref(!1),f=o.ref(!1),u=o.computed(()=>a.value?a.value:t.image),h=o.computed(()=>`${Z3().imageOptions[`${t.source}Url`]}/${u.value}`),d=o.computed(()=>!!(!u.value||r.value)),m=o.computed(()=>t.defaultImage?`${Z3().imageOptions.staticUrl}/${t.defaultImage}`:XL1),p=o.computed(()=>{const k=[];return t.size?k.push({height:t.size,width:t.size}):(t.height&&k.push({height:t.height,width:"auto"}),t.width&&k.push({height:"auto",width:t.width}),t.height&&t.width&&k.push({height:t.height,width:t.width})),k}),v=o.computed(()=>{const k=[];return t.rounded?k.push({borderRadius:"100%"}):t.borderRadius&&k.push({borderRadius:t.borderRadius}),k});o.watch(h,()=>r.value=!1);function g(){r.value=!0}async function z(){var k;(k=i.value)==null||k.click()}async function M(k){var _;(_=i.value)==null||_.resetInput();try{l.value=!0;const H={image:k};a.value=await t.uploadFn(H)}finally{l.value=!1}}async function x(){try{f.value=!0,await t.deleteFn(),a.value=void 0}finally{f.value=!1}}function y(){if(n.value){const k=n.value.getBoundingClientRect();t.buttonsLayout==="horizontal"&&(s.value=`${k.height}px`),t.buttonsLayout==="vertical"&&(s.value=`${k.width}px`)}}return o.onMounted(()=>{n.value&&new ResizeObserver(y).observe(n.value)}),(k,_)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["img-wrapper",[`img-wrapper__${k.buttonsLayout}`]])},[o.createElementVNode("div",{class:"img-container",style:o.normalizeStyle(p.value)},[d.value?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:m.value,style:o.normalizeStyle(v.value)},null,12,ZL1)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:h.value,style:o.normalizeStyle(v.value),onError:_[0]||(_[0]=H=>g())},null,44,QL1))],4),k.uploadFn||k.deleteFn?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"imgButtonsRef",ref:n,class:o.normalizeClass(["img-buttons",[`img-buttons__${k.buttonsLayout}`]])},[k.uploadFn?(o.openBlock(),o.createBlock(A3,{key:0,buttonType:"flat",size:"s",icon:"camera",isLoading:l.value,onClick:_[1]||(_[1]=H=>z())},null,8,["isLoading"])):o.createCommentVNode("",!0),k.uploadFn?(o.openBlock(),o.createBlock(hi,{key:1,ref_key:"inputFileRef",ref:i,class:"input-file",acceptedFormats:["jpeg","jpg","png"],onNewFile:_[2]||(_[2]=H=>M(H))},null,512)):o.createCommentVNode("",!0),!d.value&&k.deleteFn?(o.openBlock(),o.createBlock(C7,{key:2,withoutText:"",confirmDeleteText:o.unref(c)("confirmDeleteText"),isLoading:f.value,onDeleteConfirmed:_[3]||(_[3]=H=>x())},null,8,["confirmDeleteText","isLoading"])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],2))}});const JL1=X1(KL1,[["__scopeId","data-v-2db108ed"]]),Ab=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),e_1={key:0,class:"pagination"},a_1={key:0,class:"pagination--item-container"},t_1=Ab(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),c_1=["textContent","onClick"],r_1={key:1,class:"pagination--item-container"},n_1=Ab(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),i_1=["textContent"],s_1=o.defineComponent({__name:"PgaPagination",props:o.mergeModels({totalCount:{},pageSize:{},preventScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:o.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=o.computed(()=>{const h=[t.value];for(let d=t.value-1;d>=t.value-3&&d>=1;d--)h.unshift(d);for(let d=t.value+1;d<=t.value+3&&d<=n.value;d++)h.push(d);if(h.length===7)return h;if(h.includes(1))for(let d=h[h.length-1]+1;d<=7-h.length+h[h.length-1]&&d<=n.value;d++)h.push(d);else for(let d=h[0]-1;d>=-(7-h.length)+h[0]&&d>=1;d--)h.unshift(d);return h}),s=o.computed(()=>!i.value.includes(1)),l=o.computed(()=>!i.value.includes(n.value));return o.watch(t,f=>{r("newPage",f),c.preventScrollToTop||oH()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",e_1,[s.value?(o.openBlock(),o.createElementBlock("div",a_1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),t_1])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(["pagination--item",{"pagination--item__current":h===t.value}]),textContent:o.toDisplayString(h),onClick:d=>t.value=h},null,10,c_1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",r_1,[n_1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,i_1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const Sb=X1(s_1,[["__scopeId","data-v-09dde44c"]]),o_1=o.defineComponent({__name:"PgaTr",props:{index:{}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("tr",{class:o.normalizeClass([typeof a.index>"u"?"":a.index%2===0?"tr__even":"tr__odd"])},[o.renderSlot(a.$slots,"default",{},void 0,!0)],2))}});const Af=X1(o_1,[["__scopeId","data-v-dd6d415a"]]),l_1=o.defineComponent({__name:"PgaTh",props:{title:{type:[String,Number,Function],default:""},align:{default:"left"}},setup(e){return o.useCssVars(a=>({"4b52b71c":a.align})),(a,t)=>(o.openBlock(),o.createElementBlock("th",null,[o.createVNode(D0,{text:a.title},null,8,["text"])]))}});const $a=X1(l_1,[["__scopeId","data-v-cb936527"]]),f_1={class:"td--content"},u_1=o.defineComponent({__name:"PgaTd",props:{align:{default:"left"},fitContent:{type:Boolean}},setup(e){o.useCssVars(c=>({"46d10c70":c.align,"99d2ab4c":t.value}));const a=e,t=o.computed(()=>{if(a.align==="left")return"flex-start";if(a.align==="center")return"center";if(a.align==="right")return"flex-end"});return(c,r)=>(o.openBlock(),o.createElementBlock("td",{class:o.normalizeClass({"td__fit-content":!!c.fitContent})},[o.createElementVNode("div",f_1,[o.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const Ua=X1(u_1,[["__scopeId","data-v-2db20038"]]),h_1={class:"table-container"},d_1={class:"table-header"},m_1={class:"header--search-container"},p_1={class:"indentation-content"},v_1={key:0,class:"indentation-line"},g_1={key:1,class:"actions-buttons"},x_1={key:0,class:"small-devices-list"},z_1={class:"small-devices-list--item-container"},C_1={key:1,class:"items-selected"},M_1=["textContent"],H_1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},createItemBtnText:{},withEditButton:{type:Boolean},confirmDeleteText:{type:Function},actionsOptions:{},useDropdown:{type:Boolean},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:o.mergeModels(["createItem","editItem","deleteItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:a}){const t=o.useModel(e,"searchParams"),c=o.useModel(e,"itemsSelected"),r=e,n=a,i=$3("pgaTable"),s=o.ref([]),l=o.ref(),f=o.computed(()=>{const H={};for(const T in r.columns){const L=r.columns[T];L.hide||(H[T]=L)}return H}),u=o.computed(()=>{if(!r.indentation)return!1;for(const H of r.items)if(H[r.indentation.propName].length>0)return!0;return!1}),h=o.computed(()=>{if(!u.value)return r.items;const H=[];for(const T of r.items)H.push(T),x(T)&&H.push(...T[r.indentation.propName]);return H}),d=o.computed(()=>!!c.value),m=o.computed(()=>{var H;return!!(r.withEditButton||r.confirmDeleteText||(H=r.actionsOptions)!=null&&H.length)}),p=o.computed(()=>{var H;return(H=r.actionsOptions)!=null&&H.length?!0:r.useDropdown}),v=o.computed(()=>{var H,T;return((H=t.value)==null?void 0:H.page)&&((T=t.value)==null?void 0:T.pageSize)&&r.totalCount}),g=o.computed(()=>{var H;return((H=t.value)==null?void 0:H.search)!==void 0});o.watch(()=>r.items,()=>{d.value&&(c.value=[])});function z(){t.value.page=1,n("refreshList")}function M(H){return r.items.map(L=>L.id).includes(H.id)}function x(H){return s.value.includes(H.id)}function y(H){s.value.push(H.id)}function k(H){s.value=s.value.filter(T=>T!==H.id)}function _(){l.value.toggleItemSelected()}return(H,T)=>(o.openBlock(),o.createElementBlock("div",h_1,[o.createElementVNode("div",d_1,[H.createItemBtnText?(o.openBlock(),o.createBlock(A3,{key:0,icon:"plus",text:H.createItemBtnText,onClick:T[0]||(T[0]=L=>n("createItem"))},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(H.$slots,"header",{},void 0,!0),o.createElementVNode("div",m_1,[g.value?(o.openBlock(),o.createBlock(E7,{key:0,class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":T[1]||(T[1]=L=>t.value.search=L),placeholder:H.searchInputPlaceholder,onEnter:T[2]||(T[2]=L=>z()),onValueCleared:T[3]||(T[3]=L=>z())},null,8,["modelValue","placeholder"])):o.createCommentVNode("",!0),(v.value||g.value)&&H.isLoading?(o.openBlock(),o.createBlock(B5,{key:1,size:"0.7em"})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["table-wrapper",{"table-wrapper__with-small-devices-list":H.$slots.smallDevicesItem}])},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createVNode(Af,null,{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock($a,{key:0})):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock($a,{key:1})):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(L,W)=>(o.openBlock(),o.createBlock($a,{key:W,title:L.title,align:L.align},null,8,["title","align"]))),128)),m.value?(o.openBlock(),o.createBlock($a,{key:2,title:o.unref(i)("columnTitleActions")},null,8,["title"])):o.createCommentVNode("",!0)]),_:1})]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(L,W)=>(o.openBlock(),o.createBlock(Af,{key:L.id,index:W},{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Ua,{key:0,fitContent:""},{default:o.withCtx(()=>[o.createVNode(dr,{modelValue:c.value,"onUpdate:modelValue":T[4]||(T[4]=Z=>c.value=Z),items:h.value,item:L},null,8,["modelValue","items","item"])]),_:2},1024)):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Ua,{key:1,fitContent:""},{default:o.withCtx(()=>[o.createElementVNode("div",p_1,[M(L)?x(L)?(o.openBlock(),o.createBlock(v3,{key:1,icon:"caret-down",clickable:"",onClick:Z=>k(L)},null,8,["onClick"])):L[r.indentation.propName].length>0?(o.openBlock(),o.createBlock(v3,{key:2,icon:"caret-right",clickable:"",onClick:Z=>y(L)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",v_1))])]),_:2},1024)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(Z,E)=>(o.openBlock(),o.createBlock(Ua,{key:E,align:Z.align,fitContent:Z.fitContent},{default:o.withCtx(()=>[o.renderSlot(H.$slots,E,{item:L},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),m.value?(o.openBlock(),o.createBlock(Ua,{key:2,fitContent:""},{default:o.withCtx(()=>[p.value?(o.openBlock(),o.createBlock(fH,{key:0,item:L,options:H.actionsOptions,align:"right"},{default:o.withCtx(()=>[H.withEditButton?(o.openBlock(),o.createBlock(mr,{key:0,onClick:Z=>n("editItem",L)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(C7,{key:1,confirmDeleteText:H.confirmDeleteText(L),onDeleteConfirmed:Z=>n("deleteItem",L)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]),_:2},1032,["item","options"])):(o.openBlock(),o.createElementBlock("div",g_1,[H.withEditButton?(o.openBlock(),o.createBlock(mr,{key:0,onClick:Z=>n("editItem",L)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(C7,{key:1,confirmDeleteText:H.confirmDeleteText(L),onDeleteConfirmed:Z=>n("deleteItem",L)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]))]),_:2},1024)):o.createCommentVNode("",!0)]),_:2},1032,["index"]))),128))])])],2),H.$slots.smallDevicesItem?(o.openBlock(),o.createElementBlock("div",x_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(L,W)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:L.id},[o.createElementVNode("div",z_1,[o.renderSlot(H.$slots,"smallDevicesItem",{item:L},void 0,!0)]),W+1<h.value.length?(o.openBlock(),o.createBlock(uH,{key:0})):o.createCommentVNode("",!0)],64))),128))])):o.createCommentVNode("",!0),o.createVNode(KH,{items:h.value,isLoading:H.isLoading},null,8,["items","isLoading"]),d.value&&h.value.length>0?(o.openBlock(),o.createElementBlock("div",C_1,[o.createVNode(dr,{ref_key:"itemsSelectedRef",ref:l,modelValue:c.value,"onUpdate:modelValue":T[5]||(T[5]=L=>c.value=L),items:h.value},null,8,["modelValue","items"]),o.createVNode(An,{class:"items-selected--select-all-btn",text:o.unref(i)("selectAllBtn"),onClick:T[6]||(T[6]=L=>_())},null,8,["text"]),o.createElementVNode("span",{class:"items-selected--selected-items-text",textContent:o.toDisplayString(o.unref(i)("withTheSelectedItemsText"))},null,8,M_1),o.renderSlot(H.$slots,"itemsSelected",{},void 0,!0)])):o.createCommentVNode("",!0),v.value?(o.openBlock(),o.createBlock(Sb,{key:2,modelValue:t.value.page,"onUpdate:modelValue":T[7]||(T[7]=L=>t.value.page=L),pageSize:t.value.pageSize,totalCount:H.totalCount,onNewPage:T[8]||(T[8]=L=>n("refreshList"))},null,8,["modelValue","pageSize","totalCount"])):o.createCommentVNode("",!0)]))}});const V_1=X1(H_1,[["__scopeId","data-v-55adfce0"]]),y_1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:p91,PgaButton:A3,PgaButtonLink:An,PgaChartBar:Yd1,PgaDatePicker:Cz1,PgaDeleteButton:C7,PgaDisplayBarcodes:Xd1,PgaDisplayDatetime:Jd1,PgaDisplayInfo:im1,PgaDisplayNoItems:KH,PgaDisplayPrice:vm1,PgaDisplayText:D0,PgaDropdown:fH,PgaEditButton:mr,PgaForm:JH,PgaFormRow:Mm1,PgaIcon:v3,PgaImage:JL1,PgaInfoCardFullPage:xl1,PgaInput:E7,PgaInputFile:hi,PgaInputFileExcel:kL1,PgaInputGroup:M6,PgaInputSelect:TL1,PgaIsEnabled:zl1,PgaItemSelected:dr,PgaLink:ql1,PgaLoginForm:op1,PgaLogoutButton:Gl1,PgaModal:wl1,PgaPagination:Sb,PgaSelect:PL1,PgaSelectIcon:RL1,PgaSeparator:uH,PgaSpinner:B5,PgaSwitch:WL1,PgaSwitchOptions:jL1,PgaTable:V_1,PgaUserMenu:Fl1},Symbol.toStringTag,{value:"Module"})),b_1={class:"notifications"},w_1=o.defineComponent({__name:"Notifications",setup(e){const a=$3("notifications"),{notificationsOptions:t}=O3.storeToRefs(Z3()),{notifications:c}=O3.storeToRefs(u6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",b_1,[o.createVNode(o.TransitionGroup,{name:"notifications--transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications--notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(D0,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(v3,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(ui)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(An,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(jV)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const k_1=X1(w_1,[["__scopeId","data-v-45c95570"]]);function L_1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(k_1)}}).mount(e)}const w6=$3("validations"),__1=Q3.withMessage(()=>w6("requiredRuleError"),wr),A_1=e=>Q3.withMessage(()=>w6("minLengthRuleError",{minLength:e}),Zm1(e)),S_1=e=>Q3.withMessage(()=>w6("maxLengthRuleError",{maxLength:e}),jm1(e)),N_1=Q3.withMessage(()=>w6("integerRuleError"),ep1),T_1=e=>Q3.withMessage(()=>w6("lessEqualRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a<=e)),E_1=e=>Q3.withMessage(()=>w6("greaterEqualRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a>=e)),F_1=e=>Q3.withMessage(()=>w6("lessThanRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a<e)),D_1=e=>Q3.withMessage(()=>w6("greaterThanRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a>e));i9.add(W21);i9.add(e61);i9.add(i91);function P_1(e,a){const t=K6.mergeDeep(f91,a);Z3().options=K6.removeProps(t,"colors"),dM(t.colors),e.use(Tf),e.use(Pw),Object.entries(y_1).forEach(([c,r])=>{e.component(c,r)}),L_1()}exports.addNotification=GV;exports.animation=an1;exports.clearNotifications=jV;exports.copyModelFields=cl1;exports.createI18n=vM;exports.default=P_1;exports.displayAlert=hH;exports.getCoinAmountInString=J91;exports.getDatetimeInString=tn1;exports.getFinalValue=q6;exports.getLanguage=h7;exports.getNumberInString=d7;exports.getTheme=cr;exports.greaterEqualRule=E_1;exports.greaterThanRule=D_1;exports.integerRule=N_1;exports.isCurrentUrl=rl1;exports.lessEqualRule=T_1;exports.lessThanRule=F_1;exports.maxLengthRule=S_1;exports.minLengthRule=A_1;exports.removeNotification=ui;exports.requiredRule=__1;exports.rgba=en1;exports.scrollToTop=oH;exports.setBodyOverflow=m7;exports.setColor=d91;exports.setColors=dM;exports.setLanguage=K91;exports.setTheme=h91;exports.useColorsStore=nn;
|
|
831
|
+
`;var t=kb(e,a);return t}function xL1(e){var a="",t,c="";if(e==null||e["!ref"]==null)return[];var r=$2(e["!ref"]),n="",i=[],s,l=[],f=Array.isArray(e);for(s=r.s.c;s<=r.e.c;++s)i[s]=s3(s);for(var u=r.s.r;u<=r.e.r;++u)for(n=C3(u),s=r.s.c;s<=r.e.c;++s)if(a=i[s]+n,t=f?(e[u]||[])[s]:e[a],c="",t!==void 0){if(t.F!=null){if(a=t.F,!t.f)continue;c=t.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(t.f!=null)c=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)c=""+t.v;else if(t.t=="b")c=t.v?"TRUE":"FALSE";else if(t.w!==void 0)c="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?c="'"+t.v:c=""+t.v}}l[l.length]=a+"="+c}return l}function Lb(e,a,t){var c=t||{},r=+!c.skipHeader,n=e||{},i=0,s=0;if(n&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?P3(c.origin):c.origin;i=l.r,s=l.c}var f,u={s:{c:0,r:0},e:{c:s,r:i+a.length-1+r}};if(n["!ref"]){var h=$2(n["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),i==-1&&(i=h.e.r+1,u.e.r=i+a.length-1+r)}else i==-1&&(i=0,u.e.r=a.length-1+r);var d=c.header||[],m=0;a.forEach(function(v,g){i0(v).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=v[z],x="z",y="",k=W1({c:s+m,r:i+g+r});f=L5(n,k),M&&typeof M=="object"&&!(M instanceof Date)?n[k]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=I3(M)),y=c.dateNF||Y1[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,y&&(f.z=y)):n[k]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var p=C3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+p]={t:"s",v:d[m]};return n["!ref"]=c2(u),n}function zL1(e,a){return Lb(null,e,a)}function L5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=P3(a);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?L5(e,W1(a)):L5(e,W1({r:a,c:t||0}))}function CL1(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var t=e.SheetNames.indexOf(a);if(t>-1)return t;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function Bi(){return{SheetNames:[],Sheets:{}}}function Oi(e,a,t,c){var r=1;if(!t)for(;r<=65535&&e.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(t)>=0){var n=t.match(/(^.*?)(\d+)$/);r=n&&+n[2]||0;var i=n&&n[1]||t;for(++r;r<=65535&&e.SheetNames.indexOf(t=i+r)!=-1;++r);}if(rk1(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=a,t}function ML1(e,a,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=CL1(e,a);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[c].Hidden=t}function HL1(e,a){return e.z=a,e}function _b(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function VL1(e,a,t){return _b(e,"#"+a,t)}function yL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function bL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:c2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=L5(e,i,s);l.t="n",l.F=n,delete l.v,i==r.s.r&&s==r.s.c&&(l.f=t,c&&(l.D=!0))}return e}var wL1={encode_col:s3,encode_row:C3,encode_cell:W1,encode_range:c2,decode_col:yi,decode_row:Vi,split_cell:PC1,decode_cell:P3,decode_range:i8,format_cell:N0,sheet_add_aoa:Ty,sheet_add_json:Lb,sheet_add_dom:Vb,aoa_to_sheet:s8,json_to_sheet:zL1,table_to_sheet:yb,table_to_book:$k1,sheet_to_csv:kb,sheet_to_txt:gL1,sheet_to_json:$r,sheet_to_html:Ik1,sheet_to_formulae:xL1,sheet_to_row_object_array:$r,sheet_get_cell:L5,book_new:Bi,book_append_sheet:Oi,book_set_sheet_visibility:ML1,cell_set_number_format:HL1,cell_set_hyperlink:_b,cell_set_internal_link:VL1,cell_add_comment:yL1,sheet_set_array_formula:bL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const kL1=o.defineComponent({__name:"PgaInputFileExcel",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{},excelConfig:{}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:o.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:a,emit:t}){const c=o.useModel(e,"isReadingFile"),r=e,n=t;a({resetInput:s});const i=o.ref();function s(){var f;(f=i.value)==null||f.resetInput()}function l(f){if(n("newFile",f),r.excelConfig){if(!f){n("newFileRead",[]);return}const u=new FileReader;u.onload=function(h){var d;try{c.value=!0;const m=new Uint8Array((d=h.target)==null?void 0:d.result),p=Ir(m,{type:"array"}),v=p.SheetNames[0],g=p.Sheets[v],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((k,_)=>`empty${_+1}`);Object.entries(z).forEach(([k,_])=>x[_-1]=k);const y=wL1.sheet_to_json(g,{header:x,range:r.excelConfig.firstRow-1});n("newFileRead",y)}finally{c.value=!1}},u.readAsArrayBuffer(f)}}return(f,u)=>(o.openBlock(),o.createBlock(hi,{ref_key:"inputFileRef",ref:i,label:f.label,withOptionalLabel:f.withOptionalLabel,withLabelSpace:f.withLabelSpace,errors:f.errors,disabled:f.disabled,grow:f.grow,acceptedFormats:["xls","xlsx"],onNewFile:u[0]||(u[0]=h=>l(h))},null,8,["label","withOptionalLabel","withLabelSpace","errors","disabled","grow"]))}}),LL1={class:"input-container"},_L1=["placeholder","disabled"],AL1=["onMousedown"],SL1=["textContent"],NL1=o.defineComponent({__name:"PgaInputSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Number,Function]},placeholder:{type:[String,Number,Function]},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(c1=>({"22d3f4a2":o.unref(i).input.height,f77d4eee:o.unref(i).input.padding,"3fd8b1e2":o.unref(i).input.borderColor,"3b30ea66":o.unref(i).input.borderRadius,"1c411b4d":o.unref(i).input.backgroundColor,13076886:o.unref(i).input.colorFocus,"2f8c1ce9":o.unref(i).input.backgroundColorDisabled,"78c0d790":o.unref(i).input.placeholderColor,"5dcbb208":o.unref(i).input.paddingWithIcon}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=$3("pgaSelect"),{formOptions:i}=O3.storeToRefs(Z3()),s=o.ref(),l=o.ref(),f=o.ref(),u=o.ref(""),h=o.ref(!1),d=o.ref(!1),m=o.computed(()=>c.options.find(c1=>c1.id===t.value)),p=o.computed(()=>!!c.options.length),v=o.computed(()=>{if(d.value)return c.options;const c1=K6.normalizeText(u.value).split(" ");return c.options.filter(F=>{const R=K6.normalizeText(k(F));return c1.every(X=>R.includes(X))})}),g=o.computed(()=>c.disabled||!p.value),z=o.computed(()=>{if(p.value){if(c.placeholder)return q6(c.placeholder)}else return c.emptyOptionsText?q6(c.emptyOptionsText):n("emptyOptionsText")}),M=o.computed(()=>g.value?!1:!!(u.value||t.value)),x=o.computed(()=>g.value?!1:!M.value&&!h.value),y=o.computed(()=>!!(M.value||x.value));o.watch(m,()=>e1()),o.watch(l,c1=>{if(!c1)return;const F=document.documentElement.clientHeight,R=document.documentElement.clientWidth,X=s.value.getBoundingClientRect(),h1={};X.top<F/2?h1.top=`${X.bottom}px`:h1.bottom=`${F-X.top}px`,h1.left=`${X.left}px`,h1.right=`${R-X.right}px`,f.value=h1});function k(c1){return q6(c1[c.descriptionField])}function _(){d.value=!0,h.value=!0}function H(){e1(),h.value=!1}function T(){d.value=!1}function L(c1){E(c1.id)}function W(){var c1;u.value="",E(null),(c1=s.value)==null||c1.blur()}function Z(){var c1;(c1=s.value)==null||c1.focus()}function E(c1){t.value=c1,r("change",c1)}function e1(){const c1=m.value;u.value=c1?k(c1):""}return lH(s,()=>{var c1;return(c1=s.value)==null?void 0:c1.blur()}),e1(),(c1,F)=>(o.openBlock(),o.createBlock(M6,{label:c1.label,withOptionalLabel:c1.withOptionalLabel,withLabelSpace:c1.withLabelSpace,errors:c1.errors,grow:c1.grow},{default:o.withCtx(()=>[o.createElementVNode("div",LL1,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":F[0]||(F[0]=R=>u.value=R),ref_key:"inputRef",ref:s,class:o.normalizeClass({"input__with-btn":y.value}),type:"text",placeholder:z.value,disabled:g.value,onFocus:F[1]||(F[1]=R=>_()),onBlur:F[2]||(F[2]=R=>H()),onInput:F[3]||(F[3]=R=>T())},null,42,_L1),[[o.vModelText,u.value]]),M.value?(o.openBlock(),o.createBlock(T7,{key:0,icon:"xmark",onMousedown:F[4]||(F[4]=o.withModifiers(R=>W(),["prevent"]))})):o.createCommentVNode("",!0),x.value?(o.openBlock(),o.createBlock(T7,{key:1,icon:"chevron-down",onMousedown:F[5]||(F[5]=o.withModifiers(R=>Z(),["prevent"]))})):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[h.value&&v.value.length?(o.openBlock(),o.createElementBlock("ul",{key:0,ref_key:"dropdownRef",ref:l,class:"input-dropdown",style:o.normalizeStyle(f.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value,R=>(o.openBlock(),o.createElementBlock("li",{key:R.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":R.id===t.value}]),onMousedown:X=>L(R)},[o.createElementVNode("span",{textContent:o.toDisplayString(k(R))},null,8,SL1)],42,AL1))),128))],4)):o.createCommentVNode("",!0)]))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const TL1=X1(NL1,[["__scopeId","data-v-3efd29cf"]]),EL1=["disabled"],FL1=["value"],DL1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Number,Function]},placeholder:{type:[String,Number,Function]},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(s=>({d68fe07c:o.unref(r).input.height,bb3ede54:o.unref(r).input.padding,"1fd81e48":o.unref(r).input.borderColor,"2b39da39":o.unref(r).input.borderRadius,"3c3db69a":o.unref(r).input.backgroundColor,49951450:o.unref(r).input.colorFocus,c959c994:o.unref(r).input.backgroundColorDisabled}));const t=o.useModel(e,"modelValue"),c=e,{formOptions:r}=O3.storeToRefs(Z3()),n=o.computed(()=>!!c.options.length),i=o.computed(()=>c.disabled||!n.value);return(s,l)=>(o.openBlock(),o.createBlock(M6,{label:s.label,withOptionalLabel:s.withOptionalLabel,withLabelSpace:s.withLabelSpace,errors:s.errors,grow:s.grow},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=f=>t.value=f),disabled:i.value},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.options,f=>(o.openBlock(),o.createElementBlock("option",{key:f.id,value:f.id},o.toDisplayString(o.unref(q6)(f[s.descriptionField])),9,FL1))),128))],8,EL1),[[o.vModelSelect,t.value]])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const PL1=X1(DL1,[["__scopeId","data-v-257a0a5d"]]),BL1={class:"icons-container"},OL1=o.defineComponent({__name:"PgaSelectIcon",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=o.useModel(e,"modelValue"),t=["plus","minus","pen","edit","check","trash","file","clipboard","bell","calendar","clock","envelope","heart","star","money-check-dollar","gift","percent","magnifying-glass-dollar","house","car","store","gamepad","mobile","school","shirt","user-doctor","face-smile","face-frown-open","cog","lock","bug","camera","code","headphones","wifi","user","search","home","arrow-right-arrow-left","circle"];return(c,r)=>(o.openBlock(),o.createBlock(M6,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",BL1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(t,n=>o.createVNode(A3,{key:n,icon:n,buttonType:a.value===n?"outlined":"flat",color:a.value===n?"primary":"grey",width:"2.5em",disabled:c.disabled,onClick:i=>a.value=n},null,8,["icon","buttonType","color","disabled","onClick"])),64))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const RL1=X1(OL1,[["__scopeId","data-v-c0cafe41"]]),IL1=["disabled"],$L1={class:"slider--thumb"},UL1=o.defineComponent({__name:"PgaSwitch",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},disabled:{type:Boolean},fitContent:{type:Boolean},grow:{},updateFn:{type:Function}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=o.useModel(e,"modelValue"),t=e;async function c(r){if(t.updateFn){const n=r.target.checked;try{await t.updateFn(),a.value=n}catch{a.value=!n}}}return(r,n)=>(o.openBlock(),o.createBlock(M6,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,fitContent:r.fitContent,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("label",{class:o.normalizeClass(["switch",{"switch__with-label":r.label}])},[o.withDirectives(o.createElementVNode("input",{class:"switch--input","onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i),type:"checkbox",role:"switch",disabled:r.disabled,onChange:n[1]||(n[1]=i=>c(i))},null,40,IL1),[[o.vModelCheckbox,a.value]]),o.createElementVNode("div",{class:o.normalizeClass(["switch--slider",{"switch--slider__checked":a.value,"switch--slider__disabled":r.disabled}])},[o.createElementVNode("div",$L1,[o.createVNode(v3,{class:"thumb--icon",icon:a.value?"check":"xmark"},null,8,["icon"])])],2)],2)]),_:1},8,["label","withOptionalLabel","withLabelSpace","fitContent","grow"]))}});const WL1=X1(UL1,[["__scopeId","data-v-e527d102"]]),YL1={class:"switch-options"},qL1=["onClick"],GL1=o.defineComponent({__name:"PgaSwitchOptions",props:o.mergeModels({items:{},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(c=>({"6158f916":o.unref(t).input.borderRadius,"12a855fe":o.unref(t).input.height,fc7b9fc0:o.unref(t).input.borderColor,"7b1a9844":o.unref(t).input.backgroundColor,"2d3fdc8c":o.unref(t).input.colorFocus,"31b128cc":o.unref(t).input.backgroundColorFocus,31784004:o.unref(t).input.backgroundColorHover}));const a=o.useModel(e,"modelValue"),{formOptions:t}=O3.storeToRefs(Z3());return(c,r)=>{const n=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(n,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",YL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.items,(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["switch-options--item",{"switch-options--item__first-item":s===0,"switch-options--item__last-item":s+1===c.items.length,"switch-options--item__active":a.value===i.id}]),key:i.id,onClick:l=>a.value=i.id},[o.createVNode(D0,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,qL1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const jL1=X1(GL1,[["__scopeId","data-v-9c5b2d88"]]),XL1="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJ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gAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",ZL1=["src"],QL1=["src"],KL1=o.defineComponent({__name:"PgaImage",props:o.mergeModels({source:{default:"dynamic"},image:{},defaultImage:{},uploadFn:{},deleteFn:{},buttonsLayout:{default:"vertical"},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(k=>({"589d2b7a":s.value}));const a=o.useModel(e,"modelValue"),t=e,c=$3("pgaImage"),r=o.ref(!1),n=o.ref(),i=o.ref(),s=o.ref("0"),l=o.ref(!1),f=o.ref(!1),u=o.computed(()=>a.value?a.value:t.image),h=o.computed(()=>`${Z3().imageOptions[`${t.source}Url`]}/${u.value}`),d=o.computed(()=>!!(!u.value||r.value)),m=o.computed(()=>t.defaultImage?`${Z3().imageOptions.staticUrl}/${t.defaultImage}`:XL1),p=o.computed(()=>{const k=[];return t.size?k.push({height:t.size,width:t.size}):(t.height&&k.push({height:t.height,width:"auto"}),t.width&&k.push({height:"auto",width:t.width}),t.height&&t.width&&k.push({height:t.height,width:t.width})),k}),v=o.computed(()=>{const k=[];return t.rounded?k.push({borderRadius:"100%"}):t.borderRadius&&k.push({borderRadius:t.borderRadius}),k});o.watch(h,()=>r.value=!1);function g(){r.value=!0}async function z(){var k;(k=i.value)==null||k.click()}async function M(k){var _;(_=i.value)==null||_.resetInput();try{l.value=!0;const H={image:k};a.value=await t.uploadFn(H)}finally{l.value=!1}}async function x(){try{f.value=!0,await t.deleteFn(),a.value=void 0}finally{f.value=!1}}function y(){if(n.value){const k=n.value.getBoundingClientRect();t.buttonsLayout==="horizontal"&&(s.value=`${k.height}px`),t.buttonsLayout==="vertical"&&(s.value=`${k.width}px`)}}return o.onMounted(()=>{n.value&&new ResizeObserver(y).observe(n.value)}),(k,_)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["img-wrapper",[`img-wrapper__${k.buttonsLayout}`]])},[o.createElementVNode("div",{class:"img-container",style:o.normalizeStyle(p.value)},[d.value?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:m.value,style:o.normalizeStyle(v.value)},null,12,ZL1)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:h.value,style:o.normalizeStyle(v.value),onError:_[0]||(_[0]=H=>g())},null,44,QL1))],4),k.uploadFn||k.deleteFn?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"imgButtonsRef",ref:n,class:o.normalizeClass(["img-buttons",[`img-buttons__${k.buttonsLayout}`]])},[k.uploadFn?(o.openBlock(),o.createBlock(A3,{key:0,buttonType:"flat",size:"s",icon:"camera",isLoading:l.value,onClick:_[1]||(_[1]=H=>z())},null,8,["isLoading"])):o.createCommentVNode("",!0),k.uploadFn?(o.openBlock(),o.createBlock(hi,{key:1,ref_key:"inputFileRef",ref:i,class:"input-file",acceptedFormats:["jpeg","jpg","png"],onNewFile:_[2]||(_[2]=H=>M(H))},null,512)):o.createCommentVNode("",!0),!d.value&&k.deleteFn?(o.openBlock(),o.createBlock(C7,{key:2,withoutText:"",confirmDeleteText:o.unref(c)("confirmDeleteText"),isLoading:f.value,onDeleteConfirmed:_[3]||(_[3]=H=>x())},null,8,["confirmDeleteText","isLoading"])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],2))}});const JL1=X1(KL1,[["__scopeId","data-v-2db108ed"]]),Ab=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),e_1={key:0,class:"pagination"},a_1={key:0,class:"pagination--item-container"},t_1=Ab(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),c_1=["textContent","onClick"],r_1={key:1,class:"pagination--item-container"},n_1=Ab(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),i_1=["textContent"],s_1=o.defineComponent({__name:"PgaPagination",props:o.mergeModels({totalCount:{},pageSize:{},preventScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:o.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=o.computed(()=>{const h=[t.value];for(let d=t.value-1;d>=t.value-3&&d>=1;d--)h.unshift(d);for(let d=t.value+1;d<=t.value+3&&d<=n.value;d++)h.push(d);if(h.length===7)return h;if(h.includes(1))for(let d=h[h.length-1]+1;d<=7-h.length+h[h.length-1]&&d<=n.value;d++)h.push(d);else for(let d=h[0]-1;d>=-(7-h.length)+h[0]&&d>=1;d--)h.unshift(d);return h}),s=o.computed(()=>!i.value.includes(1)),l=o.computed(()=>!i.value.includes(n.value));return o.watch(t,f=>{r("newPage",f),c.preventScrollToTop||oH()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",e_1,[s.value?(o.openBlock(),o.createElementBlock("div",a_1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),t_1])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(["pagination--item",{"pagination--item__current":h===t.value}]),textContent:o.toDisplayString(h),onClick:d=>t.value=h},null,10,c_1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",r_1,[n_1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,i_1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const Sb=X1(s_1,[["__scopeId","data-v-09dde44c"]]),o_1=o.defineComponent({__name:"PgaTr",props:{index:{}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("tr",{class:o.normalizeClass([typeof a.index>"u"?"":a.index%2===0?"tr__even":"tr__odd"])},[o.renderSlot(a.$slots,"default",{},void 0,!0)],2))}});const Af=X1(o_1,[["__scopeId","data-v-dd6d415a"]]),l_1=o.defineComponent({__name:"PgaTh",props:{title:{type:[String,Number,Function],default:""},align:{default:"left"}},setup(e){return o.useCssVars(a=>({"382ad71d":a.align})),(a,t)=>(o.openBlock(),o.createElementBlock("th",null,[o.createVNode(D0,{text:a.title,showEmptyText:""},null,8,["text"])]))}});const $a=X1(l_1,[["__scopeId","data-v-aafcdff9"]]),f_1={class:"td--content"},u_1=o.defineComponent({__name:"PgaTd",props:{align:{default:"left"},fitContent:{type:Boolean}},setup(e){o.useCssVars(c=>({"46d10c70":c.align,"99d2ab4c":t.value}));const a=e,t=o.computed(()=>{if(a.align==="left")return"flex-start";if(a.align==="center")return"center";if(a.align==="right")return"flex-end"});return(c,r)=>(o.openBlock(),o.createElementBlock("td",{class:o.normalizeClass({"td__fit-content":!!c.fitContent})},[o.createElementVNode("div",f_1,[o.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const Ua=X1(u_1,[["__scopeId","data-v-2db20038"]]),h_1={class:"table-container"},d_1={class:"table-header"},m_1={class:"header--search-container"},p_1={class:"indentation-content"},v_1={key:0,class:"indentation-line"},g_1={key:1,class:"actions-buttons"},x_1={key:0,class:"small-devices-list"},z_1={class:"small-devices-list--item-container"},C_1={key:1,class:"items-selected"},M_1=["textContent"],H_1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},createItemBtnText:{},withEditButton:{type:Boolean},confirmDeleteText:{type:Function},actionsOptions:{},useDropdown:{type:Boolean},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:o.mergeModels(["createItem","editItem","deleteItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:a}){const t=o.useModel(e,"searchParams"),c=o.useModel(e,"itemsSelected"),r=e,n=a,i=$3("pgaTable"),s=o.ref([]),l=o.ref(),f=o.computed(()=>{const H={};for(const T in r.columns){const L=r.columns[T];L.hide||(H[T]=L)}return H}),u=o.computed(()=>{if(!r.indentation)return!1;for(const H of r.items)if(H[r.indentation.propName].length>0)return!0;return!1}),h=o.computed(()=>{if(!u.value)return r.items;const H=[];for(const T of r.items)H.push(T),x(T)&&H.push(...T[r.indentation.propName]);return H}),d=o.computed(()=>!!c.value),m=o.computed(()=>{var H;return!!(r.withEditButton||r.confirmDeleteText||(H=r.actionsOptions)!=null&&H.length)}),p=o.computed(()=>{var H;return(H=r.actionsOptions)!=null&&H.length?!0:r.useDropdown}),v=o.computed(()=>{var H,T;return((H=t.value)==null?void 0:H.page)&&((T=t.value)==null?void 0:T.pageSize)&&r.totalCount}),g=o.computed(()=>{var H;return((H=t.value)==null?void 0:H.search)!==void 0});o.watch(()=>r.items,()=>{d.value&&(c.value=[])});function z(){t.value.page=1,n("refreshList")}function M(H){return r.items.map(L=>L.id).includes(H.id)}function x(H){return s.value.includes(H.id)}function y(H){s.value.push(H.id)}function k(H){s.value=s.value.filter(T=>T!==H.id)}function _(){l.value.toggleItemSelected()}return(H,T)=>(o.openBlock(),o.createElementBlock("div",h_1,[o.createElementVNode("div",d_1,[H.createItemBtnText?(o.openBlock(),o.createBlock(A3,{key:0,icon:"plus",text:H.createItemBtnText,onClick:T[0]||(T[0]=L=>n("createItem"))},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(H.$slots,"header",{},void 0,!0),o.createElementVNode("div",m_1,[g.value?(o.openBlock(),o.createBlock(E7,{key:0,class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":T[1]||(T[1]=L=>t.value.search=L),placeholder:H.searchInputPlaceholder,onEnter:T[2]||(T[2]=L=>z()),onValueCleared:T[3]||(T[3]=L=>z())},null,8,["modelValue","placeholder"])):o.createCommentVNode("",!0),(v.value||g.value)&&H.isLoading?(o.openBlock(),o.createBlock(B5,{key:1,size:"0.7em"})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["table-wrapper",{"table-wrapper__with-small-devices-list":H.$slots.smallDevicesItem}])},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createVNode(Af,null,{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock($a,{key:0})):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock($a,{key:1})):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(L,W)=>(o.openBlock(),o.createBlock($a,{key:W,title:L.title,align:L.align},null,8,["title","align"]))),128)),m.value?(o.openBlock(),o.createBlock($a,{key:2,title:o.unref(i)("columnTitleActions")},null,8,["title"])):o.createCommentVNode("",!0)]),_:1})]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(L,W)=>(o.openBlock(),o.createBlock(Af,{key:L.id,index:W},{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Ua,{key:0,fitContent:""},{default:o.withCtx(()=>[o.createVNode(dr,{modelValue:c.value,"onUpdate:modelValue":T[4]||(T[4]=Z=>c.value=Z),items:h.value,item:L},null,8,["modelValue","items","item"])]),_:2},1024)):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Ua,{key:1,fitContent:""},{default:o.withCtx(()=>[o.createElementVNode("div",p_1,[M(L)?x(L)?(o.openBlock(),o.createBlock(v3,{key:1,icon:"caret-down",clickable:"",onClick:Z=>k(L)},null,8,["onClick"])):L[r.indentation.propName].length>0?(o.openBlock(),o.createBlock(v3,{key:2,icon:"caret-right",clickable:"",onClick:Z=>y(L)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",v_1))])]),_:2},1024)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(Z,E)=>(o.openBlock(),o.createBlock(Ua,{key:E,align:Z.align,fitContent:Z.fitContent},{default:o.withCtx(()=>[o.renderSlot(H.$slots,E,{item:L},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),m.value?(o.openBlock(),o.createBlock(Ua,{key:2,fitContent:""},{default:o.withCtx(()=>[p.value?(o.openBlock(),o.createBlock(fH,{key:0,item:L,options:H.actionsOptions,align:"right"},{default:o.withCtx(()=>[H.withEditButton?(o.openBlock(),o.createBlock(mr,{key:0,onClick:Z=>n("editItem",L)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(C7,{key:1,confirmDeleteText:H.confirmDeleteText(L),onDeleteConfirmed:Z=>n("deleteItem",L)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]),_:2},1032,["item","options"])):(o.openBlock(),o.createElementBlock("div",g_1,[H.withEditButton?(o.openBlock(),o.createBlock(mr,{key:0,onClick:Z=>n("editItem",L)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(C7,{key:1,confirmDeleteText:H.confirmDeleteText(L),onDeleteConfirmed:Z=>n("deleteItem",L)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]))]),_:2},1024)):o.createCommentVNode("",!0)]),_:2},1032,["index"]))),128))])])],2),H.$slots.smallDevicesItem?(o.openBlock(),o.createElementBlock("div",x_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(L,W)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:L.id},[o.createElementVNode("div",z_1,[o.renderSlot(H.$slots,"smallDevicesItem",{item:L},void 0,!0)]),W+1<h.value.length?(o.openBlock(),o.createBlock(uH,{key:0})):o.createCommentVNode("",!0)],64))),128))])):o.createCommentVNode("",!0),o.createVNode(KH,{items:h.value,isLoading:H.isLoading},null,8,["items","isLoading"]),d.value&&h.value.length>0?(o.openBlock(),o.createElementBlock("div",C_1,[o.createVNode(dr,{ref_key:"itemsSelectedRef",ref:l,modelValue:c.value,"onUpdate:modelValue":T[5]||(T[5]=L=>c.value=L),items:h.value},null,8,["modelValue","items"]),o.createVNode(An,{class:"items-selected--select-all-btn",text:o.unref(i)("selectAllBtn"),onClick:T[6]||(T[6]=L=>_())},null,8,["text"]),o.createElementVNode("span",{class:"items-selected--selected-items-text",textContent:o.toDisplayString(o.unref(i)("withTheSelectedItemsText"))},null,8,M_1),o.renderSlot(H.$slots,"itemsSelected",{},void 0,!0)])):o.createCommentVNode("",!0),v.value?(o.openBlock(),o.createBlock(Sb,{key:2,modelValue:t.value.page,"onUpdate:modelValue":T[7]||(T[7]=L=>t.value.page=L),pageSize:t.value.pageSize,totalCount:H.totalCount,onNewPage:T[8]||(T[8]=L=>n("refreshList"))},null,8,["modelValue","pageSize","totalCount"])):o.createCommentVNode("",!0)]))}});const V_1=X1(H_1,[["__scopeId","data-v-55adfce0"]]),y_1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:p91,PgaButton:A3,PgaButtonLink:An,PgaChartBar:Yd1,PgaDatePicker:Cz1,PgaDeleteButton:C7,PgaDisplayBarcodes:Xd1,PgaDisplayDatetime:Jd1,PgaDisplayInfo:im1,PgaDisplayNoItems:KH,PgaDisplayPrice:vm1,PgaDisplayText:D0,PgaDropdown:fH,PgaEditButton:mr,PgaForm:JH,PgaFormRow:Mm1,PgaIcon:v3,PgaImage:JL1,PgaInfoCardFullPage:xl1,PgaInput:E7,PgaInputFile:hi,PgaInputFileExcel:kL1,PgaInputGroup:M6,PgaInputSelect:TL1,PgaIsEnabled:zl1,PgaItemSelected:dr,PgaLink:ql1,PgaLoginForm:op1,PgaLogoutButton:Gl1,PgaModal:wl1,PgaPagination:Sb,PgaSelect:PL1,PgaSelectIcon:RL1,PgaSeparator:uH,PgaSpinner:B5,PgaSwitch:WL1,PgaSwitchOptions:jL1,PgaTable:V_1,PgaUserMenu:Fl1},Symbol.toStringTag,{value:"Module"})),b_1={class:"notifications"},w_1=o.defineComponent({__name:"Notifications",setup(e){const a=$3("notifications"),{notificationsOptions:t}=O3.storeToRefs(Z3()),{notifications:c}=O3.storeToRefs(u6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",b_1,[o.createVNode(o.TransitionGroup,{name:"notifications--transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications--notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(D0,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(v3,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(ui)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(An,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(jV)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const k_1=X1(w_1,[["__scopeId","data-v-45c95570"]]);function L_1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(k_1)}}).mount(e)}const w6=$3("validations"),__1=Q3.withMessage(()=>w6("requiredRuleError"),wr),A_1=e=>Q3.withMessage(()=>w6("minLengthRuleError",{minLength:e}),Zm1(e)),S_1=e=>Q3.withMessage(()=>w6("maxLengthRuleError",{maxLength:e}),jm1(e)),N_1=Q3.withMessage(()=>w6("integerRuleError"),ep1),T_1=e=>Q3.withMessage(()=>w6("lessEqualRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a<=e)),E_1=e=>Q3.withMessage(()=>w6("greaterEqualRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a>=e)),F_1=e=>Q3.withMessage(()=>w6("lessThanRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a<e)),D_1=e=>Q3.withMessage(()=>w6("greaterThanRuleError",{number:e}),Q3.withParams({},a=>typeof a!="number"?!0:a>e));i9.add(W21);i9.add(e61);i9.add(i91);function P_1(e,a){const t=K6.mergeDeep(f91,a);Z3().options=K6.removeProps(t,"colors"),dM(t.colors),e.use(Tf),e.use(Pw),Object.entries(y_1).forEach(([c,r])=>{e.component(c,r)}),L_1()}exports.addNotification=GV;exports.animation=an1;exports.clearNotifications=jV;exports.copyModelFields=cl1;exports.createI18n=vM;exports.default=P_1;exports.displayAlert=hH;exports.getCoinAmountInString=J91;exports.getDatetimeInString=tn1;exports.getFinalValue=q6;exports.getLanguage=h7;exports.getNumberInString=d7;exports.getTheme=cr;exports.greaterEqualRule=E_1;exports.greaterThanRule=D_1;exports.integerRule=N_1;exports.isCurrentUrl=rl1;exports.lessEqualRule=T_1;exports.lessThanRule=F_1;exports.maxLengthRule=S_1;exports.minLengthRule=A_1;exports.removeNotification=ui;exports.requiredRule=__1;exports.rgba=en1;exports.scrollToTop=oH;exports.setBodyOverflow=m7;exports.setColor=d91;exports.setColors=dM;exports.setLanguage=K91;exports.setTheme=h91;exports.useColorsStore=nn;
|