@ukpc-lib/react 0.2.28 → 0.2.30

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.
Files changed (29) hide show
  1. package/dist/components/MultiProvider.d.ts +1 -2
  2. package/dist/components/index.cjs +30 -30
  3. package/dist/components/index.js +2818 -2691
  4. package/dist/index.css +1 -1
  5. package/dist/{index.module-4e7900e2.js → index.module-10fe74a9.js} +1227 -1196
  6. package/dist/{index.module-160774a9.cjs → index.module-5858fff5.cjs} +75 -75
  7. package/dist/share/index.cjs +1 -1
  8. package/dist/share/index.js +16 -16
  9. package/package.json +1 -1
  10. package/web-components-bundle/access-denied/index.cjs +2 -0
  11. package/web-components-bundle/access-denied/index.js +6 -0
  12. package/web-components-bundle/global-menu/index.cjs +1 -2
  13. package/web-components-bundle/global-menu/index.js +2 -2
  14. package/web-components-bundle/global-topbar/index.cjs +1 -1
  15. package/web-components-bundle/global-topbar/index.js +5 -3
  16. package/web-components-bundle/has-permission/index.cjs +1 -1
  17. package/web-components-bundle/has-permission/index.js +6 -4
  18. package/web-components-bundle/index-1db32fa4.cjs +1066 -0
  19. package/web-components-bundle/index-433c2a88.cjs +2 -0
  20. package/web-components-bundle/index-aa69d7f8.js +18718 -0
  21. package/web-components-bundle/index-d3cefb44.cjs +67 -0
  22. package/web-components-bundle/index-e20e66c0.js +10699 -0
  23. package/web-components-bundle/index-f9eb06fc.js +3000 -0
  24. package/web-components-bundle/react-to-web-component-cf652ce8.js +6370 -0
  25. package/web-components-bundle/react-to-web-component-fde3f1ba.cjs +40 -0
  26. package/web-components-bundle/index-a16031d2.js +0 -17066
  27. package/web-components-bundle/index-ea3fddce.cjs +0 -106
  28. package/web-components-bundle/index-ed2b29bc.js +0 -21453
  29. package/web-components-bundle/index-f93fc96f.cjs +0 -1067
@@ -0,0 +1,1066 @@
1
+ "use strict";const T=require("./react-to-web-component-fde3f1ba.cjs"),ce=require("./index-d3cefb44.cjs"),ff=require("./index-433c2a88.cjs");function Bg(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bg(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Zn(){for(var e,t,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bg(e))&&(s&&(s+=" "),s+=t);return s}function bw({primaryColor:e="#009d4f"}){return T.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[T.jsxRuntimeExports.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:e,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),T.jsxRuntimeExports.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),T.jsxRuntimeExports.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),T.jsxRuntimeExports.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const xw=e=>{const{tabs:t}=e,r=s=>{e.setCurrentTab(s.target.id)};return T.jsxRuntimeExports.jsxs("div",{className:"tab-container",children:[T.jsxRuntimeExports.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${ce.color.grey200}`},className:"tab-container__title",children:t.map((s,o)=>T.jsxRuntimeExports.jsx("button",{id:s.id,disabled:e.currentTab===`${s.id}`,onClick:r,className:`tab-title ${e.currentTab===`${s.id}`?"is-active":""}`,children:s.tabTitle},o))}),T.jsxRuntimeExports.jsx("div",{className:"tab-content",children:t.map((s,o)=>T.jsxRuntimeExports.jsx("div",{children:e.currentTab===`${s.id}`&&T.jsxRuntimeExports.jsx("div",{children:s.children})},o))})]})};//! moment.js
2
+ //! version : 2.30.1
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+ var Hg;function ae(){return Hg.apply(null,arguments)}function _w(e){Hg=e}function mr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ds(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xf(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function wn(e){return e===void 0}function pi(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ao(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ug(e,t){var r=[],s,o=e.length;for(s=0;s<o;++s)r.push(t(e[s],s));return r}function ji(e,t){for(var r in t)Ge(t,r)&&(e[r]=t[r]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Fr(e,t,r,s){return hm(e,t,r,s,!0).utc()}function ww(){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 Oe(e){return e._pf==null&&(e._pf=ww()),e._pf}var Mf;Array.prototype.some?Mf=Array.prototype.some:Mf=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function Jf(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=Oe(e),r=Mf.call(t.parsedDateParts,function(o){return o!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Xu(e){var t=Fr(NaN);return e!=null?ji(Oe(t),e):Oe(t).userInvalidated=!0,t}var Hp=ae.momentProperties=[],df=!1;function Qf(e,t){var r,s,o,c=Hp.length;if(wn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),wn(t._i)||(e._i=t._i),wn(t._f)||(e._f=t._f),wn(t._l)||(e._l=t._l),wn(t._strict)||(e._strict=t._strict),wn(t._tzm)||(e._tzm=t._tzm),wn(t._isUTC)||(e._isUTC=t._isUTC),wn(t._offset)||(e._offset=t._offset),wn(t._pf)||(e._pf=Oe(t)),wn(t._locale)||(e._locale=t._locale),c>0)for(r=0;r<c;r++)s=Hp[r],o=t[s],wn(o)||(e[s]=o);return e}function oo(e){Qf(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),df===!1&&(df=!0,ae.updateOffset(this),df=!1)}function yr(e){return e instanceof oo||e!=null&&e._isAMomentObject!=null}function zg(e){ae.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function tr(e,t){var r=!0;return ji(function(){if(ae.deprecationHandler!=null&&ae.deprecationHandler(null,e),r){var s=[],o,c,p,x=arguments.length;for(c=0;c<x;c++){if(o="",typeof arguments[c]=="object"){o+=`
7
+ [`+c+"] ";for(p in arguments[0])Ge(arguments[0],p)&&(o+=p+": "+arguments[0][p]+", ");o=o.slice(0,-2)}else o=arguments[c];s.push(o)}zg(e+`
8
+ Arguments: `+Array.prototype.slice.call(s).join("")+`
9
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Up={};function qg(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),Up[e]||(zg(t),Up[e]=!0)}ae.suppressDeprecationWarnings=!1;ae.deprecationHandler=null;function Yr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Sw(e){var t,r;for(r in e)Ge(e,r)&&(t=e[r],Yr(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 Rf(e,t){var r=ji({},e),s;for(s in t)Ge(t,s)&&(ds(e[s])&&ds(t[s])?(r[s]={},ji(r[s],e[s]),ji(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)Ge(e,s)&&!Ge(t,s)&&ds(e[s])&&(r[s]=ji({},r[s]));return r}function ed(e){e!=null&&this.set(e)}var Af;Object.keys?Af=Object.keys:Af=function(e){var t,r=[];for(t in e)Ge(e,t)&&r.push(t);return r};var kw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Cw(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return Yr(s)?s.call(t,r):s}function $r(e,t,r){var s=""+Math.abs(e),o=t-s.length,c=e>=0;return(c?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+s}var td=/(\[[^\[]*\])|(\\)?([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,Du=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hf={},qs={};function be(e,t,r,s){var o=s;typeof s=="string"&&(o=function(){return this[s]()}),e&&(qs[e]=o),t&&(qs[t[0]]=function(){return $r(o.apply(this,arguments),t[1],t[2])}),r&&(qs[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Dw(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ew(e){var t=e.match(td),r,s;for(r=0,s=t.length;r<s;r++)qs[t[r]]?t[r]=qs[t[r]]:t[r]=Dw(t[r]);return function(o){var c="",p;for(p=0;p<s;p++)c+=Yr(t[p])?t[p].call(o,e):t[p];return c}}function Ou(e,t){return e.isValid()?(t=Vg(t,e.localeData()),hf[t]=hf[t]||Ew(t),hf[t](e)):e.localeData().invalidDate()}function Vg(e,t){var r=5;function s(o){return t.longDateFormat(o)||o}for(Du.lastIndex=0;r>=0&&Du.test(e);)e=e.replace(Du,s),Du.lastIndex=0,r-=1;return e}var Tw={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 Mw(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(td).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Rw="Invalid date";function Aw(){return this._invalidDate}var Ow="%d",Iw=/\d{1,2}/;function Pw(e){return this._ordinal.replace("%d",e)}var Nw={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 Lw(e,t,r,s){var o=this._relativeTime[r];return Yr(o)?o(e,t,r,s):o.replace(/%d/i,e)}function jw(e,t){var r=this._relativeTime[e>0?"future":"past"];return Yr(r)?r(t):r.replace(/%s/i,t)}var zp={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 nr(e){return typeof e=="string"?zp[e]||zp[e.toLowerCase()]:void 0}function nd(e){var t={},r,s;for(s in e)Ge(e,s)&&(r=nr(s),r&&(t[r]=e[s]));return t}var $w={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 Fw(e){var t=[],r;for(r in e)Ge(e,r)&&t.push({unit:r,priority:$w[r]});return t.sort(function(s,o){return s.priority-o.priority}),t}var Gg=/\d/,Nn=/\d\d/,Kg=/\d{3}/,rd=/\d{4}/,Ju=/[+-]?\d{6}/,ct=/\d\d?/,Zg=/\d\d\d\d?/,Xg=/\d\d\d\d\d\d?/,Qu=/\d{1,3}/,id=/\d{1,4}/,el=/[+-]?\d{1,6}/,Qs=/\d+/,tl=/[+-]?\d+/,Yw=/Z|[+-]\d\d:?\d\d/gi,nl=/Z|[+-]\d\d(?::?\d\d)?/gi,Ww=/[+-]?\d+(\.\d{1,3})?/,uo=/[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,ea=/^[1-9]\d?/,sd=/^([1-9]\d|\d)/,Yu;Yu={};function ge(e,t,r){Yu[e]=Yr(t)?t:function(s,o){return s&&r?r:t}}function Bw(e,t){return Ge(Yu,e)?Yu[e](t._strict,t._locale):new RegExp(Hw(e))}function Hw(e){return fi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,o,c){return r||s||o||c}))}function fi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Jn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Be(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Jn(t)),r}var Of={};function st(e,t){var r,s=t,o;for(typeof e=="string"&&(e=[e]),pi(t)&&(s=function(c,p){p[t]=Be(c)}),o=e.length,r=0;r<o;r++)Of[e[r]]=s}function lo(e,t){st(e,function(r,s,o,c){o._w=o._w||{},t(r,o._w,o,c)})}function Uw(e,t,r){t!=null&&Ge(Of,e)&&Of[e](t,r._a,r,e)}function rl(e){return e%4===0&&e%100!==0||e%400===0}var tn=0,li=1,Pr=2,Pt=3,gr=4,ci=5,ls=6,zw=7,qw=8;be("Y",0,0,function(){var e=this.year();return e<=9999?$r(e,4):"+"+e});be(0,["YY",2],0,function(){return this.year()%100});be(0,["YYYY",4],0,"year");be(0,["YYYYY",5],0,"year");be(0,["YYYYYY",6,!0],0,"year");ge("Y",tl);ge("YY",ct,Nn);ge("YYYY",id,rd);ge("YYYYY",el,Ju);ge("YYYYYY",el,Ju);st(["YYYYY","YYYYYY"],tn);st("YYYY",function(e,t){t[tn]=e.length===2?ae.parseTwoDigitYear(e):Be(e)});st("YY",function(e,t){t[tn]=ae.parseTwoDigitYear(e)});st("Y",function(e,t){t[tn]=parseInt(e,10)});function Va(e){return rl(e)?366:365}ae.parseTwoDigitYear=function(e){return Be(e)+(Be(e)>68?1900:2e3)};var Jg=ta("FullYear",!0);function Vw(){return rl(this.year())}function ta(e,t){return function(r){return r!=null?(Qg(this,e,r),ae.updateOffset(this,t),this):Ka(this,e)}}function Ka(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Qg(e,t,r){var s,o,c,p,x;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(o?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(o?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(o?s.setUTCHours(r):s.setHours(r));case"Date":return void(o?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}c=r,p=e.month(),x=e.date(),x=x===29&&p===1&&!rl(c)?28:x,o?s.setUTCFullYear(c,p,x):s.setFullYear(c,p,x)}}function Gw(e){return e=nr(e),Yr(this[e])?this[e]():this}function Kw(e,t){if(typeof e=="object"){e=nd(e);var r=Fw(e),s,o=r.length;for(s=0;s<o;s++)this[r[s].unit](e[r[s].unit])}else if(e=nr(e),Yr(this[e]))return this[e](t);return this}function Zw(e,t){return(e%t+t)%t}var kt;Array.prototype.indexOf?kt=Array.prototype.indexOf:kt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ad(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Zw(t,12);return e+=(t-r)/12,r===1?rl(e)?29:28:31-r%7%2}be("M",["MM",2],"Mo",function(){return this.month()+1});be("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});be("MMMM",0,0,function(e){return this.localeData().months(this,e)});ge("M",ct,ea);ge("MM",ct,Nn);ge("MMM",function(e,t){return t.monthsShortRegex(e)});ge("MMMM",function(e,t){return t.monthsRegex(e)});st(["M","MM"],function(e,t){t[li]=Be(e)-1});st(["MMM","MMMM"],function(e,t,r,s){var o=r._locale.monthsParse(e,s,r._strict);o!=null?t[li]=o:Oe(r).invalidMonth=e});var Xw="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),em="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tm=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jw=uo,Qw=uo;function eS(e,t){return e?mr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tm).test(t)?"format":"standalone"][e.month()]:mr(this._months)?this._months:this._months.standalone}function tS(e,t){return e?mr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tm.test(t)?"format":"standalone"][e.month()]:mr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function nS(e,t,r){var s,o,c,p=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)c=Fr([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(c,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(c,"").toLocaleLowerCase();return r?t==="MMM"?(o=kt.call(this._shortMonthsParse,p),o!==-1?o:null):(o=kt.call(this._longMonthsParse,p),o!==-1?o:null):t==="MMM"?(o=kt.call(this._shortMonthsParse,p),o!==-1?o:(o=kt.call(this._longMonthsParse,p),o!==-1?o:null)):(o=kt.call(this._longMonthsParse,p),o!==-1?o:(o=kt.call(this._shortMonthsParse,p),o!==-1?o:null))}function rS(e,t,r){var s,o,c;if(this._monthsParseExact)return nS.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(o=Fr([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(c="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[s]=new RegExp(c.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function nm(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Be(t);else if(t=e.localeData().monthsParse(t),!pi(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,ad(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function rm(e){return e!=null?(nm(this,e),ae.updateOffset(this,!0),this):Ka(this,"Month")}function iS(){return ad(this.year(),this.month())}function sS(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||im.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=Jw),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function aS(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||im.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=Qw),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function im(){function e(w,D){return D.length-w.length}var t=[],r=[],s=[],o,c,p,x;for(o=0;o<12;o++)c=Fr([2e3,o]),p=fi(this.monthsShort(c,"")),x=fi(this.months(c,"")),t.push(p),r.push(x),s.push(x),s.push(p);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function oS(e,t,r,s,o,c,p){var x;return e<100&&e>=0?(x=new Date(e+400,t,r,s,o,c,p),isFinite(x.getFullYear())&&x.setFullYear(e)):x=new Date(e,t,r,s,o,c,p),x}function Za(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 Wu(e,t,r){var s=7+t-r,o=(7+Za(e,0,s).getUTCDay()-t)%7;return-o+s-1}function sm(e,t,r,s,o){var c=(7+r-s)%7,p=Wu(e,s,o),x=1+7*(t-1)+c+p,w,D;return x<=0?(w=e-1,D=Va(w)+x):x>Va(e)?(w=e+1,D=x-Va(e)):(w=e,D=x),{year:w,dayOfYear:D}}function Xa(e,t,r){var s=Wu(e.year(),t,r),o=Math.floor((e.dayOfYear()-s-1)/7)+1,c,p;return o<1?(p=e.year()-1,c=o+di(p,t,r)):o>di(e.year(),t,r)?(c=o-di(e.year(),t,r),p=e.year()+1):(p=e.year(),c=o),{week:c,year:p}}function di(e,t,r){var s=Wu(e,t,r),o=Wu(e+1,t,r);return(Va(e)-s+o)/7}be("w",["ww",2],"wo","week");be("W",["WW",2],"Wo","isoWeek");ge("w",ct,ea);ge("ww",ct,Nn);ge("W",ct,ea);ge("WW",ct,Nn);lo(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=Be(e)});function uS(e){return Xa(e,this._week.dow,this._week.doy).week}var lS={dow:0,doy:6};function cS(){return this._week.dow}function fS(){return this._week.doy}function dS(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function hS(e){var t=Xa(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}be("d",0,"do","day");be("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});be("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});be("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});be("e",0,0,"weekday");be("E",0,0,"isoWeekday");ge("d",ct);ge("e",ct);ge("E",ct);ge("dd",function(e,t){return t.weekdaysMinRegex(e)});ge("ddd",function(e,t){return t.weekdaysShortRegex(e)});ge("dddd",function(e,t){return t.weekdaysRegex(e)});lo(["dd","ddd","dddd"],function(e,t,r,s){var o=r._locale.weekdaysParse(e,s,r._strict);o!=null?t.d=o:Oe(r).invalidWeekday=e});lo(["d","e","E"],function(e,t,r,s){t[s]=Be(e)});function pS(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function gS(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function od(e,t){return e.slice(t,7).concat(e.slice(0,t))}var mS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),am="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vS=uo,bS=uo,xS=uo;function _S(e,t){var r=mr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?od(r,this._week.dow):e?r[e.day()]:r}function wS(e){return e===!0?od(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function SS(e){return e===!0?od(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function kS(e,t,r){var s,o,c,p=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)c=Fr([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(c,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(c,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(c,"").toLocaleLowerCase();return r?t==="dddd"?(o=kt.call(this._weekdaysParse,p),o!==-1?o:null):t==="ddd"?(o=kt.call(this._shortWeekdaysParse,p),o!==-1?o:null):(o=kt.call(this._minWeekdaysParse,p),o!==-1?o:null):t==="dddd"?(o=kt.call(this._weekdaysParse,p),o!==-1||(o=kt.call(this._shortWeekdaysParse,p),o!==-1)?o:(o=kt.call(this._minWeekdaysParse,p),o!==-1?o:null)):t==="ddd"?(o=kt.call(this._shortWeekdaysParse,p),o!==-1||(o=kt.call(this._weekdaysParse,p),o!==-1)?o:(o=kt.call(this._minWeekdaysParse,p),o!==-1?o:null)):(o=kt.call(this._minWeekdaysParse,p),o!==-1||(o=kt.call(this._weekdaysParse,p),o!==-1)?o:(o=kt.call(this._shortWeekdaysParse,p),o!==-1?o:null))}function CS(e,t,r){var s,o,c;if(this._weekdaysParseExact)return kS.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(o=Fr([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(c="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[s]=new RegExp(c.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function DS(e){if(!this.isValid())return e!=null?this:NaN;var t=Ka(this,"Day");return e!=null?(e=pS(e,this.localeData()),this.add(e-t,"d")):t}function ES(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 TS(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=gS(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function MS(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||ud.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=vS),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function RS(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||ud.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bS),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function AS(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||ud.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xS),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ud(){function e(A,F){return F.length-A.length}var t=[],r=[],s=[],o=[],c,p,x,w,D;for(c=0;c<7;c++)p=Fr([2e3,1]).day(c),x=fi(this.weekdaysMin(p,"")),w=fi(this.weekdaysShort(p,"")),D=fi(this.weekdays(p,"")),t.push(x),r.push(w),s.push(D),o.push(x),o.push(w),o.push(D);t.sort(e),r.sort(e),s.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ld(){return this.hours()%12||12}function OS(){return this.hours()||24}be("H",["HH",2],0,"hour");be("h",["hh",2],0,ld);be("k",["kk",2],0,OS);be("hmm",0,0,function(){return""+ld.apply(this)+$r(this.minutes(),2)});be("hmmss",0,0,function(){return""+ld.apply(this)+$r(this.minutes(),2)+$r(this.seconds(),2)});be("Hmm",0,0,function(){return""+this.hours()+$r(this.minutes(),2)});be("Hmmss",0,0,function(){return""+this.hours()+$r(this.minutes(),2)+$r(this.seconds(),2)});function om(e,t){be(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}om("a",!0);om("A",!1);function um(e,t){return t._meridiemParse}ge("a",um);ge("A",um);ge("H",ct,sd);ge("h",ct,ea);ge("k",ct,ea);ge("HH",ct,Nn);ge("hh",ct,Nn);ge("kk",ct,Nn);ge("hmm",Zg);ge("hmmss",Xg);ge("Hmm",Zg);ge("Hmmss",Xg);st(["H","HH"],Pt);st(["k","kk"],function(e,t,r){var s=Be(e);t[Pt]=s===24?0:s});st(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});st(["h","hh"],function(e,t,r){t[Pt]=Be(e),Oe(r).bigHour=!0});st("hmm",function(e,t,r){var s=e.length-2;t[Pt]=Be(e.substr(0,s)),t[gr]=Be(e.substr(s)),Oe(r).bigHour=!0});st("hmmss",function(e,t,r){var s=e.length-4,o=e.length-2;t[Pt]=Be(e.substr(0,s)),t[gr]=Be(e.substr(s,2)),t[ci]=Be(e.substr(o)),Oe(r).bigHour=!0});st("Hmm",function(e,t,r){var s=e.length-2;t[Pt]=Be(e.substr(0,s)),t[gr]=Be(e.substr(s))});st("Hmmss",function(e,t,r){var s=e.length-4,o=e.length-2;t[Pt]=Be(e.substr(0,s)),t[gr]=Be(e.substr(s,2)),t[ci]=Be(e.substr(o))});function IS(e){return(e+"").toLowerCase().charAt(0)==="p"}var PS=/[ap]\.?m?\.?/i,NS=ta("Hours",!0);function LS(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var lm={calendar:kw,longDateFormat:Tw,invalidDate:Rw,ordinal:Ow,dayOfMonthOrdinalParse:Iw,relativeTime:Nw,months:Xw,monthsShort:em,week:lS,weekdays:mS,weekdaysMin:yS,weekdaysShort:am,meridiemParse:PS},ht={},Ha={},Ja;function jS(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function qp(e){return e&&e.toLowerCase().replace("_","-")}function $S(e){for(var t=0,r,s,o,c;t<e.length;){for(c=qp(e[t]).split("-"),r=c.length,s=qp(e[t+1]),s=s?s.split("-"):null;r>0;){if(o=il(c.slice(0,r).join("-")),o)return o;if(s&&s.length>=r&&jS(c,s)>=r-1)break;r--}t++}return Ja}function FS(e){return!!(e&&e.match("^[^/\\\\]*$"))}function il(e){var t=null,r;if(ht[e]===void 0&&typeof module<"u"&&module&&module.exports&&FS(e))try{t=Ja._abbr,r=require,r("./locale/"+e),Fi(t)}catch{ht[e]=null}return ht[e]}function Fi(e,t){var r;return e&&(wn(t)?r=mi(e):r=cd(e,t),r?Ja=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ja._abbr}function cd(e,t){if(t!==null){var r,s=lm;if(t.abbr=e,ht[e]!=null)qg("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."),s=ht[e]._config;else if(t.parentLocale!=null)if(ht[t.parentLocale]!=null)s=ht[t.parentLocale]._config;else if(r=il(t.parentLocale),r!=null)s=r._config;else return Ha[t.parentLocale]||(Ha[t.parentLocale]=[]),Ha[t.parentLocale].push({name:e,config:t}),null;return ht[e]=new ed(Rf(s,t)),Ha[e]&&Ha[e].forEach(function(o){cd(o.name,o.config)}),Fi(e),ht[e]}else return delete ht[e],null}function YS(e,t){if(t!=null){var r,s,o=lm;ht[e]!=null&&ht[e].parentLocale!=null?ht[e].set(Rf(ht[e]._config,t)):(s=il(e),s!=null&&(o=s._config),t=Rf(o,t),s==null&&(t.abbr=e),r=new ed(t),r.parentLocale=ht[e],ht[e]=r),Fi(e)}else ht[e]!=null&&(ht[e].parentLocale!=null?(ht[e]=ht[e].parentLocale,e===Fi()&&Fi(e)):ht[e]!=null&&delete ht[e]);return ht[e]}function mi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ja;if(!mr(e)){if(t=il(e),t)return t;e=[e]}return $S(e)}function WS(){return Af(ht)}function fd(e){var t,r=e._a;return r&&Oe(e).overflow===-2&&(t=r[li]<0||r[li]>11?li:r[Pr]<1||r[Pr]>ad(r[tn],r[li])?Pr:r[Pt]<0||r[Pt]>24||r[Pt]===24&&(r[gr]!==0||r[ci]!==0||r[ls]!==0)?Pt:r[gr]<0||r[gr]>59?gr:r[ci]<0||r[ci]>59?ci:r[ls]<0||r[ls]>999?ls:-1,Oe(e)._overflowDayOfYear&&(t<tn||t>Pr)&&(t=Pr),Oe(e)._overflowWeeks&&t===-1&&(t=zw),Oe(e)._overflowWeekday&&t===-1&&(t=qw),Oe(e).overflow=t),e}var BS=/^\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)?)?$/,HS=/^\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)?)?$/,US=/Z|[+-]\d\d(?::?\d\d)?/,Eu=[["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]],pf=[["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/]],zS=/^\/?Date\((-?\d+)/i,qS=/^(?:(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}))$/,VS={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 cm(e){var t,r,s=e._i,o=BS.exec(s)||HS.exec(s),c,p,x,w,D=Eu.length,A=pf.length;if(o){for(Oe(e).iso=!0,t=0,r=D;t<r;t++)if(Eu[t][1].exec(o[1])){p=Eu[t][0],c=Eu[t][2]!==!1;break}if(p==null){e._isValid=!1;return}if(o[3]){for(t=0,r=A;t<r;t++)if(pf[t][1].exec(o[3])){x=(o[2]||" ")+pf[t][0];break}if(x==null){e._isValid=!1;return}}if(!c&&x!=null){e._isValid=!1;return}if(o[4])if(US.exec(o[4]))w="Z";else{e._isValid=!1;return}e._f=p+(x||"")+(w||""),hd(e)}else e._isValid=!1}function GS(e,t,r,s,o,c){var p=[KS(e),em.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(o,10)];return c&&p.push(parseInt(c,10)),p}function KS(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ZS(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function XS(e,t,r){if(e){var s=am.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(s!==o)return Oe(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function JS(e,t,r){if(e)return VS[e];if(t)return 0;var s=parseInt(r,10),o=s%100,c=(s-o)/100;return c*60+o}function fm(e){var t=qS.exec(ZS(e._i)),r;if(t){if(r=GS(t[4],t[3],t[2],t[5],t[6],t[7]),!XS(t[1],r,e))return;e._a=r,e._tzm=JS(t[8],t[9],t[10]),e._d=Za.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Oe(e).rfc2822=!0}else e._isValid=!1}function QS(e){var t=zS.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cm(e),e._isValid===!1)delete e._isValid;else return;if(fm(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ae.createFromInputFallback(e)}ae.createFromInputFallback=tr("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 Us(e,t,r){return e??t??r}function ek(e){var t=new Date(ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function dd(e){var t,r,s=[],o,c,p;if(!e._d){for(o=ek(e),e._w&&e._a[Pr]==null&&e._a[li]==null&&tk(e),e._dayOfYear!=null&&(p=Us(e._a[tn],o[tn]),(e._dayOfYear>Va(p)||e._dayOfYear===0)&&(Oe(e)._overflowDayOfYear=!0),r=Za(p,0,e._dayOfYear),e._a[li]=r.getUTCMonth(),e._a[Pr]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Pt]===24&&e._a[gr]===0&&e._a[ci]===0&&e._a[ls]===0&&(e._nextDay=!0,e._a[Pt]=0),e._d=(e._useUTC?Za:oS).apply(null,s),c=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Pt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==c&&(Oe(e).weekdayMismatch=!0)}}function tk(e){var t,r,s,o,c,p,x,w,D;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(c=1,p=4,r=Us(t.GG,e._a[tn],Xa(lt(),1,4).year),s=Us(t.W,1),o=Us(t.E,1),(o<1||o>7)&&(w=!0)):(c=e._locale._week.dow,p=e._locale._week.doy,D=Xa(lt(),c,p),r=Us(t.gg,e._a[tn],D.year),s=Us(t.w,D.week),t.d!=null?(o=t.d,(o<0||o>6)&&(w=!0)):t.e!=null?(o=t.e+c,(t.e<0||t.e>6)&&(w=!0)):o=c),s<1||s>di(r,c,p)?Oe(e)._overflowWeeks=!0:w!=null?Oe(e)._overflowWeekday=!0:(x=sm(r,s,o,c,p),e._a[tn]=x.year,e._dayOfYear=x.dayOfYear)}ae.ISO_8601=function(){};ae.RFC_2822=function(){};function hd(e){if(e._f===ae.ISO_8601){cm(e);return}if(e._f===ae.RFC_2822){fm(e);return}e._a=[],Oe(e).empty=!0;var t=""+e._i,r,s,o,c,p,x=t.length,w=0,D,A;for(o=Vg(e._f,e._locale).match(td)||[],A=o.length,r=0;r<A;r++)c=o[r],s=(t.match(Bw(c,e))||[])[0],s&&(p=t.substr(0,t.indexOf(s)),p.length>0&&Oe(e).unusedInput.push(p),t=t.slice(t.indexOf(s)+s.length),w+=s.length),qs[c]?(s?Oe(e).empty=!1:Oe(e).unusedTokens.push(c),Uw(c,s,e)):e._strict&&!s&&Oe(e).unusedTokens.push(c);Oe(e).charsLeftOver=x-w,t.length>0&&Oe(e).unusedInput.push(t),e._a[Pt]<=12&&Oe(e).bigHour===!0&&e._a[Pt]>0&&(Oe(e).bigHour=void 0),Oe(e).parsedDateParts=e._a.slice(0),Oe(e).meridiem=e._meridiem,e._a[Pt]=nk(e._locale,e._a[Pt],e._meridiem),D=Oe(e).era,D!==null&&(e._a[tn]=e._locale.erasConvertYear(D,e._a[tn])),dd(e),fd(e)}function nk(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function rk(e){var t,r,s,o,c,p,x=!1,w=e._f.length;if(w===0){Oe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<w;o++)c=0,p=!1,t=Qf({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],hd(t),Jf(t)&&(p=!0),c+=Oe(t).charsLeftOver,c+=Oe(t).unusedTokens.length*10,Oe(t).score=c,x?c<s&&(s=c,r=t):(s==null||c<s||p)&&(s=c,r=t,p&&(x=!0));ji(e,r||t)}function ik(e){if(!e._d){var t=nd(e._i),r=t.day===void 0?t.date:t.day;e._a=Ug([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),dd(e)}}function sk(e){var t=new oo(fd(dm(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dm(e){var t=e._i,r=e._f;return e._locale=e._locale||mi(e._l),t===null||r===void 0&&t===""?Xu({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),yr(t)?new oo(fd(t)):(ao(t)?e._d=t:mr(r)?rk(e):r?hd(e):ak(e),Jf(e)||(e._d=null),e))}function ak(e){var t=e._i;wn(t)?e._d=new Date(ae.now()):ao(t)?e._d=new Date(t.valueOf()):typeof t=="string"?QS(e):mr(t)?(e._a=Ug(t.slice(0),function(r){return parseInt(r,10)}),dd(e)):ds(t)?ik(e):pi(t)?e._d=new Date(t):ae.createFromInputFallback(e)}function hm(e,t,r,s,o){var c={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(ds(e)&&Xf(e)||mr(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=r,c._i=e,c._f=t,c._strict=s,sk(c)}function lt(e,t,r,s){return hm(e,t,r,s,!1)}var ok=tr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=lt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Xu()}),uk=tr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=lt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Xu()});function pm(e,t){var r,s;if(t.length===1&&mr(t[0])&&(t=t[0]),!t.length)return lt();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function lk(){var e=[].slice.call(arguments,0);return pm("isBefore",e)}function ck(){var e=[].slice.call(arguments,0);return pm("isAfter",e)}var fk=function(){return Date.now?Date.now():+new Date},Ua=["year","quarter","month","week","day","hour","minute","second","millisecond"];function dk(e){var t,r=!1,s,o=Ua.length;for(t in e)if(Ge(e,t)&&!(kt.call(Ua,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<o;++s)if(e[Ua[s]]){if(r)return!1;parseFloat(e[Ua[s]])!==Be(e[Ua[s]])&&(r=!0)}return!0}function hk(){return this._isValid}function pk(){return vr(NaN)}function sl(e){var t=nd(e),r=t.year||0,s=t.quarter||0,o=t.month||0,c=t.week||t.isoWeek||0,p=t.day||0,x=t.hour||0,w=t.minute||0,D=t.second||0,A=t.millisecond||0;this._isValid=dk(t),this._milliseconds=+A+D*1e3+w*6e4+x*1e3*60*60,this._days=+p+c*7,this._months=+o+s*3+r*12,this._data={},this._locale=mi(),this._bubble()}function Iu(e){return e instanceof sl}function If(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function gk(e,t,r){var s=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),c=0,p;for(p=0;p<s;p++)(r&&e[p]!==t[p]||!r&&Be(e[p])!==Be(t[p]))&&c++;return c+o}function gm(e,t){be(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+$r(~~(r/60),2)+t+$r(~~r%60,2)})}gm("Z",":");gm("ZZ","");ge("Z",nl);ge("ZZ",nl);st(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=pd(nl,e)});var mk=/([\+\-]|\d\d)/gi;function pd(e,t){var r=(t||"").match(e),s,o,c;return r===null?null:(s=r[r.length-1]||[],o=(s+"").match(mk)||["-",0,0],c=+(o[1]*60)+Be(o[2]),c===0?0:o[0]==="+"?c:-c)}function gd(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(yr(e)||ao(e)?e.valueOf():lt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),ae.updateOffset(r,!1),r):lt(e).local()}function Pf(e){return-Math.round(e._d.getTimezoneOffset())}ae.updateOffset=function(){};function yk(e,t,r){var s=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=pd(nl,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(o=Pf(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),s!==e&&(!t||this._changeInProgress?vm(this,vr(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Pf(this)}function vk(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bk(e){return this.utcOffset(0,e)}function xk(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pf(this),"m")),this}function _k(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=pd(Yw,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wk(e){return this.isValid()?(e=e?lt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Sk(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kk(){if(!wn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Qf(e,this),e=dm(e),e._a?(t=e._isUTC?Fr(e._a):lt(e._a),this._isDSTShifted=this.isValid()&&gk(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ck(){return this.isValid()?!this._isUTC:!1}function Dk(){return this.isValid()?this._isUTC:!1}function mm(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ek=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tk=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vr(e,t){var r=e,s=null,o,c,p;return Iu(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:pi(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Ek.exec(e))?(o=s[1]==="-"?-1:1,r={y:0,d:Be(s[Pr])*o,h:Be(s[Pt])*o,m:Be(s[gr])*o,s:Be(s[ci])*o,ms:Be(If(s[ls]*1e3))*o}):(s=Tk.exec(e))?(o=s[1]==="-"?-1:1,r={y:as(s[2],o),M:as(s[3],o),w:as(s[4],o),d:as(s[5],o),h:as(s[6],o),m:as(s[7],o),s:as(s[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(p=Mk(lt(r.from),lt(r.to)),r={},r.ms=p.milliseconds,r.M=p.months),c=new sl(r),Iu(e)&&Ge(e,"_locale")&&(c._locale=e._locale),Iu(e)&&Ge(e,"_isValid")&&(c._isValid=e._isValid),c}vr.fn=sl.prototype;vr.invalid=pk;function as(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Vp(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 Mk(e,t){var r;return e.isValid()&&t.isValid()?(t=gd(t,e),e.isBefore(t)?r=Vp(e,t):(r=Vp(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function ym(e,t){return function(r,s){var o,c;return s!==null&&!isNaN(+s)&&(qg(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."),c=r,r=s,s=c),o=vr(r,s),vm(this,o,e),this}}function vm(e,t,r,s){var o=t._milliseconds,c=If(t._days),p=If(t._months);e.isValid()&&(s=s??!0,p&&nm(e,Ka(e,"Month")+p*r),c&&Qg(e,"Date",Ka(e,"Date")+c*r),o&&e._d.setTime(e._d.valueOf()+o*r),s&&ae.updateOffset(e,c||p))}var Rk=ym(1,"add"),Ak=ym(-1,"subtract");function bm(e){return typeof e=="string"||e instanceof String}function Ok(e){return yr(e)||ao(e)||bm(e)||pi(e)||Pk(e)||Ik(e)||e===null||e===void 0}function Ik(e){var t=ds(e)&&!Xf(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,c,p=s.length;for(o=0;o<p;o+=1)c=s[o],r=r||Ge(e,c);return t&&r}function Pk(e){var t=mr(e),r=!1;return t&&(r=e.filter(function(s){return!pi(s)&&bm(e)}).length===0),t&&r}function Nk(e){var t=ds(e)&&!Xf(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,c;for(o=0;o<s.length;o+=1)c=s[o],r=r||Ge(e,c);return t&&r}function Lk(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 jk(e,t){arguments.length===1&&(arguments[0]?Ok(arguments[0])?(e=arguments[0],t=void 0):Nk(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||lt(),s=gd(r,this).startOf("day"),o=ae.calendarFormat(this,s)||"sameElse",c=t&&(Yr(t[o])?t[o].call(this,r):t[o]);return this.format(c||this.localeData().calendar(o,this,lt(r)))}function $k(){return new oo(this)}function Fk(e,t){var r=yr(e)?e:lt(e);return this.isValid()&&r.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Yk(e,t){var r=yr(e)?e:lt(e);return this.isValid()&&r.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Wk(e,t,r,s){var o=yr(e)?e:lt(e),c=yr(t)?t:lt(t);return this.isValid()&&o.isValid()&&c.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(o,r):!this.isBefore(o,r))&&(s[1]===")"?this.isBefore(c,r):!this.isAfter(c,r))):!1}function Bk(e,t){var r=yr(e)?e:lt(e),s;return this.isValid()&&r.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Hk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Uk(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function zk(e,t,r){var s,o,c;if(!this.isValid())return NaN;if(s=gd(e,this),!s.isValid())return NaN;switch(o=(s.utcOffset()-this.utcOffset())*6e4,t=nr(t),t){case"year":c=Pu(this,s)/12;break;case"month":c=Pu(this,s);break;case"quarter":c=Pu(this,s)/3;break;case"second":c=(this-s)/1e3;break;case"minute":c=(this-s)/6e4;break;case"hour":c=(this-s)/36e5;break;case"day":c=(this-s-o)/864e5;break;case"week":c=(this-s-o)/6048e5;break;default:c=this-s}return r?c:Jn(c)}function Pu(e,t){if(e.date()<t.date())return-Pu(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),o,c;return t-s<0?(o=e.clone().add(r-1,"months"),c=(t-s)/(s-o)):(o=e.clone().add(r+1,"months"),c=(t-s)/(o-s)),-(r+c)||0}ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Vk(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ou(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Yr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ou(r,"Z")):Ou(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Gk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,o,c;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",c=t+'[")]',this.format(r+s+o+c)}function Kk(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=Ou(this,e);return this.localeData().postformat(t)}function Zk(e,t){return this.isValid()&&(yr(e)&&e.isValid()||lt(e).isValid())?vr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xk(e){return this.from(lt(),e)}function Jk(e,t){return this.isValid()&&(yr(e)&&e.isValid()||lt(e).isValid())?vr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qk(e){return this.to(lt(),e)}function xm(e){var t;return e===void 0?this._locale._abbr:(t=mi(e),t!=null&&(this._locale=t),this)}var _m=tr("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 wm(){return this._locale}var Bu=1e3,Vs=60*Bu,Hu=60*Vs,Sm=(365*400+97)*24*Hu;function Gs(e,t){return(e%t+t)%t}function km(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Sm:new Date(e,t,r).valueOf()}function Cm(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Sm:Date.UTC(e,t,r)}function eC(e){var t,r;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Cm:km,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-=Gs(t+(this._isUTC?0:this.utcOffset()*Vs),Hu);break;case"minute":t=this._d.valueOf(),t-=Gs(t,Vs);break;case"second":t=this._d.valueOf(),t-=Gs(t,Bu);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function tC(e){var t,r;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Cm:km,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+=Hu-Gs(t+(this._isUTC?0:this.utcOffset()*Vs),Hu)-1;break;case"minute":t=this._d.valueOf(),t+=Vs-Gs(t,Vs)-1;break;case"second":t=this._d.valueOf(),t+=Bu-Gs(t,Bu)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function nC(){return this._d.valueOf()-(this._offset||0)*6e4}function rC(){return Math.floor(this.valueOf()/1e3)}function iC(){return new Date(this.valueOf())}function sC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function aC(){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 oC(){return this.isValid()?this.toISOString():null}function uC(){return Jf(this)}function lC(){return ji({},Oe(this))}function cC(){return Oe(this).overflow}function fC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}be("N",0,0,"eraAbbr");be("NN",0,0,"eraAbbr");be("NNN",0,0,"eraAbbr");be("NNNN",0,0,"eraName");be("NNNNN",0,0,"eraNarrow");be("y",["y",1],"yo","eraYear");be("y",["yy",2],0,"eraYear");be("y",["yyy",3],0,"eraYear");be("y",["yyyy",4],0,"eraYear");ge("N",md);ge("NN",md);ge("NNN",md);ge("NNNN",wC);ge("NNNNN",SC);st(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var o=r._locale.erasParse(e,s,r._strict);o?Oe(r).era=o:Oe(r).invalidEra=e});ge("y",Qs);ge("yy",Qs);ge("yyy",Qs);ge("yyyy",Qs);ge("yo",kC);st(["y","yy","yyy","yyyy"],tn);st(["yo"],function(e,t,r,s){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[tn]=r._locale.eraYearOrdinalParse(e,o):t[tn]=parseInt(e,10)});function dC(e,t){var r,s,o,c=this._eras||mi("en")._eras;for(r=0,s=c.length;r<s;++r){switch(typeof c[r].since){case"string":o=ae(c[r].since).startOf("day"),c[r].since=o.valueOf();break}switch(typeof c[r].until){case"undefined":c[r].until=1/0;break;case"string":o=ae(c[r].until).startOf("day").valueOf(),c[r].until=o.valueOf();break}}return c}function hC(e,t,r){var s,o,c=this.eras(),p,x,w;for(e=e.toUpperCase(),s=0,o=c.length;s<o;++s)if(p=c[s].name.toUpperCase(),x=c[s].abbr.toUpperCase(),w=c[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(x===e)return c[s];break;case"NNNN":if(p===e)return c[s];break;case"NNNNN":if(w===e)return c[s];break}else if([p,x,w].indexOf(e)>=0)return c[s]}function pC(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*r}function gC(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function mC(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function yC(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function vC(){var e,t,r,s,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=o[e].since<=o[e].until?1:-1,s=this.clone().startOf("day").valueOf(),o[e].since<=s&&s<=o[e].until||o[e].until<=s&&s<=o[e].since)return(this.year()-ae(o[e].since).year())*r+o[e].offset;return this.year()}function bC(e){return Ge(this,"_erasNameRegex")||yd.call(this),e?this._erasNameRegex:this._erasRegex}function xC(e){return Ge(this,"_erasAbbrRegex")||yd.call(this),e?this._erasAbbrRegex:this._erasRegex}function _C(e){return Ge(this,"_erasNarrowRegex")||yd.call(this),e?this._erasNarrowRegex:this._erasRegex}function md(e,t){return t.erasAbbrRegex(e)}function wC(e,t){return t.erasNameRegex(e)}function SC(e,t){return t.erasNarrowRegex(e)}function kC(e,t){return t._eraYearOrdinalRegex||Qs}function yd(){var e=[],t=[],r=[],s=[],o,c,p,x,w,D=this.eras();for(o=0,c=D.length;o<c;++o)p=fi(D[o].name),x=fi(D[o].abbr),w=fi(D[o].narrow),t.push(p),e.push(x),r.push(w),s.push(p),s.push(x),s.push(w);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}be(0,["gg",2],0,function(){return this.weekYear()%100});be(0,["GG",2],0,function(){return this.isoWeekYear()%100});function al(e,t){be(0,[e,e.length],0,t)}al("gggg","weekYear");al("ggggg","weekYear");al("GGGG","isoWeekYear");al("GGGGG","isoWeekYear");ge("G",tl);ge("g",tl);ge("GG",ct,Nn);ge("gg",ct,Nn);ge("GGGG",id,rd);ge("gggg",id,rd);ge("GGGGG",el,Ju);ge("ggggg",el,Ju);lo(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=Be(e)});lo(["gg","GG"],function(e,t,r,s){t[s]=ae.parseTwoDigitYear(e)});function CC(e){return Dm.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function DC(e){return Dm.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function EC(){return di(this.year(),1,4)}function TC(){return di(this.isoWeekYear(),1,4)}function MC(){var e=this.localeData()._week;return di(this.year(),e.dow,e.doy)}function RC(){var e=this.localeData()._week;return di(this.weekYear(),e.dow,e.doy)}function Dm(e,t,r,s,o){var c;return e==null?Xa(this,s,o).year:(c=di(e,s,o),t>c&&(t=c),AC.call(this,e,t,r,s,o))}function AC(e,t,r,s,o){var c=sm(e,t,r,s,o),p=Za(c.year,0,c.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}be("Q",0,"Qo","quarter");ge("Q",Gg);st("Q",function(e,t){t[li]=(Be(e)-1)*3});function OC(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}be("D",["DD",2],"Do","date");ge("D",ct,ea);ge("DD",ct,Nn);ge("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});st(["D","DD"],Pr);st("Do",function(e,t){t[Pr]=Be(e.match(ct)[0])});var Em=ta("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear");ge("DDD",Qu);ge("DDDD",Kg);st(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Be(e)});function IC(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}be("m",["mm",2],0,"minute");ge("m",ct,sd);ge("mm",ct,Nn);st(["m","mm"],gr);var PC=ta("Minutes",!1);be("s",["ss",2],0,"second");ge("s",ct,sd);ge("ss",ct,Nn);st(["s","ss"],ci);var NC=ta("Seconds",!1);be("S",0,0,function(){return~~(this.millisecond()/100)});be(0,["SS",2],0,function(){return~~(this.millisecond()/10)});be(0,["SSS",3],0,"millisecond");be(0,["SSSS",4],0,function(){return this.millisecond()*10});be(0,["SSSSS",5],0,function(){return this.millisecond()*100});be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ge("S",Qu,Gg);ge("SS",Qu,Nn);ge("SSS",Qu,Kg);var $i,Tm;for($i="SSSS";$i.length<=9;$i+="S")ge($i,Qs);function LC(e,t){t[ls]=Be(("0."+e)*1e3)}for($i="S";$i.length<=9;$i+="S")st($i,LC);Tm=ta("Milliseconds",!1);be("z",0,0,"zoneAbbr");be("zz",0,0,"zoneName");function jC(){return this._isUTC?"UTC":""}function $C(){return this._isUTC?"Coordinated Universal Time":""}var ne=oo.prototype;ne.add=Rk;ne.calendar=jk;ne.clone=$k;ne.diff=zk;ne.endOf=tC;ne.format=Kk;ne.from=Zk;ne.fromNow=Xk;ne.to=Jk;ne.toNow=Qk;ne.get=Gw;ne.invalidAt=cC;ne.isAfter=Fk;ne.isBefore=Yk;ne.isBetween=Wk;ne.isSame=Bk;ne.isSameOrAfter=Hk;ne.isSameOrBefore=Uk;ne.isValid=uC;ne.lang=_m;ne.locale=xm;ne.localeData=wm;ne.max=uk;ne.min=ok;ne.parsingFlags=lC;ne.set=Kw;ne.startOf=eC;ne.subtract=Ak;ne.toArray=sC;ne.toObject=aC;ne.toDate=iC;ne.toISOString=Vk;ne.inspect=Gk;typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ne.toJSON=oC;ne.toString=qk;ne.unix=rC;ne.valueOf=nC;ne.creationData=fC;ne.eraName=gC;ne.eraNarrow=mC;ne.eraAbbr=yC;ne.eraYear=vC;ne.year=Jg;ne.isLeapYear=Vw;ne.weekYear=CC;ne.isoWeekYear=DC;ne.quarter=ne.quarters=OC;ne.month=rm;ne.daysInMonth=iS;ne.week=ne.weeks=dS;ne.isoWeek=ne.isoWeeks=hS;ne.weeksInYear=MC;ne.weeksInWeekYear=RC;ne.isoWeeksInYear=EC;ne.isoWeeksInISOWeekYear=TC;ne.date=Em;ne.day=ne.days=DS;ne.weekday=ES;ne.isoWeekday=TS;ne.dayOfYear=IC;ne.hour=ne.hours=NS;ne.minute=ne.minutes=PC;ne.second=ne.seconds=NC;ne.millisecond=ne.milliseconds=Tm;ne.utcOffset=yk;ne.utc=bk;ne.local=xk;ne.parseZone=_k;ne.hasAlignedHourOffset=wk;ne.isDST=Sk;ne.isLocal=Ck;ne.isUtcOffset=Dk;ne.isUtc=mm;ne.isUTC=mm;ne.zoneAbbr=jC;ne.zoneName=$C;ne.dates=tr("dates accessor is deprecated. Use date instead.",Em);ne.months=tr("months accessor is deprecated. Use month instead",rm);ne.years=tr("years accessor is deprecated. Use year instead",Jg);ne.zone=tr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vk);ne.isDSTShifted=tr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kk);function FC(e){return lt(e*1e3)}function YC(){return lt.apply(null,arguments).parseZone()}function Mm(e){return e}var Ke=ed.prototype;Ke.calendar=Cw;Ke.longDateFormat=Mw;Ke.invalidDate=Aw;Ke.ordinal=Pw;Ke.preparse=Mm;Ke.postformat=Mm;Ke.relativeTime=Lw;Ke.pastFuture=jw;Ke.set=Sw;Ke.eras=dC;Ke.erasParse=hC;Ke.erasConvertYear=pC;Ke.erasAbbrRegex=xC;Ke.erasNameRegex=bC;Ke.erasNarrowRegex=_C;Ke.months=eS;Ke.monthsShort=tS;Ke.monthsParse=rS;Ke.monthsRegex=aS;Ke.monthsShortRegex=sS;Ke.week=uS;Ke.firstDayOfYear=fS;Ke.firstDayOfWeek=cS;Ke.weekdays=_S;Ke.weekdaysMin=SS;Ke.weekdaysShort=wS;Ke.weekdaysParse=CS;Ke.weekdaysRegex=MS;Ke.weekdaysShortRegex=RS;Ke.weekdaysMinRegex=AS;Ke.isPM=IS;Ke.meridiem=LS;function Uu(e,t,r,s){var o=mi(),c=Fr().set(s,t);return o[r](c,e)}function Rm(e,t,r){if(pi(e)&&(t=e,e=void 0),e=e||"",t!=null)return Uu(e,t,r,"month");var s,o=[];for(s=0;s<12;s++)o[s]=Uu(e,s,r,"month");return o}function vd(e,t,r,s){typeof e=="boolean"?(pi(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,pi(t)&&(r=t,t=void 0),t=t||"");var o=mi(),c=e?o._week.dow:0,p,x=[];if(r!=null)return Uu(t,(r+c)%7,s,"day");for(p=0;p<7;p++)x[p]=Uu(t,(p+c)%7,s,"day");return x}function WC(e,t){return Rm(e,t,"months")}function BC(e,t){return Rm(e,t,"monthsShort")}function HC(e,t,r){return vd(e,t,r,"weekdays")}function UC(e,t,r){return vd(e,t,r,"weekdaysShort")}function zC(e,t,r){return vd(e,t,r,"weekdaysMin")}Fi("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=Be(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ae.lang=tr("moment.lang is deprecated. Use moment.locale instead.",Fi);ae.langData=tr("moment.langData is deprecated. Use moment.localeData instead.",mi);var ai=Math.abs;function qC(){var e=this._data;return this._milliseconds=ai(this._milliseconds),this._days=ai(this._days),this._months=ai(this._months),e.milliseconds=ai(e.milliseconds),e.seconds=ai(e.seconds),e.minutes=ai(e.minutes),e.hours=ai(e.hours),e.months=ai(e.months),e.years=ai(e.years),this}function Am(e,t,r,s){var o=vr(t,r);return e._milliseconds+=s*o._milliseconds,e._days+=s*o._days,e._months+=s*o._months,e._bubble()}function VC(e,t){return Am(this,e,t,1)}function GC(e,t){return Am(this,e,t,-1)}function Gp(e){return e<0?Math.floor(e):Math.ceil(e)}function KC(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,o,c,p,x,w;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Gp(Nf(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,o=Jn(e/1e3),s.seconds=o%60,c=Jn(o/60),s.minutes=c%60,p=Jn(c/60),s.hours=p%24,t+=Jn(p/24),w=Jn(Om(t)),r+=w,t-=Gp(Nf(w)),x=Jn(r/12),r%=12,s.days=t,s.months=r,s.years=x,this}function Om(e){return e*4800/146097}function Nf(e){return e*146097/4800}function ZC(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=nr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Om(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Nf(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function yi(e){return function(){return this.as(e)}}var Im=yi("ms"),XC=yi("s"),JC=yi("m"),QC=yi("h"),eD=yi("d"),tD=yi("w"),nD=yi("M"),rD=yi("Q"),iD=yi("y"),sD=Im;function aD(){return vr(this)}function oD(e){return e=nr(e),this.isValid()?this[e+"s"]():NaN}function vs(e){return function(){return this.isValid()?this._data[e]:NaN}}var uD=vs("milliseconds"),lD=vs("seconds"),cD=vs("minutes"),fD=vs("hours"),dD=vs("days"),hD=vs("months"),pD=vs("years");function gD(){return Jn(this.days()/7)}var oi=Math.round,zs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mD(e,t,r,s,o){return o.relativeTime(t||1,!!r,e,s)}function yD(e,t,r,s){var o=vr(e).abs(),c=oi(o.as("s")),p=oi(o.as("m")),x=oi(o.as("h")),w=oi(o.as("d")),D=oi(o.as("M")),A=oi(o.as("w")),F=oi(o.as("y")),B=c<=r.ss&&["s",c]||c<r.s&&["ss",c]||p<=1&&["m"]||p<r.m&&["mm",p]||x<=1&&["h"]||x<r.h&&["hh",x]||w<=1&&["d"]||w<r.d&&["dd",w];return r.w!=null&&(B=B||A<=1&&["w"]||A<r.w&&["ww",A]),B=B||D<=1&&["M"]||D<r.M&&["MM",D]||F<=1&&["y"]||["yy",F],B[2]=t,B[3]=+e>0,B[4]=s,mD.apply(null,B)}function vD(e){return e===void 0?oi:typeof e=="function"?(oi=e,!0):!1}function bD(e,t){return zs[e]===void 0?!1:t===void 0?zs[e]:(zs[e]=t,e==="s"&&(zs.ss=t-1),!0)}function xD(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=zs,o,c;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},zs,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),o=this.localeData(),c=yD(this,!r,s,o),r&&(c=o.pastFuture(+this,c)),o.postformat(c)}var gf=Math.abs;function $s(e){return(e>0)-(e<0)||+e}function ol(){if(!this.isValid())return this.localeData().invalidDate();var e=gf(this._milliseconds)/1e3,t=gf(this._days),r=gf(this._months),s,o,c,p,x=this.asSeconds(),w,D,A,F;return x?(s=Jn(e/60),o=Jn(s/60),e%=60,s%=60,c=Jn(r/12),r%=12,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",w=x<0?"-":"",D=$s(this._months)!==$s(x)?"-":"",A=$s(this._days)!==$s(x)?"-":"",F=$s(this._milliseconds)!==$s(x)?"-":"",w+"P"+(c?D+c+"Y":"")+(r?D+r+"M":"")+(t?A+t+"D":"")+(o||s||e?"T":"")+(o?F+o+"H":"")+(s?F+s+"M":"")+(e?F+p+"S":"")):"P0D"}var ze=sl.prototype;ze.isValid=hk;ze.abs=qC;ze.add=VC;ze.subtract=GC;ze.as=ZC;ze.asMilliseconds=Im;ze.asSeconds=XC;ze.asMinutes=JC;ze.asHours=QC;ze.asDays=eD;ze.asWeeks=tD;ze.asMonths=nD;ze.asQuarters=rD;ze.asYears=iD;ze.valueOf=sD;ze._bubble=KC;ze.clone=aD;ze.get=oD;ze.milliseconds=uD;ze.seconds=lD;ze.minutes=cD;ze.hours=fD;ze.days=dD;ze.weeks=gD;ze.months=hD;ze.years=pD;ze.humanize=xD;ze.toISOString=ol;ze.toString=ol;ze.toJSON=ol;ze.locale=xm;ze.localeData=wm;ze.toIsoString=tr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ol);ze.lang=_m;be("X",0,0,"unix");be("x",0,0,"valueOf");ge("x",tl);ge("X",Ww);st("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});st("x",function(e,t,r){r._d=new Date(Be(e))});//! moment.js
10
+ ae.version="2.30.1";_w(lt);ae.fn=ne;ae.min=lk;ae.max=ck;ae.now=fk;ae.utc=Fr;ae.unix=FC;ae.months=WC;ae.isDate=ao;ae.locale=Fi;ae.invalid=Xu;ae.duration=vr;ae.isMoment=yr;ae.weekdays=HC;ae.parseZone=YC;ae.localeData=mi;ae.isDuration=Iu;ae.monthsShort=BC;ae.weekdaysMin=zC;ae.defineLocale=cd;ae.updateLocale=YS;ae.locales=WS;ae.weekdaysShort=UC;ae.normalizeUnits=nr;ae.relativeTimeRounding=vD;ae.relativeTimeThreshold=bD;ae.calendarFormat=Lk;ae.prototype=ne;ae.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"};const _D=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),wD=({notification:e,handleUpdateRead:t})=>{const r=s=>{const o=ae(),c=ae(s),p=o.diff(c,"days"),x=o.diff(c,"minutes"),w=o.diff(c,"months"),D=o.diff(c,"years");if(x<1)return"Just now";if(p===0){if(x<=60)return`${x} minutes ago`;const A=Math.floor(x/60);return`${A} hour${A>1?"s":""} ago`}if(p===1)return"Yesterday";if(p>=2&&p<=7)return`${p} days ago`;if(w===0||w===1){const A=Math.ceil(p/7);return`${A} week${A>1?"s":""} ago`}return w<12?`${Math.floor(w/4)} months ago`:D===1?"1 year ago":"Over 1 year ago"};return T.jsxRuntimeExports.jsxs("div",{className:"notitification-item__container",onClick:()=>t(e.id,!e.isRead),children:[T.jsxRuntimeExports.jsx("div",{className:"notification-item__image-container",children:T.jsxRuntimeExports.jsx("img",{src:e==null?void 0:e.userAvatarUrl,onError:({currentTarget:s})=>{s.onerror=null,s.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.userName})}),T.jsxRuntimeExports.jsxs("div",{className:"notification-item__content",children:[T.jsxRuntimeExports.jsx("p",{className:"notification-item__user-name",children:e.userName}),T.jsxRuntimeExports.jsxs("p",{children:[`${e.message} `,T.jsxRuntimeExports.jsx("span",{children:e==null?void 0:e.context})]})]}),T.jsxRuntimeExports.jsx("div",{className:"notification-item__time",children:T.jsxRuntimeExports.jsx("p",{children:r(e.createdAt)})}),T.jsxRuntimeExports.jsx("button",{className:`${(e==null?void 0:e.isRead)===!1?"unread":"read"} notification-item__read-at`,onClick:()=>t(e.id,!e.isRead),"aria-label":"Mark as read"})]})},Kp=({notidata:e,handleUpdateRead:t,handleUpdateReadAll:r})=>T.jsxRuntimeExports.jsxs("div",{children:[T.jsxRuntimeExports.jsx("div",{className:"mark-all-read",children:T.jsxRuntimeExports.jsx("button",{onClick:r,children:"Mark all as read"})}),T.jsxRuntimeExports.jsx("div",{className:"notification-items__wrapper",children:T.jsxRuntimeExports.jsx("div",{className:"notification-items__content",children:Object.values(e).map((s,o)=>T.jsxRuntimeExports.jsx(wD,{notification:s,handleUpdateRead:t},o))})})]}),Xs=T.reactExports.createContext({}),SD=({children:e})=>{const[t,r]=T.reactExports.useState(!0),[s,o]=T.reactExports.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),c=()=>{r(!t)},p=()=>{r(!0)};return T.jsxRuntimeExports.jsx(Xs.Provider,{value:{isOpen:t,toggleOpen:c,setShowModalFalse:p,notidata:s,setNotiData:o},children:e})};const kD={black:"#000",white:"#fff"},Qa=kD,CD={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fs=CD,DD={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ys=DD,ED={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ws=ED,TD={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Bs=TD,MD={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Hs=MD,RD={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},za=RD,AD={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},OD=AD;function eo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ID=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),Pm="$$material";function Nm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var PD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ND=Nm(function(e){return PD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function LD(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var $D=function(){function e(r){var s=this;this._insertTag=function(o){var c;s.tags.length===0?s.insertionPoint?c=s.insertionPoint.nextSibling:s.prepend?c=s.container.firstChild:c=s.before:c=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(o,c),s.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(s){s.forEach(this._insertTag)},t.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jD(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=LD(o);try{c.insertRule(s,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},t.flush=function(){this.tags.forEach(function(s){return s.parentNode&&s.parentNode.removeChild(s)}),this.tags=[],this.ctr=0},e}(),en="-ms-",zu="-moz-",Ze="-webkit-",Lm="comm",bd="rule",xd="decl",FD="@import",jm="@keyframes",YD="@layer",WD=Math.abs,ul=String.fromCharCode,BD=Object.assign;function HD(e,t){return zt(e,0)^45?(((t<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function $m(e){return e.trim()}function UD(e,t){return(e=t.exec(e))?e[0]:e}function Xe(e,t,r){return e.replace(t,r)}function Lf(e,t){return e.indexOf(t)}function zt(e,t){return e.charCodeAt(t)|0}function to(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function _d(e){return e.length}function Tu(e,t){return t.push(e),e}function zD(e,t){return e.map(t).join("")}var ll=1,Js=1,Fm=0,Sn=0,Et=0,na="";function cl(e,t,r,s,o,c,p){return{value:e,root:t,parent:r,type:s,props:o,children:c,line:ll,column:Js,length:p,return:""}}function qa(e,t){return BD(cl("",null,null,"",null,null,0),e,{length:-e.length},t)}function qD(){return Et}function VD(){return Et=Sn>0?zt(na,--Sn):0,Js--,Et===10&&(Js=1,ll--),Et}function Pn(){return Et=Sn<Fm?zt(na,Sn++):0,Js++,Et===10&&(Js=1,ll++),Et}function Nr(){return zt(na,Sn)}function Nu(){return Sn}function co(e,t){return to(na,e,t)}function no(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ym(e){return ll=Js=1,Fm=Or(na=e),Sn=0,[]}function Wm(e){return na="",e}function Lu(e){return $m(co(Sn-1,jf(e===91?e+2:e===40?e+1:e)))}function GD(e){for(;(Et=Nr())&&Et<33;)Pn();return no(e)>2||no(Et)>3?"":" "}function KD(e,t){for(;--t&&Pn()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return co(e,Nu()+(t<6&&Nr()==32&&Pn()==32))}function jf(e){for(;Pn();)switch(Et){case e:return Sn;case 34:case 39:e!==34&&e!==39&&jf(Et);break;case 40:e===41&&jf(e);break;case 92:Pn();break}return Sn}function ZD(e,t){for(;Pn()&&e+Et!==47+10;)if(e+Et===42+42&&Nr()===47)break;return"/*"+co(t,Sn-1)+"*"+ul(e===47?e:Pn())}function XD(e){for(;!no(Nr());)Pn();return co(e,Sn)}function JD(e){return Wm(ju("",null,null,null,[""],e=Ym(e),0,[0],e))}function ju(e,t,r,s,o,c,p,x,w){for(var D=0,A=0,F=p,B=0,K=0,z=0,$=1,te=1,H=1,pe=0,me="",ye=o,re=c,ie=s,d=me;te;)switch(z=pe,pe=Pn()){case 40:if(z!=108&&zt(d,F-1)==58){Lf(d+=Xe(Lu(pe),"&","&\f"),"&\f")!=-1&&(H=-1);break}case 34:case 39:case 91:d+=Lu(pe);break;case 9:case 10:case 13:case 32:d+=GD(z);break;case 92:d+=KD(Nu()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Tu(QD(ZD(Pn(),Nu()),t,r),w);break;default:d+="/"}break;case 123*$:x[D++]=Or(d)*H;case 125*$:case 59:case 0:switch(pe){case 0:case 125:te=0;case 59+A:H==-1&&(d=Xe(d,/\f/g,"")),K>0&&Or(d)-F&&Tu(K>32?Xp(d+";",s,r,F-1):Xp(Xe(d," ","")+";",s,r,F-2),w);break;case 59:d+=";";default:if(Tu(ie=Zp(d,t,r,D,A,o,x,me,ye=[],re=[],F),c),pe===123)if(A===0)ju(d,t,ie,ie,ye,c,F,x,re);else switch(B===99&&zt(d,3)===110?100:B){case 100:case 108:case 109:case 115:ju(e,ie,ie,s&&Tu(Zp(e,ie,ie,0,0,o,x,me,o,ye=[],F),re),o,re,F,x,s?ye:re);break;default:ju(d,ie,ie,ie,[""],re,0,x,re)}}D=A=K=0,$=H=1,me=d="",F=p;break;case 58:F=1+Or(d),K=z;default:if($<1){if(pe==123)--$;else if(pe==125&&$++==0&&VD()==125)continue}switch(d+=ul(pe),pe*$){case 38:H=A>0?1:(d+="\f",-1);break;case 44:x[D++]=(Or(d)-1)*H,H=1;break;case 64:Nr()===45&&(d+=Lu(Pn())),B=Nr(),A=F=Or(me=d+=XD(Nu())),pe++;break;case 45:z===45&&Or(d)==2&&($=0)}}return c}function Zp(e,t,r,s,o,c,p,x,w,D,A){for(var F=o-1,B=o===0?c:[""],K=_d(B),z=0,$=0,te=0;z<s;++z)for(var H=0,pe=to(e,F+1,F=WD($=p[z])),me=e;H<K;++H)(me=$m($>0?B[H]+" "+pe:Xe(pe,/&\f/g,B[H])))&&(w[te++]=me);return cl(e,t,r,o===0?bd:x,w,D,A)}function QD(e,t,r){return cl(e,t,r,Lm,ul(qD()),to(e,2,-2),0)}function Xp(e,t,r,s){return cl(e,t,r,xd,to(e,0,s),to(e,s+1,-1),s)}function Ks(e,t){for(var r="",s=_d(e),o=0;o<s;o++)r+=t(e[o],o,e,t)||"";return r}function eE(e,t,r,s){switch(e.type){case YD:if(e.children.length)break;case FD:case xd:return e.return=e.return||e.value;case Lm:return"";case jm:return e.return=e.value+"{"+Ks(e.children,s)+"}";case bd:e.value=e.props.join(",")}return Or(r=Ks(e.children,s))?e.return=e.value+"{"+r+"}":""}function tE(e){var t=_d(e);return function(r,s,o,c){for(var p="",x=0;x<t;x++)p+=e[x](r,s,o,c)||"";return p}}function nE(e){return function(t){t.root||(t=t.return)&&e(t)}}var rE=function(t,r,s){for(var o=0,c=0;o=c,c=Nr(),o===38&&c===12&&(r[s]=1),!no(c);)Pn();return co(t,Sn)},iE=function(t,r){var s=-1,o=44;do switch(no(o)){case 0:o===38&&Nr()===12&&(r[s]=1),t[s]+=rE(Sn-1,r,s);break;case 2:t[s]+=Lu(o);break;case 4:if(o===44){t[++s]=Nr()===58?"&\f":"",r[s]=t[s].length;break}default:t[s]+=ul(o)}while(o=Pn());return t},sE=function(t,r){return Wm(iE(Ym(t),r))},Jp=new WeakMap,aE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,s=t.parent,o=t.column===s.column&&t.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Jp.get(s))&&!o){Jp.set(t,!0);for(var c=[],p=sE(r,c),x=s.props,w=0,D=0;w<p.length;w++)for(var A=0;A<x.length;A++,D++)t.props[D]=c[w]?p[w].replace(/&\f/g,x[A]):x[A]+" "+p[w]}}},oE=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Bm(e,t){switch(HD(e,t)){case 5103:return Ze+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ze+e+zu+e+en+e+e;case 6828:case 4268:return Ze+e+en+e+e;case 6165:return Ze+e+en+"flex-"+e+e;case 5187:return Ze+e+Xe(e,/(\w+).+(:[^]+)/,Ze+"box-$1$2"+en+"flex-$1$2")+e;case 5443:return Ze+e+en+"flex-item-"+Xe(e,/flex-|-self/,"")+e;case 4675:return Ze+e+en+"flex-line-pack"+Xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ze+e+en+Xe(e,"shrink","negative")+e;case 5292:return Ze+e+en+Xe(e,"basis","preferred-size")+e;case 6060:return Ze+"box-"+Xe(e,"-grow","")+Ze+e+en+Xe(e,"grow","positive")+e;case 4554:return Ze+Xe(e,/([^-])(transform)/g,"$1"+Ze+"$2")+e;case 6187:return Xe(Xe(Xe(e,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),e,"")+e;case 5495:case 3959:return Xe(e,/(image-set\([^]*)/,Ze+"$1$`$1");case 4968:return Xe(Xe(e,/(.+:)(flex-)?(.*)/,Ze+"box-pack:$3"+en+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ze+e+e;case 4095:case 3583:case 4068:case 2532:return Xe(e,/(.+)-inline(.+)/,Ze+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+zu+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lf(e,"stretch")?Bm(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Or(e)-3-(~Lf(e,"!important")&&10))){case 107:return Xe(e,":",":"+Ze)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ze+(zt(e,14)===45?"inline-":"")+"box$3$1"+Ze+"$2$3$1"+en+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return Ze+e+en+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ze+e+en+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ze+e+en+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ze+e+en+e+e}return e}var uE=function(t,r,s,o){if(t.length>-1&&!t.return)switch(t.type){case xd:t.return=Bm(t.value,t.length);break;case jm:return Ks([qa(t,{value:Xe(t.value,"@","@"+Ze)})],o);case bd:if(t.length)return zD(t.props,function(c){switch(UD(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ks([qa(t,{props:[Xe(c,/:(read-\w+)/,":"+zu+"$1")]})],o);case"::placeholder":return Ks([qa(t,{props:[Xe(c,/:(plac\w+)/,":"+Ze+"input-$1")]}),qa(t,{props:[Xe(c,/:(plac\w+)/,":"+zu+"$1")]}),qa(t,{props:[Xe(c,/:(plac\w+)/,en+"input-$1")]})],o)}return""})}},lE=[uE],Hm=function(t){var r=t.key;if(r==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function($){var te=$.getAttribute("data-emotion");te.indexOf(" ")!==-1&&(document.head.appendChild($),$.setAttribute("data-s",""))})}var o=t.stylisPlugins||lE,c={},p,x=[];p=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function($){for(var te=$.getAttribute("data-emotion").split(" "),H=1;H<te.length;H++)c[te[H]]=!0;x.push($)});var w,D=[aE,oE];{var A,F=[eE,nE(function($){A.insert($)})],B=tE(D.concat(o,F)),K=function(te){return Ks(JD(te),B)};w=function(te,H,pe,me){A=pe,K(te?te+"{"+H.styles+"}":H.styles),me&&(z.inserted[H.name]=!0)}}var z={key:r,sheet:new $D({key:r,container:p,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:w};return z.sheet.hydrate(x),z},Um={exports:{}},nt={};/** @license React v16.13.1
11
+ * react-is.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Wt=typeof Symbol=="function"&&Symbol.for,wd=Wt?Symbol.for("react.element"):60103,Sd=Wt?Symbol.for("react.portal"):60106,fl=Wt?Symbol.for("react.fragment"):60107,dl=Wt?Symbol.for("react.strict_mode"):60108,hl=Wt?Symbol.for("react.profiler"):60114,pl=Wt?Symbol.for("react.provider"):60109,gl=Wt?Symbol.for("react.context"):60110,kd=Wt?Symbol.for("react.async_mode"):60111,ml=Wt?Symbol.for("react.concurrent_mode"):60111,yl=Wt?Symbol.for("react.forward_ref"):60112,vl=Wt?Symbol.for("react.suspense"):60113,cE=Wt?Symbol.for("react.suspense_list"):60120,bl=Wt?Symbol.for("react.memo"):60115,xl=Wt?Symbol.for("react.lazy"):60116,fE=Wt?Symbol.for("react.block"):60121,dE=Wt?Symbol.for("react.fundamental"):60117,hE=Wt?Symbol.for("react.responder"):60118,pE=Wt?Symbol.for("react.scope"):60119;function Ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wd:switch(e=e.type,e){case kd:case ml:case fl:case hl:case dl:case vl:return e;default:switch(e=e&&e.$$typeof,e){case gl:case yl:case xl:case bl:case pl:return e;default:return t}}case Sd:return t}}}function zm(e){return Ln(e)===ml}nt.AsyncMode=kd;nt.ConcurrentMode=ml;nt.ContextConsumer=gl;nt.ContextProvider=pl;nt.Element=wd;nt.ForwardRef=yl;nt.Fragment=fl;nt.Lazy=xl;nt.Memo=bl;nt.Portal=Sd;nt.Profiler=hl;nt.StrictMode=dl;nt.Suspense=vl;nt.isAsyncMode=function(e){return zm(e)||Ln(e)===kd};nt.isConcurrentMode=zm;nt.isContextConsumer=function(e){return Ln(e)===gl};nt.isContextProvider=function(e){return Ln(e)===pl};nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wd};nt.isForwardRef=function(e){return Ln(e)===yl};nt.isFragment=function(e){return Ln(e)===fl};nt.isLazy=function(e){return Ln(e)===xl};nt.isMemo=function(e){return Ln(e)===bl};nt.isPortal=function(e){return Ln(e)===Sd};nt.isProfiler=function(e){return Ln(e)===hl};nt.isStrictMode=function(e){return Ln(e)===dl};nt.isSuspense=function(e){return Ln(e)===vl};nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fl||e===ml||e===hl||e===dl||e===vl||e===cE||typeof e=="object"&&e!==null&&(e.$$typeof===xl||e.$$typeof===bl||e.$$typeof===pl||e.$$typeof===gl||e.$$typeof===yl||e.$$typeof===dE||e.$$typeof===hE||e.$$typeof===pE||e.$$typeof===fE)};nt.typeOf=Ln;Um.exports=nt;var gE=Um.exports,qm=gE,mE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vm={};Vm[qm.ForwardRef]=mE;Vm[qm.Memo]=yE;var vE=!0;function bE(e,t,r){var s="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):s+=o+" "}),s}var Gm=function(t,r,s){var o=t.key+"-"+r.name;(s===!1||vE===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Km=function(t,r,s){Gm(t,r,s);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+o:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function xE(e){for(var t=0,r,s=0,o=e.length;o>=4;++s,o-=4)r=e.charCodeAt(s)&255|(e.charCodeAt(++s)&255)<<8|(e.charCodeAt(++s)&255)<<16|(e.charCodeAt(++s)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(s+2)&255)<<16;case 2:t^=(e.charCodeAt(s+1)&255)<<8;case 1:t^=e.charCodeAt(s)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _E={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wE=/[A-Z]|^ms/g,SE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zm=function(t){return t.charCodeAt(1)===45},Qp=function(t){return t!=null&&typeof t!="boolean"},mf=Nm(function(e){return Zm(e)?e:e.replace(wE,"-$&").toLowerCase()}),eg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(SE,function(s,o,c){return Ir={name:o,styles:c,next:Ir},o})}return _E[t]!==1&&!Zm(t)&&typeof r=="number"&&r!==0?r+"px":r};function ro(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ir={name:r.name,styles:r.styles,next:Ir},r.name;if(r.styles!==void 0){var s=r.next;if(s!==void 0)for(;s!==void 0;)Ir={name:s.name,styles:s.styles,next:Ir},s=s.next;var o=r.styles+";";return o}return kE(e,t,r)}case"function":{if(e!==void 0){var c=Ir,p=r(e);return Ir=c,ro(e,t,p)}break}}if(t==null)return r;var x=t[r];return x!==void 0?x:r}function kE(e,t,r){var s="";if(Array.isArray(r))for(var o=0;o<r.length;o++)s+=ro(e,t,r[o])+";";else for(var c in r){var p=r[c];if(typeof p!="object")t!=null&&t[p]!==void 0?s+=c+"{"+t[p]+"}":Qp(p)&&(s+=mf(c)+":"+eg(c,p)+";");else if(Array.isArray(p)&&typeof p[0]=="string"&&(t==null||t[p[0]]===void 0))for(var x=0;x<p.length;x++)Qp(p[x])&&(s+=mf(c)+":"+eg(c,p[x])+";");else{var w=ro(e,t,p);switch(c){case"animation":case"animationName":{s+=mf(c)+":"+w+";";break}default:s+=c+"{"+w+"}"}}}return s}var tg=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ir,Cd=function(t,r,s){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,c="";Ir=void 0;var p=t[0];p==null||p.raw===void 0?(o=!1,c+=ro(s,r,p)):c+=p[0];for(var x=1;x<t.length;x++)c+=ro(s,r,t[x]),o&&(c+=p[x]);tg.lastIndex=0;for(var w="",D;(D=tg.exec(c))!==null;)w+="-"+D[1];var A=xE(c)+w;return{name:A,styles:c,next:Ir}},CE=function(t){return t()},Xm=T.React["useInsertionEffect"]?T.React["useInsertionEffect"]:!1,DE=Xm||CE,ng=Xm||T.reactExports.useLayoutEffect,Jm=T.reactExports.createContext(typeof HTMLElement<"u"?Hm({key:"css"}):null),EE=Jm.Provider,Qm=function(t){return T.reactExports.forwardRef(function(r,s){var o=T.reactExports.useContext(Jm);return t(r,o,s)})},_l=T.reactExports.createContext({}),TE=Qm(function(e,t){var r=e.styles,s=Cd([r],void 0,T.reactExports.useContext(_l)),o=T.reactExports.useRef();return ng(function(){var c=t.key+"-global",p=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),x=!1,w=document.querySelector('style[data-emotion="'+c+" "+s.name+'"]');return t.sheet.tags.length&&(p.before=t.sheet.tags[0]),w!==null&&(x=!0,w.setAttribute("data-emotion",c),p.hydrate([w])),o.current=[p,x],function(){p.flush()}},[t]),ng(function(){var c=o.current,p=c[0],x=c[1];if(x){c[1]=!1;return}if(s.next!==void 0&&Km(t,s.next,!0),p.tags.length){var w=p.tags[p.tags.length-1].nextElementSibling;p.before=w,p.flush()}t.insert("",s,p,!1)},[t,s.name]),null});function e0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Cd(t)}var wl=function(){var t=e0.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},ME=ND,RE=function(t){return t!=="theme"},rg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ME:RE},ig=function(t,r,s){var o;if(r){var c=r.shouldForwardProp;o=t.__emotion_forwardProp&&c?function(p){return t.__emotion_forwardProp(p)&&c(p)}:c}return typeof o!="function"&&s&&(o=t.__emotion_forwardProp),o},AE=function(t){var r=t.cache,s=t.serialized,o=t.isStringTag;return Gm(r,s,o),DE(function(){return Km(r,s,o)}),null},OE=function e(t,r){var s=t.__emotion_real===t,o=s&&t.__emotion_base||t,c,p;r!==void 0&&(c=r.label,p=r.target);var x=ig(t,r,s),w=x||rg(o),D=!w("as");return function(){var A=arguments,F=s&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(c!==void 0&&F.push("label:"+c+";"),A[0]==null||A[0].raw===void 0)F.push.apply(F,A);else{F.push(A[0][0]);for(var B=A.length,K=1;K<B;K++)F.push(A[K],A[0][K])}var z=Qm(function($,te,H){var pe=D&&$.as||o,me="",ye=[],re=$;if($.theme==null){re={};for(var ie in $)re[ie]=$[ie];re.theme=T.reactExports.useContext(_l)}typeof $.className=="string"?me=bE(te.registered,ye,$.className):$.className!=null&&(me=$.className+" ");var d=Cd(F.concat(ye),te.registered,re);me+=te.key+"-"+d.name,p!==void 0&&(me+=" "+p);var Le=D&&x===void 0?rg(pe):w,le={};for(var at in $)D&&at==="as"||Le(at)&&(le[at]=$[at]);return le.className=me,le.ref=H,T.reactExports.createElement(T.reactExports.Fragment,null,T.reactExports.createElement(AE,{cache:te,serialized:d,isStringTag:typeof pe=="string"}),T.reactExports.createElement(pe,le))});return z.displayName=c!==void 0?c:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",z.defaultProps=t.defaultProps,z.__emotion_real=z,z.__emotion_base=o,z.__emotion_styles=F,z.__emotion_forwardProp=x,Object.defineProperty(z,"toString",{value:function(){return"."+p}}),z.withComponent=function($,te){return e($,ce._extends({},r,te,{shouldForwardProp:ig(z,te,!0)})).apply(void 0,F)},z}},IE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],$f=OE.bind();IE.forEach(function(e){$f[e]=$f(e)});let Ff;typeof document=="object"&&(Ff=Hm({key:"css",prepend:!0}));function PE(e){const{injectFirst:t,children:r}=e;return t&&Ff?T.jsxRuntimeExports.jsx(EE,{value:Ff,children:r}):r}function NE(e){return e==null||Object.keys(e).length===0}function LE(e){const{styles:t,defaultTheme:r={}}=e,s=typeof t=="function"?o=>t(NE(o)?r:o):t;return T.jsxRuntimeExports.jsx(TE,{styles:s})}/**
18
+ * @mui/styled-engine v5.15.11
19
+ *
20
+ * @license MIT
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */function jE(e,t){return $f(e,t)}const $E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},FE=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:LE,StyledEngineProvider:PE,ThemeContext:_l,css:e0,default:jE,internal_processStyles:$E,keyframes:wl},Symbol.toStringTag,{value:"Module"}));function Li(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function t0(e){if(!Li(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=t0(e[r])}),t}function Lr(e,t,r={clone:!0}){const s=r.clone?ce._extends({},e):e;return Li(e)&&Li(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Li(t[o])&&o in e&&Li(e[o])?s[o]=Lr(e[o],t[o],r):r.clone?s[o]=Li(t[o])?t0(t[o]):t[o]:s[o]=t[o])}),s}const YE=Object.freeze(Object.defineProperty({__proto__:null,default:Lr,isPlainObject:Li},Symbol.toStringTag,{value:"Module"})),WE=["values","unit","step"],BE=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,s)=>r.val-s.val),t.reduce((r,s)=>ce._extends({},r,{[s.key]:s.val}),{})};function n0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,o=ce._objectWithoutPropertiesLoose(e,WE),c=BE(t),p=Object.keys(c);function x(B){return`@media (min-width:${typeof t[B]=="number"?t[B]:B}${r})`}function w(B){return`@media (max-width:${(typeof t[B]=="number"?t[B]:B)-s/100}${r})`}function D(B,K){const z=p.indexOf(K);return`@media (min-width:${typeof t[B]=="number"?t[B]:B}${r}) and (max-width:${(z!==-1&&typeof t[p[z]]=="number"?t[p[z]]:K)-s/100}${r})`}function A(B){return p.indexOf(B)+1<p.length?D(B,p[p.indexOf(B)+1]):x(B)}function F(B){const K=p.indexOf(B);return K===0?x(p[1]):K===p.length-1?w(p[K]):D(B,p[p.indexOf(B)+1]).replace("@media","@media not all and")}return ce._extends({keys:p,values:c,up:x,down:w,between:D,only:A,not:F,unit:r},o)}const HE={borderRadius:4},UE=HE;function Ga(e,t){return t?Lr(e,t,{clone:!1}):e}const Dd={xs:0,sm:600,md:900,lg:1200,xl:1536},sg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dd[e]}px)`};function gi(e,t,r){const s=e.theme||{};if(Array.isArray(t)){const c=s.breakpoints||sg;return t.reduce((p,x,w)=>(p[c.up(c.keys[w])]=r(t[w]),p),{})}if(typeof t=="object"){const c=s.breakpoints||sg;return Object.keys(t).reduce((p,x)=>{if(Object.keys(c.values||Dd).indexOf(x)!==-1){const w=c.up(x);p[w]=r(t[x],x)}else{const w=x;p[w]=t[w]}return p},{})}return r(t)}function zE(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((s,o)=>{const c=e.up(o);return s[c]={},s},{}))||{}}function qE(e,t){return e.reduce((r,s)=>{const o=r[s];return(!o||Object.keys(o).length===0)&&delete r[s],r},t)}function jr(e){if(typeof e!="string")throw new Error(eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const VE=Object.freeze(Object.defineProperty({__proto__:null,default:jr},Symbol.toStringTag,{value:"Module"}));function Sl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const s=`vars.${t}`.split(".").reduce((o,c)=>o&&o[c]?o[c]:null,e);if(s!=null)return s}return t.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,e)}function qu(e,t,r,s=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||s:o=Sl(e,r)||s,t&&(o=t(o,s,e)),o}function Ct(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:o}=e,c=p=>{if(p[t]==null)return null;const x=p[t],w=p.theme,D=Sl(w,s)||{};return gi(p,x,F=>{let B=qu(D,o,F);return F===B&&typeof F=="string"&&(B=qu(D,o,`${t}${F==="default"?"":jr(F)}`,F)),r===!1?B:{[r]:B}})};return c.propTypes={},c.filterProps=[t],c}function GE(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const KE={m:"margin",p:"padding"},ZE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ag={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XE=GE(e=>{if(e.length>2)if(ag[e])e=ag[e];else return[e];const[t,r]=e.split(""),s=KE[t],o=ZE[r]||"";return Array.isArray(o)?o.map(c=>s+c):[s+o]}),Ed=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Td=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ed,...Td];function fo(e,t,r,s){var o;const c=(o=Sl(e,t,!1))!=null?o:r;return typeof c=="number"?p=>typeof p=="string"?p:c*p:Array.isArray(c)?p=>typeof p=="string"?p:c[p]:typeof c=="function"?c:()=>{}}function r0(e){return fo(e,"spacing",8)}function ho(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),s=e(r);return t>=0?s:typeof s=="number"?-s:`-${s}`}function JE(e,t){return r=>e.reduce((s,o)=>(s[o]=ho(t,r),s),{})}function QE(e,t,r,s){if(t.indexOf(r)===-1)return null;const o=XE(r),c=JE(o,s),p=e[r];return gi(e,p,c)}function i0(e,t){const r=r0(e.theme);return Object.keys(e).map(s=>QE(e,t,s,r)).reduce(Ga,{})}function vt(e){return i0(e,Ed)}vt.propTypes={};vt.filterProps=Ed;function bt(e){return i0(e,Td)}bt.propTypes={};bt.filterProps=Td;function eT(e=8){if(e.mui)return e;const t=r0({spacing:e}),r=(...s)=>(s.length===0?[1]:s).map(c=>{const p=t(c);return typeof p=="number"?`${p}px`:p}).join(" ");return r.mui=!0,r}function kl(...e){const t=e.reduce((s,o)=>(o.filterProps.forEach(c=>{s[c]=o}),s),{}),r=s=>Object.keys(s).reduce((o,c)=>t[c]?Ga(o,t[c](s)):o,{});return r.propTypes={},r.filterProps=e.reduce((s,o)=>s.concat(o.filterProps),[]),r}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function rr(e,t){return Ct({prop:e,themeKey:"borders",transform:t})}const tT=rr("border",Qn),nT=rr("borderTop",Qn),rT=rr("borderRight",Qn),iT=rr("borderBottom",Qn),sT=rr("borderLeft",Qn),aT=rr("borderColor"),oT=rr("borderTopColor"),uT=rr("borderRightColor"),lT=rr("borderBottomColor"),cT=rr("borderLeftColor"),fT=rr("outline",Qn),dT=rr("outlineColor"),Cl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fo(e.theme,"shape.borderRadius",4),r=s=>({borderRadius:ho(t,s)});return gi(e,e.borderRadius,r)}return null};Cl.propTypes={};Cl.filterProps=["borderRadius"];kl(tT,nT,rT,iT,sT,aT,oT,uT,lT,cT,Cl,fT,dT);const Dl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fo(e.theme,"spacing",8),r=s=>({gap:ho(t,s)});return gi(e,e.gap,r)}return null};Dl.propTypes={};Dl.filterProps=["gap"];const El=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fo(e.theme,"spacing",8),r=s=>({columnGap:ho(t,s)});return gi(e,e.columnGap,r)}return null};El.propTypes={};El.filterProps=["columnGap"];const Tl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fo(e.theme,"spacing",8),r=s=>({rowGap:ho(t,s)});return gi(e,e.rowGap,r)}return null};Tl.propTypes={};Tl.filterProps=["rowGap"];const hT=Ct({prop:"gridColumn"}),pT=Ct({prop:"gridRow"}),gT=Ct({prop:"gridAutoFlow"}),mT=Ct({prop:"gridAutoColumns"}),yT=Ct({prop:"gridAutoRows"}),vT=Ct({prop:"gridTemplateColumns"}),bT=Ct({prop:"gridTemplateRows"}),xT=Ct({prop:"gridTemplateAreas"}),_T=Ct({prop:"gridArea"});kl(Dl,El,Tl,hT,pT,gT,mT,yT,vT,bT,xT,_T);function Zs(e,t){return t==="grey"?t:e}const wT=Ct({prop:"color",themeKey:"palette",transform:Zs}),ST=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zs}),kT=Ct({prop:"backgroundColor",themeKey:"palette",transform:Zs});kl(wT,ST,kT);function In(e){return e<=1&&e!==0?`${e*100}%`:e}const CT=Ct({prop:"width",transform:In}),Md=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var s,o;const c=((s=e.theme)==null||(s=s.breakpoints)==null||(s=s.values)==null?void 0:s[r])||Dd[r];return c?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${c}${e.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:In(r)}};return gi(e,e.maxWidth,t)}return null};Md.filterProps=["maxWidth"];const DT=Ct({prop:"minWidth",transform:In}),ET=Ct({prop:"height",transform:In}),TT=Ct({prop:"maxHeight",transform:In}),MT=Ct({prop:"minHeight",transform:In});Ct({prop:"size",cssProperty:"width",transform:In});Ct({prop:"size",cssProperty:"height",transform:In});const RT=Ct({prop:"boxSizing"});kl(CT,Md,DT,ET,TT,MT,RT);const AT={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cl},color:{themeKey:"palette",transform:Zs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zs},backgroundColor:{themeKey:"palette",transform:Zs},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Dl},rowGap:{style:Tl},columnGap:{style:El},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:In},maxWidth:{style:Md},minWidth:{transform:In},height:{transform:In},maxHeight:{transform:In},minHeight:{transform:In},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},po=AT;function OT(...e){const t=e.reduce((s,o)=>s.concat(Object.keys(o)),[]),r=new Set(t);return e.every(s=>r.size===Object.keys(s).length)}function IT(e,t){return typeof e=="function"?e(t):e}function s0(){function e(r,s,o,c){const p={[r]:s,theme:o},x=c[r];if(!x)return{[r]:s};const{cssProperty:w=r,themeKey:D,transform:A,style:F}=x;if(s==null)return null;if(D==="typography"&&s==="inherit")return{[r]:s};const B=Sl(o,D)||{};return F?F(p):gi(p,s,z=>{let $=qu(B,A,z);return z===$&&typeof z=="string"&&($=qu(B,A,`${r}${z==="default"?"":jr(z)}`,z)),w===!1?$:{[w]:$}})}function t(r){var s;const{sx:o,theme:c={}}=r||{};if(!o)return null;const p=(s=c.unstable_sxConfig)!=null?s:po;function x(w){let D=w;if(typeof w=="function")D=w(c);else if(typeof w!="object")return w;if(!D)return null;const A=zE(c.breakpoints),F=Object.keys(A);let B=A;return Object.keys(D).forEach(K=>{const z=IT(D[K],c);if(z!=null)if(typeof z=="object")if(p[K])B=Ga(B,e(K,z,c,p));else{const $=gi({theme:c},z,te=>({[K]:te}));OT($,z)?B[K]=t({sx:z,theme:c}):B=Ga(B,$)}else B=Ga(B,e(K,z,c,p))}),qE(F,B)}return Array.isArray(o)?o.map(x):x(o)}return t}const a0=s0();a0.filterProps=["sx"];const Rd=a0;function o0(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const PT=["breakpoints","palette","spacing","shape"];function Ad(e={},...t){const{breakpoints:r={},palette:s={},spacing:o,shape:c={}}=e,p=ce._objectWithoutPropertiesLoose(e,PT),x=n0(r),w=eT(o);let D=Lr({breakpoints:x,direction:"ltr",components:{},palette:ce._extends({mode:"light"},s),spacing:w,shape:ce._extends({},UE,c)},p);return D.applyStyles=o0,D=t.reduce((A,F)=>Lr(A,F),D),D.unstable_sxConfig=ce._extends({},po,p==null?void 0:p.unstable_sxConfig),D.unstable_sx=function(F){return Rd({sx:F,theme:this})},D}const NT=Object.freeze(Object.defineProperty({__proto__:null,default:Ad,private_createBreakpoints:n0,unstable_applyStyles:o0},Symbol.toStringTag,{value:"Module"}));function LT(e){return Object.keys(e).length===0}function jT(e=null){const t=T.reactExports.useContext(_l);return!t||LT(t)?e:t}const $T=Ad();function FT(e=$T){return jT(e)}const YT=["sx"],WT=e=>{var t,r;const s={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:po;return Object.keys(e).forEach(c=>{o[c]?s.systemProps[c]=e[c]:s.otherProps[c]=e[c]}),s};function BT(e){const{sx:t}=e,r=ce._objectWithoutPropertiesLoose(e,YT),{systemProps:s,otherProps:o}=WT(r);let c;return Array.isArray(t)?c=[s,...t]:typeof t=="function"?c=(...p)=>{const x=t(...p);return Li(x)?ce._extends({},s,x):s}:c=ce._extends({},s,t),ce._extends({},o,{sx:c})}const HT=Object.freeze(Object.defineProperty({__proto__:null,default:Rd,extendSxProp:BT,unstable_createStyleFunctionSx:s0,unstable_defaultSxConfig:po},Symbol.toStringTag,{value:"Module"})),og=e=>e,UT=()=>{let e=og;return{configure(t){e=t},generate(t){return e(t)},reset(){e=og}}},zT=UT(),qT=zT,VT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ml(e,t,r="Mui"){const s=VT[t];return s?`${r}-${s}`:`${qT.generate(e)}-${t}`}function Rl(e,t,r="Mui"){const s={};return t.forEach(o=>{s[o]=Ml(e,o,r)}),s}var u0={exports:{}},rt={};/**
24
+ * @license React
25
+ * react-is.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */var Od=Symbol.for("react.element"),Id=Symbol.for("react.portal"),Al=Symbol.for("react.fragment"),Ol=Symbol.for("react.strict_mode"),Il=Symbol.for("react.profiler"),Pl=Symbol.for("react.provider"),Nl=Symbol.for("react.context"),GT=Symbol.for("react.server_context"),Ll=Symbol.for("react.forward_ref"),jl=Symbol.for("react.suspense"),$l=Symbol.for("react.suspense_list"),Fl=Symbol.for("react.memo"),Yl=Symbol.for("react.lazy"),KT=Symbol.for("react.offscreen"),l0;l0=Symbol.for("react.module.reference");function ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Od:switch(e=e.type,e){case Al:case Il:case Ol:case jl:case $l:return e;default:switch(e=e&&e.$$typeof,e){case GT:case Nl:case Ll:case Yl:case Fl:case Pl:return e;default:return t}}case Id:return t}}}rt.ContextConsumer=Nl;rt.ContextProvider=Pl;rt.Element=Od;rt.ForwardRef=Ll;rt.Fragment=Al;rt.Lazy=Yl;rt.Memo=Fl;rt.Portal=Id;rt.Profiler=Il;rt.StrictMode=Ol;rt.Suspense=jl;rt.SuspenseList=$l;rt.isAsyncMode=function(){return!1};rt.isConcurrentMode=function(){return!1};rt.isContextConsumer=function(e){return ir(e)===Nl};rt.isContextProvider=function(e){return ir(e)===Pl};rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Od};rt.isForwardRef=function(e){return ir(e)===Ll};rt.isFragment=function(e){return ir(e)===Al};rt.isLazy=function(e){return ir(e)===Yl};rt.isMemo=function(e){return ir(e)===Fl};rt.isPortal=function(e){return ir(e)===Id};rt.isProfiler=function(e){return ir(e)===Il};rt.isStrictMode=function(e){return ir(e)===Ol};rt.isSuspense=function(e){return ir(e)===jl};rt.isSuspenseList=function(e){return ir(e)===$l};rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Al||e===Il||e===Ol||e===jl||e===$l||e===KT||typeof e=="object"&&e!==null&&(e.$$typeof===Yl||e.$$typeof===Fl||e.$$typeof===Pl||e.$$typeof===Nl||e.$$typeof===Ll||e.$$typeof===l0||e.getModuleId!==void 0)};rt.typeOf=ir;u0.exports=rt;var ug=u0.exports;const ZT=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function c0(e){const t=`${e}`.match(ZT);return t&&t[1]||""}function f0(e,t=""){return e.displayName||e.name||c0(e)||t}function lg(e,t,r){const s=f0(t);return e.displayName||(s!==""?`${r}(${s})`:r)}function XT(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return f0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ug.ForwardRef:return lg(e,e.render,"ForwardRef");case ug.Memo:return lg(e,e.type,"memo");default:return}}}const JT=Object.freeze(Object.defineProperty({__proto__:null,default:XT,getFunctionName:c0},Symbol.toStringTag,{value:"Module"}));function d0(e,t){const r=ce._extends({},t);return Object.keys(e).forEach(s=>{if(s.toString().match(/^(components|slots)$/))r[s]=ce._extends({},e[s],r[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const o=e[s]||{},c=t[s];r[s]={},!c||!Object.keys(c)?r[s]=o:!o||!Object.keys(o)?r[s]=c:(r[s]=ce._extends({},c),Object.keys(o).forEach(p=>{r[s][p]=d0(o[p],c[p])}))}else r[s]===void 0&&(r[s]=e[s])}),r}function QT(e){const{theme:t,name:r,props:s}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?s:d0(t.components[r].defaultProps,s)}function e2({props:e,name:t,defaultTheme:r,themeId:s}){let o=FT(r);return s&&(o=o[s]||o),QT({theme:o,name:t,props:e})}const t2=typeof window<"u"?T.reactExports.useLayoutEffect:T.reactExports.useEffect,n2=t2;function r2(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const i2=Object.freeze(Object.defineProperty({__proto__:null,default:r2},Symbol.toStringTag,{value:"Module"}));function s2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function a2({controlled:e,default:t,name:r,state:s="value"}){const{current:o}=T.reactExports.useRef(e!==void 0),[c,p]=T.reactExports.useState(t),x=o?e:c,w=T.reactExports.useCallback(D=>{o||p(D)},[]);return[x,w]}function Mu(e){const t=T.reactExports.useRef(e);return n2(()=>{t.current=e}),T.reactExports.useRef((...r)=>(0,t.current)(...r)).current}function cg(...e){return T.reactExports.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{s2(r,t)})},e)}const fg={};function o2(e,t){const r=T.reactExports.useRef(fg);return r.current===fg&&(r.current=e(t)),r}const u2=[];function l2(e){T.reactExports.useEffect(e,u2)}class Wl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Wl}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function c2(){const e=o2(Wl.create).current;return l2(e.disposeEffect),e}let Bl=!0,Yf=!1;const f2=new Wl,d2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function h2(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&d2[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function p2(e){e.metaKey||e.altKey||e.ctrlKey||(Bl=!0)}function yf(){Bl=!1}function g2(){this.visibilityState==="hidden"&&Yf&&(Bl=!0)}function m2(e){e.addEventListener("keydown",p2,!0),e.addEventListener("mousedown",yf,!0),e.addEventListener("pointerdown",yf,!0),e.addEventListener("touchstart",yf,!0),e.addEventListener("visibilitychange",g2,!0)}function y2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Bl||h2(t)}function v2(){const e=T.reactExports.useCallback(o=>{o!=null&&m2(o.ownerDocument)},[]),t=T.reactExports.useRef(!1);function r(){return t.current?(Yf=!0,f2.start(100,()=>{Yf=!1}),t.current=!1,!0):!1}function s(o){return y2(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:s,onBlur:r,ref:e}}function Pd(e,t,r=void 0){const s={};return Object.keys(e).forEach(o=>{s[o]=e[o].reduce((c,p)=>{if(p){const x=t(p);x!==""&&c.push(x),r&&r[p]&&c.push(r[p])}return c},[]).join(" ")}),s}function b2(e,t){return ce._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Dt={},h0={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(h0);var p0=h0.exports;const x2=T.getAugmentedNamespace(ID),_2=T.getAugmentedNamespace(i2);var g0=p0;Object.defineProperty(Dt,"__esModule",{value:!0});var dg=Dt.alpha=_0;Dt.blend=O2;Dt.colorChannel=void 0;var m0=Dt.darken=Ld;Dt.decomposeColor=er;Dt.emphasize=A2;var w2=Dt.getContrastRatio=E2;Dt.getLuminance=Vu;Dt.hexToRgb=v0;Dt.hslToRgb=x0;var y0=Dt.lighten=jd;Dt.private_safeAlpha=T2;Dt.private_safeColorChannel=void 0;Dt.private_safeDarken=M2;Dt.private_safeEmphasize=w0;Dt.private_safeLighten=R2;Dt.recomposeColor=ra;Dt.rgbToHex=D2;var hg=g0(x2),S2=g0(_2);function Nd(e,t=0,r=1){return(0,S2.default)(e,t,r)}function v0(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(s=>s+s)),r?`rgb${r.length===4?"a":""}(${r.map((s,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function k2(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function er(e){if(e.type)return e;if(e.charAt(0)==="#")return er(v0(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,hg.default)(9,e));let s=e.substring(t+1,e.length-1),o;if(r==="color"){if(s=s.split(" "),o=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,hg.default)(10,o))}else s=s.split(",");return s=s.map(c=>parseFloat(c)),{type:r,values:s,colorSpace:o}}const b0=e=>{const t=er(e);return t.values.slice(0,3).map((r,s)=>t.type.indexOf("hsl")!==-1&&s!==0?`${r}%`:r).join(" ")};Dt.colorChannel=b0;const C2=(e,t)=>{try{return b0(e)}catch{return e}};Dt.private_safeColorChannel=C2;function ra(e){const{type:t,colorSpace:r}=e;let{values:s}=e;return t.indexOf("rgb")!==-1?s=s.map((o,c)=>c<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.indexOf("color")!==-1?s=`${r} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function D2(e){if(e.indexOf("#")===0)return e;const{values:t}=er(e);return`#${t.map((r,s)=>k2(s===3?Math.round(255*r):r)).join("")}`}function x0(e){e=er(e);const{values:t}=e,r=t[0],s=t[1]/100,o=t[2]/100,c=s*Math.min(o,1-o),p=(D,A=(D+r/30)%12)=>o-c*Math.max(Math.min(A-3,9-A,1),-1);let x="rgb";const w=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(x+="a",w.push(t[3])),ra({type:x,values:w})}function Vu(e){e=er(e);let t=e.type==="hsl"||e.type==="hsla"?er(x0(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function E2(e,t){const r=Vu(e),s=Vu(t);return(Math.max(r,s)+.05)/(Math.min(r,s)+.05)}function _0(e,t){return e=er(e),t=Nd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ra(e)}function T2(e,t,r){try{return _0(e,t)}catch{return e}}function Ld(e,t){if(e=er(e),t=Nd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ra(e)}function M2(e,t,r){try{return Ld(e,t)}catch{return e}}function jd(e,t){if(e=er(e),t=Nd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ra(e)}function R2(e,t,r){try{return jd(e,t)}catch{return e}}function A2(e,t=.15){return Vu(e)>.5?Ld(e,t):jd(e,t)}function w0(e,t,r){try{return w0(e,t)}catch{return e}}function O2(e,t,r,s=1){const o=(w,D)=>Math.round((w**(1/s)*(1-r)+D**(1/s)*r)**s),c=er(e),p=er(t),x=[o(c.values[0],p.values[0]),o(c.values[1],p.values[1]),o(c.values[2],p.values[2])];return ra({type:"rgb",values:x})}const I2=["mode","contrastThreshold","tonalOffset"],pg={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qa.white,default:Qa.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vf={text:{primary:Qa.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qa.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gg(e,t,r,s){const o=s.light||s,c=s.dark||s*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=y0(e.main,o):t==="dark"&&(e.dark=m0(e.main,c)))}function P2(e="light"){return e==="dark"?{main:Ws[200],light:Ws[50],dark:Ws[400]}:{main:Ws[700],light:Ws[400],dark:Ws[800]}}function N2(e="light"){return e==="dark"?{main:Ys[200],light:Ys[50],dark:Ys[400]}:{main:Ys[500],light:Ys[300],dark:Ys[700]}}function L2(e="light"){return e==="dark"?{main:Fs[500],light:Fs[300],dark:Fs[700]}:{main:Fs[700],light:Fs[400],dark:Fs[800]}}function j2(e="light"){return e==="dark"?{main:Bs[400],light:Bs[300],dark:Bs[700]}:{main:Bs[700],light:Bs[500],dark:Bs[900]}}function $2(e="light"){return e==="dark"?{main:Hs[400],light:Hs[300],dark:Hs[700]}:{main:Hs[800],light:Hs[500],dark:Hs[900]}}function F2(e="light"){return e==="dark"?{main:za[400],light:za[300],dark:za[700]}:{main:"#ed6c02",light:za[500],dark:za[900]}}function Y2(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,o=ce._objectWithoutPropertiesLoose(e,I2),c=e.primary||P2(t),p=e.secondary||N2(t),x=e.error||L2(t),w=e.info||j2(t),D=e.success||$2(t),A=e.warning||F2(t);function F($){return w2($,vf.text.primary)>=r?vf.text.primary:pg.text.primary}const B=({color:$,name:te,mainShade:H=500,lightShade:pe=300,darkShade:me=700})=>{if($=ce._extends({},$),!$.main&&$[H]&&($.main=$[H]),!$.hasOwnProperty("main"))throw new Error(eo(11,te?` (${te})`:"",H));if(typeof $.main!="string")throw new Error(eo(12,te?` (${te})`:"",JSON.stringify($.main)));return gg($,"light",pe,s),gg($,"dark",me,s),$.contrastText||($.contrastText=F($.main)),$},K={dark:vf,light:pg};return Lr(ce._extends({common:ce._extends({},Qa),mode:t,primary:B({color:c,name:"primary"}),secondary:B({color:p,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:B({color:x,name:"error"}),warning:B({color:A,name:"warning"}),info:B({color:w,name:"info"}),success:B({color:D,name:"success"}),grey:OD,contrastThreshold:r,getContrastText:F,augmentColor:B,tonalOffset:s},K[t]),o)}const W2=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function B2(e){return Math.round(e*1e5)/1e5}const mg={textTransform:"uppercase"},yg='"Roboto", "Helvetica", "Arial", sans-serif';function H2(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:s=yg,fontSize:o=14,fontWeightLight:c=300,fontWeightRegular:p=400,fontWeightMedium:x=500,fontWeightBold:w=700,htmlFontSize:D=16,allVariants:A,pxToRem:F}=r,B=ce._objectWithoutPropertiesLoose(r,W2),K=o/14,z=F||(H=>`${H/D*K}rem`),$=(H,pe,me,ye,re)=>ce._extends({fontFamily:s,fontWeight:H,fontSize:z(pe),lineHeight:me},s===yg?{letterSpacing:`${B2(ye/pe)}em`}:{},re,A),te={h1:$(c,96,1.167,-1.5),h2:$(c,60,1.2,-.5),h3:$(p,48,1.167,0),h4:$(p,34,1.235,.25),h5:$(p,24,1.334,0),h6:$(x,20,1.6,.15),subtitle1:$(p,16,1.75,.15),subtitle2:$(x,14,1.57,.1),body1:$(p,16,1.5,.15),body2:$(p,14,1.43,.15),button:$(x,14,1.75,.4,mg),caption:$(p,12,1.66,.4),overline:$(p,12,2.66,1,mg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lr(ce._extends({htmlFontSize:D,pxToRem:z,fontFamily:s,fontSize:o,fontWeightLight:c,fontWeightRegular:p,fontWeightMedium:x,fontWeightBold:w},te),B,{clone:!1})}const U2=.2,z2=.14,q2=.12;function dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${U2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${z2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${q2})`].join(",")}const V2=["none",dt(0,2,1,-1,0,1,1,0,0,1,3,0),dt(0,3,1,-2,0,2,2,0,0,1,5,0),dt(0,3,3,-2,0,3,4,0,0,1,8,0),dt(0,2,4,-1,0,4,5,0,0,1,10,0),dt(0,3,5,-1,0,5,8,0,0,1,14,0),dt(0,3,5,-1,0,6,10,0,0,1,18,0),dt(0,4,5,-2,0,7,10,1,0,2,16,1),dt(0,5,5,-3,0,8,10,1,0,3,14,2),dt(0,5,6,-3,0,9,12,1,0,3,16,2),dt(0,6,6,-3,0,10,14,1,0,4,18,3),dt(0,6,7,-4,0,11,15,1,0,4,20,3),dt(0,7,8,-4,0,12,17,2,0,5,22,4),dt(0,7,8,-4,0,13,19,2,0,5,24,4),dt(0,7,9,-4,0,14,21,2,0,5,26,4),dt(0,8,9,-5,0,15,22,2,0,6,28,5),dt(0,8,10,-5,0,16,24,2,0,6,30,5),dt(0,8,11,-5,0,17,26,2,0,6,32,5),dt(0,9,11,-5,0,18,28,2,0,7,34,6),dt(0,9,12,-6,0,19,29,2,0,7,36,6),dt(0,10,13,-6,0,20,31,3,0,8,38,7),dt(0,10,13,-6,0,21,33,3,0,8,40,7),dt(0,10,14,-6,0,22,35,3,0,8,42,7),dt(0,11,14,-7,0,23,36,3,0,9,44,8),dt(0,11,15,-7,0,24,38,3,0,9,46,8)],G2=V2,K2=["duration","easing","delay"],Z2={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},X2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vg(e){return`${Math.round(e)}ms`}function J2(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Q2(e){const t=ce._extends({},Z2,e.easing),r=ce._extends({},X2,e.duration),s=(o=["all"],c={})=>{const{duration:p=r.standard,easing:x=t.easeInOut,delay:w=0}=c;return ce._objectWithoutPropertiesLoose(c,K2),(Array.isArray(o)?o:[o]).map(D=>`${D} ${typeof p=="string"?p:vg(p)} ${x} ${typeof w=="string"?w:vg(w)}`).join(",")};return ce._extends({getAutoHeightDuration:J2,create:s},e,{easing:t,duration:r})}const eM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tM=eM,nM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rM(e={},...t){const{mixins:r={},palette:s={},transitions:o={},typography:c={}}=e,p=ce._objectWithoutPropertiesLoose(e,nM);if(e.vars)throw new Error(eo(18));const x=Y2(s),w=Ad(e);let D=Lr(w,{mixins:b2(w.breakpoints,r),palette:x,shadows:G2.slice(),typography:H2(x,c),transitions:Q2(o),zIndex:ce._extends({},tM)});return D=Lr(D,p),D=t.reduce((A,F)=>Lr(A,F),D),D.unstable_sxConfig=ce._extends({},po,p==null?void 0:p.unstable_sxConfig),D.unstable_sx=function(F){return Rd({sx:F,theme:this})},D}const iM=rM(),S0=iM;function $d({props:e,name:t}){return e2({props:e,name:t,defaultTheme:S0,themeId:Pm})}var go={};const sM=T.getAugmentedNamespace(ce._extends$1),aM=T.getAugmentedNamespace(ce.objectWithoutPropertiesLoose),oM=T.getAugmentedNamespace(FE),uM=T.getAugmentedNamespace(YE),lM=T.getAugmentedNamespace(VE),cM=T.getAugmentedNamespace(JT),fM=T.getAugmentedNamespace(NT),dM=T.getAugmentedNamespace(HT);var ia=p0;Object.defineProperty(go,"__esModule",{value:!0});var hM=go.default=EM,pM=go.shouldForwardProp=$u;go.systemDefaultTheme=void 0;var Kn=ia(sM),Wf=ia(aM),bg=_M(oM),gM=uM;ia(lM);ia(cM);var mM=ia(fM),yM=ia(dM);const vM=["ownerState"],bM=["variants"],xM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function k0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(k0=function(s){return s?r:t})(e)}function _M(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=k0(t);if(r&&r.has(e))return r.get(e);var s={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(c!=="default"&&Object.prototype.hasOwnProperty.call(e,c)){var p=o?Object.getOwnPropertyDescriptor(e,c):null;p&&(p.get||p.set)?Object.defineProperty(s,c,p):s[c]=e[c]}return s.default=e,r&&r.set(e,s),s}function wM(e){return Object.keys(e).length===0}function SM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $u(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kM=go.systemDefaultTheme=(0,mM.default)(),CM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ru({defaultTheme:e,theme:t,themeId:r}){return wM(t)?e:t[r]||t}function DM(e){return e?(t,r)=>r[e]:null}function Fu(e,t){let{ownerState:r}=t,s=(0,Wf.default)(t,vM);const o=typeof e=="function"?e((0,Kn.default)({ownerState:r},s)):e;if(Array.isArray(o))return o.flatMap(c=>Fu(c,(0,Kn.default)({ownerState:r},s)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:c=[]}=o;let x=(0,Wf.default)(o,bM);return c.forEach(w=>{let D=!0;typeof w.props=="function"?D=w.props((0,Kn.default)({ownerState:r},s,r)):Object.keys(w.props).forEach(A=>{(r==null?void 0:r[A])!==w.props[A]&&s[A]!==w.props[A]&&(D=!1)}),D&&(Array.isArray(x)||(x=[x]),x.push(typeof w.style=="function"?w.style((0,Kn.default)({ownerState:r},s,r)):w.style))}),x}return o}function EM(e={}){const{themeId:t,defaultTheme:r=kM,rootShouldForwardProp:s=$u,slotShouldForwardProp:o=$u}=e,c=p=>(0,yM.default)((0,Kn.default)({},p,{theme:Ru((0,Kn.default)({},p,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,(p,x={})=>{(0,bg.internal_processStyles)(p,re=>re.filter(ie=>!(ie!=null&&ie.__mui_systemSx)));const{name:w,slot:D,skipVariantsResolver:A,skipSx:F,overridesResolver:B=DM(CM(D))}=x,K=(0,Wf.default)(x,xM),z=A!==void 0?A:D&&D!=="Root"&&D!=="root"||!1,$=F||!1;let te,H=$u;D==="Root"||D==="root"?H=s:D?H=o:SM(p)&&(H=void 0);const pe=(0,bg.default)(p,(0,Kn.default)({shouldForwardProp:H,label:te},K)),me=re=>typeof re=="function"&&re.__emotion_real!==re||(0,gM.isPlainObject)(re)?ie=>Fu(re,(0,Kn.default)({},ie,{theme:Ru({theme:ie.theme,defaultTheme:r,themeId:t})})):re,ye=(re,...ie)=>{let d=me(re);const Le=ie?ie.map(me):[];w&&B&&Le.push(Ue=>{const Je=Ru((0,Kn.default)({},Ue,{defaultTheme:r,themeId:t}));if(!Je.components||!Je.components[w]||!Je.components[w].styleOverrides)return null;const we=Je.components[w].styleOverrides,ot={};return Object.entries(we).forEach(([xt,Tt])=>{ot[xt]=Fu(Tt,(0,Kn.default)({},Ue,{theme:Je}))}),B(Ue,ot)}),w&&!z&&Le.push(Ue=>{var Je;const we=Ru((0,Kn.default)({},Ue,{defaultTheme:r,themeId:t})),ot=we==null||(Je=we.components)==null||(Je=Je[w])==null?void 0:Je.variants;return Fu({variants:ot},(0,Kn.default)({},Ue,{theme:we}))}),$||Le.push(c);const le=Le.length-ie.length;if(Array.isArray(re)&&le>0){const Ue=new Array(le).fill("");d=[...re,...Ue],d.raw=[...re.raw,...Ue]}const at=pe(d,...Le);return p.muiName&&(at.muiName=p.muiName),at};return pe.withConfig&&(ye.withConfig=pe.withConfig),ye}}const C0=e=>pM(e)&&e!=="classes",TM=hM({themeId:Pm,defaultTheme:S0,rootShouldForwardProp:C0}),Wr=TM,xg=T.React$1.createContext(null);function MM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fd(e,t){var r=function(c){return t&&T.reactExports.isValidElement(c)?t(c):c},s=Object.create(null);return e&&T.reactExports.Children.map(e,function(o){return o}).forEach(function(o){s[o.key]=r(o)}),s}function RM(e,t){e=e||{},t=t||{};function r(A){return A in t?t[A]:e[A]}var s=Object.create(null),o=[];for(var c in e)c in t?o.length&&(s[c]=o,o=[]):o.push(c);var p,x={};for(var w in t){if(s[w])for(p=0;p<s[w].length;p++){var D=s[w][p];x[s[w][p]]=r(D)}x[w]=r(w)}for(p=0;p<o.length;p++)x[o[p]]=r(o[p]);return x}function cs(e,t,r){return r[t]!=null?r[t]:e.props[t]}function AM(e,t){return Fd(e.children,function(r){return T.reactExports.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:cs(r,"appear",e),enter:cs(r,"enter",e),exit:cs(r,"exit",e)})})}function OM(e,t,r){var s=Fd(e.children),o=RM(t,s);return Object.keys(o).forEach(function(c){var p=o[c];if(T.reactExports.isValidElement(p)){var x=c in t,w=c in s,D=t[c],A=T.reactExports.isValidElement(D)&&!D.props.in;w&&(!x||A)?o[c]=T.reactExports.cloneElement(p,{onExited:r.bind(null,p),in:!0,exit:cs(p,"exit",e),enter:cs(p,"enter",e)}):!w&&x&&!A?o[c]=T.reactExports.cloneElement(p,{in:!1}):w&&x&&T.reactExports.isValidElement(D)&&(o[c]=T.reactExports.cloneElement(p,{onExited:r.bind(null,p),in:D.props.in,exit:cs(p,"exit",e),enter:cs(p,"enter",e)}))}}),o}var IM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},PM={component:"div",childFactory:function(t){return t}},Yd=function(e){ce._inheritsLoose(t,e);function t(s,o){var c;c=e.call(this,s,o)||this;var p=c.handleExited.bind(MM(c));return c.state={contextValue:{isMounting:!0},handleExited:p,firstRender:!0},c}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,c){var p=c.children,x=c.handleExited,w=c.firstRender;return{children:w?AM(o,x):OM(o,p,x),firstRender:!1}},r.handleExited=function(o,c){var p=Fd(this.props.children);o.key in p||(o.props.onExited&&o.props.onExited(c),this.mounted&&this.setState(function(x){var w=ce._extends({},x.children);return delete w[o.key],{children:w}}))},r.render=function(){var o=this.props,c=o.component,p=o.childFactory,x=ce._objectWithoutPropertiesLoose(o,["component","childFactory"]),w=this.state.contextValue,D=IM(this.state.children).map(p);return delete x.appear,delete x.enter,delete x.exit,c===null?T.React$1.createElement(xg.Provider,{value:w},D):T.React$1.createElement(xg.Provider,{value:w},T.React$1.createElement(c,x,D))},t}(T.React$1.Component);Yd.propTypes={};Yd.defaultProps=PM;const NM=Yd;function LM(e){const{className:t,classes:r,pulsate:s=!1,rippleX:o,rippleY:c,rippleSize:p,in:x,onExited:w,timeout:D}=e,[A,F]=T.reactExports.useState(!1),B=Zn(t,r.ripple,r.rippleVisible,s&&r.ripplePulsate),K={width:p,height:p,top:-(p/2)+c,left:-(p/2)+o},z=Zn(r.child,A&&r.childLeaving,s&&r.childPulsate);return!x&&!A&&F(!0),T.reactExports.useEffect(()=>{if(!x&&w!=null){const $=setTimeout(w,D);return()=>{clearTimeout($)}}},[w,x,D]),T.jsxRuntimeExports.jsx("span",{className:B,style:K,children:T.jsxRuntimeExports.jsx("span",{className:z})})}const jM=Rl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xn=jM,$M=["center","classes","className"];let Hl=e=>e,_g,wg,Sg,kg;const Bf=550,FM=80,YM=wl(_g||(_g=Hl`
32
+ 0% {
33
+ transform: scale(0);
34
+ opacity: 0.1;
35
+ }
36
+
37
+ 100% {
38
+ transform: scale(1);
39
+ opacity: 0.3;
40
+ }
41
+ `)),WM=wl(wg||(wg=Hl`
42
+ 0% {
43
+ opacity: 1;
44
+ }
45
+
46
+ 100% {
47
+ opacity: 0;
48
+ }
49
+ `)),BM=wl(Sg||(Sg=Hl`
50
+ 0% {
51
+ transform: scale(1);
52
+ }
53
+
54
+ 50% {
55
+ transform: scale(0.92);
56
+ }
57
+
58
+ 100% {
59
+ transform: scale(1);
60
+ }
61
+ `)),HM=Wr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),UM=Wr(LM,{name:"MuiTouchRipple",slot:"Ripple"})(kg||(kg=Hl`
62
+ opacity: 0;
63
+ position: absolute;
64
+
65
+ &.${0} {
66
+ opacity: 0.3;
67
+ transform: scale(1);
68
+ animation-name: ${0};
69
+ animation-duration: ${0}ms;
70
+ animation-timing-function: ${0};
71
+ }
72
+
73
+ &.${0} {
74
+ animation-duration: ${0}ms;
75
+ }
76
+
77
+ & .${0} {
78
+ opacity: 1;
79
+ display: block;
80
+ width: 100%;
81
+ height: 100%;
82
+ border-radius: 50%;
83
+ background-color: currentColor;
84
+ }
85
+
86
+ & .${0} {
87
+ opacity: 0;
88
+ animation-name: ${0};
89
+ animation-duration: ${0}ms;
90
+ animation-timing-function: ${0};
91
+ }
92
+
93
+ & .${0} {
94
+ position: absolute;
95
+ /* @noflip */
96
+ left: 0px;
97
+ top: 0;
98
+ animation-name: ${0};
99
+ animation-duration: 2500ms;
100
+ animation-timing-function: ${0};
101
+ animation-iteration-count: infinite;
102
+ animation-delay: 200ms;
103
+ }
104
+ `),Xn.rippleVisible,YM,Bf,({theme:e})=>e.transitions.easing.easeInOut,Xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xn.child,Xn.childLeaving,WM,Bf,({theme:e})=>e.transitions.easing.easeInOut,Xn.childPulsate,BM,({theme:e})=>e.transitions.easing.easeInOut),zM=T.reactExports.forwardRef(function(t,r){const s=$d({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:c={},className:p}=s,x=ce._objectWithoutPropertiesLoose(s,$M),[w,D]=T.reactExports.useState([]),A=T.reactExports.useRef(0),F=T.reactExports.useRef(null);T.reactExports.useEffect(()=>{F.current&&(F.current(),F.current=null)},[w]);const B=T.reactExports.useRef(!1),K=c2(),z=T.reactExports.useRef(null),$=T.reactExports.useRef(null),te=T.reactExports.useCallback(ye=>{const{pulsate:re,rippleX:ie,rippleY:d,rippleSize:Le,cb:le}=ye;D(at=>[...at,T.jsxRuntimeExports.jsx(UM,{classes:{ripple:Zn(c.ripple,Xn.ripple),rippleVisible:Zn(c.rippleVisible,Xn.rippleVisible),ripplePulsate:Zn(c.ripplePulsate,Xn.ripplePulsate),child:Zn(c.child,Xn.child),childLeaving:Zn(c.childLeaving,Xn.childLeaving),childPulsate:Zn(c.childPulsate,Xn.childPulsate)},timeout:Bf,pulsate:re,rippleX:ie,rippleY:d,rippleSize:Le},A.current)]),A.current+=1,F.current=le},[c]),H=T.reactExports.useCallback((ye={},re={},ie=()=>{})=>{const{pulsate:d=!1,center:Le=o||re.pulsate,fakeElement:le=!1}=re;if((ye==null?void 0:ye.type)==="mousedown"&&B.current){B.current=!1;return}(ye==null?void 0:ye.type)==="touchstart"&&(B.current=!0);const at=le?null:$.current,Ue=at?at.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Je,we,ot;if(Le||ye===void 0||ye.clientX===0&&ye.clientY===0||!ye.clientX&&!ye.touches)Je=Math.round(Ue.width/2),we=Math.round(Ue.height/2);else{const{clientX:xt,clientY:Tt}=ye.touches&&ye.touches.length>0?ye.touches[0]:ye;Je=Math.round(xt-Ue.left),we=Math.round(Tt-Ue.top)}if(Le)ot=Math.sqrt((2*Ue.width**2+Ue.height**2)/3),ot%2===0&&(ot+=1);else{const xt=Math.max(Math.abs((at?at.clientWidth:0)-Je),Je)*2+2,Tt=Math.max(Math.abs((at?at.clientHeight:0)-we),we)*2+2;ot=Math.sqrt(xt**2+Tt**2)}ye!=null&&ye.touches?z.current===null&&(z.current=()=>{te({pulsate:d,rippleX:Je,rippleY:we,rippleSize:ot,cb:ie})},K.start(FM,()=>{z.current&&(z.current(),z.current=null)})):te({pulsate:d,rippleX:Je,rippleY:we,rippleSize:ot,cb:ie})},[o,te,K]),pe=T.reactExports.useCallback(()=>{H({},{pulsate:!0})},[H]),me=T.reactExports.useCallback((ye,re)=>{if(K.clear(),(ye==null?void 0:ye.type)==="touchend"&&z.current){z.current(),z.current=null,K.start(0,()=>{me(ye,re)});return}z.current=null,D(ie=>ie.length>0?ie.slice(1):ie),F.current=re},[K]);return T.reactExports.useImperativeHandle(r,()=>({pulsate:pe,start:H,stop:me}),[pe,H,me]),T.jsxRuntimeExports.jsx(HM,ce._extends({className:Zn(Xn.root,c.root,p),ref:$},x,{children:T.jsxRuntimeExports.jsx(NM,{component:null,exit:!0,children:w})}))}),qM=zM;function VM(e){return Ml("MuiButtonBase",e)}const GM=Rl("MuiButtonBase",["root","disabled","focusVisible"]),KM=GM,ZM=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XM=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:s,classes:o}=e,p=Pd({root:["root",t&&"disabled",r&&"focusVisible"]},VM,o);return r&&s&&(p.root+=` ${s}`),p},JM=Wr("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),QM=T.reactExports.forwardRef(function(t,r){const s=$d({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:c=!1,children:p,className:x,component:w="button",disabled:D=!1,disableRipple:A=!1,disableTouchRipple:F=!1,focusRipple:B=!1,LinkComponent:K="a",onBlur:z,onClick:$,onContextMenu:te,onDragLeave:H,onFocus:pe,onFocusVisible:me,onKeyDown:ye,onKeyUp:re,onMouseDown:ie,onMouseLeave:d,onMouseUp:Le,onTouchEnd:le,onTouchMove:at,onTouchStart:Ue,tabIndex:Je=0,TouchRippleProps:we,touchRippleRef:ot,type:xt}=s,Tt=ce._objectWithoutPropertiesLoose(s,ZM),qe=T.reactExports.useRef(null),Fe=T.reactExports.useRef(null),ft=cg(Fe,ot),{isFocusVisibleRef:Mt,onFocus:Nt,onBlur:_t,ref:jn}=v2(),[qt,Vt]=T.reactExports.useState(!1);D&&qt&&Vt(!1),T.reactExports.useImperativeHandle(o,()=>({focusVisible:()=>{Vt(!0),qe.current.focus()}}),[]);const[sr,Hi]=T.reactExports.useState(!1);T.reactExports.useEffect(()=>{Hi(!0)},[]);const Br=sr&&!A&&!D;T.reactExports.useEffect(()=>{qt&&B&&!A&&sr&&Fe.current.pulsate()},[A,B,qt,sr]);function Lt(Ce,zr,bi=F){return Mu(Yn=>(zr&&zr(Yn),!bi&&Fe.current&&Fe.current[Ce](Yn),!0))}const fn=Lt("start",ie),vi=Lt("stop",te),kn=Lt("stop",H),Hr=Lt("stop",Le),Gt=Lt("stop",Ce=>{qt&&Ce.preventDefault(),d&&d(Ce)}),Ur=Lt("start",Ue),Ui=Lt("stop",le),Kt=Lt("stop",at),dn=Lt("stop",Ce=>{_t(Ce),Mt.current===!1&&Vt(!1),z&&z(Ce)},!1),aa=Mu(Ce=>{qe.current||(qe.current=Ce.currentTarget),Nt(Ce),Mt.current===!0&&(Vt(!0),me&&me(Ce)),pe&&pe(Ce)}),ar=()=>{const Ce=qe.current;return w&&w!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Bt=T.reactExports.useRef(!1),jt=Mu(Ce=>{B&&!Bt.current&&qt&&Fe.current&&Ce.key===" "&&(Bt.current=!0,Fe.current.stop(Ce,()=>{Fe.current.start(Ce)})),Ce.target===Ce.currentTarget&&ar()&&Ce.key===" "&&Ce.preventDefault(),ye&&ye(Ce),Ce.target===Ce.currentTarget&&ar()&&Ce.key==="Enter"&&!D&&(Ce.preventDefault(),$&&$(Ce))}),$n=Mu(Ce=>{B&&Ce.key===" "&&Fe.current&&qt&&!Ce.defaultPrevented&&(Bt.current=!1,Fe.current.stop(Ce,()=>{Fe.current.pulsate(Ce)})),re&&re(Ce),$&&Ce.target===Ce.currentTarget&&ar()&&Ce.key===" "&&!Ce.defaultPrevented&&$(Ce)});let Fn=w;Fn==="button"&&(Tt.href||Tt.to)&&(Fn=K);const fe={};Fn==="button"?(fe.type=xt===void 0?"button":xt,fe.disabled=D):(!Tt.href&&!Tt.to&&(fe.role="button"),D&&(fe["aria-disabled"]=D));const $t=cg(r,jn,qe),br=ce._extends({},s,{centerRipple:c,component:w,disabled:D,disableRipple:A,disableTouchRipple:F,focusRipple:B,tabIndex:Je,focusVisible:qt}),xr=XM(br);return T.jsxRuntimeExports.jsxs(JM,ce._extends({as:Fn,className:Zn(xr.root,x),ownerState:br,onBlur:dn,onClick:$,onContextMenu:vi,onFocus:aa,onKeyDown:jt,onKeyUp:$n,onMouseDown:fn,onMouseLeave:Gt,onMouseUp:Hr,onDragLeave:kn,onTouchEnd:Ui,onTouchMove:Kt,onTouchStart:Ur,ref:$t,tabIndex:D?-1:Je,type:xt},fe,Tt,{children:[p,Br?T.jsxRuntimeExports.jsx(qM,ce._extends({ref:ft,center:c},we)):null]}))}),eR=QM,tR=T.reactExports.createContext(void 0),nR=tR;function rR(){return T.reactExports.useContext(nR)}function iR(e){return Ml("PrivateSwitchBase",e)}Rl("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],aR=e=>{const{classes:t,checked:r,disabled:s,edge:o}=e,c={root:["root",r&&"checked",s&&"disabled",o&&`edge${jr(o)}`],input:["input"]};return Pd(c,iR,t)},oR=Wr(eR)(({ownerState:e})=>ce._extends({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),uR=Wr("input",{shouldForwardProp:C0})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lR=T.reactExports.forwardRef(function(t,r){const{autoFocus:s,checked:o,checkedIcon:c,className:p,defaultChecked:x,disabled:w,disableFocusRipple:D=!1,edge:A=!1,icon:F,id:B,inputProps:K,inputRef:z,name:$,onBlur:te,onChange:H,onFocus:pe,readOnly:me,required:ye=!1,tabIndex:re,type:ie,value:d}=t,Le=ce._objectWithoutPropertiesLoose(t,sR),[le,at]=a2({controlled:o,default:!!x,name:"SwitchBase",state:"checked"}),Ue=rR(),Je=ft=>{pe&&pe(ft),Ue&&Ue.onFocus&&Ue.onFocus(ft)},we=ft=>{te&&te(ft),Ue&&Ue.onBlur&&Ue.onBlur(ft)},ot=ft=>{if(ft.nativeEvent.defaultPrevented)return;const Mt=ft.target.checked;at(Mt),H&&H(ft,Mt)};let xt=w;Ue&&typeof xt>"u"&&(xt=Ue.disabled);const Tt=ie==="checkbox"||ie==="radio",qe=ce._extends({},t,{checked:le,disabled:xt,disableFocusRipple:D,edge:A}),Fe=aR(qe);return T.jsxRuntimeExports.jsxs(oR,ce._extends({component:"span",className:Zn(Fe.root,p),centerRipple:!0,focusRipple:!D,disabled:xt,tabIndex:null,role:void 0,onFocus:Je,onBlur:we,ownerState:qe,ref:r},Le,{children:[T.jsxRuntimeExports.jsx(uR,ce._extends({autoFocus:s,checked:o,defaultChecked:x,className:Fe.input,disabled:xt,id:Tt?B:void 0,name:$,onChange:ot,readOnly:me,ref:z,required:ye,ownerState:qe,tabIndex:re,type:ie},ie==="checkbox"&&d===void 0?{}:{value:d},K)),le?c:F]}))}),cR=lR;function fR(e){return Ml("MuiSwitch",e)}const dR=Rl("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),cn=dR,hR=["className","color","edge","size","sx"],pR=e=>{const{classes:t,edge:r,size:s,color:o,checked:c,disabled:p}=e,x={root:["root",r&&`edge${jr(r)}`,`size${jr(s)}`],switchBase:["switchBase",`color${jr(o)}`,c&&"checked",p&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},w=Pd(x,fR,t);return ce._extends({},t,w)},gR=Wr("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${jr(r.edge)}`],t[`size${jr(r.size)}`]]}})(({ownerState:e})=>ce._extends({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${cn.thumb}`]:{width:16,height:16},[`& .${cn.switchBase}`]:{padding:4,[`&.${cn.checked}`]:{transform:"translateX(16px)"}}})),mR=Wr(cR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${cn.input}`]:t.input},r.color!=="default"&&t[`color${jr(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${cn.checked}`]:{transform:"translateX(20px)"},[`&.${cn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${cn.checked} + .${cn.track}`]:{opacity:.5},[`&.${cn.disabled} + .${cn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${cn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>ce._extends({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dg(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${cn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dg(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?y0(e.palette[t.color].main,.62):m0(e.palette[t.color].main,.55)}`}},[`&.${cn.checked} + .${cn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),yR=Wr("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),vR=Wr("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bR=T.reactExports.forwardRef(function(t,r){const s=$d({props:t,name:"MuiSwitch"}),{className:o,color:c="primary",edge:p=!1,size:x="medium",sx:w}=s,D=ce._objectWithoutPropertiesLoose(s,hR),A=ce._extends({},s,{color:c,edge:p,size:x}),F=pR(A),B=T.jsxRuntimeExports.jsx(vR,{className:F.thumb,ownerState:A});return T.jsxRuntimeExports.jsxs(gR,{className:Zn(F.root,o),sx:w,ownerState:A,children:[T.jsxRuntimeExports.jsx(mR,ce._extends({type:"checkbox",icon:B,checkedIcon:B,ref:r,ownerState:A},D,{classes:ce._extends({},F,{root:F.switchBase})})),T.jsxRuntimeExports.jsx(yR,{className:F.track,ownerState:A})]})}),xR=bR;var Gu={exports:{}};/**
105
+ * @license
106
+ * Lodash <https://lodash.com/>
107
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
108
+ * Released under MIT license <https://lodash.com/license>
109
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
110
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
111
+ */Gu.exports;(function(e,t){(function(){var r,s="4.17.21",o=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",x="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",D=500,A="__lodash_placeholder__",F=1,B=2,K=4,z=1,$=2,te=1,H=2,pe=4,me=8,ye=16,re=32,ie=64,d=128,Le=256,le=512,at=30,Ue="...",Je=800,we=16,ot=1,xt=2,Tt=3,qe=1/0,Fe=9007199254740991,ft=17976931348623157e292,Mt=0/0,Nt=4294967295,_t=Nt-1,jn=Nt>>>1,qt=[["ary",d],["bind",te],["bindKey",H],["curry",me],["curryRight",ye],["flip",le],["partial",re],["partialRight",ie],["rearg",Le]],Vt="[object Arguments]",sr="[object Array]",Hi="[object AsyncFunction]",Br="[object Boolean]",Lt="[object Date]",fn="[object DOMException]",vi="[object Error]",kn="[object Function]",Hr="[object GeneratorFunction]",Gt="[object Map]",Ur="[object Number]",Ui="[object Null]",Kt="[object Object]",dn="[object Promise]",aa="[object Proxy]",ar="[object RegExp]",Bt="[object Set]",jt="[object String]",$n="[object Symbol]",Fn="[object Undefined]",fe="[object WeakMap]",$t="[object WeakSet]",br="[object ArrayBuffer]",xr="[object DataView]",Ce="[object Float32Array]",zr="[object Float64Array]",bi="[object Int8Array]",Yn="[object Int16Array]",hn="[object Int32Array]",or="[object Uint8Array]",_r="[object Uint8ClampedArray]",oa="[object Uint16Array]",xi="[object Uint32Array]",mo=/\b__p \+= '';/g,yo=/\b(__p \+=) '' \+/g,Gl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qr=/&(?:amp|lt|gt|quot|#39);/g,_i=/[&<>"']/g,vo=RegExp(qr.source),bo=RegExp(_i.source),pn=/<%-([\s\S]+?)%>/g,Zt=/<%([\s\S]+?)%>/g,bs=/<%=([\s\S]+?)%>/g,Kl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xo=/^\w*$/,_o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/[\\^$.*+?()[\]{}|]/g,wi=RegExp(wr.source),zi=/^\s+/,xs=/\s/,Zl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xl=/\{\n\/\* \[wrapped with (.+)\] \*/,Jl=/,? & /,wo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ql=/[()=,{}\[\]\/\s]/,ec=/\\(\\)?/g,So=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ko=/\w*$/,Si=/^[-+]0x[0-9a-f]+$/i,Co=/^0b[01]+$/i,ua=/^\[object .+?Constructor\]$/,la=/^0o[0-7]+$/i,_s=/^(?:0|[1-9]\d*)$/,Do=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ws=/($^)/,qi=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",Eo="\\u0300-\\u036f",To="\\ufe20-\\ufe2f",Mo="\\u20d0-\\u20ff",Ro=Eo+To+Mo,Ss="\\u2700-\\u27bf",Ao="a-z\\xdf-\\xf6\\xf8-\\xff",tc="\\xac\\xb1\\xd7\\xf7",Oo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Io="\\u2000-\\u206f",ca=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fa="A-Z\\xc0-\\xd6\\xd8-\\xde",Ht="\\ufe0e\\ufe0f",Vr=tc+Oo+Io+ca,ki="['’]",nc="["+Vi+"]",Po="["+Vr+"]",Ci="["+Ro+"]",da="\\d+",ks="["+Ss+"]",ha="["+Ao+"]",No="[^"+Vi+Vr+da+Ss+Ao+fa+"]",pa="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+Ci+"|"+pa+")",ga="[^"+Vi+"]",Gr="(?:\\ud83c[\\udde6-\\uddff]){2}",ma="[\\ud800-\\udbff][\\udc00-\\udfff]",Di="["+fa+"]",Sr="\\u200d",kr="(?:"+ha+"|"+No+")",ya="(?:"+Di+"|"+No+")",Lo="(?:"+ki+"(?:d|ll|m|re|s|t|ve))?",Ei="(?:"+ki+"(?:D|LL|M|RE|S|T|VE))?",va=Cn+"?",Cs="["+Ht+"]?",jo="(?:"+Sr+"(?:"+[ga,Gr,ma].join("|")+")"+Cs+va+")*",$o="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ba=Cs+va+jo,ic="(?:"+[ks,Gr,ma].join("|")+")"+ba,sc="(?:"+[ga+Ci+"?",Ci,Gr,ma,nc].join("|")+")",xa=RegExp(ki,"g"),ac=RegExp(Ci,"g"),_a=RegExp(pa+"(?="+pa+")|"+sc+ba,"g"),oc=RegExp([Di+"?"+ha+"+"+Lo+"(?="+[Po,Di,"$"].join("|")+")",ya+"+"+Ei+"(?="+[Po,Di+kr,"$"].join("|")+")",Di+"?"+kr+"+"+Lo,Di+"+"+Ei,rc,$o,da,ic].join("|"),"g"),uc=RegExp("["+Sr+Vi+Ro+Ht+"]"),lc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fc=-1,it={};it[Ce]=it[zr]=it[bi]=it[Yn]=it[hn]=it[or]=it[_r]=it[oa]=it[xi]=!0,it[Vt]=it[sr]=it[br]=it[Br]=it[xr]=it[Lt]=it[vi]=it[kn]=it[Gt]=it[Ur]=it[Kt]=it[ar]=it[Bt]=it[jt]=it[fe]=!1;var Qe={};Qe[Vt]=Qe[sr]=Qe[br]=Qe[xr]=Qe[Br]=Qe[Lt]=Qe[Ce]=Qe[zr]=Qe[bi]=Qe[Yn]=Qe[hn]=Qe[Gt]=Qe[Ur]=Qe[Kt]=Qe[ar]=Qe[Bt]=Qe[jt]=Qe[$n]=Qe[or]=Qe[_r]=Qe[oa]=Qe[xi]=!0,Qe[vi]=Qe[kn]=Qe[fe]=!1;var Fo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sa=parseFloat,dc=parseInt,Bo=typeof T.commonjsGlobal=="object"&&T.commonjsGlobal&&T.commonjsGlobal.Object===Object&&T.commonjsGlobal,hc=typeof self=="object"&&self&&self.Object===Object&&self,pt=Bo||hc||Function("return this")(),Ds=t&&!t.nodeType&&t,ur=Ds&&!0&&e&&!e.nodeType&&e,Ho=ur&&ur.exports===Ds,ka=Ho&&Bo.process,gn=function(){try{var k=ur&&ur.require&&ur.require("util").types;return k||ka&&ka.binding&&ka.binding("util")}catch{}}(),a=gn&&gn.isArrayBuffer,l=gn&&gn.isDate,f=gn&&gn.isMap,g=gn&&gn.isRegExp,m=gn&&gn.isSet,y=gn&&gn.isTypedArray;function b(k,I,O){switch(O.length){case 0:return k.call(I);case 1:return k.call(I,O[0]);case 2:return k.call(I,O[0],O[1]);case 3:return k.call(I,O[0],O[1],O[2])}return k.apply(I,O)}function R(k,I,O,G){for(var Z=-1,de=k==null?0:k.length;++Z<de;){var he=k[Z];I(G,he,O(he),k)}return G}function E(k,I){for(var O=-1,G=k==null?0:k.length;++O<G&&I(k[O],O,k)!==!1;);return k}function L(k,I){for(var O=k==null?0:k.length;O--&&I(k[O],O,k)!==!1;);return k}function q(k,I){for(var O=-1,G=k==null?0:k.length;++O<G;)if(!I(k[O],O,k))return!1;return!0}function V(k,I){for(var O=-1,G=k==null?0:k.length,Z=0,de=[];++O<G;){var he=k[O];I(he,O,k)&&(de[Z++]=he)}return de}function W(k,I){var O=k==null?0:k.length;return!!O&&tt(k,I,0)>-1}function ee(k,I,O){for(var G=-1,Z=k==null?0:k.length;++G<Z;)if(O(I,k[G]))return!0;return!1}function ue(k,I){for(var O=-1,G=k==null?0:k.length,Z=Array(G);++O<G;)Z[O]=I(k[O],O,k);return Z}function Te(k,I){for(var O=-1,G=I.length,Z=k.length;++O<G;)k[Z+O]=I[O];return k}function Ee(k,I,O,G){var Z=-1,de=k==null?0:k.length;for(G&&de&&(O=k[++Z]);++Z<de;)O=I(O,k[Z],Z,k);return O}function Rt(k,I,O,G){var Z=k==null?0:k.length;for(G&&Z&&(O=k[--Z]);Z--;)O=I(O,k[Z],Z,k);return O}function gt(k,I){for(var O=-1,G=k==null?0:k.length;++O<G;)if(I(k[O],O,k))return!0;return!1}var Wn=Kr("length");function Bn(k){return k.split("")}function je(k){return k.match(wo)||[]}function Cr(k,I,O){var G;return O(k,function(Z,de,he){if(I(Z,de,he))return G=de,!1}),G}function $e(k,I,O,G){for(var Z=k.length,de=O+(G?1:-1);G?de--:++de<Z;)if(I(k[de],de,k))return de;return-1}function tt(k,I,O){return I===I?mc(k,I,O):$e(k,Es,O)}function Gi(k,I,O,G){for(var Z=O-1,de=k.length;++Z<de;)if(G(k[Z],I))return Z;return-1}function Es(k){return k!==k}function Dn(k,I){var O=k==null?0:k.length;return O?Xt(k,I)/O:Mt}function Kr(k){return function(I){return I==null?r:I[k]}}function mn(k){return function(I){return k==null?r:k[I]}}function lr(k,I,O,G,Z){return Z(k,function(de,he,oe){O=G?(G=!1,de):I(O,de,he,oe)}),O}function Dr(k,I){var O=k.length;for(k.sort(I);O--;)k[O]=k[O].value;return k}function Xt(k,I){for(var O,G=-1,Z=k.length;++G<Z;){var de=I(k[G]);de!==r&&(O=O===r?de:O+de)}return O}function Ki(k,I){for(var O=-1,G=Array(k);++O<k;)G[O]=I(O);return G}function cr(k,I){return ue(I,function(O){return[O,k[O]]})}function Hn(k){return k&&k.slice(0,zo(k)+1).replace(zi,"")}function rn(k){return function(I){return k(I)}}function Ca(k,I){return ue(I,function(O){return k[O]})}function Zi(k,I){return k.has(I)}function Ve(k,I){for(var O=-1,G=k.length;++O<G&&tt(I,k[O],0)>-1;);return O}function Xi(k,I){for(var O=k.length;O--&&tt(I,k[O],0)>-1;);return O}function En(k,I){for(var O=k.length,G=0;O--;)k[O]===I&&++G;return G}var Ti=mn(Fo),pc=mn(wa);function gc(k){return"\\"+Wo[k]}function Uo(k,I){return k==null?r:k[I]}function yn(k){return uc.test(k)}function Da(k){return lc.test(k)}function Er(k){for(var I,O=[];!(I=k.next()).done;)O.push(I.value);return O}function Ts(k){var I=-1,O=Array(k.size);return k.forEach(function(G,Z){O[++I]=[Z,G]}),O}function Mi(k,I){return function(O){return k(I(O))}}function Tn(k,I){for(var O=-1,G=k.length,Z=0,de=[];++O<G;){var he=k[O];(he===I||he===A)&&(k[O]=A,de[Z++]=O)}return de}function Zr(k){var I=-1,O=Array(k.size);return k.forEach(function(G){O[++I]=G}),O}function Ea(k){var I=-1,O=Array(k.size);return k.forEach(function(G){O[++I]=[G,G]}),O}function mc(k,I,O){for(var G=O-1,Z=k.length;++G<Z;)if(k[G]===I)return G;return-1}function Ms(k,I,O){for(var G=O+1;G--;)if(k[G]===I)return G;return G}function Tr(k){return yn(k)?qo(k):Wn(k)}function sn(k){return yn(k)?C(k):Bn(k)}function zo(k){for(var I=k.length;I--&&xs.test(k.charAt(I)););return I}var Ta=mn(Yo);function qo(k){for(var I=_a.lastIndex=0;_a.test(k);)++I;return I}function C(k){return k.match(_a)||[]}function N(k){return k.match(oc)||[]}var Y=function k(I){I=I==null?pt:U.defaults(pt.Object(),I,U.pick(pt,cc));var O=I.Array,G=I.Date,Z=I.Error,de=I.Function,he=I.Math,oe=I.Object,Re=I.RegExp,xe=I.String,Pe=I.TypeError,At=O.prototype,Ft=de.prototype,Ot=oe.prototype,an=I["__core-js_shared__"],fr=Ft.toString,De=Ot.hasOwnProperty,py=0,eh=function(){var n=/[^.]+$/.exec(an&&an.keys&&an.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Vo=Ot.toString,gy=fr.call(oe),my=pt._,yy=Re("^"+fr.call(De).replace(wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Go=Ho?I.Buffer:r,Ri=I.Symbol,Ko=I.Uint8Array,th=Go?Go.allocUnsafe:r,Zo=Mi(oe.getPrototypeOf,oe),nh=oe.create,rh=Ot.propertyIsEnumerable,Xo=At.splice,ih=Ri?Ri.isConcatSpreadable:r,Ma=Ri?Ri.iterator:r,Ji=Ri?Ri.toStringTag:r,Jo=function(){try{var n=rs(oe,"defineProperty");return n({},"",{}),n}catch{}}(),vy=I.clearTimeout!==pt.clearTimeout&&I.clearTimeout,by=G&&G.now!==pt.Date.now&&G.now,xy=I.setTimeout!==pt.setTimeout&&I.setTimeout,Qo=he.ceil,eu=he.floor,yc=oe.getOwnPropertySymbols,_y=Go?Go.isBuffer:r,sh=I.isFinite,wy=At.join,Sy=Mi(oe.keys,oe),It=he.max,Jt=he.min,ky=G.now,Cy=I.parseInt,ah=he.random,Dy=At.reverse,vc=rs(I,"DataView"),Ra=rs(I,"Map"),bc=rs(I,"Promise"),Rs=rs(I,"Set"),Aa=rs(I,"WeakMap"),Oa=rs(oe,"create"),tu=Aa&&new Aa,As={},Ey=is(vc),Ty=is(Ra),My=is(bc),Ry=is(Rs),Ay=is(Aa),nu=Ri?Ri.prototype:r,Ia=nu?nu.valueOf:r,oh=nu?nu.toString:r;function _(n){if(yt(n)&&!Me(n)&&!(n instanceof We)){if(n instanceof Un)return n;if(De.call(n,"__wrapped__"))return up(n)}return new Un(n)}var Os=function(){function n(){}return function(i){if(!mt(i))return{};if(nh)return nh(i);n.prototype=i;var u=new n;return n.prototype=r,u}}();function ru(){}function Un(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}_.templateSettings={escape:pn,evaluate:Zt,interpolate:bs,variable:"",imports:{_}},_.prototype=ru.prototype,_.prototype.constructor=_,Un.prototype=Os(ru.prototype),Un.prototype.constructor=Un;function We(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Nt,this.__views__=[]}function Oy(){var n=new We(this.__wrapped__);return n.__actions__=vn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=vn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=vn(this.__views__),n}function Iy(){if(this.__filtered__){var n=new We(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Py(){var n=this.__wrapped__.value(),i=this.__dir__,u=Me(n),h=i<0,v=u?n.length:0,S=qv(0,v,this.__views__),M=S.start,P=S.end,j=P-M,X=h?P:M-1,J=this.__iteratees__,Q=J.length,se=0,ve=Jt(j,this.__takeCount__);if(!u||!h&&v==j&&ve==j)return Ah(n,this.__actions__);var Se=[];e:for(;j--&&se<ve;){X+=i;for(var Ie=-1,ke=n[X];++Ie<Q;){var Ye=J[Ie],He=Ye.iteratee,An=Ye.type,ln=He(ke);if(An==xt)ke=ln;else if(!ln){if(An==ot)continue e;break e}}Se[se++]=ke}return Se}We.prototype=Os(ru.prototype),We.prototype.constructor=We;function Qi(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var h=n[i];this.set(h[0],h[1])}}function Ny(){this.__data__=Oa?Oa(null):{},this.size=0}function Ly(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function jy(n){var i=this.__data__;if(Oa){var u=i[n];return u===w?r:u}return De.call(i,n)?i[n]:r}function $y(n){var i=this.__data__;return Oa?i[n]!==r:De.call(i,n)}function Fy(n,i){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Oa&&i===r?w:i,this}Qi.prototype.clear=Ny,Qi.prototype.delete=Ly,Qi.prototype.get=jy,Qi.prototype.has=$y,Qi.prototype.set=Fy;function Xr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var h=n[i];this.set(h[0],h[1])}}function Yy(){this.__data__=[],this.size=0}function Wy(n){var i=this.__data__,u=iu(i,n);if(u<0)return!1;var h=i.length-1;return u==h?i.pop():Xo.call(i,u,1),--this.size,!0}function By(n){var i=this.__data__,u=iu(i,n);return u<0?r:i[u][1]}function Hy(n){return iu(this.__data__,n)>-1}function Uy(n,i){var u=this.__data__,h=iu(u,n);return h<0?(++this.size,u.push([n,i])):u[h][1]=i,this}Xr.prototype.clear=Yy,Xr.prototype.delete=Wy,Xr.prototype.get=By,Xr.prototype.has=Hy,Xr.prototype.set=Uy;function Jr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var h=n[i];this.set(h[0],h[1])}}function zy(){this.size=0,this.__data__={hash:new Qi,map:new(Ra||Xr),string:new Qi}}function qy(n){var i=mu(this,n).delete(n);return this.size-=i?1:0,i}function Vy(n){return mu(this,n).get(n)}function Gy(n){return mu(this,n).has(n)}function Ky(n,i){var u=mu(this,n),h=u.size;return u.set(n,i),this.size+=u.size==h?0:1,this}Jr.prototype.clear=zy,Jr.prototype.delete=qy,Jr.prototype.get=Vy,Jr.prototype.has=Gy,Jr.prototype.set=Ky;function es(n){var i=-1,u=n==null?0:n.length;for(this.__data__=new Jr;++i<u;)this.add(n[i])}function Zy(n){return this.__data__.set(n,w),this}function Xy(n){return this.__data__.has(n)}es.prototype.add=es.prototype.push=Zy,es.prototype.has=Xy;function dr(n){var i=this.__data__=new Xr(n);this.size=i.size}function Jy(){this.__data__=new Xr,this.size=0}function Qy(n){var i=this.__data__,u=i.delete(n);return this.size=i.size,u}function ev(n){return this.__data__.get(n)}function tv(n){return this.__data__.has(n)}function nv(n,i){var u=this.__data__;if(u instanceof Xr){var h=u.__data__;if(!Ra||h.length<o-1)return h.push([n,i]),this.size=++u.size,this;u=this.__data__=new Jr(h)}return u.set(n,i),this.size=u.size,this}dr.prototype.clear=Jy,dr.prototype.delete=Qy,dr.prototype.get=ev,dr.prototype.has=tv,dr.prototype.set=nv;function uh(n,i){var u=Me(n),h=!u&&ss(n),v=!u&&!h&&Ni(n),S=!u&&!h&&!v&&Ls(n),M=u||h||v||S,P=M?Ki(n.length,xe):[],j=P.length;for(var X in n)(i||De.call(n,X))&&!(M&&(X=="length"||v&&(X=="offset"||X=="parent")||S&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||ni(X,j)))&&P.push(X);return P}function lh(n){var i=n.length;return i?n[Rc(0,i-1)]:r}function rv(n,i){return yu(vn(n),ts(i,0,n.length))}function iv(n){return yu(vn(n))}function xc(n,i,u){(u!==r&&!hr(n[i],u)||u===r&&!(i in n))&&Qr(n,i,u)}function Pa(n,i,u){var h=n[i];(!(De.call(n,i)&&hr(h,u))||u===r&&!(i in n))&&Qr(n,i,u)}function iu(n,i){for(var u=n.length;u--;)if(hr(n[u][0],i))return u;return-1}function sv(n,i,u,h){return Ai(n,function(v,S,M){i(h,v,u(v),M)}),h}function ch(n,i){return n&&Rr(i,Yt(i),n)}function av(n,i){return n&&Rr(i,xn(i),n)}function Qr(n,i,u){i=="__proto__"&&Jo?Jo(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}function _c(n,i){for(var u=-1,h=i.length,v=O(h),S=n==null;++u<h;)v[u]=S?r:tf(n,i[u]);return v}function ts(n,i,u){return n===n&&(u!==r&&(n=n<=u?n:u),i!==r&&(n=n>=i?n:i)),n}function zn(n,i,u,h,v,S){var M,P=i&F,j=i&B,X=i&K;if(u&&(M=v?u(n,h,v,S):u(n)),M!==r)return M;if(!mt(n))return n;var J=Me(n);if(J){if(M=Gv(n),!P)return vn(n,M)}else{var Q=Qt(n),se=Q==kn||Q==Hr;if(Ni(n))return Ph(n,P);if(Q==Kt||Q==Vt||se&&!v){if(M=j||se?{}:Qh(n),!P)return j?jv(n,av(M,n)):Lv(n,ch(M,n))}else{if(!Qe[Q])return v?n:{};M=Kv(n,Q,P)}}S||(S=new dr);var ve=S.get(n);if(ve)return ve;S.set(n,M),Tp(n)?n.forEach(function(ke){M.add(zn(ke,i,u,ke,n,S))}):Dp(n)&&n.forEach(function(ke,Ye){M.set(Ye,zn(ke,i,u,Ye,n,S))});var Se=X?j?Wc:Yc:j?xn:Yt,Ie=J?r:Se(n);return E(Ie||n,function(ke,Ye){Ie&&(Ye=ke,ke=n[Ye]),Pa(M,Ye,zn(ke,i,u,Ye,n,S))}),M}function ov(n){var i=Yt(n);return function(u){return fh(u,n,i)}}function fh(n,i,u){var h=u.length;if(n==null)return!h;for(n=oe(n);h--;){var v=u[h],S=i[v],M=n[v];if(M===r&&!(v in n)||!S(M))return!1}return!0}function dh(n,i,u){if(typeof n!="function")throw new Pe(p);return Wa(function(){n.apply(r,u)},i)}function Na(n,i,u,h){var v=-1,S=W,M=!0,P=n.length,j=[],X=i.length;if(!P)return j;u&&(i=ue(i,rn(u))),h?(S=ee,M=!1):i.length>=o&&(S=Zi,M=!1,i=new es(i));e:for(;++v<P;){var J=n[v],Q=u==null?J:u(J);if(J=h||J!==0?J:0,M&&Q===Q){for(var se=X;se--;)if(i[se]===Q)continue e;j.push(J)}else S(i,Q,h)||j.push(J)}return j}var Ai=Fh(Mr),hh=Fh(Sc,!0);function uv(n,i){var u=!0;return Ai(n,function(h,v,S){return u=!!i(h,v,S),u}),u}function su(n,i,u){for(var h=-1,v=n.length;++h<v;){var S=n[h],M=i(S);if(M!=null&&(P===r?M===M&&!Rn(M):u(M,P)))var P=M,j=S}return j}function lv(n,i,u,h){var v=n.length;for(u=Ae(u),u<0&&(u=-u>v?0:v+u),h=h===r||h>v?v:Ae(h),h<0&&(h+=v),h=u>h?0:Rp(h);u<h;)n[u++]=i;return n}function ph(n,i){var u=[];return Ai(n,function(h,v,S){i(h,v,S)&&u.push(h)}),u}function Ut(n,i,u,h,v){var S=-1,M=n.length;for(u||(u=Xv),v||(v=[]);++S<M;){var P=n[S];i>0&&u(P)?i>1?Ut(P,i-1,u,h,v):Te(v,P):h||(v[v.length]=P)}return v}var wc=Yh(),gh=Yh(!0);function Mr(n,i){return n&&wc(n,i,Yt)}function Sc(n,i){return n&&gh(n,i,Yt)}function au(n,i){return V(i,function(u){return ri(n[u])})}function ns(n,i){i=Ii(i,n);for(var u=0,h=i.length;n!=null&&u<h;)n=n[Ar(i[u++])];return u&&u==h?n:r}function mh(n,i,u){var h=i(n);return Me(n)?h:Te(h,u(n))}function on(n){return n==null?n===r?Fn:Ui:Ji&&Ji in oe(n)?zv(n):i1(n)}function kc(n,i){return n>i}function cv(n,i){return n!=null&&De.call(n,i)}function fv(n,i){return n!=null&&i in oe(n)}function dv(n,i,u){return n>=Jt(i,u)&&n<It(i,u)}function Cc(n,i,u){for(var h=u?ee:W,v=n[0].length,S=n.length,M=S,P=O(S),j=1/0,X=[];M--;){var J=n[M];M&&i&&(J=ue(J,rn(i))),j=Jt(J.length,j),P[M]=!u&&(i||v>=120&&J.length>=120)?new es(M&&J):r}J=n[0];var Q=-1,se=P[0];e:for(;++Q<v&&X.length<j;){var ve=J[Q],Se=i?i(ve):ve;if(ve=u||ve!==0?ve:0,!(se?Zi(se,Se):h(X,Se,u))){for(M=S;--M;){var Ie=P[M];if(!(Ie?Zi(Ie,Se):h(n[M],Se,u)))continue e}se&&se.push(Se),X.push(ve)}}return X}function hv(n,i,u,h){return Mr(n,function(v,S,M){i(h,u(v),S,M)}),h}function La(n,i,u){i=Ii(i,n),n=rp(n,i);var h=n==null?n:n[Ar(Vn(i))];return h==null?r:b(h,n,u)}function yh(n){return yt(n)&&on(n)==Vt}function pv(n){return yt(n)&&on(n)==br}function gv(n){return yt(n)&&on(n)==Lt}function ja(n,i,u,h,v){return n===i?!0:n==null||i==null||!yt(n)&&!yt(i)?n!==n&&i!==i:mv(n,i,u,h,ja,v)}function mv(n,i,u,h,v,S){var M=Me(n),P=Me(i),j=M?sr:Qt(n),X=P?sr:Qt(i);j=j==Vt?Kt:j,X=X==Vt?Kt:X;var J=j==Kt,Q=X==Kt,se=j==X;if(se&&Ni(n)){if(!Ni(i))return!1;M=!0,J=!1}if(se&&!J)return S||(S=new dr),M||Ls(n)?Zh(n,i,u,h,v,S):Hv(n,i,j,u,h,v,S);if(!(u&z)){var ve=J&&De.call(n,"__wrapped__"),Se=Q&&De.call(i,"__wrapped__");if(ve||Se){var Ie=ve?n.value():n,ke=Se?i.value():i;return S||(S=new dr),v(Ie,ke,u,h,S)}}return se?(S||(S=new dr),Uv(n,i,u,h,v,S)):!1}function yv(n){return yt(n)&&Qt(n)==Gt}function Dc(n,i,u,h){var v=u.length,S=v,M=!h;if(n==null)return!S;for(n=oe(n);v--;){var P=u[v];if(M&&P[2]?P[1]!==n[P[0]]:!(P[0]in n))return!1}for(;++v<S;){P=u[v];var j=P[0],X=n[j],J=P[1];if(M&&P[2]){if(X===r&&!(j in n))return!1}else{var Q=new dr;if(h)var se=h(X,J,j,n,i,Q);if(!(se===r?ja(J,X,z|$,h,Q):se))return!1}}return!0}function vh(n){if(!mt(n)||Qv(n))return!1;var i=ri(n)?yy:ua;return i.test(is(n))}function vv(n){return yt(n)&&on(n)==ar}function bv(n){return yt(n)&&Qt(n)==Bt}function xv(n){return yt(n)&&Su(n.length)&&!!it[on(n)]}function bh(n){return typeof n=="function"?n:n==null?_n:typeof n=="object"?Me(n)?wh(n[0],n[1]):_h(n):Wp(n)}function Ec(n){if(!Ya(n))return Sy(n);var i=[];for(var u in oe(n))De.call(n,u)&&u!="constructor"&&i.push(u);return i}function _v(n){if(!mt(n))return r1(n);var i=Ya(n),u=[];for(var h in n)h=="constructor"&&(i||!De.call(n,h))||u.push(h);return u}function Tc(n,i){return n<i}function xh(n,i){var u=-1,h=bn(n)?O(n.length):[];return Ai(n,function(v,S,M){h[++u]=i(v,S,M)}),h}function _h(n){var i=Hc(n);return i.length==1&&i[0][2]?tp(i[0][0],i[0][1]):function(u){return u===n||Dc(u,n,i)}}function wh(n,i){return zc(n)&&ep(i)?tp(Ar(n),i):function(u){var h=tf(u,n);return h===r&&h===i?nf(u,n):ja(i,h,z|$)}}function ou(n,i,u,h,v){n!==i&&wc(i,function(S,M){if(v||(v=new dr),mt(S))wv(n,i,M,u,ou,h,v);else{var P=h?h(Vc(n,M),S,M+"",n,i,v):r;P===r&&(P=S),xc(n,M,P)}},xn)}function wv(n,i,u,h,v,S,M){var P=Vc(n,u),j=Vc(i,u),X=M.get(j);if(X){xc(n,u,X);return}var J=S?S(P,j,u+"",n,i,M):r,Q=J===r;if(Q){var se=Me(j),ve=!se&&Ni(j),Se=!se&&!ve&&Ls(j);J=j,se||ve||Se?Me(P)?J=P:wt(P)?J=vn(P):ve?(Q=!1,J=Ph(j,!0)):Se?(Q=!1,J=Nh(j,!0)):J=[]:Ba(j)||ss(j)?(J=P,ss(P)?J=Ap(P):(!mt(P)||ri(P))&&(J=Qh(j))):Q=!1}Q&&(M.set(j,J),v(J,j,h,S,M),M.delete(j)),xc(n,u,J)}function Sh(n,i){var u=n.length;if(u)return i+=i<0?u:0,ni(i,u)?n[i]:r}function kh(n,i,u){i.length?i=ue(i,function(S){return Me(S)?function(M){return ns(M,S.length===1?S[0]:S)}:S}):i=[_n];var h=-1;i=ue(i,rn(_e()));var v=xh(n,function(S,M,P){var j=ue(i,function(X){return X(S)});return{criteria:j,index:++h,value:S}});return Dr(v,function(S,M){return Nv(S,M,u)})}function Sv(n,i){return Ch(n,i,function(u,h){return nf(n,h)})}function Ch(n,i,u){for(var h=-1,v=i.length,S={};++h<v;){var M=i[h],P=ns(n,M);u(P,M)&&$a(S,Ii(M,n),P)}return S}function kv(n){return function(i){return ns(i,n)}}function Mc(n,i,u,h){var v=h?Gi:tt,S=-1,M=i.length,P=n;for(n===i&&(i=vn(i)),u&&(P=ue(n,rn(u)));++S<M;)for(var j=0,X=i[S],J=u?u(X):X;(j=v(P,J,j,h))>-1;)P!==n&&Xo.call(P,j,1),Xo.call(n,j,1);return n}function Dh(n,i){for(var u=n?i.length:0,h=u-1;u--;){var v=i[u];if(u==h||v!==S){var S=v;ni(v)?Xo.call(n,v,1):Ic(n,v)}}return n}function Rc(n,i){return n+eu(ah()*(i-n+1))}function Cv(n,i,u,h){for(var v=-1,S=It(Qo((i-n)/(u||1)),0),M=O(S);S--;)M[h?S:++v]=n,n+=u;return M}function Ac(n,i){var u="";if(!n||i<1||i>Fe)return u;do i%2&&(u+=n),i=eu(i/2),i&&(n+=n);while(i);return u}function Ne(n,i){return Gc(np(n,i,_n),n+"")}function Dv(n){return lh(js(n))}function Ev(n,i){var u=js(n);return yu(u,ts(i,0,u.length))}function $a(n,i,u,h){if(!mt(n))return n;i=Ii(i,n);for(var v=-1,S=i.length,M=S-1,P=n;P!=null&&++v<S;){var j=Ar(i[v]),X=u;if(j==="__proto__"||j==="constructor"||j==="prototype")return n;if(v!=M){var J=P[j];X=h?h(J,j,P):r,X===r&&(X=mt(J)?J:ni(i[v+1])?[]:{})}Pa(P,j,X),P=P[j]}return n}var Eh=tu?function(n,i){return tu.set(n,i),n}:_n,Tv=Jo?function(n,i){return Jo(n,"toString",{configurable:!0,enumerable:!1,value:sf(i),writable:!0})}:_n;function Mv(n){return yu(js(n))}function qn(n,i,u){var h=-1,v=n.length;i<0&&(i=-i>v?0:v+i),u=u>v?v:u,u<0&&(u+=v),v=i>u?0:u-i>>>0,i>>>=0;for(var S=O(v);++h<v;)S[h]=n[h+i];return S}function Rv(n,i){var u;return Ai(n,function(h,v,S){return u=i(h,v,S),!u}),!!u}function uu(n,i,u){var h=0,v=n==null?h:n.length;if(typeof i=="number"&&i===i&&v<=jn){for(;h<v;){var S=h+v>>>1,M=n[S];M!==null&&!Rn(M)&&(u?M<=i:M<i)?h=S+1:v=S}return v}return Oc(n,i,_n,u)}function Oc(n,i,u,h){var v=0,S=n==null?0:n.length;if(S===0)return 0;i=u(i);for(var M=i!==i,P=i===null,j=Rn(i),X=i===r;v<S;){var J=eu((v+S)/2),Q=u(n[J]),se=Q!==r,ve=Q===null,Se=Q===Q,Ie=Rn(Q);if(M)var ke=h||Se;else X?ke=Se&&(h||se):P?ke=Se&&se&&(h||!ve):j?ke=Se&&se&&!ve&&(h||!Ie):ve||Ie?ke=!1:ke=h?Q<=i:Q<i;ke?v=J+1:S=J}return Jt(S,_t)}function Th(n,i){for(var u=-1,h=n.length,v=0,S=[];++u<h;){var M=n[u],P=i?i(M):M;if(!u||!hr(P,j)){var j=P;S[v++]=M===0?0:M}}return S}function Mh(n){return typeof n=="number"?n:Rn(n)?Mt:+n}function Mn(n){if(typeof n=="string")return n;if(Me(n))return ue(n,Mn)+"";if(Rn(n))return oh?oh.call(n):"";var i=n+"";return i=="0"&&1/n==-qe?"-0":i}function Oi(n,i,u){var h=-1,v=W,S=n.length,M=!0,P=[],j=P;if(u)M=!1,v=ee;else if(S>=o){var X=i?null:Wv(n);if(X)return Zr(X);M=!1,v=Zi,j=new es}else j=i?[]:P;e:for(;++h<S;){var J=n[h],Q=i?i(J):J;if(J=u||J!==0?J:0,M&&Q===Q){for(var se=j.length;se--;)if(j[se]===Q)continue e;i&&j.push(Q),P.push(J)}else v(j,Q,u)||(j!==P&&j.push(Q),P.push(J))}return P}function Ic(n,i){return i=Ii(i,n),n=rp(n,i),n==null||delete n[Ar(Vn(i))]}function Rh(n,i,u,h){return $a(n,i,u(ns(n,i)),h)}function lu(n,i,u,h){for(var v=n.length,S=h?v:-1;(h?S--:++S<v)&&i(n[S],S,n););return u?qn(n,h?0:S,h?S+1:v):qn(n,h?S+1:0,h?v:S)}function Ah(n,i){var u=n;return u instanceof We&&(u=u.value()),Ee(i,function(h,v){return v.func.apply(v.thisArg,Te([h],v.args))},u)}function Pc(n,i,u){var h=n.length;if(h<2)return h?Oi(n[0]):[];for(var v=-1,S=O(h);++v<h;)for(var M=n[v],P=-1;++P<h;)P!=v&&(S[v]=Na(S[v]||M,n[P],i,u));return Oi(Ut(S,1),i,u)}function Oh(n,i,u){for(var h=-1,v=n.length,S=i.length,M={};++h<v;){var P=h<S?i[h]:r;u(M,n[h],P)}return M}function Nc(n){return wt(n)?n:[]}function Lc(n){return typeof n=="function"?n:_n}function Ii(n,i){return Me(n)?n:zc(n,i)?[n]:op(et(n))}var Av=Ne;function Pi(n,i,u){var h=n.length;return u=u===r?h:u,!i&&u>=h?n:qn(n,i,u)}var Ih=vy||function(n){return pt.clearTimeout(n)};function Ph(n,i){if(i)return n.slice();var u=n.length,h=th?th(u):new n.constructor(u);return n.copy(h),h}function jc(n){var i=new n.constructor(n.byteLength);return new Ko(i).set(new Ko(n)),i}function Ov(n,i){var u=i?jc(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function Iv(n){var i=new n.constructor(n.source,ko.exec(n));return i.lastIndex=n.lastIndex,i}function Pv(n){return Ia?oe(Ia.call(n)):{}}function Nh(n,i){var u=i?jc(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Lh(n,i){if(n!==i){var u=n!==r,h=n===null,v=n===n,S=Rn(n),M=i!==r,P=i===null,j=i===i,X=Rn(i);if(!P&&!X&&!S&&n>i||S&&M&&j&&!P&&!X||h&&M&&j||!u&&j||!v)return 1;if(!h&&!S&&!X&&n<i||X&&u&&v&&!h&&!S||P&&u&&v||!M&&v||!j)return-1}return 0}function Nv(n,i,u){for(var h=-1,v=n.criteria,S=i.criteria,M=v.length,P=u.length;++h<M;){var j=Lh(v[h],S[h]);if(j){if(h>=P)return j;var X=u[h];return j*(X=="desc"?-1:1)}}return n.index-i.index}function jh(n,i,u,h){for(var v=-1,S=n.length,M=u.length,P=-1,j=i.length,X=It(S-M,0),J=O(j+X),Q=!h;++P<j;)J[P]=i[P];for(;++v<M;)(Q||v<S)&&(J[u[v]]=n[v]);for(;X--;)J[P++]=n[v++];return J}function $h(n,i,u,h){for(var v=-1,S=n.length,M=-1,P=u.length,j=-1,X=i.length,J=It(S-P,0),Q=O(J+X),se=!h;++v<J;)Q[v]=n[v];for(var ve=v;++j<X;)Q[ve+j]=i[j];for(;++M<P;)(se||v<S)&&(Q[ve+u[M]]=n[v++]);return Q}function vn(n,i){var u=-1,h=n.length;for(i||(i=O(h));++u<h;)i[u]=n[u];return i}function Rr(n,i,u,h){var v=!u;u||(u={});for(var S=-1,M=i.length;++S<M;){var P=i[S],j=h?h(u[P],n[P],P,u,n):r;j===r&&(j=n[P]),v?Qr(u,P,j):Pa(u,P,j)}return u}function Lv(n,i){return Rr(n,Uc(n),i)}function jv(n,i){return Rr(n,Xh(n),i)}function cu(n,i){return function(u,h){var v=Me(u)?R:sv,S=i?i():{};return v(u,n,_e(h,2),S)}}function Is(n){return Ne(function(i,u){var h=-1,v=u.length,S=v>1?u[v-1]:r,M=v>2?u[2]:r;for(S=n.length>3&&typeof S=="function"?(v--,S):r,M&&un(u[0],u[1],M)&&(S=v<3?r:S,v=1),i=oe(i);++h<v;){var P=u[h];P&&n(i,P,h,S)}return i})}function Fh(n,i){return function(u,h){if(u==null)return u;if(!bn(u))return n(u,h);for(var v=u.length,S=i?v:-1,M=oe(u);(i?S--:++S<v)&&h(M[S],S,M)!==!1;);return u}}function Yh(n){return function(i,u,h){for(var v=-1,S=oe(i),M=h(i),P=M.length;P--;){var j=M[n?P:++v];if(u(S[j],j,S)===!1)break}return i}}function $v(n,i,u){var h=i&te,v=Fa(n);function S(){var M=this&&this!==pt&&this instanceof S?v:n;return M.apply(h?u:this,arguments)}return S}function Wh(n){return function(i){i=et(i);var u=yn(i)?sn(i):r,h=u?u[0]:i.charAt(0),v=u?Pi(u,1).join(""):i.slice(1);return h[n]()+v}}function Ps(n){return function(i){return Ee(Fp($p(i).replace(xa,"")),n,"")}}function Fa(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var u=Os(n.prototype),h=n.apply(u,i);return mt(h)?h:u}}function Fv(n,i,u){var h=Fa(n);function v(){for(var S=arguments.length,M=O(S),P=S,j=Ns(v);P--;)M[P]=arguments[P];var X=S<3&&M[0]!==j&&M[S-1]!==j?[]:Tn(M,j);if(S-=X.length,S<u)return qh(n,i,fu,v.placeholder,r,M,X,r,r,u-S);var J=this&&this!==pt&&this instanceof v?h:n;return b(J,this,M)}return v}function Bh(n){return function(i,u,h){var v=oe(i);if(!bn(i)){var S=_e(u,3);i=Yt(i),u=function(P){return S(v[P],P,v)}}var M=n(i,u,h);return M>-1?v[S?i[M]:M]:r}}function Hh(n){return ti(function(i){var u=i.length,h=u,v=Un.prototype.thru;for(n&&i.reverse();h--;){var S=i[h];if(typeof S!="function")throw new Pe(p);if(v&&!M&&gu(S)=="wrapper")var M=new Un([],!0)}for(h=M?h:u;++h<u;){S=i[h];var P=gu(S),j=P=="wrapper"?Bc(S):r;j&&qc(j[0])&&j[1]==(d|me|re|Le)&&!j[4].length&&j[9]==1?M=M[gu(j[0])].apply(M,j[3]):M=S.length==1&&qc(S)?M[P]():M.thru(S)}return function(){var X=arguments,J=X[0];if(M&&X.length==1&&Me(J))return M.plant(J).value();for(var Q=0,se=u?i[Q].apply(this,X):J;++Q<u;)se=i[Q].call(this,se);return se}})}function fu(n,i,u,h,v,S,M,P,j,X){var J=i&d,Q=i&te,se=i&H,ve=i&(me|ye),Se=i&le,Ie=se?r:Fa(n);function ke(){for(var Ye=arguments.length,He=O(Ye),An=Ye;An--;)He[An]=arguments[An];if(ve)var ln=Ns(ke),On=En(He,ln);if(h&&(He=jh(He,h,v,ve)),S&&(He=$h(He,S,M,ve)),Ye-=On,ve&&Ye<X){var St=Tn(He,ln);return qh(n,i,fu,ke.placeholder,u,He,St,P,j,X-Ye)}var pr=Q?u:this,si=se?pr[n]:n;return Ye=He.length,P?He=s1(He,P):Se&&Ye>1&&He.reverse(),J&&j<Ye&&(He.length=j),this&&this!==pt&&this instanceof ke&&(si=Ie||Fa(si)),si.apply(pr,He)}return ke}function Uh(n,i){return function(u,h){return hv(u,n,i(h),{})}}function du(n,i){return function(u,h){var v;if(u===r&&h===r)return i;if(u!==r&&(v=u),h!==r){if(v===r)return h;typeof u=="string"||typeof h=="string"?(u=Mn(u),h=Mn(h)):(u=Mh(u),h=Mh(h)),v=n(u,h)}return v}}function $c(n){return ti(function(i){return i=ue(i,rn(_e())),Ne(function(u){var h=this;return n(i,function(v){return b(v,h,u)})})})}function hu(n,i){i=i===r?" ":Mn(i);var u=i.length;if(u<2)return u?Ac(i,n):i;var h=Ac(i,Qo(n/Tr(i)));return yn(i)?Pi(sn(h),0,n).join(""):h.slice(0,n)}function Yv(n,i,u,h){var v=i&te,S=Fa(n);function M(){for(var P=-1,j=arguments.length,X=-1,J=h.length,Q=O(J+j),se=this&&this!==pt&&this instanceof M?S:n;++X<J;)Q[X]=h[X];for(;j--;)Q[X++]=arguments[++P];return b(se,v?u:this,Q)}return M}function zh(n){return function(i,u,h){return h&&typeof h!="number"&&un(i,u,h)&&(u=h=r),i=ii(i),u===r?(u=i,i=0):u=ii(u),h=h===r?i<u?1:-1:ii(h),Cv(i,u,h,n)}}function pu(n){return function(i,u){return typeof i=="string"&&typeof u=="string"||(i=Gn(i),u=Gn(u)),n(i,u)}}function qh(n,i,u,h,v,S,M,P,j,X){var J=i&me,Q=J?M:r,se=J?r:M,ve=J?S:r,Se=J?r:S;i|=J?re:ie,i&=~(J?ie:re),i&pe||(i&=~(te|H));var Ie=[n,i,v,ve,Q,Se,se,P,j,X],ke=u.apply(r,Ie);return qc(n)&&ip(ke,Ie),ke.placeholder=h,sp(ke,n,i)}function Fc(n){var i=he[n];return function(u,h){if(u=Gn(u),h=h==null?0:Jt(Ae(h),292),h&&sh(u)){var v=(et(u)+"e").split("e"),S=i(v[0]+"e"+(+v[1]+h));return v=(et(S)+"e").split("e"),+(v[0]+"e"+(+v[1]-h))}return i(u)}}var Wv=Rs&&1/Zr(new Rs([,-0]))[1]==qe?function(n){return new Rs(n)}:uf;function Vh(n){return function(i){var u=Qt(i);return u==Gt?Ts(i):u==Bt?Ea(i):cr(i,n(i))}}function ei(n,i,u,h,v,S,M,P){var j=i&H;if(!j&&typeof n!="function")throw new Pe(p);var X=h?h.length:0;if(X||(i&=~(re|ie),h=v=r),M=M===r?M:It(Ae(M),0),P=P===r?P:Ae(P),X-=v?v.length:0,i&ie){var J=h,Q=v;h=v=r}var se=j?r:Bc(n),ve=[n,i,u,h,v,J,Q,S,M,P];if(se&&n1(ve,se),n=ve[0],i=ve[1],u=ve[2],h=ve[3],v=ve[4],P=ve[9]=ve[9]===r?j?0:n.length:It(ve[9]-X,0),!P&&i&(me|ye)&&(i&=~(me|ye)),!i||i==te)var Se=$v(n,i,u);else i==me||i==ye?Se=Fv(n,i,P):(i==re||i==(te|re))&&!v.length?Se=Yv(n,i,u,h):Se=fu.apply(r,ve);var Ie=se?Eh:ip;return sp(Ie(Se,ve),n,i)}function Gh(n,i,u,h){return n===r||hr(n,Ot[u])&&!De.call(h,u)?i:n}function Kh(n,i,u,h,v,S){return mt(n)&&mt(i)&&(S.set(i,n),ou(n,i,r,Kh,S),S.delete(i)),n}function Bv(n){return Ba(n)?r:n}function Zh(n,i,u,h,v,S){var M=u&z,P=n.length,j=i.length;if(P!=j&&!(M&&j>P))return!1;var X=S.get(n),J=S.get(i);if(X&&J)return X==i&&J==n;var Q=-1,se=!0,ve=u&$?new es:r;for(S.set(n,i),S.set(i,n);++Q<P;){var Se=n[Q],Ie=i[Q];if(h)var ke=M?h(Ie,Se,Q,i,n,S):h(Se,Ie,Q,n,i,S);if(ke!==r){if(ke)continue;se=!1;break}if(ve){if(!gt(i,function(Ye,He){if(!Zi(ve,He)&&(Se===Ye||v(Se,Ye,u,h,S)))return ve.push(He)})){se=!1;break}}else if(!(Se===Ie||v(Se,Ie,u,h,S))){se=!1;break}}return S.delete(n),S.delete(i),se}function Hv(n,i,u,h,v,S,M){switch(u){case xr:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case br:return!(n.byteLength!=i.byteLength||!S(new Ko(n),new Ko(i)));case Br:case Lt:case Ur:return hr(+n,+i);case vi:return n.name==i.name&&n.message==i.message;case ar:case jt:return n==i+"";case Gt:var P=Ts;case Bt:var j=h&z;if(P||(P=Zr),n.size!=i.size&&!j)return!1;var X=M.get(n);if(X)return X==i;h|=$,M.set(n,i);var J=Zh(P(n),P(i),h,v,S,M);return M.delete(n),J;case $n:if(Ia)return Ia.call(n)==Ia.call(i)}return!1}function Uv(n,i,u,h,v,S){var M=u&z,P=Yc(n),j=P.length,X=Yc(i),J=X.length;if(j!=J&&!M)return!1;for(var Q=j;Q--;){var se=P[Q];if(!(M?se in i:De.call(i,se)))return!1}var ve=S.get(n),Se=S.get(i);if(ve&&Se)return ve==i&&Se==n;var Ie=!0;S.set(n,i),S.set(i,n);for(var ke=M;++Q<j;){se=P[Q];var Ye=n[se],He=i[se];if(h)var An=M?h(He,Ye,se,i,n,S):h(Ye,He,se,n,i,S);if(!(An===r?Ye===He||v(Ye,He,u,h,S):An)){Ie=!1;break}ke||(ke=se=="constructor")}if(Ie&&!ke){var ln=n.constructor,On=i.constructor;ln!=On&&"constructor"in n&&"constructor"in i&&!(typeof ln=="function"&&ln instanceof ln&&typeof On=="function"&&On instanceof On)&&(Ie=!1)}return S.delete(n),S.delete(i),Ie}function ti(n){return Gc(np(n,r,fp),n+"")}function Yc(n){return mh(n,Yt,Uc)}function Wc(n){return mh(n,xn,Xh)}var Bc=tu?function(n){return tu.get(n)}:uf;function gu(n){for(var i=n.name+"",u=As[i],h=De.call(As,i)?u.length:0;h--;){var v=u[h],S=v.func;if(S==null||S==n)return v.name}return i}function Ns(n){var i=De.call(_,"placeholder")?_:n;return i.placeholder}function _e(){var n=_.iteratee||af;return n=n===af?bh:n,arguments.length?n(arguments[0],arguments[1]):n}function mu(n,i){var u=n.__data__;return Jv(i)?u[typeof i=="string"?"string":"hash"]:u.map}function Hc(n){for(var i=Yt(n),u=i.length;u--;){var h=i[u],v=n[h];i[u]=[h,v,ep(v)]}return i}function rs(n,i){var u=Uo(n,i);return vh(u)?u:r}function zv(n){var i=De.call(n,Ji),u=n[Ji];try{n[Ji]=r;var h=!0}catch{}var v=Vo.call(n);return h&&(i?n[Ji]=u:delete n[Ji]),v}var Uc=yc?function(n){return n==null?[]:(n=oe(n),V(yc(n),function(i){return rh.call(n,i)}))}:lf,Xh=yc?function(n){for(var i=[];n;)Te(i,Uc(n)),n=Zo(n);return i}:lf,Qt=on;(vc&&Qt(new vc(new ArrayBuffer(1)))!=xr||Ra&&Qt(new Ra)!=Gt||bc&&Qt(bc.resolve())!=dn||Rs&&Qt(new Rs)!=Bt||Aa&&Qt(new Aa)!=fe)&&(Qt=function(n){var i=on(n),u=i==Kt?n.constructor:r,h=u?is(u):"";if(h)switch(h){case Ey:return xr;case Ty:return Gt;case My:return dn;case Ry:return Bt;case Ay:return fe}return i});function qv(n,i,u){for(var h=-1,v=u.length;++h<v;){var S=u[h],M=S.size;switch(S.type){case"drop":n+=M;break;case"dropRight":i-=M;break;case"take":i=Jt(i,n+M);break;case"takeRight":n=It(n,i-M);break}}return{start:n,end:i}}function Vv(n){var i=n.match(Xl);return i?i[1].split(Jl):[]}function Jh(n,i,u){i=Ii(i,n);for(var h=-1,v=i.length,S=!1;++h<v;){var M=Ar(i[h]);if(!(S=n!=null&&u(n,M)))break;n=n[M]}return S||++h!=v?S:(v=n==null?0:n.length,!!v&&Su(v)&&ni(M,v)&&(Me(n)||ss(n)))}function Gv(n){var i=n.length,u=new n.constructor(i);return i&&typeof n[0]=="string"&&De.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Qh(n){return typeof n.constructor=="function"&&!Ya(n)?Os(Zo(n)):{}}function Kv(n,i,u){var h=n.constructor;switch(i){case br:return jc(n);case Br:case Lt:return new h(+n);case xr:return Ov(n,u);case Ce:case zr:case bi:case Yn:case hn:case or:case _r:case oa:case xi:return Nh(n,u);case Gt:return new h;case Ur:case jt:return new h(n);case ar:return Iv(n);case Bt:return new h;case $n:return Pv(n)}}function Zv(n,i){var u=i.length;if(!u)return n;var h=u-1;return i[h]=(u>1?"& ":"")+i[h],i=i.join(u>2?", ":" "),n.replace(Zl,`{
112
+ /* [wrapped with `+i+`] */
113
+ `)}function Xv(n){return Me(n)||ss(n)||!!(ih&&n&&n[ih])}function ni(n,i){var u=typeof n;return i=i??Fe,!!i&&(u=="number"||u!="symbol"&&_s.test(n))&&n>-1&&n%1==0&&n<i}function un(n,i,u){if(!mt(u))return!1;var h=typeof i;return(h=="number"?bn(u)&&ni(i,u.length):h=="string"&&i in u)?hr(u[i],n):!1}function zc(n,i){if(Me(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Rn(n)?!0:xo.test(n)||!Kl.test(n)||i!=null&&n in oe(i)}function Jv(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function qc(n){var i=gu(n),u=_[i];if(typeof u!="function"||!(i in We.prototype))return!1;if(n===u)return!0;var h=Bc(u);return!!h&&n===h[0]}function Qv(n){return!!eh&&eh in n}var e1=an?ri:cf;function Ya(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||Ot;return n===u}function ep(n){return n===n&&!mt(n)}function tp(n,i){return function(u){return u==null?!1:u[n]===i&&(i!==r||n in oe(u))}}function t1(n){var i=_u(n,function(h){return u.size===D&&u.clear(),h}),u=i.cache;return i}function n1(n,i){var u=n[1],h=i[1],v=u|h,S=v<(te|H|d),M=h==d&&u==me||h==d&&u==Le&&n[7].length<=i[8]||h==(d|Le)&&i[7].length<=i[8]&&u==me;if(!(S||M))return n;h&te&&(n[2]=i[2],v|=u&te?0:pe);var P=i[3];if(P){var j=n[3];n[3]=j?jh(j,P,i[4]):P,n[4]=j?Tn(n[3],A):i[4]}return P=i[5],P&&(j=n[5],n[5]=j?$h(j,P,i[6]):P,n[6]=j?Tn(n[5],A):i[6]),P=i[7],P&&(n[7]=P),h&d&&(n[8]=n[8]==null?i[8]:Jt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=v,n}function r1(n){var i=[];if(n!=null)for(var u in oe(n))i.push(u);return i}function i1(n){return Vo.call(n)}function np(n,i,u){return i=It(i===r?n.length-1:i,0),function(){for(var h=arguments,v=-1,S=It(h.length-i,0),M=O(S);++v<S;)M[v]=h[i+v];v=-1;for(var P=O(i+1);++v<i;)P[v]=h[v];return P[i]=u(M),b(n,this,P)}}function rp(n,i){return i.length<2?n:ns(n,qn(i,0,-1))}function s1(n,i){for(var u=n.length,h=Jt(i.length,u),v=vn(n);h--;){var S=i[h];n[h]=ni(S,u)?v[S]:r}return n}function Vc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var ip=ap(Eh),Wa=xy||function(n,i){return pt.setTimeout(n,i)},Gc=ap(Tv);function sp(n,i,u){var h=i+"";return Gc(n,Zv(h,a1(Vv(h),u)))}function ap(n){var i=0,u=0;return function(){var h=ky(),v=we-(h-u);if(u=h,v>0){if(++i>=Je)return arguments[0]}else i=0;return n.apply(r,arguments)}}function yu(n,i){var u=-1,h=n.length,v=h-1;for(i=i===r?h:i;++u<i;){var S=Rc(u,v),M=n[S];n[S]=n[u],n[u]=M}return n.length=i,n}var op=t1(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(_o,function(u,h,v,S){i.push(v?S.replace(ec,"$1"):h||u)}),i});function Ar(n){if(typeof n=="string"||Rn(n))return n;var i=n+"";return i=="0"&&1/n==-qe?"-0":i}function is(n){if(n!=null){try{return fr.call(n)}catch{}try{return n+""}catch{}}return""}function a1(n,i){return E(qt,function(u){var h="_."+u[0];i&u[1]&&!W(n,h)&&n.push(h)}),n.sort()}function up(n){if(n instanceof We)return n.clone();var i=new Un(n.__wrapped__,n.__chain__);return i.__actions__=vn(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function o1(n,i,u){(u?un(n,i,u):i===r)?i=1:i=It(Ae(i),0);var h=n==null?0:n.length;if(!h||i<1)return[];for(var v=0,S=0,M=O(Qo(h/i));v<h;)M[S++]=qn(n,v,v+=i);return M}function u1(n){for(var i=-1,u=n==null?0:n.length,h=0,v=[];++i<u;){var S=n[i];S&&(v[h++]=S)}return v}function l1(){var n=arguments.length;if(!n)return[];for(var i=O(n-1),u=arguments[0],h=n;h--;)i[h-1]=arguments[h];return Te(Me(u)?vn(u):[u],Ut(i,1))}var c1=Ne(function(n,i){return wt(n)?Na(n,Ut(i,1,wt,!0)):[]}),f1=Ne(function(n,i){var u=Vn(i);return wt(u)&&(u=r),wt(n)?Na(n,Ut(i,1,wt,!0),_e(u,2)):[]}),d1=Ne(function(n,i){var u=Vn(i);return wt(u)&&(u=r),wt(n)?Na(n,Ut(i,1,wt,!0),r,u):[]});function h1(n,i,u){var h=n==null?0:n.length;return h?(i=u||i===r?1:Ae(i),qn(n,i<0?0:i,h)):[]}function p1(n,i,u){var h=n==null?0:n.length;return h?(i=u||i===r?1:Ae(i),i=h-i,qn(n,0,i<0?0:i)):[]}function g1(n,i){return n&&n.length?lu(n,_e(i,3),!0,!0):[]}function m1(n,i){return n&&n.length?lu(n,_e(i,3),!0):[]}function y1(n,i,u,h){var v=n==null?0:n.length;return v?(u&&typeof u!="number"&&un(n,i,u)&&(u=0,h=v),lv(n,i,u,h)):[]}function lp(n,i,u){var h=n==null?0:n.length;if(!h)return-1;var v=u==null?0:Ae(u);return v<0&&(v=It(h+v,0)),$e(n,_e(i,3),v)}function cp(n,i,u){var h=n==null?0:n.length;if(!h)return-1;var v=h-1;return u!==r&&(v=Ae(u),v=u<0?It(h+v,0):Jt(v,h-1)),$e(n,_e(i,3),v,!0)}function fp(n){var i=n==null?0:n.length;return i?Ut(n,1):[]}function v1(n){var i=n==null?0:n.length;return i?Ut(n,qe):[]}function b1(n,i){var u=n==null?0:n.length;return u?(i=i===r?1:Ae(i),Ut(n,i)):[]}function x1(n){for(var i=-1,u=n==null?0:n.length,h={};++i<u;){var v=n[i];h[v[0]]=v[1]}return h}function dp(n){return n&&n.length?n[0]:r}function _1(n,i,u){var h=n==null?0:n.length;if(!h)return-1;var v=u==null?0:Ae(u);return v<0&&(v=It(h+v,0)),tt(n,i,v)}function w1(n){var i=n==null?0:n.length;return i?qn(n,0,-1):[]}var S1=Ne(function(n){var i=ue(n,Nc);return i.length&&i[0]===n[0]?Cc(i):[]}),k1=Ne(function(n){var i=Vn(n),u=ue(n,Nc);return i===Vn(u)?i=r:u.pop(),u.length&&u[0]===n[0]?Cc(u,_e(i,2)):[]}),C1=Ne(function(n){var i=Vn(n),u=ue(n,Nc);return i=typeof i=="function"?i:r,i&&u.pop(),u.length&&u[0]===n[0]?Cc(u,r,i):[]});function D1(n,i){return n==null?"":wy.call(n,i)}function Vn(n){var i=n==null?0:n.length;return i?n[i-1]:r}function E1(n,i,u){var h=n==null?0:n.length;if(!h)return-1;var v=h;return u!==r&&(v=Ae(u),v=v<0?It(h+v,0):Jt(v,h-1)),i===i?Ms(n,i,v):$e(n,Es,v,!0)}function T1(n,i){return n&&n.length?Sh(n,Ae(i)):r}var M1=Ne(hp);function hp(n,i){return n&&n.length&&i&&i.length?Mc(n,i):n}function R1(n,i,u){return n&&n.length&&i&&i.length?Mc(n,i,_e(u,2)):n}function A1(n,i,u){return n&&n.length&&i&&i.length?Mc(n,i,r,u):n}var O1=ti(function(n,i){var u=n==null?0:n.length,h=_c(n,i);return Dh(n,ue(i,function(v){return ni(v,u)?+v:v}).sort(Lh)),h});function I1(n,i){var u=[];if(!(n&&n.length))return u;var h=-1,v=[],S=n.length;for(i=_e(i,3);++h<S;){var M=n[h];i(M,h,n)&&(u.push(M),v.push(h))}return Dh(n,v),u}function Kc(n){return n==null?n:Dy.call(n)}function P1(n,i,u){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&un(n,i,u)?(i=0,u=h):(i=i==null?0:Ae(i),u=u===r?h:Ae(u)),qn(n,i,u)):[]}function N1(n,i){return uu(n,i)}function L1(n,i,u){return Oc(n,i,_e(u,2))}function j1(n,i){var u=n==null?0:n.length;if(u){var h=uu(n,i);if(h<u&&hr(n[h],i))return h}return-1}function $1(n,i){return uu(n,i,!0)}function F1(n,i,u){return Oc(n,i,_e(u,2),!0)}function Y1(n,i){var u=n==null?0:n.length;if(u){var h=uu(n,i,!0)-1;if(hr(n[h],i))return h}return-1}function W1(n){return n&&n.length?Th(n):[]}function B1(n,i){return n&&n.length?Th(n,_e(i,2)):[]}function H1(n){var i=n==null?0:n.length;return i?qn(n,1,i):[]}function U1(n,i,u){return n&&n.length?(i=u||i===r?1:Ae(i),qn(n,0,i<0?0:i)):[]}function z1(n,i,u){var h=n==null?0:n.length;return h?(i=u||i===r?1:Ae(i),i=h-i,qn(n,i<0?0:i,h)):[]}function q1(n,i){return n&&n.length?lu(n,_e(i,3),!1,!0):[]}function V1(n,i){return n&&n.length?lu(n,_e(i,3)):[]}var G1=Ne(function(n){return Oi(Ut(n,1,wt,!0))}),K1=Ne(function(n){var i=Vn(n);return wt(i)&&(i=r),Oi(Ut(n,1,wt,!0),_e(i,2))}),Z1=Ne(function(n){var i=Vn(n);return i=typeof i=="function"?i:r,Oi(Ut(n,1,wt,!0),r,i)});function X1(n){return n&&n.length?Oi(n):[]}function J1(n,i){return n&&n.length?Oi(n,_e(i,2)):[]}function Q1(n,i){return i=typeof i=="function"?i:r,n&&n.length?Oi(n,r,i):[]}function Zc(n){if(!(n&&n.length))return[];var i=0;return n=V(n,function(u){if(wt(u))return i=It(u.length,i),!0}),Ki(i,function(u){return ue(n,Kr(u))})}function pp(n,i){if(!(n&&n.length))return[];var u=Zc(n);return i==null?u:ue(u,function(h){return b(i,r,h)})}var eb=Ne(function(n,i){return wt(n)?Na(n,i):[]}),tb=Ne(function(n){return Pc(V(n,wt))}),nb=Ne(function(n){var i=Vn(n);return wt(i)&&(i=r),Pc(V(n,wt),_e(i,2))}),rb=Ne(function(n){var i=Vn(n);return i=typeof i=="function"?i:r,Pc(V(n,wt),r,i)}),ib=Ne(Zc);function sb(n,i){return Oh(n||[],i||[],Pa)}function ab(n,i){return Oh(n||[],i||[],$a)}var ob=Ne(function(n){var i=n.length,u=i>1?n[i-1]:r;return u=typeof u=="function"?(n.pop(),u):r,pp(n,u)});function gp(n){var i=_(n);return i.__chain__=!0,i}function ub(n,i){return i(n),n}function vu(n,i){return i(n)}var lb=ti(function(n){var i=n.length,u=i?n[0]:0,h=this.__wrapped__,v=function(S){return _c(S,n)};return i>1||this.__actions__.length||!(h instanceof We)||!ni(u)?this.thru(v):(h=h.slice(u,+u+(i?1:0)),h.__actions__.push({func:vu,args:[v],thisArg:r}),new Un(h,this.__chain__).thru(function(S){return i&&!S.length&&S.push(r),S}))});function cb(){return gp(this)}function fb(){return new Un(this.value(),this.__chain__)}function db(){this.__values__===r&&(this.__values__=Mp(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function hb(){return this}function pb(n){for(var i,u=this;u instanceof ru;){var h=up(u);h.__index__=0,h.__values__=r,i?v.__wrapped__=h:i=h;var v=h;u=u.__wrapped__}return v.__wrapped__=n,i}function gb(){var n=this.__wrapped__;if(n instanceof We){var i=n;return this.__actions__.length&&(i=new We(this)),i=i.reverse(),i.__actions__.push({func:vu,args:[Kc],thisArg:r}),new Un(i,this.__chain__)}return this.thru(Kc)}function mb(){return Ah(this.__wrapped__,this.__actions__)}var yb=cu(function(n,i,u){De.call(n,u)?++n[u]:Qr(n,u,1)});function vb(n,i,u){var h=Me(n)?q:uv;return u&&un(n,i,u)&&(i=r),h(n,_e(i,3))}function bb(n,i){var u=Me(n)?V:ph;return u(n,_e(i,3))}var xb=Bh(lp),_b=Bh(cp);function wb(n,i){return Ut(bu(n,i),1)}function Sb(n,i){return Ut(bu(n,i),qe)}function kb(n,i,u){return u=u===r?1:Ae(u),Ut(bu(n,i),u)}function mp(n,i){var u=Me(n)?E:Ai;return u(n,_e(i,3))}function yp(n,i){var u=Me(n)?L:hh;return u(n,_e(i,3))}var Cb=cu(function(n,i,u){De.call(n,u)?n[u].push(i):Qr(n,u,[i])});function Db(n,i,u,h){n=bn(n)?n:js(n),u=u&&!h?Ae(u):0;var v=n.length;return u<0&&(u=It(v+u,0)),ku(n)?u<=v&&n.indexOf(i,u)>-1:!!v&&tt(n,i,u)>-1}var Eb=Ne(function(n,i,u){var h=-1,v=typeof i=="function",S=bn(n)?O(n.length):[];return Ai(n,function(M){S[++h]=v?b(i,M,u):La(M,i,u)}),S}),Tb=cu(function(n,i,u){Qr(n,u,i)});function bu(n,i){var u=Me(n)?ue:xh;return u(n,_e(i,3))}function Mb(n,i,u,h){return n==null?[]:(Me(i)||(i=i==null?[]:[i]),u=h?r:u,Me(u)||(u=u==null?[]:[u]),kh(n,i,u))}var Rb=cu(function(n,i,u){n[u?0:1].push(i)},function(){return[[],[]]});function Ab(n,i,u){var h=Me(n)?Ee:lr,v=arguments.length<3;return h(n,_e(i,4),u,v,Ai)}function Ob(n,i,u){var h=Me(n)?Rt:lr,v=arguments.length<3;return h(n,_e(i,4),u,v,hh)}function Ib(n,i){var u=Me(n)?V:ph;return u(n,wu(_e(i,3)))}function Pb(n){var i=Me(n)?lh:Dv;return i(n)}function Nb(n,i,u){(u?un(n,i,u):i===r)?i=1:i=Ae(i);var h=Me(n)?rv:Ev;return h(n,i)}function Lb(n){var i=Me(n)?iv:Mv;return i(n)}function jb(n){if(n==null)return 0;if(bn(n))return ku(n)?Tr(n):n.length;var i=Qt(n);return i==Gt||i==Bt?n.size:Ec(n).length}function $b(n,i,u){var h=Me(n)?gt:Rv;return u&&un(n,i,u)&&(i=r),h(n,_e(i,3))}var Fb=Ne(function(n,i){if(n==null)return[];var u=i.length;return u>1&&un(n,i[0],i[1])?i=[]:u>2&&un(i[0],i[1],i[2])&&(i=[i[0]]),kh(n,Ut(i,1),[])}),xu=by||function(){return pt.Date.now()};function Yb(n,i){if(typeof i!="function")throw new Pe(p);return n=Ae(n),function(){if(--n<1)return i.apply(this,arguments)}}function vp(n,i,u){return i=u?r:i,i=n&&i==null?n.length:i,ei(n,d,r,r,r,r,i)}function bp(n,i){var u;if(typeof i!="function")throw new Pe(p);return n=Ae(n),function(){return--n>0&&(u=i.apply(this,arguments)),n<=1&&(i=r),u}}var Xc=Ne(function(n,i,u){var h=te;if(u.length){var v=Tn(u,Ns(Xc));h|=re}return ei(n,h,i,u,v)}),xp=Ne(function(n,i,u){var h=te|H;if(u.length){var v=Tn(u,Ns(xp));h|=re}return ei(i,h,n,u,v)});function _p(n,i,u){i=u?r:i;var h=ei(n,me,r,r,r,r,r,i);return h.placeholder=_p.placeholder,h}function wp(n,i,u){i=u?r:i;var h=ei(n,ye,r,r,r,r,r,i);return h.placeholder=wp.placeholder,h}function Sp(n,i,u){var h,v,S,M,P,j,X=0,J=!1,Q=!1,se=!0;if(typeof n!="function")throw new Pe(p);i=Gn(i)||0,mt(u)&&(J=!!u.leading,Q="maxWait"in u,S=Q?It(Gn(u.maxWait)||0,i):S,se="trailing"in u?!!u.trailing:se);function ve(St){var pr=h,si=v;return h=v=r,X=St,M=n.apply(si,pr),M}function Se(St){return X=St,P=Wa(Ye,i),J?ve(St):M}function Ie(St){var pr=St-j,si=St-X,Bp=i-pr;return Q?Jt(Bp,S-si):Bp}function ke(St){var pr=St-j,si=St-X;return j===r||pr>=i||pr<0||Q&&si>=S}function Ye(){var St=xu();if(ke(St))return He(St);P=Wa(Ye,Ie(St))}function He(St){return P=r,se&&h?ve(St):(h=v=r,M)}function An(){P!==r&&Ih(P),X=0,h=j=v=P=r}function ln(){return P===r?M:He(xu())}function On(){var St=xu(),pr=ke(St);if(h=arguments,v=this,j=St,pr){if(P===r)return Se(j);if(Q)return Ih(P),P=Wa(Ye,i),ve(j)}return P===r&&(P=Wa(Ye,i)),M}return On.cancel=An,On.flush=ln,On}var Wb=Ne(function(n,i){return dh(n,1,i)}),Bb=Ne(function(n,i,u){return dh(n,Gn(i)||0,u)});function Hb(n){return ei(n,le)}function _u(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Pe(p);var u=function(){var h=arguments,v=i?i.apply(this,h):h[0],S=u.cache;if(S.has(v))return S.get(v);var M=n.apply(this,h);return u.cache=S.set(v,M)||S,M};return u.cache=new(_u.Cache||Jr),u}_u.Cache=Jr;function wu(n){if(typeof n!="function")throw new Pe(p);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function Ub(n){return bp(2,n)}var zb=Av(function(n,i){i=i.length==1&&Me(i[0])?ue(i[0],rn(_e())):ue(Ut(i,1),rn(_e()));var u=i.length;return Ne(function(h){for(var v=-1,S=Jt(h.length,u);++v<S;)h[v]=i[v].call(this,h[v]);return b(n,this,h)})}),Jc=Ne(function(n,i){var u=Tn(i,Ns(Jc));return ei(n,re,r,i,u)}),kp=Ne(function(n,i){var u=Tn(i,Ns(kp));return ei(n,ie,r,i,u)}),qb=ti(function(n,i){return ei(n,Le,r,r,r,i)});function Vb(n,i){if(typeof n!="function")throw new Pe(p);return i=i===r?i:Ae(i),Ne(n,i)}function Gb(n,i){if(typeof n!="function")throw new Pe(p);return i=i==null?0:It(Ae(i),0),Ne(function(u){var h=u[i],v=Pi(u,0,i);return h&&Te(v,h),b(n,this,v)})}function Kb(n,i,u){var h=!0,v=!0;if(typeof n!="function")throw new Pe(p);return mt(u)&&(h="leading"in u?!!u.leading:h,v="trailing"in u?!!u.trailing:v),Sp(n,i,{leading:h,maxWait:i,trailing:v})}function Zb(n){return vp(n,1)}function Xb(n,i){return Jc(Lc(i),n)}function Jb(){if(!arguments.length)return[];var n=arguments[0];return Me(n)?n:[n]}function Qb(n){return zn(n,K)}function ex(n,i){return i=typeof i=="function"?i:r,zn(n,K,i)}function tx(n){return zn(n,F|K)}function nx(n,i){return i=typeof i=="function"?i:r,zn(n,F|K,i)}function rx(n,i){return i==null||fh(n,i,Yt(i))}function hr(n,i){return n===i||n!==n&&i!==i}var ix=pu(kc),sx=pu(function(n,i){return n>=i}),ss=yh(function(){return arguments}())?yh:function(n){return yt(n)&&De.call(n,"callee")&&!rh.call(n,"callee")},Me=O.isArray,ax=a?rn(a):pv;function bn(n){return n!=null&&Su(n.length)&&!ri(n)}function wt(n){return yt(n)&&bn(n)}function ox(n){return n===!0||n===!1||yt(n)&&on(n)==Br}var Ni=_y||cf,ux=l?rn(l):gv;function lx(n){return yt(n)&&n.nodeType===1&&!Ba(n)}function cx(n){if(n==null)return!0;if(bn(n)&&(Me(n)||typeof n=="string"||typeof n.splice=="function"||Ni(n)||Ls(n)||ss(n)))return!n.length;var i=Qt(n);if(i==Gt||i==Bt)return!n.size;if(Ya(n))return!Ec(n).length;for(var u in n)if(De.call(n,u))return!1;return!0}function fx(n,i){return ja(n,i)}function dx(n,i,u){u=typeof u=="function"?u:r;var h=u?u(n,i):r;return h===r?ja(n,i,r,u):!!h}function Qc(n){if(!yt(n))return!1;var i=on(n);return i==vi||i==fn||typeof n.message=="string"&&typeof n.name=="string"&&!Ba(n)}function hx(n){return typeof n=="number"&&sh(n)}function ri(n){if(!mt(n))return!1;var i=on(n);return i==kn||i==Hr||i==Hi||i==aa}function Cp(n){return typeof n=="number"&&n==Ae(n)}function Su(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Fe}function mt(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function yt(n){return n!=null&&typeof n=="object"}var Dp=f?rn(f):yv;function px(n,i){return n===i||Dc(n,i,Hc(i))}function gx(n,i,u){return u=typeof u=="function"?u:r,Dc(n,i,Hc(i),u)}function mx(n){return Ep(n)&&n!=+n}function yx(n){if(e1(n))throw new Z(c);return vh(n)}function vx(n){return n===null}function bx(n){return n==null}function Ep(n){return typeof n=="number"||yt(n)&&on(n)==Ur}function Ba(n){if(!yt(n)||on(n)!=Kt)return!1;var i=Zo(n);if(i===null)return!0;var u=De.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u instanceof u&&fr.call(u)==gy}var ef=g?rn(g):vv;function xx(n){return Cp(n)&&n>=-Fe&&n<=Fe}var Tp=m?rn(m):bv;function ku(n){return typeof n=="string"||!Me(n)&&yt(n)&&on(n)==jt}function Rn(n){return typeof n=="symbol"||yt(n)&&on(n)==$n}var Ls=y?rn(y):xv;function _x(n){return n===r}function wx(n){return yt(n)&&Qt(n)==fe}function Sx(n){return yt(n)&&on(n)==$t}var kx=pu(Tc),Cx=pu(function(n,i){return n<=i});function Mp(n){if(!n)return[];if(bn(n))return ku(n)?sn(n):vn(n);if(Ma&&n[Ma])return Er(n[Ma]());var i=Qt(n),u=i==Gt?Ts:i==Bt?Zr:js;return u(n)}function ii(n){if(!n)return n===0?n:0;if(n=Gn(n),n===qe||n===-qe){var i=n<0?-1:1;return i*ft}return n===n?n:0}function Ae(n){var i=ii(n),u=i%1;return i===i?u?i-u:i:0}function Rp(n){return n?ts(Ae(n),0,Nt):0}function Gn(n){if(typeof n=="number")return n;if(Rn(n))return Mt;if(mt(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=mt(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Hn(n);var u=Co.test(n);return u||la.test(n)?dc(n.slice(2),u?2:8):Si.test(n)?Mt:+n}function Ap(n){return Rr(n,xn(n))}function Dx(n){return n?ts(Ae(n),-Fe,Fe):n===0?n:0}function et(n){return n==null?"":Mn(n)}var Ex=Is(function(n,i){if(Ya(i)||bn(i)){Rr(i,Yt(i),n);return}for(var u in i)De.call(i,u)&&Pa(n,u,i[u])}),Op=Is(function(n,i){Rr(i,xn(i),n)}),Cu=Is(function(n,i,u,h){Rr(i,xn(i),n,h)}),Tx=Is(function(n,i,u,h){Rr(i,Yt(i),n,h)}),Mx=ti(_c);function Rx(n,i){var u=Os(n);return i==null?u:ch(u,i)}var Ax=Ne(function(n,i){n=oe(n);var u=-1,h=i.length,v=h>2?i[2]:r;for(v&&un(i[0],i[1],v)&&(h=1);++u<h;)for(var S=i[u],M=xn(S),P=-1,j=M.length;++P<j;){var X=M[P],J=n[X];(J===r||hr(J,Ot[X])&&!De.call(n,X))&&(n[X]=S[X])}return n}),Ox=Ne(function(n){return n.push(r,Kh),b(Ip,r,n)});function Ix(n,i){return Cr(n,_e(i,3),Mr)}function Px(n,i){return Cr(n,_e(i,3),Sc)}function Nx(n,i){return n==null?n:wc(n,_e(i,3),xn)}function Lx(n,i){return n==null?n:gh(n,_e(i,3),xn)}function jx(n,i){return n&&Mr(n,_e(i,3))}function $x(n,i){return n&&Sc(n,_e(i,3))}function Fx(n){return n==null?[]:au(n,Yt(n))}function Yx(n){return n==null?[]:au(n,xn(n))}function tf(n,i,u){var h=n==null?r:ns(n,i);return h===r?u:h}function Wx(n,i){return n!=null&&Jh(n,i,cv)}function nf(n,i){return n!=null&&Jh(n,i,fv)}var Bx=Uh(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Vo.call(i)),n[i]=u},sf(_n)),Hx=Uh(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Vo.call(i)),De.call(n,i)?n[i].push(u):n[i]=[u]},_e),Ux=Ne(La);function Yt(n){return bn(n)?uh(n):Ec(n)}function xn(n){return bn(n)?uh(n,!0):_v(n)}function zx(n,i){var u={};return i=_e(i,3),Mr(n,function(h,v,S){Qr(u,i(h,v,S),h)}),u}function qx(n,i){var u={};return i=_e(i,3),Mr(n,function(h,v,S){Qr(u,v,i(h,v,S))}),u}var Vx=Is(function(n,i,u){ou(n,i,u)}),Ip=Is(function(n,i,u,h){ou(n,i,u,h)}),Gx=ti(function(n,i){var u={};if(n==null)return u;var h=!1;i=ue(i,function(S){return S=Ii(S,n),h||(h=S.length>1),S}),Rr(n,Wc(n),u),h&&(u=zn(u,F|B|K,Bv));for(var v=i.length;v--;)Ic(u,i[v]);return u});function Kx(n,i){return Pp(n,wu(_e(i)))}var Zx=ti(function(n,i){return n==null?{}:Sv(n,i)});function Pp(n,i){if(n==null)return{};var u=ue(Wc(n),function(h){return[h]});return i=_e(i),Ch(n,u,function(h,v){return i(h,v[0])})}function Xx(n,i,u){i=Ii(i,n);var h=-1,v=i.length;for(v||(v=1,n=r);++h<v;){var S=n==null?r:n[Ar(i[h])];S===r&&(h=v,S=u),n=ri(S)?S.call(n):S}return n}function Jx(n,i,u){return n==null?n:$a(n,i,u)}function Qx(n,i,u,h){return h=typeof h=="function"?h:r,n==null?n:$a(n,i,u,h)}var Np=Vh(Yt),Lp=Vh(xn);function e_(n,i,u){var h=Me(n),v=h||Ni(n)||Ls(n);if(i=_e(i,4),u==null){var S=n&&n.constructor;v?u=h?new S:[]:mt(n)?u=ri(S)?Os(Zo(n)):{}:u={}}return(v?E:Mr)(n,function(M,P,j){return i(u,M,P,j)}),u}function t_(n,i){return n==null?!0:Ic(n,i)}function n_(n,i,u){return n==null?n:Rh(n,i,Lc(u))}function r_(n,i,u,h){return h=typeof h=="function"?h:r,n==null?n:Rh(n,i,Lc(u),h)}function js(n){return n==null?[]:Ca(n,Yt(n))}function i_(n){return n==null?[]:Ca(n,xn(n))}function s_(n,i,u){return u===r&&(u=i,i=r),u!==r&&(u=Gn(u),u=u===u?u:0),i!==r&&(i=Gn(i),i=i===i?i:0),ts(Gn(n),i,u)}function a_(n,i,u){return i=ii(i),u===r?(u=i,i=0):u=ii(u),n=Gn(n),dv(n,i,u)}function o_(n,i,u){if(u&&typeof u!="boolean"&&un(n,i,u)&&(i=u=r),u===r&&(typeof i=="boolean"?(u=i,i=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&i===r?(n=0,i=1):(n=ii(n),i===r?(i=n,n=0):i=ii(i)),n>i){var h=n;n=i,i=h}if(u||n%1||i%1){var v=ah();return Jt(n+v*(i-n+Sa("1e-"+((v+"").length-1))),i)}return Rc(n,i)}var u_=Ps(function(n,i,u){return i=i.toLowerCase(),n+(u?jp(i):i)});function jp(n){return rf(et(n).toLowerCase())}function $p(n){return n=et(n),n&&n.replace(Do,Ti).replace(ac,"")}function l_(n,i,u){n=et(n),i=Mn(i);var h=n.length;u=u===r?h:ts(Ae(u),0,h);var v=u;return u-=i.length,u>=0&&n.slice(u,v)==i}function c_(n){return n=et(n),n&&bo.test(n)?n.replace(_i,pc):n}function f_(n){return n=et(n),n&&wi.test(n)?n.replace(wr,"\\$&"):n}var d_=Ps(function(n,i,u){return n+(u?"-":"")+i.toLowerCase()}),h_=Ps(function(n,i,u){return n+(u?" ":"")+i.toLowerCase()}),p_=Wh("toLowerCase");function g_(n,i,u){n=et(n),i=Ae(i);var h=i?Tr(n):0;if(!i||h>=i)return n;var v=(i-h)/2;return hu(eu(v),u)+n+hu(Qo(v),u)}function m_(n,i,u){n=et(n),i=Ae(i);var h=i?Tr(n):0;return i&&h<i?n+hu(i-h,u):n}function y_(n,i,u){n=et(n),i=Ae(i);var h=i?Tr(n):0;return i&&h<i?hu(i-h,u)+n:n}function v_(n,i,u){return u||i==null?i=0:i&&(i=+i),Cy(et(n).replace(zi,""),i||0)}function b_(n,i,u){return(u?un(n,i,u):i===r)?i=1:i=Ae(i),Ac(et(n),i)}function x_(){var n=arguments,i=et(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var __=Ps(function(n,i,u){return n+(u?"_":"")+i.toLowerCase()});function w_(n,i,u){return u&&typeof u!="number"&&un(n,i,u)&&(i=u=r),u=u===r?Nt:u>>>0,u?(n=et(n),n&&(typeof i=="string"||i!=null&&!ef(i))&&(i=Mn(i),!i&&yn(n))?Pi(sn(n),0,u):n.split(i,u)):[]}var S_=Ps(function(n,i,u){return n+(u?" ":"")+rf(i)});function k_(n,i,u){return n=et(n),u=u==null?0:ts(Ae(u),0,n.length),i=Mn(i),n.slice(u,u+i.length)==i}function C_(n,i,u){var h=_.templateSettings;u&&un(n,i,u)&&(i=r),n=et(n),i=Cu({},i,h,Gh);var v=Cu({},i.imports,h.imports,Gh),S=Yt(v),M=Ca(v,S),P,j,X=0,J=i.interpolate||ws,Q="__p += '",se=Re((i.escape||ws).source+"|"+J.source+"|"+(J===bs?So:ws).source+"|"+(i.evaluate||ws).source+"|$","g"),ve="//# sourceURL="+(De.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fc+"]")+`
114
+ `;n.replace(se,function(ke,Ye,He,An,ln,On){return He||(He=An),Q+=n.slice(X,On).replace(qi,gc),Ye&&(P=!0,Q+=`' +
115
+ __e(`+Ye+`) +
116
+ '`),ln&&(j=!0,Q+=`';
117
+ `+ln+`;
118
+ __p += '`),He&&(Q+=`' +
119
+ ((__t = (`+He+`)) == null ? '' : __t) +
120
+ '`),X=On+ke.length,ke}),Q+=`';
121
+ `;var Se=De.call(i,"variable")&&i.variable;if(!Se)Q=`with (obj) {
122
+ `+Q+`
123
+ }
124
+ `;else if(Ql.test(Se))throw new Z(x);Q=(j?Q.replace(mo,""):Q).replace(yo,"$1").replace(Gl,"$1;"),Q="function("+(Se||"obj")+`) {
125
+ `+(Se?"":`obj || (obj = {});
126
+ `)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
127
+ function print() { __p += __j.call(arguments, '') }
128
+ `:`;
129
+ `)+Q+`return __p
130
+ }`;var Ie=Yp(function(){return de(S,ve+"return "+Q).apply(r,M)});if(Ie.source=Q,Qc(Ie))throw Ie;return Ie}function D_(n){return et(n).toLowerCase()}function E_(n){return et(n).toUpperCase()}function T_(n,i,u){if(n=et(n),n&&(u||i===r))return Hn(n);if(!n||!(i=Mn(i)))return n;var h=sn(n),v=sn(i),S=Ve(h,v),M=Xi(h,v)+1;return Pi(h,S,M).join("")}function M_(n,i,u){if(n=et(n),n&&(u||i===r))return n.slice(0,zo(n)+1);if(!n||!(i=Mn(i)))return n;var h=sn(n),v=Xi(h,sn(i))+1;return Pi(h,0,v).join("")}function R_(n,i,u){if(n=et(n),n&&(u||i===r))return n.replace(zi,"");if(!n||!(i=Mn(i)))return n;var h=sn(n),v=Ve(h,sn(i));return Pi(h,v).join("")}function A_(n,i){var u=at,h=Ue;if(mt(i)){var v="separator"in i?i.separator:v;u="length"in i?Ae(i.length):u,h="omission"in i?Mn(i.omission):h}n=et(n);var S=n.length;if(yn(n)){var M=sn(n);S=M.length}if(u>=S)return n;var P=u-Tr(h);if(P<1)return h;var j=M?Pi(M,0,P).join(""):n.slice(0,P);if(v===r)return j+h;if(M&&(P+=j.length-P),ef(v)){if(n.slice(P).search(v)){var X,J=j;for(v.global||(v=Re(v.source,et(ko.exec(v))+"g")),v.lastIndex=0;X=v.exec(J);)var Q=X.index;j=j.slice(0,Q===r?P:Q)}}else if(n.indexOf(Mn(v),P)!=P){var se=j.lastIndexOf(v);se>-1&&(j=j.slice(0,se))}return j+h}function O_(n){return n=et(n),n&&vo.test(n)?n.replace(qr,Ta):n}var I_=Ps(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),rf=Wh("toUpperCase");function Fp(n,i,u){return n=et(n),i=u?r:i,i===r?Da(n)?N(n):je(n):n.match(i)||[]}var Yp=Ne(function(n,i){try{return b(n,r,i)}catch(u){return Qc(u)?u:new Z(u)}}),P_=ti(function(n,i){return E(i,function(u){u=Ar(u),Qr(n,u,Xc(n[u],n))}),n});function N_(n){var i=n==null?0:n.length,u=_e();return n=i?ue(n,function(h){if(typeof h[1]!="function")throw new Pe(p);return[u(h[0]),h[1]]}):[],Ne(function(h){for(var v=-1;++v<i;){var S=n[v];if(b(S[0],this,h))return b(S[1],this,h)}})}function L_(n){return ov(zn(n,F))}function sf(n){return function(){return n}}function j_(n,i){return n==null||n!==n?i:n}var $_=Hh(),F_=Hh(!0);function _n(n){return n}function af(n){return bh(typeof n=="function"?n:zn(n,F))}function Y_(n){return _h(zn(n,F))}function W_(n,i){return wh(n,zn(i,F))}var B_=Ne(function(n,i){return function(u){return La(u,n,i)}}),H_=Ne(function(n,i){return function(u){return La(n,u,i)}});function of(n,i,u){var h=Yt(i),v=au(i,h);u==null&&!(mt(i)&&(v.length||!h.length))&&(u=i,i=n,n=this,v=au(i,Yt(i)));var S=!(mt(u)&&"chain"in u)||!!u.chain,M=ri(n);return E(v,function(P){var j=i[P];n[P]=j,M&&(n.prototype[P]=function(){var X=this.__chain__;if(S||X){var J=n(this.__wrapped__),Q=J.__actions__=vn(this.__actions__);return Q.push({func:j,args:arguments,thisArg:n}),J.__chain__=X,J}return j.apply(n,Te([this.value()],arguments))})}),n}function U_(){return pt._===this&&(pt._=my),this}function uf(){}function z_(n){return n=Ae(n),Ne(function(i){return Sh(i,n)})}var q_=$c(ue),V_=$c(q),G_=$c(gt);function Wp(n){return zc(n)?Kr(Ar(n)):kv(n)}function K_(n){return function(i){return n==null?r:ns(n,i)}}var Z_=zh(),X_=zh(!0);function lf(){return[]}function cf(){return!1}function J_(){return{}}function Q_(){return""}function ew(){return!0}function tw(n,i){if(n=Ae(n),n<1||n>Fe)return[];var u=Nt,h=Jt(n,Nt);i=_e(i),n-=Nt;for(var v=Ki(h,i);++u<n;)i(u);return v}function nw(n){return Me(n)?ue(n,Ar):Rn(n)?[n]:vn(op(et(n)))}function rw(n){var i=++py;return et(n)+i}var iw=du(function(n,i){return n+i},0),sw=Fc("ceil"),aw=du(function(n,i){return n/i},1),ow=Fc("floor");function uw(n){return n&&n.length?su(n,_n,kc):r}function lw(n,i){return n&&n.length?su(n,_e(i,2),kc):r}function cw(n){return Dn(n,_n)}function fw(n,i){return Dn(n,_e(i,2))}function dw(n){return n&&n.length?su(n,_n,Tc):r}function hw(n,i){return n&&n.length?su(n,_e(i,2),Tc):r}var pw=du(function(n,i){return n*i},1),gw=Fc("round"),mw=du(function(n,i){return n-i},0);function yw(n){return n&&n.length?Xt(n,_n):0}function vw(n,i){return n&&n.length?Xt(n,_e(i,2)):0}return _.after=Yb,_.ary=vp,_.assign=Ex,_.assignIn=Op,_.assignInWith=Cu,_.assignWith=Tx,_.at=Mx,_.before=bp,_.bind=Xc,_.bindAll=P_,_.bindKey=xp,_.castArray=Jb,_.chain=gp,_.chunk=o1,_.compact=u1,_.concat=l1,_.cond=N_,_.conforms=L_,_.constant=sf,_.countBy=yb,_.create=Rx,_.curry=_p,_.curryRight=wp,_.debounce=Sp,_.defaults=Ax,_.defaultsDeep=Ox,_.defer=Wb,_.delay=Bb,_.difference=c1,_.differenceBy=f1,_.differenceWith=d1,_.drop=h1,_.dropRight=p1,_.dropRightWhile=g1,_.dropWhile=m1,_.fill=y1,_.filter=bb,_.flatMap=wb,_.flatMapDeep=Sb,_.flatMapDepth=kb,_.flatten=fp,_.flattenDeep=v1,_.flattenDepth=b1,_.flip=Hb,_.flow=$_,_.flowRight=F_,_.fromPairs=x1,_.functions=Fx,_.functionsIn=Yx,_.groupBy=Cb,_.initial=w1,_.intersection=S1,_.intersectionBy=k1,_.intersectionWith=C1,_.invert=Bx,_.invertBy=Hx,_.invokeMap=Eb,_.iteratee=af,_.keyBy=Tb,_.keys=Yt,_.keysIn=xn,_.map=bu,_.mapKeys=zx,_.mapValues=qx,_.matches=Y_,_.matchesProperty=W_,_.memoize=_u,_.merge=Vx,_.mergeWith=Ip,_.method=B_,_.methodOf=H_,_.mixin=of,_.negate=wu,_.nthArg=z_,_.omit=Gx,_.omitBy=Kx,_.once=Ub,_.orderBy=Mb,_.over=q_,_.overArgs=zb,_.overEvery=V_,_.overSome=G_,_.partial=Jc,_.partialRight=kp,_.partition=Rb,_.pick=Zx,_.pickBy=Pp,_.property=Wp,_.propertyOf=K_,_.pull=M1,_.pullAll=hp,_.pullAllBy=R1,_.pullAllWith=A1,_.pullAt=O1,_.range=Z_,_.rangeRight=X_,_.rearg=qb,_.reject=Ib,_.remove=I1,_.rest=Vb,_.reverse=Kc,_.sampleSize=Nb,_.set=Jx,_.setWith=Qx,_.shuffle=Lb,_.slice=P1,_.sortBy=Fb,_.sortedUniq=W1,_.sortedUniqBy=B1,_.split=w_,_.spread=Gb,_.tail=H1,_.take=U1,_.takeRight=z1,_.takeRightWhile=q1,_.takeWhile=V1,_.tap=ub,_.throttle=Kb,_.thru=vu,_.toArray=Mp,_.toPairs=Np,_.toPairsIn=Lp,_.toPath=nw,_.toPlainObject=Ap,_.transform=e_,_.unary=Zb,_.union=G1,_.unionBy=K1,_.unionWith=Z1,_.uniq=X1,_.uniqBy=J1,_.uniqWith=Q1,_.unset=t_,_.unzip=Zc,_.unzipWith=pp,_.update=n_,_.updateWith=r_,_.values=js,_.valuesIn=i_,_.without=eb,_.words=Fp,_.wrap=Xb,_.xor=tb,_.xorBy=nb,_.xorWith=rb,_.zip=ib,_.zipObject=sb,_.zipObjectDeep=ab,_.zipWith=ob,_.entries=Np,_.entriesIn=Lp,_.extend=Op,_.extendWith=Cu,of(_,_),_.add=iw,_.attempt=Yp,_.camelCase=u_,_.capitalize=jp,_.ceil=sw,_.clamp=s_,_.clone=Qb,_.cloneDeep=tx,_.cloneDeepWith=nx,_.cloneWith=ex,_.conformsTo=rx,_.deburr=$p,_.defaultTo=j_,_.divide=aw,_.endsWith=l_,_.eq=hr,_.escape=c_,_.escapeRegExp=f_,_.every=vb,_.find=xb,_.findIndex=lp,_.findKey=Ix,_.findLast=_b,_.findLastIndex=cp,_.findLastKey=Px,_.floor=ow,_.forEach=mp,_.forEachRight=yp,_.forIn=Nx,_.forInRight=Lx,_.forOwn=jx,_.forOwnRight=$x,_.get=tf,_.gt=ix,_.gte=sx,_.has=Wx,_.hasIn=nf,_.head=dp,_.identity=_n,_.includes=Db,_.indexOf=_1,_.inRange=a_,_.invoke=Ux,_.isArguments=ss,_.isArray=Me,_.isArrayBuffer=ax,_.isArrayLike=bn,_.isArrayLikeObject=wt,_.isBoolean=ox,_.isBuffer=Ni,_.isDate=ux,_.isElement=lx,_.isEmpty=cx,_.isEqual=fx,_.isEqualWith=dx,_.isError=Qc,_.isFinite=hx,_.isFunction=ri,_.isInteger=Cp,_.isLength=Su,_.isMap=Dp,_.isMatch=px,_.isMatchWith=gx,_.isNaN=mx,_.isNative=yx,_.isNil=bx,_.isNull=vx,_.isNumber=Ep,_.isObject=mt,_.isObjectLike=yt,_.isPlainObject=Ba,_.isRegExp=ef,_.isSafeInteger=xx,_.isSet=Tp,_.isString=ku,_.isSymbol=Rn,_.isTypedArray=Ls,_.isUndefined=_x,_.isWeakMap=wx,_.isWeakSet=Sx,_.join=D1,_.kebabCase=d_,_.last=Vn,_.lastIndexOf=E1,_.lowerCase=h_,_.lowerFirst=p_,_.lt=kx,_.lte=Cx,_.max=uw,_.maxBy=lw,_.mean=cw,_.meanBy=fw,_.min=dw,_.minBy=hw,_.stubArray=lf,_.stubFalse=cf,_.stubObject=J_,_.stubString=Q_,_.stubTrue=ew,_.multiply=pw,_.nth=T1,_.noConflict=U_,_.noop=uf,_.now=xu,_.pad=g_,_.padEnd=m_,_.padStart=y_,_.parseInt=v_,_.random=o_,_.reduce=Ab,_.reduceRight=Ob,_.repeat=b_,_.replace=x_,_.result=Xx,_.round=gw,_.runInContext=k,_.sample=Pb,_.size=jb,_.snakeCase=__,_.some=$b,_.sortedIndex=N1,_.sortedIndexBy=L1,_.sortedIndexOf=j1,_.sortedLastIndex=$1,_.sortedLastIndexBy=F1,_.sortedLastIndexOf=Y1,_.startCase=S_,_.startsWith=k_,_.subtract=mw,_.sum=yw,_.sumBy=vw,_.template=C_,_.times=tw,_.toFinite=ii,_.toInteger=Ae,_.toLength=Rp,_.toLower=D_,_.toNumber=Gn,_.toSafeInteger=Dx,_.toString=et,_.toUpper=E_,_.trim=T_,_.trimEnd=M_,_.trimStart=R_,_.truncate=A_,_.unescape=O_,_.uniqueId=rw,_.upperCase=I_,_.upperFirst=rf,_.each=mp,_.eachRight=yp,_.first=dp,of(_,function(){var n={};return Mr(_,function(i,u){De.call(_.prototype,u)||(n[u]=i)}),n}(),{chain:!1}),_.VERSION=s,E(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){_[n].placeholder=_}),E(["drop","take"],function(n,i){We.prototype[n]=function(u){u=u===r?1:It(Ae(u),0);var h=this.__filtered__&&!i?new We(this):this.clone();return h.__filtered__?h.__takeCount__=Jt(u,h.__takeCount__):h.__views__.push({size:Jt(u,Nt),type:n+(h.__dir__<0?"Right":"")}),h},We.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),E(["filter","map","takeWhile"],function(n,i){var u=i+1,h=u==ot||u==Tt;We.prototype[n]=function(v){var S=this.clone();return S.__iteratees__.push({iteratee:_e(v,3),type:u}),S.__filtered__=S.__filtered__||h,S}}),E(["head","last"],function(n,i){var u="take"+(i?"Right":"");We.prototype[n]=function(){return this[u](1).value()[0]}}),E(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[u](1)}}),We.prototype.compact=function(){return this.filter(_n)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Ne(function(n,i){return typeof n=="function"?new We(this):this.map(function(u){return La(u,n,i)})}),We.prototype.reject=function(n){return this.filter(wu(_e(n)))},We.prototype.slice=function(n,i){n=Ae(n);var u=this;return u.__filtered__&&(n>0||i<0)?new We(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=Ae(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(Nt)},Mr(We.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),h=/^(?:head|last)$/.test(i),v=_[h?"take"+(i=="last"?"Right":""):i],S=h||/^find/.test(i);v&&(_.prototype[i]=function(){var M=this.__wrapped__,P=h?[1]:arguments,j=M instanceof We,X=P[0],J=j||Me(M),Q=function(Ye){var He=v.apply(_,Te([Ye],P));return h&&se?He[0]:He};J&&u&&typeof X=="function"&&X.length!=1&&(j=J=!1);var se=this.__chain__,ve=!!this.__actions__.length,Se=S&&!se,Ie=j&&!ve;if(!S&&J){M=Ie?M:new We(this);var ke=n.apply(M,P);return ke.__actions__.push({func:vu,args:[Q],thisArg:r}),new Un(ke,se)}return Se&&Ie?n.apply(this,P):(ke=this.thru(Q),Se?h?ke.value()[0]:ke.value():ke)})}),E(["pop","push","shift","sort","splice","unshift"],function(n){var i=At[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",h=/^(?:pop|shift)$/.test(n);_.prototype[n]=function(){var v=arguments;if(h&&!this.__chain__){var S=this.value();return i.apply(Me(S)?S:[],v)}return this[u](function(M){return i.apply(Me(M)?M:[],v)})}}),Mr(We.prototype,function(n,i){var u=_[i];if(u){var h=u.name+"";De.call(As,h)||(As[h]=[]),As[h].push({name:i,func:u})}}),As[fu(r,H).name]=[{name:"wrapper",func:r}],We.prototype.clone=Oy,We.prototype.reverse=Iy,We.prototype.value=Py,_.prototype.at=lb,_.prototype.chain=cb,_.prototype.commit=fb,_.prototype.next=db,_.prototype.plant=pb,_.prototype.reverse=gb,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=mb,_.prototype.first=_.prototype.head,Ma&&(_.prototype[Ma]=hb),_},U=Y();ur?((ur.exports=U)._=U,Ds._=U):pt._=U}).call(T.commonjsGlobal)})(Gu,Gu.exports);Gu.exports;function _R(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,s=e.startIndex,o=e.stopIndex;return!(s>r||o<t)}function wR(e){for(var t=e.isItemLoaded,r=e.itemCount,s=e.minimumBatchSize,o=e.startIndex,c=e.stopIndex,p=[],x=null,w=null,D=o;D<=c;D++){var A=t(D);A?w!==null&&(p.push(x,w),x=w=null):(w=D,x===null&&(x=D))}if(w!==null){for(var F=Math.min(Math.max(w,x+s-1),r-1),B=w+1;B<=F&&!t(B);B++)w=B;p.push(x,w)}if(p.length)for(;p[1]-p[0]+1<s&&p[0]>0;){var K=p[0]-1;if(!t(K))p[0]=K;else break}return p}var SR=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kR=function(){function e(t,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,s){return r&&e(t.prototype,r),s&&e(t,s),t}}(),CR=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Cg=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};(function(e){CR(t,e);function t(){var r,s,o,c;SR(this,t);for(var p=arguments.length,x=Array(p),w=0;w<p;w++)x[w]=arguments[w];return c=(s=(o=Cg(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(x))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(D){var A=D.visibleStartIndex,F=D.visibleStopIndex;o._lastRenderedStartIndex=A,o._lastRenderedStopIndex=F,o._ensureRowsLoaded(A,F)},o._setRef=function(D){o._listRef=D},s),Cg(o,c)}return kR(t,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,o){var c=this.props,p=c.isItemLoaded,x=c.itemCount,w=c.minimumBatchSize,D=w===void 0?10:w,A=c.threshold,F=A===void 0?15:A,B=wR({isItemLoaded:p,itemCount:x,minimumBatchSize:D,startIndex:Math.max(0,s-F),stopIndex:Math.min(x-1,o+F)});(this._memoizedUnloadedRanges.length!==B.length||this._memoizedUnloadedRanges.some(function(K,z){return B[z]!==K}))&&(this._memoizedUnloadedRanges=B,this._loadUnloadedRanges(B))}},{key:"_loadUnloadedRanges",value:function(s){for(var o=this,c=this.props.loadMoreItems||this.props.loadMoreRows,p=function(D){var A=s[D],F=s[D+1],B=c(A,F);B!=null&&B.then(function(){if(_R({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:A,stopIndex:F})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(A,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},x=0;x<s.length;x+=2)p(x)}}]),t})(T.reactExports.PureComponent);T.reactExports.createContext({});const DR=e=>{const[t,r]=T.reactExports.useState([]);return T.reactExports.useEffect(()=>{ce.axios.get(`${e}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>r(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[e]),t},D0=e=>(t,r)=>{const s=DR(e);return r?t.every(o=>s==null?void 0:s.includes(o)):t.some(o=>s==null?void 0:s.includes(o))},E0=({baseUrl:e,accessWith:t,requireAll:r,children:s})=>D0(e)(t,r)?T.jsxRuntimeExports.jsx(T.jsxRuntimeExports.Fragment,{children:s}):null;{const e=T.s(E0,{props:{baseUrl:"string",accessWith:"json",requireAll:"boolean",children:"json"},shadow:"open"});customElements.define("has-permission",e)}const ER=T.reactExports.createContext({}),TR=()=>T.reactExports.useContext(ER);var T0={exports:{}};/*!
131
+ * jQuery JavaScript Library v3.7.1
132
+ * https://jquery.com/
133
+ *
134
+ * Copyright OpenJS Foundation and other contributors
135
+ * Released under the MIT license
136
+ * https://jquery.org/license
137
+ *
138
+ * Date: 2023-08-28T13:37Z
139
+ */(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return r(s)}})(typeof window<"u"?window:T.commonjsGlobal,function(t,r){var s=[],o=Object.getPrototypeOf,c=s.slice,p=s.flat?function(a){return s.flat.call(a)}:function(a){return s.concat.apply([],a)},x=s.push,w=s.indexOf,D={},A=D.toString,F=D.hasOwnProperty,B=F.toString,K=B.call(Object),z={},$=function(l){return typeof l=="function"&&typeof l.nodeType!="number"&&typeof l.item!="function"},te=function(l){return l!=null&&l===l.window},H=t.document,pe={type:!0,src:!0,nonce:!0,noModule:!0};function me(a,l,f){f=f||H;var g,m,y=f.createElement("script");if(y.text=a,l)for(g in pe)m=l[g]||l.getAttribute&&l.getAttribute(g),m&&y.setAttribute(g,m);f.head.appendChild(y).parentNode.removeChild(y)}function ye(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?D[A.call(a)]||"object":typeof a}var re="3.7.1",ie=/HTML$/i,d=function(a,l){return new d.fn.init(a,l)};d.fn=d.prototype={jquery:re,constructor:d,length:0,toArray:function(){return c.call(this)},get:function(a){return a==null?c.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var l=d.merge(this.constructor(),a);return l.prevObject=this,l},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(l,f){return a.call(l,f,l)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(a,l){return(l+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(a,l){return l%2}))},eq:function(a){var l=this.length,f=+a+(a<0?l:0);return this.pushStack(f>=0&&f<l?[this[f]]:[])},end:function(){return this.prevObject||this.constructor()},push:x,sort:s.sort,splice:s.splice},d.extend=d.fn.extend=function(){var a,l,f,g,m,y,b=arguments[0]||{},R=1,E=arguments.length,L=!1;for(typeof b=="boolean"&&(L=b,b=arguments[R]||{},R++),typeof b!="object"&&!$(b)&&(b={}),R===E&&(b=this,R--);R<E;R++)if((a=arguments[R])!=null)for(l in a)g=a[l],!(l==="__proto__"||b===g)&&(L&&g&&(d.isPlainObject(g)||(m=Array.isArray(g)))?(f=b[l],m&&!Array.isArray(f)?y=[]:!m&&!d.isPlainObject(f)?y={}:y=f,m=!1,b[l]=d.extend(L,y,g)):g!==void 0&&(b[l]=g));return b},d.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isPlainObject:function(a){var l,f;return!a||A.call(a)!=="[object Object]"?!1:(l=o(a),l?(f=F.call(l,"constructor")&&l.constructor,typeof f=="function"&&B.call(f)===K):!0)},isEmptyObject:function(a){var l;for(l in a)return!1;return!0},globalEval:function(a,l,f){me(a,{nonce:l&&l.nonce},f)},each:function(a,l){var f,g=0;if(Le(a))for(f=a.length;g<f&&l.call(a[g],g,a[g])!==!1;g++);else for(g in a)if(l.call(a[g],g,a[g])===!1)break;return a},text:function(a){var l,f="",g=0,m=a.nodeType;if(!m)for(;l=a[g++];)f+=d.text(l);return m===1||m===11?a.textContent:m===9?a.documentElement.textContent:m===3||m===4?a.nodeValue:f},makeArray:function(a,l){var f=l||[];return a!=null&&(Le(Object(a))?d.merge(f,typeof a=="string"?[a]:a):x.call(f,a)),f},inArray:function(a,l,f){return l==null?-1:w.call(l,a,f)},isXMLDoc:function(a){var l=a&&a.namespaceURI,f=a&&(a.ownerDocument||a).documentElement;return!ie.test(l||f&&f.nodeName||"HTML")},merge:function(a,l){for(var f=+l.length,g=0,m=a.length;g<f;g++)a[m++]=l[g];return a.length=m,a},grep:function(a,l,f){for(var g,m=[],y=0,b=a.length,R=!f;y<b;y++)g=!l(a[y],y),g!==R&&m.push(a[y]);return m},map:function(a,l,f){var g,m,y=0,b=[];if(Le(a))for(g=a.length;y<g;y++)m=l(a[y],y,f),m!=null&&b.push(m);else for(y in a)m=l(a[y],y,f),m!=null&&b.push(m);return p(b)},guid:1,support:z}),typeof Symbol=="function"&&(d.fn[Symbol.iterator]=s[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,l){D["[object "+l+"]"]=l.toLowerCase()});function Le(a){var l=!!a&&"length"in a&&a.length,f=ye(a);return $(a)||te(a)?!1:f==="array"||l===0||typeof l=="number"&&l>0&&l-1 in a}function le(a,l){return a.nodeName&&a.nodeName.toLowerCase()===l.toLowerCase()}var at=s.pop,Ue=s.sort,Je=s.splice,we="[\\x20\\t\\r\\n\\f]",ot=new RegExp("^"+we+"+|((?:^|[^\\\\])(?:\\\\.)*)"+we+"+$","g");d.contains=function(a,l){var f=l&&l.parentNode;return a===f||!!(f&&f.nodeType===1&&(a.contains?a.contains(f):a.compareDocumentPosition&&a.compareDocumentPosition(f)&16))};var xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Tt(a,l){return l?a==="\0"?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}d.escapeSelector=function(a){return(a+"").replace(xt,Tt)};var qe=H,Fe=x;(function(){var a,l,f,g,m,y=Fe,b,R,E,L,q,V=d.expando,W=0,ee=0,ue=Xi(),Te=Xi(),Ee=Xi(),Rt=Xi(),gt=function(C,N){return C===N&&(m=!0),0},Wn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Bn="(?:\\\\[\\da-fA-F]{1,6}"+we+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",je="\\["+we+"*("+Bn+")(?:"+we+"*([*^$|!~]?=)"+we+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Bn+"))|)"+we+"*\\]",Cr=":("+Bn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+je+")*)|.*)\\)|)",$e=new RegExp(we+"+","g"),tt=new RegExp("^"+we+"*,"+we+"*"),Gi=new RegExp("^"+we+"*([>+~]|"+we+")"+we+"*"),Es=new RegExp(we+"|>"),Dn=new RegExp(Cr),Kr=new RegExp("^"+Bn+"$"),mn={ID:new RegExp("^#("+Bn+")"),CLASS:new RegExp("^\\.("+Bn+")"),TAG:new RegExp("^("+Bn+"|[*])"),ATTR:new RegExp("^"+je),PSEUDO:new RegExp("^"+Cr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+we+"*(even|odd|(([+-]|)(\\d*)n|)"+we+"*(?:([+-]|)"+we+"*(\\d+)|))"+we+"*\\)|)","i"),bool:new RegExp("^(?:"+Wn+")$","i"),needsContext:new RegExp("^"+we+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+we+"*((?:-\\d)?\\d*)"+we+"*\\)|)(?=[^-]|$)","i")},lr=/^(?:input|select|textarea|button)$/i,Dr=/^h\d$/i,Xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,cr=new RegExp("\\\\[\\da-fA-F]{1,6}"+we+"?|\\\\([^\\r\\n\\f])","g"),Hn=function(C,N){var Y="0x"+C.slice(1)-65536;return N||(Y<0?String.fromCharCode(Y+65536):String.fromCharCode(Y>>10|55296,Y&1023|56320))},rn=function(){Er()},Ca=Zr(function(C){return C.disabled===!0&&le(C,"fieldset")},{dir:"parentNode",next:"legend"});function Zi(){try{return b.activeElement}catch{}}try{y.apply(s=c.call(qe.childNodes),qe.childNodes),s[qe.childNodes.length].nodeType}catch{y={apply:function(N,Y){Fe.apply(N,c.call(Y))},call:function(N){Fe.apply(N,c.call(arguments,1))}}}function Ve(C,N,Y,U){var k,I,O,G,Z,de,he,oe=N&&N.ownerDocument,Re=N?N.nodeType:9;if(Y=Y||[],typeof C!="string"||!C||Re!==1&&Re!==9&&Re!==11)return Y;if(!U&&(Er(N),N=N||b,E)){if(Re!==11&&(Z=Xt.exec(C)))if(k=Z[1]){if(Re===9)if(O=N.getElementById(k)){if(O.id===k)return y.call(Y,O),Y}else return Y;else if(oe&&(O=oe.getElementById(k))&&Ve.contains(N,O)&&O.id===k)return y.call(Y,O),Y}else{if(Z[2])return y.apply(Y,N.getElementsByTagName(C)),Y;if((k=Z[3])&&N.getElementsByClassName)return y.apply(Y,N.getElementsByClassName(k)),Y}if(!Rt[C+" "]&&(!L||!L.test(C))){if(he=C,oe=N,Re===1&&(Es.test(C)||Gi.test(C))){for(oe=Ki.test(C)&&Da(N.parentNode)||N,(oe!=N||!z.scope)&&((G=N.getAttribute("id"))?G=d.escapeSelector(G):N.setAttribute("id",G=V)),de=Mi(C),I=de.length;I--;)de[I]=(G?"#"+G:":scope")+" "+Tn(de[I]);he=de.join(",")}try{return y.apply(Y,oe.querySelectorAll(he)),Y}catch{Rt(C,!0)}finally{G===V&&N.removeAttribute("id")}}}return qo(C.replace(ot,"$1"),N,Y,U)}function Xi(){var C=[];function N(Y,U){return C.push(Y+" ")>l.cacheLength&&delete N[C.shift()],N[Y+" "]=U}return N}function En(C){return C[V]=!0,C}function Ti(C){var N=b.createElement("fieldset");try{return!!C(N)}catch{return!1}finally{N.parentNode&&N.parentNode.removeChild(N),N=null}}function pc(C){return function(N){return le(N,"input")&&N.type===C}}function gc(C){return function(N){return(le(N,"input")||le(N,"button"))&&N.type===C}}function Uo(C){return function(N){return"form"in N?N.parentNode&&N.disabled===!1?"label"in N?"label"in N.parentNode?N.parentNode.disabled===C:N.disabled===C:N.isDisabled===C||N.isDisabled!==!C&&Ca(N)===C:N.disabled===C:"label"in N?N.disabled===C:!1}}function yn(C){return En(function(N){return N=+N,En(function(Y,U){for(var k,I=C([],Y.length,N),O=I.length;O--;)Y[k=I[O]]&&(Y[k]=!(U[k]=Y[k]))})})}function Da(C){return C&&typeof C.getElementsByTagName<"u"&&C}function Er(C){var N,Y=C?C.ownerDocument||C:qe;return Y==b||Y.nodeType!==9||!Y.documentElement||(b=Y,R=b.documentElement,E=!d.isXMLDoc(b),q=R.matches||R.webkitMatchesSelector||R.msMatchesSelector,R.msMatchesSelector&&qe!=b&&(N=b.defaultView)&&N.top!==N&&N.addEventListener("unload",rn),z.getById=Ti(function(U){return R.appendChild(U).id=d.expando,!b.getElementsByName||!b.getElementsByName(d.expando).length}),z.disconnectedMatch=Ti(function(U){return q.call(U,"*")}),z.scope=Ti(function(){return b.querySelectorAll(":scope")}),z.cssHas=Ti(function(){try{return b.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),z.getById?(l.filter.ID=function(U){var k=U.replace(cr,Hn);return function(I){return I.getAttribute("id")===k}},l.find.ID=function(U,k){if(typeof k.getElementById<"u"&&E){var I=k.getElementById(U);return I?[I]:[]}}):(l.filter.ID=function(U){var k=U.replace(cr,Hn);return function(I){var O=typeof I.getAttributeNode<"u"&&I.getAttributeNode("id");return O&&O.value===k}},l.find.ID=function(U,k){if(typeof k.getElementById<"u"&&E){var I,O,G,Z=k.getElementById(U);if(Z){if(I=Z.getAttributeNode("id"),I&&I.value===U)return[Z];for(G=k.getElementsByName(U),O=0;Z=G[O++];)if(I=Z.getAttributeNode("id"),I&&I.value===U)return[Z]}return[]}}),l.find.TAG=function(U,k){return typeof k.getElementsByTagName<"u"?k.getElementsByTagName(U):k.querySelectorAll(U)},l.find.CLASS=function(U,k){if(typeof k.getElementsByClassName<"u"&&E)return k.getElementsByClassName(U)},L=[],Ti(function(U){var k;R.appendChild(U).innerHTML="<a id='"+V+"' href='' disabled='disabled'></a><select id='"+V+"-\r\\' disabled='disabled'><option selected=''></option></select>",U.querySelectorAll("[selected]").length||L.push("\\["+we+"*(?:value|"+Wn+")"),U.querySelectorAll("[id~="+V+"-]").length||L.push("~="),U.querySelectorAll("a#"+V+"+*").length||L.push(".#.+[+~]"),U.querySelectorAll(":checked").length||L.push(":checked"),k=b.createElement("input"),k.setAttribute("type","hidden"),U.appendChild(k).setAttribute("name","D"),R.appendChild(U).disabled=!0,U.querySelectorAll(":disabled").length!==2&&L.push(":enabled",":disabled"),k=b.createElement("input"),k.setAttribute("name",""),U.appendChild(k),U.querySelectorAll("[name='']").length||L.push("\\["+we+"*name"+we+"*="+we+`*(?:''|"")`)}),z.cssHas||L.push(":has"),L=L.length&&new RegExp(L.join("|")),gt=function(U,k){if(U===k)return m=!0,0;var I=!U.compareDocumentPosition-!k.compareDocumentPosition;return I||(I=(U.ownerDocument||U)==(k.ownerDocument||k)?U.compareDocumentPosition(k):1,I&1||!z.sortDetached&&k.compareDocumentPosition(U)===I?U===b||U.ownerDocument==qe&&Ve.contains(qe,U)?-1:k===b||k.ownerDocument==qe&&Ve.contains(qe,k)?1:g?w.call(g,U)-w.call(g,k):0:I&4?-1:1)}),b}Ve.matches=function(C,N){return Ve(C,null,null,N)},Ve.matchesSelector=function(C,N){if(Er(C),E&&!Rt[N+" "]&&(!L||!L.test(N)))try{var Y=q.call(C,N);if(Y||z.disconnectedMatch||C.document&&C.document.nodeType!==11)return Y}catch{Rt(N,!0)}return Ve(N,b,null,[C]).length>0},Ve.contains=function(C,N){return(C.ownerDocument||C)!=b&&Er(C),d.contains(C,N)},Ve.attr=function(C,N){(C.ownerDocument||C)!=b&&Er(C);var Y=l.attrHandle[N.toLowerCase()],U=Y&&F.call(l.attrHandle,N.toLowerCase())?Y(C,N,!E):void 0;return U!==void 0?U:C.getAttribute(N)},Ve.error=function(C){throw new Error("Syntax error, unrecognized expression: "+C)},d.uniqueSort=function(C){var N,Y=[],U=0,k=0;if(m=!z.sortStable,g=!z.sortStable&&c.call(C,0),Ue.call(C,gt),m){for(;N=C[k++];)N===C[k]&&(U=Y.push(k));for(;U--;)Je.call(C,Y[U],1)}return g=null,C},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(c.apply(this)))},l=d.expr={cacheLength:50,createPseudo:En,match:mn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(C){return C[1]=C[1].replace(cr,Hn),C[3]=(C[3]||C[4]||C[5]||"").replace(cr,Hn),C[2]==="~="&&(C[3]=" "+C[3]+" "),C.slice(0,4)},CHILD:function(C){return C[1]=C[1].toLowerCase(),C[1].slice(0,3)==="nth"?(C[3]||Ve.error(C[0]),C[4]=+(C[4]?C[5]+(C[6]||1):2*(C[3]==="even"||C[3]==="odd")),C[5]=+(C[7]+C[8]||C[3]==="odd")):C[3]&&Ve.error(C[0]),C},PSEUDO:function(C){var N,Y=!C[6]&&C[2];return mn.CHILD.test(C[0])?null:(C[3]?C[2]=C[4]||C[5]||"":Y&&Dn.test(Y)&&(N=Mi(Y,!0))&&(N=Y.indexOf(")",Y.length-N)-Y.length)&&(C[0]=C[0].slice(0,N),C[2]=Y.slice(0,N)),C.slice(0,3))}},filter:{TAG:function(C){var N=C.replace(cr,Hn).toLowerCase();return C==="*"?function(){return!0}:function(Y){return le(Y,N)}},CLASS:function(C){var N=ue[C+" "];return N||(N=new RegExp("(^|"+we+")"+C+"("+we+"|$)"))&&ue(C,function(Y){return N.test(typeof Y.className=="string"&&Y.className||typeof Y.getAttribute<"u"&&Y.getAttribute("class")||"")})},ATTR:function(C,N,Y){return function(U){var k=Ve.attr(U,C);return k==null?N==="!=":N?(k+="",N==="="?k===Y:N==="!="?k!==Y:N==="^="?Y&&k.indexOf(Y)===0:N==="*="?Y&&k.indexOf(Y)>-1:N==="$="?Y&&k.slice(-Y.length)===Y:N==="~="?(" "+k.replace($e," ")+" ").indexOf(Y)>-1:N==="|="?k===Y||k.slice(0,Y.length+1)===Y+"-":!1):!0}},CHILD:function(C,N,Y,U,k){var I=C.slice(0,3)!=="nth",O=C.slice(-4)!=="last",G=N==="of-type";return U===1&&k===0?function(Z){return!!Z.parentNode}:function(Z,de,he){var oe,Re,xe,Pe,At,Ft=I!==O?"nextSibling":"previousSibling",Ot=Z.parentNode,an=G&&Z.nodeName.toLowerCase(),fr=!he&&!G,De=!1;if(Ot){if(I){for(;Ft;){for(xe=Z;xe=xe[Ft];)if(G?le(xe,an):xe.nodeType===1)return!1;At=Ft=C==="only"&&!At&&"nextSibling"}return!0}if(At=[O?Ot.firstChild:Ot.lastChild],O&&fr){for(Re=Ot[V]||(Ot[V]={}),oe=Re[C]||[],Pe=oe[0]===W&&oe[1],De=Pe&&oe[2],xe=Pe&&Ot.childNodes[Pe];xe=++Pe&&xe&&xe[Ft]||(De=Pe=0)||At.pop();)if(xe.nodeType===1&&++De&&xe===Z){Re[C]=[W,Pe,De];break}}else if(fr&&(Re=Z[V]||(Z[V]={}),oe=Re[C]||[],Pe=oe[0]===W&&oe[1],De=Pe),De===!1)for(;(xe=++Pe&&xe&&xe[Ft]||(De=Pe=0)||At.pop())&&!((G?le(xe,an):xe.nodeType===1)&&++De&&(fr&&(Re=xe[V]||(xe[V]={}),Re[C]=[W,De]),xe===Z)););return De-=k,De===U||De%U===0&&De/U>=0}}},PSEUDO:function(C,N){var Y,U=l.pseudos[C]||l.setFilters[C.toLowerCase()]||Ve.error("unsupported pseudo: "+C);return U[V]?U(N):U.length>1?(Y=[C,C,"",N],l.setFilters.hasOwnProperty(C.toLowerCase())?En(function(k,I){for(var O,G=U(k,N),Z=G.length;Z--;)O=w.call(k,G[Z]),k[O]=!(I[O]=G[Z])}):function(k){return U(k,0,Y)}):U}},pseudos:{not:En(function(C){var N=[],Y=[],U=Ta(C.replace(ot,"$1"));return U[V]?En(function(k,I,O,G){for(var Z,de=U(k,null,G,[]),he=k.length;he--;)(Z=de[he])&&(k[he]=!(I[he]=Z))}):function(k,I,O){return N[0]=k,U(N,null,O,Y),N[0]=null,!Y.pop()}}),has:En(function(C){return function(N){return Ve(C,N).length>0}}),contains:En(function(C){return C=C.replace(cr,Hn),function(N){return(N.textContent||d.text(N)).indexOf(C)>-1}}),lang:En(function(C){return Kr.test(C||"")||Ve.error("unsupported lang: "+C),C=C.replace(cr,Hn).toLowerCase(),function(N){var Y;do if(Y=E?N.lang:N.getAttribute("xml:lang")||N.getAttribute("lang"))return Y=Y.toLowerCase(),Y===C||Y.indexOf(C+"-")===0;while((N=N.parentNode)&&N.nodeType===1);return!1}}),target:function(C){var N=t.location&&t.location.hash;return N&&N.slice(1)===C.id},root:function(C){return C===R},focus:function(C){return C===Zi()&&b.hasFocus()&&!!(C.type||C.href||~C.tabIndex)},enabled:Uo(!1),disabled:Uo(!0),checked:function(C){return le(C,"input")&&!!C.checked||le(C,"option")&&!!C.selected},selected:function(C){return C.parentNode&&C.parentNode.selectedIndex,C.selected===!0},empty:function(C){for(C=C.firstChild;C;C=C.nextSibling)if(C.nodeType<6)return!1;return!0},parent:function(C){return!l.pseudos.empty(C)},header:function(C){return Dr.test(C.nodeName)},input:function(C){return lr.test(C.nodeName)},button:function(C){return le(C,"input")&&C.type==="button"||le(C,"button")},text:function(C){var N;return le(C,"input")&&C.type==="text"&&((N=C.getAttribute("type"))==null||N.toLowerCase()==="text")},first:yn(function(){return[0]}),last:yn(function(C,N){return[N-1]}),eq:yn(function(C,N,Y){return[Y<0?Y+N:Y]}),even:yn(function(C,N){for(var Y=0;Y<N;Y+=2)C.push(Y);return C}),odd:yn(function(C,N){for(var Y=1;Y<N;Y+=2)C.push(Y);return C}),lt:yn(function(C,N,Y){var U;for(Y<0?U=Y+N:Y>N?U=N:U=Y;--U>=0;)C.push(U);return C}),gt:yn(function(C,N,Y){for(var U=Y<0?Y+N:Y;++U<N;)C.push(U);return C})}},l.pseudos.nth=l.pseudos.eq;for(a in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})l.pseudos[a]=pc(a);for(a in{submit:!0,reset:!0})l.pseudos[a]=gc(a);function Ts(){}Ts.prototype=l.filters=l.pseudos,l.setFilters=new Ts;function Mi(C,N){var Y,U,k,I,O,G,Z,de=Te[C+" "];if(de)return N?0:de.slice(0);for(O=C,G=[],Z=l.preFilter;O;){(!Y||(U=tt.exec(O)))&&(U&&(O=O.slice(U[0].length)||O),G.push(k=[])),Y=!1,(U=Gi.exec(O))&&(Y=U.shift(),k.push({value:Y,type:U[0].replace(ot," ")}),O=O.slice(Y.length));for(I in l.filter)(U=mn[I].exec(O))&&(!Z[I]||(U=Z[I](U)))&&(Y=U.shift(),k.push({value:Y,type:I,matches:U}),O=O.slice(Y.length));if(!Y)break}return N?O.length:O?Ve.error(C):Te(C,G).slice(0)}function Tn(C){for(var N=0,Y=C.length,U="";N<Y;N++)U+=C[N].value;return U}function Zr(C,N,Y){var U=N.dir,k=N.next,I=k||U,O=Y&&I==="parentNode",G=ee++;return N.first?function(Z,de,he){for(;Z=Z[U];)if(Z.nodeType===1||O)return C(Z,de,he);return!1}:function(Z,de,he){var oe,Re,xe=[W,G];if(he){for(;Z=Z[U];)if((Z.nodeType===1||O)&&C(Z,de,he))return!0}else for(;Z=Z[U];)if(Z.nodeType===1||O)if(Re=Z[V]||(Z[V]={}),k&&le(Z,k))Z=Z[U]||Z;else{if((oe=Re[I])&&oe[0]===W&&oe[1]===G)return xe[2]=oe[2];if(Re[I]=xe,xe[2]=C(Z,de,he))return!0}return!1}}function Ea(C){return C.length>1?function(N,Y,U){for(var k=C.length;k--;)if(!C[k](N,Y,U))return!1;return!0}:C[0]}function mc(C,N,Y){for(var U=0,k=N.length;U<k;U++)Ve(C,N[U],Y);return Y}function Ms(C,N,Y,U,k){for(var I,O=[],G=0,Z=C.length,de=N!=null;G<Z;G++)(I=C[G])&&(!Y||Y(I,U,k))&&(O.push(I),de&&N.push(G));return O}function Tr(C,N,Y,U,k,I){return U&&!U[V]&&(U=Tr(U)),k&&!k[V]&&(k=Tr(k,I)),En(function(O,G,Z,de){var he,oe,Re,xe,Pe=[],At=[],Ft=G.length,Ot=O||mc(N||"*",Z.nodeType?[Z]:Z,[]),an=C&&(O||!N)?Ms(Ot,Pe,C,Z,de):Ot;if(Y?(xe=k||(O?C:Ft||U)?[]:G,Y(an,xe,Z,de)):xe=an,U)for(he=Ms(xe,At),U(he,[],Z,de),oe=he.length;oe--;)(Re=he[oe])&&(xe[At[oe]]=!(an[At[oe]]=Re));if(O){if(k||C){if(k){for(he=[],oe=xe.length;oe--;)(Re=xe[oe])&&he.push(an[oe]=Re);k(null,xe=[],he,de)}for(oe=xe.length;oe--;)(Re=xe[oe])&&(he=k?w.call(O,Re):Pe[oe])>-1&&(O[he]=!(G[he]=Re))}}else xe=Ms(xe===G?xe.splice(Ft,xe.length):xe),k?k(null,G,xe,de):y.apply(G,xe)})}function sn(C){for(var N,Y,U,k=C.length,I=l.relative[C[0].type],O=I||l.relative[" "],G=I?1:0,Z=Zr(function(oe){return oe===N},O,!0),de=Zr(function(oe){return w.call(N,oe)>-1},O,!0),he=[function(oe,Re,xe){var Pe=!I&&(xe||Re!=f)||((N=Re).nodeType?Z(oe,Re,xe):de(oe,Re,xe));return N=null,Pe}];G<k;G++)if(Y=l.relative[C[G].type])he=[Zr(Ea(he),Y)];else{if(Y=l.filter[C[G].type].apply(null,C[G].matches),Y[V]){for(U=++G;U<k&&!l.relative[C[U].type];U++);return Tr(G>1&&Ea(he),G>1&&Tn(C.slice(0,G-1).concat({value:C[G-2].type===" "?"*":""})).replace(ot,"$1"),Y,G<U&&sn(C.slice(G,U)),U<k&&sn(C=C.slice(U)),U<k&&Tn(C))}he.push(Y)}return Ea(he)}function zo(C,N){var Y=N.length>0,U=C.length>0,k=function(I,O,G,Z,de){var he,oe,Re,xe=0,Pe="0",At=I&&[],Ft=[],Ot=f,an=I||U&&l.find.TAG("*",de),fr=W+=Ot==null?1:Math.random()||.1,De=an.length;for(de&&(f=O==b||O||de);Pe!==De&&(he=an[Pe])!=null;Pe++){if(U&&he){for(oe=0,!O&&he.ownerDocument!=b&&(Er(he),G=!E);Re=C[oe++];)if(Re(he,O||b,G)){y.call(Z,he);break}de&&(W=fr)}Y&&((he=!Re&&he)&&xe--,I&&At.push(he))}if(xe+=Pe,Y&&Pe!==xe){for(oe=0;Re=N[oe++];)Re(At,Ft,O,G);if(I){if(xe>0)for(;Pe--;)At[Pe]||Ft[Pe]||(Ft[Pe]=at.call(Z));Ft=Ms(Ft)}y.apply(Z,Ft),de&&!I&&Ft.length>0&&xe+N.length>1&&d.uniqueSort(Z)}return de&&(W=fr,f=Ot),At};return Y?En(k):k}function Ta(C,N){var Y,U=[],k=[],I=Ee[C+" "];if(!I){for(N||(N=Mi(C)),Y=N.length;Y--;)I=sn(N[Y]),I[V]?U.push(I):k.push(I);I=Ee(C,zo(k,U)),I.selector=C}return I}function qo(C,N,Y,U){var k,I,O,G,Z,de=typeof C=="function"&&C,he=!U&&Mi(C=de.selector||C);if(Y=Y||[],he.length===1){if(I=he[0]=he[0].slice(0),I.length>2&&(O=I[0]).type==="ID"&&N.nodeType===9&&E&&l.relative[I[1].type]){if(N=(l.find.ID(O.matches[0].replace(cr,Hn),N)||[])[0],N)de&&(N=N.parentNode);else return Y;C=C.slice(I.shift().value.length)}for(k=mn.needsContext.test(C)?0:I.length;k--&&(O=I[k],!l.relative[G=O.type]);)if((Z=l.find[G])&&(U=Z(O.matches[0].replace(cr,Hn),Ki.test(I[0].type)&&Da(N.parentNode)||N))){if(I.splice(k,1),C=U.length&&Tn(I),!C)return y.apply(Y,U),Y;break}}return(de||Ta(C,he))(U,N,!E,Y,!N||Ki.test(C)&&Da(N.parentNode)||N),Y}z.sortStable=V.split("").sort(gt).join("")===V,Er(),z.sortDetached=Ti(function(C){return C.compareDocumentPosition(b.createElement("fieldset"))&1}),d.find=Ve,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,Ve.compile=Ta,Ve.select=qo,Ve.setDocument=Er,Ve.tokenize=Mi,Ve.escape=d.escapeSelector,Ve.getText=d.text,Ve.isXML=d.isXMLDoc,Ve.selectors=d.expr,Ve.support=d.support,Ve.uniqueSort=d.uniqueSort})();var ft=function(a,l,f){for(var g=[],m=f!==void 0;(a=a[l])&&a.nodeType!==9;)if(a.nodeType===1){if(m&&d(a).is(f))break;g.push(a)}return g},Mt=function(a,l){for(var f=[];a;a=a.nextSibling)a.nodeType===1&&a!==l&&f.push(a);return f},Nt=d.expr.match.needsContext,_t=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function jn(a,l,f){return $(l)?d.grep(a,function(g,m){return!!l.call(g,m,g)!==f}):l.nodeType?d.grep(a,function(g){return g===l!==f}):typeof l!="string"?d.grep(a,function(g){return w.call(l,g)>-1!==f}):d.filter(l,a,f)}d.filter=function(a,l,f){var g=l[0];return f&&(a=":not("+a+")"),l.length===1&&g.nodeType===1?d.find.matchesSelector(g,a)?[g]:[]:d.find.matches(a,d.grep(l,function(m){return m.nodeType===1}))},d.fn.extend({find:function(a){var l,f,g=this.length,m=this;if(typeof a!="string")return this.pushStack(d(a).filter(function(){for(l=0;l<g;l++)if(d.contains(m[l],this))return!0}));for(f=this.pushStack([]),l=0;l<g;l++)d.find(a,m[l],f);return g>1?d.uniqueSort(f):f},filter:function(a){return this.pushStack(jn(this,a||[],!1))},not:function(a){return this.pushStack(jn(this,a||[],!0))},is:function(a){return!!jn(this,typeof a=="string"&&Nt.test(a)?d(a):a||[],!1).length}});var qt,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,sr=d.fn.init=function(a,l,f){var g,m;if(!a)return this;if(f=f||qt,typeof a=="string")if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?g=[null,a,null]:g=Vt.exec(a),g&&(g[1]||!l))if(g[1]){if(l=l instanceof d?l[0]:l,d.merge(this,d.parseHTML(g[1],l&&l.nodeType?l.ownerDocument||l:H,!0)),_t.test(g[1])&&d.isPlainObject(l))for(g in l)$(this[g])?this[g](l[g]):this.attr(g,l[g]);return this}else return m=H.getElementById(g[2]),m&&(this[0]=m,this.length=1),this;else return!l||l.jquery?(l||f).find(a):this.constructor(l).find(a);else{if(a.nodeType)return this[0]=a,this.length=1,this;if($(a))return f.ready!==void 0?f.ready(a):a(d)}return d.makeArray(a,this)};sr.prototype=d.fn,qt=d(H);var Hi=/^(?:parents|prev(?:Until|All))/,Br={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var l=d(a,this),f=l.length;return this.filter(function(){for(var g=0;g<f;g++)if(d.contains(this,l[g]))return!0})},closest:function(a,l){var f,g=0,m=this.length,y=[],b=typeof a!="string"&&d(a);if(!Nt.test(a)){for(;g<m;g++)for(f=this[g];f&&f!==l;f=f.parentNode)if(f.nodeType<11&&(b?b.index(f)>-1:f.nodeType===1&&d.find.matchesSelector(f,a))){y.push(f);break}}return this.pushStack(y.length>1?d.uniqueSort(y):y)},index:function(a){return a?typeof a=="string"?w.call(d(a),this[0]):w.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,l){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(a,l))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function Lt(a,l){for(;(a=a[l])&&a.nodeType!==1;);return a}d.each({parent:function(a){var l=a.parentNode;return l&&l.nodeType!==11?l:null},parents:function(a){return ft(a,"parentNode")},parentsUntil:function(a,l,f){return ft(a,"parentNode",f)},next:function(a){return Lt(a,"nextSibling")},prev:function(a){return Lt(a,"previousSibling")},nextAll:function(a){return ft(a,"nextSibling")},prevAll:function(a){return ft(a,"previousSibling")},nextUntil:function(a,l,f){return ft(a,"nextSibling",f)},prevUntil:function(a,l,f){return ft(a,"previousSibling",f)},siblings:function(a){return Mt((a.parentNode||{}).firstChild,a)},children:function(a){return Mt(a.firstChild)},contents:function(a){return a.contentDocument!=null&&o(a.contentDocument)?a.contentDocument:(le(a,"template")&&(a=a.content||a),d.merge([],a.childNodes))}},function(a,l){d.fn[a]=function(f,g){var m=d.map(this,l,f);return a.slice(-5)!=="Until"&&(g=f),g&&typeof g=="string"&&(m=d.filter(g,m)),this.length>1&&(Br[a]||d.uniqueSort(m),Hi.test(a)&&m.reverse()),this.pushStack(m)}});var fn=/[^\x20\t\r\n\f]+/g;function vi(a){var l={};return d.each(a.match(fn)||[],function(f,g){l[g]=!0}),l}d.Callbacks=function(a){a=typeof a=="string"?vi(a):d.extend({},a);var l,f,g,m,y=[],b=[],R=-1,E=function(){for(m=m||a.once,g=l=!0;b.length;R=-1)for(f=b.shift();++R<y.length;)y[R].apply(f[0],f[1])===!1&&a.stopOnFalse&&(R=y.length,f=!1);a.memory||(f=!1),l=!1,m&&(f?y=[]:y="")},L={add:function(){return y&&(f&&!l&&(R=y.length-1,b.push(f)),function q(V){d.each(V,function(W,ee){$(ee)?(!a.unique||!L.has(ee))&&y.push(ee):ee&&ee.length&&ye(ee)!=="string"&&q(ee)})}(arguments),f&&!l&&E()),this},remove:function(){return d.each(arguments,function(q,V){for(var W;(W=d.inArray(V,y,W))>-1;)y.splice(W,1),W<=R&&R--}),this},has:function(q){return q?d.inArray(q,y)>-1:y.length>0},empty:function(){return y&&(y=[]),this},disable:function(){return m=b=[],y=f="",this},disabled:function(){return!y},lock:function(){return m=b=[],!f&&!l&&(y=f=""),this},locked:function(){return!!m},fireWith:function(q,V){return m||(V=V||[],V=[q,V.slice?V.slice():V],b.push(V),l||E()),this},fire:function(){return L.fireWith(this,arguments),this},fired:function(){return!!g}};return L};function kn(a){return a}function Hr(a){throw a}function Gt(a,l,f,g){var m;try{a&&$(m=a.promise)?m.call(a).done(l).fail(f):a&&$(m=a.then)?m.call(a,l,f):l.apply(void 0,[a].slice(g))}catch(y){f.apply(void 0,[y])}}d.extend({Deferred:function(a){var l=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],f="pending",g={state:function(){return f},always:function(){return m.done(arguments).fail(arguments),this},catch:function(y){return g.then(null,y)},pipe:function(){var y=arguments;return d.Deferred(function(b){d.each(l,function(R,E){var L=$(y[E[4]])&&y[E[4]];m[E[1]](function(){var q=L&&L.apply(this,arguments);q&&$(q.promise)?q.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[E[0]+"With"](this,L?[q]:arguments)})}),y=null}).promise()},then:function(y,b,R){var E=0;function L(q,V,W,ee){return function(){var ue=this,Te=arguments,Ee=function(){var gt,Wn;if(!(q<E)){if(gt=W.apply(ue,Te),gt===V.promise())throw new TypeError("Thenable self-resolution");Wn=gt&&(typeof gt=="object"||typeof gt=="function")&&gt.then,$(Wn)?ee?Wn.call(gt,L(E,V,kn,ee),L(E,V,Hr,ee)):(E++,Wn.call(gt,L(E,V,kn,ee),L(E,V,Hr,ee),L(E,V,kn,V.notifyWith))):(W!==kn&&(ue=void 0,Te=[gt]),(ee||V.resolveWith)(ue,Te))}},Rt=ee?Ee:function(){try{Ee()}catch(gt){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(gt,Rt.error),q+1>=E&&(W!==Hr&&(ue=void 0,Te=[gt]),V.rejectWith(ue,Te))}};q?Rt():(d.Deferred.getErrorHook?Rt.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(Rt.error=d.Deferred.getStackHook()),t.setTimeout(Rt))}}return d.Deferred(function(q){l[0][3].add(L(0,q,$(R)?R:kn,q.notifyWith)),l[1][3].add(L(0,q,$(y)?y:kn)),l[2][3].add(L(0,q,$(b)?b:Hr))}).promise()},promise:function(y){return y!=null?d.extend(y,g):g}},m={};return d.each(l,function(y,b){var R=b[2],E=b[5];g[b[1]]=R.add,E&&R.add(function(){f=E},l[3-y][2].disable,l[3-y][3].disable,l[0][2].lock,l[0][3].lock),R.add(b[3].fire),m[b[0]]=function(){return m[b[0]+"With"](this===m?void 0:this,arguments),this},m[b[0]+"With"]=R.fireWith}),g.promise(m),a&&a.call(m,m),m},when:function(a){var l=arguments.length,f=l,g=Array(f),m=c.call(arguments),y=d.Deferred(),b=function(R){return function(E){g[R]=this,m[R]=arguments.length>1?c.call(arguments):E,--l||y.resolveWith(g,m)}};if(l<=1&&(Gt(a,y.done(b(f)).resolve,y.reject,!l),y.state()==="pending"||$(m[f]&&m[f].then)))return y.then();for(;f--;)Gt(m[f],b(f),y.reject);return y.promise()}});var Ur=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,l){t.console&&t.console.warn&&a&&Ur.test(a.name)&&t.console.warn("jQuery.Deferred exception: "+a.message,a.stack,l)},d.readyException=function(a){t.setTimeout(function(){throw a})};var Ui=d.Deferred();d.fn.ready=function(a){return Ui.then(a).catch(function(l){d.readyException(l)}),this},d.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(a!==!0&&--d.readyWait>0)&&Ui.resolveWith(H,[d]))}}),d.ready.then=Ui.then;function Kt(){H.removeEventListener("DOMContentLoaded",Kt),t.removeEventListener("load",Kt),d.ready()}H.readyState==="complete"||H.readyState!=="loading"&&!H.documentElement.doScroll?t.setTimeout(d.ready):(H.addEventListener("DOMContentLoaded",Kt),t.addEventListener("load",Kt));var dn=function(a,l,f,g,m,y,b){var R=0,E=a.length,L=f==null;if(ye(f)==="object"){m=!0;for(R in f)dn(a,l,R,f[R],!0,y,b)}else if(g!==void 0&&(m=!0,$(g)||(b=!0),L&&(b?(l.call(a,g),l=null):(L=l,l=function(q,V,W){return L.call(d(q),W)})),l))for(;R<E;R++)l(a[R],f,b?g:g.call(a[R],R,l(a[R],f)));return m?a:L?l.call(a):E?l(a[0],f):y},aa=/^-ms-/,ar=/-([a-z])/g;function Bt(a,l){return l.toUpperCase()}function jt(a){return a.replace(aa,"ms-").replace(ar,Bt)}var $n=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType};function Fn(){this.expando=d.expando+Fn.uid++}Fn.uid=1,Fn.prototype={cache:function(a){var l=a[this.expando];return l||(l={},$n(a)&&(a.nodeType?a[this.expando]=l:Object.defineProperty(a,this.expando,{value:l,configurable:!0}))),l},set:function(a,l,f){var g,m=this.cache(a);if(typeof l=="string")m[jt(l)]=f;else for(g in l)m[jt(g)]=l[g];return m},get:function(a,l){return l===void 0?this.cache(a):a[this.expando]&&a[this.expando][jt(l)]},access:function(a,l,f){return l===void 0||l&&typeof l=="string"&&f===void 0?this.get(a,l):(this.set(a,l,f),f!==void 0?f:l)},remove:function(a,l){var f,g=a[this.expando];if(g!==void 0){if(l!==void 0)for(Array.isArray(l)?l=l.map(jt):(l=jt(l),l=l in g?[l]:l.match(fn)||[]),f=l.length;f--;)delete g[l[f]];(l===void 0||d.isEmptyObject(g))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var l=a[this.expando];return l!==void 0&&!d.isEmptyObject(l)}};var fe=new Fn,$t=new Fn,br=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xr=/[A-Z]/g;function Ce(a){return a==="true"?!0:a==="false"?!1:a==="null"?null:a===+a+""?+a:br.test(a)?JSON.parse(a):a}function zr(a,l,f){var g;if(f===void 0&&a.nodeType===1)if(g="data-"+l.replace(xr,"-$&").toLowerCase(),f=a.getAttribute(g),typeof f=="string"){try{f=Ce(f)}catch{}$t.set(a,l,f)}else f=void 0;return f}d.extend({hasData:function(a){return $t.hasData(a)||fe.hasData(a)},data:function(a,l,f){return $t.access(a,l,f)},removeData:function(a,l){$t.remove(a,l)},_data:function(a,l,f){return fe.access(a,l,f)},_removeData:function(a,l){fe.remove(a,l)}}),d.fn.extend({data:function(a,l){var f,g,m,y=this[0],b=y&&y.attributes;if(a===void 0){if(this.length&&(m=$t.get(y),y.nodeType===1&&!fe.get(y,"hasDataAttrs"))){for(f=b.length;f--;)b[f]&&(g=b[f].name,g.indexOf("data-")===0&&(g=jt(g.slice(5)),zr(y,g,m[g])));fe.set(y,"hasDataAttrs",!0)}return m}return typeof a=="object"?this.each(function(){$t.set(this,a)}):dn(this,function(R){var E;if(y&&R===void 0)return E=$t.get(y,a),E!==void 0||(E=zr(y,a),E!==void 0)?E:void 0;this.each(function(){$t.set(this,a,R)})},null,l,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){$t.remove(this,a)})}}),d.extend({queue:function(a,l,f){var g;if(a)return l=(l||"fx")+"queue",g=fe.get(a,l),f&&(!g||Array.isArray(f)?g=fe.access(a,l,d.makeArray(f)):g.push(f)),g||[]},dequeue:function(a,l){l=l||"fx";var f=d.queue(a,l),g=f.length,m=f.shift(),y=d._queueHooks(a,l),b=function(){d.dequeue(a,l)};m==="inprogress"&&(m=f.shift(),g--),m&&(l==="fx"&&f.unshift("inprogress"),delete y.stop,m.call(a,b,y)),!g&&y&&y.empty.fire()},_queueHooks:function(a,l){var f=l+"queueHooks";return fe.get(a,f)||fe.access(a,f,{empty:d.Callbacks("once memory").add(function(){fe.remove(a,[l+"queue",f])})})}}),d.fn.extend({queue:function(a,l){var f=2;return typeof a!="string"&&(l=a,a="fx",f--),arguments.length<f?d.queue(this[0],a):l===void 0?this:this.each(function(){var g=d.queue(this,a,l);d._queueHooks(this,a),a==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,l){var f,g=1,m=d.Deferred(),y=this,b=this.length,R=function(){--g||m.resolveWith(y,[y])};for(typeof a!="string"&&(l=a,a=void 0),a=a||"fx";b--;)f=fe.get(y[b],a+"queueHooks"),f&&f.empty&&(g++,f.empty.add(R));return R(),m.promise(l)}});var bi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Yn=new RegExp("^(?:([+-])=|)("+bi+")([a-z%]*)$","i"),hn=["Top","Right","Bottom","Left"],or=H.documentElement,_r=function(a){return d.contains(a.ownerDocument,a)},oa={composed:!0};or.getRootNode&&(_r=function(a){return d.contains(a.ownerDocument,a)||a.getRootNode(oa)===a.ownerDocument});var xi=function(a,l){return a=l||a,a.style.display==="none"||a.style.display===""&&_r(a)&&d.css(a,"display")==="none"};function mo(a,l,f,g){var m,y,b=20,R=g?function(){return g.cur()}:function(){return d.css(a,l,"")},E=R(),L=f&&f[3]||(d.cssNumber[l]?"":"px"),q=a.nodeType&&(d.cssNumber[l]||L!=="px"&&+E)&&Yn.exec(d.css(a,l));if(q&&q[3]!==L){for(E=E/2,L=L||q[3],q=+E||1;b--;)d.style(a,l,q+L),(1-y)*(1-(y=R()/E||.5))<=0&&(b=0),q=q/y;q=q*2,d.style(a,l,q+L),f=f||[]}return f&&(q=+q||+E||0,m=f[1]?q+(f[1]+1)*f[2]:+f[2],g&&(g.unit=L,g.start=q,g.end=m)),m}var yo={};function Gl(a){var l,f=a.ownerDocument,g=a.nodeName,m=yo[g];return m||(l=f.body.appendChild(f.createElement(g)),m=d.css(l,"display"),l.parentNode.removeChild(l),m==="none"&&(m="block"),yo[g]=m,m)}function qr(a,l){for(var f,g,m=[],y=0,b=a.length;y<b;y++)g=a[y],g.style&&(f=g.style.display,l?(f==="none"&&(m[y]=fe.get(g,"display")||null,m[y]||(g.style.display="")),g.style.display===""&&xi(g)&&(m[y]=Gl(g))):f!=="none"&&(m[y]="none",fe.set(g,"display",f)));for(y=0;y<b;y++)m[y]!=null&&(a[y].style.display=m[y]);return a}d.fn.extend({show:function(){return qr(this,!0)},hide:function(){return qr(this)},toggle:function(a){return typeof a=="boolean"?a?this.show():this.hide():this.each(function(){xi(this)?d(this).show():d(this).hide()})}});var _i=/^(?:checkbox|radio)$/i,vo=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=H.createDocumentFragment(),l=a.appendChild(H.createElement("div")),f=H.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),l.appendChild(f),z.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,l.innerHTML="<textarea>x</textarea>",z.noCloneChecked=!!l.cloneNode(!0).lastChild.defaultValue,l.innerHTML="<option></option>",z.option=!!l.lastChild})();var pn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};pn.tbody=pn.tfoot=pn.colgroup=pn.caption=pn.thead,pn.th=pn.td,z.option||(pn.optgroup=pn.option=[1,"<select multiple='multiple'>","</select>"]);function Zt(a,l){var f;return typeof a.getElementsByTagName<"u"?f=a.getElementsByTagName(l||"*"):typeof a.querySelectorAll<"u"?f=a.querySelectorAll(l||"*"):f=[],l===void 0||l&&le(a,l)?d.merge([a],f):f}function bs(a,l){for(var f=0,g=a.length;f<g;f++)fe.set(a[f],"globalEval",!l||fe.get(l[f],"globalEval"))}var Kl=/<|&#?\w+;/;function xo(a,l,f,g,m){for(var y,b,R,E,L,q,V=l.createDocumentFragment(),W=[],ee=0,ue=a.length;ee<ue;ee++)if(y=a[ee],y||y===0)if(ye(y)==="object")d.merge(W,y.nodeType?[y]:y);else if(!Kl.test(y))W.push(l.createTextNode(y));else{for(b=b||V.appendChild(l.createElement("div")),R=(vo.exec(y)||["",""])[1].toLowerCase(),E=pn[R]||pn._default,b.innerHTML=E[1]+d.htmlPrefilter(y)+E[2],q=E[0];q--;)b=b.lastChild;d.merge(W,b.childNodes),b=V.firstChild,b.textContent=""}for(V.textContent="",ee=0;y=W[ee++];){if(g&&d.inArray(y,g)>-1){m&&m.push(y);continue}if(L=_r(y),b=Zt(V.appendChild(y),"script"),L&&bs(b),f)for(q=0;y=b[q++];)bo.test(y.type||"")&&f.push(y)}return V}var _o=/^([^.]*)(?:\.(.+)|)/;function wr(){return!0}function wi(){return!1}function zi(a,l,f,g,m,y){var b,R;if(typeof l=="object"){typeof f!="string"&&(g=g||f,f=void 0);for(R in l)zi(a,R,f,g,l[R],y);return a}if(g==null&&m==null?(m=f,g=f=void 0):m==null&&(typeof f=="string"?(m=g,g=void 0):(m=g,g=f,f=void 0)),m===!1)m=wi;else if(!m)return a;return y===1&&(b=m,m=function(E){return d().off(E),b.apply(this,arguments)},m.guid=b.guid||(b.guid=d.guid++)),a.each(function(){d.event.add(this,l,m,g,f)})}d.event={global:{},add:function(a,l,f,g,m){var y,b,R,E,L,q,V,W,ee,ue,Te,Ee=fe.get(a);if($n(a))for(f.handler&&(y=f,f=y.handler,m=y.selector),m&&d.find.matchesSelector(or,m),f.guid||(f.guid=d.guid++),(E=Ee.events)||(E=Ee.events=Object.create(null)),(b=Ee.handle)||(b=Ee.handle=function(Rt){return typeof d<"u"&&d.event.triggered!==Rt.type?d.event.dispatch.apply(a,arguments):void 0}),l=(l||"").match(fn)||[""],L=l.length;L--;)R=_o.exec(l[L])||[],ee=Te=R[1],ue=(R[2]||"").split(".").sort(),ee&&(V=d.event.special[ee]||{},ee=(m?V.delegateType:V.bindType)||ee,V=d.event.special[ee]||{},q=d.extend({type:ee,origType:Te,data:g,handler:f,guid:f.guid,selector:m,needsContext:m&&d.expr.match.needsContext.test(m),namespace:ue.join(".")},y),(W=E[ee])||(W=E[ee]=[],W.delegateCount=0,(!V.setup||V.setup.call(a,g,ue,b)===!1)&&a.addEventListener&&a.addEventListener(ee,b)),V.add&&(V.add.call(a,q),q.handler.guid||(q.handler.guid=f.guid)),m?W.splice(W.delegateCount++,0,q):W.push(q),d.event.global[ee]=!0)},remove:function(a,l,f,g,m){var y,b,R,E,L,q,V,W,ee,ue,Te,Ee=fe.hasData(a)&&fe.get(a);if(!(!Ee||!(E=Ee.events))){for(l=(l||"").match(fn)||[""],L=l.length;L--;){if(R=_o.exec(l[L])||[],ee=Te=R[1],ue=(R[2]||"").split(".").sort(),!ee){for(ee in E)d.event.remove(a,ee+l[L],f,g,!0);continue}for(V=d.event.special[ee]||{},ee=(g?V.delegateType:V.bindType)||ee,W=E[ee]||[],R=R[2]&&new RegExp("(^|\\.)"+ue.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=W.length;y--;)q=W[y],(m||Te===q.origType)&&(!f||f.guid===q.guid)&&(!R||R.test(q.namespace))&&(!g||g===q.selector||g==="**"&&q.selector)&&(W.splice(y,1),q.selector&&W.delegateCount--,V.remove&&V.remove.call(a,q));b&&!W.length&&((!V.teardown||V.teardown.call(a,ue,Ee.handle)===!1)&&d.removeEvent(a,ee,Ee.handle),delete E[ee])}d.isEmptyObject(E)&&fe.remove(a,"handle events")}},dispatch:function(a){var l,f,g,m,y,b,R=new Array(arguments.length),E=d.event.fix(a),L=(fe.get(this,"events")||Object.create(null))[E.type]||[],q=d.event.special[E.type]||{};for(R[0]=E,l=1;l<arguments.length;l++)R[l]=arguments[l];if(E.delegateTarget=this,!(q.preDispatch&&q.preDispatch.call(this,E)===!1)){for(b=d.event.handlers.call(this,E,L),l=0;(m=b[l++])&&!E.isPropagationStopped();)for(E.currentTarget=m.elem,f=0;(y=m.handlers[f++])&&!E.isImmediatePropagationStopped();)(!E.rnamespace||y.namespace===!1||E.rnamespace.test(y.namespace))&&(E.handleObj=y,E.data=y.data,g=((d.event.special[y.origType]||{}).handle||y.handler).apply(m.elem,R),g!==void 0&&(E.result=g)===!1&&(E.preventDefault(),E.stopPropagation()));return q.postDispatch&&q.postDispatch.call(this,E),E.result}},handlers:function(a,l){var f,g,m,y,b,R=[],E=l.delegateCount,L=a.target;if(E&&L.nodeType&&!(a.type==="click"&&a.button>=1)){for(;L!==this;L=L.parentNode||this)if(L.nodeType===1&&!(a.type==="click"&&L.disabled===!0)){for(y=[],b={},f=0;f<E;f++)g=l[f],m=g.selector+" ",b[m]===void 0&&(b[m]=g.needsContext?d(m,this).index(L)>-1:d.find(m,this,null,[L]).length),b[m]&&y.push(g);y.length&&R.push({elem:L,handlers:y})}}return L=this,E<l.length&&R.push({elem:L,handlers:l.slice(E)}),R},addProp:function(a,l){Object.defineProperty(d.Event.prototype,a,{enumerable:!0,configurable:!0,get:$(l)?function(){if(this.originalEvent)return l(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(f){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:f})}})},fix:function(a){return a[d.expando]?a:new d.Event(a)},special:{load:{noBubble:!0},click:{setup:function(a){var l=this||a;return _i.test(l.type)&&l.click&&le(l,"input")&&xs(l,"click",!0),!1},trigger:function(a){var l=this||a;return _i.test(l.type)&&l.click&&le(l,"input")&&xs(l,"click"),!0},_default:function(a){var l=a.target;return _i.test(l.type)&&l.click&&le(l,"input")&&fe.get(l,"click")||le(l,"a")}},beforeunload:{postDispatch:function(a){a.result!==void 0&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};function xs(a,l,f){if(!f){fe.get(a,l)===void 0&&d.event.add(a,l,wr);return}fe.set(a,l,!1),d.event.add(a,l,{namespace:!1,handler:function(g){var m,y=fe.get(this,l);if(g.isTrigger&1&&this[l]){if(y)(d.event.special[l]||{}).delegateType&&g.stopPropagation();else if(y=c.call(arguments),fe.set(this,l,y),this[l](),m=fe.get(this,l),fe.set(this,l,!1),y!==m)return g.stopImmediatePropagation(),g.preventDefault(),m}else y&&(fe.set(this,l,d.event.trigger(y[0],y.slice(1),this)),g.stopPropagation(),g.isImmediatePropagationStopped=wr)}})}d.removeEvent=function(a,l,f){a.removeEventListener&&a.removeEventListener(l,f)},d.Event=function(a,l){if(!(this instanceof d.Event))return new d.Event(a,l);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.defaultPrevented===void 0&&a.returnValue===!1?wr:wi,this.target=a.target&&a.target.nodeType===3?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,l&&d.extend(this,l),this.timeStamp=a&&a.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:wi,isPropagationStopped:wi,isImmediatePropagationStopped:wi,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=wr,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=wr,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=wr,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},d.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(a,l){function f(g){if(H.documentMode){var m=fe.get(this,"handle"),y=d.event.fix(g);y.type=g.type==="focusin"?"focus":"blur",y.isSimulated=!0,m(g),y.target===y.currentTarget&&m(y)}else d.event.simulate(l,g.target,d.event.fix(g))}d.event.special[a]={setup:function(){var g;if(xs(this,a,!0),H.documentMode)g=fe.get(this,l),g||this.addEventListener(l,f),fe.set(this,l,(g||0)+1);else return!1},trigger:function(){return xs(this,a),!0},teardown:function(){var g;if(H.documentMode)g=fe.get(this,l)-1,g?fe.set(this,l,g):(this.removeEventListener(l,f),fe.remove(this,l));else return!1},_default:function(g){return fe.get(g.target,a)},delegateType:l},d.event.special[l]={setup:function(){var g=this.ownerDocument||this.document||this,m=H.documentMode?this:g,y=fe.get(m,l);y||(H.documentMode?this.addEventListener(l,f):g.addEventListener(a,f,!0)),fe.set(m,l,(y||0)+1)},teardown:function(){var g=this.ownerDocument||this.document||this,m=H.documentMode?this:g,y=fe.get(m,l)-1;y?fe.set(m,l,y):(H.documentMode?this.removeEventListener(l,f):g.removeEventListener(a,f,!0),fe.remove(m,l))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,l){d.event.special[a]={delegateType:l,bindType:l,handle:function(f){var g,m=this,y=f.relatedTarget,b=f.handleObj;return(!y||y!==m&&!d.contains(m,y))&&(f.type=b.origType,g=b.handler.apply(this,arguments),f.type=l),g}}}),d.fn.extend({on:function(a,l,f,g){return zi(this,a,l,f,g)},one:function(a,l,f,g){return zi(this,a,l,f,g,1)},off:function(a,l,f){var g,m;if(a&&a.preventDefault&&a.handleObj)return g=a.handleObj,d(a.delegateTarget).off(g.namespace?g.origType+"."+g.namespace:g.origType,g.selector,g.handler),this;if(typeof a=="object"){for(m in a)this.off(m,l,a[m]);return this}return(l===!1||typeof l=="function")&&(f=l,l=void 0),f===!1&&(f=wi),this.each(function(){d.event.remove(this,a,f,l)})}});var Zl=/<script|<style|<link/i,Xl=/checked\s*(?:[^=]|=\s*.checked.)/i,Jl=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function wo(a,l){return le(a,"table")&&le(l.nodeType!==11?l:l.firstChild,"tr")&&d(a).children("tbody")[0]||a}function Ql(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function ec(a){return(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type"),a}function So(a,l){var f,g,m,y,b,R,E;if(l.nodeType===1){if(fe.hasData(a)&&(y=fe.get(a),E=y.events,E)){fe.remove(l,"handle events");for(m in E)for(f=0,g=E[m].length;f<g;f++)d.event.add(l,m,E[m][f])}$t.hasData(a)&&(b=$t.access(a),R=d.extend({},b),$t.set(l,R))}}function ko(a,l){var f=l.nodeName.toLowerCase();f==="input"&&_i.test(a.type)?l.checked=a.checked:(f==="input"||f==="textarea")&&(l.defaultValue=a.defaultValue)}function Si(a,l,f,g){l=p(l);var m,y,b,R,E,L,q=0,V=a.length,W=V-1,ee=l[0],ue=$(ee);if(ue||V>1&&typeof ee=="string"&&!z.checkClone&&Xl.test(ee))return a.each(function(Te){var Ee=a.eq(Te);ue&&(l[0]=ee.call(this,Te,Ee.html())),Si(Ee,l,f,g)});if(V&&(m=xo(l,a[0].ownerDocument,!1,a,g),y=m.firstChild,m.childNodes.length===1&&(m=y),y||g)){for(b=d.map(Zt(m,"script"),Ql),R=b.length;q<V;q++)E=m,q!==W&&(E=d.clone(E,!0,!0),R&&d.merge(b,Zt(E,"script"))),f.call(a[q],E,q);if(R)for(L=b[b.length-1].ownerDocument,d.map(b,ec),q=0;q<R;q++)E=b[q],bo.test(E.type||"")&&!fe.access(E,"globalEval")&&d.contains(L,E)&&(E.src&&(E.type||"").toLowerCase()!=="module"?d._evalUrl&&!E.noModule&&d._evalUrl(E.src,{nonce:E.nonce||E.getAttribute("nonce")},L):me(E.textContent.replace(Jl,""),E,L))}return a}function Co(a,l,f){for(var g,m=l?d.filter(l,a):a,y=0;(g=m[y])!=null;y++)!f&&g.nodeType===1&&d.cleanData(Zt(g)),g.parentNode&&(f&&_r(g)&&bs(Zt(g,"script")),g.parentNode.removeChild(g));return a}d.extend({htmlPrefilter:function(a){return a},clone:function(a,l,f){var g,m,y,b,R=a.cloneNode(!0),E=_r(a);if(!z.noCloneChecked&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a))for(b=Zt(R),y=Zt(a),g=0,m=y.length;g<m;g++)ko(y[g],b[g]);if(l)if(f)for(y=y||Zt(a),b=b||Zt(R),g=0,m=y.length;g<m;g++)So(y[g],b[g]);else So(a,R);return b=Zt(R,"script"),b.length>0&&bs(b,!E&&Zt(a,"script")),R},cleanData:function(a){for(var l,f,g,m=d.event.special,y=0;(f=a[y])!==void 0;y++)if($n(f)){if(l=f[fe.expando]){if(l.events)for(g in l.events)m[g]?d.event.remove(f,g):d.removeEvent(f,g,l.handle);f[fe.expando]=void 0}f[$t.expando]&&(f[$t.expando]=void 0)}}}),d.fn.extend({detach:function(a){return Co(this,a,!0)},remove:function(a){return Co(this,a)},text:function(a){return dn(this,function(l){return l===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=l)})},null,a,arguments.length)},append:function(){return Si(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=wo(this,a);l.appendChild(a)}})},prepend:function(){return Si(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=wo(this,a);l.insertBefore(a,l.firstChild)}})},before:function(){return Si(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Si(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,l=0;(a=this[l])!=null;l++)a.nodeType===1&&(d.cleanData(Zt(a,!1)),a.textContent="");return this},clone:function(a,l){return a=a??!1,l=l??a,this.map(function(){return d.clone(this,a,l)})},html:function(a){return dn(this,function(l){var f=this[0]||{},g=0,m=this.length;if(l===void 0&&f.nodeType===1)return f.innerHTML;if(typeof l=="string"&&!Zl.test(l)&&!pn[(vo.exec(l)||["",""])[1].toLowerCase()]){l=d.htmlPrefilter(l);try{for(;g<m;g++)f=this[g]||{},f.nodeType===1&&(d.cleanData(Zt(f,!1)),f.innerHTML=l);f=0}catch{}}f&&this.empty().append(l)},null,a,arguments.length)},replaceWith:function(){var a=[];return Si(this,arguments,function(l){var f=this.parentNode;d.inArray(this,a)<0&&(d.cleanData(Zt(this)),f&&f.replaceChild(l,this))},a)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,l){d.fn[a]=function(f){for(var g,m=[],y=d(f),b=y.length-1,R=0;R<=b;R++)g=R===b?this:this.clone(!0),d(y[R])[l](g),x.apply(m,g.get());return this.pushStack(m)}});var ua=new RegExp("^("+bi+")(?!px)[a-z%]+$","i"),la=/^--/,_s=function(a){var l=a.ownerDocument.defaultView;return(!l||!l.opener)&&(l=t),l.getComputedStyle(a)},Do=function(a,l,f){var g,m,y={};for(m in l)y[m]=a.style[m],a.style[m]=l[m];g=f.call(a);for(m in l)a.style[m]=y[m];return g},ws=new RegExp(hn.join("|"),"i");(function(){function a(){if(L){E.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",L.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",or.appendChild(E).appendChild(L);var q=t.getComputedStyle(L);f=q.top!=="1%",R=l(q.marginLeft)===12,L.style.right="60%",y=l(q.right)===36,g=l(q.width)===36,L.style.position="absolute",m=l(L.offsetWidth/3)===12,or.removeChild(E),L=null}}function l(q){return Math.round(parseFloat(q))}var f,g,m,y,b,R,E=H.createElement("div"),L=H.createElement("div");L.style&&(L.style.backgroundClip="content-box",L.cloneNode(!0).style.backgroundClip="",z.clearCloneStyle=L.style.backgroundClip==="content-box",d.extend(z,{boxSizingReliable:function(){return a(),g},pixelBoxStyles:function(){return a(),y},pixelPosition:function(){return a(),f},reliableMarginLeft:function(){return a(),R},scrollboxSize:function(){return a(),m},reliableTrDimensions:function(){var q,V,W,ee;return b==null&&(q=H.createElement("table"),V=H.createElement("tr"),W=H.createElement("div"),q.style.cssText="position:absolute;left:-11111px;border-collapse:separate",V.style.cssText="box-sizing:content-box;border:1px solid",V.style.height="1px",W.style.height="9px",W.style.display="block",or.appendChild(q).appendChild(V).appendChild(W),ee=t.getComputedStyle(V),b=parseInt(ee.height,10)+parseInt(ee.borderTopWidth,10)+parseInt(ee.borderBottomWidth,10)===V.offsetHeight,or.removeChild(q)),b}}))})();function qi(a,l,f){var g,m,y,b,R=la.test(l),E=a.style;return f=f||_s(a),f&&(b=f.getPropertyValue(l)||f[l],R&&b&&(b=b.replace(ot,"$1")||void 0),b===""&&!_r(a)&&(b=d.style(a,l)),!z.pixelBoxStyles()&&ua.test(b)&&ws.test(l)&&(g=E.width,m=E.minWidth,y=E.maxWidth,E.minWidth=E.maxWidth=E.width=b,b=f.width,E.width=g,E.minWidth=m,E.maxWidth=y)),b!==void 0?b+"":b}function Vi(a,l){return{get:function(){if(a()){delete this.get;return}return(this.get=l).apply(this,arguments)}}}var Eo=["Webkit","Moz","ms"],To=H.createElement("div").style,Mo={};function Ro(a){for(var l=a[0].toUpperCase()+a.slice(1),f=Eo.length;f--;)if(a=Eo[f]+l,a in To)return a}function Ss(a){var l=d.cssProps[a]||Mo[a];return l||(a in To?a:Mo[a]=Ro(a)||a)}var Ao=/^(none|table(?!-c[ea]).+)/,tc={position:"absolute",visibility:"hidden",display:"block"},Oo={letterSpacing:"0",fontWeight:"400"};function Io(a,l,f){var g=Yn.exec(l);return g?Math.max(0,g[2]-(f||0))+(g[3]||"px"):l}function ca(a,l,f,g,m,y){var b=l==="width"?1:0,R=0,E=0,L=0;if(f===(g?"border":"content"))return 0;for(;b<4;b+=2)f==="margin"&&(L+=d.css(a,f+hn[b],!0,m)),g?(f==="content"&&(E-=d.css(a,"padding"+hn[b],!0,m)),f!=="margin"&&(E-=d.css(a,"border"+hn[b]+"Width",!0,m))):(E+=d.css(a,"padding"+hn[b],!0,m),f!=="padding"?E+=d.css(a,"border"+hn[b]+"Width",!0,m):R+=d.css(a,"border"+hn[b]+"Width",!0,m));return!g&&y>=0&&(E+=Math.max(0,Math.ceil(a["offset"+l[0].toUpperCase()+l.slice(1)]-y-E-R-.5))||0),E+L}function fa(a,l,f){var g=_s(a),m=!z.boxSizingReliable()||f,y=m&&d.css(a,"boxSizing",!1,g)==="border-box",b=y,R=qi(a,l,g),E="offset"+l[0].toUpperCase()+l.slice(1);if(ua.test(R)){if(!f)return R;R="auto"}return(!z.boxSizingReliable()&&y||!z.reliableTrDimensions()&&le(a,"tr")||R==="auto"||!parseFloat(R)&&d.css(a,"display",!1,g)==="inline")&&a.getClientRects().length&&(y=d.css(a,"boxSizing",!1,g)==="border-box",b=E in a,b&&(R=a[E])),R=parseFloat(R)||0,R+ca(a,l,f||(y?"border":"content"),b,g,R)+"px"}d.extend({cssHooks:{opacity:{get:function(a,l){if(l){var f=qi(a,"opacity");return f===""?"1":f}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,l,f,g){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var m,y,b,R=jt(l),E=la.test(l),L=a.style;if(E||(l=Ss(R)),b=d.cssHooks[l]||d.cssHooks[R],f!==void 0){if(y=typeof f,y==="string"&&(m=Yn.exec(f))&&m[1]&&(f=mo(a,l,m),y="number"),f==null||f!==f)return;y==="number"&&!E&&(f+=m&&m[3]||(d.cssNumber[R]?"":"px")),!z.clearCloneStyle&&f===""&&l.indexOf("background")===0&&(L[l]="inherit"),(!b||!("set"in b)||(f=b.set(a,f,g))!==void 0)&&(E?L.setProperty(l,f):L[l]=f)}else return b&&"get"in b&&(m=b.get(a,!1,g))!==void 0?m:L[l]}},css:function(a,l,f,g){var m,y,b,R=jt(l),E=la.test(l);return E||(l=Ss(R)),b=d.cssHooks[l]||d.cssHooks[R],b&&"get"in b&&(m=b.get(a,!0,f)),m===void 0&&(m=qi(a,l,g)),m==="normal"&&l in Oo&&(m=Oo[l]),f===""||f?(y=parseFloat(m),f===!0||isFinite(y)?y||0:m):m}}),d.each(["height","width"],function(a,l){d.cssHooks[l]={get:function(f,g,m){if(g)return Ao.test(d.css(f,"display"))&&(!f.getClientRects().length||!f.getBoundingClientRect().width)?Do(f,tc,function(){return fa(f,l,m)}):fa(f,l,m)},set:function(f,g,m){var y,b=_s(f),R=!z.scrollboxSize()&&b.position==="absolute",E=R||m,L=E&&d.css(f,"boxSizing",!1,b)==="border-box",q=m?ca(f,l,m,L,b):0;return L&&R&&(q-=Math.ceil(f["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(b[l])-ca(f,l,"border",!1,b)-.5)),q&&(y=Yn.exec(g))&&(y[3]||"px")!=="px"&&(f.style[l]=g,g=d.css(f,l)),Io(f,g,q)}}}),d.cssHooks.marginLeft=Vi(z.reliableMarginLeft,function(a,l){if(l)return(parseFloat(qi(a,"marginLeft"))||a.getBoundingClientRect().left-Do(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(a,l){d.cssHooks[a+l]={expand:function(f){for(var g=0,m={},y=typeof f=="string"?f.split(" "):[f];g<4;g++)m[a+hn[g]+l]=y[g]||y[g-2]||y[0];return m}},a!=="margin"&&(d.cssHooks[a+l].set=Io)}),d.fn.extend({css:function(a,l){return dn(this,function(f,g,m){var y,b,R={},E=0;if(Array.isArray(g)){for(y=_s(f),b=g.length;E<b;E++)R[g[E]]=d.css(f,g[E],!1,y);return R}return m!==void 0?d.style(f,g,m):d.css(f,g)},a,l,arguments.length>1)}});function Ht(a,l,f,g,m){return new Ht.prototype.init(a,l,f,g,m)}d.Tween=Ht,Ht.prototype={constructor:Ht,init:function(a,l,f,g,m,y){this.elem=a,this.prop=f,this.easing=m||d.easing._default,this.options=l,this.start=this.now=this.cur(),this.end=g,this.unit=y||(d.cssNumber[f]?"":"px")},cur:function(){var a=Ht.propHooks[this.prop];return a&&a.get?a.get(this):Ht.propHooks._default.get(this)},run:function(a){var l,f=Ht.propHooks[this.prop];return this.options.duration?this.pos=l=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=l=a,this.now=(this.end-this.start)*l+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):Ht.propHooks._default.set(this),this}},Ht.prototype.init.prototype=Ht.prototype,Ht.propHooks={_default:{get:function(a){var l;return a.elem.nodeType!==1||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(l=d.css(a.elem,a.prop,""),!l||l==="auto"?0:l)},set:function(a){d.fx.step[a.prop]?d.fx.step[a.prop](a):a.elem.nodeType===1&&(d.cssHooks[a.prop]||a.elem.style[Ss(a.prop)]!=null)?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ht.propHooks.scrollTop=Ht.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},d.easing={linear:function(a){return a},swing:function(a){return .5-Math.cos(a*Math.PI)/2},_default:"swing"},d.fx=Ht.prototype.init,d.fx.step={};var Vr,ki,nc=/^(?:toggle|show|hide)$/,Po=/queueHooks$/;function Ci(){ki&&(H.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Ci):t.setTimeout(Ci,d.fx.interval),d.fx.tick())}function da(){return t.setTimeout(function(){Vr=void 0}),Vr=Date.now()}function ks(a,l){var f,g=0,m={height:a};for(l=l?1:0;g<4;g+=2-l)f=hn[g],m["margin"+f]=m["padding"+f]=a;return l&&(m.opacity=m.width=a),m}function ha(a,l,f){for(var g,m=(Cn.tweeners[l]||[]).concat(Cn.tweeners["*"]),y=0,b=m.length;y<b;y++)if(g=m[y].call(f,l,a))return g}function No(a,l,f){var g,m,y,b,R,E,L,q,V="width"in l||"height"in l,W=this,ee={},ue=a.style,Te=a.nodeType&&xi(a),Ee=fe.get(a,"fxshow");f.queue||(b=d._queueHooks(a,"fx"),b.unqueued==null&&(b.unqueued=0,R=b.empty.fire,b.empty.fire=function(){b.unqueued||R()}),b.unqueued++,W.always(function(){W.always(function(){b.unqueued--,d.queue(a,"fx").length||b.empty.fire()})}));for(g in l)if(m=l[g],nc.test(m)){if(delete l[g],y=y||m==="toggle",m===(Te?"hide":"show"))if(m==="show"&&Ee&&Ee[g]!==void 0)Te=!0;else continue;ee[g]=Ee&&Ee[g]||d.style(a,g)}if(E=!d.isEmptyObject(l),!(!E&&d.isEmptyObject(ee))){V&&a.nodeType===1&&(f.overflow=[ue.overflow,ue.overflowX,ue.overflowY],L=Ee&&Ee.display,L==null&&(L=fe.get(a,"display")),q=d.css(a,"display"),q==="none"&&(L?q=L:(qr([a],!0),L=a.style.display||L,q=d.css(a,"display"),qr([a]))),(q==="inline"||q==="inline-block"&&L!=null)&&d.css(a,"float")==="none"&&(E||(W.done(function(){ue.display=L}),L==null&&(q=ue.display,L=q==="none"?"":q)),ue.display="inline-block")),f.overflow&&(ue.overflow="hidden",W.always(function(){ue.overflow=f.overflow[0],ue.overflowX=f.overflow[1],ue.overflowY=f.overflow[2]})),E=!1;for(g in ee)E||(Ee?"hidden"in Ee&&(Te=Ee.hidden):Ee=fe.access(a,"fxshow",{display:L}),y&&(Ee.hidden=!Te),Te&&qr([a],!0),W.done(function(){Te||qr([a]),fe.remove(a,"fxshow");for(g in ee)d.style(a,g,ee[g])})),E=ha(Te?Ee[g]:0,g,W),g in Ee||(Ee[g]=E.start,Te&&(E.end=E.start,E.start=0))}}function pa(a,l){var f,g,m,y,b;for(f in a)if(g=jt(f),m=l[g],y=a[f],Array.isArray(y)&&(m=y[1],y=a[f]=y[0]),f!==g&&(a[g]=y,delete a[f]),b=d.cssHooks[g],b&&"expand"in b){y=b.expand(y),delete a[g];for(f in y)f in a||(a[f]=y[f],l[f]=m)}else l[g]=m}function Cn(a,l,f){var g,m,y=0,b=Cn.prefilters.length,R=d.Deferred().always(function(){delete E.elem}),E=function(){if(m)return!1;for(var V=Vr||da(),W=Math.max(0,L.startTime+L.duration-V),ee=W/L.duration||0,ue=1-ee,Te=0,Ee=L.tweens.length;Te<Ee;Te++)L.tweens[Te].run(ue);return R.notifyWith(a,[L,ue,W]),ue<1&&Ee?W:(Ee||R.notifyWith(a,[L,1,0]),R.resolveWith(a,[L]),!1)},L=R.promise({elem:a,props:d.extend({},l),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},f),originalProperties:l,originalOptions:f,startTime:Vr||da(),duration:f.duration,tweens:[],createTween:function(V,W){var ee=d.Tween(a,L.opts,V,W,L.opts.specialEasing[V]||L.opts.easing);return L.tweens.push(ee),ee},stop:function(V){var W=0,ee=V?L.tweens.length:0;if(m)return this;for(m=!0;W<ee;W++)L.tweens[W].run(1);return V?(R.notifyWith(a,[L,1,0]),R.resolveWith(a,[L,V])):R.rejectWith(a,[L,V]),this}}),q=L.props;for(pa(q,L.opts.specialEasing);y<b;y++)if(g=Cn.prefilters[y].call(L,a,q,L.opts),g)return $(g.stop)&&(d._queueHooks(L.elem,L.opts.queue).stop=g.stop.bind(g)),g;return d.map(q,ha,L),$(L.opts.start)&&L.opts.start.call(a,L),L.progress(L.opts.progress).done(L.opts.done,L.opts.complete).fail(L.opts.fail).always(L.opts.always),d.fx.timer(d.extend(E,{elem:a,anim:L,queue:L.opts.queue})),L}d.Animation=d.extend(Cn,{tweeners:{"*":[function(a,l){var f=this.createTween(a,l);return mo(f.elem,a,Yn.exec(l),f),f}]},tweener:function(a,l){$(a)?(l=a,a=["*"]):a=a.match(fn);for(var f,g=0,m=a.length;g<m;g++)f=a[g],Cn.tweeners[f]=Cn.tweeners[f]||[],Cn.tweeners[f].unshift(l)},prefilters:[No],prefilter:function(a,l){l?Cn.prefilters.unshift(a):Cn.prefilters.push(a)}}),d.speed=function(a,l,f){var g=a&&typeof a=="object"?d.extend({},a):{complete:f||!f&&l||$(a)&&a,duration:a,easing:f&&l||l&&!$(l)&&l};return d.fx.off?g.duration=0:typeof g.duration!="number"&&(g.duration in d.fx.speeds?g.duration=d.fx.speeds[g.duration]:g.duration=d.fx.speeds._default),(g.queue==null||g.queue===!0)&&(g.queue="fx"),g.old=g.complete,g.complete=function(){$(g.old)&&g.old.call(this),g.queue&&d.dequeue(this,g.queue)},g},d.fn.extend({fadeTo:function(a,l,f,g){return this.filter(xi).css("opacity",0).show().end().animate({opacity:l},a,f,g)},animate:function(a,l,f,g){var m=d.isEmptyObject(a),y=d.speed(l,f,g),b=function(){var R=Cn(this,d.extend({},a),y);(m||fe.get(this,"finish"))&&R.stop(!0)};return b.finish=b,m||y.queue===!1?this.each(b):this.queue(y.queue,b)},stop:function(a,l,f){var g=function(m){var y=m.stop;delete m.stop,y(f)};return typeof a!="string"&&(f=l,l=a,a=void 0),l&&this.queue(a||"fx",[]),this.each(function(){var m=!0,y=a!=null&&a+"queueHooks",b=d.timers,R=fe.get(this);if(y)R[y]&&R[y].stop&&g(R[y]);else for(y in R)R[y]&&R[y].stop&&Po.test(y)&&g(R[y]);for(y=b.length;y--;)b[y].elem===this&&(a==null||b[y].queue===a)&&(b[y].anim.stop(f),m=!1,b.splice(y,1));(m||!f)&&d.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var l,f=fe.get(this),g=f[a+"queue"],m=f[a+"queueHooks"],y=d.timers,b=g?g.length:0;for(f.finish=!0,d.queue(this,a,[]),m&&m.stop&&m.stop.call(this,!0),l=y.length;l--;)y[l].elem===this&&y[l].queue===a&&(y[l].anim.stop(!0),y.splice(l,1));for(l=0;l<b;l++)g[l]&&g[l].finish&&g[l].finish.call(this);delete f.finish})}}),d.each(["toggle","show","hide"],function(a,l){var f=d.fn[l];d.fn[l]=function(g,m,y){return g==null||typeof g=="boolean"?f.apply(this,arguments):this.animate(ks(l,!0),g,m,y)}}),d.each({slideDown:ks("show"),slideUp:ks("hide"),slideToggle:ks("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,l){d.fn[a]=function(f,g,m){return this.animate(l,f,g,m)}}),d.timers=[],d.fx.tick=function(){var a,l=0,f=d.timers;for(Vr=Date.now();l<f.length;l++)a=f[l],!a()&&f[l]===a&&f.splice(l--,1);f.length||d.fx.stop(),Vr=void 0},d.fx.timer=function(a){d.timers.push(a),d.fx.start()},d.fx.interval=13,d.fx.start=function(){ki||(ki=!0,Ci())},d.fx.stop=function(){ki=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(a,l){return a=d.fx&&d.fx.speeds[a]||a,l=l||"fx",this.queue(l,function(f,g){var m=t.setTimeout(f,a);g.stop=function(){t.clearTimeout(m)}})},function(){var a=H.createElement("input"),l=H.createElement("select"),f=l.appendChild(H.createElement("option"));a.type="checkbox",z.checkOn=a.value!=="",z.optSelected=f.selected,a=H.createElement("input"),a.value="t",a.type="radio",z.radioValue=a.value==="t"}();var ga,Gr=d.expr.attrHandle;d.fn.extend({attr:function(a,l){return dn(this,d.attr,a,l,arguments.length>1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}}),d.extend({attr:function(a,l,f){var g,m,y=a.nodeType;if(!(y===3||y===8||y===2)){if(typeof a.getAttribute>"u")return d.prop(a,l,f);if((y!==1||!d.isXMLDoc(a))&&(m=d.attrHooks[l.toLowerCase()]||(d.expr.match.bool.test(l)?ga:void 0)),f!==void 0){if(f===null){d.removeAttr(a,l);return}return m&&"set"in m&&(g=m.set(a,f,l))!==void 0?g:(a.setAttribute(l,f+""),f)}return m&&"get"in m&&(g=m.get(a,l))!==null?g:(g=d.find.attr(a,l),g??void 0)}},attrHooks:{type:{set:function(a,l){if(!z.radioValue&&l==="radio"&&le(a,"input")){var f=a.value;return a.setAttribute("type",l),f&&(a.value=f),l}}}},removeAttr:function(a,l){var f,g=0,m=l&&l.match(fn);if(m&&a.nodeType===1)for(;f=m[g++];)a.removeAttribute(f)}}),ga={set:function(a,l,f){return l===!1?d.removeAttr(a,f):a.setAttribute(f,f),f}},d.each(d.expr.match.bool.source.match(/\w+/g),function(a,l){var f=Gr[l]||d.find.attr;Gr[l]=function(g,m,y){var b,R,E=m.toLowerCase();return y||(R=Gr[E],Gr[E]=b,b=f(g,m,y)!=null?E:null,Gr[E]=R),b}});var ma=/^(?:input|select|textarea|button)$/i,Di=/^(?:a|area)$/i;d.fn.extend({prop:function(a,l){return dn(this,d.prop,a,l,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[d.propFix[a]||a]})}}),d.extend({prop:function(a,l,f){var g,m,y=a.nodeType;if(!(y===3||y===8||y===2))return(y!==1||!d.isXMLDoc(a))&&(l=d.propFix[l]||l,m=d.propHooks[l]),f!==void 0?m&&"set"in m&&(g=m.set(a,f,l))!==void 0?g:a[l]=f:m&&"get"in m&&(g=m.get(a,l))!==null?g:a[l]},propHooks:{tabIndex:{get:function(a){var l=d.find.attr(a,"tabindex");return l?parseInt(l,10):ma.test(a.nodeName)||Di.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),z.optSelected||(d.propHooks.selected={get:function(a){var l=a.parentNode;return l&&l.parentNode&&l.parentNode.selectedIndex,null},set:function(a){var l=a.parentNode;l&&(l.selectedIndex,l.parentNode&&l.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Sr(a){var l=a.match(fn)||[];return l.join(" ")}function kr(a){return a.getAttribute&&a.getAttribute("class")||""}function ya(a){return Array.isArray(a)?a:typeof a=="string"?a.match(fn)||[]:[]}d.fn.extend({addClass:function(a){var l,f,g,m,y,b;return $(a)?this.each(function(R){d(this).addClass(a.call(this,R,kr(this)))}):(l=ya(a),l.length?this.each(function(){if(g=kr(this),f=this.nodeType===1&&" "+Sr(g)+" ",f){for(y=0;y<l.length;y++)m=l[y],f.indexOf(" "+m+" ")<0&&(f+=m+" ");b=Sr(f),g!==b&&this.setAttribute("class",b)}}):this)},removeClass:function(a){var l,f,g,m,y,b;return $(a)?this.each(function(R){d(this).removeClass(a.call(this,R,kr(this)))}):arguments.length?(l=ya(a),l.length?this.each(function(){if(g=kr(this),f=this.nodeType===1&&" "+Sr(g)+" ",f){for(y=0;y<l.length;y++)for(m=l[y];f.indexOf(" "+m+" ")>-1;)f=f.replace(" "+m+" "," ");b=Sr(f),g!==b&&this.setAttribute("class",b)}}):this):this.attr("class","")},toggleClass:function(a,l){var f,g,m,y,b=typeof a,R=b==="string"||Array.isArray(a);return $(a)?this.each(function(E){d(this).toggleClass(a.call(this,E,kr(this),l),l)}):typeof l=="boolean"&&R?l?this.addClass(a):this.removeClass(a):(f=ya(a),this.each(function(){if(R)for(y=d(this),m=0;m<f.length;m++)g=f[m],y.hasClass(g)?y.removeClass(g):y.addClass(g);else(a===void 0||b==="boolean")&&(g=kr(this),g&&fe.set(this,"__className__",g),this.setAttribute&&this.setAttribute("class",g||a===!1?"":fe.get(this,"__className__")||""))}))},hasClass:function(a){var l,f,g=0;for(l=" "+a+" ";f=this[g++];)if(f.nodeType===1&&(" "+Sr(kr(f))+" ").indexOf(l)>-1)return!0;return!1}});var Lo=/\r/g;d.fn.extend({val:function(a){var l,f,g,m=this[0];return arguments.length?(g=$(a),this.each(function(y){var b;this.nodeType===1&&(g?b=a.call(this,y,d(this).val()):b=a,b==null?b="":typeof b=="number"?b+="":Array.isArray(b)&&(b=d.map(b,function(R){return R==null?"":R+""})),l=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!l||!("set"in l)||l.set(this,b,"value")===void 0)&&(this.value=b))})):m?(l=d.valHooks[m.type]||d.valHooks[m.nodeName.toLowerCase()],l&&"get"in l&&(f=l.get(m,"value"))!==void 0?f:(f=m.value,typeof f=="string"?f.replace(Lo,""):f??"")):void 0}}),d.extend({valHooks:{option:{get:function(a){var l=d.find.attr(a,"value");return l??Sr(d.text(a))}},select:{get:function(a){var l,f,g,m=a.options,y=a.selectedIndex,b=a.type==="select-one",R=b?null:[],E=b?y+1:m.length;for(y<0?g=E:g=b?y:0;g<E;g++)if(f=m[g],(f.selected||g===y)&&!f.disabled&&(!f.parentNode.disabled||!le(f.parentNode,"optgroup"))){if(l=d(f).val(),b)return l;R.push(l)}return R},set:function(a,l){for(var f,g,m=a.options,y=d.makeArray(l),b=m.length;b--;)g=m[b],(g.selected=d.inArray(d.valHooks.option.get(g),y)>-1)&&(f=!0);return f||(a.selectedIndex=-1),y}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,l){if(Array.isArray(l))return a.checked=d.inArray(d(a).val(),l)>-1}},z.checkOn||(d.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})});var Ei=t.location,va={guid:Date.now()},Cs=/\?/;d.parseXML=function(a){var l,f;if(!a||typeof a!="string")return null;try{l=new t.DOMParser().parseFromString(a,"text/xml")}catch{}return f=l&&l.getElementsByTagName("parsererror")[0],(!l||f)&&d.error("Invalid XML: "+(f?d.map(f.childNodes,function(g){return g.textContent}).join(`
140
+ `):a)),l};var jo=/^(?:focusinfocus|focusoutblur)$/,$o=function(a){a.stopPropagation()};d.extend(d.event,{trigger:function(a,l,f,g){var m,y,b,R,E,L,q,V,W=[f||H],ee=F.call(a,"type")?a.type:a,ue=F.call(a,"namespace")?a.namespace.split("."):[];if(y=V=b=f=f||H,!(f.nodeType===3||f.nodeType===8)&&!jo.test(ee+d.event.triggered)&&(ee.indexOf(".")>-1&&(ue=ee.split("."),ee=ue.shift(),ue.sort()),E=ee.indexOf(":")<0&&"on"+ee,a=a[d.expando]?a:new d.Event(ee,typeof a=="object"&&a),a.isTrigger=g?2:3,a.namespace=ue.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+ue.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=f),l=l==null?[a]:d.makeArray(l,[a]),q=d.event.special[ee]||{},!(!g&&q.trigger&&q.trigger.apply(f,l)===!1))){if(!g&&!q.noBubble&&!te(f)){for(R=q.delegateType||ee,jo.test(R+ee)||(y=y.parentNode);y;y=y.parentNode)W.push(y),b=y;b===(f.ownerDocument||H)&&W.push(b.defaultView||b.parentWindow||t)}for(m=0;(y=W[m++])&&!a.isPropagationStopped();)V=y,a.type=m>1?R:q.bindType||ee,L=(fe.get(y,"events")||Object.create(null))[a.type]&&fe.get(y,"handle"),L&&L.apply(y,l),L=E&&y[E],L&&L.apply&&$n(y)&&(a.result=L.apply(y,l),a.result===!1&&a.preventDefault());return a.type=ee,!g&&!a.isDefaultPrevented()&&(!q._default||q._default.apply(W.pop(),l)===!1)&&$n(f)&&E&&$(f[ee])&&!te(f)&&(b=f[E],b&&(f[E]=null),d.event.triggered=ee,a.isPropagationStopped()&&V.addEventListener(ee,$o),f[ee](),a.isPropagationStopped()&&V.removeEventListener(ee,$o),d.event.triggered=void 0,b&&(f[E]=b)),a.result}},simulate:function(a,l,f){var g=d.extend(new d.Event,f,{type:a,isSimulated:!0});d.event.trigger(g,null,l)}}),d.fn.extend({trigger:function(a,l){return this.each(function(){d.event.trigger(a,l,this)})},triggerHandler:function(a,l){var f=this[0];if(f)return d.event.trigger(a,l,f,!0)}});var rc=/\[\]$/,ba=/\r?\n/g,ic=/^(?:submit|button|image|reset|file)$/i,sc=/^(?:input|select|textarea|keygen)/i;function xa(a,l,f,g){var m;if(Array.isArray(l))d.each(l,function(y,b){f||rc.test(a)?g(a,b):xa(a+"["+(typeof b=="object"&&b!=null?y:"")+"]",b,f,g)});else if(!f&&ye(l)==="object")for(m in l)xa(a+"["+m+"]",l[m],f,g);else g(a,l)}d.param=function(a,l){var f,g=[],m=function(y,b){var R=$(b)?b():b;g[g.length]=encodeURIComponent(y)+"="+encodeURIComponent(R??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){m(this.name,this.value)});else for(f in a)xa(f,a[f],l,m);return g.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&sc.test(this.nodeName)&&!ic.test(a)&&(this.checked||!_i.test(a))}).map(function(a,l){var f=d(this).val();return f==null?null:Array.isArray(f)?d.map(f,function(g){return{name:l.name,value:g.replace(ba,`\r
141
+ `)}}):{name:l.name,value:f.replace(ba,`\r
142
+ `)}}).get()}});var ac=/%20/g,_a=/#.*$/,oc=/([?&])_=[^&]*/,uc=/^(.*?):[ \t]*([^\r\n]*)$/mg,lc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,cc=/^(?:GET|HEAD)$/,fc=/^\/\//,it={},Qe={},Fo="*/".concat("*"),wa=H.createElement("a");wa.href=Ei.href;function Yo(a){return function(l,f){typeof l!="string"&&(f=l,l="*");var g,m=0,y=l.toLowerCase().match(fn)||[];if($(f))for(;g=y[m++];)g[0]==="+"?(g=g.slice(1)||"*",(a[g]=a[g]||[]).unshift(f)):(a[g]=a[g]||[]).push(f)}}function Wo(a,l,f,g){var m={},y=a===Qe;function b(R){var E;return m[R]=!0,d.each(a[R]||[],function(L,q){var V=q(l,f,g);if(typeof V=="string"&&!y&&!m[V])return l.dataTypes.unshift(V),b(V),!1;if(y)return!(E=V)}),E}return b(l.dataTypes[0])||!m["*"]&&b("*")}function Sa(a,l){var f,g,m=d.ajaxSettings.flatOptions||{};for(f in l)l[f]!==void 0&&((m[f]?a:g||(g={}))[f]=l[f]);return g&&d.extend(!0,a,g),a}function dc(a,l,f){for(var g,m,y,b,R=a.contents,E=a.dataTypes;E[0]==="*";)E.shift(),g===void 0&&(g=a.mimeType||l.getResponseHeader("Content-Type"));if(g){for(m in R)if(R[m]&&R[m].test(g)){E.unshift(m);break}}if(E[0]in f)y=E[0];else{for(m in f){if(!E[0]||a.converters[m+" "+E[0]]){y=m;break}b||(b=m)}y=y||b}if(y)return y!==E[0]&&E.unshift(y),f[y]}function Bo(a,l,f,g){var m,y,b,R,E,L={},q=a.dataTypes.slice();if(q[1])for(b in a.converters)L[b.toLowerCase()]=a.converters[b];for(y=q.shift();y;)if(a.responseFields[y]&&(f[a.responseFields[y]]=l),!E&&g&&a.dataFilter&&(l=a.dataFilter(l,a.dataType)),E=y,y=q.shift(),y){if(y==="*")y=E;else if(E!=="*"&&E!==y){if(b=L[E+" "+y]||L["* "+y],!b){for(m in L)if(R=m.split(" "),R[1]===y&&(b=L[E+" "+R[0]]||L["* "+R[0]],b)){b===!0?b=L[m]:L[m]!==!0&&(y=R[0],q.unshift(R[1]));break}}if(b!==!0)if(b&&a.throws)l=b(l);else try{l=b(l)}catch(V){return{state:"parsererror",error:b?V:"No conversion from "+E+" to "+y}}}}return{state:"success",data:l}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ei.href,type:"GET",isLocal:lc.test(Ei.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fo,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,l){return l?Sa(Sa(a,d.ajaxSettings),l):Sa(d.ajaxSettings,a)},ajaxPrefilter:Yo(it),ajaxTransport:Yo(Qe),ajax:function(a,l){typeof a=="object"&&(l=a,a=void 0),l=l||{};var f,g,m,y,b,R,E,L,q,V,W=d.ajaxSetup({},l),ee=W.context||W,ue=W.context&&(ee.nodeType||ee.jquery)?d(ee):d.event,Te=d.Deferred(),Ee=d.Callbacks("once memory"),Rt=W.statusCode||{},gt={},Wn={},Bn="canceled",je={readyState:0,getResponseHeader:function($e){var tt;if(E){if(!y)for(y={};tt=uc.exec(m);)y[tt[1].toLowerCase()+" "]=(y[tt[1].toLowerCase()+" "]||[]).concat(tt[2]);tt=y[$e.toLowerCase()+" "]}return tt==null?null:tt.join(", ")},getAllResponseHeaders:function(){return E?m:null},setRequestHeader:function($e,tt){return E==null&&($e=Wn[$e.toLowerCase()]=Wn[$e.toLowerCase()]||$e,gt[$e]=tt),this},overrideMimeType:function($e){return E==null&&(W.mimeType=$e),this},statusCode:function($e){var tt;if($e)if(E)je.always($e[je.status]);else for(tt in $e)Rt[tt]=[Rt[tt],$e[tt]];return this},abort:function($e){var tt=$e||Bn;return f&&f.abort(tt),Cr(0,tt),this}};if(Te.promise(je),W.url=((a||W.url||Ei.href)+"").replace(fc,Ei.protocol+"//"),W.type=l.method||l.type||W.method||W.type,W.dataTypes=(W.dataType||"*").toLowerCase().match(fn)||[""],W.crossDomain==null){R=H.createElement("a");try{R.href=W.url,R.href=R.href,W.crossDomain=wa.protocol+"//"+wa.host!=R.protocol+"//"+R.host}catch{W.crossDomain=!0}}if(W.data&&W.processData&&typeof W.data!="string"&&(W.data=d.param(W.data,W.traditional)),Wo(it,W,l,je),E)return je;L=d.event&&W.global,L&&d.active++===0&&d.event.trigger("ajaxStart"),W.type=W.type.toUpperCase(),W.hasContent=!cc.test(W.type),g=W.url.replace(_a,""),W.hasContent?W.data&&W.processData&&(W.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(W.data=W.data.replace(ac,"+")):(V=W.url.slice(g.length),W.data&&(W.processData||typeof W.data=="string")&&(g+=(Cs.test(g)?"&":"?")+W.data,delete W.data),W.cache===!1&&(g=g.replace(oc,"$1"),V=(Cs.test(g)?"&":"?")+"_="+va.guid+++V),W.url=g+V),W.ifModified&&(d.lastModified[g]&&je.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&je.setRequestHeader("If-None-Match",d.etag[g])),(W.data&&W.hasContent&&W.contentType!==!1||l.contentType)&&je.setRequestHeader("Content-Type",W.contentType),je.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+(W.dataTypes[0]!=="*"?", "+Fo+"; q=0.01":""):W.accepts["*"]);for(q in W.headers)je.setRequestHeader(q,W.headers[q]);if(W.beforeSend&&(W.beforeSend.call(ee,je,W)===!1||E))return je.abort();if(Bn="abort",Ee.add(W.complete),je.done(W.success),je.fail(W.error),f=Wo(Qe,W,l,je),!f)Cr(-1,"No Transport");else{if(je.readyState=1,L&&ue.trigger("ajaxSend",[je,W]),E)return je;W.async&&W.timeout>0&&(b=t.setTimeout(function(){je.abort("timeout")},W.timeout));try{E=!1,f.send(gt,Cr)}catch($e){if(E)throw $e;Cr(-1,$e)}}function Cr($e,tt,Gi,Es){var Dn,Kr,mn,lr,Dr,Xt=tt;E||(E=!0,b&&t.clearTimeout(b),f=void 0,m=Es||"",je.readyState=$e>0?4:0,Dn=$e>=200&&$e<300||$e===304,Gi&&(lr=dc(W,je,Gi)),!Dn&&d.inArray("script",W.dataTypes)>-1&&d.inArray("json",W.dataTypes)<0&&(W.converters["text script"]=function(){}),lr=Bo(W,lr,je,Dn),Dn?(W.ifModified&&(Dr=je.getResponseHeader("Last-Modified"),Dr&&(d.lastModified[g]=Dr),Dr=je.getResponseHeader("etag"),Dr&&(d.etag[g]=Dr)),$e===204||W.type==="HEAD"?Xt="nocontent":$e===304?Xt="notmodified":(Xt=lr.state,Kr=lr.data,mn=lr.error,Dn=!mn)):(mn=Xt,($e||!Xt)&&(Xt="error",$e<0&&($e=0))),je.status=$e,je.statusText=(tt||Xt)+"",Dn?Te.resolveWith(ee,[Kr,Xt,je]):Te.rejectWith(ee,[je,Xt,mn]),je.statusCode(Rt),Rt=void 0,L&&ue.trigger(Dn?"ajaxSuccess":"ajaxError",[je,W,Dn?Kr:mn]),Ee.fireWith(ee,[je,Xt]),L&&(ue.trigger("ajaxComplete",[je,W]),--d.active||d.event.trigger("ajaxStop")))}return je},getJSON:function(a,l,f){return d.get(a,l,f,"json")},getScript:function(a,l){return d.get(a,void 0,l,"script")}}),d.each(["get","post"],function(a,l){d[l]=function(f,g,m,y){return $(g)&&(y=y||m,m=g,g=void 0),d.ajax(d.extend({url:f,type:l,dataType:y,data:g,success:m},d.isPlainObject(f)&&f))}}),d.ajaxPrefilter(function(a){var l;for(l in a.headers)l.toLowerCase()==="content-type"&&(a.contentType=a.headers[l]||"")}),d._evalUrl=function(a,l,f){return d.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,l,f)}})},d.fn.extend({wrapAll:function(a){var l;return this[0]&&($(a)&&(a=a.call(this[0])),l=d(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var f=this;f.firstElementChild;)f=f.firstElementChild;return f}).append(this)),this},wrapInner:function(a){return $(a)?this.each(function(l){d(this).wrapInner(a.call(this,l))}):this.each(function(){var l=d(this),f=l.contents();f.length?f.wrapAll(a):l.append(a)})},wrap:function(a){var l=$(a);return this.each(function(f){d(this).wrapAll(l?a.call(this,f):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(a){return!d.expr.pseudos.visible(a)},d.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var hc={0:200,1223:204},pt=d.ajaxSettings.xhr();z.cors=!!pt&&"withCredentials"in pt,z.ajax=pt=!!pt,d.ajaxTransport(function(a){var l,f;if(z.cors||pt&&!a.crossDomain)return{send:function(g,m){var y,b=a.xhr();if(b.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(y in a.xhrFields)b[y]=a.xhrFields[y];a.mimeType&&b.overrideMimeType&&b.overrideMimeType(a.mimeType),!a.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(y in g)b.setRequestHeader(y,g[y]);l=function(R){return function(){l&&(l=f=b.onload=b.onerror=b.onabort=b.ontimeout=b.onreadystatechange=null,R==="abort"?b.abort():R==="error"?typeof b.status!="number"?m(0,"error"):m(b.status,b.statusText):m(hc[b.status]||b.status,b.statusText,(b.responseType||"text")!=="text"||typeof b.responseText!="string"?{binary:b.response}:{text:b.responseText},b.getAllResponseHeaders()))}},b.onload=l(),f=b.onerror=b.ontimeout=l("error"),b.onabort!==void 0?b.onabort=f:b.onreadystatechange=function(){b.readyState===4&&t.setTimeout(function(){l&&f()})},l=l("abort");try{b.send(a.hasContent&&a.data||null)}catch(R){if(l)throw R}},abort:function(){l&&l()}}}),d.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return d.globalEval(a),a}}}),d.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),d.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var l,f;return{send:function(g,m){l=d("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",f=function(y){l.remove(),f=null,y&&m(y.type==="error"?404:200,y.type)}),H.head.appendChild(l[0])},abort:function(){f&&f()}}}});var Ds=[],ur=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Ds.pop()||d.expando+"_"+va.guid++;return this[a]=!0,a}}),d.ajaxPrefilter("json jsonp",function(a,l,f){var g,m,y,b=a.jsonp!==!1&&(ur.test(a.url)?"url":typeof a.data=="string"&&(a.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ur.test(a.data)&&"data");if(b||a.dataTypes[0]==="jsonp")return g=a.jsonpCallback=$(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,b?a[b]=a[b].replace(ur,"$1"+g):a.jsonp!==!1&&(a.url+=(Cs.test(a.url)?"&":"?")+a.jsonp+"="+g),a.converters["script json"]=function(){return y||d.error(g+" was not called"),y[0]},a.dataTypes[0]="json",m=t[g],t[g]=function(){y=arguments},f.always(function(){m===void 0?d(t).removeProp(g):t[g]=m,a[g]&&(a.jsonpCallback=l.jsonpCallback,Ds.push(g)),y&&$(m)&&m(y[0]),y=m=void 0}),"script"}),z.createHTMLDocument=function(){var a=H.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",a.childNodes.length===2}(),d.parseHTML=function(a,l,f){if(typeof a!="string")return[];typeof l=="boolean"&&(f=l,l=!1);var g,m,y;return l||(z.createHTMLDocument?(l=H.implementation.createHTMLDocument(""),g=l.createElement("base"),g.href=H.location.href,l.head.appendChild(g)):l=H),m=_t.exec(a),y=!f&&[],m?[l.createElement(m[1])]:(m=xo([a],l,y),y&&y.length&&d(y).remove(),d.merge([],m.childNodes))},d.fn.load=function(a,l,f){var g,m,y,b=this,R=a.indexOf(" ");return R>-1&&(g=Sr(a.slice(R)),a=a.slice(0,R)),$(l)?(f=l,l=void 0):l&&typeof l=="object"&&(m="POST"),b.length>0&&d.ajax({url:a,type:m||"GET",dataType:"html",data:l}).done(function(E){y=arguments,b.html(g?d("<div>").append(d.parseHTML(E)).find(g):E)}).always(f&&function(E,L){b.each(function(){f.apply(this,y||[E.responseText,L,E])})}),this},d.expr.pseudos.animated=function(a){return d.grep(d.timers,function(l){return a===l.elem}).length},d.offset={setOffset:function(a,l,f){var g,m,y,b,R,E,L,q=d.css(a,"position"),V=d(a),W={};q==="static"&&(a.style.position="relative"),R=V.offset(),y=d.css(a,"top"),E=d.css(a,"left"),L=(q==="absolute"||q==="fixed")&&(y+E).indexOf("auto")>-1,L?(g=V.position(),b=g.top,m=g.left):(b=parseFloat(y)||0,m=parseFloat(E)||0),$(l)&&(l=l.call(a,f,d.extend({},R))),l.top!=null&&(W.top=l.top-R.top+b),l.left!=null&&(W.left=l.left-R.left+m),"using"in l?l.using.call(a,W):V.css(W)}},d.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(m){d.offset.setOffset(this,a,m)});var l,f,g=this[0];if(g)return g.getClientRects().length?(l=g.getBoundingClientRect(),f=g.ownerDocument.defaultView,{top:l.top+f.pageYOffset,left:l.left+f.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var a,l,f,g=this[0],m={top:0,left:0};if(d.css(g,"position")==="fixed")l=g.getBoundingClientRect();else{for(l=this.offset(),f=g.ownerDocument,a=g.offsetParent||f.documentElement;a&&(a===f.body||a===f.documentElement)&&d.css(a,"position")==="static";)a=a.parentNode;a&&a!==g&&a.nodeType===1&&(m=d(a).offset(),m.top+=d.css(a,"borderTopWidth",!0),m.left+=d.css(a,"borderLeftWidth",!0))}return{top:l.top-m.top-d.css(g,"marginTop",!0),left:l.left-m.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&d.css(a,"position")==="static";)a=a.offsetParent;return a||or})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,l){var f=l==="pageYOffset";d.fn[a]=function(g){return dn(this,function(m,y,b){var R;if(te(m)?R=m:m.nodeType===9&&(R=m.defaultView),b===void 0)return R?R[l]:m[y];R?R.scrollTo(f?R.pageXOffset:b,f?b:R.pageYOffset):m[y]=b},a,g,arguments.length)}}),d.each(["top","left"],function(a,l){d.cssHooks[l]=Vi(z.pixelPosition,function(f,g){if(g)return g=qi(f,l),ua.test(g)?d(f).position()[l]+"px":g})}),d.each({Height:"height",Width:"width"},function(a,l){d.each({padding:"inner"+a,content:l,"":"outer"+a},function(f,g){d.fn[g]=function(m,y){var b=arguments.length&&(f||typeof m!="boolean"),R=f||(m===!0||y===!0?"margin":"border");return dn(this,function(E,L,q){var V;return te(E)?g.indexOf("outer")===0?E["inner"+a]:E.document.documentElement["client"+a]:E.nodeType===9?(V=E.documentElement,Math.max(E.body["scroll"+a],V["scroll"+a],E.body["offset"+a],V["offset"+a],V["client"+a])):q===void 0?d.css(E,L,R):d.style(E,L,q,R)},l,b?m:void 0,b)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,l){d.fn[l]=function(f){return this.on(l,f)}}),d.fn.extend({bind:function(a,l,f){return this.on(a,null,l,f)},unbind:function(a,l){return this.off(a,null,l)},delegate:function(a,l,f,g){return this.on(l,a,f,g)},undelegate:function(a,l,f){return arguments.length===1?this.off(a,"**"):this.off(l,a||"**",f)},hover:function(a,l){return this.on("mouseenter",a).on("mouseleave",l||a)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,l){d.fn[l]=function(f,g){return arguments.length>0?this.on(l,null,f,g):this.trigger(l)}});var Ho=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(a,l){var f,g,m;if(typeof l=="string"&&(f=a[l],l=a,a=f),!!$(a))return g=c.call(arguments,2),m=function(){return a.apply(l||this,g.concat(c.call(arguments)))},m.guid=a.guid=a.guid||d.guid++,m},d.holdReady=function(a){a?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=le,d.isFunction=$,d.isWindow=te,d.camelCase=jt,d.type=ye,d.now=Date.now,d.isNumeric=function(a){var l=d.type(a);return(l==="number"||l==="string")&&!isNaN(a-parseFloat(a))},d.trim=function(a){return a==null?"":(a+"").replace(Ho,"$1")};var ka=t.jQuery,gn=t.$;return d.noConflict=function(a){return t.$===d&&(t.$=gn),a&&t.jQuery===d&&(t.jQuery=ka),d},typeof r>"u"&&(t.jQuery=t.$=d),d})})(T0);var M0=T0.exports;const MR=T.getDefaultExportFromCjs(M0);var RR={exports:{}};const AR=T.getAugmentedNamespace(_D);/**
143
+ * @version: 3.1
144
+ * @author: Dan Grossman http://www.dangrossman.info/
145
+ * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
146
+ * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
147
+ * @website: http://www.daterangepicker.com/
148
+ */(function(e){(function(t,r){if(e.exports){var s=typeof window<"u"?window.jQuery:void 0;s||(s=M0,s.fn||(s.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:AR;e.exports=r(o,s)}else t.daterangepicker=r(t.moment,t.jQuery)})(T.commonjsGlobal,function(t,r){var s=function(o,c,p){if(this.parentEl="body",this.element=r(o),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof c!="object"||c===null)&&(c={}),c=r.extend(this.element.data(),c),typeof c.template!="string"&&!(c.template instanceof r)&&(c.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=c.parentEl&&r(c.parentEl).length?r(c.parentEl):r(this.parentEl),this.container=r(c.template).appendTo(this.parentEl),typeof c.locale=="object"&&(typeof c.locale.direction=="string"&&(this.locale.direction=c.locale.direction),typeof c.locale.format=="string"&&(this.locale.format=c.locale.format),typeof c.locale.separator=="string"&&(this.locale.separator=c.locale.separator),typeof c.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=c.locale.daysOfWeek.slice()),typeof c.locale.monthNames=="object"&&(this.locale.monthNames=c.locale.monthNames.slice()),typeof c.locale.firstDay=="number"&&(this.locale.firstDay=c.locale.firstDay),typeof c.locale.applyLabel=="string"&&(this.locale.applyLabel=c.locale.applyLabel),typeof c.locale.cancelLabel=="string"&&(this.locale.cancelLabel=c.locale.cancelLabel),typeof c.locale.weekLabel=="string"&&(this.locale.weekLabel=c.locale.weekLabel),typeof c.locale.customRangeLabel=="string")){var x=document.createElement("textarea");x.innerHTML=c.locale.customRangeLabel;var w=x.value;this.locale.customRangeLabel=w}if(this.container.addClass(this.locale.direction),typeof c.startDate=="string"&&(this.startDate=t(c.startDate,this.locale.format)),typeof c.endDate=="string"&&(this.endDate=t(c.endDate,this.locale.format)),typeof c.minDate=="string"&&(this.minDate=t(c.minDate,this.locale.format)),typeof c.maxDate=="string"&&(this.maxDate=t(c.maxDate,this.locale.format)),typeof c.startDate=="object"&&(this.startDate=t(c.startDate)),typeof c.endDate=="object"&&(this.endDate=t(c.endDate)),typeof c.minDate=="object"&&(this.minDate=t(c.minDate)),typeof c.maxDate=="object"&&(this.maxDate=t(c.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof c.applyButtonClasses=="string"&&(this.applyButtonClasses=c.applyButtonClasses),typeof c.applyClass=="string"&&(this.applyButtonClasses=c.applyClass),typeof c.cancelButtonClasses=="string"&&(this.cancelButtonClasses=c.cancelButtonClasses),typeof c.cancelClass=="string"&&(this.cancelButtonClasses=c.cancelClass),typeof c.maxSpan=="object"&&(this.maxSpan=c.maxSpan),typeof c.dateLimit=="object"&&(this.maxSpan=c.dateLimit),typeof c.opens=="string"&&(this.opens=c.opens),typeof c.drops=="string"&&(this.drops=c.drops),typeof c.showWeekNumbers=="boolean"&&(this.showWeekNumbers=c.showWeekNumbers),typeof c.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=c.showISOWeekNumbers),typeof c.buttonClasses=="string"&&(this.buttonClasses=c.buttonClasses),typeof c.buttonClasses=="object"&&(this.buttonClasses=c.buttonClasses.join(" ")),typeof c.showDropdowns=="boolean"&&(this.showDropdowns=c.showDropdowns),typeof c.minYear=="number"&&(this.minYear=c.minYear),typeof c.maxYear=="number"&&(this.maxYear=c.maxYear),typeof c.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=c.showCustomRangeLabel),typeof c.singleDatePicker=="boolean"&&(this.singleDatePicker=c.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof c.timePicker=="boolean"&&(this.timePicker=c.timePicker),typeof c.timePickerSeconds=="boolean"&&(this.timePickerSeconds=c.timePickerSeconds),typeof c.timePickerIncrement=="number"&&(this.timePickerIncrement=c.timePickerIncrement),typeof c.timePicker24Hour=="boolean"&&(this.timePicker24Hour=c.timePicker24Hour),typeof c.autoApply=="boolean"&&(this.autoApply=c.autoApply),typeof c.autoUpdateInput=="boolean"&&(this.autoUpdateInput=c.autoUpdateInput),typeof c.linkedCalendars=="boolean"&&(this.linkedCalendars=c.linkedCalendars),typeof c.isInvalidDate=="function"&&(this.isInvalidDate=c.isInvalidDate),typeof c.isCustomDate=="function"&&(this.isCustomDate=c.isCustomDate),typeof c.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=c.alwaysShowCalendars),this.locale.firstDay!=0)for(var D=this.locale.firstDay;D>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),D--;var A,F,B;if(typeof c.startDate>"u"&&typeof c.endDate>"u"&&r(this.element).is(":text")){var K=r(this.element).val(),z=K.split(this.locale.separator);A=F=null,z.length==2?(A=t(z[0],this.locale.format),F=t(z[1],this.locale.format)):this.singleDatePicker&&K!==""&&(A=t(K,this.locale.format),F=t(K,this.locale.format)),A!==null&&F!==null&&(this.setStartDate(A),this.setEndDate(F))}if(typeof c.ranges=="object"){for(B in c.ranges){typeof c.ranges[B][0]=="string"?A=t(c.ranges[B][0],this.locale.format):A=t(c.ranges[B][0]),typeof c.ranges[B][1]=="string"?F=t(c.ranges[B][1],this.locale.format):F=t(c.ranges[B][1]),this.minDate&&A.isBefore(this.minDate)&&(A=this.minDate.clone());var $=this.maxDate;if(this.maxSpan&&$&&A.clone().add(this.maxSpan).isAfter($)&&($=A.clone().add(this.maxSpan)),$&&F.isAfter($)&&(F=$.clone()),!(this.minDate&&F.isBefore(this.minDate,this.timepicker?"minute":"day")||$&&A.isAfter($,this.timepicker?"minute":"day"))){var x=document.createElement("textarea");x.innerHTML=B;var w=x.value;this.ranges[w]=[A,F]}}var te="<ul>";for(B in this.ranges)te+='<li data-range-key="'+B+'">'+B+"</li>";this.showCustomRangeLabel&&(te+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),te+="</ul>",this.container.find(".ranges").prepend(te)}typeof p=="function"&&(this.callback=p),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof c.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof c.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",r.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",r.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",r.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",r.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",r.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",r.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",r.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",r.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",r.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":r.proxy(this.show,this),"focus.daterangepicker":r.proxy(this.show,this),"keyup.daterangepicker":r.proxy(this.elementChanged,this),"keydown.daterangepicker":r.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",r.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",r.proxy(this.toggle,this))),this.updateElement()};return s.prototype={constructor:s,setStartDate:function(o){typeof o=="string"&&(this.startDate=t(o,this.locale.format)),typeof o=="object"&&(this.startDate=t(o)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(o){typeof o=="string"&&(this.endDate=t(o,this.locale.format)),typeof o=="object"&&(this.endDate=t(o)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var o,c,p;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),c=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),p=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var x=this.container.find(".left .ampmselect").val();x==="PM"&&o<12&&(o+=12),x==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),c=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(c)&&(c=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),p=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var x=this.container.find(".right .ampmselect").val();x==="PM"&&o<12&&(o+=12),x==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(c).second(p),this.rightCalendar.month.hour(o).minute(c).second(p)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var H=o=="left"?this.leftCalendar:this.rightCalendar,c=H.month.month(),p=H.month.year(),x=H.month.hour(),w=H.month.minute(),D=H.month.second(),A=t([p,c]).daysInMonth(),F=t([p,c,1]),B=t([p,c,A]),K=t(F).subtract(1,"month").month(),z=t(F).subtract(1,"month").year(),$=t([z,K]).daysInMonth(),te=F.day(),H=[];H.firstDay=F,H.lastDay=B;for(var pe=0;pe<6;pe++)H[pe]=[];var me=$-te+this.locale.firstDay+1;me>$&&(me-=7),te==this.locale.firstDay&&(me=$-6);for(var ye=t([z,K,me,12,w,D]),re,ie,pe=0,re=0,ie=0;pe<42;pe++,re++,ye=t(ye).add(24,"hour"))pe>0&&re%7===0&&(re=0,ie++),H[ie][re]=ye.clone().hour(x).minute(w).second(D),ye.hour(12),this.minDate&&H[ie][re].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&H[ie][re].isBefore(this.minDate)&&o=="left"&&(H[ie][re]=this.minDate.clone()),this.maxDate&&H[ie][re].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&H[ie][re].isAfter(this.maxDate)&&o=="right"&&(H[ie][re]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=H:this.rightCalendar.calendar=H;var d=o=="left"?this.minDate:this.startDate,Le=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var le='<table class="table-condensed">';le+="<thead>",le+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(le+="<th></th>"),(!d||d.isBefore(H.firstDay))&&(!this.linkedCalendars||o=="left")?le+='<th class="prev available"><span></span></th>':le+="<th></th>";var at=this.locale.monthNames[H[1][1].month()]+H[1][1].format(" YYYY");if(this.showDropdowns){for(var Ue=H[1][1].month(),Je=H[1][1].year(),we=Le&&Le.year()||this.maxYear,ot=d&&d.year()||this.minYear,xt=Je==ot,Tt=Je==we,qe='<select class="monthselect">',Fe=0;Fe<12;Fe++)(!xt||d&&Fe>=d.month())&&(!Tt||Le&&Fe<=Le.month())?qe+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+">"+this.locale.monthNames[Fe]+"</option>":qe+="<option value='"+Fe+"'"+(Fe===Ue?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Fe]+"</option>";qe+="</select>";for(var ft='<select class="yearselect">',Mt=ot;Mt<=we;Mt++)ft+='<option value="'+Mt+'"'+(Mt===Je?' selected="selected"':"")+">"+Mt+"</option>";ft+="</select>",at=qe+ft}if(le+='<th colspan="5" class="month">'+at+"</th>",(!Le||Le.isAfter(H.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?le+='<th class="next available"><span></span></th>':le+="<th></th>",le+="</tr>",le+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(le+='<th class="week">'+this.locale.weekLabel+"</th>"),r.each(this.locale.daysOfWeek,function(sr,Hi){le+="<th>"+Hi+"</th>"}),le+="</tr>",le+="</thead>",le+="<tbody>",this.endDate==null&&this.maxSpan){var Nt=this.startDate.clone().add(this.maxSpan).endOf("day");(!Le||Nt.isBefore(Le))&&(Le=Nt)}for(var ie=0;ie<6;ie++){le+="<tr>",this.showWeekNumbers?le+='<td class="week">'+H[ie][0].week()+"</td>":this.showISOWeekNumbers&&(le+='<td class="week">'+H[ie][0].isoWeek()+"</td>");for(var re=0;re<7;re++){var _t=[];H[ie][re].isSame(new Date,"day")&&_t.push("today"),H[ie][re].isoWeekday()>5&&_t.push("weekend"),H[ie][re].month()!=H[1][1].month()&&_t.push("off","ends"),this.minDate&&H[ie][re].isBefore(this.minDate,"day")&&_t.push("off","disabled"),Le&&H[ie][re].isAfter(Le,"day")&&_t.push("off","disabled"),this.isInvalidDate(H[ie][re])&&_t.push("off","disabled"),H[ie][re].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&_t.push("active","start-date"),this.endDate!=null&&H[ie][re].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&_t.push("active","end-date"),this.endDate!=null&&H[ie][re]>this.startDate&&H[ie][re]<this.endDate&&_t.push("in-range");var jn=this.isCustomDate(H[ie][re]);jn!==!1&&(typeof jn=="string"?_t.push(jn):Array.prototype.push.apply(_t,jn));for(var qt="",Vt=!1,pe=0;pe<_t.length;pe++)qt+=_t[pe]+" ",_t[pe]=="disabled"&&(Vt=!0);Vt||(qt+="available"),le+='<td class="'+qt.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+re+'">'+H[ie][re].date()+"</td>"}le+="</tr>"}le+="</tbody>",le+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(le)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var c,p,x,w=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(w=this.startDate.clone().add(this.maxSpan)),o=="left")p=this.startDate.clone(),x=this.minDate;else if(o=="right"){p=this.endDate.clone(),x=this.startDate;var D=this.container.find(".drp-calendar.right .calendar-time");if(D.html()!=""&&(p.hour(isNaN(p.hour())?D.find(".hourselect option:selected").val():p.hour()),p.minute(isNaN(p.minute())?D.find(".minuteselect option:selected").val():p.minute()),p.second(isNaN(p.second())?D.find(".secondselect option:selected").val():p.second()),!this.timePicker24Hour)){var A=D.find(".ampmselect option:selected").val();A==="PM"&&p.hour()<12&&p.hour(p.hour()+12),A==="AM"&&p.hour()===12&&p.hour(0)}p.isBefore(this.startDate)&&(p=this.startDate.clone()),w&&p.isAfter(w)&&(p=w.clone())}c='<select class="hourselect">';for(var F=this.timePicker24Hour?0:1,B=this.timePicker24Hour?23:12,K=F;K<=B;K++){var z=K;this.timePicker24Hour||(z=p.hour()>=12?K==12?12:K+12:K==12?0:K);var $=p.clone().hour(z),te=!1;x&&$.minute(59).isBefore(x)&&(te=!0),w&&$.minute(0).isAfter(w)&&(te=!0),z==p.hour()&&!te?c+='<option value="'+K+'" selected="selected">'+K+"</option>":te?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+K+"</option>":c+='<option value="'+K+'">'+K+"</option>"}c+="</select> ",c+=': <select class="minuteselect">';for(var K=0;K<60;K+=this.timePickerIncrement){var H=K<10?"0"+K:K,$=p.clone().minute(K),te=!1;x&&$.second(59).isBefore(x)&&(te=!0),w&&$.second(0).isAfter(w)&&(te=!0),p.minute()==K&&!te?c+='<option value="'+K+'" selected="selected">'+H+"</option>":te?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+H+"</option>":c+='<option value="'+K+'">'+H+"</option>"}if(c+="</select> ",this.timePickerSeconds){c+=': <select class="secondselect">';for(var K=0;K<60;K++){var H=K<10?"0"+K:K,$=p.clone().second(K),te=!1;x&&$.isBefore(x)&&(te=!0),w&&$.isAfter(w)&&(te=!0),p.second()==K&&!te?c+='<option value="'+K+'" selected="selected">'+H+"</option>":te?c+='<option value="'+K+'" disabled="disabled" class="disabled">'+H+"</option>":c+='<option value="'+K+'">'+H+"</option>"}c+="</select> "}if(!this.timePicker24Hour){c+='<select class="ampmselect">';var pe="",me="";x&&p.clone().hour(12).minute(0).second(0).isBefore(x)&&(pe=' disabled="disabled" class="disabled"'),w&&p.clone().hour(0).minute(0).second(0).isAfter(w)&&(me=' disabled="disabled" class="disabled"'),p.hour()>=12?c+='<option value="AM"'+pe+'>AM</option><option value="PM" selected="selected"'+me+">PM</option>":c+='<option value="AM" selected="selected"'+pe+'>AM</option><option value="PM"'+me+">PM</option>",c+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(c)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var o={top:0,left:0},c,p=this.drops,x=r(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},x=this.parentEl[0].clientWidth+this.parentEl.offset().left),p){case"auto":c=this.element.offset().top+this.element.outerHeight()-o.top,c+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(c=this.element.offset().top-this.container.outerHeight()-o.top,p="up");break;case"up":c=this.element.offset().top-this.container.outerHeight()-o.top;break;default:c=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var w=this.container.outerWidth();if(this.container.toggleClass("drop-up",p=="up"),this.opens=="left"){var D=x-this.element.offset().left-this.element.outerWidth();w+D>r(window).width()?this.container.css({top:c,right:"auto",left:9}):this.container.css({top:c,right:D,left:"auto"})}else if(this.opens=="center"){var A=this.element.offset().left-o.left+this.element.outerWidth()/2-w/2;A<0?this.container.css({top:c,right:"auto",left:9}):A+w>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}else{var A=this.element.offset().left-o.left;A+w>r(window).width()?this.container.css({top:c,left:"auto",right:0}):this.container.css({top:c,left:A,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=r.proxy(function(c){this.outsideClick(c)},this),r(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),r(window).on("resize.daterangepicker",r.proxy(function(c){this.move(c)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(o){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),r(document).off(".daterangepicker"),r(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var c=r(o.target);o.type=="focusin"||c.closest(this.element).length||c.closest(this.container).length||c.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(o){var c=o.target.getAttribute("data-range-key");if(this.chosenLabel=c,c==this.locale.customRangeLabel)this.showCalendars();else{var p=this.ranges[c];this.startDate=p[0],this.endDate=p[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(o){var c=r(o.target).parents(".drp-calendar");c.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),p=c.substr(1,1),x=c.substr(3,1),w=r(o.target).parents(".drp-calendar"),D=w.hasClass("left")?this.leftCalendar.calendar[p][x]:this.rightCalendar.calendar[p][x],A=this.leftCalendar,F=this.rightCalendar,B=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(K,z){if(!r(z).hasClass("week")){var $=r(z).attr("data-title"),te=$.substr(1,1),H=$.substr(3,1),pe=r(z).parents(".drp-calendar"),me=pe.hasClass("left")?A.calendar[te][H]:F.calendar[te][H];me.isAfter(B)&&me.isBefore(D)||me.isSame(D,"day")?r(z).addClass("in-range"):r(z).removeClass("in-range")}})}},clickDate:function(o){if(r(o.target).hasClass("available")){var c=r(o.target).attr("data-title"),p=c.substr(1,1),x=c.substr(3,1),w=r(o.target).parents(".drp-calendar"),D=w.hasClass("left")?this.leftCalendar.calendar[p][x]:this.rightCalendar.calendar[p][x];if(this.endDate||D.isBefore(this.startDate,"day")){if(this.timePicker){var A=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".left .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var B=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(B)&&(B=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;D=D.clone().hour(A).minute(B).second(K)}this.endDate=null,this.setStartDate(D.clone())}else if(!this.endDate&&D.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var A=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var F=this.container.find(".right .ampmselect").val();F==="PM"&&A<12&&(A+=12),F==="AM"&&A===12&&(A=0)}var B=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(B)&&(B=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var K=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;D=D.clone().hour(A).minute(B).second(K)}this.setEndDate(D.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,c=0;for(var p in this.ranges){if(this.timePicker){var x=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(x)==this.ranges[p][0].format(x)&&this.endDate.format(x)==this.ranges[p][1].format(x)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[p][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[p][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+c+")").addClass("active").attr("data-range-key");break}c++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var c=r(o.target).closest(".drp-calendar").hasClass("left"),p=c?"left":"right",x=this.container.find(".drp-calendar."+p),w=parseInt(x.find(".monthselect").val(),10),D=x.find(".yearselect").val();c||(D<this.startDate.year()||D==this.startDate.year()&&w<this.startDate.month())&&(w=this.startDate.month(),D=this.startDate.year()),this.minDate&&(D<this.minDate.year()||D==this.minDate.year()&&w<this.minDate.month())&&(w=this.minDate.month(),D=this.minDate.year()),this.maxDate&&(D>this.maxDate.year()||D==this.maxDate.year()&&w>this.maxDate.month())&&(w=this.maxDate.month(),D=this.maxDate.year()),c?(this.leftCalendar.month.month(w).year(D),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(w).year(D),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var c=r(o.target).closest(".drp-calendar"),p=c.hasClass("left"),x=parseInt(c.find(".hourselect").val(),10),w=parseInt(c.find(".minuteselect").val(),10);isNaN(w)&&(w=parseInt(c.find(".minuteselect option:last").val(),10));var D=this.timePickerSeconds?parseInt(c.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var A=c.find(".ampmselect").val();A==="PM"&&x<12&&(x+=12),A==="AM"&&x===12&&(x=0)}if(p){var F=this.startDate.clone();F.hour(x),F.minute(w),F.second(D),this.setStartDate(F),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==F.format("YYYY-MM-DD")&&this.endDate.isBefore(F)&&this.setEndDate(F.clone())}else if(this.endDate){var B=this.endDate.clone();B.hour(x),B.minute(w),B.second(D),this.setEndDate(B)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),c=null,p=null;o.length===2&&(c=t(o[0],this.locale.format),p=t(o[1],this.locale.format)),(this.singleDatePicker||c===null||p===null)&&(c=t(this.element.val(),this.locale.format),p=c),!(!c.isValid()||!p.isValid())&&(this.setStartDate(c),this.setEndDate(p),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},r.fn.daterangepicker=function(o,c){var p=r.extend(!0,{},r.fn.daterangepicker.defaultOptions,o);return this.each(function(){var x=r(this);x.data("daterangepicker")&&x.data("daterangepicker").remove(),x.data("daterangepicker",new s(x,p,c))}),this},s})})(RR);var Hf=function(e,t){return Hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])},Hf(e,t)};function OR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){OR(t,e);function t(r){var s=e.call(this,r)||this;return s.ref=null,s.$picker=null,s}return t.prototype.componentDidMount=function(){var r=this;this.$picker=MR(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(s){var o,c=s.charAt(0).toLowerCase()+s.slice(1);(o=r.$picker)===null||o===void 0||o.on(c+".daterangepicker",r.makeEventHandler("on"+s))})},t.prototype.componentWillUnmount=function(){var r,s;(s=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||s===void 0||s.remove()},t.prototype.handleCallback=function(){for(var r,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];typeof this.props.onCallback=="function"&&(r=this.props).onCallback.apply(r,s)},t.prototype.makeEventHandler=function(r){var s=this,o=this.props.onEvent;return function(c,p){typeof o=="function"&&o(c,p),typeof s.props[r]=="function"&&s.props[r](c,p)}},t.prototype.setStartDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setStartDate(r)},t.prototype.setEndDate=function(r){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setEndDate(r)},t.prototype.render=function(){var r=this,s=T.reactExports.Children.only(this.props.children);return T.reactExports.cloneElement(s,{ref:function(o){return r.ref=o}})},t})(T.reactExports.Component);Wr(e=>T.jsxRuntimeExports.jsx(xR,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:ce.color.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
149
+ * @license
150
+ * Copyright 2017 Google LLC
151
+ *
152
+ * Licensed under the Apache License, Version 2.0 (the "License");
153
+ * you may not use this file except in compliance with the License.
154
+ * You may obtain a copy of the License at
155
+ *
156
+ * http://www.apache.org/licenses/LICENSE-2.0
157
+ *
158
+ * Unless required by applicable law or agreed to in writing, software
159
+ * distributed under the License is distributed on an "AS IS" BASIS,
160
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
161
+ * See the License for the specific language governing permissions and
162
+ * limitations under the License.
163
+ *//**
164
+ * @license
165
+ * Copyright 2017 Google LLC
166
+ *
167
+ * Licensed under the Apache License, Version 2.0 (the "License");
168
+ * you may not use this file except in compliance with the License.
169
+ * You may obtain a copy of the License at
170
+ *
171
+ * http://www.apache.org/licenses/LICENSE-2.0
172
+ *
173
+ * Unless required by applicable law or agreed to in writing, software
174
+ * distributed under the License is distributed on an "AS IS" BASIS,
175
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
176
+ * See the License for the specific language governing permissions and
177
+ * limitations under the License.
178
+ */const R0=function(e){const t=[];let r=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);o<128?t[r++]=o:o<2048?(t[r++]=o>>6|192,t[r++]=o&63|128):(o&64512)===55296&&s+1<e.length&&(e.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),t[r++]=o>>18|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=o&63|128):(t[r++]=o>>12|224,t[r++]=o>>6&63|128,t[r++]=o&63|128)}return t},IR=function(e){const t=[];let r=0,s=0;for(;r<e.length;){const o=e[r++];if(o<128)t[s++]=String.fromCharCode(o);else if(o>191&&o<224){const c=e[r++];t[s++]=String.fromCharCode((o&31)<<6|c&63)}else if(o>239&&o<365){const c=e[r++],p=e[r++],x=e[r++],w=((o&7)<<18|(c&63)<<12|(p&63)<<6|x&63)-65536;t[s++]=String.fromCharCode(55296+(w>>10)),t[s++]=String.fromCharCode(56320+(w&1023))}else{const c=e[r++],p=e[r++];t[s++]=String.fromCharCode((o&15)<<12|(c&63)<<6|p&63)}}return t.join("")},A0={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let o=0;o<e.length;o+=3){const c=e[o],p=o+1<e.length,x=p?e[o+1]:0,w=o+2<e.length,D=w?e[o+2]:0,A=c>>2,F=(c&3)<<4|x>>4;let B=(x&15)<<2|D>>6,K=D&63;w||(K=64,p||(B=64)),s.push(r[A],r[F],r[B],r[K])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(R0(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):IR(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let o=0;o<e.length;){const c=r[e.charAt(o++)],x=o<e.length?r[e.charAt(o)]:0;++o;const D=o<e.length?r[e.charAt(o)]:64;++o;const F=o<e.length?r[e.charAt(o)]:64;if(++o,c==null||x==null||D==null||F==null)throw new PR;const B=c<<2|x>>4;if(s.push(B),D!==64){const K=x<<4&240|D>>2;if(s.push(K),F!==64){const z=D<<6&192|F;s.push(z)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class PR extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const NR=function(e){const t=R0(e);return A0.encodeByteArray(t,!0)},O0=function(e){return NR(e).replace(/\./g,"")},LR=function(e){try{return A0.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
179
+ * @license
180
+ * Copyright 2022 Google LLC
181
+ *
182
+ * Licensed under the Apache License, Version 2.0 (the "License");
183
+ * you may not use this file except in compliance with the License.
184
+ * You may obtain a copy of the License at
185
+ *
186
+ * http://www.apache.org/licenses/LICENSE-2.0
187
+ *
188
+ * Unless required by applicable law or agreed to in writing, software
189
+ * distributed under the License is distributed on an "AS IS" BASIS,
190
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
191
+ * See the License for the specific language governing permissions and
192
+ * limitations under the License.
193
+ */function jR(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
194
+ * @license
195
+ * Copyright 2022 Google LLC
196
+ *
197
+ * Licensed under the Apache License, Version 2.0 (the "License");
198
+ * you may not use this file except in compliance with the License.
199
+ * You may obtain a copy of the License at
200
+ *
201
+ * http://www.apache.org/licenses/LICENSE-2.0
202
+ *
203
+ * Unless required by applicable law or agreed to in writing, software
204
+ * distributed under the License is distributed on an "AS IS" BASIS,
205
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ * See the License for the specific language governing permissions and
207
+ * limitations under the License.
208
+ */const $R=()=>jR().__FIREBASE_DEFAULTS__,FR=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},YR=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&LR(e[1]);return t&&JSON.parse(t)},WR=()=>{try{return $R()||FR()||YR()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},I0=()=>{var e;return(e=WR())===null||e===void 0?void 0:e.config};/**
209
+ * @license
210
+ * Copyright 2017 Google LLC
211
+ *
212
+ * Licensed under the Apache License, Version 2.0 (the "License");
213
+ * you may not use this file except in compliance with the License.
214
+ * You may obtain a copy of the License at
215
+ *
216
+ * http://www.apache.org/licenses/LICENSE-2.0
217
+ *
218
+ * Unless required by applicable law or agreed to in writing, software
219
+ * distributed under the License is distributed on an "AS IS" BASIS,
220
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
221
+ * See the License for the specific language governing permissions and
222
+ * limitations under the License.
223
+ */class BR{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r})}wrapCallback(t){return(r,s)=>{r?this.reject(r):this.resolve(s),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(r):t(r,s))}}}function P0(){try{return typeof indexedDB=="object"}catch{return!1}}function N0(){return new Promise((e,t)=>{try{let r=!0;const s="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(s);o.onsuccess=()=>{o.result.close(),r||self.indexedDB.deleteDatabase(s),e(!0)},o.onupgradeneeded=()=>{r=!1},o.onerror=()=>{var c;t(((c=o.error)===null||c===void 0?void 0:c.message)||"")}}catch(r){t(r)}})}function HR(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
224
+ * @license
225
+ * Copyright 2017 Google LLC
226
+ *
227
+ * Licensed under the Apache License, Version 2.0 (the "License");
228
+ * you may not use this file except in compliance with the License.
229
+ * You may obtain a copy of the License at
230
+ *
231
+ * http://www.apache.org/licenses/LICENSE-2.0
232
+ *
233
+ * Unless required by applicable law or agreed to in writing, software
234
+ * distributed under the License is distributed on an "AS IS" BASIS,
235
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
236
+ * See the License for the specific language governing permissions and
237
+ * limitations under the License.
238
+ */const UR="FirebaseError";class sa extends Error{constructor(t,r,s){super(r),this.code=t,this.customData=s,this.name=UR,Object.setPrototypeOf(this,sa.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ul.prototype.create)}}class Ul{constructor(t,r,s){this.service=t,this.serviceName=r,this.errors=s}create(t,...r){const s=r[0]||{},o=`${this.service}/${t}`,c=this.errors[t],p=c?zR(c,s):"Error",x=`${this.serviceName}: ${p} (${o}).`;return new sa(o,x,s)}}function zR(e,t){return e.replace(qR,(r,s)=>{const o=t[s];return o!=null?String(o):`<${s}?>`})}const qR=/\{\$([^}]+)}/g;function Uf(e,t){if(e===t)return!0;const r=Object.keys(e),s=Object.keys(t);for(const o of r){if(!s.includes(o))return!1;const c=e[o],p=t[o];if(Dg(c)&&Dg(p)){if(!Uf(c,p))return!1}else if(c!==p)return!1}for(const o of s)if(!r.includes(o))return!1;return!0}function Dg(e){return e!==null&&typeof e=="object"}/**
239
+ * @license
240
+ * Copyright 2021 Google LLC
241
+ *
242
+ * Licensed under the Apache License, Version 2.0 (the "License");
243
+ * you may not use this file except in compliance with the License.
244
+ * You may obtain a copy of the License at
245
+ *
246
+ * http://www.apache.org/licenses/LICENSE-2.0
247
+ *
248
+ * Unless required by applicable law or agreed to in writing, software
249
+ * distributed under the License is distributed on an "AS IS" BASIS,
250
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
251
+ * See the License for the specific language governing permissions and
252
+ * limitations under the License.
253
+ */function Wd(e){return e&&e._delegate?e._delegate:e}class Bi{constructor(t,r,s){this.name=t,this.instanceFactory=r,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
254
+ * @license
255
+ * Copyright 2019 Google LLC
256
+ *
257
+ * Licensed under the Apache License, Version 2.0 (the "License");
258
+ * you may not use this file except in compliance with the License.
259
+ * You may obtain a copy of the License at
260
+ *
261
+ * http://www.apache.org/licenses/LICENSE-2.0
262
+ *
263
+ * Unless required by applicable law or agreed to in writing, software
264
+ * distributed under the License is distributed on an "AS IS" BASIS,
265
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
266
+ * See the License for the specific language governing permissions and
267
+ * limitations under the License.
268
+ */const us="[DEFAULT]";/**
269
+ * @license
270
+ * Copyright 2019 Google LLC
271
+ *
272
+ * Licensed under the Apache License, Version 2.0 (the "License");
273
+ * you may not use this file except in compliance with the License.
274
+ * You may obtain a copy of the License at
275
+ *
276
+ * http://www.apache.org/licenses/LICENSE-2.0
277
+ *
278
+ * Unless required by applicable law or agreed to in writing, software
279
+ * distributed under the License is distributed on an "AS IS" BASIS,
280
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
281
+ * See the License for the specific language governing permissions and
282
+ * limitations under the License.
283
+ */class VR{constructor(t,r){this.name=t,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const r=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(r)){const s=new BR;if(this.instancesDeferred.set(r,s),this.isInitialized(r)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:r});o&&s.resolve(o)}catch{}}return this.instancesDeferred.get(r).promise}getImmediate(t){var r;const s=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(r=t==null?void 0:t.optional)!==null&&r!==void 0?r:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(c){if(o)return null;throw c}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(KR(t))try{this.getOrInitializeService({instanceIdentifier:us})}catch{}for(const[r,s]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(r);try{const c=this.getOrInitializeService({instanceIdentifier:o});s.resolve(c)}catch{}}}}clearInstance(t=us){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...t.filter(r=>"_delete"in r).map(r=>r._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=us){return this.instances.has(t)}getOptions(t=us){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:r={}}=t,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:s,options:r});for(const[c,p]of this.instancesDeferred.entries()){const x=this.normalizeInstanceIdentifier(c);s===x&&p.resolve(o)}return o}onInit(t,r){var s;const o=this.normalizeInstanceIdentifier(r),c=(s=this.onInitCallbacks.get(o))!==null&&s!==void 0?s:new Set;c.add(t),this.onInitCallbacks.set(o,c);const p=this.instances.get(o);return p&&t(p,o),()=>{c.delete(t)}}invokeOnInitCallbacks(t,r){const s=this.onInitCallbacks.get(r);if(s)for(const o of s)try{o(t,r)}catch{}}getOrInitializeService({instanceIdentifier:t,options:r={}}){let s=this.instances.get(t);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:GR(t),options:r}),this.instances.set(t,s),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(s,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,s)}catch{}return s||null}normalizeInstanceIdentifier(t=us){return this.component?this.component.multipleInstances?t:us:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function GR(e){return e===us?void 0:e}function KR(e){return e.instantiationMode==="EAGER"}/**
284
+ * @license
285
+ * Copyright 2019 Google LLC
286
+ *
287
+ * Licensed under the Apache License, Version 2.0 (the "License");
288
+ * you may not use this file except in compliance with the License.
289
+ * You may obtain a copy of the License at
290
+ *
291
+ * http://www.apache.org/licenses/LICENSE-2.0
292
+ *
293
+ * Unless required by applicable law or agreed to in writing, software
294
+ * distributed under the License is distributed on an "AS IS" BASIS,
295
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
296
+ * See the License for the specific language governing permissions and
297
+ * limitations under the License.
298
+ */class ZR{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const r=this.getProvider(t.name);if(r.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);r.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const r=new VR(t,this);return this.providers.set(t,r),r}getProviders(){return Array.from(this.providers.values())}}/**
299
+ * @license
300
+ * Copyright 2017 Google LLC
301
+ *
302
+ * Licensed under the Apache License, Version 2.0 (the "License");
303
+ * you may not use this file except in compliance with the License.
304
+ * You may obtain a copy of the License at
305
+ *
306
+ * http://www.apache.org/licenses/LICENSE-2.0
307
+ *
308
+ * Unless required by applicable law or agreed to in writing, software
309
+ * distributed under the License is distributed on an "AS IS" BASIS,
310
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
311
+ * See the License for the specific language governing permissions and
312
+ * limitations under the License.
313
+ */var ut;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(ut||(ut={}));const XR={debug:ut.DEBUG,verbose:ut.VERBOSE,info:ut.INFO,warn:ut.WARN,error:ut.ERROR,silent:ut.SILENT},JR=ut.INFO,QR={[ut.DEBUG]:"log",[ut.VERBOSE]:"log",[ut.INFO]:"info",[ut.WARN]:"warn",[ut.ERROR]:"error"},eA=(e,t,...r)=>{if(t<e.logLevel)return;const s=new Date().toISOString(),o=QR[t];if(o)console[o](`[${s}] ${e.name}:`,...r);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class tA{constructor(t){this.name=t,this._logLevel=JR,this._logHandler=eA,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in ut))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?XR[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,ut.DEBUG,...t),this._logHandler(this,ut.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,ut.VERBOSE,...t),this._logHandler(this,ut.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,ut.INFO,...t),this._logHandler(this,ut.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,ut.WARN,...t),this._logHandler(this,ut.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,ut.ERROR,...t),this._logHandler(this,ut.ERROR,...t)}}const nA=(e,t)=>t.some(r=>e instanceof r);let Eg,Tg;function rA(){return Eg||(Eg=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function iA(){return Tg||(Tg=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const L0=new WeakMap,zf=new WeakMap,j0=new WeakMap,bf=new WeakMap,Bd=new WeakMap;function sA(e){const t=new Promise((r,s)=>{const o=()=>{e.removeEventListener("success",c),e.removeEventListener("error",p)},c=()=>{r(hi(e.result)),o()},p=()=>{s(e.error),o()};e.addEventListener("success",c),e.addEventListener("error",p)});return t.then(r=>{r instanceof IDBCursor&&L0.set(r,e)}).catch(()=>{}),Bd.set(t,e),t}function aA(e){if(zf.has(e))return;const t=new Promise((r,s)=>{const o=()=>{e.removeEventListener("complete",c),e.removeEventListener("error",p),e.removeEventListener("abort",p)},c=()=>{r(),o()},p=()=>{s(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",c),e.addEventListener("error",p),e.addEventListener("abort",p)});zf.set(e,t)}let qf={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return zf.get(e);if(t==="objectStoreNames")return e.objectStoreNames||j0.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return hi(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function oA(e){qf=e(qf)}function uA(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...r){const s=e.call(xf(this),t,...r);return j0.set(s,t.sort?t.sort():[t]),hi(s)}:iA().includes(e)?function(...t){return e.apply(xf(this),t),hi(L0.get(this))}:function(...t){return hi(e.apply(xf(this),t))}}function lA(e){return typeof e=="function"?uA(e):(e instanceof IDBTransaction&&aA(e),nA(e,rA())?new Proxy(e,qf):e)}function hi(e){if(e instanceof IDBRequest)return sA(e);if(bf.has(e))return bf.get(e);const t=lA(e);return t!==e&&(bf.set(e,t),Bd.set(t,e)),t}const xf=e=>Bd.get(e);function zl(e,t,{blocked:r,upgrade:s,blocking:o,terminated:c}={}){const p=indexedDB.open(e,t),x=hi(p);return s&&p.addEventListener("upgradeneeded",w=>{s(hi(p.result),w.oldVersion,w.newVersion,hi(p.transaction),w)}),r&&p.addEventListener("blocked",w=>r(w.oldVersion,w.newVersion,w)),x.then(w=>{c&&w.addEventListener("close",()=>c()),o&&w.addEventListener("versionchange",D=>o(D.oldVersion,D.newVersion,D))}).catch(()=>{}),x}function _f(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",s=>t(s.oldVersion,s)),hi(r).then(()=>{})}const cA=["get","getKey","getAll","getAllKeys","count"],fA=["put","add","delete","clear"],wf=new Map;function Mg(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(wf.get(t))return wf.get(t);const r=t.replace(/FromIndex$/,""),s=t!==r,o=fA.includes(r);if(!(r in(s?IDBIndex:IDBObjectStore).prototype)||!(o||cA.includes(r)))return;const c=async function(p,...x){const w=this.transaction(p,o?"readwrite":"readonly");let D=w.store;return s&&(D=D.index(x.shift())),(await Promise.all([D[r](...x),o&&w.done]))[0]};return wf.set(t,c),c}oA(e=>({...e,get:(t,r,s)=>Mg(t,r)||e.get(t,r,s),has:(t,r)=>!!Mg(t,r)||e.has(t,r)}));/**
314
+ * @license
315
+ * Copyright 2019 Google LLC
316
+ *
317
+ * Licensed under the Apache License, Version 2.0 (the "License");
318
+ * you may not use this file except in compliance with the License.
319
+ * You may obtain a copy of the License at
320
+ *
321
+ * http://www.apache.org/licenses/LICENSE-2.0
322
+ *
323
+ * Unless required by applicable law or agreed to in writing, software
324
+ * distributed under the License is distributed on an "AS IS" BASIS,
325
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
326
+ * See the License for the specific language governing permissions and
327
+ * limitations under the License.
328
+ */class dA{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(r=>{if(hA(r)){const s=r.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(r=>r).join(" ")}}function hA(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Vf="@firebase/app",Rg="0.9.28";/**
329
+ * @license
330
+ * Copyright 2019 Google LLC
331
+ *
332
+ * Licensed under the Apache License, Version 2.0 (the "License");
333
+ * you may not use this file except in compliance with the License.
334
+ * You may obtain a copy of the License at
335
+ *
336
+ * http://www.apache.org/licenses/LICENSE-2.0
337
+ *
338
+ * Unless required by applicable law or agreed to in writing, software
339
+ * distributed under the License is distributed on an "AS IS" BASIS,
340
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
341
+ * See the License for the specific language governing permissions and
342
+ * limitations under the License.
343
+ */const hs=new tA("@firebase/app"),pA="@firebase/app-compat",gA="@firebase/analytics-compat",mA="@firebase/analytics",yA="@firebase/app-check-compat",vA="@firebase/app-check",bA="@firebase/auth",xA="@firebase/auth-compat",_A="@firebase/database",wA="@firebase/database-compat",SA="@firebase/functions",kA="@firebase/functions-compat",CA="@firebase/installations",DA="@firebase/installations-compat",EA="@firebase/messaging",TA="@firebase/messaging-compat",MA="@firebase/performance",RA="@firebase/performance-compat",AA="@firebase/remote-config",OA="@firebase/remote-config-compat",IA="@firebase/storage",PA="@firebase/storage-compat",NA="@firebase/firestore",LA="@firebase/firestore-compat",jA="firebase";/**
344
+ * @license
345
+ * Copyright 2019 Google LLC
346
+ *
347
+ * Licensed under the Apache License, Version 2.0 (the "License");
348
+ * you may not use this file except in compliance with the License.
349
+ * You may obtain a copy of the License at
350
+ *
351
+ * http://www.apache.org/licenses/LICENSE-2.0
352
+ *
353
+ * Unless required by applicable law or agreed to in writing, software
354
+ * distributed under the License is distributed on an "AS IS" BASIS,
355
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
356
+ * See the License for the specific language governing permissions and
357
+ * limitations under the License.
358
+ */const Gf="[DEFAULT]",$A={[Vf]:"fire-core",[pA]:"fire-core-compat",[mA]:"fire-analytics",[gA]:"fire-analytics-compat",[vA]:"fire-app-check",[yA]:"fire-app-check-compat",[bA]:"fire-auth",[xA]:"fire-auth-compat",[_A]:"fire-rtdb",[wA]:"fire-rtdb-compat",[SA]:"fire-fn",[kA]:"fire-fn-compat",[CA]:"fire-iid",[DA]:"fire-iid-compat",[EA]:"fire-fcm",[TA]:"fire-fcm-compat",[MA]:"fire-perf",[RA]:"fire-perf-compat",[AA]:"fire-rc",[OA]:"fire-rc-compat",[IA]:"fire-gcs",[PA]:"fire-gcs-compat",[NA]:"fire-fst",[LA]:"fire-fst-compat","fire-js":"fire-js",[jA]:"fire-js-all"};/**
359
+ * @license
360
+ * Copyright 2019 Google LLC
361
+ *
362
+ * Licensed under the Apache License, Version 2.0 (the "License");
363
+ * you may not use this file except in compliance with the License.
364
+ * You may obtain a copy of the License at
365
+ *
366
+ * http://www.apache.org/licenses/LICENSE-2.0
367
+ *
368
+ * Unless required by applicable law or agreed to in writing, software
369
+ * distributed under the License is distributed on an "AS IS" BASIS,
370
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
371
+ * See the License for the specific language governing permissions and
372
+ * limitations under the License.
373
+ */const Ku=new Map,Kf=new Map;function FA(e,t){try{e.container.addComponent(t)}catch(r){hs.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function ps(e){const t=e.name;if(Kf.has(t))return hs.debug(`There were multiple attempts to register component ${t}.`),!1;Kf.set(t,e);for(const r of Ku.values())FA(r,e);return!0}function Hd(e,t){const r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}/**
374
+ * @license
375
+ * Copyright 2019 Google LLC
376
+ *
377
+ * Licensed under the Apache License, Version 2.0 (the "License");
378
+ * you may not use this file except in compliance with the License.
379
+ * You may obtain a copy of the License at
380
+ *
381
+ * http://www.apache.org/licenses/LICENSE-2.0
382
+ *
383
+ * Unless required by applicable law or agreed to in writing, software
384
+ * distributed under the License is distributed on an "AS IS" BASIS,
385
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
386
+ * See the License for the specific language governing permissions and
387
+ * limitations under the License.
388
+ */const YA={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Yi=new Ul("app","Firebase",YA);/**
389
+ * @license
390
+ * Copyright 2019 Google LLC
391
+ *
392
+ * Licensed under the Apache License, Version 2.0 (the "License");
393
+ * you may not use this file except in compliance with the License.
394
+ * You may obtain a copy of the License at
395
+ *
396
+ * http://www.apache.org/licenses/LICENSE-2.0
397
+ *
398
+ * Unless required by applicable law or agreed to in writing, software
399
+ * distributed under the License is distributed on an "AS IS" BASIS,
400
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
401
+ * See the License for the specific language governing permissions and
402
+ * limitations under the License.
403
+ */class WA{constructor(t,r,s){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},r),this._name=r.name,this._automaticDataCollectionEnabled=r.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new Bi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Yi.create("app-deleted",{appName:this._name})}}function Ud(e,t={}){let r=e;typeof t!="object"&&(t={name:t});const s=Object.assign({name:Gf,automaticDataCollectionEnabled:!1},t),o=s.name;if(typeof o!="string"||!o)throw Yi.create("bad-app-name",{appName:String(o)});if(r||(r=I0()),!r)throw Yi.create("no-options");const c=Ku.get(o);if(c){if(Uf(r,c.options)&&Uf(s,c.config))return c;throw Yi.create("duplicate-app",{appName:o})}const p=new ZR(o);for(const w of Kf.values())p.addComponent(w);const x=new WA(r,s,p);return Ku.set(o,x),x}function BA(e=Gf){const t=Ku.get(e);if(!t&&e===Gf&&I0())return Ud();if(!t)throw Yi.create("no-app",{appName:e});return t}function Wi(e,t,r){var s;let o=(s=$A[e])!==null&&s!==void 0?s:e;r&&(o+=`-${r}`);const c=o.match(/\s|\//),p=t.match(/\s|\//);if(c||p){const x=[`Unable to register library "${o}" with version "${t}":`];c&&x.push(`library name "${o}" contains illegal characters (whitespace or "/")`),c&&p&&x.push("and"),p&&x.push(`version name "${t}" contains illegal characters (whitespace or "/")`),hs.warn(x.join(" "));return}ps(new Bi(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/**
404
+ * @license
405
+ * Copyright 2021 Google LLC
406
+ *
407
+ * Licensed under the Apache License, Version 2.0 (the "License");
408
+ * you may not use this file except in compliance with the License.
409
+ * You may obtain a copy of the License at
410
+ *
411
+ * http://www.apache.org/licenses/LICENSE-2.0
412
+ *
413
+ * Unless required by applicable law or agreed to in writing, software
414
+ * distributed under the License is distributed on an "AS IS" BASIS,
415
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
416
+ * See the License for the specific language governing permissions and
417
+ * limitations under the License.
418
+ */const HA="firebase-heartbeat-database",UA=1,io="firebase-heartbeat-store";let Sf=null;function $0(){return Sf||(Sf=zl(HA,UA,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(io)}catch(r){console.warn(r)}}}}).catch(e=>{throw Yi.create("idb-open",{originalErrorMessage:e.message})})),Sf}async function zA(e){try{const r=(await $0()).transaction(io),s=await r.objectStore(io).get(F0(e));return await r.done,s}catch(t){if(t instanceof sa)hs.warn(t.message);else{const r=Yi.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});hs.warn(r.message)}}}async function Ag(e,t){try{const s=(await $0()).transaction(io,"readwrite");await s.objectStore(io).put(t,F0(e)),await s.done}catch(r){if(r instanceof sa)hs.warn(r.message);else{const s=Yi.create("idb-set",{originalErrorMessage:r==null?void 0:r.message});hs.warn(s.message)}}}function F0(e){return`${e.name}!${e.options.appId}`}/**
419
+ * @license
420
+ * Copyright 2021 Google LLC
421
+ *
422
+ * Licensed under the Apache License, Version 2.0 (the "License");
423
+ * you may not use this file except in compliance with the License.
424
+ * You may obtain a copy of the License at
425
+ *
426
+ * http://www.apache.org/licenses/LICENSE-2.0
427
+ *
428
+ * Unless required by applicable law or agreed to in writing, software
429
+ * distributed under the License is distributed on an "AS IS" BASIS,
430
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
431
+ * See the License for the specific language governing permissions and
432
+ * limitations under the License.
433
+ */const qA=1024,VA=30*24*60*60*1e3;class GA{constructor(t){this.container=t,this._heartbeatsCache=null;const r=this.container.getProvider("app").getImmediate();this._storage=new ZA(r),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var t,r;const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),c=Og();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((r=this._heartbeatsCache)===null||r===void 0?void 0:r.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===c||this._heartbeatsCache.heartbeats.some(p=>p.date===c)))return this._heartbeatsCache.heartbeats.push({date:c,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(p=>{const x=new Date(p.date).valueOf();return Date.now()-x<=VA}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const r=Og(),{heartbeatsToSend:s,unsentEntries:o}=KA(this._heartbeatsCache.heartbeats),c=O0(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=r,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),c}}function Og(){return new Date().toISOString().substring(0,10)}function KA(e,t=qA){const r=[];let s=e.slice();for(const o of e){const c=r.find(p=>p.agent===o.agent);if(c){if(c.dates.push(o.date),Ig(r)>t){c.dates.pop();break}}else if(r.push({agent:o.agent,dates:[o.date]}),Ig(r)>t){r.pop();break}s=s.slice(1)}return{heartbeatsToSend:r,unsentEntries:s}}class ZA{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return P0()?N0().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const r=await zA(this.app);return r!=null&&r.heartbeats?r:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var r;if(await this._canUseIndexedDBPromise){const o=await this.read();return Ag(this.app,{lastSentHeartbeatDate:(r=t.lastSentHeartbeatDate)!==null&&r!==void 0?r:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var r;if(await this._canUseIndexedDBPromise){const o=await this.read();return Ag(this.app,{lastSentHeartbeatDate:(r=t.lastSentHeartbeatDate)!==null&&r!==void 0?r:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function Ig(e){return O0(JSON.stringify({version:2,heartbeats:e})).length}/**
434
+ * @license
435
+ * Copyright 2019 Google LLC
436
+ *
437
+ * Licensed under the Apache License, Version 2.0 (the "License");
438
+ * you may not use this file except in compliance with the License.
439
+ * You may obtain a copy of the License at
440
+ *
441
+ * http://www.apache.org/licenses/LICENSE-2.0
442
+ *
443
+ * Unless required by applicable law or agreed to in writing, software
444
+ * distributed under the License is distributed on an "AS IS" BASIS,
445
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
446
+ * See the License for the specific language governing permissions and
447
+ * limitations under the License.
448
+ */function XA(e){ps(new Bi("platform-logger",t=>new dA(t),"PRIVATE")),ps(new Bi("heartbeat",t=>new GA(t),"PRIVATE")),Wi(Vf,Rg,e),Wi(Vf,Rg,"esm2017"),Wi("fire-js","")}XA("");var JA="firebase",QA="10.8.1";/**
449
+ * @license
450
+ * Copyright 2020 Google LLC
451
+ *
452
+ * Licensed under the Apache License, Version 2.0 (the "License");
453
+ * you may not use this file except in compliance with the License.
454
+ * You may obtain a copy of the License at
455
+ *
456
+ * http://www.apache.org/licenses/LICENSE-2.0
457
+ *
458
+ * Unless required by applicable law or agreed to in writing, software
459
+ * distributed under the License is distributed on an "AS IS" BASIS,
460
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
461
+ * See the License for the specific language governing permissions and
462
+ * limitations under the License.
463
+ */Wi(JA,QA,"app");const Y0="@firebase/installations",zd="0.6.5";/**
464
+ * @license
465
+ * Copyright 2019 Google LLC
466
+ *
467
+ * Licensed under the Apache License, Version 2.0 (the "License");
468
+ * you may not use this file except in compliance with the License.
469
+ * You may obtain a copy of the License at
470
+ *
471
+ * http://www.apache.org/licenses/LICENSE-2.0
472
+ *
473
+ * Unless required by applicable law or agreed to in writing, software
474
+ * distributed under the License is distributed on an "AS IS" BASIS,
475
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
476
+ * See the License for the specific language governing permissions and
477
+ * limitations under the License.
478
+ */const W0=1e4,B0=`w:${zd}`,H0="FIS_v2",eO="https://firebaseinstallations.googleapis.com/v1",tO=60*60*1e3,nO="installations",rO="Installations";/**
479
+ * @license
480
+ * Copyright 2019 Google LLC
481
+ *
482
+ * Licensed under the Apache License, Version 2.0 (the "License");
483
+ * you may not use this file except in compliance with the License.
484
+ * You may obtain a copy of the License at
485
+ *
486
+ * http://www.apache.org/licenses/LICENSE-2.0
487
+ *
488
+ * Unless required by applicable law or agreed to in writing, software
489
+ * distributed under the License is distributed on an "AS IS" BASIS,
490
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
491
+ * See the License for the specific language governing permissions and
492
+ * limitations under the License.
493
+ */const iO={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},gs=new Ul(nO,rO,iO);function U0(e){return e instanceof sa&&e.code.includes("request-failed")}/**
494
+ * @license
495
+ * Copyright 2019 Google LLC
496
+ *
497
+ * Licensed under the Apache License, Version 2.0 (the "License");
498
+ * you may not use this file except in compliance with the License.
499
+ * You may obtain a copy of the License at
500
+ *
501
+ * http://www.apache.org/licenses/LICENSE-2.0
502
+ *
503
+ * Unless required by applicable law or agreed to in writing, software
504
+ * distributed under the License is distributed on an "AS IS" BASIS,
505
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
506
+ * See the License for the specific language governing permissions and
507
+ * limitations under the License.
508
+ */function z0({projectId:e}){return`${eO}/projects/${e}/installations`}function q0(e){return{token:e.token,requestStatus:2,expiresIn:aO(e.expiresIn),creationTime:Date.now()}}async function V0(e,t){const s=(await t.json()).error;return gs.create("request-failed",{requestName:e,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})}function G0({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function sO(e,{refreshToken:t}){const r=G0(e);return r.append("Authorization",oO(t)),r}async function K0(e){const t=await e();return t.status>=500&&t.status<600?e():t}function aO(e){return Number(e.replace("s","000"))}function oO(e){return`${H0} ${e}`}/**
509
+ * @license
510
+ * Copyright 2019 Google LLC
511
+ *
512
+ * Licensed under the Apache License, Version 2.0 (the "License");
513
+ * you may not use this file except in compliance with the License.
514
+ * You may obtain a copy of the License at
515
+ *
516
+ * http://www.apache.org/licenses/LICENSE-2.0
517
+ *
518
+ * Unless required by applicable law or agreed to in writing, software
519
+ * distributed under the License is distributed on an "AS IS" BASIS,
520
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
521
+ * See the License for the specific language governing permissions and
522
+ * limitations under the License.
523
+ */async function uO({appConfig:e,heartbeatServiceProvider:t},{fid:r}){const s=z0(e),o=G0(e),c=t.getImmediate({optional:!0});if(c){const D=await c.getHeartbeatsHeader();D&&o.append("x-firebase-client",D)}const p={fid:r,authVersion:H0,appId:e.appId,sdkVersion:B0},x={method:"POST",headers:o,body:JSON.stringify(p)},w=await K0(()=>fetch(s,x));if(w.ok){const D=await w.json();return{fid:D.fid||r,registrationStatus:2,refreshToken:D.refreshToken,authToken:q0(D.authToken)}}else throw await V0("Create Installation",w)}/**
524
+ * @license
525
+ * Copyright 2019 Google LLC
526
+ *
527
+ * Licensed under the Apache License, Version 2.0 (the "License");
528
+ * you may not use this file except in compliance with the License.
529
+ * You may obtain a copy of the License at
530
+ *
531
+ * http://www.apache.org/licenses/LICENSE-2.0
532
+ *
533
+ * Unless required by applicable law or agreed to in writing, software
534
+ * distributed under the License is distributed on an "AS IS" BASIS,
535
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
536
+ * See the License for the specific language governing permissions and
537
+ * limitations under the License.
538
+ */function Z0(e){return new Promise(t=>{setTimeout(t,e)})}/**
539
+ * @license
540
+ * Copyright 2019 Google LLC
541
+ *
542
+ * Licensed under the Apache License, Version 2.0 (the "License");
543
+ * you may not use this file except in compliance with the License.
544
+ * You may obtain a copy of the License at
545
+ *
546
+ * http://www.apache.org/licenses/LICENSE-2.0
547
+ *
548
+ * Unless required by applicable law or agreed to in writing, software
549
+ * distributed under the License is distributed on an "AS IS" BASIS,
550
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
551
+ * See the License for the specific language governing permissions and
552
+ * limitations under the License.
553
+ */function lO(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
554
+ * @license
555
+ * Copyright 2019 Google LLC
556
+ *
557
+ * Licensed under the Apache License, Version 2.0 (the "License");
558
+ * you may not use this file except in compliance with the License.
559
+ * You may obtain a copy of the License at
560
+ *
561
+ * http://www.apache.org/licenses/LICENSE-2.0
562
+ *
563
+ * Unless required by applicable law or agreed to in writing, software
564
+ * distributed under the License is distributed on an "AS IS" BASIS,
565
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
566
+ * See the License for the specific language governing permissions and
567
+ * limitations under the License.
568
+ */const cO=/^[cdef][\w-]{21}$/,Zf="";function fO(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const r=dO(e);return cO.test(r)?r:Zf}catch{return Zf}}function dO(e){return lO(e).substr(0,22)}/**
569
+ * @license
570
+ * Copyright 2019 Google LLC
571
+ *
572
+ * Licensed under the Apache License, Version 2.0 (the "License");
573
+ * you may not use this file except in compliance with the License.
574
+ * You may obtain a copy of the License at
575
+ *
576
+ * http://www.apache.org/licenses/LICENSE-2.0
577
+ *
578
+ * Unless required by applicable law or agreed to in writing, software
579
+ * distributed under the License is distributed on an "AS IS" BASIS,
580
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
581
+ * See the License for the specific language governing permissions and
582
+ * limitations under the License.
583
+ */function ql(e){return`${e.appName}!${e.appId}`}/**
584
+ * @license
585
+ * Copyright 2019 Google LLC
586
+ *
587
+ * Licensed under the Apache License, Version 2.0 (the "License");
588
+ * you may not use this file except in compliance with the License.
589
+ * You may obtain a copy of the License at
590
+ *
591
+ * http://www.apache.org/licenses/LICENSE-2.0
592
+ *
593
+ * Unless required by applicable law or agreed to in writing, software
594
+ * distributed under the License is distributed on an "AS IS" BASIS,
595
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
596
+ * See the License for the specific language governing permissions and
597
+ * limitations under the License.
598
+ */const X0=new Map;function J0(e,t){const r=ql(e);Q0(r,t),hO(r,t)}function Q0(e,t){const r=X0.get(e);if(r)for(const s of r)s(t)}function hO(e,t){const r=pO();r&&r.postMessage({key:e,fid:t}),gO()}let fs=null;function pO(){return!fs&&"BroadcastChannel"in self&&(fs=new BroadcastChannel("[Firebase] FID Change"),fs.onmessage=e=>{Q0(e.data.key,e.data.fid)}),fs}function gO(){X0.size===0&&fs&&(fs.close(),fs=null)}/**
599
+ * @license
600
+ * Copyright 2019 Google LLC
601
+ *
602
+ * Licensed under the Apache License, Version 2.0 (the "License");
603
+ * you may not use this file except in compliance with the License.
604
+ * You may obtain a copy of the License at
605
+ *
606
+ * http://www.apache.org/licenses/LICENSE-2.0
607
+ *
608
+ * Unless required by applicable law or agreed to in writing, software
609
+ * distributed under the License is distributed on an "AS IS" BASIS,
610
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
611
+ * See the License for the specific language governing permissions and
612
+ * limitations under the License.
613
+ */const mO="firebase-installations-database",yO=1,ms="firebase-installations-store";let kf=null;function qd(){return kf||(kf=zl(mO,yO,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(ms)}}})),kf}async function Zu(e,t){const r=ql(e),o=(await qd()).transaction(ms,"readwrite"),c=o.objectStore(ms),p=await c.get(r);return await c.put(t,r),await o.done,(!p||p.fid!==t.fid)&&J0(e,t.fid),t}async function ey(e){const t=ql(e),s=(await qd()).transaction(ms,"readwrite");await s.objectStore(ms).delete(t),await s.done}async function Vl(e,t){const r=ql(e),o=(await qd()).transaction(ms,"readwrite"),c=o.objectStore(ms),p=await c.get(r),x=t(p);return x===void 0?await c.delete(r):await c.put(x,r),await o.done,x&&(!p||p.fid!==x.fid)&&J0(e,x.fid),x}/**
614
+ * @license
615
+ * Copyright 2019 Google LLC
616
+ *
617
+ * Licensed under the Apache License, Version 2.0 (the "License");
618
+ * you may not use this file except in compliance with the License.
619
+ * You may obtain a copy of the License at
620
+ *
621
+ * http://www.apache.org/licenses/LICENSE-2.0
622
+ *
623
+ * Unless required by applicable law or agreed to in writing, software
624
+ * distributed under the License is distributed on an "AS IS" BASIS,
625
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
626
+ * See the License for the specific language governing permissions and
627
+ * limitations under the License.
628
+ */async function Vd(e){let t;const r=await Vl(e.appConfig,s=>{const o=vO(s),c=bO(e,o);return t=c.registrationPromise,c.installationEntry});return r.fid===Zf?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}function vO(e){const t=e||{fid:fO(),registrationStatus:0};return ty(t)}function bO(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(gs.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},s=xO(e,r);return{installationEntry:r,registrationPromise:s}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:_O(e)}:{installationEntry:t}}async function xO(e,t){try{const r=await uO(e,t);return Zu(e.appConfig,r)}catch(r){throw U0(r)&&r.customData.serverCode===409?await ey(e.appConfig):await Zu(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}async function _O(e){let t=await Pg(e.appConfig);for(;t.registrationStatus===1;)await Z0(100),t=await Pg(e.appConfig);if(t.registrationStatus===0){const{installationEntry:r,registrationPromise:s}=await Vd(e);return s||r}return t}function Pg(e){return Vl(e,t=>{if(!t)throw gs.create("installation-not-found");return ty(t)})}function ty(e){return wO(e)?{fid:e.fid,registrationStatus:0}:e}function wO(e){return e.registrationStatus===1&&e.registrationTime+W0<Date.now()}/**
629
+ * @license
630
+ * Copyright 2019 Google LLC
631
+ *
632
+ * Licensed under the Apache License, Version 2.0 (the "License");
633
+ * you may not use this file except in compliance with the License.
634
+ * You may obtain a copy of the License at
635
+ *
636
+ * http://www.apache.org/licenses/LICENSE-2.0
637
+ *
638
+ * Unless required by applicable law or agreed to in writing, software
639
+ * distributed under the License is distributed on an "AS IS" BASIS,
640
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
641
+ * See the License for the specific language governing permissions and
642
+ * limitations under the License.
643
+ */async function SO({appConfig:e,heartbeatServiceProvider:t},r){const s=kO(e,r),o=sO(e,r),c=t.getImmediate({optional:!0});if(c){const D=await c.getHeartbeatsHeader();D&&o.append("x-firebase-client",D)}const p={installation:{sdkVersion:B0,appId:e.appId}},x={method:"POST",headers:o,body:JSON.stringify(p)},w=await K0(()=>fetch(s,x));if(w.ok){const D=await w.json();return q0(D)}else throw await V0("Generate Auth Token",w)}function kO(e,{fid:t}){return`${z0(e)}/${t}/authTokens:generate`}/**
644
+ * @license
645
+ * Copyright 2019 Google LLC
646
+ *
647
+ * Licensed under the Apache License, Version 2.0 (the "License");
648
+ * you may not use this file except in compliance with the License.
649
+ * You may obtain a copy of the License at
650
+ *
651
+ * http://www.apache.org/licenses/LICENSE-2.0
652
+ *
653
+ * Unless required by applicable law or agreed to in writing, software
654
+ * distributed under the License is distributed on an "AS IS" BASIS,
655
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
656
+ * See the License for the specific language governing permissions and
657
+ * limitations under the License.
658
+ */async function Gd(e,t=!1){let r;const s=await Vl(e.appConfig,c=>{if(!ny(c))throw gs.create("not-registered");const p=c.authToken;if(!t&&EO(p))return c;if(p.requestStatus===1)return r=CO(e,t),c;{if(!navigator.onLine)throw gs.create("app-offline");const x=MO(c);return r=DO(e,x),x}});return r?await r:s.authToken}async function CO(e,t){let r=await Ng(e.appConfig);for(;r.authToken.requestStatus===1;)await Z0(100),r=await Ng(e.appConfig);const s=r.authToken;return s.requestStatus===0?Gd(e,t):s}function Ng(e){return Vl(e,t=>{if(!ny(t))throw gs.create("not-registered");const r=t.authToken;return RO(r)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function DO(e,t){try{const r=await SO(e,t),s=Object.assign(Object.assign({},t),{authToken:r});return await Zu(e.appConfig,s),r}catch(r){if(U0(r)&&(r.customData.serverCode===401||r.customData.serverCode===404))await ey(e.appConfig);else{const s=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Zu(e.appConfig,s)}throw r}}function ny(e){return e!==void 0&&e.registrationStatus===2}function EO(e){return e.requestStatus===2&&!TO(e)}function TO(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+tO}function MO(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function RO(e){return e.requestStatus===1&&e.requestTime+W0<Date.now()}/**
659
+ * @license
660
+ * Copyright 2019 Google LLC
661
+ *
662
+ * Licensed under the Apache License, Version 2.0 (the "License");
663
+ * you may not use this file except in compliance with the License.
664
+ * You may obtain a copy of the License at
665
+ *
666
+ * http://www.apache.org/licenses/LICENSE-2.0
667
+ *
668
+ * Unless required by applicable law or agreed to in writing, software
669
+ * distributed under the License is distributed on an "AS IS" BASIS,
670
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
671
+ * See the License for the specific language governing permissions and
672
+ * limitations under the License.
673
+ */async function AO(e){const t=e,{installationEntry:r,registrationPromise:s}=await Vd(t);return s?s.catch(console.error):Gd(t).catch(console.error),r.fid}/**
674
+ * @license
675
+ * Copyright 2019 Google LLC
676
+ *
677
+ * Licensed under the Apache License, Version 2.0 (the "License");
678
+ * you may not use this file except in compliance with the License.
679
+ * You may obtain a copy of the License at
680
+ *
681
+ * http://www.apache.org/licenses/LICENSE-2.0
682
+ *
683
+ * Unless required by applicable law or agreed to in writing, software
684
+ * distributed under the License is distributed on an "AS IS" BASIS,
685
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
686
+ * See the License for the specific language governing permissions and
687
+ * limitations under the License.
688
+ */async function OO(e,t=!1){const r=e;return await IO(r),(await Gd(r,t)).token}async function IO(e){const{registrationPromise:t}=await Vd(e);t&&await t}/**
689
+ * @license
690
+ * Copyright 2019 Google LLC
691
+ *
692
+ * Licensed under the Apache License, Version 2.0 (the "License");
693
+ * you may not use this file except in compliance with the License.
694
+ * You may obtain a copy of the License at
695
+ *
696
+ * http://www.apache.org/licenses/LICENSE-2.0
697
+ *
698
+ * Unless required by applicable law or agreed to in writing, software
699
+ * distributed under the License is distributed on an "AS IS" BASIS,
700
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
701
+ * See the License for the specific language governing permissions and
702
+ * limitations under the License.
703
+ */function PO(e){if(!e||!e.options)throw Cf("App Configuration");if(!e.name)throw Cf("App Name");const t=["projectId","apiKey","appId"];for(const r of t)if(!e.options[r])throw Cf(r);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Cf(e){return gs.create("missing-app-config-values",{valueName:e})}/**
704
+ * @license
705
+ * Copyright 2020 Google LLC
706
+ *
707
+ * Licensed under the Apache License, Version 2.0 (the "License");
708
+ * you may not use this file except in compliance with the License.
709
+ * You may obtain a copy of the License at
710
+ *
711
+ * http://www.apache.org/licenses/LICENSE-2.0
712
+ *
713
+ * Unless required by applicable law or agreed to in writing, software
714
+ * distributed under the License is distributed on an "AS IS" BASIS,
715
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
716
+ * See the License for the specific language governing permissions and
717
+ * limitations under the License.
718
+ */const ry="installations",NO="installations-internal",LO=e=>{const t=e.getProvider("app").getImmediate(),r=PO(t),s=Hd(t,"heartbeat");return{app:t,appConfig:r,heartbeatServiceProvider:s,_delete:()=>Promise.resolve()}},jO=e=>{const t=e.getProvider("app").getImmediate(),r=Hd(t,ry).getImmediate();return{getId:()=>AO(r),getToken:o=>OO(r,o)}};function $O(){ps(new Bi(ry,LO,"PUBLIC")),ps(new Bi(NO,jO,"PRIVATE"))}$O();Wi(Y0,zd);Wi(Y0,zd,"esm2017");/**
719
+ * @license
720
+ * Copyright 2019 Google LLC
721
+ *
722
+ * Licensed under the Apache License, Version 2.0 (the "License");
723
+ * you may not use this file except in compliance with the License.
724
+ * You may obtain a copy of the License at
725
+ *
726
+ * http://www.apache.org/licenses/LICENSE-2.0
727
+ *
728
+ * Unless required by applicable law or agreed to in writing, software
729
+ * distributed under the License is distributed on an "AS IS" BASIS,
730
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
731
+ * See the License for the specific language governing permissions and
732
+ * limitations under the License.
733
+ */const FO="/firebase-messaging-sw.js",YO="/firebase-cloud-messaging-push-scope",iy="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",WO="https://fcmregistrations.googleapis.com/v1",sy="google.c.a.c_id",BO="google.c.a.c_l",HO="google.c.a.ts",UO="google.c.a.e";var Lg;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Lg||(Lg={}));/**
734
+ * @license
735
+ * Copyright 2018 Google LLC
736
+ *
737
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
738
+ * in compliance with the License. You may obtain a copy of the License at
739
+ *
740
+ * http://www.apache.org/licenses/LICENSE-2.0
741
+ *
742
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
743
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
744
+ * or implied. See the License for the specific language governing permissions and limitations under
745
+ * the License.
746
+ */var so;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(so||(so={}));/**
747
+ * @license
748
+ * Copyright 2017 Google LLC
749
+ *
750
+ * Licensed under the Apache License, Version 2.0 (the "License");
751
+ * you may not use this file except in compliance with the License.
752
+ * You may obtain a copy of the License at
753
+ *
754
+ * http://www.apache.org/licenses/LICENSE-2.0
755
+ *
756
+ * Unless required by applicable law or agreed to in writing, software
757
+ * distributed under the License is distributed on an "AS IS" BASIS,
758
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
759
+ * See the License for the specific language governing permissions and
760
+ * limitations under the License.
761
+ */function ui(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function zO(e){const t="=".repeat((4-e.length%4)%4),r=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),s=atob(r),o=new Uint8Array(s.length);for(let c=0;c<s.length;++c)o[c]=s.charCodeAt(c);return o}/**
762
+ * @license
763
+ * Copyright 2019 Google LLC
764
+ *
765
+ * Licensed under the Apache License, Version 2.0 (the "License");
766
+ * you may not use this file except in compliance with the License.
767
+ * You may obtain a copy of the License at
768
+ *
769
+ * http://www.apache.org/licenses/LICENSE-2.0
770
+ *
771
+ * Unless required by applicable law or agreed to in writing, software
772
+ * distributed under the License is distributed on an "AS IS" BASIS,
773
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
774
+ * See the License for the specific language governing permissions and
775
+ * limitations under the License.
776
+ */const Df="fcm_token_details_db",qO=5,jg="fcm_token_object_Store";async function VO(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(c=>c.name).includes(Df))return null;let t=null;return(await zl(Df,qO,{upgrade:async(s,o,c,p)=>{var x;if(o<2||!s.objectStoreNames.contains(jg))return;const w=p.objectStore(jg),D=await w.index("fcmSenderId").get(e);if(await w.clear(),!!D){if(o===2){const A=D;if(!A.auth||!A.p256dh||!A.endpoint)return;t={token:A.fcmToken,createTime:(x=A.createTime)!==null&&x!==void 0?x:Date.now(),subscriptionOptions:{auth:A.auth,p256dh:A.p256dh,endpoint:A.endpoint,swScope:A.swScope,vapidKey:typeof A.vapidKey=="string"?A.vapidKey:ui(A.vapidKey)}}}else if(o===3){const A=D;t={token:A.fcmToken,createTime:A.createTime,subscriptionOptions:{auth:ui(A.auth),p256dh:ui(A.p256dh),endpoint:A.endpoint,swScope:A.swScope,vapidKey:ui(A.vapidKey)}}}else if(o===4){const A=D;t={token:A.fcmToken,createTime:A.createTime,subscriptionOptions:{auth:ui(A.auth),p256dh:ui(A.p256dh),endpoint:A.endpoint,swScope:A.swScope,vapidKey:ui(A.vapidKey)}}}}}})).close(),await _f(Df),await _f("fcm_vapid_details_db"),await _f("undefined"),GO(t)?t:null}function GO(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
777
+ * @license
778
+ * Copyright 2019 Google LLC
779
+ *
780
+ * Licensed under the Apache License, Version 2.0 (the "License");
781
+ * you may not use this file except in compliance with the License.
782
+ * You may obtain a copy of the License at
783
+ *
784
+ * http://www.apache.org/licenses/LICENSE-2.0
785
+ *
786
+ * Unless required by applicable law or agreed to in writing, software
787
+ * distributed under the License is distributed on an "AS IS" BASIS,
788
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
789
+ * See the License for the specific language governing permissions and
790
+ * limitations under the License.
791
+ */const KO="firebase-messaging-database",ZO=1,ys="firebase-messaging-store";let Ef=null;function Kd(){return Ef||(Ef=zl(KO,ZO,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(ys)}}})),Ef}async function ay(e){const t=Xd(e),s=await(await Kd()).transaction(ys).objectStore(ys).get(t);if(s)return s;{const o=await VO(e.appConfig.senderId);if(o)return await Zd(e,o),o}}async function Zd(e,t){const r=Xd(e),o=(await Kd()).transaction(ys,"readwrite");return await o.objectStore(ys).put(t,r),await o.done,t}async function XO(e){const t=Xd(e),s=(await Kd()).transaction(ys,"readwrite");await s.objectStore(ys).delete(t),await s.done}function Xd({appConfig:e}){return e.appId}/**
792
+ * @license
793
+ * Copyright 2017 Google LLC
794
+ *
795
+ * Licensed under the Apache License, Version 2.0 (the "License");
796
+ * you may not use this file except in compliance with the License.
797
+ * You may obtain a copy of the License at
798
+ *
799
+ * http://www.apache.org/licenses/LICENSE-2.0
800
+ *
801
+ * Unless required by applicable law or agreed to in writing, software
802
+ * distributed under the License is distributed on an "AS IS" BASIS,
803
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
804
+ * See the License for the specific language governing permissions and
805
+ * limitations under the License.
806
+ */const JO={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},nn=new Ul("messaging","Messaging",JO);/**
807
+ * @license
808
+ * Copyright 2019 Google LLC
809
+ *
810
+ * Licensed under the Apache License, Version 2.0 (the "License");
811
+ * you may not use this file except in compliance with the License.
812
+ * You may obtain a copy of the License at
813
+ *
814
+ * http://www.apache.org/licenses/LICENSE-2.0
815
+ *
816
+ * Unless required by applicable law or agreed to in writing, software
817
+ * distributed under the License is distributed on an "AS IS" BASIS,
818
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
819
+ * See the License for the specific language governing permissions and
820
+ * limitations under the License.
821
+ */async function QO(e,t){const r=await Qd(e),s=uy(t),o={method:"POST",headers:r,body:JSON.stringify(s)};let c;try{c=await(await fetch(Jd(e.appConfig),o)).json()}catch(p){throw nn.create("token-subscribe-failed",{errorInfo:p==null?void 0:p.toString()})}if(c.error){const p=c.error.message;throw nn.create("token-subscribe-failed",{errorInfo:p})}if(!c.token)throw nn.create("token-subscribe-no-token");return c.token}async function eI(e,t){const r=await Qd(e),s=uy(t.subscriptionOptions),o={method:"PATCH",headers:r,body:JSON.stringify(s)};let c;try{c=await(await fetch(`${Jd(e.appConfig)}/${t.token}`,o)).json()}catch(p){throw nn.create("token-update-failed",{errorInfo:p==null?void 0:p.toString()})}if(c.error){const p=c.error.message;throw nn.create("token-update-failed",{errorInfo:p})}if(!c.token)throw nn.create("token-update-no-token");return c.token}async function oy(e,t){const s={method:"DELETE",headers:await Qd(e)};try{const c=await(await fetch(`${Jd(e.appConfig)}/${t}`,s)).json();if(c.error){const p=c.error.message;throw nn.create("token-unsubscribe-failed",{errorInfo:p})}}catch(o){throw nn.create("token-unsubscribe-failed",{errorInfo:o==null?void 0:o.toString()})}}function Jd({projectId:e}){return`${WO}/projects/${e}/registrations`}async function Qd({appConfig:e,installations:t}){const r=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${r}`})}function uy({p256dh:e,auth:t,endpoint:r,vapidKey:s}){const o={web:{endpoint:r,auth:t,p256dh:e}};return s!==iy&&(o.web.applicationPubKey=s),o}/**
822
+ * @license
823
+ * Copyright 2019 Google LLC
824
+ *
825
+ * Licensed under the Apache License, Version 2.0 (the "License");
826
+ * you may not use this file except in compliance with the License.
827
+ * You may obtain a copy of the License at
828
+ *
829
+ * http://www.apache.org/licenses/LICENSE-2.0
830
+ *
831
+ * Unless required by applicable law or agreed to in writing, software
832
+ * distributed under the License is distributed on an "AS IS" BASIS,
833
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
834
+ * See the License for the specific language governing permissions and
835
+ * limitations under the License.
836
+ */const tI=7*24*60*60*1e3;async function nI(e){const t=await sI(e.swRegistration,e.vapidKey),r={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ui(t.getKey("auth")),p256dh:ui(t.getKey("p256dh"))},s=await ay(e.firebaseDependencies);if(s){if(aI(s.subscriptionOptions,r))return Date.now()>=s.createTime+tI?iI(e,{token:s.token,createTime:Date.now(),subscriptionOptions:r}):s.token;try{await oy(e.firebaseDependencies,s.token)}catch(o){console.warn(o)}return $g(e.firebaseDependencies,r)}else return $g(e.firebaseDependencies,r)}async function rI(e){const t=await ay(e.firebaseDependencies);t&&(await oy(e.firebaseDependencies,t.token),await XO(e.firebaseDependencies));const r=await e.swRegistration.pushManager.getSubscription();return r?r.unsubscribe():!0}async function iI(e,t){try{const r=await eI(e.firebaseDependencies,t),s=Object.assign(Object.assign({},t),{token:r,createTime:Date.now()});return await Zd(e.firebaseDependencies,s),r}catch(r){throw await rI(e),r}}async function $g(e,t){const s={token:await QO(e,t),createTime:Date.now(),subscriptionOptions:t};return await Zd(e,s),s.token}async function sI(e,t){const r=await e.pushManager.getSubscription();return r||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:zO(t)})}function aI(e,t){const r=t.vapidKey===e.vapidKey,s=t.endpoint===e.endpoint,o=t.auth===e.auth,c=t.p256dh===e.p256dh;return r&&s&&o&&c}/**
837
+ * @license
838
+ * Copyright 2020 Google LLC
839
+ *
840
+ * Licensed under the Apache License, Version 2.0 (the "License");
841
+ * you may not use this file except in compliance with the License.
842
+ * You may obtain a copy of the License at
843
+ *
844
+ * http://www.apache.org/licenses/LICENSE-2.0
845
+ *
846
+ * Unless required by applicable law or agreed to in writing, software
847
+ * distributed under the License is distributed on an "AS IS" BASIS,
848
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
849
+ * See the License for the specific language governing permissions and
850
+ * limitations under the License.
851
+ */function Fg(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return oI(t,e),uI(t,e),lI(t,e),t}function oI(e,t){if(!t.notification)return;e.notification={};const r=t.notification.title;r&&(e.notification.title=r);const s=t.notification.body;s&&(e.notification.body=s);const o=t.notification.image;o&&(e.notification.image=o);const c=t.notification.icon;c&&(e.notification.icon=c)}function uI(e,t){t.data&&(e.data=t.data)}function lI(e,t){var r,s,o,c,p;if(!t.fcmOptions&&!(!((r=t.notification)===null||r===void 0)&&r.click_action))return;e.fcmOptions={};const x=(o=(s=t.fcmOptions)===null||s===void 0?void 0:s.link)!==null&&o!==void 0?o:(c=t.notification)===null||c===void 0?void 0:c.click_action;x&&(e.fcmOptions.link=x);const w=(p=t.fcmOptions)===null||p===void 0?void 0:p.analytics_label;w&&(e.fcmOptions.analyticsLabel=w)}/**
852
+ * @license
853
+ * Copyright 2019 Google LLC
854
+ *
855
+ * Licensed under the Apache License, Version 2.0 (the "License");
856
+ * you may not use this file except in compliance with the License.
857
+ * You may obtain a copy of the License at
858
+ *
859
+ * http://www.apache.org/licenses/LICENSE-2.0
860
+ *
861
+ * Unless required by applicable law or agreed to in writing, software
862
+ * distributed under the License is distributed on an "AS IS" BASIS,
863
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
864
+ * See the License for the specific language governing permissions and
865
+ * limitations under the License.
866
+ */function cI(e){return typeof e=="object"&&!!e&&sy in e}/**
867
+ * @license
868
+ * Copyright 2019 Google LLC
869
+ *
870
+ * Licensed under the Apache License, Version 2.0 (the "License");
871
+ * you may not use this file except in compliance with the License.
872
+ * You may obtain a copy of the License at
873
+ *
874
+ * http://www.apache.org/licenses/LICENSE-2.0
875
+ *
876
+ * Unless required by applicable law or agreed to in writing, software
877
+ * distributed under the License is distributed on an "AS IS" BASIS,
878
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
879
+ * See the License for the specific language governing permissions and
880
+ * limitations under the License.
881
+ */ly("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");ly("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function ly(e,t){const r=[];for(let s=0;s<e.length;s++)r.push(e.charAt(s)),s<t.length&&r.push(t.charAt(s));return r.join("")}/**
882
+ * @license
883
+ * Copyright 2019 Google LLC
884
+ *
885
+ * Licensed under the Apache License, Version 2.0 (the "License");
886
+ * you may not use this file except in compliance with the License.
887
+ * You may obtain a copy of the License at
888
+ *
889
+ * http://www.apache.org/licenses/LICENSE-2.0
890
+ *
891
+ * Unless required by applicable law or agreed to in writing, software
892
+ * distributed under the License is distributed on an "AS IS" BASIS,
893
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
894
+ * See the License for the specific language governing permissions and
895
+ * limitations under the License.
896
+ */function fI(e){if(!e||!e.options)throw Tf("App Configuration Object");if(!e.name)throw Tf("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:r}=e;for(const s of t)if(!r[s])throw Tf(s);return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}function Tf(e){return nn.create("missing-app-config-values",{valueName:e})}/**
897
+ * @license
898
+ * Copyright 2020 Google LLC
899
+ *
900
+ * Licensed under the Apache License, Version 2.0 (the "License");
901
+ * you may not use this file except in compliance with the License.
902
+ * You may obtain a copy of the License at
903
+ *
904
+ * http://www.apache.org/licenses/LICENSE-2.0
905
+ *
906
+ * Unless required by applicable law or agreed to in writing, software
907
+ * distributed under the License is distributed on an "AS IS" BASIS,
908
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
909
+ * See the License for the specific language governing permissions and
910
+ * limitations under the License.
911
+ */class dI{constructor(t,r,s){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const o=fI(t);this.firebaseDependencies={app:t,appConfig:o,installations:r,analyticsProvider:s}}_delete(){return Promise.resolve()}}/**
912
+ * @license
913
+ * Copyright 2020 Google LLC
914
+ *
915
+ * Licensed under the Apache License, Version 2.0 (the "License");
916
+ * you may not use this file except in compliance with the License.
917
+ * You may obtain a copy of the License at
918
+ *
919
+ * http://www.apache.org/licenses/LICENSE-2.0
920
+ *
921
+ * Unless required by applicable law or agreed to in writing, software
922
+ * distributed under the License is distributed on an "AS IS" BASIS,
923
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
924
+ * See the License for the specific language governing permissions and
925
+ * limitations under the License.
926
+ */async function hI(e){try{e.swRegistration=await navigator.serviceWorker.register(FO,{scope:YO}),e.swRegistration.update().catch(()=>{})}catch(t){throw nn.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
927
+ * @license
928
+ * Copyright 2020 Google LLC
929
+ *
930
+ * Licensed under the Apache License, Version 2.0 (the "License");
931
+ * you may not use this file except in compliance with the License.
932
+ * You may obtain a copy of the License at
933
+ *
934
+ * http://www.apache.org/licenses/LICENSE-2.0
935
+ *
936
+ * Unless required by applicable law or agreed to in writing, software
937
+ * distributed under the License is distributed on an "AS IS" BASIS,
938
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
939
+ * See the License for the specific language governing permissions and
940
+ * limitations under the License.
941
+ */async function pI(e,t){if(!t&&!e.swRegistration&&await hI(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw nn.create("invalid-sw-registration");e.swRegistration=t}}/**
942
+ * @license
943
+ * Copyright 2020 Google LLC
944
+ *
945
+ * Licensed under the Apache License, Version 2.0 (the "License");
946
+ * you may not use this file except in compliance with the License.
947
+ * You may obtain a copy of the License at
948
+ *
949
+ * http://www.apache.org/licenses/LICENSE-2.0
950
+ *
951
+ * Unless required by applicable law or agreed to in writing, software
952
+ * distributed under the License is distributed on an "AS IS" BASIS,
953
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
954
+ * See the License for the specific language governing permissions and
955
+ * limitations under the License.
956
+ */async function gI(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=iy)}/**
957
+ * @license
958
+ * Copyright 2020 Google LLC
959
+ *
960
+ * Licensed under the Apache License, Version 2.0 (the "License");
961
+ * you may not use this file except in compliance with the License.
962
+ * You may obtain a copy of the License at
963
+ *
964
+ * http://www.apache.org/licenses/LICENSE-2.0
965
+ *
966
+ * Unless required by applicable law or agreed to in writing, software
967
+ * distributed under the License is distributed on an "AS IS" BASIS,
968
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
969
+ * See the License for the specific language governing permissions and
970
+ * limitations under the License.
971
+ */async function cy(e,t){if(!navigator)throw nn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw nn.create("permission-blocked");return await gI(e,t==null?void 0:t.vapidKey),await pI(e,t==null?void 0:t.serviceWorkerRegistration),nI(e)}/**
972
+ * @license
973
+ * Copyright 2019 Google LLC
974
+ *
975
+ * Licensed under the Apache License, Version 2.0 (the "License");
976
+ * you may not use this file except in compliance with the License.
977
+ * You may obtain a copy of the License at
978
+ *
979
+ * http://www.apache.org/licenses/LICENSE-2.0
980
+ *
981
+ * Unless required by applicable law or agreed to in writing, software
982
+ * distributed under the License is distributed on an "AS IS" BASIS,
983
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
984
+ * See the License for the specific language governing permissions and
985
+ * limitations under the License.
986
+ */async function mI(e,t,r){const s=yI(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(s,{message_id:r[sy],message_name:r[BO],message_time:r[HO],message_device_time:Math.floor(Date.now()/1e3)})}function yI(e){switch(e){case so.NOTIFICATION_CLICKED:return"notification_open";case so.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
987
+ * @license
988
+ * Copyright 2017 Google LLC
989
+ *
990
+ * Licensed under the Apache License, Version 2.0 (the "License");
991
+ * you may not use this file except in compliance with the License.
992
+ * You may obtain a copy of the License at
993
+ *
994
+ * http://www.apache.org/licenses/LICENSE-2.0
995
+ *
996
+ * Unless required by applicable law or agreed to in writing, software
997
+ * distributed under the License is distributed on an "AS IS" BASIS,
998
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
999
+ * See the License for the specific language governing permissions and
1000
+ * limitations under the License.
1001
+ */async function vI(e,t){const r=t.data;if(!r.isFirebaseMessaging)return;e.onMessageHandler&&r.messageType===so.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(Fg(r)):e.onMessageHandler.next(Fg(r)));const s=r.data;cI(s)&&s[UO]==="1"&&await mI(e,r.messageType,s)}const Yg="@firebase/messaging",Wg="0.12.6";/**
1002
+ * @license
1003
+ * Copyright 2020 Google LLC
1004
+ *
1005
+ * Licensed under the Apache License, Version 2.0 (the "License");
1006
+ * you may not use this file except in compliance with the License.
1007
+ * You may obtain a copy of the License at
1008
+ *
1009
+ * http://www.apache.org/licenses/LICENSE-2.0
1010
+ *
1011
+ * Unless required by applicable law or agreed to in writing, software
1012
+ * distributed under the License is distributed on an "AS IS" BASIS,
1013
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1014
+ * See the License for the specific language governing permissions and
1015
+ * limitations under the License.
1016
+ */const bI=e=>{const t=new dI(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",r=>vI(t,r)),t},xI=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:s=>cy(t,s)}};function _I(){ps(new Bi("messaging",bI,"PUBLIC")),ps(new Bi("messaging-internal",xI,"PRIVATE")),Wi(Yg,Wg),Wi(Yg,Wg,"esm2017")}/**
1017
+ * @license
1018
+ * Copyright 2020 Google LLC
1019
+ *
1020
+ * Licensed under the Apache License, Version 2.0 (the "License");
1021
+ * you may not use this file except in compliance with the License.
1022
+ * You may obtain a copy of the License at
1023
+ *
1024
+ * http://www.apache.org/licenses/LICENSE-2.0
1025
+ *
1026
+ * Unless required by applicable law or agreed to in writing, software
1027
+ * distributed under the License is distributed on an "AS IS" BASIS,
1028
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1029
+ * See the License for the specific language governing permissions and
1030
+ * limitations under the License.
1031
+ */async function wI(){try{await N0()}catch{return!1}return typeof window<"u"&&P0()&&HR()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
1032
+ * @license
1033
+ * Copyright 2020 Google LLC
1034
+ *
1035
+ * Licensed under the Apache License, Version 2.0 (the "License");
1036
+ * you may not use this file except in compliance with the License.
1037
+ * You may obtain a copy of the License at
1038
+ *
1039
+ * http://www.apache.org/licenses/LICENSE-2.0
1040
+ *
1041
+ * Unless required by applicable law or agreed to in writing, software
1042
+ * distributed under the License is distributed on an "AS IS" BASIS,
1043
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1044
+ * See the License for the specific language governing permissions and
1045
+ * limitations under the License.
1046
+ */function SI(e,t){if(!navigator)throw nn.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
1047
+ * @license
1048
+ * Copyright 2017 Google LLC
1049
+ *
1050
+ * Licensed under the Apache License, Version 2.0 (the "License");
1051
+ * you may not use this file except in compliance with the License.
1052
+ * You may obtain a copy of the License at
1053
+ *
1054
+ * http://www.apache.org/licenses/LICENSE-2.0
1055
+ *
1056
+ * Unless required by applicable law or agreed to in writing, software
1057
+ * distributed under the License is distributed on an "AS IS" BASIS,
1058
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1059
+ * See the License for the specific language governing permissions and
1060
+ * limitations under the License.
1061
+ */function fy(e=BA()){return wI().then(t=>{if(!t)throw nn.create("unsupported-browser")},t=>{throw nn.create("indexed-db-unsupported")}),Hd(Wd(e),"messaging").getImmediate()}async function kI(e,t){return e=Wd(e),cy(e,t)}function CI(e,t){return e=Wd(e),SI(e,t)}_I();const DI=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const r=fy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));kI(r,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async s=>{var o,c;if(s){console.log("current token for client: ",s);try{const p="/notification-management/api/v1/notifications/registrations",x=e.baseUrl+p;await ce.axios.post(x,{deviceToken:s},{withCredentials:!0})}catch(p){console.log(p),ce.pushError(((c=(o=p.response)==null?void 0:o.data)==null?void 0:c.errorMessage)||"Have error when get notification list")}}else console.log("No registration token available. Request permission to generate one.")}).catch(s=>{console.log("An error occurred while retrieving token. ",s)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},EI=new BroadcastChannel("my-channel");EI.onmessage=e=>{console.log("Broadcast chanel message",e)};const TI=e=>new Promise(t=>{const r=fy(Ud({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));CI(r,s=>{console.log("payload",s),t(s)})}),os={"subscription-diaglog":"_subscription-diaglog_12x9u_2","subscription-container":"_subscription-container_12x9u_15","subscription-title":"_subscription-title_12x9u_24","subscription-text":"_subscription-text_12x9u_33","subscription-btn__container":"_subscription-btn__container_12x9u_37","btn-success":"_btn-success_12x9u_43","btn-cancel":"_btn-cancel_12x9u_44"},MI=["granted","denied"],RI=e=>{const[t,r]=T.reactExports.useState(!1),s=()=>{Notification.requestPermission(function(c){c==="granted"&&DI(e),MI.includes(c)&&r(!0)})},o=()=>{r(!0)};return T.jsxRuntimeExports.jsx(T.jsxRuntimeExports.Fragment,{children:t?"":T.jsxRuntimeExports.jsx("div",{className:os["subscription-diaglog"],children:T.jsxRuntimeExports.jsxs("div",{className:os["subscription-container"],children:[T.jsxRuntimeExports.jsx("h4",{className:os["subscription-title"],children:"Notification"}),T.jsxRuntimeExports.jsx("p",{className:os["subscription-text"],children:"Option to receive notifications about the latest information. You can turn them off at any time."}),T.jsxRuntimeExports.jsxs("div",{className:os["subscription-btn__container"],children:[T.jsxRuntimeExports.jsx("button",{className:os["btn-cancel"],onClick:o,children:"Not now"}),T.jsxRuntimeExports.jsx("button",{className:os["btn-success"],onClick:s,children:"Turn on"})]})]})})})},Au={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"},AI=e=>{const[t,r]=T.reactExports.useState({userName:"",message:"",context:""}),{setNotiData:s}=T.reactExports.useContext(Xs);function o(){return T.jsxRuntimeExports.jsx("div",{className:Au["notification-massage_container"],children:T.jsxRuntimeExports.jsxs("div",{className:Au["notification-massage_content"],children:[T.jsxRuntimeExports.jsx("h6",{className:Au["notification-name"],children:t==null?void 0:t.userName}),T.jsxRuntimeExports.jsxs("div",{className:Au["notification-message_service"],children:[T.jsxRuntimeExports.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),T.jsxRuntimeExports.jsx("span",{children:t==null?void 0:t.context})]})]})})}return T.reactExports.useEffect(()=>{t&&Notification.permission==="granted"&&t.userName&&t.message&&t.context&&ce.notify(T.jsxRuntimeExports.jsx(o,{}))},[t]),TI(e).then(c=>{var p,x,w;console.log(c),r({userName:(p=c==null?void 0:c.data)==null?void 0:p.userName,message:(x=c==null?void 0:c.data)==null?void 0:x.message,context:(w=c==null?void 0:c.data)==null?void 0:w.context}),s(D=>{var A;return{...D,unread:{...D.unread,total:((A=D.unread)==null?void 0:A.total)+1}}})}).catch(c=>console.log("failed: ",c)),T.jsxRuntimeExports.jsx("div",{children:"Notification"in window&&Notification.permission==="default"?T.jsxRuntimeExports.jsx(RI,{...e}):""})},dy=({baseUrl:e,notiPath:t,setNotiData:r})=>async()=>{const c=e+(t||"/notification-management/api/v1/notifications"),p=await ce.axios.get(c,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0}),x=await ce.axios.get(c,{params:{filter:{notificationFilterType:"unread"}},withCredentials:!0});Promise.all([p,x]).then(w=>{var D,A,F,B;console.log("result: "+w),r({all:{rows:(D=w[0].data)==null?void 0:D.rows,total:(A=w[0].data)==null?void 0:A.total},unread:{rows:(F=w[1].data)==null?void 0:F.rows,total:(B=w[1].data)==null?void 0:B.total}})})},OI=({baseUrl:e,notiPath:t})=>{var F,B,K,z;const{setShowModalFalse:r}=T.reactExports.useContext(Xs),{notidata:s,setNotiData:o}=T.reactExports.useContext(Xs);console.log(s);const[c,p]=T.reactExports.useState("all"),x=dy({baseUrl:e,notiPath:t,setNotiData:o}),w=async()=>{var $,te;try{const pe=e+(t||"/notification-management/api/v1/notifications");await ce.axios.put(pe,{withCredentials:!0})}catch(H){console.log(H),ce.pushError(((te=($=H.response)==null?void 0:$.data)==null?void 0:te.errorMessage)||"Have error when get notification list")}await x()},D=async($,te)=>{var H,pe;try{const me=t||`/notification-management/api/v1/notifications/${$}`,ye=e+me;await ce.axios.put(ye,{isRead:te},{withCredentials:!0})}catch(me){ce.pushError(((pe=(H=me.response)==null?void 0:H.data)==null?void 0:pe.errorMessage)||"Have error when get notification list")}await x()},A=[{id:"all",tabTitle:`All (${((F=s==null?void 0:s.all)==null?void 0:F.total)||0})`,children:T.jsxRuntimeExports.jsx(Kp,{notidata:((B=s==null?void 0:s.all)==null?void 0:B.rows)||[],handleUpdateRead:D,handleUpdateReadAll:w})},{id:"unread",tabTitle:`Unread (${((K=s==null?void 0:s.unread)==null?void 0:K.total)||0})`,children:T.jsxRuntimeExports.jsx(Kp,{notidata:((z=s==null?void 0:s.unread)==null?void 0:z.rows)||[],handleUpdateRead:D,handleUpdateReadAll:w})}];return T.jsxRuntimeExports.jsx(T.jsxRuntimeExports.Fragment,{children:T.jsxRuntimeExports.jsx("div",{style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden"},children:T.jsxRuntimeExports.jsxs("div",{className:"list-content",children:[T.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[T.jsxRuntimeExports.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),T.jsxRuntimeExports.jsx("button",{onClick:r,children:T.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsxRuntimeExports.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),T.jsxRuntimeExports.jsx(xw,{tabs:A,setCurrentTab:p,currentTab:c})]})})})};function II({primaryColor:e="#009d4f",baseUrl:t,notiPath:r}){var D,A;const{isOpen:s,toggleOpen:o}=T.reactExports.useContext(Xs),{notidata:c,setNotiData:p}=T.reactExports.useContext(Xs),x=dy({baseUrl:t,notiPath:r,setNotiData:p}),w=async()=>{var F,B;try{await x()}catch(K){ce.pushError(((B=(F=K.response)==null?void 0:F.data)==null?void 0:B.errorMessage)||"Have error when get notification list")}};return T.reactExports.useEffect(()=>{w()},[s]),T.jsxRuntimeExports.jsxs("div",{children:[T.jsxRuntimeExports.jsxs("div",{style:{position:"relative"},children:[T.jsxRuntimeExports.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,style:{cursor:"pointer"},children:[T.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),T.jsxRuntimeExports.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&T.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",background:`${ce.color.dangerDark}`,width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center"},className:"notification-badge",children:((D=c==null?void 0:c.unread)==null?void 0:D.total)>9?"9+":`${(A=c==null?void 0:c.unread)==null?void 0:A.total}`})]}),!s&&T.jsxRuntimeExports.jsx(OI,{baseUrl:t,notiPath:r})]})}const PI=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
1062
+ `,NI=`.tab-title{min-width:90px;padding:5px 16px;font-size:14px;font-weight:500;color:#c5c5c5;transition:all .3s ease-in-out;position:relative}.tab-title.is-active{color:#2e7d32}.tab-title.is-active:before{transition:all .3s ease-in-out;position:absolute;content:"";width:100%;height:100%;top:0;left:0;border-bottom:2px solid #2E7D32}.tab-content{padding:16px 0}
1063
+ `,LI=`:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notitification-item__container:not(:last-child):before{position:absolute;content:"";width:100%;bottom:-5px;left:0;border:1px solid #FAFAFA}.notitification-item__container:hover:before{opacity:1}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:60%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
1064
+ `,jI=`._notification-massage_container_ql4az_1{background:#fff;padding:0 64px 0 84px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif}._notification-massage_container_ql4az_1:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}._notification-name_ql4az_18{font-weight:500;font-size:14px}._notification-message_service_ql4az_23{font-size:12px}._notification-message_button-close_ql4az_27{position:absolute;top:12px;right:24px;width:24px;height:24px}
1065
+ `,$I=`._subscription-diaglog_12x9u_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_12x9u_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff}._subscription-title_12x9u_24{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_12x9u_24,._subscription-text_12x9u_33{margin-bottom:24px}._subscription-btn__container_12x9u_37{display:flex;justify-content:space-between;align-items:center}._btn-success_12x9u_43,._btn-cancel_12x9u_44{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px}._btn-cancel_12x9u_44{background-color:#ddd}._btn-success_12x9u_43{background-color:#93d500}
1066
+ `;function FI(e){return T.jsxRuntimeExports.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[T.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[T.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),T.jsxRuntimeExports.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),T.jsxRuntimeExports.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),T.jsxRuntimeExports.jsx("defs",{children:T.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16865_28134",children:T.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function YI(e){return T.jsxRuntimeExports.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[T.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[T.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),T.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),T.jsxRuntimeExports.jsx("defs",{children:T.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16886_62505",children:T.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function hy({logo:e,user:t,baseUrl:r,notiPath:s,style:o,classNames:c="",customColors:p,notiprops:x}){const w=e||"/public/assets/icons/logo-header.png",D={...o,color:(p==null?void 0:p.color)||"black",backgroundColor:(p==null?void 0:p.bgColor)||"black"},[A,F]=T.reactExports.useState(!1),B=()=>{window.location.href=`${r}/authentication/logout?callbackUrl=${window.location.href}`};return T.jsxRuntimeExports.jsxs(ce.ShadowDomWrapper,{styles:[PI,NI,LI,jI,$I],style:{zIndex:1202},children:[T.jsxRuntimeExports.jsx("nav",{className:`navbar ${c}`,style:p?D:o,children:T.jsxRuntimeExports.jsxs("div",{className:"navbar-container",children:[T.jsxRuntimeExports.jsx("div",{className:"logo-container",children:T.jsxRuntimeExports.jsx("img",{src:w,alt:"logo-header"})}),T.jsxRuntimeExports.jsxs("div",{className:"right-side-container",children:[T.jsxRuntimeExports.jsx("span",{children:T.jsxRuntimeExports.jsxs(SD,{children:[T.jsxRuntimeExports.jsx(AI,{baseUrl:x.baseUrl,path:x.path,apiKey:x.apiKey,authDomain:x.authDomain,projectId:x.projectId,storageBucket:x.storageBucket,messagingSenderId:x.messagingSenderId,appId:x.appId,measurementId:x.measurementId,vapidKey:x.vapidKey}),T.jsxRuntimeExports.jsx(II,{primaryColor:p==null?void 0:p.primaryColor,baseUrl:r,notiPath:s})]})}),T.jsxRuntimeExports.jsx("span",{className:"cursor-pointer",children:T.jsxRuntimeExports.jsx(bw,{primaryColor:p==null?void 0:p.primaryColor})}),T.jsxRuntimeExports.jsx(WI,{primaryColor:p==null?void 0:p.primaryColor}),T.jsxRuntimeExports.jsxs("div",{className:"userContainer",children:[T.jsxRuntimeExports.jsx(BI,{primaryColor:p==null?void 0:p.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,userName:t==null?void 0:t.firstName,setShowConfirmModal:F}),T.jsxRuntimeExports.jsx("p",{className:"userFullName",children:`${(t==null?void 0:t.firstName)||"Unknown"} ${(t==null?void 0:t.lastName)||"User"}`})]})]})]})}),T.jsxRuntimeExports.jsx(ce.LogoutConfirmModal,{isOpen:A,onClose:()=>F(!1),onConfirm:B})]})}function WI({primaryColor:e="#009d4f"}){var x;const[t,r]=T.reactExports.useState(!1),s=T.reactExports.useRef(null),o=[{value:ff.Language.en,element:T.jsxRuntimeExports.jsx(FI,{})},{value:ff.Language.de,element:T.jsxRuntimeExports.jsx(YI,{})}],{language:c,setLanguage:p}=TR();return T.reactExports.useEffect(()=>{const w=D=>{s.current&&!s.current.contains(D.target)&&r(!1)};return document.addEventListener("click",w,!0),()=>{document.removeEventListener("click",w,!0)}},[s]),T.jsxRuntimeExports.jsxs("div",{className:"languageDropdownContainer",style:{position:"relative"},children:[T.jsxRuntimeExports.jsxs("div",{className:"languageDropdown",onClick:()=>{r(!t)},ref:s,children:[(x=o.find(w=>w.value==c))==null?void 0:x.element,T.jsxRuntimeExports.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsxRuntimeExports.jsx("path",{d:"M4.42724 7.92678L7.82372 11.3232C7.92135 11.4209 8.07964 11.4209 8.17727 11.3232L11.5737 7.92678C11.7312 7.76928 11.6197 7.5 11.3969 7.5H4.60402C4.38129 7.5 4.26975 7.76929 4.42724 7.92678Z",fill:"#85858A"})})]}),T.jsxRuntimeExports.jsx("div",{className:"dropdownListLanguage",style:{display:t?"block":"none",position:"absolute",top:"53px",right:"0px",padding:"8px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",backgroundColor:"#fafafa"},children:o.filter(w=>w.value!==c).map(w=>T.jsxRuntimeExports.jsx("div",{className:"languageItem",style:{width:"100px",padding:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onMouseEnter:D=>{D.currentTarget.style.backgroundColor=e,D.currentTarget.style.transition="background-color 0.3s ease-in-out"},onMouseLeave:D=>{D.currentTarget.style.backgroundColor="#fafafa",D.currentTarget.style.transition="background-color 0.3s ease-out"},onClick:()=>{p(w.value),localStorage.setItem("language",w.value),ff.instance.changeLanguage(w.value),r(!1),window.location.reload()},children:w.element}))})]})}function BI({avatarUrl:e,userName:t,setShowConfirmModal:r,primaryColor:s="#009d4f"}){const[o,c]=T.reactExports.useState(!1),p=T.reactExports.useRef(null),x=T.reactExports.useRef(null),[w,D]=T.reactExports.useState(!1),[A,F]=T.reactExports.useState(!1),B={backgroundColor:w?s:"transparent"},K={backgroundColor:A?s:"transparent"};return T.reactExports.useEffect(()=>{const z=$=>{p.current&&!p.current.contains($.target)&&c(!1),x.current&&!x.current.contains($.target)&&c(!1)};return document.addEventListener("click",z,!0),()=>{document.removeEventListener("click",z,!0)}},[p]),T.jsxRuntimeExports.jsx(T.jsxRuntimeExports.Fragment,{children:T.jsxRuntimeExports.jsxs("div",{style:{position:"relative"},children:[e?T.jsxRuntimeExports.jsx("img",{onClick:()=>c(!o),ref:p,alt:"user avatar",className:"userAvatar",src:e}):T.jsxRuntimeExports.jsx("div",{onClick:()=>c(!o),ref:p,className:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""}),T.jsxRuntimeExports.jsx("div",{style:{display:o?"block":"none"},className:"avartarDropdownMenu",ref:x,children:T.jsxRuntimeExports.jsxs("ul",{children:[T.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),style:K,className:"avatar-dropdown-item",children:"Profile"}),T.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),style:B,onClick:()=>r(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}{const e=T.s(hy,{props:{logo:"string",user:"json",baseUrl:"string",notiPath:"string",classNames:"string",style:"json",customColors:"json",notiprops:"json"},shadow:"open"});customElements.define("global-topbar",e)}exports.HasPermission=E0;exports.TopBar=hy;exports.getUseHasPermission=D0;