@creopse/vue 0.0.20 → 0.0.21
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/index.cjs +12 -7
- package/dist/index.js +11 -6
- package/dist/index.mjs +4122 -2353
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue"),ti=require("@inertiajs/vue3");var cs;(function(e){e[e.DOCUMENT=1]="DOCUMENT",e[e.IMAGE=2]="IMAGE",e[e.VIDEO=3]="VIDEO",e[e.AUDIO=4]="AUDIO",e[e.OTHER=5]="OTHER"})(cs||(cs={}));var ds;(function(e){e[e.DRAFT=1]="DRAFT",e[e.PENDING=2]="PENDING",e[e.PUBLISHED=3]="PUBLISHED",e[e.TRASH=4]="TRASH"})(ds||(ds={}));var fs;(function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"})(fs||(fs={}));var hs;(function(e){e.SELF_HOSTED="self-hosted",e.YOUTUBE="youtube"})(hs||(hs={}));function $o(e){return e.length>1&&e.charAt(e.length-1)==="/"?e.substring(0,e.length-1):e}function Vo(e){return e.startsWith("/")?e.slice(1):e}function Go(){return window.location.protocol+"//"+window.location.hostname}function ms(e){const t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with ID "${e}" not found.`)}function ps(e){if(!e||typeof e!="string")return!1;let t=e.trim();t.includes("://")||(t="http://"+t);let n;try{n=new URL(t)}catch{return!1}const r=n.protocol.replace(":","");if(!["http","https","ftp"].includes(r)||!n.hostname)return!1;const s=n.hostname.toLowerCase();if(s.includes("_"))return!1;if(n.port){const c=parseInt(n.port,10);if(isNaN(c)||c<1||c>65535)return!1}const i=s==="localhost",a=/^(?:(?:\d{1,3}\.){3}\d{1,3})$/i.test(s),l=/^\[([0-9a-f:]+)\]$/i.test(s)||/^([0-9a-f:]+)$/i.test(s);if(!i&&!a&&!l){const c=s.split(".");if(c.length<2||c.some(u=>!u)||c[c.length-1].length<1)return!1}return!(!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i.test(s)&&!i&&!a&&!l)}//! moment.js
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
|
-
var
|
|
7
|
-
[`+
|
|
8
|
-
Arguments: `+Array.prototype.slice.call(
|
|
9
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var xn={};function ns(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),xn[e]||(rs(t),xn[e]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function me(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ki(e){var t,r;for(r in e)x(e,r)&&(t=e[r],me(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function kr(e,t){var r=Ne({},e),n;for(n in t)x(t,n)&&(je(e[n])&&je(t[n])?(r[n]={},Ne(r[n],e[n]),Ne(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)x(e,n)&&!x(t,n)&&je(e[n])&&(r[n]=Ne({},r[n]));return r}function xr(e){e!=null&&this.set(e)}var Dr;Object.keys?Dr=Object.keys:Dr=function(e){var t,r=[];for(t in e)x(e,t)&&r.push(t);return r};var Di={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Mi(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return me(n)?n.call(t,r):n}function fe(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Nr=/(\[[^\[]*\])|(\\)?([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,xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,_r={},et={};function D(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(et[e]=s),t&&(et[t[0]]=function(){return fe(s.apply(this,arguments),t[1],t[2])}),r&&(et[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Oi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bi(e){var t=e.match(Nr),r,n;for(r=0,n=t.length;r<n;r++)et[t[r]]?t[r]=et[t[r]]:t[r]=Oi(t[r]);return function(s){var a="",o;for(o=0;o<n;o++)a+=me(t[o])?t[o].call(s,e):t[o];return a}}function Rt(e,t){return e.isValid()?(t=ss(t,e.localeData()),_r[t]=_r[t]||bi(t),_r[t](e)):e.localeData().invalidDate()}function ss(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(xt.lastIndex=0;r>=0&&xt.test(e);)e=e.replace(xt,n),xt.lastIndex=0,r-=1;return e}var Ti={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 Ei(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Nr).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Ii="Invalid date";function Yi(){return this._invalidDate}var xi="%d",Ni=/\d{1,2}/;function Ai(e){return this._ordinal.replace("%d",e)}var Ri={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 Ci(e,t,r,n){var s=this._relativeTime[r];return me(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Li(e,t){var r=this._relativeTime[e>0?"future":"past"];return me(r)?r(t):r.replace(/%s/i,t)}var Nn={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 se(e){return typeof e=="string"?Nn[e]||Nn[e.toLowerCase()]:void 0}function Ar(e){var t={},r,n;for(n in e)x(e,n)&&(r=se(n),r&&(t[r]=e[n]));return t}var Pi={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 Wi(e){var t=[],r;for(r in e)x(e,r)&&t.push({unit:r,priority:Pi[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var as=/\d/,te=/\d\d/,is=/\d{3}/,Rr=/\d{4}/,Vt=/[+-]?\d{6}/,W=/\d\d?/,os=/\d\d\d\d?/,ls=/\d\d\d\d\d\d?/,Bt=/\d{1,3}/,Cr=/\d{1,4}/,zt=/[+-]?\d{1,6}/,nt=/\d+/,Zt=/[+-]?\d+/,Ui=/Z|[+-]\d\d:?\d\d/gi,qt=/Z|[+-]\d\d(?::?\d\d)?/gi,Fi=/[+-]?\d+(\.\d{1,3})?/,kt=/[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,st=/^[1-9]\d?/,Lr=/^([1-9]\d|\d)/,Pt;Pt={};function y(e,t,r){Pt[e]=me(t)?t:function(n,s){return n&&r?r:t}}function Hi(e,t){return x(Pt,e)?Pt[e](t._strict,t._locale):new RegExp(ji(e))}function ji(e){return we(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,a){return r||n||s||a}))}function we(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=re(t)),r}var Mr={};function C(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),De(t)&&(n=function(a,o){o[t]=T(a)}),s=e.length,r=0;r<s;r++)Mr[e[r]]=n}function Dt(e,t){C(e,function(r,n,s,a){s._w=s._w||{},t(r,s._w,s,a)})}function $i(e,t,r){t!=null&&x(Mr,e)&&Mr[e](t,r._a,r,e)}function Kt(e){return e%4===0&&e%100!==0||e%400===0}var B=0,ve=1,de=2,$=3,ie=4,Se=5,He=6,Gi=7,Vi=8;D("Y",0,0,function(){var e=this.year();return e<=9999?fe(e,4):"+"+e});D(0,["YY",2],0,function(){return this.year()%100});D(0,["YYYY",4],0,"year");D(0,["YYYYY",5],0,"year");D(0,["YYYYYY",6,!0],0,"year");y("Y",Zt);y("YY",W,te);y("YYYY",Cr,Rr);y("YYYYY",zt,Vt);y("YYYYYY",zt,Vt);C(["YYYYY","YYYYYY"],B);C("YYYY",function(e,t){t[B]=e.length===2?_.parseTwoDigitYear(e):T(e)});C("YY",function(e,t){t[B]=_.parseTwoDigitYear(e)});C("Y",function(e,t){t[B]=parseInt(e,10)});function _t(e){return Kt(e)?366:365}_.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var us=at("FullYear",!0);function Bi(){return Kt(this.year())}function at(e,t){return function(r){return r!=null?(cs(this,e,r),_.updateOffset(this,t),this):pt(this,e)}}function pt(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function cs(e,t,r){var n,s,a,o,c;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,o=e.month(),c=e.date(),c=c===29&&o===1&&!Kt(a)?28:c,s?n.setUTCFullYear(a,o,c):n.setFullYear(a,o,c)}}function zi(e){return e=se(e),me(this[e])?this[e]():this}function Zi(e,t){if(typeof e=="object"){e=Ar(e);var r=Wi(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=se(e),me(this[e]))return this[e](t);return this}function qi(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Pr(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=qi(t,12);return e+=(t-r)/12,r===1?Kt(e)?29:28:31-r%7%2}D("M",["MM",2],"Mo",function(){return this.month()+1});D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});D("MMMM",0,0,function(e){return this.localeData().months(this,e)});y("M",W,st);y("MM",W,te);y("MMM",function(e,t){return t.monthsShortRegex(e)});y("MMMM",function(e,t){return t.monthsRegex(e)});C(["M","MM"],function(e,t){t[ve]=T(e)-1});C(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[ve]=s:b(r).invalidMonth=e});var Ki="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ds="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ji=kt,Qi=kt;function Xi(e,t){return e?oe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fs).test(t)?"format":"standalone"][e.month()]:oe(this._months)?this._months:this._months.standalone}function eo(e,t){return e?oe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fs.test(t)?"format":"standalone"][e.month()]:oe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function to(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=he([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function ro(e,t,r){var n,s,a;if(this._monthsParseExact)return to.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=he([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function hs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=T(t);else if(t=e.localeData().monthsParse(t),!De(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Pr(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function ms(e){return e!=null?(hs(this,e),_.updateOffset(this,!0),this):pt(this,"Month")}function no(){return Pr(this.year(),this.month())}function so(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ao(e){return this._monthsParseExact?(x(this,"_monthsRegex")||_s.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Qi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _s(){function e(m,h){return h.length-m.length}var t=[],r=[],n=[],s,a,o,c;for(s=0;s<12;s++)a=he([2e3,s]),o=we(this.monthsShort(a,"")),c=we(this.months(a,"")),t.push(o),r.push(c),n.push(c),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function io(e,t,r,n,s,a,o){var c;return e<100&&e>=0?(c=new Date(e+400,t,r,n,s,a,o),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,n,s,a,o),c}function gt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Wt(e,t,r){var n=7+t-r,s=(7+gt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function ps(e,t,r,n,s){var a=(7+r-n)%7,o=Wt(e,n,s),c=1+7*(t-1)+a+o,m,h;return c<=0?(m=e-1,h=_t(m)+c):c>_t(e)?(m=e+1,h=c-_t(e)):(m=e,h=c),{year:m,dayOfYear:h}}function yt(e,t,r){var n=Wt(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,o;return s<1?(o=e.year()-1,a=s+ke(o,t,r)):s>ke(e.year(),t,r)?(a=s-ke(e.year(),t,r),o=e.year()+1):(o=e.year(),a=s),{week:a,year:o}}function ke(e,t,r){var n=Wt(e,t,r),s=Wt(e+1,t,r);return(_t(e)-n+s)/7}D("w",["ww",2],"wo","week");D("W",["WW",2],"Wo","isoWeek");y("w",W,st);y("ww",W,te);y("W",W,st);y("WW",W,te);Dt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=T(e)});function oo(e){return yt(e,this._week.dow,this._week.doy).week}var lo={dow:0,doy:6};function uo(){return this._week.dow}function co(){return this._week.doy}function fo(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ho(e){var t=yt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}D("d",0,"do","day");D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});D("e",0,0,"weekday");D("E",0,0,"isoWeekday");y("d",W);y("e",W);y("E",W);y("dd",function(e,t){return t.weekdaysMinRegex(e)});y("ddd",function(e,t){return t.weekdaysShortRegex(e)});y("dddd",function(e,t){return t.weekdaysRegex(e)});Dt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:b(r).invalidWeekday=e});Dt(["d","e","E"],function(e,t,r,n){t[n]=T(e)});function mo(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _o(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var po="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),go="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),yo=kt,vo=kt,So=kt;function wo(e,t){var r=oe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wr(r,this._week.dow):e?r[e.day()]:r}function ko(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Do(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Mo(e,t,r){var n,s,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=he([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Oo(e,t,r){var n,s,a;if(this._weekdaysParseExact)return Mo.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=he([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function bo(e){if(!this.isValid())return e!=null?this:NaN;var t=pt(this,"Day");return e!=null?(e=mo(e,this.localeData()),this.add(e-t,"d")):t}function To(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Eo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_o(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Io(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=yo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function xo(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ur.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=So),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ur(){function e(p,O){return O.length-p.length}var t=[],r=[],n=[],s=[],a,o,c,m,h;for(a=0;a<7;a++)o=he([2e3,1]).day(a),c=we(this.weekdaysMin(o,"")),m=we(this.weekdaysShort(o,"")),h=we(this.weekdays(o,"")),t.push(c),r.push(m),n.push(h),s.push(c),s.push(m),s.push(h);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fr(){return this.hours()%12||12}function No(){return this.hours()||24}D("H",["HH",2],0,"hour");D("h",["hh",2],0,Fr);D("k",["kk",2],0,No);D("hmm",0,0,function(){return""+Fr.apply(this)+fe(this.minutes(),2)});D("hmmss",0,0,function(){return""+Fr.apply(this)+fe(this.minutes(),2)+fe(this.seconds(),2)});D("Hmm",0,0,function(){return""+this.hours()+fe(this.minutes(),2)});D("Hmmss",0,0,function(){return""+this.hours()+fe(this.minutes(),2)+fe(this.seconds(),2)});function ys(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ys("a",!0);ys("A",!1);function vs(e,t){return t._meridiemParse}y("a",vs);y("A",vs);y("H",W,Lr);y("h",W,st);y("k",W,st);y("HH",W,te);y("hh",W,te);y("kk",W,te);y("hmm",os);y("hmmss",ls);y("Hmm",os);y("Hmmss",ls);C(["H","HH"],$);C(["k","kk"],function(e,t,r){var n=T(e);t[$]=n===24?0:n});C(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});C(["h","hh"],function(e,t,r){t[$]=T(e),b(r).bigHour=!0});C("hmm",function(e,t,r){var n=e.length-2;t[$]=T(e.substr(0,n)),t[ie]=T(e.substr(n)),b(r).bigHour=!0});C("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=T(e.substr(0,n)),t[ie]=T(e.substr(n,2)),t[Se]=T(e.substr(s)),b(r).bigHour=!0});C("Hmm",function(e,t,r){var n=e.length-2;t[$]=T(e.substr(0,n)),t[ie]=T(e.substr(n))});C("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=T(e.substr(0,n)),t[ie]=T(e.substr(n,2)),t[Se]=T(e.substr(s))});function Ao(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ro=/[ap]\.?m?\.?/i,Co=at("Hours",!0);function Lo(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Ss={calendar:Di,longDateFormat:Ti,invalidDate:Ii,ordinal:xi,dayOfMonthOrdinalParse:Ni,relativeTime:Ri,months:Ki,monthsShort:ds,week:lo,weekdays:po,weekdaysMin:go,weekdaysShort:gs,meridiemParse:Ro},F={},dt={},vt;function Po(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function An(e){return e&&e.toLowerCase().replace("_","-")}function Wo(e){for(var t=0,r,n,s,a;t<e.length;){for(a=An(e[t]).split("-"),r=a.length,n=An(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Jt(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Po(a,n)>=r-1)break;r--}t++}return vt}function Uo(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Jt(e){var t=null,r;if(F[e]===void 0&&typeof module<"u"&&module&&module.exports&&Uo(e))try{t=vt._abbr,r=require,r("./locale/"+e),Re(t)}catch{F[e]=null}return F[e]}function Re(e,t){var r;return e&&(X(t)?r=Me(e):r=Hr(e,t),r?vt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vt._abbr}function Hr(e,t){if(t!==null){var r,n=Ss;if(t.abbr=e,F[e]!=null)ns("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."),n=F[e]._config;else if(t.parentLocale!=null)if(F[t.parentLocale]!=null)n=F[t.parentLocale]._config;else if(r=Jt(t.parentLocale),r!=null)n=r._config;else return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;return F[e]=new xr(kr(n,t)),dt[e]&&dt[e].forEach(function(s){Hr(s.name,s.config)}),Re(e),F[e]}else return delete F[e],null}function Fo(e,t){if(t!=null){var r,n,s=Ss;F[e]!=null&&F[e].parentLocale!=null?F[e].set(kr(F[e]._config,t)):(n=Jt(e),n!=null&&(s=n._config),t=kr(s,t),n==null&&(t.abbr=e),r=new xr(t),r.parentLocale=F[e],F[e]=r),Re(e)}else F[e]!=null&&(F[e].parentLocale!=null?(F[e]=F[e].parentLocale,e===Re()&&Re(e)):F[e]!=null&&delete F[e]);return F[e]}function Me(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vt;if(!oe(e)){if(t=Jt(e),t)return t;e=[e]}return Wo(e)}function Ho(){return Dr(F)}function jr(e){var t,r=e._a;return r&&b(e).overflow===-2&&(t=r[ve]<0||r[ve]>11?ve:r[de]<1||r[de]>Pr(r[B],r[ve])?de:r[$]<0||r[$]>24||r[$]===24&&(r[ie]!==0||r[Se]!==0||r[He]!==0)?$:r[ie]<0||r[ie]>59?ie:r[Se]<0||r[Se]>59?Se:r[He]<0||r[He]>999?He:-1,b(e)._overflowDayOfYear&&(t<B||t>de)&&(t=de),b(e)._overflowWeeks&&t===-1&&(t=Gi),b(e)._overflowWeekday&&t===-1&&(t=Vi),b(e).overflow=t),e}var jo=/^\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)?)?$/,$o=/^\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)?)?$/,Go=/Z|[+-]\d\d(?::?\d\d)?/,Nt=[["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]],pr=[["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/]],Vo=/^\/?Date\((-?\d+)/i,Bo=/^(?:(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}))$/,zo={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 ws(e){var t,r,n=e._i,s=jo.exec(n)||$o.exec(n),a,o,c,m,h=Nt.length,p=pr.length;if(s){for(b(e).iso=!0,t=0,r=h;t<r;t++)if(Nt[t][1].exec(s[1])){o=Nt[t][0],a=Nt[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,r=p;t<r;t++)if(pr[t][1].exec(s[3])){c=(s[2]||" ")+pr[t][0];break}if(c==null){e._isValid=!1;return}}if(!a&&c!=null){e._isValid=!1;return}if(s[4])if(Go.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=o+(c||"")+(m||""),Gr(e)}else e._isValid=!1}function Zo(e,t,r,n,s,a){var o=[qo(e),ds.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return a&&o.push(parseInt(a,10)),o}function qo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ko(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Jo(e,t,r){if(e){var n=gs.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return b(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Qo(e,t,r){if(e)return zo[e];if(t)return 0;var n=parseInt(r,10),s=n%100,a=(n-s)/100;return a*60+s}function ks(e){var t=Bo.exec(Ko(e._i)),r;if(t){if(r=Zo(t[4],t[3],t[2],t[5],t[6],t[7]),!Jo(t[1],r,e))return;e._a=r,e._tzm=Qo(t[8],t[9],t[10]),e._d=gt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),b(e).rfc2822=!0}else e._isValid=!1}function Xo(e){var t=Vo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ws(e),e._isValid===!1)delete e._isValid;else return;if(ks(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=ne("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 Qe(e,t,r){return e??t??r}function el(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $r(e){var t,r,n=[],s,a,o;if(!e._d){for(s=el(e),e._w&&e._a[de]==null&&e._a[ve]==null&&tl(e),e._dayOfYear!=null&&(o=Qe(e._a[B],s[B]),(e._dayOfYear>_t(o)||e._dayOfYear===0)&&(b(e)._overflowDayOfYear=!0),r=gt(o,0,e._dayOfYear),e._a[ve]=r.getUTCMonth(),e._a[de]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$]===24&&e._a[ie]===0&&e._a[Se]===0&&e._a[He]===0&&(e._nextDay=!0,e._a[$]=0),e._d=(e._useUTC?gt:io).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(b(e).weekdayMismatch=!0)}}function tl(e){var t,r,n,s,a,o,c,m,h;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,r=Qe(t.GG,e._a[B],yt(P(),1,4).year),n=Qe(t.W,1),s=Qe(t.E,1),(s<1||s>7)&&(m=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,h=yt(P(),a,o),r=Qe(t.gg,e._a[B],h.year),n=Qe(t.w,h.week),t.d!=null?(s=t.d,(s<0||s>6)&&(m=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(m=!0)):s=a),n<1||n>ke(r,a,o)?b(e)._overflowWeeks=!0:m!=null?b(e)._overflowWeekday=!0:(c=ps(r,n,s,a,o),e._a[B]=c.year,e._dayOfYear=c.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function Gr(e){if(e._f===_.ISO_8601){ws(e);return}if(e._f===_.RFC_2822){ks(e);return}e._a=[],b(e).empty=!0;var t=""+e._i,r,n,s,a,o,c=t.length,m=0,h,p;for(s=ss(e._f,e._locale).match(Nr)||[],p=s.length,r=0;r<p;r++)a=s[r],n=(t.match(Hi(a,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&b(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),m+=n.length),et[a]?(n?b(e).empty=!1:b(e).unusedTokens.push(a),$i(a,n,e)):e._strict&&!n&&b(e).unusedTokens.push(a);b(e).charsLeftOver=c-m,t.length>0&&b(e).unusedInput.push(t),e._a[$]<=12&&b(e).bigHour===!0&&e._a[$]>0&&(b(e).bigHour=void 0),b(e).parsedDateParts=e._a.slice(0),b(e).meridiem=e._meridiem,e._a[$]=rl(e._locale,e._a[$],e._meridiem),h=b(e).era,h!==null&&(e._a[B]=e._locale.erasConvertYear(h,e._a[B])),$r(e),jr(e)}function rl(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function nl(e){var t,r,n,s,a,o,c=!1,m=e._f.length;if(m===0){b(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<m;s++)a=0,o=!1,t=Yr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Gr(t),Ir(t)&&(o=!0),a+=b(t).charsLeftOver,a+=b(t).unusedTokens.length*10,b(t).score=a,c?a<n&&(n=a,r=t):(n==null||a<n||o)&&(n=a,r=t,o&&(c=!0));Ne(e,r||t)}function sl(e){if(!e._d){var t=Ar(e._i),r=t.day===void 0?t.date:t.day;e._a=ts([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),$r(e)}}function al(e){var t=new wt(jr(Ds(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ds(e){var t=e._i,r=e._f;return e._locale=e._locale||Me(e._l),t===null||r===void 0&&t===""?Gt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),le(t)?new wt(jr(t)):(St(t)?e._d=t:oe(r)?nl(e):r?Gr(e):il(e),Ir(e)||(e._d=null),e))}function il(e){var t=e._i;X(t)?e._d=new Date(_.now()):St(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Xo(e):oe(t)?(e._a=ts(t.slice(0),function(r){return parseInt(r,10)}),$r(e)):je(t)?sl(e):De(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Ms(e,t,r,n,s){var a={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(je(e)&&Er(e)||oe(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=r,a._i=e,a._f=t,a._strict=n,al(a)}function P(e,t,r,n){return Ms(e,t,r,n,!1)}var ol=ne("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Gt()}),ll=ne("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Gt()});function Os(e,t){var r,n;if(t.length===1&&oe(t[0])&&(t=t[0]),!t.length)return P();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function ul(){var e=[].slice.call(arguments,0);return Os("isBefore",e)}function cl(){var e=[].slice.call(arguments,0);return Os("isAfter",e)}var dl=function(){return Date.now?Date.now():+new Date},ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fl(e){var t,r=!1,n,s=ft.length;for(t in e)if(x(e,t)&&!(H.call(ft,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[ft[n]]){if(r)return!1;parseFloat(e[ft[n]])!==T(e[ft[n]])&&(r=!0)}return!0}function hl(){return this._isValid}function ml(){return ue(NaN)}function Qt(e){var t=Ar(e),r=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,c=t.hour||0,m=t.minute||0,h=t.second||0,p=t.millisecond||0;this._isValid=fl(t),this._milliseconds=+p+h*1e3+m*6e4+c*1e3*60*60,this._days=+o+a*7,this._months=+s+n*3+r*12,this._data={},this._locale=Me(),this._bubble()}function Ct(e){return e instanceof Qt}function Or(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _l(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,o;for(o=0;o<n;o++)T(e[o])!==T(t[o])&&a++;return a+s}function bs(e,t){D(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+fe(~~(r/60),2)+t+fe(~~r%60,2)})}bs("Z",":");bs("ZZ","");y("Z",qt);y("ZZ",qt);C(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Vr(qt,e)});var pl=/([\+\-]|\d\d)/gi;function Vr(e,t){var r=(t||"").match(e),n,s,a;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(pl)||["-",0,0],a=+(s[1]*60)+T(s[2]),a===0?0:s[0]==="+"?a:-a)}function Br(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(le(e)||St(e)?e.valueOf():P(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),_.updateOffset(r,!1),r):P(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function gl(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Vr(qt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=br(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Is(this,ue(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:br(this)}function yl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vl(e){return this.utcOffset(0,e)}function Sl(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function wl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Vr(Ui,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function kl(e){return this.isValid()?(e=e?P(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Dl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ml(){if(!X(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yr(e,this),e=Ds(e),e._a?(t=e._isUTC?he(e._a):P(e._a),this._isDSTShifted=this.isValid()&&_l(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ol(){return this.isValid()?!this._isUTC:!1}function bl(){return this.isValid()?this._isUTC:!1}function Ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,El=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ue(e,t){var r=e,n=null,s,a,o;return Ct(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:De(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Tl.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:T(n[de])*s,h:T(n[$])*s,m:T(n[ie])*s,s:T(n[Se])*s,ms:T(Or(n[He]*1e3))*s}):(n=El.exec(e))?(s=n[1]==="-"?-1:1,r={y:Fe(n[2],s),M:Fe(n[3],s),w:Fe(n[4],s),d:Fe(n[5],s),h:Fe(n[6],s),m:Fe(n[7],s),s:Fe(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Il(P(r.from),P(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),a=new Qt(r),Ct(e)&&x(e,"_locale")&&(a._locale=e._locale),Ct(e)&&x(e,"_isValid")&&(a._isValid=e._isValid),a}ue.fn=Qt.prototype;ue.invalid=ml;function Fe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Rn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Il(e,t){var r;return e.isValid()&&t.isValid()?(t=Br(t,e),e.isBefore(t)?r=Rn(e,t):(r=Rn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Es(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(ns(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=ue(r,n),Is(this,s,e),this}}function Is(e,t,r,n){var s=t._milliseconds,a=Or(t._days),o=Or(t._months);e.isValid()&&(n=n??!0,o&&hs(e,pt(e,"Month")+o*r),a&&cs(e,"Date",pt(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&_.updateOffset(e,a||o))}var Yl=Es(1,"add"),xl=Es(-1,"subtract");function Ys(e){return typeof e=="string"||e instanceof String}function Nl(e){return le(e)||St(e)||Ys(e)||De(e)||Rl(e)||Al(e)||e===null||e===void 0}function Al(e){var t=je(e)&&!Er(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,o=n.length;for(s=0;s<o;s+=1)a=n[s],r=r||x(e,a);return t&&r}function Rl(e){var t=oe(e),r=!1;return t&&(r=e.filter(function(n){return!De(n)&&Ys(e)}).length===0),t&&r}function Cl(e){var t=je(e)&&!Er(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1)a=n[s],r=r||x(e,a);return t&&r}function Ll(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Pl(e,t){arguments.length===1&&(arguments[0]?Nl(arguments[0])?(e=arguments[0],t=void 0):Cl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||P(),n=Br(r,this).startOf("day"),s=_.calendarFormat(this,n)||"sameElse",a=t&&(me(t[s])?t[s].call(this,r):t[s]);return this.format(a||this.localeData().calendar(s,this,P(r)))}function Wl(){return new wt(this)}function Ul(e,t){var r=le(e)?e:P(e);return this.isValid()&&r.isValid()?(t=se(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Fl(e,t){var r=le(e)?e:P(e);return this.isValid()&&r.isValid()?(t=se(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Hl(e,t,r,n){var s=le(e)?e:P(e),a=le(t)?t:P(t);return this.isValid()&&s.isValid()&&a.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function jl(e,t){var r=le(e)?e:P(e),n;return this.isValid()&&r.isValid()?(t=se(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function $l(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vl(e,t,r){var n,s,a;if(!this.isValid())return NaN;if(n=Br(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=se(t),t){case"year":a=Lt(this,n)/12;break;case"month":a=Lt(this,n);break;case"quarter":a=Lt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return r?a:re(a)}function Lt(e,t){if(e.date()<t.date())return-Lt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,a;return t-n<0?(s=e.clone().add(r-1,"months"),a=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),a=(t-n)/(s-n)),-(r+a)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Bl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function zl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Rt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rt(r,"Z")):Rt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function ql(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Rt(this,e);return this.localeData().postformat(t)}function Kl(e,t){return this.isValid()&&(le(e)&&e.isValid()||P(e).isValid())?ue({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Jl(e){return this.from(P(),e)}function Ql(e,t){return this.isValid()&&(le(e)&&e.isValid()||P(e).isValid())?ue({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xl(e){return this.to(P(),e)}function xs(e){var t;return e===void 0?this._locale._abbr:(t=Me(e),t!=null&&(this._locale=t),this)}var Ns=ne("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 As(){return this._locale}var Ut=1e3,tt=60*Ut,Ft=60*tt,Rs=(365*400+97)*24*Ft;function rt(e,t){return(e%t+t)%t}function Cs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Rs:new Date(e,t,r).valueOf()}function Ls(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Rs:Date.UTC(e,t,r)}function eu(e){var t,r;if(e=se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ls:Cs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rt(t+(this._isUTC?0:this.utcOffset()*tt),Ft);break;case"minute":t=this._d.valueOf(),t-=rt(t,tt);break;case"second":t=this._d.valueOf(),t-=rt(t,Ut);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function tu(e){var t,r;if(e=se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Ls:Cs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ft-rt(t+(this._isUTC?0:this.utcOffset()*tt),Ft)-1;break;case"minute":t=this._d.valueOf(),t+=tt-rt(t,tt)-1;break;case"second":t=this._d.valueOf(),t+=Ut-rt(t,Ut)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function ru(){return this._d.valueOf()-(this._offset||0)*6e4}function nu(){return Math.floor(this.valueOf()/1e3)}function su(){return new Date(this.valueOf())}function au(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function iu(){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 ou(){return this.isValid()?this.toISOString():null}function lu(){return Ir(this)}function uu(){return Ne({},b(this))}function cu(){return b(this).overflow}function du(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr");D("NN",0,0,"eraAbbr");D("NNN",0,0,"eraAbbr");D("NNNN",0,0,"eraName");D("NNNNN",0,0,"eraNarrow");D("y",["y",1],"yo","eraYear");D("y",["yy",2],0,"eraYear");D("y",["yyy",3],0,"eraYear");D("y",["yyyy",4],0,"eraYear");y("N",zr);y("NN",zr);y("NNN",zr);y("NNNN",ku);y("NNNNN",Du);C(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?b(r).era=s:b(r).invalidEra=e});y("y",nt);y("yy",nt);y("yyy",nt);y("yyyy",nt);y("yo",Mu);C(["y","yy","yyy","yyyy"],B);C(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[B]=r._locale.eraYearOrdinalParse(e,s):t[B]=parseInt(e,10)});function fu(e,t){var r,n,s,a=this._eras||Me("en")._eras;for(r=0,n=a.length;r<n;++r){switch(typeof a[r].since){case"string":s=_(a[r].since).startOf("day"),a[r].since=s.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":s=_(a[r].until).startOf("day").valueOf(),a[r].until=s.valueOf();break}}return a}function hu(e,t,r){var n,s,a=this.eras(),o,c,m;for(e=e.toUpperCase(),n=0,s=a.length;n<s;++n)if(o=a[n].name.toUpperCase(),c=a[n].abbr.toUpperCase(),m=a[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(c===e)return a[n];break;case"NNNN":if(o===e)return a[n];break;case"NNNNN":if(m===e)return a[n];break}else if([o,c,m].indexOf(e)>=0)return a[n]}function mu(e,t){var r=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*r}function _u(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function pu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function gu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function yu(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-_(s[e].since).year())*r+s[e].offset;return this.year()}function vu(e){return x(this,"_erasNameRegex")||Zr.call(this),e?this._erasNameRegex:this._erasRegex}function Su(e){return x(this,"_erasAbbrRegex")||Zr.call(this),e?this._erasAbbrRegex:this._erasRegex}function wu(e){return x(this,"_erasNarrowRegex")||Zr.call(this),e?this._erasNarrowRegex:this._erasRegex}function zr(e,t){return t.erasAbbrRegex(e)}function ku(e,t){return t.erasNameRegex(e)}function Du(e,t){return t.erasNarrowRegex(e)}function Mu(e,t){return t._eraYearOrdinalRegex||nt}function Zr(){var e=[],t=[],r=[],n=[],s,a,o,c,m,h=this.eras();for(s=0,a=h.length;s<a;++s)o=we(h[s].name),c=we(h[s].abbr),m=we(h[s].narrow),t.push(o),e.push(c),r.push(m),n.push(o),n.push(c),n.push(m);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}D(0,["gg",2],0,function(){return this.weekYear()%100});D(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xt(e,t){D(0,[e,e.length],0,t)}Xt("gggg","weekYear");Xt("ggggg","weekYear");Xt("GGGG","isoWeekYear");Xt("GGGGG","isoWeekYear");y("G",Zt);y("g",Zt);y("GG",W,te);y("gg",W,te);y("GGGG",Cr,Rr);y("gggg",Cr,Rr);y("GGGGG",zt,Vt);y("ggggg",zt,Vt);Dt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=T(e)});Dt(["gg","GG"],function(e,t,r,n){t[n]=_.parseTwoDigitYear(e)});function Ou(e){return Ps.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bu(e){return Ps.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tu(){return ke(this.year(),1,4)}function Eu(){return ke(this.isoWeekYear(),1,4)}function Iu(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Yu(){var e=this.localeData()._week;return ke(this.weekYear(),e.dow,e.doy)}function Ps(e,t,r,n,s){var a;return e==null?yt(this,n,s).year:(a=ke(e,n,s),t>a&&(t=a),xu.call(this,e,t,r,n,s))}function xu(e,t,r,n,s){var a=ps(e,t,r,n,s),o=gt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}D("Q",0,"Qo","quarter");y("Q",as);C("Q",function(e,t){t[ve]=(T(e)-1)*3});function Nu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}D("D",["DD",2],"Do","date");y("D",W,st);y("DD",W,te);y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],de);C("Do",function(e,t){t[de]=T(e.match(W)[0])});var Ws=at("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear");y("DDD",Bt);y("DDDD",is);C(["DDD","DDDD"],function(e,t,r){r._dayOfYear=T(e)});function Au(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}D("m",["mm",2],0,"minute");y("m",W,Lr);y("mm",W,te);C(["m","mm"],ie);var Ru=at("Minutes",!1);D("s",["ss",2],0,"second");y("s",W,Lr);y("ss",W,te);C(["s","ss"],Se);var Cu=at("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)});D(0,["SS",2],0,function(){return~~(this.millisecond()/10)});D(0,["SSS",3],0,"millisecond");D(0,["SSSS",4],0,function(){return this.millisecond()*10});D(0,["SSSSS",5],0,function(){return this.millisecond()*100});D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});y("S",Bt,as);y("SS",Bt,te);y("SSS",Bt,is);var Ae,Us;for(Ae="SSSS";Ae.length<=9;Ae+="S")y(Ae,nt);function Lu(e,t){t[He]=T(("0."+e)*1e3)}for(Ae="S";Ae.length<=9;Ae+="S")C(Ae,Lu);Us=at("Milliseconds",!1);D("z",0,0,"zoneAbbr");D("zz",0,0,"zoneName");function Pu(){return this._isUTC?"UTC":""}function Wu(){return this._isUTC?"Coordinated Universal Time":""}var f=wt.prototype;f.add=Yl;f.calendar=Pl;f.clone=Wl;f.diff=Vl;f.endOf=tu;f.format=ql;f.from=Kl;f.fromNow=Jl;f.to=Ql;f.toNow=Xl;f.get=zi;f.invalidAt=cu;f.isAfter=Ul;f.isBefore=Fl;f.isBetween=Hl;f.isSame=jl;f.isSameOrAfter=$l;f.isSameOrBefore=Gl;f.isValid=lu;f.lang=Ns;f.locale=xs;f.localeData=As;f.max=ll;f.min=ol;f.parsingFlags=uu;f.set=Zi;f.startOf=eu;f.subtract=xl;f.toArray=au;f.toObject=iu;f.toDate=su;f.toISOString=zl;f.inspect=Zl;typeof Symbol<"u"&&Symbol.for!=null&&(f[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});f.toJSON=ou;f.toString=Bl;f.unix=nu;f.valueOf=ru;f.creationData=du;f.eraName=_u;f.eraNarrow=pu;f.eraAbbr=gu;f.eraYear=yu;f.year=us;f.isLeapYear=Bi;f.weekYear=Ou;f.isoWeekYear=bu;f.quarter=f.quarters=Nu;f.month=ms;f.daysInMonth=no;f.week=f.weeks=fo;f.isoWeek=f.isoWeeks=ho;f.weeksInYear=Iu;f.weeksInWeekYear=Yu;f.isoWeeksInYear=Tu;f.isoWeeksInISOWeekYear=Eu;f.date=Ws;f.day=f.days=bo;f.weekday=To;f.isoWeekday=Eo;f.dayOfYear=Au;f.hour=f.hours=Co;f.minute=f.minutes=Ru;f.second=f.seconds=Cu;f.millisecond=f.milliseconds=Us;f.utcOffset=gl;f.utc=vl;f.local=Sl;f.parseZone=wl;f.hasAlignedHourOffset=kl;f.isDST=Dl;f.isLocal=Ol;f.isUtcOffset=bl;f.isUtc=Ts;f.isUTC=Ts;f.zoneAbbr=Pu;f.zoneName=Wu;f.dates=ne("dates accessor is deprecated. Use date instead.",Ws);f.months=ne("months accessor is deprecated. Use month instead",ms);f.years=ne("years accessor is deprecated. Use year instead",us);f.zone=ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yl);f.isDSTShifted=ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ml);function Uu(e){return P(e*1e3)}function Fu(){return P.apply(null,arguments).parseZone()}function Fs(e){return e}var N=xr.prototype;N.calendar=Mi;N.longDateFormat=Ei;N.invalidDate=Yi;N.ordinal=Ai;N.preparse=Fs;N.postformat=Fs;N.relativeTime=Ci;N.pastFuture=Li;N.set=ki;N.eras=fu;N.erasParse=hu;N.erasConvertYear=mu;N.erasAbbrRegex=Su;N.erasNameRegex=vu;N.erasNarrowRegex=wu;N.months=Xi;N.monthsShort=eo;N.monthsParse=ro;N.monthsRegex=ao;N.monthsShortRegex=so;N.week=oo;N.firstDayOfYear=co;N.firstDayOfWeek=uo;N.weekdays=wo;N.weekdaysMin=Do;N.weekdaysShort=ko;N.weekdaysParse=Oo;N.weekdaysRegex=Io;N.weekdaysShortRegex=Yo;N.weekdaysMinRegex=xo;N.isPM=Ao;N.meridiem=Lo;function Ht(e,t,r,n){var s=Me(),a=he().set(n,t);return s[r](a,e)}function Hs(e,t,r){if(De(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ht(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Ht(e,n,r,"month");return s}function qr(e,t,r,n){typeof e=="boolean"?(De(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,De(t)&&(r=t,t=void 0),t=t||"");var s=Me(),a=e?s._week.dow:0,o,c=[];if(r!=null)return Ht(t,(r+a)%7,n,"day");for(o=0;o<7;o++)c[o]=Ht(t,(o+a)%7,n,"day");return c}function Hu(e,t){return Hs(e,t,"months")}function ju(e,t){return Hs(e,t,"monthsShort")}function $u(e,t,r){return qr(e,t,r,"weekdays")}function Gu(e,t,r){return qr(e,t,r,"weekdaysShort")}function Vu(e,t,r){return qr(e,t,r,"weekdaysMin")}Re("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 t=e%10,r=T(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});_.lang=ne("moment.lang is deprecated. Use moment.locale instead.",Re);_.langData=ne("moment.langData is deprecated. Use moment.localeData instead.",Me);var ge=Math.abs;function Bu(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function js(e,t,r,n){var s=ue(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function zu(e,t){return js(this,e,t,1)}function Zu(e,t){return js(this,e,t,-1)}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function qu(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,o,c,m;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Cn(Tr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=re(e/1e3),n.seconds=s%60,a=re(s/60),n.minutes=a%60,o=re(a/60),n.hours=o%24,t+=re(o/24),m=re($s(t)),r+=m,t-=Cn(Tr(m)),c=re(r/12),r%=12,n.days=t,n.months=r,n.years=c,this}function $s(e){return e*4800/146097}function Tr(e){return e*146097/4800}function Ku(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=se(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+$s(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Tr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Oe(e){return function(){return this.as(e)}}var Gs=Oe("ms"),Ju=Oe("s"),Qu=Oe("m"),Xu=Oe("h"),ec=Oe("d"),tc=Oe("w"),rc=Oe("M"),nc=Oe("Q"),sc=Oe("y"),ac=Gs;function ic(){return ue(this)}function oc(e){return e=se(e),this.isValid()?this[e+"s"]():NaN}function $e(e){return function(){return this.isValid()?this._data[e]:NaN}}var lc=$e("milliseconds"),uc=$e("seconds"),cc=$e("minutes"),dc=$e("hours"),fc=$e("days"),hc=$e("months"),mc=$e("years");function _c(){return re(this.days()/7)}var ye=Math.round,Xe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pc(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function gc(e,t,r,n){var s=ue(e).abs(),a=ye(s.as("s")),o=ye(s.as("m")),c=ye(s.as("h")),m=ye(s.as("d")),h=ye(s.as("M")),p=ye(s.as("w")),O=ye(s.as("y")),Y=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||c<=1&&["h"]||c<r.h&&["hh",c]||m<=1&&["d"]||m<r.d&&["dd",m];return r.w!=null&&(Y=Y||p<=1&&["w"]||p<r.w&&["ww",p]),Y=Y||h<=1&&["M"]||h<r.M&&["MM",h]||O<=1&&["y"]||["yy",O],Y[2]=t,Y[3]=+e>0,Y[4]=n,pc.apply(null,Y)}function yc(e){return e===void 0?ye:typeof e=="function"?(ye=e,!0):!1}function vc(e,t){return Xe[e]===void 0?!1:t===void 0?Xe[e]:(Xe[e]=t,e==="s"&&(Xe.ss=t-1),!0)}function Sc(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Xe,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Xe,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=gc(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var gr=Math.abs;function Je(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e=gr(this._milliseconds)/1e3,t=gr(this._days),r=gr(this._months),n,s,a,o,c=this.asSeconds(),m,h,p,O;return c?(n=re(e/60),s=re(n/60),e%=60,n%=60,a=re(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=c<0?"-":"",h=Je(this._months)!==Je(c)?"-":"",p=Je(this._days)!==Je(c)?"-":"",O=Je(this._milliseconds)!==Je(c)?"-":"",m+"P"+(a?h+a+"Y":"")+(r?h+r+"M":"")+(t?p+t+"D":"")+(s||n||e?"T":"")+(s?O+s+"H":"")+(n?O+n+"M":"")+(e?O+o+"S":"")):"P0D"}var I=Qt.prototype;I.isValid=hl;I.abs=Bu;I.add=zu;I.subtract=Zu;I.as=Ku;I.asMilliseconds=Gs;I.asSeconds=Ju;I.asMinutes=Qu;I.asHours=Xu;I.asDays=ec;I.asWeeks=tc;I.asMonths=rc;I.asQuarters=nc;I.asYears=sc;I.valueOf=ac;I._bubble=qu;I.clone=ic;I.get=oc;I.milliseconds=lc;I.seconds=uc;I.minutes=cc;I.hours=dc;I.days=fc;I.weeks=_c;I.months=hc;I.years=mc;I.humanize=Sc;I.toISOString=er;I.toString=er;I.toJSON=er;I.locale=xs;I.localeData=As;I.toIsoString=ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er);I.lang=Ns;D("X",0,0,"unix");D("x",0,0,"valueOf");y("x",Zt);y("X",Fi);C("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,r){r._d=new Date(T(e))});//! moment.js
|
|
10
|
-
|
|
6
|
+
var ni;function b(){return ni.apply(null,arguments)}function zo(e){ni=e}function Ee(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function st(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(U(e,t))return!1;return!0}function fe(e){return e===void 0}function He(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Yt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ri(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function qe(e,t){for(var n in t)U(t,n)&&(e[n]=t[n]);return U(t,"toString")&&(e.toString=t.toString),U(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ne(e,t,n,r){return Di(e,t,n,r,!0).utc()}function qo(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function I(e){return e._pf==null&&(e._pf=qo()),e._pf}var tr;Array.prototype.some?tr=Array.prototype.some:tr=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function hr(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=I(e),n=tr.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function _n(e){var t=Ne(NaN);return e!=null?qe(I(t),e):I(t).userInvalidated=!0,t}var _s=b.momentProperties=[],Vn=!1;function mr(e,t){var n,r,s,i=_s.length;if(fe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),fe(t._i)||(e._i=t._i),fe(t._f)||(e._f=t._f),fe(t._l)||(e._l=t._l),fe(t._strict)||(e._strict=t._strict),fe(t._tzm)||(e._tzm=t._tzm),fe(t._isUTC)||(e._isUTC=t._isUTC),fe(t._offset)||(e._offset=t._offset),fe(t._pf)||(e._pf=I(t)),fe(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=_s[n],s=t[r],fe(s)||(e[r]=s);return e}function Ut(e){mr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Vn===!1&&(Vn=!0,b.updateOffset(this),Vn=!1)}function ke(e){return e instanceof Ut||e!=null&&e._isAMomentObject!=null}function si(e){b.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function we(e,t){var n=!0;return qe(function(){if(b.deprecationHandler!=null&&b.deprecationHandler(null,e),n){var r=[],s,i,a,l=arguments.length;for(i=0;i<l;i++){if(s="",typeof arguments[i]=="object"){s+=`
|
|
7
|
+
[`+i+"] ";for(a in arguments[0])U(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}si(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var ys={};function ii(e,t){b.deprecationHandler!=null&&b.deprecationHandler(e,t),ys[e]||(si(t),ys[e]=!0)}b.suppressDeprecationWarnings=!1;b.deprecationHandler=null;function Ie(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Jo(e){var t,n;for(n in e)U(e,n)&&(t=e[n],Ie(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function nr(e,t){var n=qe({},e),r;for(r in t)U(t,r)&&(st(e[r])&&st(t[r])?(n[r]={},qe(n[r],e[r]),qe(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)U(e,r)&&!U(t,r)&&st(e[r])&&(n[r]=qe({},n[r]));return n}function pr(e){e!=null&&this.set(e)}var rr;Object.keys?rr=Object.keys:rr=function(e){var t,n=[];for(t in e)U(e,t)&&n.push(t);return n};var Zo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ko(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Ie(r)?r.call(t,n):r}function Ae(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var _r=/(\[[^\[]*\])|(\\)?([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,Kt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gn={},_t={};function x(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(_t[e]=s),t&&(_t[t[0]]=function(){return Ae(s.apply(this,arguments),t[1],t[2])}),n&&(_t[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Xo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Qo(e){var t=e.match(_r),n,r;for(n=0,r=t.length;n<r;n++)_t[t[n]]?t[n]=_t[t[n]]:t[n]=Xo(t[n]);return function(s){var i="",a;for(a=0;a<r;a++)i+=Ie(t[a])?t[a].call(s,e):t[a];return i}}function tn(e,t){return e.isValid()?(t=ai(t,e.localeData()),Gn[t]=Gn[t]||Qo(t),Gn[t](e)):e.localeData().invalidDate()}function ai(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(Kt.lastIndex=0;n>=0&&Kt.test(e);)e=e.replace(Kt,r),Kt.lastIndex=0,n-=1;return e}var el={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 tl(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(_r).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var nl="Invalid date";function rl(){return this._invalidDate}var sl="%d",il=/\d{1,2}/;function al(e){return this._ordinal.replace("%d",e)}var ol={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 ll(e,t,n,r){var s=this._relativeTime[n];return Ie(s)?s(e,t,n,r):s.replace(/%d/i,e)}function ul(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ie(n)?n(t):n.replace(/%s/i,t)}var gs={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 Se(e){return typeof e=="string"?gs[e]||gs[e.toLowerCase()]:void 0}function yr(e){var t={},n,r;for(r in e)U(e,r)&&(n=Se(r),n&&(t[n]=e[r]));return t}var cl={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 dl(e){var t=[],n;for(n in e)U(e,n)&&t.push({unit:n,priority:cl[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var oi=/\d/,ye=/\d\d/,li=/\d{3}/,gr=/\d{4}/,yn=/[+-]?\d{6}/,G=/\d\d?/,ui=/\d\d\d\d?/,ci=/\d\d\d\d\d\d?/,gn=/\d{1,3}/,wr=/\d{1,4}/,wn=/[+-]?\d{1,6}/,St=/\d+/,Sn=/[+-]?\d+/,fl=/Z|[+-]\d\d:?\d\d/gi,vn=/Z|[+-]\d\d(?::?\d\d)?/gi,hl=/[+-]?\d+(\.\d{1,3})?/,Ft=/[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,vt=/^[1-9]\d?/,Sr=/^([1-9]\d|\d)/,ln;ln={};function O(e,t,n){ln[e]=Ie(t)?t:function(r,s){return r&&n?n:t}}function ml(e,t){return U(ln,e)?ln[e](t._strict,t._locale):new RegExp(pl(e))}function pl(e){return We(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,i){return n||r||s||i}))}function We(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ge(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ge(t)),n}var sr={};function B(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),He(t)&&(r=function(i,a){a[t]=C(i)}),s=e.length,n=0;n<s;n++)sr[e[n]]=r}function Wt(e,t){B(e,function(n,r,s,i){s._w=s._w||{},t(n,s._w,s,i)})}function _l(e,t,n){t!=null&&U(sr,e)&&sr[e](t,n._a,n,e)}function bn(e){return e%4===0&&e%100!==0||e%400===0}var le=0,Ue=1,xe=2,te=3,Oe=4,Fe=5,nt=6,yl=7,gl=8;x("Y",0,0,function(){var e=this.year();return e<=9999?Ae(e,4):"+"+e});x(0,["YY",2],0,function(){return this.year()%100});x(0,["YYYY",4],0,"year");x(0,["YYYYY",5],0,"year");x(0,["YYYYYY",6,!0],0,"year");O("Y",Sn);O("YY",G,ye);O("YYYY",wr,gr);O("YYYYY",wn,yn);O("YYYYYY",wn,yn);B(["YYYYY","YYYYYY"],le);B("YYYY",function(e,t){t[le]=e.length===2?b.parseTwoDigitYear(e):C(e)});B("YY",function(e,t){t[le]=b.parseTwoDigitYear(e)});B("Y",function(e,t){t[le]=parseInt(e,10)});function Nt(e){return bn(e)?366:365}b.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var di=bt("FullYear",!0);function wl(){return bn(this.year())}function bt(e,t){return function(n){return n!=null?(fi(this,e,n),b.updateOffset(this,t),this):It(this,e)}}function It(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function fi(e,t,n){var r,s,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!bn(i)?28:l,s?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function Sl(e){return e=Se(e),Ie(this[e])?this[e]():this}function vl(e,t){if(typeof e=="object"){e=yr(e);var n=dl(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=Se(e),Ie(this[e]))return this[e](t);return this}function bl(e,t){return(e%t+t)%t}var X;Array.prototype.indexOf?X=Array.prototype.indexOf:X=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function vr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=bl(t,12);return e+=(t-n)/12,n===1?bn(e)?29:28:31-n%7%2}x("M",["MM",2],"Mo",function(){return this.month()+1});x("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});x("MMMM",0,0,function(e){return this.localeData().months(this,e)});O("M",G,vt);O("MM",G,ye);O("MMM",function(e,t){return t.monthsShortRegex(e)});O("MMMM",function(e,t){return t.monthsRegex(e)});B(["M","MM"],function(e,t){t[Ue]=C(e)-1});B(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[Ue]=s:I(n).invalidMonth=e});var Ol="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,El=Ft,kl=Ft;function Dl(e,t){return e?Ee(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mi).test(t)?"format":"standalone"][e.month()]:Ee(this._months)?this._months:this._months.standalone}function Tl(e,t){return e?Ee(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mi.test(t)?"format":"standalone"][e.month()]:Ee(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ml(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Ne([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(s=X.call(this._shortMonthsParse,a),s!==-1?s:null):(s=X.call(this._longMonthsParse,a),s!==-1?s:null):t==="MMM"?(s=X.call(this._shortMonthsParse,a),s!==-1?s:(s=X.call(this._longMonthsParse,a),s!==-1?s:null)):(s=X.call(this._longMonthsParse,a),s!==-1?s:(s=X.call(this._shortMonthsParse,a),s!==-1?s:null))}function Rl(e,t,n){var r,s,i;if(this._monthsParseExact)return Ml.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=Ne([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function pi(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!He(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,vr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function _i(e){return e!=null?(pi(this,e),b.updateOffset(this,!0),this):It(this,"Month")}function xl(){return vr(this.year(),this.month())}function Al(e){return this._monthsParseExact?(U(this,"_monthsRegex")||yi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(U(this,"_monthsShortRegex")||(this._monthsShortRegex=El),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Nl(e){return this._monthsParseExact?(U(this,"_monthsRegex")||yi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(U(this,"_monthsRegex")||(this._monthsRegex=kl),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yi(){function e(m,c){return c.length-m.length}var t=[],n=[],r=[],s,i,a,l;for(s=0;s<12;s++)i=Ne([2e3,s]),a=We(this.monthsShort(i,"")),l=We(this.months(i,"")),t.push(a),n.push(l),r.push(l),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Il(e,t,n,r,s,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,s,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,s,i,a),l}function Ct(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function un(e,t,n){var r=7+t-n,s=(7+Ct(e,0,r).getUTCDay()-t)%7;return-s+r-1}function gi(e,t,n,r,s){var i=(7+n-r)%7,a=un(e,r,s),l=1+7*(t-1)+i+a,m,c;return l<=0?(m=e-1,c=Nt(m)+l):l>Nt(e)?(m=e+1,c=l-Nt(e)):(m=e,c=l),{year:m,dayOfYear:c}}function Pt(e,t,n){var r=un(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+je(a,t,n)):s>je(e.year(),t,n)?(i=s-je(e.year(),t,n),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function je(e,t,n){var r=un(e,t,n),s=un(e+1,t,n);return(Nt(e)-r+s)/7}x("w",["ww",2],"wo","week");x("W",["WW",2],"Wo","isoWeek");O("w",G,vt);O("ww",G,ye);O("W",G,vt);O("WW",G,ye);Wt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=C(e)});function Cl(e){return Pt(e,this._week.dow,this._week.doy).week}var Pl={dow:0,doy:6};function Ll(){return this._week.dow}function Yl(){return this._week.doy}function Ul(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Fl(e){var t=Pt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}x("d",0,"do","day");x("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});x("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});x("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});x("e",0,0,"weekday");x("E",0,0,"isoWeekday");O("d",G);O("e",G);O("E",G);O("dd",function(e,t){return t.weekdaysMinRegex(e)});O("ddd",function(e,t){return t.weekdaysShortRegex(e)});O("dddd",function(e,t){return t.weekdaysRegex(e)});Wt(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:I(n).invalidWeekday=e});Wt(["d","e","E"],function(e,t,n,r){t[r]=C(e)});function Wl(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function jl(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function br(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Hl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$l=Ft,Vl=Ft,Gl=Ft;function zl(e,t){var n=Ee(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?br(n,this._week.dow):e?n[e.day()]:n}function ql(e){return e===!0?br(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Jl(e){return e===!0?br(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Zl(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ne([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(s=X.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=X.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=X.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=X.call(this._weekdaysParse,a),s!==-1||(s=X.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=X.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=X.call(this._shortWeekdaysParse,a),s!==-1||(s=X.call(this._weekdaysParse,a),s!==-1)?s:(s=X.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=X.call(this._minWeekdaysParse,a),s!==-1||(s=X.call(this._weekdaysParse,a),s!==-1)?s:(s=X.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function Kl(e,t,n){var r,s,i;if(this._weekdaysParseExact)return Zl.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=Ne([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Xl(e){if(!this.isValid())return e!=null?this:NaN;var t=It(this,"Day");return e!=null?(e=Wl(e,this.localeData()),this.add(e-t,"d")):t}function Ql(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function eu(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=jl(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function tu(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||Or.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(U(this,"_weekdaysRegex")||(this._weekdaysRegex=$l),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function nu(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||Or.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(U(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vl),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ru(e){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||Or.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(U(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gl),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Or(){function e(u,y){return y.length-u.length}var t=[],n=[],r=[],s=[],i,a,l,m,c;for(i=0;i<7;i++)a=Ne([2e3,1]).day(i),l=We(this.weekdaysMin(a,"")),m=We(this.weekdaysShort(a,"")),c=We(this.weekdays(a,"")),t.push(l),n.push(m),r.push(c),s.push(l),s.push(m),s.push(c);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Er(){return this.hours()%12||12}function su(){return this.hours()||24}x("H",["HH",2],0,"hour");x("h",["hh",2],0,Er);x("k",["kk",2],0,su);x("hmm",0,0,function(){return""+Er.apply(this)+Ae(this.minutes(),2)});x("hmmss",0,0,function(){return""+Er.apply(this)+Ae(this.minutes(),2)+Ae(this.seconds(),2)});x("Hmm",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)});x("Hmmss",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)+Ae(this.seconds(),2)});function Si(e,t){x(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Si("a",!0);Si("A",!1);function vi(e,t){return t._meridiemParse}O("a",vi);O("A",vi);O("H",G,Sr);O("h",G,vt);O("k",G,vt);O("HH",G,ye);O("hh",G,ye);O("kk",G,ye);O("hmm",ui);O("hmmss",ci);O("Hmm",ui);O("Hmmss",ci);B(["H","HH"],te);B(["k","kk"],function(e,t,n){var r=C(e);t[te]=r===24?0:r});B(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});B(["h","hh"],function(e,t,n){t[te]=C(e),I(n).bigHour=!0});B("hmm",function(e,t,n){var r=e.length-2;t[te]=C(e.substr(0,r)),t[Oe]=C(e.substr(r)),I(n).bigHour=!0});B("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[te]=C(e.substr(0,r)),t[Oe]=C(e.substr(r,2)),t[Fe]=C(e.substr(s)),I(n).bigHour=!0});B("Hmm",function(e,t,n){var r=e.length-2;t[te]=C(e.substr(0,r)),t[Oe]=C(e.substr(r))});B("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[te]=C(e.substr(0,r)),t[Oe]=C(e.substr(r,2)),t[Fe]=C(e.substr(s))});function iu(e){return(e+"").toLowerCase().charAt(0)==="p"}var au=/[ap]\.?m?\.?/i,ou=bt("Hours",!0);function lu(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var bi={calendar:Zo,longDateFormat:el,invalidDate:nl,ordinal:sl,dayOfMonthOrdinalParse:il,relativeTime:ol,months:Ol,monthsShort:hi,week:Pl,weekdays:Hl,weekdaysMin:Bl,weekdaysShort:wi,meridiemParse:au},q={},Tt={},Lt;function uu(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ws(e){return e&&e.toLowerCase().replace("_","-")}function cu(e){for(var t=0,n,r,s,i;t<e.length;){for(i=ws(e[t]).split("-"),n=i.length,r=ws(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=On(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&uu(i,r)>=n-1)break;n--}t++}return Lt}function du(e){return!!(e&&e.match("^[^/\\\\]*$"))}function On(e){var t=null,n;if(q[e]===void 0&&typeof module<"u"&&module&&module.exports&&du(e))try{t=Lt._abbr,n=require,n("./locale/"+e),Ze(t)}catch{q[e]=null}return q[e]}function Ze(e,t){var n;return e&&(fe(t)?n=Be(e):n=kr(e,t),n?Lt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Lt._abbr}function kr(e,t){if(t!==null){var n,r=bi;if(t.abbr=e,q[e]!=null)ii("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."),r=q[e]._config;else if(t.parentLocale!=null)if(q[t.parentLocale]!=null)r=q[t.parentLocale]._config;else if(n=On(t.parentLocale),n!=null)r=n._config;else return Tt[t.parentLocale]||(Tt[t.parentLocale]=[]),Tt[t.parentLocale].push({name:e,config:t}),null;return q[e]=new pr(nr(r,t)),Tt[e]&&Tt[e].forEach(function(s){kr(s.name,s.config)}),Ze(e),q[e]}else return delete q[e],null}function fu(e,t){if(t!=null){var n,r,s=bi;q[e]!=null&&q[e].parentLocale!=null?q[e].set(nr(q[e]._config,t)):(r=On(e),r!=null&&(s=r._config),t=nr(s,t),r==null&&(t.abbr=e),n=new pr(t),n.parentLocale=q[e],q[e]=n),Ze(e)}else q[e]!=null&&(q[e].parentLocale!=null?(q[e]=q[e].parentLocale,e===Ze()&&Ze(e)):q[e]!=null&&delete q[e]);return q[e]}function Be(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Lt;if(!Ee(e)){if(t=On(e),t)return t;e=[e]}return cu(e)}function hu(){return rr(q)}function Dr(e){var t,n=e._a;return n&&I(e).overflow===-2&&(t=n[Ue]<0||n[Ue]>11?Ue:n[xe]<1||n[xe]>vr(n[le],n[Ue])?xe:n[te]<0||n[te]>24||n[te]===24&&(n[Oe]!==0||n[Fe]!==0||n[nt]!==0)?te:n[Oe]<0||n[Oe]>59?Oe:n[Fe]<0||n[Fe]>59?Fe:n[nt]<0||n[nt]>999?nt:-1,I(e)._overflowDayOfYear&&(t<le||t>xe)&&(t=xe),I(e)._overflowWeeks&&t===-1&&(t=yl),I(e)._overflowWeekday&&t===-1&&(t=gl),I(e).overflow=t),e}var mu=/^\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)?)?$/,pu=/^\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)?)?$/,_u=/Z|[+-]\d\d(?::?\d\d)?/,Xt=[["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]],zn=[["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/]],yu=/^\/?Date\((-?\d+)/i,gu=/^(?:(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}))$/,wu={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 Oi(e){var t,n,r=e._i,s=mu.exec(r)||pu.exec(r),i,a,l,m,c=Xt.length,u=zn.length;if(s){for(I(e).iso=!0,t=0,n=c;t<n;t++)if(Xt[t][1].exec(s[1])){a=Xt[t][0],i=Xt[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(s[3]){for(t=0,n=u;t<n;t++)if(zn[t][1].exec(s[3])){l=(s[2]||" ")+zn[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(s[4])if(_u.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(m||""),Mr(e)}else e._isValid=!1}function Su(e,t,n,r,s,i){var a=[vu(e),hi.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&a.push(parseInt(i,10)),a}function vu(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bu(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ou(e,t,n){if(e){var r=wi.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return I(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Eu(e,t,n){if(e)return wu[e];if(t)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function Ei(e){var t=gu.exec(bu(e._i)),n;if(t){if(n=Su(t[4],t[3],t[2],t[5],t[6],t[7]),!Ou(t[1],n,e))return;e._a=n,e._tzm=Eu(t[8],t[9],t[10]),e._d=Ct.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),I(e).rfc2822=!0}else e._isValid=!1}function ku(e){var t=yu.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Oi(e),e._isValid===!1)delete e._isValid;else return;if(Ei(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:b.createFromInputFallback(e)}b.createFromInputFallback=we("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 mt(e,t,n){return e??t??n}function Du(e){var t=new Date(b.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tr(e){var t,n,r=[],s,i,a;if(!e._d){for(s=Du(e),e._w&&e._a[xe]==null&&e._a[Ue]==null&&Tu(e),e._dayOfYear!=null&&(a=mt(e._a[le],s[le]),(e._dayOfYear>Nt(a)||e._dayOfYear===0)&&(I(e)._overflowDayOfYear=!0),n=Ct(a,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[te]===24&&e._a[Oe]===0&&e._a[Fe]===0&&e._a[nt]===0&&(e._nextDay=!0,e._a[te]=0),e._d=(e._useUTC?Ct:Il).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[te]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(I(e).weekdayMismatch=!0)}}function Tu(e){var t,n,r,s,i,a,l,m,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=mt(t.GG,e._a[le],Pt(V(),1,4).year),r=mt(t.W,1),s=mt(t.E,1),(s<1||s>7)&&(m=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Pt(V(),i,a),n=mt(t.gg,e._a[le],c.year),r=mt(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(m=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(m=!0)):s=i),r<1||r>je(n,i,a)?I(e)._overflowWeeks=!0:m!=null?I(e)._overflowWeekday=!0:(l=gi(n,r,s,i,a),e._a[le]=l.year,e._dayOfYear=l.dayOfYear)}b.ISO_8601=function(){};b.RFC_2822=function(){};function Mr(e){if(e._f===b.ISO_8601){Oi(e);return}if(e._f===b.RFC_2822){Ei(e);return}e._a=[],I(e).empty=!0;var t=""+e._i,n,r,s,i,a,l=t.length,m=0,c,u;for(s=ai(e._f,e._locale).match(_r)||[],u=s.length,n=0;n<u;n++)i=s[n],r=(t.match(ml(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&I(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),m+=r.length),_t[i]?(r?I(e).empty=!1:I(e).unusedTokens.push(i),_l(i,r,e)):e._strict&&!r&&I(e).unusedTokens.push(i);I(e).charsLeftOver=l-m,t.length>0&&I(e).unusedInput.push(t),e._a[te]<=12&&I(e).bigHour===!0&&e._a[te]>0&&(I(e).bigHour=void 0),I(e).parsedDateParts=e._a.slice(0),I(e).meridiem=e._meridiem,e._a[te]=Mu(e._locale,e._a[te],e._meridiem),c=I(e).era,c!==null&&(e._a[le]=e._locale.erasConvertYear(c,e._a[le])),Tr(e),Dr(e)}function Mu(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Ru(e){var t,n,r,s,i,a,l=!1,m=e._f.length;if(m===0){I(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<m;s++)i=0,a=!1,t=mr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Mr(t),hr(t)&&(a=!0),i+=I(t).charsLeftOver,i+=I(t).unusedTokens.length*10,I(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(l=!0));qe(e,n||t)}function xu(e){if(!e._d){var t=yr(e._i),n=t.day===void 0?t.date:t.day;e._a=ri([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tr(e)}}function Au(e){var t=new Ut(Dr(ki(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ki(e){var t=e._i,n=e._f;return e._locale=e._locale||Be(e._l),t===null||n===void 0&&t===""?_n({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ke(t)?new Ut(Dr(t)):(Yt(t)?e._d=t:Ee(n)?Ru(e):n?Mr(e):Nu(e),hr(e)||(e._d=null),e))}function Nu(e){var t=e._i;fe(t)?e._d=new Date(b.now()):Yt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ku(e):Ee(t)?(e._a=ri(t.slice(0),function(n){return parseInt(n,10)}),Tr(e)):st(t)?xu(e):He(t)?e._d=new Date(t):b.createFromInputFallback(e)}function Di(e,t,n,r,s){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(st(e)&&fr(e)||Ee(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=e,i._f=t,i._strict=r,Au(i)}function V(e,t,n,r){return Di(e,t,n,r,!1)}var Iu=we("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=V.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_n()}),Cu=we("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=V.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_n()});function Ti(e,t){var n,r;if(t.length===1&&Ee(t[0])&&(t=t[0]),!t.length)return V();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Pu(){var e=[].slice.call(arguments,0);return Ti("isBefore",e)}function Lu(){var e=[].slice.call(arguments,0);return Ti("isAfter",e)}var Yu=function(){return Date.now?Date.now():+new Date},Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Uu(e){var t,n=!1,r,s=Mt.length;for(t in e)if(U(e,t)&&!(X.call(Mt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[Mt[r]]){if(n)return!1;parseFloat(e[Mt[r]])!==C(e[Mt[r]])&&(n=!0)}return!0}function Fu(){return this._isValid}function Wu(){return De(NaN)}function En(e){var t=yr(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,m=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=Uu(t),this._milliseconds=+u+c*1e3+m*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=Be(),this._bubble()}function nn(e){return e instanceof En}function ir(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ju(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)C(e[a])!==C(t[a])&&i++;return i+s}function Mi(e,t){x(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Ae(~~(n/60),2)+t+Ae(~~n%60,2)})}Mi("Z",":");Mi("ZZ","");O("Z",vn);O("ZZ",vn);B(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rr(vn,e)});var Hu=/([\+\-]|\d\d)/gi;function Rr(e,t){var n=(t||"").match(e),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(Hu)||["-",0,0],i=+(s[1]*60)+C(s[2]),i===0?0:s[0]==="+"?i:-i)}function xr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ke(e)||Yt(e)?e.valueOf():V(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),b.updateOffset(n,!1),n):V(e).local()}function ar(e){return-Math.round(e._d.getTimezoneOffset())}b.updateOffset=function(){};function Bu(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Rr(vn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=ar(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?Ai(this,De(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:ar(this)}function $u(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Vu(e){return this.utcOffset(0,e)}function Gu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ar(this),"m")),this}function zu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Rr(fl,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qu(e){return this.isValid()?(e=e?V(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ju(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Zu(){if(!fe(this._isDSTShifted))return this._isDSTShifted;var e={},t;return mr(e,this),e=ki(e),e._a?(t=e._isUTC?Ne(e._a):V(e._a),this._isDSTShifted=this.isValid()&&ju(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ku(){return this.isValid()?!this._isUTC:!1}function Xu(){return this.isValid()?this._isUTC:!1}function Ri(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Qu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ec=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function De(e,t){var n=e,r=null,s,i,a;return nn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:He(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Qu.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:C(r[xe])*s,h:C(r[te])*s,m:C(r[Oe])*s,s:C(r[Fe])*s,ms:C(ir(r[nt]*1e3))*s}):(r=ec.exec(e))?(s=r[1]==="-"?-1:1,n={y:tt(r[2],s),M:tt(r[3],s),w:tt(r[4],s),d:tt(r[5],s),h:tt(r[6],s),m:tt(r[7],s),s:tt(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=tc(V(n.from),V(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new En(n),nn(e)&&U(e,"_locale")&&(i._locale=e._locale),nn(e)&&U(e,"_isValid")&&(i._isValid=e._isValid),i}De.fn=En.prototype;De.invalid=Wu;function tt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ss(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function tc(e,t){var n;return e.isValid()&&t.isValid()?(t=xr(t,e),e.isBefore(t)?n=Ss(e,t):(n=Ss(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function xi(e,t){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(ii(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=De(n,r),Ai(this,s,e),this}}function Ai(e,t,n,r){var s=t._milliseconds,i=ir(t._days),a=ir(t._months);e.isValid()&&(r=r??!0,a&&pi(e,It(e,"Month")+a*n),i&&fi(e,"Date",It(e,"Date")+i*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&b.updateOffset(e,i||a))}var nc=xi(1,"add"),rc=xi(-1,"subtract");function Ni(e){return typeof e=="string"||e instanceof String}function sc(e){return ke(e)||Yt(e)||Ni(e)||He(e)||ac(e)||ic(e)||e===null||e===void 0}function ic(e){var t=st(e)&&!fr(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=r.length;for(s=0;s<a;s+=1)i=r[s],n=n||U(e,i);return t&&n}function ac(e){var t=Ee(e),n=!1;return t&&(n=e.filter(function(r){return!He(r)&&Ni(e)}).length===0),t&&n}function oc(e){var t=st(e)&&!fr(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||U(e,i);return t&&n}function lc(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function uc(e,t){arguments.length===1&&(arguments[0]?sc(arguments[0])?(e=arguments[0],t=void 0):oc(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||V(),r=xr(n,this).startOf("day"),s=b.calendarFormat(this,r)||"sameElse",i=t&&(Ie(t[s])?t[s].call(this,n):t[s]);return this.format(i||this.localeData().calendar(s,this,V(n)))}function cc(){return new Ut(this)}function dc(e,t){var n=ke(e)?e:V(e);return this.isValid()&&n.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function fc(e,t){var n=ke(e)?e:V(e);return this.isValid()&&n.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function hc(e,t,n,r){var s=ke(e)?e:V(e),i=ke(t)?t:V(t);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function mc(e,t){var n=ke(e)?e:V(e),r;return this.isValid()&&n.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function pc(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function _c(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function yc(e,t,n){var r,s,i;if(!this.isValid())return NaN;if(r=xr(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=Se(t),t){case"year":i=rn(this,r)/12;break;case"month":i=rn(this,r);break;case"quarter":i=rn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:ge(i)}function rn(e,t){if(e.date()<t.date())return-rn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,i;return t-r<0?(s=e.clone().add(n-1,"months"),i=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),i=(t-r)/(s-r)),-(n+i)||0}b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function gc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wc(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?tn(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ie(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",tn(n,"Z")):tn(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Sc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+s+i)}function vc(e){e||(e=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);var t=tn(this,e);return this.localeData().postformat(t)}function bc(e,t){return this.isValid()&&(ke(e)&&e.isValid()||V(e).isValid())?De({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Oc(e){return this.from(V(),e)}function Ec(e,t){return this.isValid()&&(ke(e)&&e.isValid()||V(e).isValid())?De({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kc(e){return this.to(V(),e)}function Ii(e){var t;return e===void 0?this._locale._abbr:(t=Be(e),t!=null&&(this._locale=t),this)}var Ci=we("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 Pi(){return this._locale}var cn=1e3,yt=60*cn,dn=60*yt,Li=(365*400+97)*24*dn;function gt(e,t){return(e%t+t)%t}function Yi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Li:new Date(e,t,n).valueOf()}function Ui(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Li:Date.UTC(e,t,n)}function Dc(e){var t,n;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ui:Yi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=gt(t+(this._isUTC?0:this.utcOffset()*yt),dn);break;case"minute":t=this._d.valueOf(),t-=gt(t,yt);break;case"second":t=this._d.valueOf(),t-=gt(t,cn);break}return this._d.setTime(t),b.updateOffset(this,!0),this}function Tc(e){var t,n;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ui:Yi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dn-gt(t+(this._isUTC?0:this.utcOffset()*yt),dn)-1;break;case"minute":t=this._d.valueOf(),t+=yt-gt(t,yt)-1;break;case"second":t=this._d.valueOf(),t+=cn-gt(t,cn)-1;break}return this._d.setTime(t),b.updateOffset(this,!0),this}function Mc(){return this._d.valueOf()-(this._offset||0)*6e4}function Rc(){return Math.floor(this.valueOf()/1e3)}function xc(){return new Date(this.valueOf())}function Ac(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nc(){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 Ic(){return this.isValid()?this.toISOString():null}function Cc(){return hr(this)}function Pc(){return qe({},I(this))}function Lc(){return I(this).overflow}function Yc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}x("N",0,0,"eraAbbr");x("NN",0,0,"eraAbbr");x("NNN",0,0,"eraAbbr");x("NNNN",0,0,"eraName");x("NNNNN",0,0,"eraNarrow");x("y",["y",1],"yo","eraYear");x("y",["yy",2],0,"eraYear");x("y",["yyy",3],0,"eraYear");x("y",["yyyy",4],0,"eraYear");O("N",Ar);O("NN",Ar);O("NNN",Ar);O("NNNN",qc);O("NNNNN",Jc);B(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?I(n).era=s:I(n).invalidEra=e});O("y",St);O("yy",St);O("yyy",St);O("yyyy",St);O("yo",Zc);B(["y","yy","yyy","yyyy"],le);B(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[le]=n._locale.eraYearOrdinalParse(e,s):t[le]=parseInt(e,10)});function Uc(e,t){var n,r,s,i=this._eras||Be("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=b(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=b(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function Fc(e,t,n){var r,s,i=this.eras(),a,l,m;for(e=e.toUpperCase(),r=0,s=i.length;r<s;++r)if(a=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),m=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(m===e)return i[r];break}else if([a,l,m].indexOf(e)>=0)return i[r]}function Wc(e,t){var n=e.since<=e.until?1:-1;return t===void 0?b(e.since).year():b(e.since).year()+(t-e.offset)*n}function jc(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Hc(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Bc(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function $c(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-b(s[e].since).year())*n+s[e].offset;return this.year()}function Vc(e){return U(this,"_erasNameRegex")||Nr.call(this),e?this._erasNameRegex:this._erasRegex}function Gc(e){return U(this,"_erasAbbrRegex")||Nr.call(this),e?this._erasAbbrRegex:this._erasRegex}function zc(e){return U(this,"_erasNarrowRegex")||Nr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ar(e,t){return t.erasAbbrRegex(e)}function qc(e,t){return t.erasNameRegex(e)}function Jc(e,t){return t.erasNarrowRegex(e)}function Zc(e,t){return t._eraYearOrdinalRegex||St}function Nr(){var e=[],t=[],n=[],r=[],s,i,a,l,m,c=this.eras();for(s=0,i=c.length;s<i;++s)a=We(c[s].name),l=We(c[s].abbr),m=We(c[s].narrow),t.push(a),e.push(l),n.push(m),r.push(a),r.push(l),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}x(0,["gg",2],0,function(){return this.weekYear()%100});x(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kn(e,t){x(0,[e,e.length],0,t)}kn("gggg","weekYear");kn("ggggg","weekYear");kn("GGGG","isoWeekYear");kn("GGGGG","isoWeekYear");O("G",Sn);O("g",Sn);O("GG",G,ye);O("gg",G,ye);O("GGGG",wr,gr);O("gggg",wr,gr);O("GGGGG",wn,yn);O("ggggg",wn,yn);Wt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=C(e)});Wt(["gg","GG"],function(e,t,n,r){t[r]=b.parseTwoDigitYear(e)});function Kc(e){return Fi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Xc(e){return Fi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Qc(){return je(this.year(),1,4)}function ed(){return je(this.isoWeekYear(),1,4)}function td(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)}function nd(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)}function Fi(e,t,n,r,s){var i;return e==null?Pt(this,r,s).year:(i=je(e,r,s),t>i&&(t=i),rd.call(this,e,t,n,r,s))}function rd(e,t,n,r,s){var i=gi(e,t,n,r,s),a=Ct(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}x("Q",0,"Qo","quarter");O("Q",oi);B("Q",function(e,t){t[Ue]=(C(e)-1)*3});function sd(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}x("D",["DD",2],"Do","date");O("D",G,vt);O("DD",G,ye);O("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});B(["D","DD"],xe);B("Do",function(e,t){t[xe]=C(e.match(G)[0])});var Wi=bt("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear");O("DDD",gn);O("DDDD",li);B(["DDD","DDDD"],function(e,t,n){n._dayOfYear=C(e)});function id(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}x("m",["mm",2],0,"minute");O("m",G,Sr);O("mm",G,ye);B(["m","mm"],Oe);var ad=bt("Minutes",!1);x("s",["ss",2],0,"second");O("s",G,Sr);O("ss",G,ye);B(["s","ss"],Fe);var od=bt("Seconds",!1);x("S",0,0,function(){return~~(this.millisecond()/100)});x(0,["SS",2],0,function(){return~~(this.millisecond()/10)});x(0,["SSS",3],0,"millisecond");x(0,["SSSS",4],0,function(){return this.millisecond()*10});x(0,["SSSSS",5],0,function(){return this.millisecond()*100});x(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});x(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});x(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});x(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});O("S",gn,oi);O("SS",gn,ye);O("SSS",gn,li);var Je,ji;for(Je="SSSS";Je.length<=9;Je+="S")O(Je,St);function ld(e,t){t[nt]=C(("0."+e)*1e3)}for(Je="S";Je.length<=9;Je+="S")B(Je,ld);ji=bt("Milliseconds",!1);x("z",0,0,"zoneAbbr");x("zz",0,0,"zoneName");function ud(){return this._isUTC?"UTC":""}function cd(){return this._isUTC?"Coordinated Universal Time":""}var g=Ut.prototype;g.add=nc;g.calendar=uc;g.clone=cc;g.diff=yc;g.endOf=Tc;g.format=vc;g.from=bc;g.fromNow=Oc;g.to=Ec;g.toNow=kc;g.get=Sl;g.invalidAt=Lc;g.isAfter=dc;g.isBefore=fc;g.isBetween=hc;g.isSame=mc;g.isSameOrAfter=pc;g.isSameOrBefore=_c;g.isValid=Cc;g.lang=Ci;g.locale=Ii;g.localeData=Pi;g.max=Cu;g.min=Iu;g.parsingFlags=Pc;g.set=vl;g.startOf=Dc;g.subtract=rc;g.toArray=Ac;g.toObject=Nc;g.toDate=xc;g.toISOString=wc;g.inspect=Sc;typeof Symbol<"u"&&Symbol.for!=null&&(g[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});g.toJSON=Ic;g.toString=gc;g.unix=Rc;g.valueOf=Mc;g.creationData=Yc;g.eraName=jc;g.eraNarrow=Hc;g.eraAbbr=Bc;g.eraYear=$c;g.year=di;g.isLeapYear=wl;g.weekYear=Kc;g.isoWeekYear=Xc;g.quarter=g.quarters=sd;g.month=_i;g.daysInMonth=xl;g.week=g.weeks=Ul;g.isoWeek=g.isoWeeks=Fl;g.weeksInYear=td;g.weeksInWeekYear=nd;g.isoWeeksInYear=Qc;g.isoWeeksInISOWeekYear=ed;g.date=Wi;g.day=g.days=Xl;g.weekday=Ql;g.isoWeekday=eu;g.dayOfYear=id;g.hour=g.hours=ou;g.minute=g.minutes=ad;g.second=g.seconds=od;g.millisecond=g.milliseconds=ji;g.utcOffset=Bu;g.utc=Vu;g.local=Gu;g.parseZone=zu;g.hasAlignedHourOffset=qu;g.isDST=Ju;g.isLocal=Ku;g.isUtcOffset=Xu;g.isUtc=Ri;g.isUTC=Ri;g.zoneAbbr=ud;g.zoneName=cd;g.dates=we("dates accessor is deprecated. Use date instead.",Wi);g.months=we("months accessor is deprecated. Use month instead",_i);g.years=we("years accessor is deprecated. Use year instead",di);g.zone=we("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$u);g.isDSTShifted=we("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Zu);function dd(e){return V(e*1e3)}function fd(){return V.apply(null,arguments).parseZone()}function Hi(e){return e}var F=pr.prototype;F.calendar=Ko;F.longDateFormat=tl;F.invalidDate=rl;F.ordinal=al;F.preparse=Hi;F.postformat=Hi;F.relativeTime=ll;F.pastFuture=ul;F.set=Jo;F.eras=Uc;F.erasParse=Fc;F.erasConvertYear=Wc;F.erasAbbrRegex=Gc;F.erasNameRegex=Vc;F.erasNarrowRegex=zc;F.months=Dl;F.monthsShort=Tl;F.monthsParse=Rl;F.monthsRegex=Nl;F.monthsShortRegex=Al;F.week=Cl;F.firstDayOfYear=Yl;F.firstDayOfWeek=Ll;F.weekdays=zl;F.weekdaysMin=Jl;F.weekdaysShort=ql;F.weekdaysParse=Kl;F.weekdaysRegex=tu;F.weekdaysShortRegex=nu;F.weekdaysMinRegex=ru;F.isPM=iu;F.meridiem=lu;function fn(e,t,n,r){var s=Be(),i=Ne().set(r,t);return s[n](i,e)}function Bi(e,t,n){if(He(e)&&(t=e,e=void 0),e=e||"",t!=null)return fn(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=fn(e,r,n,"month");return s}function Ir(e,t,n,r){typeof e=="boolean"?(He(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,He(t)&&(n=t,t=void 0),t=t||"");var s=Be(),i=e?s._week.dow:0,a,l=[];if(n!=null)return fn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=fn(t,(a+i)%7,r,"day");return l}function hd(e,t){return Bi(e,t,"months")}function md(e,t){return Bi(e,t,"monthsShort")}function pd(e,t,n){return Ir(e,t,n,"weekdays")}function _d(e,t,n){return Ir(e,t,n,"weekdaysShort")}function yd(e,t,n){return Ir(e,t,n,"weekdaysMin")}Ze("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 t=e%10,n=C(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});b.lang=we("moment.lang is deprecated. Use moment.locale instead.",Ze);b.langData=we("moment.langData is deprecated. Use moment.localeData instead.",Be);var Le=Math.abs;function gd(){var e=this._data;return this._milliseconds=Le(this._milliseconds),this._days=Le(this._days),this._months=Le(this._months),e.milliseconds=Le(e.milliseconds),e.seconds=Le(e.seconds),e.minutes=Le(e.minutes),e.hours=Le(e.hours),e.months=Le(e.months),e.years=Le(e.years),this}function $i(e,t,n,r){var s=De(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function wd(e,t){return $i(this,e,t,1)}function Sd(e,t){return $i(this,e,t,-1)}function vs(e){return e<0?Math.floor(e):Math.ceil(e)}function vd(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,i,a,l,m;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=vs(or(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=ge(e/1e3),r.seconds=s%60,i=ge(s/60),r.minutes=i%60,a=ge(i/60),r.hours=a%24,t+=ge(a/24),m=ge(Vi(t)),n+=m,t-=vs(or(m)),l=ge(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Vi(e){return e*4800/146097}function or(e){return e*146097/4800}function bd(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Se(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Vi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function $e(e){return function(){return this.as(e)}}var Gi=$e("ms"),Od=$e("s"),Ed=$e("m"),kd=$e("h"),Dd=$e("d"),Td=$e("w"),Md=$e("M"),Rd=$e("Q"),xd=$e("y"),Ad=Gi;function Nd(){return De(this)}function Id(e){return e=Se(e),this.isValid()?this[e+"s"]():NaN}function ot(e){return function(){return this.isValid()?this._data[e]:NaN}}var Cd=ot("milliseconds"),Pd=ot("seconds"),Ld=ot("minutes"),Yd=ot("hours"),Ud=ot("days"),Fd=ot("months"),Wd=ot("years");function jd(){return ge(this.days()/7)}var Ye=Math.round,pt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Hd(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function Bd(e,t,n,r){var s=De(e).abs(),i=Ye(s.as("s")),a=Ye(s.as("m")),l=Ye(s.as("h")),m=Ye(s.as("d")),c=Ye(s.as("M")),u=Ye(s.as("w")),y=Ye(s.as("y")),D=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||m<=1&&["d"]||m<n.d&&["dd",m];return n.w!=null&&(D=D||u<=1&&["w"]||u<n.w&&["ww",u]),D=D||c<=1&&["M"]||c<n.M&&["MM",c]||y<=1&&["y"]||["yy",y],D[2]=t,D[3]=+e>0,D[4]=r,Hd.apply(null,D)}function $d(e){return e===void 0?Ye:typeof e=="function"?(Ye=e,!0):!1}function Vd(e,t){return pt[e]===void 0?!1:t===void 0?pt[e]:(pt[e]=t,e==="s"&&(pt.ss=t-1),!0)}function Gd(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=pt,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},pt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),i=Bd(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var qn=Math.abs;function ht(e){return(e>0)-(e<0)||+e}function Dn(){if(!this.isValid())return this.localeData().invalidDate();var e=qn(this._milliseconds)/1e3,t=qn(this._days),n=qn(this._months),r,s,i,a,l=this.asSeconds(),m,c,u,y;return l?(r=ge(e/60),s=ge(r/60),e%=60,r%=60,i=ge(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=l<0?"-":"",c=ht(this._months)!==ht(l)?"-":"",u=ht(this._days)!==ht(l)?"-":"",y=ht(this._milliseconds)!==ht(l)?"-":"",m+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(s||r||e?"T":"")+(s?y+s+"H":"")+(r?y+r+"M":"")+(e?y+a+"S":"")):"P0D"}var Y=En.prototype;Y.isValid=Fu;Y.abs=gd;Y.add=wd;Y.subtract=Sd;Y.as=bd;Y.asMilliseconds=Gi;Y.asSeconds=Od;Y.asMinutes=Ed;Y.asHours=kd;Y.asDays=Dd;Y.asWeeks=Td;Y.asMonths=Md;Y.asQuarters=Rd;Y.asYears=xd;Y.valueOf=Ad;Y._bubble=vd;Y.clone=Nd;Y.get=Id;Y.milliseconds=Cd;Y.seconds=Pd;Y.minutes=Ld;Y.hours=Yd;Y.days=Ud;Y.weeks=jd;Y.months=Fd;Y.years=Wd;Y.humanize=Gd;Y.toISOString=Dn;Y.toString=Dn;Y.toJSON=Dn;Y.locale=Ii;Y.localeData=Pi;Y.toIsoString=we("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn);Y.lang=Ci;x("X",0,0,"unix");x("x",0,0,"valueOf");O("x",Sn);O("X",hl);B("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});B("x",function(e,t,n){n._d=new Date(C(e))});//! moment.js
|
|
10
|
+
b.version="2.30.1";zo(V);b.fn=g;b.min=Pu;b.max=Lu;b.now=Yu;b.utc=Ne;b.unix=dd;b.months=hd;b.isDate=Yt;b.locale=Ze;b.invalid=_n;b.duration=De;b.isMoment=ke;b.weekdays=pd;b.parseZone=fd;b.localeData=Be;b.isDuration=nn;b.monthsShort=md;b.weekdaysMin=yd;b.defineLocale=kr;b.updateLocale=fu;b.locales=hu;b.weekdaysShort=_d;b.normalizeUnits=Se;b.relativeTimeRounding=$d;b.relativeTimeThreshold=Vd;b.calendarFormat=lc;b.prototype=g;b.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"};//! moment.js locale configuration
|
|
11
11
|
//! locale : French [fr]
|
|
12
12
|
//! author : John Fischer : https://github.com/jfroffice
|
|
13
|
-
var wc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,kc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ln=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,yr=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];_.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Ln,monthsShortRegex:Ln,monthsStrictRegex:wc,monthsShortStrictRegex:kc,monthsParse:yr,longMonthsParse:yr,shortMonthsParse:yr,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}});var Pn;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(Pn||(Pn={}));var Wn;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(Wn||(Wn={}));var Un;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(Un||(Un={}));var Fn;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(Fn||(Fn={}));var Hn;(function(e){e.IMAGE="image",e.VIDEO="video"})(Hn||(Hn={}));var jn;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(jn||(jn={}));var jt;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})(jt||(jt={}));var $n;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})($n||($n={}));var ee;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(ee||(ee={}));var $t;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})($t||($t={}));var Gn;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(Gn||(Gn={}));var Vn;(function(e){e.WELCOME_USER="App\\Notifications\\WelcomeUser"})(Vn||(Vn={}));var Bn;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Bn||(Bn={}));var zn;(function(e){e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(zn||(zn={}));var Zn;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})(Zn||(Zn={}));var qn;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(qn||(qn={}));const Dc=["id"],Mc=l.defineComponent({__name:"RootContainer",props:{page:{},sections:{default:()=>[]},components:{default:()=>({})}},setup(e){const t=e;l.onMounted(()=>{setTimeout(()=>{const n=t.page.props.sectionData;n&&t.sections.find(s=>s.slug==n.slug&&s.pivot?.linkId==n.pivot?.linkId)&&En(`${n.slug}__${n.pivot?.linkId}-container`)},1e3)});const r=l.ref({});return l.onMounted(()=>{const n=()=>{Object.keys(r.value).forEach(a=>{r.value[a].isActive=!1;const o=document.getElementById(a);o&&(o.style.border="none",o.style.boxShadow="none")})},s=a=>{switch(a.data?.type){case ee.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",a.origin),window.location.reload();break;case ee.ENABLE_EDITION_MODE:{const o=a.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",a.origin),sessionStorage.setItem("primaryColor",o),t.sections?.forEach((c,m)=>{if(c.slug&&c.pivot?.linkId){const h=`${c.slug}__${c.pivot?.linkId}-container`,p=document.getElementById(h);p&&(r.value[h]={element:p,clickCount:0,isActive:!1},p.addEventListener("click",function(O){n(),r.value[this.id].clickCount++,r.value[this.id].isActive=!0,this.style.border=`5px solid ${o}`,this.style.boxShadow=`0 0 10px ${o}`,window.parent.postMessage({type:ee.SELECT_PREVIEW_SECTION,slug:c.slug,linkId:c.pivot?.linkId},a.origin)}),p.style.cursor="pointer",p.style.transition="all 0.3s ease")}});break}case ee.DESELECT_ALL_SECTIONS:n();break;case ee.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{t.sections.find(m=>m.slug==a.data?.slug&&m.pivot?.linkId==a.data?.linkId)&&En(`${a.data?.slug}__${a.data?.linkId}-container`)},1e3);const o=`${a.data?.slug}__${a.data?.linkId}-container`,c=document.getElementById(o);c&&(n(),r.value[o].clickCount++,r.value[o].isActive=!0,c.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,c.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case ee.SEND_BASE_SECTION_SETTINGS:break;case ee.SEND_BASE_SECTION_DATA:break;case ee.SEND_SECTION_SETTINGS:break;case ee.SEND_SECTION_DATA:break;case ee.SEND_PAGE_SECTIONS:break}};if(window.addEventListener("message",s),sessionStorage.getItem("shouldNotifyReload")==="1"){const a=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:ee.RELOAD_COMPLETE},a),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(n,s)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.sections,(a,o)=>(l.openBlock(),l.createElementBlock("section",{key:"section-"+o,id:`${a.slug}__${a.pivot?.linkId}-container`,class:"reset-styles"},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.components[a.name]),{data:a.pivot?.data,setings:a.pivot?.settings,"section-key":`${a.slug}__${a.pivot?.linkId}`,metadata:{slug:a.slug,name:a.name,title:a.title,linkId:a.pivot?.linkId,createdAt:a.createdAt,updatedAt:a.updatedAt}},null,8,["data","setings","section-key","metadata"]))],8,Dc))),128))}}),Vs=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Bs=Vs(Mc,[["__scopeId","data-v-9e4f90fa"]]),Oc=["src","alt","title","width","height","loading"],Kr=l.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,r=l.ref("");return(async()=>{r.value=await t.load()})(),(s,a)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(r),alt:t.alt,title:t.title,style:l.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,Oc))}}),bc=l.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(r,n)=>(l.openBlock(),l.createBlock(l.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),zs=Vs(bc,[["__scopeId","data-v-30b5e62e"]]),Zs=Symbol("Props"),qs=Symbol("Config"),Ks=Symbol("Router"),Js=Symbol("ResolveSections"),vr=new WeakMap,Tc=(...e)=>{var t;const r=e[0],n=(t=l.getCurrentInstance())===null||t===void 0?void 0:t.proxy,s=n??l.getCurrentScope();if(s==null&&!l.hasInjectionContext())throw new Error("injectLocal must be called in setup");return s&&vr.has(s)&&r in vr.get(s)?vr.get(s)[r]:l.inject(...e)},Ec=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ic=Object.prototype.toString,Yc=e=>Ic.call(e)==="[object Object]";function Kn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Sr(e){return Array.isArray(e)?e:[e]}function xc(e,t,r){return l.watch(e,t,{...r,immediate:!0})}const Qs=Ec?window:void 0;function Nc(e){var t;const r=l.toValue(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Ac(...e){const t=(n,s,a,o)=>(n.addEventListener(s,a,o),()=>n.removeEventListener(s,a,o)),r=l.computed(()=>{const n=Sr(l.toValue(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return xc(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(a=>Nc(a)))!==null&&n!==void 0?n:[Qs].filter(a=>a!=null),Sr(l.toValue(r.value?e[1]:e[0])),Sr(l.unref(r.value?e[2]:e[1])),l.toValue(r.value?e[3]:e[2])]},([n,s,a,o],c,m)=>{if(!n?.length||!s?.length||!a?.length)return;const h=Yc(o)?{...o}:o,p=n.flatMap(O=>s.flatMap(Y=>a.map(A=>t(O,Y,A,h))));m(()=>{p.forEach(O=>O())})},{flush:"post"})}function Rc(){const e=l.shallowRef(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Cc(e){const t=Rc();return l.computed(()=>(t.value,!!e()))}const Lc=Symbol("vueuse-ssr-width");function Pc(){const e=l.hasInjectionContext()?Tc(Lc,null):null;return typeof e=="number"?e:void 0}function ht(e,t={}){const{window:r=Qs,ssrWidth:n=Pc()}=t,s=Cc(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),a=l.shallowRef(typeof n=="number"),o=l.shallowRef(),c=l.shallowRef(!1),m=h=>{c.value=h.matches};return l.watchEffect(()=>{if(a.value){a.value=!s.value,c.value=l.toValue(e).split(",").some(h=>{const p=h.includes("not all"),O=h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),Y=h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let A=!!(O||Y);return O&&A&&(A=n>=Kn(O[1])),Y&&A&&(A=n<=Kn(Y[1])),p?!A:A});return}s.value&&(o.value=r.matchMedia(l.toValue(e)),c.value=o.value.matches)}),Ac(o,"change",m,{passive:!0}),l.computed(()=>c.value)}const Jr=()=>{const e=l.inject(qs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=gi(e.appUrl||vi());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`,apiRequestHeaders:{"X-API-Key":e.xApiKey}}},tr=()=>{const{apiUrl:e,apiRequestHeaders:t,debug:r}=Jr(),n=p=>{r&&(p.response?(console.log("data:",p.response.data),console.log("status:",p.response.status),console.log("headers:",p.response.headers)):p.request?console.log("request:",p.request):console.log("error:",p.message),console.log("config:",p.config))},s=async(p,O,Y)=>{let A=!1,j=null,ce=null;try{const Z=t;Z.Authorization=`Bearer ${O}`,j=await axios.request({method:p.method||"get",params:p.params||{},data:p.data||{},url:p.url||"/",baseURL:e,headers:Z}),A=!0}catch(Z){ce=Z,A=!1,Z.response&&Z.response.status==401?Y?.():n(Z)}return{success:A,failure:!A,result:j?j.data:null,error:ce}};return{request:s,getItem:async p=>await s({url:`/${p.routeBase}/${p.id}`}),addItem:async p=>await s({url:`/${p.routeBase}`,method:"post",data:p.data}),updateItem:async p=>await s({url:`/${p.routeBase}/${p.id}`,method:"put",data:p.data}),deleteItem:async p=>await s({url:`/${p.routeBase}/${p.id}`,method:"delete"}),getAllItems:async p=>await s({url:`/${p.routeBase}`}),handleError:n}},Qr=()=>{const e=Xn.usePage(),t=l.inject(Ks),{request:r}=tr(),{apiBaseUrl:n,langKey:s}=Jr(),a=l.computed(()=>e.url),o=M=>In(M)?M:`${n}/${yi(M)}`,c=M=>M?In(M)?M:`${n}/storage/${M}`:"",m=async(M,U="original")=>{const L=["small","medium","large"],q=M.split("/").pop();let z=!1;for(let K=0;K<L.length;K++)if(L[K]===U&&(z=!0),z)try{const ae=c(`thumbnails/${L[K]}/${q}`);if((await axios.head(ae)).status===200)return ae}catch{}return c(M)},h=(M,U)=>{let L;try{L=JSON.parse(M)}catch{L={}}return L&&(L[U.toUpperCase()]||L[U]||L.en)||""},p=(M,U)=>h(M,U),O=(M,U)=>{if(!M)return"";let L=h(M,U).replace(new RegExp("{{BASE_URL}}article","g"),`${n}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${n}/storage`);const q=L.match(/\[audio\](.*?)\[\/?audio\]/g),z=L.match(/\[video\](.*?)\[\/?video\]/g);return q?.forEach(K=>{const ae=K.replace(/\[\/?audio\]/g,"");L=L.replace(K,`<br><p><audio preload="all" controls style="width: 100%"><source src="${c(ae)}"></audio></p><br>`)}),z?.forEach(K=>{const ae=K.replace(/\[\/?video\]/g,"");L=L.replace(K,`<br><p><video controls style="width: 100%"><source src="${c(ae)}"></video></p><br>`)}),L},Y=(M,U)=>O(M,U),A=ht("(min-width: 1536px)"),j=ht("(min-width: 1280px) and (max-width: 1535px)"),ce=ht("(min-width: 1024px) and (max-width: 1279px)"),Z=ht("(min-width: 768px) and (max-width: 1023px)"),be=ht("(max-width: 767px)"),Te=[{label:"French",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:A,isXlScreen:j,isLgScreen:ce,isMdScreen:Z,isSmScreen:be,getTranslation:h,getLangageLabel:M=>Te.find(U=>U.value==M)?.label,getLanguageValue:M=>Te.find(U=>U.label==M)?.value,getLinkCursorClass:M=>!M||M==="#"?"tw:cursor-default":"tw:cursor-pointer",ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(M,U)=>{if(M)for(const[L,q]of Object.entries(M))for(const z of q)U(z)},resolveHtmlLinks:O,resolveUrl:o,updateLang:async(M,U=!0,L=!0)=>{if(localStorage.setItem(s,M),e.props.isUserLoggedIn&&L){const q=e.props.userData?.preferences||{inAppNotifEnabled:jt.TRUE,emailNotifEnabled:jt.TRUE,locale:M};q.locale=M,await r({url:`/users/self/${e.props.userData?.id}`,method:"put",data:{preferences:q}})}U&&location.reload()},languages:Te,getImage:m,fileUrl:c,currentRoutePath:a,openLink:M=>{_v.isURL(M)?window.open(M,"_blank"):t?.get(M)},openMenu:M=>{switch(M?.targetType){case $t.EXTERNAL_LINK:window.open(M?.url??"#");break;case $t.PAGE_LINK:t?.get(M?.path??"/");break}},getMenuHref:M=>M?.targetType==="external-link"?M?.url||"":M?.path||"",rHtml:Y,tr:p}},Wc=["src"],Xs=l.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:r}=Qr(),{src:n,size:s,sync:a}=l.toRefs(t),o=l.computed(()=>{const{src:c,size:m,sync:h,...p}=t;return p});return(c,m)=>{const h=Kr;return l.unref(a)?(l.openBlock(),l.createElementBlock("img",l.mergeProps({key:0,src:l.unref(n)},l.unref(o)),null,16,Wc)):(l.openBlock(),l.createBlock(h,l.mergeProps({key:1,load:()=>l.unref(r)(l.unref(n),l.unref(s))},l.unref(o)),null,16,["load"]))}}}),ea=l.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,r=l.ref(!1);return l.onMounted(()=>{r.value=!0}),l.onUnmounted(()=>{r.value=!1}),(n,s)=>l.unref(r)?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:t.to},[l.renderSlot(n.$slots,"default")],8,["to"])):l.createCommentVNode("",!0)}}),Uc=["innerHTML"],Fc=["href"],Hc=["href"],ta=l.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,r=l.ref(!1),n=l.computed(()=>!r.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),s=(a,o)=>{t.link=="#"&&a.preventDefault(),t.lessStr&&(r.value=o)};return(a,o)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("span",{innerHTML:l.unref(n)},null,8,Uc),l.withDirectives(l.createElementVNode("span",null,[l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[0]||(o[0]=c=>s(c,!0))},l.toDisplayString(t.moreStr),9,Fc),[[l.vShow,!l.unref(r)]]),l.withDirectives(l.createElementVNode("a",{id:"readmore",href:t.link,onClick:o[1]||(o[1]=c=>s(c,!1))},l.toDisplayString(t.lessStr),9,Hc),[[l.vShow,l.unref(r)]])],512),[[l.vShow,t.text.length>t.maxChars]])]))}}),ra=l.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",Y),O()}),l.onActivated(()=>{O()}),l.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",Y)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},h=()=>{n.value&&p()},p=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},O=()=>{const A=r.value?.getBoundingClientRect().width;if(a.value=A||"auto",(r.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}h()},Y=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(A,j)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({bottom:l.unref(c)?t.bottom+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(A.$slots,"default",{},()=>[j[0]||(j[0]=l.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),na=l.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,r=l.ref(null),n=l.ref(!1),s=l.ref(""),a=l.ref(void 0),o=l.ref(void 0),c=l.ref(!1);l.onMounted(()=>{o.value=r.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",Y)}),l.onActivated(()=>{O()}),l.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",Y)});const m=()=>{n.value||(s.value="fixed",n.value=!0,a.value=a.value+"px",c.value=!0)},h=()=>{n.value&&p()},p=()=>{s.value="",a.value="auto",n.value=!1,c.value=!1},O=()=>{const A=r.value?.getBoundingClientRect().width;if(a.value=A||"auto",(r.value?.getBoundingClientRect().top||0)<t.top){m();return}h()},Y=()=>{c.value&&(a.value=r.value?.getBoundingClientRect().width+"px")};return(A,j)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"el",ref:r,style:l.normalizeStyle({height:l.unref(o)+"px",zIndex:t.zIndex})},[l.createElementVNode("div",{class:l.normalizeClass(t.className),style:l.normalizeStyle({top:l.unref(c)?t.top+"px":"",zIndex:t.zIndex,position:l.unref(s),width:l.unref(a),height:l.unref(o)+"px"})},[l.renderSlot(A.$slots,"default",{},()=>[j[0]||(j[0]=l.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class jc{state;constructor(t){this.state=l.reactive({props:t})}update(t){this.state.props=this.deepMerge(this.state.props,t)}getState(){return l.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,r){const n={...t};return this.isObject(t)&&this.isObject(r)&&Object.keys(r).forEach(s=>{this.isObject(r[s])&&s in t?n[s]=this.deepMerge(t[s],r[s]):n[s]=r[s]}),n}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const $c=()=>{const e=l.inject(Zs);if(!e)throw new Error("[@creopse/vue] Plugin not installed");return e.getState().props};var At=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mt={exports:{}};mt.exports;var Jn;function Vc(){return Jn||(Jn=1,function(e,t){var r=200,n="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object Array]",c="[object Boolean]",m="[object Date]",h="[object Error]",p="[object Function]",O="[object GeneratorFunction]",Y="[object Map]",A="[object Number]",j="[object Object]",ce="[object Promise]",Z="[object RegExp]",be="[object Set]",Te="[object String]",it="[object Symbol]",Ce="[object WeakMap]",ot="[object ArrayBuffer]",Le="[object DataView]",Ge="[object Float32Array]",Ve="[object Float64Array]",Ee="[object Int8Array]",lt="[object Int16Array]",Ie="[object Int32Array]",M="[object Uint8Array]",U="[object Uint8ClampedArray]",L="[object Uint16Array]",q="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,ae=/^\[object .+?Constructor\]$/,Mt=/^(?:0|[1-9]\d*)$/,R={};R[a]=R[o]=R[ot]=R[Le]=R[c]=R[m]=R[Ge]=R[Ve]=R[Ee]=R[lt]=R[Ie]=R[Y]=R[A]=R[j]=R[Z]=R[be]=R[Te]=R[it]=R[M]=R[U]=R[L]=R[q]=!0,R[h]=R[p]=R[Ce]=!1;var Xr=typeof At=="object"&&At&&At.Object===Object&&At,v=typeof self=="object"&&self&&self.Object===Object&&self,S=Xr||v||Function("return this")(),w=t&&!t.nodeType&&t,g=w&&!0&&e&&!e.nodeType&&e,E=g&&g.exports===w;function V(i,u){return i.set(u[0],u[1]),i}function Be(i,u){return i.add(u),i}function Ye(i,u){for(var d=-1,k=i?i.length:0;++d<k&&u(i[d],d,i)!==!1;);return i}function rr(i,u){for(var d=-1,k=u.length,G=i.length;++d<k;)i[G+d]=u[d];return i}function en(i,u,d,k){for(var G=-1,J=i?i.length:0;++G<J;)d=u(d,i[G],G,i);return d}function sa(i,u){for(var d=-1,k=Array(i);++d<i;)k[d]=u(d);return k}function aa(i,u){return i?.[u]}function tn(i){var u=!1;if(i!=null&&typeof i.toString!="function")try{u=!!(i+"")}catch{}return u}function rn(i){var u=-1,d=Array(i.size);return i.forEach(function(k,G){d[++u]=[G,k]}),d}function nr(i,u){return function(d){return i(u(d))}}function nn(i){var u=-1,d=Array(i.size);return i.forEach(function(k){d[++u]=k}),d}var ia=Array.prototype,oa=Function.prototype,Ot=Object.prototype,sr=S["__core-js_shared__"],sn=function(){var i=/[^.]+$/.exec(sr&&sr.keys&&sr.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),an=oa.toString,xe=Ot.hasOwnProperty,bt=Ot.toString,la=RegExp("^"+an.call(xe).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=E?S.Buffer:void 0,ln=S.Symbol,un=S.Uint8Array,ua=nr(Object.getPrototypeOf,Object),ca=Object.create,da=Ot.propertyIsEnumerable,fa=ia.splice,cn=Object.getOwnPropertySymbols,ha=on?on.isBuffer:void 0,ma=nr(Object.keys,Object),ar=qe(S,"DataView"),ut=qe(S,"Map"),ir=qe(S,"Promise"),or=qe(S,"Set"),lr=qe(S,"WeakMap"),ct=qe(Object,"create"),_a=Ue(ar),pa=Ue(ut),ga=Ue(ir),ya=Ue(or),va=Ue(lr),dn=ln?ln.prototype:void 0,fn=dn?dn.valueOf:void 0;function Pe(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var k=i[u];this.set(k[0],k[1])}}function Sa(){this.__data__=ct?ct(null):{}}function wa(i){return this.has(i)&&delete this.__data__[i]}function ka(i){var u=this.__data__;if(ct){var d=u[i];return d===n?void 0:d}return xe.call(u,i)?u[i]:void 0}function Da(i){var u=this.__data__;return ct?u[i]!==void 0:xe.call(u,i)}function Ma(i,u){var d=this.__data__;return d[i]=ct&&u===void 0?n:u,this}Pe.prototype.clear=Sa,Pe.prototype.delete=wa,Pe.prototype.get=ka,Pe.prototype.has=Da,Pe.prototype.set=Ma;function _e(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var k=i[u];this.set(k[0],k[1])}}function Oa(){this.__data__=[]}function ba(i){var u=this.__data__,d=Tt(u,i);if(d<0)return!1;var k=u.length-1;return d==k?u.pop():fa.call(u,d,1),!0}function Ta(i){var u=this.__data__,d=Tt(u,i);return d<0?void 0:u[d][1]}function Ea(i){return Tt(this.__data__,i)>-1}function Ia(i,u){var d=this.__data__,k=Tt(d,i);return k<0?d.push([i,u]):d[k][1]=u,this}_e.prototype.clear=Oa,_e.prototype.delete=ba,_e.prototype.get=Ta,_e.prototype.has=Ea,_e.prototype.set=Ia;function ze(i){var u=-1,d=i?i.length:0;for(this.clear();++u<d;){var k=i[u];this.set(k[0],k[1])}}function Ya(){this.__data__={hash:new Pe,map:new(ut||_e),string:new Pe}}function xa(i){return Et(this,i).delete(i)}function Na(i){return Et(this,i).get(i)}function Aa(i){return Et(this,i).has(i)}function Ra(i,u){return Et(this,i).set(i,u),this}ze.prototype.clear=Ya,ze.prototype.delete=xa,ze.prototype.get=Na,ze.prototype.has=Aa,ze.prototype.set=Ra;function Ze(i){this.__data__=new _e(i)}function Ca(){this.__data__=new _e}function La(i){return this.__data__.delete(i)}function Pa(i){return this.__data__.get(i)}function Wa(i){return this.__data__.has(i)}function Ua(i,u){var d=this.__data__;if(d instanceof _e){var k=d.__data__;if(!ut||k.length<r-1)return k.push([i,u]),this;d=this.__data__=new ze(k)}return d.set(i,u),this}Ze.prototype.clear=Ca,Ze.prototype.delete=La,Ze.prototype.get=Pa,Ze.prototype.has=Wa,Ze.prototype.set=Ua;function Fa(i,u){var d=dr(i)||ci(i)?sa(i.length,String):[],k=d.length,G=!!k;for(var J in i)xe.call(i,J)&&!(G&&(J=="length"||ii(J,k)))&&d.push(J);return d}function hn(i,u,d){var k=i[u];(!(xe.call(i,u)&&gn(k,d))||d===void 0&&!(u in i))&&(i[u]=d)}function Tt(i,u){for(var d=i.length;d--;)if(gn(i[d][0],u))return d;return-1}function Ha(i,u){return i&&mn(u,fr(u),i)}function ur(i,u,d,k,G,J,pe){var Q;if(k&&(Q=J?k(i,G,J,pe):k(i)),Q!==void 0)return Q;if(!It(i))return i;var Sn=dr(i);if(Sn){if(Q=ni(i),!u)return ei(i,Q)}else{var Ke=We(i),wn=Ke==p||Ke==O;if(fi(i))return za(i,u);if(Ke==j||Ke==a||wn&&!J){if(tn(i))return J?i:{};if(Q=si(wn?{}:i),!u)return ti(i,Ha(Q,i))}else{if(!R[Ke])return J?i:{};Q=ai(i,Ke,ur,u)}}pe||(pe=new Ze);var kn=pe.get(i);if(kn)return kn;if(pe.set(i,Q),!Sn)var Dn=d?ri(i):fr(i);return Ye(Dn||i,function(hr,Yt){Dn&&(Yt=hr,hr=i[Yt]),hn(Q,Yt,ur(hr,u,d,k,Yt,i,pe))}),Q}function ja(i){return It(i)?ca(i):{}}function $a(i,u,d){var k=u(i);return dr(i)?k:rr(k,d(i))}function Ga(i){return bt.call(i)}function Va(i){if(!It(i)||li(i))return!1;var u=vn(i)||tn(i)?la:ae;return u.test(Ue(i))}function Ba(i){if(!pn(i))return ma(i);var u=[];for(var d in Object(i))xe.call(i,d)&&d!="constructor"&&u.push(d);return u}function za(i,u){if(u)return i.slice();var d=new i.constructor(i.length);return i.copy(d),d}function cr(i){var u=new i.constructor(i.byteLength);return new un(u).set(new un(i)),u}function Za(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function qa(i,u,d){var k=u?d(rn(i),!0):rn(i);return en(k,V,new i.constructor)}function Ka(i){var u=new i.constructor(i.source,K.exec(i));return u.lastIndex=i.lastIndex,u}function Ja(i,u,d){var k=u?d(nn(i),!0):nn(i);return en(k,Be,new i.constructor)}function Qa(i){return fn?Object(fn.call(i)):{}}function Xa(i,u){var d=u?cr(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function ei(i,u){var d=-1,k=i.length;for(u||(u=Array(k));++d<k;)u[d]=i[d];return u}function mn(i,u,d,k){d||(d={});for(var G=-1,J=u.length;++G<J;){var pe=u[G],Q=void 0;hn(d,pe,Q===void 0?i[pe]:Q)}return d}function ti(i,u){return mn(i,_n(i),u)}function ri(i){return $a(i,fr,_n)}function Et(i,u){var d=i.__data__;return oi(u)?d[typeof u=="string"?"string":"hash"]:d.map}function qe(i,u){var d=aa(i,u);return Va(d)?d:void 0}var _n=cn?nr(cn,Object):_i,We=Ga;(ar&&We(new ar(new ArrayBuffer(1)))!=Le||ut&&We(new ut)!=Y||ir&&We(ir.resolve())!=ce||or&&We(new or)!=be||lr&&We(new lr)!=Ce)&&(We=function(i){var u=bt.call(i),d=u==j?i.constructor:void 0,k=d?Ue(d):void 0;if(k)switch(k){case _a:return Le;case pa:return Y;case ga:return ce;case ya:return be;case va:return Ce}return u});function ni(i){var u=i.length,d=i.constructor(u);return u&&typeof i[0]=="string"&&xe.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function si(i){return typeof i.constructor=="function"&&!pn(i)?ja(ua(i)):{}}function ai(i,u,d,k){var G=i.constructor;switch(u){case ot:return cr(i);case c:case m:return new G(+i);case Le:return Za(i,k);case Ge:case Ve:case Ee:case lt:case Ie:case M:case U:case L:case q:return Xa(i,k);case Y:return qa(i,k,d);case A:case Te:return new G(i);case Z:return Ka(i);case be:return Ja(i,k,d);case it:return Qa(i)}}function ii(i,u){return u=u??s,!!u&&(typeof i=="number"||Mt.test(i))&&i>-1&&i%1==0&&i<u}function oi(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function li(i){return!!sn&&sn in i}function pn(i){var u=i&&i.constructor,d=typeof u=="function"&&u.prototype||Ot;return i===d}function Ue(i){if(i!=null){try{return an.call(i)}catch{}try{return i+""}catch{}}return""}function ui(i){return ur(i,!0,!0)}function gn(i,u){return i===u||i!==i&&u!==u}function ci(i){return di(i)&&xe.call(i,"callee")&&(!da.call(i,"callee")||bt.call(i)==a)}var dr=Array.isArray;function yn(i){return i!=null&&hi(i.length)&&!vn(i)}function di(i){return mi(i)&&yn(i)}var fi=ha||pi;function vn(i){var u=It(i)?bt.call(i):"";return u==p||u==O}function hi(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function It(i){var u=typeof i;return!!i&&(u=="object"||u=="function")}function mi(i){return!!i&&typeof i=="object"}function fr(i){return yn(i)?Fa(i):Ba(i)}function _i(){return[]}function pi(){return!1}e.exports=ui}(mt,mt.exports)),mt.exports}var Bc=Vc();const Qn=Gc(Bc),zc=()=>{const{request:e}=tr(),{fileUrl:t}=Qr(),r=Xn.usePage(),n=()=>r.props,s=r.props.pageData,a=r.props.article,o=r.props.category,c=r.props.tag,m=r.props.contentModelItem,h=l.inject(Js),p=v=>{if(!v)return null;const S=v.split("__"),w=S.length?S[0]:"",g=S.length>1?S[1]:"";return r.props.pageData?.sections?.find(E=>E.slug==w&&E.pivot?.linkId==g)?.pivot?.data||null},O=v=>p(v)?.index,Y=v=>{if(!v)return null;const S=v.split("__"),w=S.length?S[0]:"",g=S.length>1?S[1]:"";return r.props.pageData?.sections?.find(E=>E.slug==w&&E.pivot?.linkId==g)?.pivot?.settings||null},A=(v,S)=>Y(v)?.[S],j=(v,S,w)=>A(v,S)?.[w],ce=()=>{const v=s?.sections,S=s?.sectionsOrder,w=[];if(Array.isArray(v)&&Array.isArray(S)){for(const g of S)if(g){const E=v.find(V=>`${V.slug}__${V.pivot?.linkId}`===g);E&&w.push(E)}}return w.length?w:v||[]},Z=()=>{const v=ce(),S=s?.sectionsDisabled;return v.filter(w=>!S?.includes(`${w.slug}__${w.pivot?.linkId}`))},be=async(v,S,w="default")=>{const g=await e({url:`section-data/${v}/source/${S}/link/${w}`});return g.success&&g.result?g.result.data:null},Te=()=>{const v={};if(!h)throw new Error("[@creopse/vue] resolveSections is required");const S=h();for(const[g,E]of Object.entries(S)){var w=g.replace(/^\.\/(.*)\.\w+$/,"$1");const V=w.split("/"),Be=V[V.length-1]?.split(".")[0];v[Be]=E.default}return v},it=v=>r.props?.contentModels?.find(S=>S.name===v),Ce=v=>{const{index:S,...w}=v.contentModelData;return{...v,data:{...v.contentModelData?.index,...w}}},ot=async(v,S=!0)=>{const w=await e({url:`content-model/items?contentModelName=${v}${S?"&isActive=true":""}`});return w.success&&w.result?(w.result.data||[]).map(g=>Ce(g)):[]},Le=async(v,S,w=!0)=>{const g=await e({url:`content-model/items?pageSize=${S}&contentModelName=${v}${w?"&isActive=true":""}`});if(g.success&&g.result){const E=(g.result.data?.items||[]).map(Ye=>Ce(Ye)),V=g.result.data?.meta?.total||0,Be=g.result.data?.meta?.currentPage||1;return{items:E,total:V,currentPage:Be}}return{items:[],total:0,currentPage:1}},Ge=(v,S=!0)=>{const w=r.props?.menus?.find(g=>g.name===v);return w&&(w.items=Qn(w.items?.filter(g=>!S||g.isActive)?.sort((g,E)=>g.position-E.position))),w},Ve=(v,S=!0)=>{const w=r.props?.menus?.find(g=>g.location?.name===v);return w&&(w.items=Qn(w.items?.filter(g=>!S||g.isActive)?.sort((g,E)=>g.position-E.position))),w},Ee=(v,S=!0)=>Ge(v)?.items?.filter(w=>!S||w.isVisible)?.sort((w,g)=>w.position-g.position),lt=v=>{const S=[];return(r.props?.menus||[]).forEach(g=>{Array.isArray(g.items)&&S.push(...g.items)}),S.find(g=>g.id===v)},Ie=(v,S=!0)=>Ve(v)?.items?.filter(w=>!S||w.isVisible)?.sort((w,g)=>w.position-g.position),M=(v,S=!1,w=!0)=>{const g=[],E=S?Ie(v,w):Ee(v,w);if(E){for(const V of E)if(!g.find(Ye=>Ye.id===V.menuItemGroupId)){const Ye=r.props?.menuItemGroups?.find(rr=>rr.id===V.menuItemGroupId);Ye&&g.push(Ye)}}return g},U=(v,S,w=!1,g=!0)=>(w?Ie(v,g):Ee(v,g))?.filter(V=>V.menuItemGroupId===S),L=(v,S=!1,w=!0)=>M(v,S).map(E=>({group:E,items:U(v,E.id||0,S,w)})),q=(v,S=!1,w=!0)=>(S?Ie(v,w):Ee(v,w))?.filter(E=>!E.menuItemGroupId),z=(v,S="string")=>{const g=r.props.appInformation.find(V=>V.key===v);let E="";switch(S){case"number":E=g&&parseInt(g.value)&&!isNaN(parseInt(g.value))?parseInt(g.value):0;break;case"boolean":E=g&&!isNaN(parseInt(g.value))&&parseInt(g.value)>0;break;case"object":E=g&&g.value?JSON.parse(g.value):{};break;case"array":E=g&&g.value?JSON.parse(g.value):[];break;default:E=g&&g.value?g.value:"";break}return E},K=l.computed(()=>z("primaryColor")||"#005B97"),ae=l.computed(()=>z("secondaryColor")||"#1E9CD7"),Mt=l.computed(()=>z("accentColor")||"#FF6501"),R=l.computed(()=>{const v=z("icon");return t(v)||""});return{logo:l.computed(()=>{const v=z("logo");return t(v)||""}),icon:R,page:r,pageData:s,newsArticle:a,newsCategory:o,newsTag:c,contentModelItem:m,getProps:n,getMenu:Ge,getMenuByLocation:Ve,getMenuItems:Ee,getMenuItemById:lt,getMenuItemsByLocation:Ie,getMenuGroups:M,getMenuItemsByGroup:U,getMenuGroupedItems:L,getMenuUngroupedItems:q,getSectionData:p,getSectionSettings:Y,getSectionSettingsGroup:A,getSectionSetting:j,getAnySectionData:be,getSectionsInOrder:ce,getFinalPageSections:Z,getSectionRootData:O,getComponents:Te,getContentModel:it,getContentModelItems:ot,getPaginatedContentModelItems:Le,getAppInformationValue:z,appAccentColor:Mt,appPrimaryColor:K,appSecondaryColor:ae}},Zc=()=>{const{request:e}=tr(),t=l.ref(!1),r=async(a,o=void 0,c=void 0)=>{await s("email",a,o,c)},n=async(a,o=void 0,c=void 0)=>{await s("phone",a.replace(/\s+/g,""),o,c)},s=async(a,o,c=void 0,m=void 0)=>{t.value=!0;const h=await e({url:`newsletter/${a}s`,method:"post",data:a==="email"?{email:o}:{phone:o}});h.failure&&h.error?m&&m(h.error?.response?.data):c&&c(),t.value=!1};return{subscribePhone:n,subscribeEmail:r,isLoading:t}},qc={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const r=new jc(t.initialProps);t?.router?(t.router.on("navigate",n=>{r.update(n.detail.page.props)}),e.provide(Ks,t.router),e.config.globalProperties.$router=t.router):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(Zs,r),e.config.globalProperties.$props=r,e.provide(qs,t.config),e.config.globalProperties.$config=t.config,e.provide(Js,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",Bs),e.component("CustomTransition",zs),e.component("MountedTeleport",ea),e.component("StickyBottom",ra),e.component("StickyTop",na),e.component("ReadMore",ta),e.component("AsyncImg",Kr),e.component("Image",Xs)}};exports.AsyncImg=Kr;exports.CustomTransition=zs;exports.Image=Xs;exports.MountedTeleport=ea;exports.ReadMore=ta;exports.RootContainer=Bs;exports.StickyBottom=ra;exports.StickyTop=na;exports.default=qc;exports.useApi=tr;exports.useConfig=Jr;exports.useContent=zc;exports.useHelper=Qr;exports.useNewsletter=Zc;exports.useProps=$c;
|
|
13
|
+
var zd=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,qd=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,bs=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Jn=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];b.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:bs,monthsShortRegex:bs,monthsStrictRegex:zd,monthsShortStrictRegex:qd,monthsParse:Jn,longMonthsParse:Jn,shortMonthsParse:Jn,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}});var Os;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(Os||(Os={}));var Es;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(Es||(Es={}));var ks;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(ks||(ks={}));var Ds;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(Ds||(Ds={}));var Ts;(function(e){e.IMAGE="image",e.VIDEO="video"})(Ts||(Ts={}));var Ms;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(Ms||(Ms={}));var hn;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})(hn||(hn={}));var Rs;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Rs||(Rs={}));var _e;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(_e||(_e={}));var mn;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})(mn||(mn={}));var xs;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(xs||(xs={}));var As;(function(e){e.WELCOME_USER="App\\Notifications\\WelcomeUser"})(As||(As={}));var Ns;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Ns||(Ns={}));var Is;(function(e){e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(Is||(Is={}));var Cs;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})(Cs||(Cs={}));var Ps;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(Ps||(Ps={}));const Jd=["id"],Zd=d.defineComponent({__name:"RootContainer",props:{page:{},sections:{default:()=>[]},components:{default:()=>({})}},setup(e){const t=e;d.onMounted(()=>{setTimeout(()=>{const r=t.page.props.sectionData;r&&t.sections.find(s=>s.slug==r.slug&&s.pivot?.linkId==r.pivot?.linkId)&&ms(`${r.slug}__${r.pivot?.linkId}-container`)},1e3)});const n=d.ref({});return d.onMounted(()=>{const r=()=>{Object.keys(n.value).forEach(i=>{n.value[i].isActive=!1;const a=document.getElementById(i);a&&(a.style.border="none",a.style.boxShadow="none")})},s=i=>{switch(i.data?.type){case _e.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",i.origin),window.location.reload();break;case _e.ENABLE_EDITION_MODE:{const a=i.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",i.origin),sessionStorage.setItem("primaryColor",a),t.sections?.forEach((l,m)=>{if(l.slug&&l.pivot?.linkId){const c=`${l.slug}__${l.pivot?.linkId}-container`,u=document.getElementById(c);u&&(n.value[c]={element:u,clickCount:0,isActive:!1},u.addEventListener("click",function(y){r(),n.value[this.id].clickCount++,n.value[this.id].isActive=!0,this.style.border=`5px solid ${a}`,this.style.boxShadow=`0 0 10px ${a}`,window.parent.postMessage({type:_e.SELECT_PREVIEW_SECTION,slug:l.slug,linkId:l.pivot?.linkId},i.origin)}),u.style.cursor="pointer",u.style.transition="all 0.3s ease")}});break}case _e.DESELECT_ALL_SECTIONS:r();break;case _e.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{t.sections.find(m=>m.slug==i.data?.slug&&m.pivot?.linkId==i.data?.linkId)&&ms(`${i.data?.slug}__${i.data?.linkId}-container`)},1e3);const a=`${i.data?.slug}__${i.data?.linkId}-container`,l=document.getElementById(a);l&&(r(),n.value[a].clickCount++,n.value[a].isActive=!0,l.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,l.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case _e.SEND_BASE_SECTION_SETTINGS:break;case _e.SEND_BASE_SECTION_DATA:break;case _e.SEND_SECTION_SETTINGS:break;case _e.SEND_SECTION_DATA:break;case _e.SEND_PAGE_SECTIONS:break}};if(window.addEventListener("message",s),sessionStorage.getItem("shouldNotifyReload")==="1"){const i=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:_e.RELOAD_COMPLETE},i),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(r,s)=>(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.sections,(i,a)=>(d.openBlock(),d.createElementBlock("section",{key:"section-"+a,id:`${i.slug}__${i.pivot?.linkId}-container`,class:"reset-styles"},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.components[i.name]),{data:i.pivot?.data,setings:i.pivot?.settings,"section-key":`${i.slug}__${i.pivot?.linkId}`,metadata:{slug:i.slug,name:i.name,title:i.title,linkId:i.pivot?.linkId,createdAt:i.createdAt,updatedAt:i.updatedAt}},null,8,["data","setings","section-key","metadata"]))],8,Jd))),128))}}),zi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},qi=zi(Zd,[["__scopeId","data-v-9e4f90fa"]]),Kd=["src","alt","title","width","height","loading"],Cr=d.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,n=d.ref("");return(async()=>{n.value=await t.load()})(),(s,i)=>(d.openBlock(),d.createElementBlock("img",{src:d.unref(n),alt:t.alt,title:t.title,style:d.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,Kd))}}),Xd=d.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(d.openBlock(),d.createBlock(d.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:d.withCtx(()=>[d.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),Ji=zi(Xd,[["__scopeId","data-v-30b5e62e"]]),Zi=Symbol("Props"),Ki=Symbol("Config"),Xi=Symbol("Router"),Qi=Symbol("ResolveSections"),Zn=new WeakMap,Qd=(...e)=>{var t;const n=e[0],r=(t=d.getCurrentInstance())===null||t===void 0?void 0:t.proxy,s=r??d.getCurrentScope();if(s==null&&!d.hasInjectionContext())throw new Error("injectLocal must be called in setup");return s&&Zn.has(s)&&n in Zn.get(s)?Zn.get(s)[n]:d.inject(...e)},ef=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tf=Object.prototype.toString,nf=e=>tf.call(e)==="[object Object]";function Ls(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Kn(e){return Array.isArray(e)?e:[e]}function rf(e,t,n){return d.watch(e,t,{...n,immediate:!0})}const ea=ef?window:void 0;function sf(e){var t;const n=d.toValue(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function af(...e){const t=(r,s,i,a)=>(r.addEventListener(s,i,a),()=>r.removeEventListener(s,i,a)),n=d.computed(()=>{const r=Kn(d.toValue(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return rf(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>sf(i)))!==null&&r!==void 0?r:[ea].filter(i=>i!=null),Kn(d.toValue(n.value?e[1]:e[0])),Kn(d.unref(n.value?e[2]:e[1])),d.toValue(n.value?e[3]:e[2])]},([r,s,i,a],l,m)=>{if(!r?.length||!s?.length||!i?.length)return;const c=nf(a)?{...a}:a,u=r.flatMap(y=>s.flatMap(D=>i.map(A=>t(y,D,A,c))));m(()=>{u.forEach(y=>y())})},{flush:"post"})}function of(){const e=d.shallowRef(!1),t=d.getCurrentInstance();return t&&d.onMounted(()=>{e.value=!0},t),e}function lf(e){const t=of();return d.computed(()=>(t.value,!!e()))}const uf=Symbol("vueuse-ssr-width");function cf(){const e=d.hasInjectionContext()?Qd(uf,null):null;return typeof e=="number"?e:void 0}function Rt(e,t={}){const{window:n=ea,ssrWidth:r=cf()}=t,s=lf(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=d.shallowRef(typeof r=="number"),a=d.shallowRef(),l=d.shallowRef(!1),m=c=>{l.value=c.matches};return d.watchEffect(()=>{if(i.value){i.value=!s.value,l.value=d.toValue(e).split(",").some(c=>{const u=c.includes("not all"),y=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),D=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let A=!!(y||D);return y&&A&&(A=r>=Ls(y[1])),D&&A&&(A=r<=Ls(D[1])),u?!A:A});return}s.value&&(a.value=n.matchMedia(d.toValue(e)),l.value=a.value.matches)}),af(a,"change",m,{passive:!0}),d.computed(()=>l.value)}const Pr=()=>{const e=d.inject(Ki);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=$o(e.appUrl||Go());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`,apiRequestHeaders:{"X-API-Key":e.xApiKey}}};function ta(e,t){return function(){return e.apply(t,arguments)}}const{toString:df}=Object.prototype,{getPrototypeOf:Lr}=Object,{iterator:Tn,toStringTag:na}=Symbol,Mn=(e=>t=>{const n=df.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),t=>Mn(t)===e),Rn=e=>t=>typeof t===e,{isArray:Ot}=Array,wt=Rn("undefined");function jt(e){return e!==null&&!wt(e)&&e.constructor!==null&&!wt(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ra=Te("ArrayBuffer");function ff(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ra(e.buffer),t}const hf=Rn("string"),he=Rn("function"),sa=Rn("number"),Ht=e=>e!==null&&typeof e=="object",mf=e=>e===!0||e===!1,sn=e=>{if(Mn(e)!=="object")return!1;const t=Lr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(na in e)&&!(Tn in e)},pf=e=>{if(!Ht(e)||jt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_f=Te("Date"),yf=Te("File"),gf=Te("Blob"),wf=Te("FileList"),Sf=e=>Ht(e)&&he(e.pipe),vf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||he(e.append)&&((t=Mn(e))==="formdata"||t==="object"&&he(e.toString)&&e.toString()==="[object FormData]"))},bf=Te("URLSearchParams"),[Of,Ef,kf,Df]=["ReadableStream","Request","Response","Headers"].map(Te),Tf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ot(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(jt(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function ia(e,t){if(jt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aa=e=>!wt(e)&&e!==rt;function lr(){const{caseless:e,skipUndefined:t}=aa(this)&&this||{},n={},r=(s,i)=>{const a=e&&ia(n,i)||i;sn(n[a])&&sn(s)?n[a]=lr(n[a],s):sn(s)?n[a]=lr({},s):Ot(s)?n[a]=s.slice():(!t||!wt(s))&&(n[a]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Bt(arguments[s],r);return n}const Mf=(e,t,n,{allOwnKeys:r}={})=>(Bt(t,(s,i)=>{n&&he(s)?e[i]=ta(s,n):e[i]=s},{allOwnKeys:r}),e),Rf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xf=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Af=(e,t,n,r)=>{let s,i,a;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Lr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nf=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},If=e=>{if(!e)return null;if(Ot(e))return e;let t=e.length;if(!sa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Cf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lr(Uint8Array)),Pf=(e,t)=>{const r=(e&&e[Tn]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Lf=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yf=Te("HTMLFormElement"),Uf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ys=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ff=Te("RegExp"),oa=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bt(n,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(r[i]=a||s)}),Object.defineProperties(e,r)},Wf=e=>{oa(e,(t,n)=>{if(he(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(he(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jf=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Ot(e)?r(e):r(String(e).split(t)),n},Hf=()=>{},Bf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $f(e){return!!(e&&he(e.append)&&e[na]==="FormData"&&e[Tn])}const Vf=e=>{const t=new Array(10),n=(r,s)=>{if(Ht(r)){if(t.indexOf(r)>=0)return;if(jt(r))return r;if(!("toJSON"in r)){t[s]=r;const i=Ot(r)?[]:{};return Bt(r,(a,l)=>{const m=n(a,s+1);!wt(m)&&(i[l]=m)}),t[s]=void 0,i}}return r};return n(e,0)},Gf=Te("AsyncFunction"),zf=e=>e&&(Ht(e)||he(e))&&he(e.then)&&he(e.catch),la=((e,t)=>e?setImmediate:t?((n,r)=>(rt.addEventListener("message",({source:s,data:i})=>{s===rt&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),rt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",he(rt.postMessage)),qf=typeof queueMicrotask<"u"?queueMicrotask.bind(rt):typeof process<"u"&&process.nextTick||la,Jf=e=>e!=null&&he(e[Tn]),h={isArray:Ot,isArrayBuffer:ra,isBuffer:jt,isFormData:vf,isArrayBufferView:ff,isString:hf,isNumber:sa,isBoolean:mf,isObject:Ht,isPlainObject:sn,isEmptyObject:pf,isReadableStream:Of,isRequest:Ef,isResponse:kf,isHeaders:Df,isUndefined:wt,isDate:_f,isFile:yf,isBlob:gf,isRegExp:Ff,isFunction:he,isStream:Sf,isURLSearchParams:bf,isTypedArray:Cf,isFileList:wf,forEach:Bt,merge:lr,extend:Mf,trim:Tf,stripBOM:Rf,inherits:xf,toFlatObject:Af,kindOf:Mn,kindOfTest:Te,endsWith:Nf,toArray:If,forEachEntry:Pf,matchAll:Lf,isHTMLForm:Yf,hasOwnProperty:Ys,hasOwnProp:Ys,reduceDescriptors:oa,freezeMethods:Wf,toObjectSet:jf,toCamelCase:Uf,noop:Hf,toFiniteNumber:Bf,findKey:ia,global:rt,isContextDefined:aa,isSpecCompliantForm:$f,toJSONObject:Vf,isAsyncFn:Gf,isThenable:zf,setImmediate:la,asap:qf,isIterable:Jf};function N(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}h.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.status}}});const ua=N.prototype,ca={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ca[e]={value:e}});Object.defineProperties(N,ca);Object.defineProperty(ua,"isAxiosError",{value:!0});N.from=(e,t,n,r,s,i)=>{const a=Object.create(ua);h.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",m=t==null&&e?e.code:t;return N.call(a,l,m,n,r,s),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Zf=null;function ur(e){return h.isPlainObject(e)||h.isArray(e)}function da(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function Us(e,t,n){return e?e.concat(t).map(function(s,i){return s=da(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Kf(e){return h.isArray(e)&&!e.some(ur)}const Xf=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function xn(e,t,n){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,w){return!h.isUndefined(w[T])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,a=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(s))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(h.isDate(_))return _.toISOString();if(h.isBoolean(_))return _.toString();if(!m&&h.isBlob(_))throw new N("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(_)||h.isTypedArray(_)?m&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function u(_,T,w){let H=_;if(_&&!w&&typeof _=="object"){if(h.endsWith(T,"{}"))T=r?T:T.slice(0,-2),_=JSON.stringify(_);else if(h.isArray(_)&&Kf(_)||(h.isFileList(_)||h.endsWith(T,"[]"))&&(H=h.toArray(_)))return T=da(T),H.forEach(function(z,J){!(h.isUndefined(z)||z===null)&&t.append(a===!0?Us([T],J,i):a===null?T:T+"[]",c(z))}),!1}return ur(_)?!0:(t.append(Us(w,T,i),c(_)),!1)}const y=[],D=Object.assign(Xf,{defaultVisitor:u,convertValue:c,isVisitable:ur});function A(_,T){if(!h.isUndefined(_)){if(y.indexOf(_)!==-1)throw Error("Circular reference detected in "+T.join("."));y.push(_),h.forEach(_,function(H,K){(!(h.isUndefined(H)||H===null)&&s.call(t,H,h.isString(K)?K.trim():K,T,D))===!0&&A(H,T?T.concat(K):[K])}),y.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return A(e),t}function Fs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Yr(e,t){this._pairs=[],e&&xn(e,this,t)}const fa=Yr.prototype;fa.append=function(t,n){this._pairs.push([t,n])};fa.toString=function(t){const n=t?function(r){return t.call(this,r,Fs)}:Fs;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Qf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ha(e,t,n){if(!t)return e;const r=n&&n.encode||Qf;h.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=h.isURLSearchParams(t)?t.toString():new Yr(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ws{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ma={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh=typeof URLSearchParams<"u"?URLSearchParams:Yr,th=typeof FormData<"u"?FormData:null,nh=typeof Blob<"u"?Blob:null,rh={isBrowser:!0,classes:{URLSearchParams:eh,FormData:th,Blob:nh},protocols:["http","https","file","blob","url","data"]},Ur=typeof window<"u"&&typeof document<"u",cr=typeof navigator=="object"&&navigator||void 0,sh=Ur&&(!cr||["ReactNative","NativeScript","NS"].indexOf(cr.product)<0),ih=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ah=Ur&&window.location.href||"http://localhost",oh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ur,hasStandardBrowserEnv:sh,hasStandardBrowserWebWorkerEnv:ih,navigator:cr,origin:ah},Symbol.toStringTag,{value:"Module"})),oe={...oh,...rh};function lh(e,t){return xn(e,new oe.classes.URLSearchParams,{visitor:function(n,r,s,i){return oe.isNode&&h.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function uh(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ch(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function pa(e){function t(n,r,s,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),m=i>=n.length;return a=!a&&h.isArray(s)?s.length:a,m?(h.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!l):((!s[a]||!h.isObject(s[a]))&&(s[a]=[]),t(n,r,s[a],i)&&h.isArray(s[a])&&(s[a]=ch(s[a])),!l)}if(h.isFormData(e)&&h.isFunction(e.entries)){const n={};return h.forEachEntry(e,(r,s)=>{t(uh(r),s,n,0)}),n}return null}function dh(e,t,n){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $t={transitional:ma,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=h.isObject(t);if(i&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return s?JSON.stringify(pa(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lh(t,this.formSerializer).toString();if((l=h.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return xn(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),dh(t)):t}],transformResponse:[function(t){const n=this.transitional||$t.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?N.from(l,N.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oe.classes.FormData,Blob:oe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{$t.headers[e]={}});const fh=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hh=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
14
|
+
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&fh[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},js=Symbol("internals");function xt(e){return e&&String(e).trim().toLowerCase()}function an(e){return e===!1||e==null?e:h.isArray(e)?e.map(an):String(e)}function mh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ph=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xn(e,t,n,r,s){if(h.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!h.isString(t)){if(h.isString(r))return t.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(t)}}function _h(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yh(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,a){return this[r].call(this,t,s,i,a)},configurable:!0})})}let me=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(l,m,c){const u=xt(m);if(!u)throw new Error("header name must be a non-empty string");const y=h.findKey(s,u);(!y||s[y]===void 0||c===!0||c===void 0&&s[y]!==!1)&&(s[y||m]=an(l))}const a=(l,m)=>h.forEach(l,(c,u)=>i(c,u,m));if(h.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(h.isString(t)&&(t=t.trim())&&!ph(t))a(hh(t),n);else if(h.isObject(t)&&h.isIterable(t)){let l={},m,c;for(const u of t){if(!h.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(m=l[c])?h.isArray(m)?[...m,u[1]]:[m,u[1]]:u[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=xt(t),t){const r=h.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return mh(s);if(h.isFunction(n))return n.call(this,s,r);if(h.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xt(t),t){const r=h.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(a){if(a=xt(a),a){const l=h.findKey(r,a);l&&(!n||Xn(r,r[l],l,n))&&(delete r[l],s=!0)}}return h.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Xn(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return h.forEach(this,(s,i)=>{const a=h.findKey(r,i);if(a){n[a]=an(s),delete n[i];return}const l=t?_h(i):String(i).trim();l!==i&&delete n[i],n[l]=an(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&h.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
15
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[js]=this[js]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=xt(a);r[l]||(yh(s,a),r[l]=!0)}return h.isArray(t)?t.forEach(i):i(t),this}};me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});h.freezeMethods(me);function Qn(e,t){const n=this||$t,r=t||n,s=me.from(r.headers);let i=r.data;return h.forEach(e,function(l){i=l.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function _a(e){return!!(e&&e.__CANCEL__)}function Et(e,t,n){N.call(this,e??"canceled",N.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(Et,N,{__CANCEL__:!0});function ya(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(m){const c=Date.now(),u=r[i];a||(a=c),n[s]=m,r[s]=c;let y=i,D=0;for(;y!==s;)D+=n[y++],y=y%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-a<t)return;const A=u&&c-u;return A?Math.round(D*1e3/A):void 0}}function Sh(e,t){let n=0,r=1e3/t,s,i;const a=(c,u=Date.now())=>{n=u,s=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),y=u-n;y>=r?a(c,u):(s=c,i||(i=setTimeout(()=>{i=null,a(s)},r-y)))},()=>s&&a(s)]}const pn=(e,t,n=3)=>{let r=0;const s=wh(50,250);return Sh(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,m=a-r,c=s(m),u=a<=l;r=a;const y={loaded:a,total:l,progress:l?a/l:void 0,bytes:m,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(y)},n)},Hs=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Bs=e=>(...t)=>h.asap(()=>e(...t)),vh=oe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,oe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(oe.origin),oe.navigator&&/(msie|trident)/i.test(oe.navigator.userAgent)):()=>!0,bh=oe.hasStandardBrowserEnv?{write(e,t,n,r,s,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];h.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),h.isString(r)&&l.push(`path=${r}`),h.isString(s)&&l.push(`domain=${s}`),i===!0&&l.push("secure"),h.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Oh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Eh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ga(e,t,n){let r=!Oh(t);return e&&(r||n==!1)?Eh(e,t):t}const $s=e=>e instanceof me?{...e}:e;function at(e,t){t=t||{};const n={};function r(c,u,y,D){return h.isPlainObject(c)&&h.isPlainObject(u)?h.merge.call({caseless:D},c,u):h.isPlainObject(u)?h.merge({},u):h.isArray(u)?u.slice():u}function s(c,u,y,D){if(h.isUndefined(u)){if(!h.isUndefined(c))return r(void 0,c,y,D)}else return r(c,u,y,D)}function i(c,u){if(!h.isUndefined(u))return r(void 0,u)}function a(c,u){if(h.isUndefined(u)){if(!h.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,y){if(y in t)return r(c,u);if(y in e)return r(void 0,c)}const m={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u,y)=>s($s(c),$s(u),y,!0)};return h.forEach(Object.keys({...e,...t}),function(u){const y=m[u]||s,D=y(e[u],t[u],u);h.isUndefined(D)&&y!==l||(n[u]=D)}),n}const wa=e=>{const t=at({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=me.from(a),t.url=ha(ga(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),h.isFormData(n)){if(oe.hasStandardBrowserEnv||oe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(h.isFunction(n.getHeaders)){const m=n.getHeaders(),c=["content-type","content-length"];Object.entries(m).forEach(([u,y])=>{c.includes(u.toLowerCase())&&a.set(u,y)})}}if(oe.hasStandardBrowserEnv&&(r&&h.isFunction(r)&&(r=r(t)),r||r!==!1&&vh(t.url))){const m=s&&i&&bh.read(i);m&&a.set(s,m)}return t},kh=typeof XMLHttpRequest<"u",Dh=kh&&function(e){return new Promise(function(n,r){const s=wa(e);let i=s.data;const a=me.from(s.headers).normalize();let{responseType:l,onUploadProgress:m,onDownloadProgress:c}=s,u,y,D,A,_;function T(){A&&A(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function H(){if(!w)return;const z=me.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),ne={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:z,config:e,request:w};ya(function(ee){n(ee),T()},function(ee){r(ee),T()},ne),w=null}"onloadend"in w?w.onloadend=H:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(H)},w.onabort=function(){w&&(r(new N("Request aborted",N.ECONNABORTED,e,w)),w=null)},w.onerror=function(J){const ne=J&&J.message?J.message:"Network Error",ue=new N(ne,N.ERR_NETWORK,e,w);ue.event=J||null,r(ue),w=null},w.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const ne=s.transitional||ma;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new N(J,ne.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,w)),w=null},i===void 0&&a.setContentType(null),"setRequestHeader"in w&&h.forEach(a.toJSON(),function(J,ne){w.setRequestHeader(ne,J)}),h.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),l&&l!=="json"&&(w.responseType=s.responseType),c&&([D,_]=pn(c,!0),w.addEventListener("progress",D)),m&&w.upload&&([y,A]=pn(m),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",A)),(s.cancelToken||s.signal)&&(u=z=>{w&&(r(!z||z.type?new Et(null,e,w):z),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const K=gh(s.url);if(K&&oe.protocols.indexOf(K)===-1){r(new N("Unsupported protocol "+K+":",N.ERR_BAD_REQUEST,e));return}w.send(i||null)})},Th=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(c){if(!s){s=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof N?u:new Et(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new N(`timeout ${t} of ms exceeded`,N.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:m}=r;return m.unsubscribe=()=>h.asap(l),m}},Mh=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Rh=async function*(e,t){for await(const n of xh(e))yield*Mh(n,t)},xh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Vs=(e,t,n,r)=>{const s=Rh(e,t);let i=0,a,l=m=>{a||(a=!0,r&&r(m))};return new ReadableStream({async pull(m){try{const{done:c,value:u}=await s.next();if(c){l(),m.close();return}let y=u.byteLength;if(n){let D=i+=y;n(D)}m.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(m){return l(m),s.return()}},{highWaterMark:2})},Gs=64*1024,{isFunction:Qt}=h,Ah=(({Request:e,Response:t})=>({Request:e,Response:t}))(h.global),{ReadableStream:zs,TextEncoder:qs}=h.global,Js=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nh=e=>{e=h.merge.call({skipUndefined:!0},Ah,e);const{fetch:t,Request:n,Response:r}=e,s=t?Qt(t):typeof fetch=="function",i=Qt(n),a=Qt(r);if(!s)return!1;const l=s&&Qt(zs),m=s&&(typeof qs=="function"?(_=>T=>_.encode(T))(new qs):async _=>new Uint8Array(await new n(_).arrayBuffer())),c=i&&l&&Js(()=>{let _=!1;const T=new n(oe.origin,{body:new zs,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!T}),u=a&&l&&Js(()=>h.isReadableStream(new r("").body)),y={stream:u&&(_=>_.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!y[_]&&(y[_]=(T,w)=>{let H=T&&T[_];if(H)return H.call(T);throw new N(`Response type '${_}' is not supported`,N.ERR_NOT_SUPPORT,w)})});const D=async _=>{if(_==null)return 0;if(h.isBlob(_))return _.size;if(h.isSpecCompliantForm(_))return(await new n(oe.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(h.isArrayBufferView(_)||h.isArrayBuffer(_))return _.byteLength;if(h.isURLSearchParams(_)&&(_=_+""),h.isString(_))return(await m(_)).byteLength},A=async(_,T)=>{const w=h.toFiniteNumber(_.getContentLength());return w??D(T)};return async _=>{let{url:T,method:w,data:H,signal:K,cancelToken:z,timeout:J,onDownloadProgress:ne,onUploadProgress:ue,responseType:ee,headers:Me,withCredentials:pe="same-origin",fetchOptions:Ve}=wa(_),ve=t||fetch;ee=ee?(ee+"").toLowerCase():"text";let R=Th([K,z&&z.toAbortSignal()],J),W=null;const P=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let re;try{if(ue&&c&&w!=="get"&&w!=="head"&&(re=await A(Me,H))!==0){let be=new n(T,{method:"POST",body:H,duplex:"half"}),v;if(h.isFormData(H)&&(v=be.headers.get("content-type"))&&Me.setContentType(v),be.body){const[E,k]=Hs(re,pn(Bs(ue)));H=Vs(be.body,Gs,E,k)}}h.isString(pe)||(pe=pe?"include":"omit");const $=i&&"credentials"in n.prototype,se={...Ve,signal:R,method:w.toUpperCase(),headers:Me.normalize().toJSON(),body:H,duplex:"half",credentials:$?pe:void 0};W=i&&new n(T,se);let Q=await(i?ve(W,Ve):ve(T,se));const Ke=u&&(ee==="stream"||ee==="response");if(u&&(ne||Ke&&P)){const be={};["status","statusText","headers"].forEach(S=>{be[S]=Q[S]});const v=h.toFiniteNumber(Q.headers.get("content-length")),[E,k]=ne&&Hs(v,pn(Bs(ne),!0))||[];Q=new r(Vs(Q.body,Gs,E,()=>{k&&k(),P&&P()}),be)}ee=ee||"text";let j=await y[h.findKey(y,ee)||"text"](Q,_);return!Ke&&P&&P(),await new Promise((be,v)=>{ya(be,v,{data:j,headers:me.from(Q.headers),status:Q.status,statusText:Q.statusText,config:_,request:W})})}catch($){throw P&&P(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new N("Network Error",N.ERR_NETWORK,_,W),{cause:$.cause||$}):N.from($,$&&$.code,_,W)}}},Ih=new Map,Sa=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let a=i.length,l=a,m,c,u=Ih;for(;l--;)m=i[l],c=u.get(m),c===void 0&&u.set(m,c=l?new Map:Nh(t)),u=c;return c};Sa();const Fr={http:Zf,xhr:Dh,fetch:{get:Sa}};h.forEach(Fr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zs=e=>`- ${e}`,Ch=e=>h.isFunction(e)||e===null||e===!1;function Ph(e,t){e=h.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let a=0;a<n;a++){r=e[a];let l;if(s=r,!Ch(r)&&(s=Fr[(l=String(r)).toLowerCase()],s===void 0))throw new N(`Unknown adapter '${l}'`);if(s&&(h.isFunction(s)||(s=s.get(t))))break;i[l||"#"+a]=s}if(!s){const a=Object.entries(i).map(([m,c])=>`adapter ${m} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
16
|
+
`+a.map(Zs).join(`
|
|
17
|
+
`):" "+Zs(a[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s}const va={getAdapter:Ph,adapters:Fr};function er(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function Ks(e){return er(e),e.headers=me.from(e.headers),e.data=Qn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),va.getAdapter(e.adapter||$t.adapter,e)(e).then(function(r){return er(e),r.data=Qn.call(e,e.transformResponse,r),r.headers=me.from(r.headers),r},function(r){return _a(r)||(er(e),r&&r.response&&(r.response.data=Qn.call(e,e.transformResponse,r.response),r.response.headers=me.from(r.response.headers))),Promise.reject(r)})}const ba="1.13.2",An={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{An[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xs={};An.transitional=function(t,n,r){function s(i,a){return"[Axios v"+ba+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new N(s(a," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!Xs[a]&&(Xs[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};An.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Lh(e,t,n){if(typeof e!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],a=t[i];if(a){const l=e[i],m=l===void 0||a(l,i,e);if(m!==!0)throw new N("option "+i+" must be "+m,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}}const on={assertOptions:Lh,validators:An},Re=on.validators;let it=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ws,response:new Ws}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
18
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=at(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&on.assertOptions(r,{silentJSONParsing:Re.transitional(Re.boolean),forcedJSONParsing:Re.transitional(Re.boolean),clarifyTimeoutError:Re.transitional(Re.boolean)},!1),s!=null&&(h.isFunction(s)?n.paramsSerializer={serialize:s}:on.assertOptions(s,{encode:Re.function,serialize:Re.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),on.assertOptions(n,{baseUrl:Re.spelling("baseURL"),withXsrfToken:Re.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&h.merge(i.common,i[n.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],_=>{delete i[_]}),n.headers=me.concat(a,i);const l=[];let m=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(m=m&&T.synchronous,l.unshift(T.fulfilled,T.rejected))});const c=[];this.interceptors.response.forEach(function(T){c.push(T.fulfilled,T.rejected)});let u,y=0,D;if(!m){const _=[Ks.bind(this),void 0];for(_.unshift(...l),_.push(...c),D=_.length,u=Promise.resolve(n);y<D;)u=u.then(_[y++],_[y++]);return u}D=l.length;let A=n;for(;y<D;){const _=l[y++],T=l[y++];try{A=_(A)}catch(w){T.call(this,w);break}}try{u=Ks.call(this,A)}catch(_){return Promise.reject(_)}for(y=0,D=c.length;y<D;)u=u.then(c[y++],c[y++]);return u}getUri(t){t=at(this.defaults,t);const n=ga(t.baseURL,t.url,t.allowAbsoluteUrls);return ha(n,t.params,t.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(t){it.prototype[t]=function(n,r){return this.request(at(r||{},{method:t,url:n,data:(r||{}).data}))}});h.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(at(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}it.prototype[t]=n(),it.prototype[t+"Form"]=n(!0)});let Yh=class Oa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Et(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Oa(function(s){t=s}),cancel:t}}};function Uh(e){return function(n){return e.apply(null,n)}}function Fh(e){return h.isObject(e)&&e.isAxiosError===!0}const dr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dr).forEach(([e,t])=>{dr[t]=e});function Ea(e){const t=new it(e),n=ta(it.prototype.request,t);return h.extend(n,it.prototype,t,{allOwnKeys:!0}),h.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ea(at(e,s))},n}const Z=Ea($t);Z.Axios=it;Z.CanceledError=Et;Z.CancelToken=Yh;Z.isCancel=_a;Z.VERSION=ba;Z.toFormData=xn;Z.AxiosError=N;Z.Cancel=Z.CanceledError;Z.all=function(t){return Promise.all(t)};Z.spread=Uh;Z.isAxiosError=Fh;Z.mergeConfig=at;Z.AxiosHeaders=me;Z.formToJSON=e=>pa(h.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=va.getAdapter;Z.HttpStatusCode=dr;Z.default=Z;const{Axios:em,AxiosError:tm,CanceledError:nm,isCancel:rm,CancelToken:sm,VERSION:im,all:am,Cancel:om,isAxiosError:lm,spread:um,toFormData:cm,AxiosHeaders:dm,HttpStatusCode:fm,formToJSON:hm,getAdapter:mm,mergeConfig:pm}=Z,Nn=()=>{const{apiUrl:e,apiRequestHeaders:t,debug:n}=Pr(),r=u=>{n&&(u.response?(console.log("data:",u.response.data),console.log("status:",u.response.status),console.log("headers:",u.response.headers)):u.request?console.log("request:",u.request):console.log("error:",u.message),console.log("config:",u.config))},s=async(u,y,D)=>{let A=!1,_=null,T=null;try{const w=t;w.Authorization=`Bearer ${y}`,_=await Z.request({method:u.method||"get",params:u.params||{},data:u.data||{},url:u.url||"/",baseURL:e,headers:w}),A=!0}catch(w){T=w,A=!1,w.response&&w.response.status==401?D?.():r(w)}return{success:A,failure:!A,result:_?_.data:null,error:T}};return{request:s,getItem:async u=>await s({url:`/${u.routeBase}/${u.id}`}),addItem:async u=>await s({url:`/${u.routeBase}`,method:"post",data:u.data}),updateItem:async u=>await s({url:`/${u.routeBase}/${u.id}`,method:"put",data:u.data}),deleteItem:async u=>await s({url:`/${u.routeBase}/${u.id}`,method:"delete"}),getAllItems:async u=>await s({url:`/${u.routeBase}`}),handleError:r}},Wr=()=>{const e=ti.usePage(),t=d.inject(Xi),{request:n}=Nn(),{apiBaseUrl:r,langKey:s}=Pr(),i=d.computed(()=>e.url),a=R=>ps(R)?R:`${r}/${Vo(R)}`,l=R=>R?ps(R)?R:`${r}/storage/${R}`:"",m=async(R,W="original")=>{const P=["small","medium","large"],re=R.split("/").pop();let $=!1;for(let se=0;se<P.length;se++)if(P[se]===W&&($=!0),$)try{const Q=l(`thumbnails/${P[se]}/${re}`);if((await Z.head(Q)).status===200)return Q}catch{}return l(R)},c=(R,W)=>{let P;try{P=JSON.parse(R)}catch{P={}}return P&&(P[W.toUpperCase()]||P[W]||P.en)||""},u=(R,W)=>c(R,W),y=(R,W)=>{if(!R)return"";let P=c(R,W).replace(new RegExp("{{BASE_URL}}article","g"),`${r}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${r}/storage`);const re=P.match(/\[audio\](.*?)\[\/?audio\]/g),$=P.match(/\[video\](.*?)\[\/?video\]/g);return re?.forEach(se=>{const Q=se.replace(/\[\/?audio\]/g,"");P=P.replace(se,`<br><p><audio preload="all" controls style="width: 100%"><source src="${l(Q)}"></audio></p><br>`)}),$?.forEach(se=>{const Q=se.replace(/\[\/?video\]/g,"");P=P.replace(se,`<br><p><video controls style="width: 100%"><source src="${l(Q)}"></video></p><br>`)}),P},D=(R,W)=>y(R,W),A=Rt("(min-width: 1536px)"),_=Rt("(min-width: 1280px) and (max-width: 1535px)"),T=Rt("(min-width: 1024px) and (max-width: 1279px)"),w=Rt("(min-width: 768px) and (max-width: 1023px)"),H=Rt("(max-width: 767px)"),K=[{label:"French",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:A,isXlScreen:_,isLgScreen:T,isMdScreen:w,isSmScreen:H,getTranslation:c,getLangageLabel:R=>K.find(W=>W.value==R)?.label,getLanguageValue:R=>K.find(W=>W.label==R)?.value,getLinkCursorClass:R=>!R||R==="#"?"tw:cursor-default":"tw:cursor-pointer",ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(R,W)=>{if(R)for(const[P,re]of Object.entries(R))for(const $ of re)W($)},resolveHtmlLinks:y,resolveUrl:a,updateLang:async(R,W=!0,P=!0)=>{if(localStorage.setItem(s,R),e.props.isUserLoggedIn&&P){const re=e.props.userData?.preferences||{inAppNotifEnabled:hn.TRUE,emailNotifEnabled:hn.TRUE,locale:R};re.locale=R,await n({url:`/users/self/${e.props.userData?.id}`,method:"put",data:{preferences:re}})}W&&location.reload()},languages:K,getImage:m,fileUrl:l,currentRoutePath:i,openLink:R=>{_v.isURL(R)?window.open(R,"_blank"):t?.get(R)},openMenu:R=>{switch(R?.targetType){case mn.EXTERNAL_LINK:window.open(R?.url??"#");break;case mn.PAGE_LINK:t?.get(R?.path??"/");break}},getMenuHref:R=>R?.targetType==="external-link"?R?.url||"":R?.path||"",rHtml:D,tr:u}},Wh=["src"],ka=d.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:n}=Wr(),{src:r,size:s,sync:i}=d.toRefs(t),a=d.computed(()=>{const{src:l,size:m,sync:c,...u}=t;return u});return(l,m)=>{const c=Cr;return d.unref(i)?(d.openBlock(),d.createElementBlock("img",d.mergeProps({key:0,src:d.unref(r)},d.unref(a)),null,16,Wh)):(d.openBlock(),d.createBlock(c,d.mergeProps({key:1,load:()=>d.unref(n)(d.unref(r),d.unref(s))},d.unref(a)),null,16,["load"]))}}}),Da=d.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,n=d.ref(!1);return d.onMounted(()=>{n.value=!0}),d.onUnmounted(()=>{n.value=!1}),(r,s)=>d.unref(n)?(d.openBlock(),d.createBlock(d.Teleport,{key:0,to:t.to},[d.renderSlot(r.$slots,"default")],8,["to"])):d.createCommentVNode("",!0)}}),jh=["innerHTML"],Hh=["href"],Bh=["href"],Ta=d.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,n=d.ref(!1),r=d.computed(()=>!n.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),s=(i,a)=>{t.link=="#"&&i.preventDefault(),t.lessStr&&(n.value=a)};return(i,a)=>(d.openBlock(),d.createElementBlock("div",null,[d.createElementVNode("span",{innerHTML:d.unref(r)},null,8,jh),d.withDirectives(d.createElementVNode("span",null,[d.withDirectives(d.createElementVNode("a",{id:"readmore",href:t.link,onClick:a[0]||(a[0]=l=>s(l,!0))},d.toDisplayString(t.moreStr),9,Hh),[[d.vShow,!d.unref(n)]]),d.withDirectives(d.createElementVNode("a",{id:"readmore",href:t.link,onClick:a[1]||(a[1]=l=>s(l,!1))},d.toDisplayString(t.lessStr),9,Bh),[[d.vShow,d.unref(n)]])],512),[[d.vShow,t.text.length>t.maxChars]])]))}}),Ma=d.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=d.ref(null),r=d.ref(!1),s=d.ref(""),i=d.ref(void 0),a=d.ref(void 0),l=d.ref(!1);d.onMounted(()=>{a.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",y),window.addEventListener("resize",D),y()}),d.onActivated(()=>{y()}),d.onUnmounted(()=>{window.removeEventListener("scroll",y),window.removeEventListener("resize",D)});const m=()=>{r.value||(s.value="fixed",r.value=!0,i.value=i.value+"px",l.value=!0)},c=()=>{r.value&&u()},u=()=>{s.value="",i.value="auto",r.value=!1,l.value=!1},y=()=>{const A=n.value?.getBoundingClientRect().width;if(i.value=A||"auto",(n.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}c()},D=()=>{l.value&&(i.value=n.value?.getBoundingClientRect().width+"px")};return(A,_)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"el",ref:n,style:d.normalizeStyle({height:d.unref(a)+"px",zIndex:t.zIndex})},[d.createElementVNode("div",{class:d.normalizeClass(t.className),style:d.normalizeStyle({bottom:d.unref(l)?t.bottom+"px":"",zIndex:t.zIndex,position:d.unref(s),width:d.unref(i),height:d.unref(a)+"px"})},[d.renderSlot(A.$slots,"default",{},()=>[_[0]||(_[0]=d.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),Ra=d.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=d.ref(null),r=d.ref(!1),s=d.ref(""),i=d.ref(void 0),a=d.ref(void 0),l=d.ref(!1);d.onMounted(()=>{a.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",y),window.addEventListener("resize",D)}),d.onActivated(()=>{y()}),d.onUnmounted(()=>{window.removeEventListener("scroll",y),window.removeEventListener("resize",D)});const m=()=>{r.value||(s.value="fixed",r.value=!0,i.value=i.value+"px",l.value=!0)},c=()=>{r.value&&u()},u=()=>{s.value="",i.value="auto",r.value=!1,l.value=!1},y=()=>{const A=n.value?.getBoundingClientRect().width;if(i.value=A||"auto",(n.value?.getBoundingClientRect().top||0)<t.top){m();return}c()},D=()=>{l.value&&(i.value=n.value?.getBoundingClientRect().width+"px")};return(A,_)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"el",ref:n,style:d.normalizeStyle({height:d.unref(a)+"px",zIndex:t.zIndex})},[d.createElementVNode("div",{class:d.normalizeClass(t.className),style:d.normalizeStyle({top:d.unref(l)?t.top+"px":"",zIndex:t.zIndex,position:d.unref(s),width:d.unref(i),height:d.unref(a)+"px"})},[d.renderSlot(A.$slots,"default",{},()=>[_[0]||(_[0]=d.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class $h{state;constructor(t){this.state=d.reactive({props:t})}update(t){this.state.props=this.deepMerge(this.state.props,t)}getState(){return d.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,n){const r={...t};return this.isObject(t)&&this.isObject(n)&&Object.keys(n).forEach(s=>{this.isObject(n[s])&&s in t?r[s]=this.deepMerge(t[s],n[s]):r[s]=n[s]}),r}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const Vh=()=>{const e=d.inject(Zi);if(!e)throw new Error("[@creopse/vue] Plugin not installed");return e.getState().props};var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={exports:{}};At.exports;var Qs;function zh(){return Qs||(Qs=1,function(e,t){var n=200,r="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",m="[object Date]",c="[object Error]",u="[object Function]",y="[object GeneratorFunction]",D="[object Map]",A="[object Number]",_="[object Object]",T="[object Promise]",w="[object RegExp]",H="[object Set]",K="[object String]",z="[object Symbol]",J="[object WeakMap]",ne="[object ArrayBuffer]",ue="[object DataView]",ee="[object Float32Array]",Me="[object Float64Array]",pe="[object Int8Array]",Ve="[object Int16Array]",ve="[object Int32Array]",R="[object Uint8Array]",W="[object Uint8ClampedArray]",P="[object Uint16Array]",re="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,se=/\w*$/,Q=/^\[object .+?Constructor\]$/,Ke=/^(?:0|[1-9]\d*)$/,j={};j[i]=j[a]=j[ne]=j[ue]=j[l]=j[m]=j[ee]=j[Me]=j[pe]=j[Ve]=j[ve]=j[D]=j[A]=j[_]=j[w]=j[H]=j[K]=j[z]=j[R]=j[W]=j[P]=j[re]=!0,j[c]=j[u]=j[J]=!1;var be=typeof en=="object"&&en&&en.Object===Object&&en,v=typeof self=="object"&&self&&self.Object===Object&&self,E=be||v||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&!0&&e&&!e.nodeType&&e,L=S&&S.exports===k;function ae(o,f){return o.set(f[0],f[1]),o}function lt(o,f){return o.add(f),o}function Ge(o,f){for(var p=-1,M=o?o.length:0;++p<M&&f(o[p],p,o)!==!1;);return o}function In(o,f){for(var p=-1,M=f.length,ie=o.length;++p<M;)o[ie+p]=f[p];return o}function jr(o,f,p,M){for(var ie=-1,ce=o?o.length:0;++ie<ce;)p=f(p,o[ie],ie,o);return p}function xa(o,f){for(var p=-1,M=Array(o);++p<o;)M[p]=f(p);return M}function Aa(o,f){return o?.[f]}function Hr(o){var f=!1;if(o!=null&&typeof o.toString!="function")try{f=!!(o+"")}catch{}return f}function Br(o){var f=-1,p=Array(o.size);return o.forEach(function(M,ie){p[++f]=[ie,M]}),p}function Cn(o,f){return function(p){return o(f(p))}}function $r(o){var f=-1,p=Array(o.size);return o.forEach(function(M){p[++f]=M}),p}var Na=Array.prototype,Ia=Function.prototype,Vt=Object.prototype,Pn=E["__core-js_shared__"],Vr=function(){var o=/[^.]+$/.exec(Pn&&Pn.keys&&Pn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Gr=Ia.toString,ze=Vt.hasOwnProperty,Gt=Vt.toString,Ca=RegExp("^"+Gr.call(ze).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zr=L?E.Buffer:void 0,qr=E.Symbol,Jr=E.Uint8Array,Pa=Cn(Object.getPrototypeOf,Object),La=Object.create,Ya=Vt.propertyIsEnumerable,Ua=Na.splice,Zr=Object.getOwnPropertySymbols,Fa=zr?zr.isBuffer:void 0,Wa=Cn(Object.keys,Object),Ln=dt(E,"DataView"),kt=dt(E,"Map"),Yn=dt(E,"Promise"),Un=dt(E,"Set"),Fn=dt(E,"WeakMap"),Dt=dt(Object,"create"),ja=et(Ln),Ha=et(kt),Ba=et(Yn),$a=et(Un),Va=et(Fn),Kr=qr?qr.prototype:void 0,Xr=Kr?Kr.valueOf:void 0;function Xe(o){var f=-1,p=o?o.length:0;for(this.clear();++f<p;){var M=o[f];this.set(M[0],M[1])}}function Ga(){this.__data__=Dt?Dt(null):{}}function za(o){return this.has(o)&&delete this.__data__[o]}function qa(o){var f=this.__data__;if(Dt){var p=f[o];return p===r?void 0:p}return ze.call(f,o)?f[o]:void 0}function Ja(o){var f=this.__data__;return Dt?f[o]!==void 0:ze.call(f,o)}function Za(o,f){var p=this.__data__;return p[o]=Dt&&f===void 0?r:f,this}Xe.prototype.clear=Ga,Xe.prototype.delete=za,Xe.prototype.get=qa,Xe.prototype.has=Ja,Xe.prototype.set=Za;function Ce(o){var f=-1,p=o?o.length:0;for(this.clear();++f<p;){var M=o[f];this.set(M[0],M[1])}}function Ka(){this.__data__=[]}function Xa(o){var f=this.__data__,p=zt(f,o);if(p<0)return!1;var M=f.length-1;return p==M?f.pop():Ua.call(f,p,1),!0}function Qa(o){var f=this.__data__,p=zt(f,o);return p<0?void 0:f[p][1]}function eo(o){return zt(this.__data__,o)>-1}function to(o,f){var p=this.__data__,M=zt(p,o);return M<0?p.push([o,f]):p[M][1]=f,this}Ce.prototype.clear=Ka,Ce.prototype.delete=Xa,Ce.prototype.get=Qa,Ce.prototype.has=eo,Ce.prototype.set=to;function ut(o){var f=-1,p=o?o.length:0;for(this.clear();++f<p;){var M=o[f];this.set(M[0],M[1])}}function no(){this.__data__={hash:new Xe,map:new(kt||Ce),string:new Xe}}function ro(o){return qt(this,o).delete(o)}function so(o){return qt(this,o).get(o)}function io(o){return qt(this,o).has(o)}function ao(o,f){return qt(this,o).set(o,f),this}ut.prototype.clear=no,ut.prototype.delete=ro,ut.prototype.get=so,ut.prototype.has=io,ut.prototype.set=ao;function ct(o){this.__data__=new Ce(o)}function oo(){this.__data__=new Ce}function lo(o){return this.__data__.delete(o)}function uo(o){return this.__data__.get(o)}function co(o){return this.__data__.has(o)}function fo(o,f){var p=this.__data__;if(p instanceof Ce){var M=p.__data__;if(!kt||M.length<n-1)return M.push([o,f]),this;p=this.__data__=new ut(M)}return p.set(o,f),this}ct.prototype.clear=oo,ct.prototype.delete=lo,ct.prototype.get=uo,ct.prototype.has=co,ct.prototype.set=fo;function ho(o,f){var p=Hn(o)||Yo(o)?xa(o.length,String):[],M=p.length,ie=!!M;for(var ce in o)ze.call(o,ce)&&!(ie&&(ce=="length"||Io(ce,M)))&&p.push(ce);return p}function Qr(o,f,p){var M=o[f];(!(ze.call(o,f)&&rs(M,p))||p===void 0&&!(f in o))&&(o[f]=p)}function zt(o,f){for(var p=o.length;p--;)if(rs(o[p][0],f))return p;return-1}function mo(o,f){return o&&es(f,Bn(f),o)}function Wn(o,f,p,M,ie,ce,Pe){var de;if(M&&(de=ce?M(o,ie,ce,Pe):M(o)),de!==void 0)return de;if(!Jt(o))return o;var as=Hn(o);if(as){if(de=xo(o),!f)return To(o,de)}else{var ft=Qe(o),os=ft==u||ft==y;if(Fo(o))return So(o,f);if(ft==_||ft==i||os&&!ce){if(Hr(o))return ce?o:{};if(de=Ao(os?{}:o),!f)return Mo(o,mo(de,o))}else{if(!j[ft])return ce?o:{};de=No(o,ft,Wn,f)}}Pe||(Pe=new ct);var ls=Pe.get(o);if(ls)return ls;if(Pe.set(o,de),!as)var us=p?Ro(o):Bn(o);return Ge(us||o,function($n,Zt){us&&(Zt=$n,$n=o[Zt]),Qr(de,Zt,Wn($n,f,p,M,Zt,o,Pe))}),de}function po(o){return Jt(o)?La(o):{}}function _o(o,f,p){var M=f(o);return Hn(o)?M:In(M,p(o))}function yo(o){return Gt.call(o)}function go(o){if(!Jt(o)||Po(o))return!1;var f=is(o)||Hr(o)?Ca:Q;return f.test(et(o))}function wo(o){if(!ns(o))return Wa(o);var f=[];for(var p in Object(o))ze.call(o,p)&&p!="constructor"&&f.push(p);return f}function So(o,f){if(f)return o.slice();var p=new o.constructor(o.length);return o.copy(p),p}function jn(o){var f=new o.constructor(o.byteLength);return new Jr(f).set(new Jr(o)),f}function vo(o,f){var p=f?jn(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function bo(o,f,p){var M=f?p(Br(o),!0):Br(o);return jr(M,ae,new o.constructor)}function Oo(o){var f=new o.constructor(o.source,se.exec(o));return f.lastIndex=o.lastIndex,f}function Eo(o,f,p){var M=f?p($r(o),!0):$r(o);return jr(M,lt,new o.constructor)}function ko(o){return Xr?Object(Xr.call(o)):{}}function Do(o,f){var p=f?jn(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function To(o,f){var p=-1,M=o.length;for(f||(f=Array(M));++p<M;)f[p]=o[p];return f}function es(o,f,p,M){p||(p={});for(var ie=-1,ce=f.length;++ie<ce;){var Pe=f[ie],de=void 0;Qr(p,Pe,de===void 0?o[Pe]:de)}return p}function Mo(o,f){return es(o,ts(o),f)}function Ro(o){return _o(o,Bn,ts)}function qt(o,f){var p=o.__data__;return Co(f)?p[typeof f=="string"?"string":"hash"]:p.map}function dt(o,f){var p=Aa(o,f);return go(p)?p:void 0}var ts=Zr?Cn(Zr,Object):Ho,Qe=yo;(Ln&&Qe(new Ln(new ArrayBuffer(1)))!=ue||kt&&Qe(new kt)!=D||Yn&&Qe(Yn.resolve())!=T||Un&&Qe(new Un)!=H||Fn&&Qe(new Fn)!=J)&&(Qe=function(o){var f=Gt.call(o),p=f==_?o.constructor:void 0,M=p?et(p):void 0;if(M)switch(M){case ja:return ue;case Ha:return D;case Ba:return T;case $a:return H;case Va:return J}return f});function xo(o){var f=o.length,p=o.constructor(f);return f&&typeof o[0]=="string"&&ze.call(o,"index")&&(p.index=o.index,p.input=o.input),p}function Ao(o){return typeof o.constructor=="function"&&!ns(o)?po(Pa(o)):{}}function No(o,f,p,M){var ie=o.constructor;switch(f){case ne:return jn(o);case l:case m:return new ie(+o);case ue:return vo(o,M);case ee:case Me:case pe:case Ve:case ve:case R:case W:case P:case re:return Do(o,M);case D:return bo(o,M,p);case A:case K:return new ie(o);case w:return Oo(o);case H:return Eo(o,M,p);case z:return ko(o)}}function Io(o,f){return f=f??s,!!f&&(typeof o=="number"||Ke.test(o))&&o>-1&&o%1==0&&o<f}function Co(o){var f=typeof o;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?o!=="__proto__":o===null}function Po(o){return!!Vr&&Vr in o}function ns(o){var f=o&&o.constructor,p=typeof f=="function"&&f.prototype||Vt;return o===p}function et(o){if(o!=null){try{return Gr.call(o)}catch{}try{return o+""}catch{}}return""}function Lo(o){return Wn(o,!0,!0)}function rs(o,f){return o===f||o!==o&&f!==f}function Yo(o){return Uo(o)&&ze.call(o,"callee")&&(!Ya.call(o,"callee")||Gt.call(o)==i)}var Hn=Array.isArray;function ss(o){return o!=null&&Wo(o.length)&&!is(o)}function Uo(o){return jo(o)&&ss(o)}var Fo=Fa||Bo;function is(o){var f=Jt(o)?Gt.call(o):"";return f==u||f==y}function Wo(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=s}function Jt(o){var f=typeof o;return!!o&&(f=="object"||f=="function")}function jo(o){return!!o&&typeof o=="object"}function Bn(o){return ss(o)?ho(o):wo(o)}function Ho(){return[]}function Bo(){return!1}e.exports=Lo}(At,At.exports)),At.exports}var qh=zh();const ei=Gh(qh),Jh=()=>{const{request:e}=Nn(),{fileUrl:t}=Wr(),n=ti.usePage(),r=()=>n.props,s=n.props.pageData,i=n.props.article,a=n.props.category,l=n.props.tag,m=n.props.contentModelItem,c=d.inject(Qi),u=v=>{if(!v)return null;const E=v.split("__"),k=E.length?E[0]:"",S=E.length>1?E[1]:"";return n.props.pageData?.sections?.find(L=>L.slug==k&&L.pivot?.linkId==S)?.pivot?.data||null},y=v=>u(v)?.index,D=v=>{if(!v)return null;const E=v.split("__"),k=E.length?E[0]:"",S=E.length>1?E[1]:"";return n.props.pageData?.sections?.find(L=>L.slug==k&&L.pivot?.linkId==S)?.pivot?.settings||null},A=(v,E)=>D(v)?.[E],_=(v,E,k)=>A(v,E)?.[k],T=()=>{const v=s?.sections,E=s?.sectionsOrder,k=[];if(Array.isArray(v)&&Array.isArray(E)){for(const S of E)if(S){const L=v.find(ae=>`${ae.slug}__${ae.pivot?.linkId}`===S);L&&k.push(L)}}return k.length?k:v||[]},w=()=>{const v=T(),E=s?.sectionsDisabled;return v.filter(k=>!E?.includes(`${k.slug}__${k.pivot?.linkId}`))},H=async(v,E,k="default")=>{const S=await e({url:`section-data/${v}/source/${E}/link/${k}`});return S.success&&S.result?S.result.data:null},K=()=>{const v={};if(!c)throw new Error("[@creopse/vue] resolveSections is required");const E=c();for(const[S,L]of Object.entries(E)){var k=S.replace(/^\.\/(.*)\.\w+$/,"$1");const ae=k.split("/"),lt=ae[ae.length-1]?.split(".")[0];v[lt]=L.default}return v},z=v=>n.props?.contentModels?.find(E=>E.name===v),J=v=>{const{index:E,...k}=v.contentModelData;return{...v,data:{...v.contentModelData?.index,...k}}},ne=async(v,E=!0)=>{const k=await e({url:`content-model/items?contentModelName=${v}${E?"&isActive=true":""}`});return k.success&&k.result?(k.result.data||[]).map(S=>J(S)):[]},ue=async(v,E,k=!0)=>{const S=await e({url:`content-model/items?pageSize=${E}&contentModelName=${v}${k?"&isActive=true":""}`});if(S.success&&S.result){const L=(S.result.data?.items||[]).map(Ge=>J(Ge)),ae=S.result.data?.meta?.total||0,lt=S.result.data?.meta?.currentPage||1;return{items:L,total:ae,currentPage:lt}}return{items:[],total:0,currentPage:1}},ee=(v,E=!0)=>{const k=n.props?.menus?.find(S=>S.name===v);return k&&(k.items=ei(k.items?.filter(S=>!E||S.isActive)?.sort((S,L)=>S.position-L.position))),k},Me=(v,E=!0)=>{const k=n.props?.menus?.find(S=>S.location?.name===v);return k&&(k.items=ei(k.items?.filter(S=>!E||S.isActive)?.sort((S,L)=>S.position-L.position))),k},pe=(v,E=!0)=>ee(v)?.items?.filter(k=>!E||k.isVisible)?.sort((k,S)=>k.position-S.position),Ve=v=>{const E=[];return(n.props?.menus||[]).forEach(S=>{Array.isArray(S.items)&&E.push(...S.items)}),E.find(S=>S.id===v)},ve=(v,E=!0)=>Me(v)?.items?.filter(k=>!E||k.isVisible)?.sort((k,S)=>k.position-S.position),R=(v,E=!1,k=!0)=>{const S=[],L=E?ve(v,k):pe(v,k);if(L){for(const ae of L)if(!S.find(Ge=>Ge.id===ae.menuItemGroupId)){const Ge=n.props?.menuItemGroups?.find(In=>In.id===ae.menuItemGroupId);Ge&&S.push(Ge)}}return S},W=(v,E,k=!1,S=!0)=>(k?ve(v,S):pe(v,S))?.filter(ae=>ae.menuItemGroupId===E),P=(v,E=!1,k=!0)=>R(v,E).map(L=>({group:L,items:W(v,L.id||0,E,k)})),re=(v,E=!1,k=!0)=>(E?ve(v,k):pe(v,k))?.filter(L=>!L.menuItemGroupId),$=(v,E="string")=>{const S=n.props.appInformation.find(ae=>ae.key===v);let L="";switch(E){case"number":L=S&&parseInt(S.value)&&!isNaN(parseInt(S.value))?parseInt(S.value):0;break;case"boolean":L=S&&!isNaN(parseInt(S.value))&&parseInt(S.value)>0;break;case"object":L=S&&S.value?JSON.parse(S.value):{};break;case"array":L=S&&S.value?JSON.parse(S.value):[];break;default:L=S&&S.value?S.value:"";break}return L},se=d.computed(()=>$("primaryColor")||"#005B97"),Q=d.computed(()=>$("secondaryColor")||"#1E9CD7"),Ke=d.computed(()=>$("accentColor")||"#FF6501"),j=d.computed(()=>{const v=$("icon");return t(v)||""});return{logo:d.computed(()=>{const v=$("logo");return t(v)||""}),icon:j,page:n,pageData:s,newsArticle:i,newsCategory:a,newsTag:l,contentModelItem:m,getProps:r,getMenu:ee,getMenuByLocation:Me,getMenuItems:pe,getMenuItemById:Ve,getMenuItemsByLocation:ve,getMenuGroups:R,getMenuItemsByGroup:W,getMenuGroupedItems:P,getMenuUngroupedItems:re,getSectionData:u,getSectionSettings:D,getSectionSettingsGroup:A,getSectionSetting:_,getAnySectionData:H,getSectionsInOrder:T,getFinalPageSections:w,getSectionRootData:y,getComponents:K,getContentModel:z,getContentModelItems:ne,getPaginatedContentModelItems:ue,getAppInformationValue:$,appAccentColor:Ke,appPrimaryColor:se,appSecondaryColor:Q}},Zh=()=>{const{request:e}=Nn(),t=d.ref(!1),n=async(i,a=void 0,l=void 0)=>{await s("email",i,a,l)},r=async(i,a=void 0,l=void 0)=>{await s("phone",i.replace(/\s+/g,""),a,l)},s=async(i,a,l=void 0,m=void 0)=>{t.value=!0;const c=await e({url:`newsletter/${i}s`,method:"post",data:i==="email"?{email:a}:{phone:a}});c.failure&&c.error?m&&m(c.error?.response?.data):l&&l(),t.value=!1};return{subscribePhone:r,subscribeEmail:n,isLoading:t}},Kh={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const n=new $h(t.initialProps);t?.router?(t.router.on("navigate",r=>{n.update(r.detail.page.props)}),e.provide(Xi,t.router),e.config.globalProperties.$router=t.router):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(Zi,n),e.config.globalProperties.$props=n,e.provide(Ki,t.config),e.config.globalProperties.$config=t.config,e.provide(Qi,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",qi),e.component("CustomTransition",Ji),e.component("MountedTeleport",Da),e.component("StickyBottom",Ma),e.component("StickyTop",Ra),e.component("ReadMore",Ta),e.component("AsyncImg",Cr),e.component("Image",ka)}};exports.AsyncImg=Cr;exports.CustomTransition=Ji;exports.Image=ka;exports.MountedTeleport=Da;exports.ReadMore=Ta;exports.RootContainer=qi;exports.StickyBottom=Ma;exports.StickyTop=Ra;exports.default=Kh;exports.useApi=Nn;exports.useConfig=Pr;exports.useContent=Jh;exports.useHelper=Wr;exports.useNewsletter=Zh;exports.useProps=Vh;
|