@ukpc-lib/react 0.2.22 → 0.2.26

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 (39) hide show
  1. package/dist/application.d.ts +1 -0
  2. package/dist/components/MultiProvider.d.ts +6 -0
  3. package/dist/components/Toast/ToastConfigNotification.d.ts +2 -0
  4. package/dist/components/Toast/index.d.ts +3 -1
  5. package/dist/components/Topbar/index.d.ts +3 -1
  6. package/dist/components/index.cjs +28 -26
  7. package/dist/components/index.js +1446 -1422
  8. package/dist/components/main.d.ts +5 -4
  9. package/dist/index.module-160774a9.cjs +1087 -0
  10. package/dist/index.module-4e7900e2.js +25562 -0
  11. package/dist/main.d.ts +1 -0
  12. package/dist/share/index.cjs +1 -1
  13. package/dist/share/index.js +7 -7
  14. package/dist/theme/Colors.d.ts +33 -0
  15. package/dist/theme/SaasThemeProvider.d.ts +2 -0
  16. package/dist/theme/Theme.d.ts +21 -0
  17. package/dist/theme/index.cjs +1 -1
  18. package/dist/theme/index.d.ts +3 -0
  19. package/dist/theme/index.js +7 -6
  20. package/dist/translations/config.d.ts +7 -0
  21. package/dist/web-components/global-menu.d.ts +1 -0
  22. package/dist/web-components/global-topbar.d.ts +1 -0
  23. package/dist/web-components/has-permission.d.ts +1 -0
  24. package/dist/web-components/index.d.ts +2 -0
  25. package/package.json +5 -3
  26. package/web-components-bundle/global-menu/index.cjs +1 -1
  27. package/web-components-bundle/global-menu/index.js +1 -1
  28. package/web-components-bundle/global-topbar/index.cjs +1 -1
  29. package/web-components-bundle/global-topbar/index.js +2 -2
  30. package/web-components-bundle/has-permission/index.cjs +1 -1
  31. package/web-components-bundle/has-permission/index.js +2 -2
  32. package/web-components-bundle/index-04dc6603.cjs +1067 -0
  33. package/web-components-bundle/{index-200424a6.js → index-a16031d2.js} +1367 -1327
  34. package/web-components-bundle/index-aff1e7a4.js +21431 -0
  35. package/web-components-bundle/{index-661a7bdb.cjs → index-ea3fddce.cjs} +26 -26
  36. package/dist/index.module-a18bd948.js +0 -25158
  37. package/dist/index.module-eaf7a821.cjs +0 -1086
  38. package/web-components-bundle/index-2c1ba689.cjs +0 -884
  39. package/web-components-bundle/index-8d8b181c.js +0 -20303
@@ -0,0 +1,1067 @@
1
+ "use strict";const C=require("./index-ea3fddce.cjs");function AS(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(i,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Hm(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Hm(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Xn(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Hm(e))&&(i&&(i+=" "),i+=t);return i}function MS({primaryColor:e="#009d4f"}){return C.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[C.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"}),C.jsxRuntimeExports.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),C.jsxRuntimeExports.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),C.jsxRuntimeExports.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const PS=e=>{const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return C.jsxRuntimeExports.jsxs("div",{className:"tab-container",children:[C.jsxRuntimeExports.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${C.color.grey200}`},className:"tab-container__title",children:t.map((i,a)=>C.jsxRuntimeExports.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},a))}),C.jsxRuntimeExports.jsx("div",{className:"tab-content",children:t.map((i,a)=>C.jsxRuntimeExports.jsx("div",{children:e.currentTab===`${i.id}`&&C.jsxRuntimeExports.jsx("div",{children:i.children})},a))})]})};//! moment.js
2
+ //! version : 2.30.1
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+ var Ym;function pe(){return Ym.apply(null,arguments)}function IS(e){Ym=e}function mr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ps(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function et(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Cd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(et(e,t))return!1;return!0}function Sn(e){return e===void 0}function mi(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function xo(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wm(e,t){var n=[],i,a=e.length;for(i=0;i<a;++i)n.push(t(e[i],i));return n}function Fi(e,t){for(var n in t)et(t,n)&&(e[n]=t[n]);return et(t,"toString")&&(e.toString=t.toString),et(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Br(e,t,n,i){return dy(e,t,n,i,!0).utc()}function LS(){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 Be(e){return e._pf==null&&(e._pf=LS()),e._pf}var Zf;Array.prototype.some?Zf=Array.prototype.some:Zf=function(e){var t=Object(this),n=t.length>>>0,i;for(i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Ed(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=Be(e),n=Zf.call(t.parsedDateParts,function(a){return a!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function ml(e){var t=Br(NaN);return e!=null?Fi(Be(t),e):Be(t).userInvalidated=!0,t}var yg=pe.momentProperties=[],Af=!1;function Dd(e,t){var n,i,a,u=yg.length;if(Sn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Sn(t._i)||(e._i=t._i),Sn(t._f)||(e._f=t._f),Sn(t._l)||(e._l=t._l),Sn(t._strict)||(e._strict=t._strict),Sn(t._tzm)||(e._tzm=t._tzm),Sn(t._isUTC)||(e._isUTC=t._isUTC),Sn(t._offset)||(e._offset=t._offset),Sn(t._pf)||(e._pf=Be(t)),Sn(t._locale)||(e._locale=t._locale),u>0)for(n=0;n<u;n++)i=yg[n],a=t[i],Sn(a)||(e[i]=a);return e}function wo(e){Dd(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Af===!1&&(Af=!0,pe.updateOffset(this),Af=!1)}function yr(e){return e instanceof wo||e!=null&&e._isAMomentObject!=null}function Um(e){pe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function tr(e,t){var n=!0;return Fi(function(){if(pe.deprecationHandler!=null&&pe.deprecationHandler(null,e),n){var i=[],a,u,f,m=arguments.length;for(u=0;u<m;u++){if(a="",typeof arguments[u]=="object"){a+=`
7
+ [`+u+"] ";for(f in arguments[0])et(arguments[0],f)&&(a+=f+": "+arguments[0][f]+", ");a=a.slice(0,-2)}else a=arguments[u];i.push(a)}Um(e+`
8
+ Arguments: `+Array.prototype.slice.call(i).join("")+`
9
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var vg={};function qm(e,t){pe.deprecationHandler!=null&&pe.deprecationHandler(e,t),vg[e]||(Um(t),vg[e]=!0)}pe.suppressDeprecationWarnings=!1;pe.deprecationHandler=null;function Hr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function NS(e){var t,n;for(n in e)et(e,n)&&(t=e[n],Hr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Jf(e,t){var n=Fi({},e),i;for(i in t)et(t,i)&&(ps(e[i])&&ps(t[i])?(n[i]={},Fi(n[i],e[i]),Fi(n[i],t[i])):t[i]!=null?n[i]=t[i]:delete n[i]);for(i in e)et(e,i)&&!et(t,i)&&ps(e[i])&&(n[i]=Fi({},n[i]));return n}function Td(e){e!=null&&this.set(e)}var Qf;Object.keys?Qf=Object.keys:Qf=function(e){var t,n=[];for(t in e)et(e,t)&&n.push(t);return n};var jS={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $S(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Hr(i)?i.call(t,n):i}function Fr(e,t,n){var i=""+Math.abs(e),a=t-i.length,u=e>=0;return(u?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var Od=/(\[[^\[]*\])|(\\)?([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,Fu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Mf={},Zs={};function Se(e,t,n,i){var a=i;typeof i=="string"&&(a=function(){return this[i]()}),e&&(Zs[e]=a),t&&(Zs[t[0]]=function(){return Fr(a.apply(this,arguments),t[1],t[2])}),n&&(Zs[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function FS(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function BS(e){var t=e.match(Od),n,i;for(n=0,i=t.length;n<i;n++)Zs[t[n]]?t[n]=Zs[t[n]]:t[n]=FS(t[n]);return function(a){var u="",f;for(f=0;f<i;f++)u+=Hr(t[f])?t[f].call(a,e):t[f];return u}}function Vu(e,t){return e.isValid()?(t=zm(t,e.localeData()),Mf[t]=Mf[t]||BS(t),Mf[t](e)):e.localeData().invalidDate()}function zm(e,t){var n=5;function i(a){return t.longDateFormat(a)||a}for(Fu.lastIndex=0;n>=0&&Fu.test(e);)e=e.replace(Fu,i),Fu.lastIndex=0,n-=1;return e}var HS={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 YS(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Od).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var WS="Invalid date";function US(){return this._invalidDate}var qS="%d",zS=/\d{1,2}/;function VS(e){return this._ordinal.replace("%d",e)}var GS={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 KS(e,t,n,i){var a=this._relativeTime[n];return Hr(a)?a(e,t,n,i):a.replace(/%d/i,e)}function XS(e,t){var n=this._relativeTime[e>0?"future":"past"];return Hr(n)?n(t):n.replace(/%s/i,t)}var bg={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"?bg[e]||bg[e.toLowerCase()]:void 0}function Rd(e){var t={},n,i;for(i in e)et(e,i)&&(n=nr(i),n&&(t[n]=e[i]));return t}var ZS={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 JS(e){var t=[],n;for(n in e)et(e,n)&&t.push({unit:n,priority:ZS[n]});return t.sort(function(i,a){return i.priority-a.priority}),t}var Vm=/\d/,Nn=/\d\d/,Gm=/\d{3}/,Ad=/\d{4}/,yl=/[+-]?\d{6}/,gt=/\d\d?/,Km=/\d\d\d\d?/,Xm=/\d\d\d\d\d\d?/,vl=/\d{1,3}/,Md=/\d{1,4}/,bl=/[+-]?\d{1,6}/,ia=/\d+/,xl=/[+-]?\d+/,QS=/Z|[+-]\d\d:?\d\d/gi,wl=/Z|[+-]\d\d(?::?\d\d)?/gi,ek=/[+-]?\d+(\.\d{1,3})?/,_o=/[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,sa=/^[1-9]\d?/,Pd=/^([1-9]\d|\d)/,tl;tl={};function xe(e,t,n){tl[e]=Hr(t)?t:function(i,a){return i&&n?n:t}}function tk(e,t){return et(tl,e)?tl[e](t._strict,t._locale):new RegExp(nk(e))}function nk(e){return di(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,i,a,u){return n||i||a||u}))}function di(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Jn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ke(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Jn(t)),n}var ed={};function ct(e,t){var n,i=t,a;for(typeof e=="string"&&(e=[e]),mi(t)&&(i=function(u,f){f[t]=Ke(u)}),a=e.length,n=0;n<a;n++)ed[e[n]]=i}function So(e,t){ct(e,function(n,i,a,u){a._w=a._w||{},t(n,a._w,a,u)})}function rk(e,t,n){t!=null&&et(ed,e)&&ed[e](t,n._a,n,e)}function _l(e){return e%4===0&&e%100!==0||e%400===0}var nn=0,ci=1,Ir=2,Nt=3,gr=4,fi=5,fs=6,ik=7,sk=8;Se("Y",0,0,function(){var e=this.year();return e<=9999?Fr(e,4):"+"+e});Se(0,["YY",2],0,function(){return this.year()%100});Se(0,["YYYY",4],0,"year");Se(0,["YYYYY",5],0,"year");Se(0,["YYYYYY",6,!0],0,"year");xe("Y",xl);xe("YY",gt,Nn);xe("YYYY",Md,Ad);xe("YYYYY",bl,yl);xe("YYYYYY",bl,yl);ct(["YYYYY","YYYYYY"],nn);ct("YYYY",function(e,t){t[nn]=e.length===2?pe.parseTwoDigitYear(e):Ke(e)});ct("YY",function(e,t){t[nn]=pe.parseTwoDigitYear(e)});ct("Y",function(e,t){t[nn]=parseInt(e,10)});function to(e){return _l(e)?366:365}pe.parseTwoDigitYear=function(e){return Ke(e)+(Ke(e)>68?1900:2e3)};var Zm=aa("FullYear",!0);function ak(){return _l(this.year())}function aa(e,t){return function(n){return n!=null?(Jm(this,e,n),pe.updateOffset(this,t),this):io(this,e)}}function io(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Jm(e,t,n){var i,a,u,f,m;if(!(!e.isValid()||isNaN(n))){switch(i=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(a?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(a?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(a?i.setUTCHours(n):i.setHours(n));case"Date":return void(a?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}u=n,f=e.month(),m=e.date(),m=m===29&&f===1&&!_l(u)?28:m,a?i.setUTCFullYear(u,f,m):i.setFullYear(u,f,m)}}function ok(e){return e=nr(e),Hr(this[e])?this[e]():this}function uk(e,t){if(typeof e=="object"){e=Rd(e);var n=JS(e),i,a=n.length;for(i=0;i<a;i++)this[n[i].unit](e[n[i].unit])}else if(e=nr(e),Hr(this[e]))return this[e](t);return this}function lk(e,t){return(e%t+t)%t}var Tt;Array.prototype.indexOf?Tt=Array.prototype.indexOf:Tt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Id(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=lk(t,12);return e+=(t-n)/12,n===1?_l(e)?29:28:31-n%7%2}Se("M",["MM",2],"Mo",function(){return this.month()+1});Se("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Se("MMMM",0,0,function(e){return this.localeData().months(this,e)});xe("M",gt,sa);xe("MM",gt,Nn);xe("MMM",function(e,t){return t.monthsShortRegex(e)});xe("MMMM",function(e,t){return t.monthsRegex(e)});ct(["M","MM"],function(e,t){t[ci]=Ke(e)-1});ct(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);a!=null?t[ci]=a:Be(n).invalidMonth=e});var ck="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qm="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ey=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fk=_o,dk=_o;function hk(e,t){return e?mr(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ey).test(t)?"format":"standalone"][e.month()]:mr(this._months)?this._months:this._months.standalone}function pk(e,t){return e?mr(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ey.test(t)?"format":"standalone"][e.month()]:mr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gk(e,t,n){var i,a,u,f=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)u=Br([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(u,"").toLocaleLowerCase();return n?t==="MMM"?(a=Tt.call(this._shortMonthsParse,f),a!==-1?a:null):(a=Tt.call(this._longMonthsParse,f),a!==-1?a:null):t==="MMM"?(a=Tt.call(this._shortMonthsParse,f),a!==-1?a:(a=Tt.call(this._longMonthsParse,f),a!==-1?a:null)):(a=Tt.call(this._longMonthsParse,f),a!==-1?a:(a=Tt.call(this._shortMonthsParse,f),a!==-1?a:null))}function mk(e,t,n){var i,a,u;if(this._monthsParseExact)return gk.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=Br([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(u="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ty(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ke(t);else if(t=e.localeData().monthsParse(t),!mi(t))return e}var n=t,i=e.date();return i=i<29?i:Math.min(i,Id(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function ny(e){return e!=null?(ty(this,e),pe.updateOffset(this,!0),this):io(this,"Month")}function yk(){return Id(this.year(),this.month())}function vk(e){return this._monthsParseExact?(et(this,"_monthsRegex")||ry.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(et(this,"_monthsShortRegex")||(this._monthsShortRegex=fk),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bk(e){return this._monthsParseExact?(et(this,"_monthsRegex")||ry.call(this),e?this._monthsStrictRegex:this._monthsRegex):(et(this,"_monthsRegex")||(this._monthsRegex=dk),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ry(){function e(y,w){return w.length-y.length}var t=[],n=[],i=[],a,u,f,m;for(a=0;a<12;a++)u=Br([2e3,a]),f=di(this.monthsShort(u,"")),m=di(this.months(u,"")),t.push(f),n.push(m),i.push(m),i.push(f);t.sort(e),n.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xk(e,t,n,i,a,u,f){var m;return e<100&&e>=0?(m=new Date(e+400,t,n,i,a,u,f),isFinite(m.getFullYear())&&m.setFullYear(e)):m=new Date(e,t,n,i,a,u,f),m}function so(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function nl(e,t,n){var i=7+t-n,a=(7+so(e,0,i).getUTCDay()-t)%7;return-a+i-1}function iy(e,t,n,i,a){var u=(7+n-i)%7,f=nl(e,i,a),m=1+7*(t-1)+u+f,y,w;return m<=0?(y=e-1,w=to(y)+m):m>to(e)?(y=e+1,w=m-to(e)):(y=e,w=m),{year:y,dayOfYear:w}}function ao(e,t,n){var i=nl(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1,u,f;return a<1?(f=e.year()-1,u=a+hi(f,t,n)):a>hi(e.year(),t,n)?(u=a-hi(e.year(),t,n),f=e.year()+1):(f=e.year(),u=a),{week:u,year:f}}function hi(e,t,n){var i=nl(e,t,n),a=nl(e+1,t,n);return(to(e)-i+a)/7}Se("w",["ww",2],"wo","week");Se("W",["WW",2],"Wo","isoWeek");xe("w",gt,sa);xe("ww",gt,Nn);xe("W",gt,sa);xe("WW",gt,Nn);So(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=Ke(e)});function wk(e){return ao(e,this._week.dow,this._week.doy).week}var _k={dow:0,doy:6};function Sk(){return this._week.dow}function kk(){return this._week.doy}function Ck(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ek(e){var t=ao(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Se("d",0,"do","day");Se("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Se("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Se("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Se("e",0,0,"weekday");Se("E",0,0,"isoWeekday");xe("d",gt);xe("e",gt);xe("E",gt);xe("dd",function(e,t){return t.weekdaysMinRegex(e)});xe("ddd",function(e,t){return t.weekdaysShortRegex(e)});xe("dddd",function(e,t){return t.weekdaysRegex(e)});So(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);a!=null?t.d=a:Be(n).invalidWeekday=e});So(["d","e","E"],function(e,t,n,i){t[i]=Ke(e)});function Dk(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tk(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ld(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ok="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rk="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ak=_o,Mk=_o,Pk=_o;function Ik(e,t){var n=mr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ld(n,this._week.dow):e?n[e.day()]:n}function Lk(e){return e===!0?Ld(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Nk(e){return e===!0?Ld(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function jk(e,t,n){var i,a,u,f=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)u=Br([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(u,"").toLocaleLowerCase();return n?t==="dddd"?(a=Tt.call(this._weekdaysParse,f),a!==-1?a:null):t==="ddd"?(a=Tt.call(this._shortWeekdaysParse,f),a!==-1?a:null):(a=Tt.call(this._minWeekdaysParse,f),a!==-1?a:null):t==="dddd"?(a=Tt.call(this._weekdaysParse,f),a!==-1||(a=Tt.call(this._shortWeekdaysParse,f),a!==-1)?a:(a=Tt.call(this._minWeekdaysParse,f),a!==-1?a:null)):t==="ddd"?(a=Tt.call(this._shortWeekdaysParse,f),a!==-1||(a=Tt.call(this._weekdaysParse,f),a!==-1)?a:(a=Tt.call(this._minWeekdaysParse,f),a!==-1?a:null)):(a=Tt.call(this._minWeekdaysParse,f),a!==-1||(a=Tt.call(this._weekdaysParse,f),a!==-1)?a:(a=Tt.call(this._shortWeekdaysParse,f),a!==-1?a:null))}function $k(e,t,n){var i,a,u;if(this._weekdaysParseExact)return jk.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=Br([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(u="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Fk(e){if(!this.isValid())return e!=null?this:NaN;var t=io(this,"Day");return e!=null?(e=Dk(e,this.localeData()),this.add(e-t,"d")):t}function Bk(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 Hk(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tk(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yk(e){return this._weekdaysParseExact?(et(this,"_weekdaysRegex")||Nd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(et(this,"_weekdaysRegex")||(this._weekdaysRegex=Ak),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wk(e){return this._weekdaysParseExact?(et(this,"_weekdaysRegex")||Nd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(et(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mk),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Uk(e){return this._weekdaysParseExact?(et(this,"_weekdaysRegex")||Nd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(et(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pk),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nd(){function e(S,R){return R.length-S.length}var t=[],n=[],i=[],a=[],u,f,m,y,w;for(u=0;u<7;u++)f=Br([2e3,1]).day(u),m=di(this.weekdaysMin(f,"")),y=di(this.weekdaysShort(f,"")),w=di(this.weekdays(f,"")),t.push(m),n.push(y),i.push(w),a.push(m),a.push(y),a.push(w);t.sort(e),n.sort(e),i.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function jd(){return this.hours()%12||12}function qk(){return this.hours()||24}Se("H",["HH",2],0,"hour");Se("h",["hh",2],0,jd);Se("k",["kk",2],0,qk);Se("hmm",0,0,function(){return""+jd.apply(this)+Fr(this.minutes(),2)});Se("hmmss",0,0,function(){return""+jd.apply(this)+Fr(this.minutes(),2)+Fr(this.seconds(),2)});Se("Hmm",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)});Se("Hmmss",0,0,function(){return""+this.hours()+Fr(this.minutes(),2)+Fr(this.seconds(),2)});function ay(e,t){Se(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ay("a",!0);ay("A",!1);function oy(e,t){return t._meridiemParse}xe("a",oy);xe("A",oy);xe("H",gt,Pd);xe("h",gt,sa);xe("k",gt,sa);xe("HH",gt,Nn);xe("hh",gt,Nn);xe("kk",gt,Nn);xe("hmm",Km);xe("hmmss",Xm);xe("Hmm",Km);xe("Hmmss",Xm);ct(["H","HH"],Nt);ct(["k","kk"],function(e,t,n){var i=Ke(e);t[Nt]=i===24?0:i});ct(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ct(["h","hh"],function(e,t,n){t[Nt]=Ke(e),Be(n).bigHour=!0});ct("hmm",function(e,t,n){var i=e.length-2;t[Nt]=Ke(e.substr(0,i)),t[gr]=Ke(e.substr(i)),Be(n).bigHour=!0});ct("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Nt]=Ke(e.substr(0,i)),t[gr]=Ke(e.substr(i,2)),t[fi]=Ke(e.substr(a)),Be(n).bigHour=!0});ct("Hmm",function(e,t,n){var i=e.length-2;t[Nt]=Ke(e.substr(0,i)),t[gr]=Ke(e.substr(i))});ct("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[Nt]=Ke(e.substr(0,i)),t[gr]=Ke(e.substr(i,2)),t[fi]=Ke(e.substr(a))});function zk(e){return(e+"").toLowerCase().charAt(0)==="p"}var Vk=/[ap]\.?m?\.?/i,Gk=aa("Hours",!0);function Kk(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var uy={calendar:jS,longDateFormat:HS,invalidDate:WS,ordinal:qS,dayOfMonthOrdinalParse:zS,relativeTime:GS,months:ck,monthsShort:Qm,week:_k,weekdays:Ok,weekdaysMin:Rk,weekdaysShort:sy,meridiemParse:Vk},yt={},Ga={},oo;function Xk(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function xg(e){return e&&e.toLowerCase().replace("_","-")}function Zk(e){for(var t=0,n,i,a,u;t<e.length;){for(u=xg(e[t]).split("-"),n=u.length,i=xg(e[t+1]),i=i?i.split("-"):null;n>0;){if(a=Sl(u.slice(0,n).join("-")),a)return a;if(i&&i.length>=n&&Xk(u,i)>=n-1)break;n--}t++}return oo}function Jk(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sl(e){var t=null,n;if(yt[e]===void 0&&typeof module<"u"&&module&&module.exports&&Jk(e))try{t=oo._abbr,n=require,n("./locale/"+e),Hi(t)}catch{yt[e]=null}return yt[e]}function Hi(e,t){var n;return e&&(Sn(t)?n=vi(e):n=$d(e,t),n?oo=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),oo._abbr}function $d(e,t){if(t!==null){var n,i=uy;if(t.abbr=e,yt[e]!=null)qm("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."),i=yt[e]._config;else if(t.parentLocale!=null)if(yt[t.parentLocale]!=null)i=yt[t.parentLocale]._config;else if(n=Sl(t.parentLocale),n!=null)i=n._config;else return Ga[t.parentLocale]||(Ga[t.parentLocale]=[]),Ga[t.parentLocale].push({name:e,config:t}),null;return yt[e]=new Td(Jf(i,t)),Ga[e]&&Ga[e].forEach(function(a){$d(a.name,a.config)}),Hi(e),yt[e]}else return delete yt[e],null}function Qk(e,t){if(t!=null){var n,i,a=uy;yt[e]!=null&&yt[e].parentLocale!=null?yt[e].set(Jf(yt[e]._config,t)):(i=Sl(e),i!=null&&(a=i._config),t=Jf(a,t),i==null&&(t.abbr=e),n=new Td(t),n.parentLocale=yt[e],yt[e]=n),Hi(e)}else yt[e]!=null&&(yt[e].parentLocale!=null?(yt[e]=yt[e].parentLocale,e===Hi()&&Hi(e)):yt[e]!=null&&delete yt[e]);return yt[e]}function vi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return oo;if(!mr(e)){if(t=Sl(e),t)return t;e=[e]}return Zk(e)}function eC(){return Qf(yt)}function Fd(e){var t,n=e._a;return n&&Be(e).overflow===-2&&(t=n[ci]<0||n[ci]>11?ci:n[Ir]<1||n[Ir]>Id(n[nn],n[ci])?Ir:n[Nt]<0||n[Nt]>24||n[Nt]===24&&(n[gr]!==0||n[fi]!==0||n[fs]!==0)?Nt:n[gr]<0||n[gr]>59?gr:n[fi]<0||n[fi]>59?fi:n[fs]<0||n[fs]>999?fs:-1,Be(e)._overflowDayOfYear&&(t<nn||t>Ir)&&(t=Ir),Be(e)._overflowWeeks&&t===-1&&(t=ik),Be(e)._overflowWeekday&&t===-1&&(t=sk),Be(e).overflow=t),e}var tC=/^\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)?)?$/,nC=/^\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)?)?$/,rC=/Z|[+-]\d\d(?::?\d\d)?/,Bu=[["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/]],iC=/^\/?Date\((-?\d+)/i,sC=/^(?:(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}))$/,aC={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 ly(e){var t,n,i=e._i,a=tC.exec(i)||nC.exec(i),u,f,m,y,w=Bu.length,S=Pf.length;if(a){for(Be(e).iso=!0,t=0,n=w;t<n;t++)if(Bu[t][1].exec(a[1])){f=Bu[t][0],u=Bu[t][2]!==!1;break}if(f==null){e._isValid=!1;return}if(a[3]){for(t=0,n=S;t<n;t++)if(Pf[t][1].exec(a[3])){m=(a[2]||" ")+Pf[t][0];break}if(m==null){e._isValid=!1;return}}if(!u&&m!=null){e._isValid=!1;return}if(a[4])if(rC.exec(a[4]))y="Z";else{e._isValid=!1;return}e._f=f+(m||"")+(y||""),Hd(e)}else e._isValid=!1}function oC(e,t,n,i,a,u){var f=[uC(e),Qm.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return u&&f.push(parseInt(u,10)),f}function uC(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function lC(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function cC(e,t,n){if(e){var i=sy.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(i!==a)return Be(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function fC(e,t,n){if(e)return aC[e];if(t)return 0;var i=parseInt(n,10),a=i%100,u=(i-a)/100;return u*60+a}function cy(e){var t=sC.exec(lC(e._i)),n;if(t){if(n=oC(t[4],t[3],t[2],t[5],t[6],t[7]),!cC(t[1],n,e))return;e._a=n,e._tzm=fC(t[8],t[9],t[10]),e._d=so.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Be(e).rfc2822=!0}else e._isValid=!1}function dC(e){var t=iC.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ly(e),e._isValid===!1)delete e._isValid;else return;if(cy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:pe.createFromInputFallback(e)}pe.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 Ks(e,t,n){return e??t??n}function hC(e){var t=new Date(pe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Bd(e){var t,n,i=[],a,u,f;if(!e._d){for(a=hC(e),e._w&&e._a[Ir]==null&&e._a[ci]==null&&pC(e),e._dayOfYear!=null&&(f=Ks(e._a[nn],a[nn]),(e._dayOfYear>to(f)||e._dayOfYear===0)&&(Be(e)._overflowDayOfYear=!0),n=so(f,0,e._dayOfYear),e._a[ci]=n.getUTCMonth(),e._a[Ir]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=a[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Nt]===24&&e._a[gr]===0&&e._a[fi]===0&&e._a[fs]===0&&(e._nextDay=!0,e._a[Nt]=0),e._d=(e._useUTC?so:xk).apply(null,i),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Nt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(Be(e).weekdayMismatch=!0)}}function pC(e){var t,n,i,a,u,f,m,y,w;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(u=1,f=4,n=Ks(t.GG,e._a[nn],ao(pt(),1,4).year),i=Ks(t.W,1),a=Ks(t.E,1),(a<1||a>7)&&(y=!0)):(u=e._locale._week.dow,f=e._locale._week.doy,w=ao(pt(),u,f),n=Ks(t.gg,e._a[nn],w.year),i=Ks(t.w,w.week),t.d!=null?(a=t.d,(a<0||a>6)&&(y=!0)):t.e!=null?(a=t.e+u,(t.e<0||t.e>6)&&(y=!0)):a=u),i<1||i>hi(n,u,f)?Be(e)._overflowWeeks=!0:y!=null?Be(e)._overflowWeekday=!0:(m=iy(n,i,a,u,f),e._a[nn]=m.year,e._dayOfYear=m.dayOfYear)}pe.ISO_8601=function(){};pe.RFC_2822=function(){};function Hd(e){if(e._f===pe.ISO_8601){ly(e);return}if(e._f===pe.RFC_2822){cy(e);return}e._a=[],Be(e).empty=!0;var t=""+e._i,n,i,a,u,f,m=t.length,y=0,w,S;for(a=zm(e._f,e._locale).match(Od)||[],S=a.length,n=0;n<S;n++)u=a[n],i=(t.match(tk(u,e))||[])[0],i&&(f=t.substr(0,t.indexOf(i)),f.length>0&&Be(e).unusedInput.push(f),t=t.slice(t.indexOf(i)+i.length),y+=i.length),Zs[u]?(i?Be(e).empty=!1:Be(e).unusedTokens.push(u),rk(u,i,e)):e._strict&&!i&&Be(e).unusedTokens.push(u);Be(e).charsLeftOver=m-y,t.length>0&&Be(e).unusedInput.push(t),e._a[Nt]<=12&&Be(e).bigHour===!0&&e._a[Nt]>0&&(Be(e).bigHour=void 0),Be(e).parsedDateParts=e._a.slice(0),Be(e).meridiem=e._meridiem,e._a[Nt]=gC(e._locale,e._a[Nt],e._meridiem),w=Be(e).era,w!==null&&(e._a[nn]=e._locale.erasConvertYear(w,e._a[nn])),Bd(e),Fd(e)}function gC(e,t,n){var i;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(i=e.isPM(n),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function mC(e){var t,n,i,a,u,f,m=!1,y=e._f.length;if(y===0){Be(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<y;a++)u=0,f=!1,t=Dd({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Hd(t),Ed(t)&&(f=!0),u+=Be(t).charsLeftOver,u+=Be(t).unusedTokens.length*10,Be(t).score=u,m?u<i&&(i=u,n=t):(i==null||u<i||f)&&(i=u,n=t,f&&(m=!0));Fi(e,n||t)}function yC(e){if(!e._d){var t=Rd(e._i),n=t.day===void 0?t.date:t.day;e._a=Wm([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),Bd(e)}}function vC(e){var t=new wo(Fd(fy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function fy(e){var t=e._i,n=e._f;return e._locale=e._locale||vi(e._l),t===null||n===void 0&&t===""?ml({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),yr(t)?new wo(Fd(t)):(xo(t)?e._d=t:mr(n)?mC(e):n?Hd(e):bC(e),Ed(e)||(e._d=null),e))}function bC(e){var t=e._i;Sn(t)?e._d=new Date(pe.now()):xo(t)?e._d=new Date(t.valueOf()):typeof t=="string"?dC(e):mr(t)?(e._a=Wm(t.slice(0),function(n){return parseInt(n,10)}),Bd(e)):ps(t)?yC(e):mi(t)?e._d=new Date(t):pe.createFromInputFallback(e)}function dy(e,t,n,i,a){var u={};return(t===!0||t===!1)&&(i=t,t=void 0),(n===!0||n===!1)&&(i=n,n=void 0),(ps(e)&&Cd(e)||mr(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=i,vC(u)}function pt(e,t,n,i){return dy(e,t,n,i,!1)}var xC=tr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ml()}),wC=tr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ml()});function hy(e,t){var n,i;if(t.length===1&&mr(t[0])&&(t=t[0]),!t.length)return pt();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function _C(){var e=[].slice.call(arguments,0);return hy("isBefore",e)}function SC(){var e=[].slice.call(arguments,0);return hy("isAfter",e)}var kC=function(){return Date.now?Date.now():+new Date},Ka=["year","quarter","month","week","day","hour","minute","second","millisecond"];function CC(e){var t,n=!1,i,a=Ka.length;for(t in e)if(et(e,t)&&!(Tt.call(Ka,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<a;++i)if(e[Ka[i]]){if(n)return!1;parseFloat(e[Ka[i]])!==Ke(e[Ka[i]])&&(n=!0)}return!0}function EC(){return this._isValid}function DC(){return vr(NaN)}function kl(e){var t=Rd(e),n=t.year||0,i=t.quarter||0,a=t.month||0,u=t.week||t.isoWeek||0,f=t.day||0,m=t.hour||0,y=t.minute||0,w=t.second||0,S=t.millisecond||0;this._isValid=CC(t),this._milliseconds=+S+w*1e3+y*6e4+m*1e3*60*60,this._days=+f+u*7,this._months=+a+i*3+n*12,this._data={},this._locale=vi(),this._bubble()}function Gu(e){return e instanceof kl}function td(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function TC(e,t,n){var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),u=0,f;for(f=0;f<i;f++)(n&&e[f]!==t[f]||!n&&Ke(e[f])!==Ke(t[f]))&&u++;return u+a}function py(e,t){Se(e,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+Fr(~~(n/60),2)+t+Fr(~~n%60,2)})}py("Z",":");py("ZZ","");xe("Z",wl);xe("ZZ",wl);ct(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yd(wl,e)});var OC=/([\+\-]|\d\d)/gi;function Yd(e,t){var n=(t||"").match(e),i,a,u;return n===null?null:(i=n[n.length-1]||[],a=(i+"").match(OC)||["-",0,0],u=+(a[1]*60)+Ke(a[2]),u===0?0:a[0]==="+"?u:-u)}function Wd(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(yr(e)||xo(e)?e.valueOf():pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),pe.updateOffset(n,!1),n):pt(e).local()}function nd(e){return-Math.round(e._d.getTimezoneOffset())}pe.updateOffset=function(){};function RC(e,t,n){var i=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Yd(wl,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=nd(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?yy(this,vr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,pe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:nd(this)}function AC(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function MC(e){return this.utcOffset(0,e)}function PC(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(nd(this),"m")),this}function IC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Yd(QS,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function LC(e){return this.isValid()?(e=e?pt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function NC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jC(){if(!Sn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Dd(e,this),e=fy(e),e._a?(t=e._isUTC?Br(e._a):pt(e._a),this._isDSTShifted=this.isValid()&&TC(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $C(){return this.isValid()?!this._isUTC:!1}function FC(){return this.isValid()?this._isUTC:!1}function gy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var BC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HC=/^(-|\+)?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 n=e,i=null,a,u,f;return Gu(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:mi(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=BC.exec(e))?(a=i[1]==="-"?-1:1,n={y:0,d:Ke(i[Ir])*a,h:Ke(i[Nt])*a,m:Ke(i[gr])*a,s:Ke(i[fi])*a,ms:Ke(td(i[fs]*1e3))*a}):(i=HC.exec(e))?(a=i[1]==="-"?-1:1,n={y:us(i[2],a),M:us(i[3],a),w:us(i[4],a),d:us(i[5],a),h:us(i[6],a),m:us(i[7],a),s:us(i[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(f=YC(pt(n.from),pt(n.to)),n={},n.ms=f.milliseconds,n.M=f.months),u=new kl(n),Gu(e)&&et(e,"_locale")&&(u._locale=e._locale),Gu(e)&&et(e,"_isValid")&&(u._isValid=e._isValid),u}vr.fn=kl.prototype;vr.invalid=DC;function us(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function wg(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function YC(e,t){var n;return e.isValid()&&t.isValid()?(t=Wd(t,e),e.isBefore(t)?n=wg(e,t):(n=wg(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function my(e,t){return function(n,i){var a,u;return i!==null&&!isNaN(+i)&&(qm(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."),u=n,n=i,i=u),a=vr(n,i),yy(this,a,e),this}}function yy(e,t,n,i){var a=t._milliseconds,u=td(t._days),f=td(t._months);e.isValid()&&(i=i??!0,f&&ty(e,io(e,"Month")+f*n),u&&Jm(e,"Date",io(e,"Date")+u*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&pe.updateOffset(e,u||f))}var WC=my(1,"add"),UC=my(-1,"subtract");function vy(e){return typeof e=="string"||e instanceof String}function qC(e){return yr(e)||xo(e)||vy(e)||mi(e)||VC(e)||zC(e)||e===null||e===void 0}function zC(e){var t=ps(e)&&!Cd(e),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,u,f=i.length;for(a=0;a<f;a+=1)u=i[a],n=n||et(e,u);return t&&n}function VC(e){var t=mr(e),n=!1;return t&&(n=e.filter(function(i){return!mi(i)&&vy(e)}).length===0),t&&n}function GC(e){var t=ps(e)&&!Cd(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,u;for(a=0;a<i.length;a+=1)u=i[a],n=n||et(e,u);return t&&n}function KC(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function XC(e,t){arguments.length===1&&(arguments[0]?qC(arguments[0])?(e=arguments[0],t=void 0):GC(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||pt(),i=Wd(n,this).startOf("day"),a=pe.calendarFormat(this,i)||"sameElse",u=t&&(Hr(t[a])?t[a].call(this,n):t[a]);return this.format(u||this.localeData().calendar(a,this,pt(n)))}function ZC(){return new wo(this)}function JC(e,t){var n=yr(e)?e:pt(e);return this.isValid()&&n.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function QC(e,t){var n=yr(e)?e:pt(e);return this.isValid()&&n.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function eE(e,t,n,i){var a=yr(e)?e:pt(e),u=yr(t)?t:pt(t);return this.isValid()&&a.isValid()&&u.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(i[1]===")"?this.isBefore(u,n):!this.isAfter(u,n))):!1}function tE(e,t){var n=yr(e)?e:pt(e),i;return this.isValid()&&n.isValid()?(t=nr(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function nE(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function rE(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function iE(e,t,n){var i,a,u;if(!this.isValid())return NaN;if(i=Wd(e,this),!i.isValid())return NaN;switch(a=(i.utcOffset()-this.utcOffset())*6e4,t=nr(t),t){case"year":u=Ku(this,i)/12;break;case"month":u=Ku(this,i);break;case"quarter":u=Ku(this,i)/3;break;case"second":u=(this-i)/1e3;break;case"minute":u=(this-i)/6e4;break;case"hour":u=(this-i)/36e5;break;case"day":u=(this-i-a)/864e5;break;case"week":u=(this-i-a)/6048e5;break;default:u=this-i}return n?u:Jn(u)}function Ku(e,t){if(e.date()<t.date())return-Ku(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),a,u;return t-i<0?(a=e.clone().add(n-1,"months"),u=(t-i)/(i-a)):(a=e.clone().add(n+1,"months"),u=(t-i)/(a-i)),-(n+u)||0}pe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";pe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function sE(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function aE(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Vu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Hr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Vu(n,"Z")):Vu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function oE(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,i,a,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",u=t+'[")]',this.format(n+i+a+u)}function uE(e){e||(e=this.isUtc()?pe.defaultFormatUtc:pe.defaultFormat);var t=Vu(this,e);return this.localeData().postformat(t)}function lE(e,t){return this.isValid()&&(yr(e)&&e.isValid()||pt(e).isValid())?vr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cE(e){return this.from(pt(),e)}function fE(e,t){return this.isValid()&&(yr(e)&&e.isValid()||pt(e).isValid())?vr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dE(e){return this.to(pt(),e)}function by(e){var t;return e===void 0?this._locale._abbr:(t=vi(e),t!=null&&(this._locale=t),this)}var xy=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 wy(){return this._locale}var rl=1e3,Js=60*rl,il=60*Js,_y=(365*400+97)*24*il;function Qs(e,t){return(e%t+t)%t}function Sy(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-_y:new Date(e,t,n).valueOf()}function ky(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-_y:Date.UTC(e,t,n)}function hE(e){var t,n;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ky:Sy,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Qs(t+(this._isUTC?0:this.utcOffset()*Js),il);break;case"minute":t=this._d.valueOf(),t-=Qs(t,Js);break;case"second":t=this._d.valueOf(),t-=Qs(t,rl);break}return this._d.setTime(t),pe.updateOffset(this,!0),this}function pE(e){var t,n;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ky:Sy,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=il-Qs(t+(this._isUTC?0:this.utcOffset()*Js),il)-1;break;case"minute":t=this._d.valueOf(),t+=Js-Qs(t,Js)-1;break;case"second":t=this._d.valueOf(),t+=rl-Qs(t,rl)-1;break}return this._d.setTime(t),pe.updateOffset(this,!0),this}function gE(){return this._d.valueOf()-(this._offset||0)*6e4}function mE(){return Math.floor(this.valueOf()/1e3)}function yE(){return new Date(this.valueOf())}function vE(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bE(){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 xE(){return this.isValid()?this.toISOString():null}function wE(){return Ed(this)}function _E(){return Fi({},Be(this))}function SE(){return Be(this).overflow}function kE(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Se("N",0,0,"eraAbbr");Se("NN",0,0,"eraAbbr");Se("NNN",0,0,"eraAbbr");Se("NNNN",0,0,"eraName");Se("NNNNN",0,0,"eraNarrow");Se("y",["y",1],"yo","eraYear");Se("y",["yy",2],0,"eraYear");Se("y",["yyy",3],0,"eraYear");Se("y",["yyyy",4],0,"eraYear");xe("N",Ud);xe("NN",Ud);xe("NNN",Ud);xe("NNNN",LE);xe("NNNNN",NE);ct(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);a?Be(n).era=a:Be(n).invalidEra=e});xe("y",ia);xe("yy",ia);xe("yyy",ia);xe("yyyy",ia);xe("yo",jE);ct(["y","yy","yyy","yyyy"],nn);ct(["yo"],function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[nn]=n._locale.eraYearOrdinalParse(e,a):t[nn]=parseInt(e,10)});function CE(e,t){var n,i,a,u=this._eras||vi("en")._eras;for(n=0,i=u.length;n<i;++n){switch(typeof u[n].since){case"string":a=pe(u[n].since).startOf("day"),u[n].since=a.valueOf();break}switch(typeof u[n].until){case"undefined":u[n].until=1/0;break;case"string":a=pe(u[n].until).startOf("day").valueOf(),u[n].until=a.valueOf();break}}return u}function EE(e,t,n){var i,a,u=this.eras(),f,m,y;for(e=e.toUpperCase(),i=0,a=u.length;i<a;++i)if(f=u[i].name.toUpperCase(),m=u[i].abbr.toUpperCase(),y=u[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(m===e)return u[i];break;case"NNNN":if(f===e)return u[i];break;case"NNNNN":if(y===e)return u[i];break}else if([f,m,y].indexOf(e)>=0)return u[i]}function DE(e,t){var n=e.since<=e.until?1:-1;return t===void 0?pe(e.since).year():pe(e.since).year()+(t-e.offset)*n}function TE(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return""}function OE(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return""}function RE(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return""}function AE(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-pe(a[e].since).year())*n+a[e].offset;return this.year()}function ME(e){return et(this,"_erasNameRegex")||qd.call(this),e?this._erasNameRegex:this._erasRegex}function PE(e){return et(this,"_erasAbbrRegex")||qd.call(this),e?this._erasAbbrRegex:this._erasRegex}function IE(e){return et(this,"_erasNarrowRegex")||qd.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ud(e,t){return t.erasAbbrRegex(e)}function LE(e,t){return t.erasNameRegex(e)}function NE(e,t){return t.erasNarrowRegex(e)}function jE(e,t){return t._eraYearOrdinalRegex||ia}function qd(){var e=[],t=[],n=[],i=[],a,u,f,m,y,w=this.eras();for(a=0,u=w.length;a<u;++a)f=di(w[a].name),m=di(w[a].abbr),y=di(w[a].narrow),t.push(f),e.push(m),n.push(y),i.push(f),i.push(m),i.push(y);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Se(0,["gg",2],0,function(){return this.weekYear()%100});Se(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Cl(e,t){Se(0,[e,e.length],0,t)}Cl("gggg","weekYear");Cl("ggggg","weekYear");Cl("GGGG","isoWeekYear");Cl("GGGGG","isoWeekYear");xe("G",xl);xe("g",xl);xe("GG",gt,Nn);xe("gg",gt,Nn);xe("GGGG",Md,Ad);xe("gggg",Md,Ad);xe("GGGGG",bl,yl);xe("ggggg",bl,yl);So(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=Ke(e)});So(["gg","GG"],function(e,t,n,i){t[i]=pe.parseTwoDigitYear(e)});function $E(e){return Cy.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function FE(e){return Cy.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function BE(){return hi(this.year(),1,4)}function HE(){return hi(this.isoWeekYear(),1,4)}function YE(){var e=this.localeData()._week;return hi(this.year(),e.dow,e.doy)}function WE(){var e=this.localeData()._week;return hi(this.weekYear(),e.dow,e.doy)}function Cy(e,t,n,i,a){var u;return e==null?ao(this,i,a).year:(u=hi(e,i,a),t>u&&(t=u),UE.call(this,e,t,n,i,a))}function UE(e,t,n,i,a){var u=iy(e,t,n,i,a),f=so(u.year,0,u.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}Se("Q",0,"Qo","quarter");xe("Q",Vm);ct("Q",function(e,t){t[ci]=(Ke(e)-1)*3});function qE(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Se("D",["DD",2],"Do","date");xe("D",gt,sa);xe("DD",gt,Nn);xe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ct(["D","DD"],Ir);ct("Do",function(e,t){t[Ir]=Ke(e.match(gt)[0])});var Ey=aa("Date",!0);Se("DDD",["DDDD",3],"DDDo","dayOfYear");xe("DDD",vl);xe("DDDD",Gm);ct(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ke(e)});function zE(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Se("m",["mm",2],0,"minute");xe("m",gt,Pd);xe("mm",gt,Nn);ct(["m","mm"],gr);var VE=aa("Minutes",!1);Se("s",["ss",2],0,"second");xe("s",gt,Pd);xe("ss",gt,Nn);ct(["s","ss"],fi);var GE=aa("Seconds",!1);Se("S",0,0,function(){return~~(this.millisecond()/100)});Se(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Se(0,["SSS",3],0,"millisecond");Se(0,["SSSS",4],0,function(){return this.millisecond()*10});Se(0,["SSSSS",5],0,function(){return this.millisecond()*100});Se(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Se(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Se(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Se(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});xe("S",vl,Vm);xe("SS",vl,Nn);xe("SSS",vl,Gm);var Bi,Dy;for(Bi="SSSS";Bi.length<=9;Bi+="S")xe(Bi,ia);function KE(e,t){t[fs]=Ke(("0."+e)*1e3)}for(Bi="S";Bi.length<=9;Bi+="S")ct(Bi,KE);Dy=aa("Milliseconds",!1);Se("z",0,0,"zoneAbbr");Se("zz",0,0,"zoneName");function XE(){return this._isUTC?"UTC":""}function ZE(){return this._isUTC?"Coordinated Universal Time":""}var se=wo.prototype;se.add=WC;se.calendar=XC;se.clone=ZC;se.diff=iE;se.endOf=pE;se.format=uE;se.from=lE;se.fromNow=cE;se.to=fE;se.toNow=dE;se.get=ok;se.invalidAt=SE;se.isAfter=JC;se.isBefore=QC;se.isBetween=eE;se.isSame=tE;se.isSameOrAfter=nE;se.isSameOrBefore=rE;se.isValid=wE;se.lang=xy;se.locale=by;se.localeData=wy;se.max=wC;se.min=xC;se.parsingFlags=_E;se.set=uk;se.startOf=hE;se.subtract=UC;se.toArray=vE;se.toObject=bE;se.toDate=yE;se.toISOString=aE;se.inspect=oE;typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});se.toJSON=xE;se.toString=sE;se.unix=mE;se.valueOf=gE;se.creationData=kE;se.eraName=TE;se.eraNarrow=OE;se.eraAbbr=RE;se.eraYear=AE;se.year=Zm;se.isLeapYear=ak;se.weekYear=$E;se.isoWeekYear=FE;se.quarter=se.quarters=qE;se.month=ny;se.daysInMonth=yk;se.week=se.weeks=Ck;se.isoWeek=se.isoWeeks=Ek;se.weeksInYear=YE;se.weeksInWeekYear=WE;se.isoWeeksInYear=BE;se.isoWeeksInISOWeekYear=HE;se.date=Ey;se.day=se.days=Fk;se.weekday=Bk;se.isoWeekday=Hk;se.dayOfYear=zE;se.hour=se.hours=Gk;se.minute=se.minutes=VE;se.second=se.seconds=GE;se.millisecond=se.milliseconds=Dy;se.utcOffset=RC;se.utc=MC;se.local=PC;se.parseZone=IC;se.hasAlignedHourOffset=LC;se.isDST=NC;se.isLocal=$C;se.isUtcOffset=FC;se.isUtc=gy;se.isUTC=gy;se.zoneAbbr=XE;se.zoneName=ZE;se.dates=tr("dates accessor is deprecated. Use date instead.",Ey);se.months=tr("months accessor is deprecated. Use month instead",ny);se.years=tr("years accessor is deprecated. Use year instead",Zm);se.zone=tr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",AC);se.isDSTShifted=tr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jC);function JE(e){return pt(e*1e3)}function QE(){return pt.apply(null,arguments).parseZone()}function Ty(e){return e}var tt=Td.prototype;tt.calendar=$S;tt.longDateFormat=YS;tt.invalidDate=US;tt.ordinal=VS;tt.preparse=Ty;tt.postformat=Ty;tt.relativeTime=KS;tt.pastFuture=XS;tt.set=NS;tt.eras=CE;tt.erasParse=EE;tt.erasConvertYear=DE;tt.erasAbbrRegex=PE;tt.erasNameRegex=ME;tt.erasNarrowRegex=IE;tt.months=hk;tt.monthsShort=pk;tt.monthsParse=mk;tt.monthsRegex=bk;tt.monthsShortRegex=vk;tt.week=wk;tt.firstDayOfYear=kk;tt.firstDayOfWeek=Sk;tt.weekdays=Ik;tt.weekdaysMin=Nk;tt.weekdaysShort=Lk;tt.weekdaysParse=$k;tt.weekdaysRegex=Yk;tt.weekdaysShortRegex=Wk;tt.weekdaysMinRegex=Uk;tt.isPM=zk;tt.meridiem=Kk;function sl(e,t,n,i){var a=vi(),u=Br().set(i,t);return a[n](u,e)}function Oy(e,t,n){if(mi(e)&&(t=e,e=void 0),e=e||"",t!=null)return sl(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=sl(e,i,n,"month");return a}function zd(e,t,n,i){typeof e=="boolean"?(mi(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,mi(t)&&(n=t,t=void 0),t=t||"");var a=vi(),u=e?a._week.dow:0,f,m=[];if(n!=null)return sl(t,(n+u)%7,i,"day");for(f=0;f<7;f++)m[f]=sl(t,(f+u)%7,i,"day");return m}function eD(e,t){return Oy(e,t,"months")}function tD(e,t){return Oy(e,t,"monthsShort")}function nD(e,t,n){return zd(e,t,n,"weekdays")}function rD(e,t,n){return zd(e,t,n,"weekdaysShort")}function iD(e,t,n){return zd(e,t,n,"weekdaysMin")}Hi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Ke(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});pe.lang=tr("moment.lang is deprecated. Use moment.locale instead.",Hi);pe.langData=tr("moment.langData is deprecated. Use moment.localeData instead.",vi);var oi=Math.abs;function sD(){var e=this._data;return this._milliseconds=oi(this._milliseconds),this._days=oi(this._days),this._months=oi(this._months),e.milliseconds=oi(e.milliseconds),e.seconds=oi(e.seconds),e.minutes=oi(e.minutes),e.hours=oi(e.hours),e.months=oi(e.months),e.years=oi(e.years),this}function Ry(e,t,n,i){var a=vr(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function aD(e,t){return Ry(this,e,t,1)}function oD(e,t){return Ry(this,e,t,-1)}function _g(e){return e<0?Math.floor(e):Math.ceil(e)}function uD(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,a,u,f,m,y;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=_g(rd(n)+t)*864e5,t=0,n=0),i.milliseconds=e%1e3,a=Jn(e/1e3),i.seconds=a%60,u=Jn(a/60),i.minutes=u%60,f=Jn(u/60),i.hours=f%24,t+=Jn(f/24),y=Jn(Ay(t)),n+=y,t-=_g(rd(y)),m=Jn(n/12),n%=12,i.days=t,i.months=n,i.years=m,this}function Ay(e){return e*4800/146097}function rd(e){return e*146097/4800}function lD(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=nr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,n=this._months+Ay(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(rd(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function bi(e){return function(){return this.as(e)}}var My=bi("ms"),cD=bi("s"),fD=bi("m"),dD=bi("h"),hD=bi("d"),pD=bi("w"),gD=bi("M"),mD=bi("Q"),yD=bi("y"),vD=My;function bD(){return vr(this)}function xD(e){return e=nr(e),this.isValid()?this[e+"s"]():NaN}function ws(e){return function(){return this.isValid()?this._data[e]:NaN}}var wD=ws("milliseconds"),_D=ws("seconds"),SD=ws("minutes"),kD=ws("hours"),CD=ws("days"),ED=ws("months"),DD=ws("years");function TD(){return Jn(this.days()/7)}var ui=Math.round,Xs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function OD(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function RD(e,t,n,i){var a=vr(e).abs(),u=ui(a.as("s")),f=ui(a.as("m")),m=ui(a.as("h")),y=ui(a.as("d")),w=ui(a.as("M")),S=ui(a.as("w")),R=ui(a.as("y")),T=u<=n.ss&&["s",u]||u<n.s&&["ss",u]||f<=1&&["m"]||f<n.m&&["mm",f]||m<=1&&["h"]||m<n.h&&["hh",m]||y<=1&&["d"]||y<n.d&&["dd",y];return n.w!=null&&(T=T||S<=1&&["w"]||S<n.w&&["ww",S]),T=T||w<=1&&["M"]||w<n.M&&["MM",w]||R<=1&&["y"]||["yy",R],T[2]=t,T[3]=+e>0,T[4]=i,OD.apply(null,T)}function AD(e){return e===void 0?ui:typeof e=="function"?(ui=e,!0):!1}function MD(e,t){return Xs[e]===void 0?!1:t===void 0?Xs[e]:(Xs[e]=t,e==="s"&&(Xs.ss=t-1),!0)}function PD(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=Xs,a,u;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(i=Object.assign({},Xs,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),a=this.localeData(),u=RD(this,!n,i,a),n&&(u=a.pastFuture(+this,u)),a.postformat(u)}var If=Math.abs;function Hs(e){return(e>0)-(e<0)||+e}function El(){if(!this.isValid())return this.localeData().invalidDate();var e=If(this._milliseconds)/1e3,t=If(this._days),n=If(this._months),i,a,u,f,m=this.asSeconds(),y,w,S,R;return m?(i=Jn(e/60),a=Jn(i/60),e%=60,i%=60,u=Jn(n/12),n%=12,f=e?e.toFixed(3).replace(/\.?0+$/,""):"",y=m<0?"-":"",w=Hs(this._months)!==Hs(m)?"-":"",S=Hs(this._days)!==Hs(m)?"-":"",R=Hs(this._milliseconds)!==Hs(m)?"-":"",y+"P"+(u?w+u+"Y":"")+(n?w+n+"M":"")+(t?S+t+"D":"")+(a||i||e?"T":"")+(a?R+a+"H":"")+(i?R+i+"M":"")+(e?R+f+"S":"")):"P0D"}var Ze=kl.prototype;Ze.isValid=EC;Ze.abs=sD;Ze.add=aD;Ze.subtract=oD;Ze.as=lD;Ze.asMilliseconds=My;Ze.asSeconds=cD;Ze.asMinutes=fD;Ze.asHours=dD;Ze.asDays=hD;Ze.asWeeks=pD;Ze.asMonths=gD;Ze.asQuarters=mD;Ze.asYears=yD;Ze.valueOf=vD;Ze._bubble=uD;Ze.clone=bD;Ze.get=xD;Ze.milliseconds=wD;Ze.seconds=_D;Ze.minutes=SD;Ze.hours=kD;Ze.days=CD;Ze.weeks=TD;Ze.months=ED;Ze.years=DD;Ze.humanize=PD;Ze.toISOString=El;Ze.toString=El;Ze.toJSON=El;Ze.locale=by;Ze.localeData=wy;Ze.toIsoString=tr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",El);Ze.lang=xy;Se("X",0,0,"unix");Se("x",0,0,"valueOf");xe("x",xl);xe("X",ek);ct("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ct("x",function(e,t,n){n._d=new Date(Ke(e))});//! moment.js
10
+ pe.version="2.30.1";IS(pt);pe.fn=se;pe.min=_C;pe.max=SC;pe.now=kC;pe.utc=Br;pe.unix=JE;pe.months=eD;pe.isDate=xo;pe.locale=Hi;pe.invalid=ml;pe.duration=vr;pe.isMoment=yr;pe.weekdays=nD;pe.parseZone=QE;pe.localeData=vi;pe.isDuration=Gu;pe.monthsShort=tD;pe.weekdaysMin=iD;pe.defineLocale=$d;pe.updateLocale=Qk;pe.locales=eC;pe.weekdaysShort=rD;pe.normalizeUnits=nr;pe.relativeTimeRounding=AD;pe.relativeTimeThreshold=MD;pe.calendarFormat=KC;pe.prototype=se;pe.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 ID=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"})),LD=({notification:e,handleUpdateRead:t})=>{const n=i=>{const a=pe(),u=pe(i),f=a.diff(u,"days");return f===0?"Today":f===1?"Yesterday":f>=2&&f<=7?`Last ${f} days`:f===8||f===9||f===10?"1 week ago":f>=11&&f<=14?"2 weeks ago":u.format("MMMM DD, YYYY")};return C.jsxRuntimeExports.jsxs("div",{className:"notitification-item__container",onClick:()=>t(e.id,!e.isRead),children:[C.jsxRuntimeExports.jsx("div",{className:"notification-item__image-container",children:C.jsxRuntimeExports.jsx("img",{src:e==null?void 0:e.userAvatarUrl,onError:({currentTarget:i})=>{i.onerror=null,i.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.userName})}),C.jsxRuntimeExports.jsxs("div",{className:"notification-item__content",children:[C.jsxRuntimeExports.jsx("p",{className:"notification-item__user-name",children:e.userName}),C.jsxRuntimeExports.jsxs("p",{children:[`${e.message} `,C.jsxRuntimeExports.jsx("span",{children:e==null?void 0:e.context})]})]}),C.jsxRuntimeExports.jsx("div",{className:"notification-item__time",children:C.jsxRuntimeExports.jsx("p",{children:n(e.createdAt)})}),C.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"})]})},Sg=({notidata:e,handleUpdateRead:t,handleUpdateReadAll:n})=>C.jsxRuntimeExports.jsxs("div",{children:[C.jsxRuntimeExports.jsx("div",{className:"mark-all-read",children:C.jsxRuntimeExports.jsx("button",{onClick:n,children:"Mark all as read"})}),C.jsxRuntimeExports.jsx("div",{className:"notification-items__wrapper",children:C.jsxRuntimeExports.jsx("div",{className:"notification-items__content",children:Object.values(e).map((i,a)=>C.jsxRuntimeExports.jsx(LD,{notification:i,handleUpdateRead:t},a))})})]}),na=C.reactExports.createContext({}),ND=({children:e})=>{const[t,n]=C.reactExports.useState(!0),[i,a]=C.reactExports.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),u=()=>{n(!t)},f=()=>{n(!0)};return C.jsxRuntimeExports.jsx(na.Provider,{value:{isOpen:t,toggleOpen:u,setShowModalFalse:f,notidata:i,setNotiData:a},children:e})};const jD={black:"#000",white:"#fff"},uo=jD,$D={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"},Ys=$D,FD={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"},Ws=FD,BD={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"},Us=BD,HD={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"},qs=HD,YD={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"},zs=YD,WD={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"},Xa=WD,UD={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"},qD=UD;function lo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const zD=Object.freeze(Object.defineProperty({__proto__:null,default:lo},Symbol.toStringTag,{value:"Module"})),Py="$$material";function Iy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var VD=/^((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)-.*))$/,GD=Iy(function(e){return VD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function KD(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 XD(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 ZD=function(){function e(n){var i=this;this._insertTag=function(a){var u;i.tags.length===0?i.insertionPoint?u=i.insertionPoint.nextSibling:i.prepend?u=i.container.firstChild:u=i.before:u=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,u),i.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XD(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var u=KD(a);try{u.insertRule(i,u.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){return i.parentNode&&i.parentNode.removeChild(i)}),this.tags=[],this.ctr=0},e}(),tn="-ms-",al="-moz-",nt="-webkit-",Ly="comm",Vd="rule",Gd="decl",JD="@import",Ny="@keyframes",QD="@layer",eT=Math.abs,Dl=String.fromCharCode,tT=Object.assign;function nT(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 jy(e){return e.trim()}function rT(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,n){return e.replace(t,n)}function id(e,t){return e.indexOf(t)}function zt(e,t){return e.charCodeAt(t)|0}function co(e,t,n){return e.slice(t,n)}function Mr(e){return e.length}function Kd(e){return e.length}function Hu(e,t){return t.push(e),e}function iT(e,t){return e.map(t).join("")}var Tl=1,ra=1,$y=0,kn=0,At=0,oa="";function Ol(e,t,n,i,a,u,f){return{value:e,root:t,parent:n,type:i,props:a,children:u,line:Tl,column:ra,length:f,return:""}}function Za(e,t){return tT(Ol("",null,null,"",null,null,0),e,{length:-e.length},t)}function sT(){return At}function aT(){return At=kn>0?zt(oa,--kn):0,ra--,At===10&&(ra=1,Tl--),At}function Ln(){return At=kn<$y?zt(oa,kn++):0,ra++,At===10&&(ra=1,Tl++),At}function Nr(){return zt(oa,kn)}function Xu(){return kn}function ko(e,t){return co(oa,e,t)}function fo(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 Fy(e){return Tl=ra=1,$y=Mr(oa=e),kn=0,[]}function By(e){return oa="",e}function Zu(e){return jy(ko(kn-1,sd(e===91?e+2:e===40?e+1:e)))}function oT(e){for(;(At=Nr())&&At<33;)Ln();return fo(e)>2||fo(At)>3?"":" "}function uT(e,t){for(;--t&&Ln()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return ko(e,Xu()+(t<6&&Nr()==32&&Ln()==32))}function sd(e){for(;Ln();)switch(At){case e:return kn;case 34:case 39:e!==34&&e!==39&&sd(At);break;case 40:e===41&&sd(e);break;case 92:Ln();break}return kn}function lT(e,t){for(;Ln()&&e+At!==47+10;)if(e+At===42+42&&Nr()===47)break;return"/*"+ko(t,kn-1)+"*"+Dl(e===47?e:Ln())}function cT(e){for(;!fo(Nr());)Ln();return ko(e,kn)}function fT(e){return By(Ju("",null,null,null,[""],e=Fy(e),0,[0],e))}function Ju(e,t,n,i,a,u,f,m,y){for(var w=0,S=0,R=f,T=0,H=0,F=0,I=1,Z=1,Y=1,oe=0,fe="",ue=a,re=u,ae=i,h=fe;Z;)switch(F=oe,oe=Ln()){case 40:if(F!=108&&zt(h,R-1)==58){id(h+=rt(Zu(oe),"&","&\f"),"&\f")!=-1&&(Y=-1);break}case 34:case 39:case 91:h+=Zu(oe);break;case 9:case 10:case 13:case 32:h+=oT(F);break;case 92:h+=uT(Xu()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Hu(dT(lT(Ln(),Xu()),t,n),y);break;default:h+="/"}break;case 123*I:m[w++]=Mr(h)*Y;case 125*I:case 59:case 0:switch(oe){case 0:case 125:Z=0;case 59+S:Y==-1&&(h=rt(h,/\f/g,"")),H>0&&Mr(h)-R&&Hu(H>32?Cg(h+";",i,n,R-1):Cg(rt(h," ","")+";",i,n,R-2),y);break;case 59:h+=";";default:if(Hu(ae=kg(h,t,n,w,S,a,m,fe,ue=[],re=[],R),u),oe===123)if(S===0)Ju(h,t,ae,ae,ue,u,R,m,re);else switch(T===99&&zt(h,3)===110?100:T){case 100:case 108:case 109:case 115:Ju(e,ae,ae,i&&Hu(kg(e,ae,ae,0,0,a,m,fe,a,ue=[],R),re),a,re,R,m,i?ue:re);break;default:Ju(h,ae,ae,ae,[""],re,0,m,re)}}w=S=H=0,I=Y=1,fe=h="",R=f;break;case 58:R=1+Mr(h),H=F;default:if(I<1){if(oe==123)--I;else if(oe==125&&I++==0&&aT()==125)continue}switch(h+=Dl(oe),oe*I){case 38:Y=S>0?1:(h+="\f",-1);break;case 44:m[w++]=(Mr(h)-1)*Y,Y=1;break;case 64:Nr()===45&&(h+=Zu(Ln())),T=Nr(),S=R=Mr(fe=h+=cT(Xu())),oe++;break;case 45:F===45&&Mr(h)==2&&(I=0)}}return u}function kg(e,t,n,i,a,u,f,m,y,w,S){for(var R=a-1,T=a===0?u:[""],H=Kd(T),F=0,I=0,Z=0;F<i;++F)for(var Y=0,oe=co(e,R+1,R=eT(I=f[F])),fe=e;Y<H;++Y)(fe=jy(I>0?T[Y]+" "+oe:rt(oe,/&\f/g,T[Y])))&&(y[Z++]=fe);return Ol(e,t,n,a===0?Vd:m,y,w,S)}function dT(e,t,n){return Ol(e,t,n,Ly,Dl(sT()),co(e,2,-2),0)}function Cg(e,t,n,i){return Ol(e,t,n,Gd,co(e,0,i),co(e,i+1,-1),i)}function ea(e,t){for(var n="",i=Kd(e),a=0;a<i;a++)n+=t(e[a],a,e,t)||"";return n}function hT(e,t,n,i){switch(e.type){case QD:if(e.children.length)break;case JD:case Gd:return e.return=e.return||e.value;case Ly:return"";case Ny:return e.return=e.value+"{"+ea(e.children,i)+"}";case Vd:e.value=e.props.join(",")}return Mr(n=ea(e.children,i))?e.return=e.value+"{"+n+"}":""}function pT(e){var t=Kd(e);return function(n,i,a,u){for(var f="",m=0;m<t;m++)f+=e[m](n,i,a,u)||"";return f}}function gT(e){return function(t){t.root||(t=t.return)&&e(t)}}var mT=function(t,n,i){for(var a=0,u=0;a=u,u=Nr(),a===38&&u===12&&(n[i]=1),!fo(u);)Ln();return ko(t,kn)},yT=function(t,n){var i=-1,a=44;do switch(fo(a)){case 0:a===38&&Nr()===12&&(n[i]=1),t[i]+=mT(kn-1,n,i);break;case 2:t[i]+=Zu(a);break;case 4:if(a===44){t[++i]=Nr()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=Dl(a)}while(a=Ln());return t},vT=function(t,n){return By(yT(Fy(t),n))},Eg=new WeakMap,bT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,a=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Eg.get(i))&&!a){Eg.set(t,!0);for(var u=[],f=vT(n,u),m=i.props,y=0,w=0;y<f.length;y++)for(var S=0;S<m.length;S++,w++)t.props[w]=u[y]?f[y].replace(/&\f/g,m[S]):m[S]+" "+f[y]}}},xT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hy(e,t){switch(nT(e,t)){case 5103:return nt+"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 nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nt+e+al+e+tn+e+e;case 6828:case 4268:return nt+e+tn+e+e;case 6165:return nt+e+tn+"flex-"+e+e;case 5187:return nt+e+rt(e,/(\w+).+(:[^]+)/,nt+"box-$1$2"+tn+"flex-$1$2")+e;case 5443:return nt+e+tn+"flex-item-"+rt(e,/flex-|-self/,"")+e;case 4675:return nt+e+tn+"flex-line-pack"+rt(e,/align-content|flex-|-self/,"")+e;case 5548:return nt+e+tn+rt(e,"shrink","negative")+e;case 5292:return nt+e+tn+rt(e,"basis","preferred-size")+e;case 6060:return nt+"box-"+rt(e,"-grow","")+nt+e+tn+rt(e,"grow","positive")+e;case 4554:return nt+rt(e,/([^-])(transform)/g,"$1"+nt+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,nt+"box-pack:$3"+tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nt+e+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,nt+"$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(Mr(e)-1-t>6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+al+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~id(e,"stretch")?Hy(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Mr(e)-3-(~id(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(zt(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+tn+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return nt+e+tn+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+tn+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+tn+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+tn+e+e}return e}var wT=function(t,n,i,a){if(t.length>-1&&!t.return)switch(t.type){case Gd:t.return=Hy(t.value,t.length);break;case Ny:return ea([Za(t,{value:rt(t.value,"@","@"+nt)})],a);case Vd:if(t.length)return iT(t.props,function(u){switch(rT(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ea([Za(t,{props:[rt(u,/:(read-\w+)/,":"+al+"$1")]})],a);case"::placeholder":return ea([Za(t,{props:[rt(u,/:(plac\w+)/,":"+nt+"input-$1")]}),Za(t,{props:[rt(u,/:(plac\w+)/,":"+al+"$1")]}),Za(t,{props:[rt(u,/:(plac\w+)/,tn+"input-$1")]})],a)}return""})}},_T=[wT],Yy=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(I){var Z=I.getAttribute("data-emotion");Z.indexOf(" ")!==-1&&(document.head.appendChild(I),I.setAttribute("data-s",""))})}var a=t.stylisPlugins||_T,u={},f,m=[];f=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(I){for(var Z=I.getAttribute("data-emotion").split(" "),Y=1;Y<Z.length;Y++)u[Z[Y]]=!0;m.push(I)});var y,w=[bT,xT];{var S,R=[hT,gT(function(I){S.insert(I)})],T=pT(w.concat(a,R)),H=function(Z){return ea(fT(Z),T)};y=function(Z,Y,oe,fe){S=oe,H(Z?Z+"{"+Y.styles+"}":Y.styles),fe&&(F.inserted[Y.name]=!0)}}var F={key:n,sheet:new ZD({key:n,container:f,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:y};return F.sheet.hydrate(m),F},Wy={exports:{}},ot={};/** @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 Yt=typeof Symbol=="function"&&Symbol.for,Xd=Yt?Symbol.for("react.element"):60103,Zd=Yt?Symbol.for("react.portal"):60106,Rl=Yt?Symbol.for("react.fragment"):60107,Al=Yt?Symbol.for("react.strict_mode"):60108,Ml=Yt?Symbol.for("react.profiler"):60114,Pl=Yt?Symbol.for("react.provider"):60109,Il=Yt?Symbol.for("react.context"):60110,Jd=Yt?Symbol.for("react.async_mode"):60111,Ll=Yt?Symbol.for("react.concurrent_mode"):60111,Nl=Yt?Symbol.for("react.forward_ref"):60112,jl=Yt?Symbol.for("react.suspense"):60113,ST=Yt?Symbol.for("react.suspense_list"):60120,$l=Yt?Symbol.for("react.memo"):60115,Fl=Yt?Symbol.for("react.lazy"):60116,kT=Yt?Symbol.for("react.block"):60121,CT=Yt?Symbol.for("react.fundamental"):60117,ET=Yt?Symbol.for("react.responder"):60118,DT=Yt?Symbol.for("react.scope"):60119;function jn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xd:switch(e=e.type,e){case Jd:case Ll:case Rl:case Ml:case Al:case jl:return e;default:switch(e=e&&e.$$typeof,e){case Il:case Nl:case Fl:case $l:case Pl:return e;default:return t}}case Zd:return t}}}function Uy(e){return jn(e)===Ll}ot.AsyncMode=Jd;ot.ConcurrentMode=Ll;ot.ContextConsumer=Il;ot.ContextProvider=Pl;ot.Element=Xd;ot.ForwardRef=Nl;ot.Fragment=Rl;ot.Lazy=Fl;ot.Memo=$l;ot.Portal=Zd;ot.Profiler=Ml;ot.StrictMode=Al;ot.Suspense=jl;ot.isAsyncMode=function(e){return Uy(e)||jn(e)===Jd};ot.isConcurrentMode=Uy;ot.isContextConsumer=function(e){return jn(e)===Il};ot.isContextProvider=function(e){return jn(e)===Pl};ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xd};ot.isForwardRef=function(e){return jn(e)===Nl};ot.isFragment=function(e){return jn(e)===Rl};ot.isLazy=function(e){return jn(e)===Fl};ot.isMemo=function(e){return jn(e)===$l};ot.isPortal=function(e){return jn(e)===Zd};ot.isProfiler=function(e){return jn(e)===Ml};ot.isStrictMode=function(e){return jn(e)===Al};ot.isSuspense=function(e){return jn(e)===jl};ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rl||e===Ll||e===Ml||e===Al||e===jl||e===ST||typeof e=="object"&&e!==null&&(e.$$typeof===Fl||e.$$typeof===$l||e.$$typeof===Pl||e.$$typeof===Il||e.$$typeof===Nl||e.$$typeof===CT||e.$$typeof===ET||e.$$typeof===DT||e.$$typeof===kT)};ot.typeOf=jn;Wy.exports=ot;var TT=Wy.exports,qy=TT,OT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},RT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zy={};zy[qy.ForwardRef]=OT;zy[qy.Memo]=RT;var AT=!0;function MT(e,t,n){var i="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):i+=a+" "}),i}var Vy=function(t,n,i){var a=t.key+"-"+n.name;(i===!1||AT===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},Gy=function(t,n,i){Vy(t,n,i);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var u=n;do t.insert(n===u?"."+a:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function PT(e){for(var t=0,n,i=0,a=e.length;a>=4;++i,a-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 IT={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},LT=/[A-Z]|^ms/g,NT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ky=function(t){return t.charCodeAt(1)===45},Dg=function(t){return t!=null&&typeof t!="boolean"},Lf=Iy(function(e){return Ky(e)?e:e.replace(LT,"-$&").toLowerCase()}),Tg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(NT,function(i,a,u){return Pr={name:a,styles:u,next:Pr},a})}return IT[t]!==1&&!Ky(t)&&typeof n=="number"&&n!==0?n+"px":n};function ho(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Pr={name:n.name,styles:n.styles,next:Pr},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Pr={name:i.name,styles:i.styles,next:Pr},i=i.next;var a=n.styles+";";return a}return jT(e,t,n)}case"function":{if(e!==void 0){var u=Pr,f=n(e);return Pr=u,ho(e,t,f)}break}}if(t==null)return n;var m=t[n];return m!==void 0?m:n}function jT(e,t,n){var i="";if(Array.isArray(n))for(var a=0;a<n.length;a++)i+=ho(e,t,n[a])+";";else for(var u in n){var f=n[u];if(typeof f!="object")t!=null&&t[f]!==void 0?i+=u+"{"+t[f]+"}":Dg(f)&&(i+=Lf(u)+":"+Tg(u,f)+";");else if(Array.isArray(f)&&typeof f[0]=="string"&&(t==null||t[f[0]]===void 0))for(var m=0;m<f.length;m++)Dg(f[m])&&(i+=Lf(u)+":"+Tg(u,f[m])+";");else{var y=ho(e,t,f);switch(u){case"animation":case"animationName":{i+=Lf(u)+":"+y+";";break}default:i+=u+"{"+y+"}"}}}return i}var Og=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pr,Qd=function(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,u="";Pr=void 0;var f=t[0];f==null||f.raw===void 0?(a=!1,u+=ho(i,n,f)):u+=f[0];for(var m=1;m<t.length;m++)u+=ho(i,n,t[m]),a&&(u+=f[m]);Og.lastIndex=0;for(var y="",w;(w=Og.exec(u))!==null;)y+="-"+w[1];var S=PT(u)+y;return{name:S,styles:u,next:Pr}},$T=function(t){return t()},Xy=C.React["useInsertionEffect"]?C.React["useInsertionEffect"]:!1,FT=Xy||$T,Rg=Xy||C.reactExports.useLayoutEffect,Zy=C.reactExports.createContext(typeof HTMLElement<"u"?Yy({key:"css"}):null),BT=Zy.Provider,Jy=function(t){return C.reactExports.forwardRef(function(n,i){var a=C.reactExports.useContext(Zy);return t(n,a,i)})},Bl=C.reactExports.createContext({}),HT=Jy(function(e,t){var n=e.styles,i=Qd([n],void 0,C.reactExports.useContext(Bl)),a=C.reactExports.useRef();return Rg(function(){var u=t.key+"-global",f=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),m=!1,y=document.querySelector('style[data-emotion="'+u+" "+i.name+'"]');return t.sheet.tags.length&&(f.before=t.sheet.tags[0]),y!==null&&(m=!0,y.setAttribute("data-emotion",u),f.hydrate([y])),a.current=[f,m],function(){f.flush()}},[t]),Rg(function(){var u=a.current,f=u[0],m=u[1];if(m){u[1]=!1;return}if(i.next!==void 0&&Gy(t,i.next,!0),f.tags.length){var y=f.tags[f.tags.length-1].nextElementSibling;f.before=y,f.flush()}t.insert("",i,f,!1)},[t,i.name]),null});function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qd(t)}var Hl=function(){var t=Qy.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},YT=GD,WT=function(t){return t!=="theme"},Ag=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YT:WT},Mg=function(t,n,i){var a;if(n){var u=n.shouldForwardProp;a=t.__emotion_forwardProp&&u?function(f){return t.__emotion_forwardProp(f)&&u(f)}:u}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},UT=function(t){var n=t.cache,i=t.serialized,a=t.isStringTag;return Vy(n,i,a),FT(function(){return Gy(n,i,a)}),null},qT=function e(t,n){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,u,f;n!==void 0&&(u=n.label,f=n.target);var m=Mg(t,n,i),y=m||Ag(a),w=!y("as");return function(){var S=arguments,R=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&R.push("label:"+u+";"),S[0]==null||S[0].raw===void 0)R.push.apply(R,S);else{R.push(S[0][0]);for(var T=S.length,H=1;H<T;H++)R.push(S[H],S[0][H])}var F=Jy(function(I,Z,Y){var oe=w&&I.as||a,fe="",ue=[],re=I;if(I.theme==null){re={};for(var ae in I)re[ae]=I[ae];re.theme=C.reactExports.useContext(Bl)}typeof I.className=="string"?fe=MT(Z.registered,ue,I.className):I.className!=null&&(fe=I.className+" ");var h=Qd(R.concat(ue),Z.registered,re);fe+=Z.key+"-"+h.name,f!==void 0&&(fe+=" "+f);var Ae=w&&m===void 0?Ag(oe):y,le={};for(var Je in I)w&&Je==="as"||Ae(Je)&&(le[Je]=I[Je]);return le.className=fe,le.ref=Y,C.reactExports.createElement(C.reactExports.Fragment,null,C.reactExports.createElement(UT,{cache:Z,serialized:h,isStringTag:typeof oe=="string"}),C.reactExports.createElement(oe,le))});return F.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",F.defaultProps=t.defaultProps,F.__emotion_real=F,F.__emotion_base=a,F.__emotion_styles=R,F.__emotion_forwardProp=m,Object.defineProperty(F,"toString",{value:function(){return"."+f}}),F.withComponent=function(I,Z){return e(I,C._extends({},n,Z,{shouldForwardProp:Mg(F,Z,!0)})).apply(void 0,R)},F}},zT=["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"],ad=qT.bind();zT.forEach(function(e){ad[e]=ad(e)});let od;typeof document=="object"&&(od=Yy({key:"css",prepend:!0}));function VT(e){const{injectFirst:t,children:n}=e;return t&&od?C.jsxRuntimeExports.jsx(BT,{value:od,children:n}):n}function GT(e){return e==null||Object.keys(e).length===0}function KT(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?a=>t(GT(a)?n:a):t;return C.jsxRuntimeExports.jsx(HT,{styles:i})}/**
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 XT(e,t){return ad(e,t)}const ZT=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},JT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:KT,StyledEngineProvider:VT,ThemeContext:Bl,css:Qy,default:XT,internal_processStyles:ZT,keyframes:Hl},Symbol.toStringTag,{value:"Module"}));function $i(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 e0(e){if(!$i(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=e0(e[n])}),t}function jr(e,t,n={clone:!0}){const i=n.clone?C._extends({},e):e;return $i(e)&&$i(t)&&Object.keys(t).forEach(a=>{a!=="__proto__"&&($i(t[a])&&a in e&&$i(e[a])?i[a]=jr(e[a],t[a],n):n.clone?i[a]=$i(t[a])?e0(t[a]):t[a]:i[a]=t[a])}),i}const QT=Object.freeze(Object.defineProperty({__proto__:null,default:jr,isPlainObject:$i},Symbol.toStringTag,{value:"Module"})),e2=["values","unit","step"],t2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>C._extends({},n,{[i.key]:i.val}),{})};function t0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,a=C._objectWithoutPropertiesLoose(e,e2),u=t2(t),f=Object.keys(u);function m(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n})`}function y(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${n})`}function w(T,H){const F=f.indexOf(H);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n}) and (max-width:${(F!==-1&&typeof t[f[F]]=="number"?t[f[F]]:H)-i/100}${n})`}function S(T){return f.indexOf(T)+1<f.length?w(T,f[f.indexOf(T)+1]):m(T)}function R(T){const H=f.indexOf(T);return H===0?m(f[1]):H===f.length-1?y(f[H]):w(T,f[f.indexOf(T)+1]).replace("@media","@media not all and")}return C._extends({keys:f,values:u,up:m,down:y,between:w,only:S,not:R,unit:n},a)}const n2={borderRadius:4},r2=n2;function no(e,t){return t?jr(e,t,{clone:!1}):e}const eh={xs:0,sm:600,md:900,lg:1200,xl:1536},Pg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${eh[e]}px)`};function yi(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const u=i.breakpoints||Pg;return t.reduce((f,m,y)=>(f[u.up(u.keys[y])]=n(t[y]),f),{})}if(typeof t=="object"){const u=i.breakpoints||Pg;return Object.keys(t).reduce((f,m)=>{if(Object.keys(u.values||eh).indexOf(m)!==-1){const y=u.up(m);f[y]=n(t[m],m)}else{const y=m;f[y]=t[y]}return f},{})}return n(t)}function i2(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((i,a)=>{const u=e.up(a);return i[u]={},i},{}))||{}}function s2(e,t){return e.reduce((n,i)=>{const a=n[i];return(!a||Object.keys(a).length===0)&&delete n[i],n},t)}function $r(e){if(typeof e!="string")throw new Error(lo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const a2=Object.freeze(Object.defineProperty({__proto__:null,default:$r},Symbol.toStringTag,{value:"Module"}));function Yl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,e);if(i!=null)return i}return t.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function ol(e,t,n,i=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||i:a=Yl(e,n)||i,t&&(a=t(a,i,e)),a}function Ot(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:a}=e,u=f=>{if(f[t]==null)return null;const m=f[t],y=f.theme,w=Yl(y,i)||{};return yi(f,m,R=>{let T=ol(w,a,R);return R===T&&typeof R=="string"&&(T=ol(w,a,`${t}${R==="default"?"":$r(R)}`,R)),n===!1?T:{[n]:T}})};return u.propTypes={},u.filterProps=[t],u}function o2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const u2={m:"margin",p:"padding"},l2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ig={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c2=o2(e=>{if(e.length>2)if(Ig[e])e=Ig[e];else return[e];const[t,n]=e.split(""),i=u2[t],a=l2[n]||"";return Array.isArray(a)?a.map(u=>i+u):[i+a]}),th=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],nh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...th,...nh];function Co(e,t,n,i){var a;const u=(a=Yl(e,t,!1))!=null?a:n;return typeof u=="number"?f=>typeof f=="string"?f:u*f:Array.isArray(u)?f=>typeof f=="string"?f:u[f]:typeof u=="function"?u:()=>{}}function n0(e){return Co(e,"spacing",8)}function Eo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),i=e(n);return t>=0?i:typeof i=="number"?-i:`-${i}`}function f2(e,t){return n=>e.reduce((i,a)=>(i[a]=Eo(t,n),i),{})}function d2(e,t,n,i){if(t.indexOf(n)===-1)return null;const a=c2(n),u=f2(a,i),f=e[n];return yi(e,f,u)}function r0(e,t){const n=n0(e.theme);return Object.keys(e).map(i=>d2(e,t,i,n)).reduce(no,{})}function St(e){return r0(e,th)}St.propTypes={};St.filterProps=th;function kt(e){return r0(e,nh)}kt.propTypes={};kt.filterProps=nh;function h2(e=8){if(e.mui)return e;const t=n0({spacing:e}),n=(...i)=>(i.length===0?[1]:i).map(u=>{const f=t(u);return typeof f=="number"?`${f}px`:f}).join(" ");return n.mui=!0,n}function Wl(...e){const t=e.reduce((i,a)=>(a.filterProps.forEach(u=>{i[u]=a}),i),{}),n=i=>Object.keys(i).reduce((a,u)=>t[u]?no(a,t[u](i)):a,{});return n.propTypes={},n.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function rr(e,t){return Ot({prop:e,themeKey:"borders",transform:t})}const p2=rr("border",Qn),g2=rr("borderTop",Qn),m2=rr("borderRight",Qn),y2=rr("borderBottom",Qn),v2=rr("borderLeft",Qn),b2=rr("borderColor"),x2=rr("borderTopColor"),w2=rr("borderRightColor"),_2=rr("borderBottomColor"),S2=rr("borderLeftColor"),k2=rr("outline",Qn),C2=rr("outlineColor"),Ul=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Co(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:Eo(t,i)});return yi(e,e.borderRadius,n)}return null};Ul.propTypes={};Ul.filterProps=["borderRadius"];Wl(p2,g2,m2,y2,v2,b2,x2,w2,_2,S2,Ul,k2,C2);const ql=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Co(e.theme,"spacing",8),n=i=>({gap:Eo(t,i)});return yi(e,e.gap,n)}return null};ql.propTypes={};ql.filterProps=["gap"];const zl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Co(e.theme,"spacing",8),n=i=>({columnGap:Eo(t,i)});return yi(e,e.columnGap,n)}return null};zl.propTypes={};zl.filterProps=["columnGap"];const Vl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Co(e.theme,"spacing",8),n=i=>({rowGap:Eo(t,i)});return yi(e,e.rowGap,n)}return null};Vl.propTypes={};Vl.filterProps=["rowGap"];const E2=Ot({prop:"gridColumn"}),D2=Ot({prop:"gridRow"}),T2=Ot({prop:"gridAutoFlow"}),O2=Ot({prop:"gridAutoColumns"}),R2=Ot({prop:"gridAutoRows"}),A2=Ot({prop:"gridTemplateColumns"}),M2=Ot({prop:"gridTemplateRows"}),P2=Ot({prop:"gridTemplateAreas"}),I2=Ot({prop:"gridArea"});Wl(ql,zl,Vl,E2,D2,T2,O2,R2,A2,M2,P2,I2);function ta(e,t){return t==="grey"?t:e}const L2=Ot({prop:"color",themeKey:"palette",transform:ta}),N2=Ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ta}),j2=Ot({prop:"backgroundColor",themeKey:"palette",transform:ta});Wl(L2,N2,j2);function In(e){return e<=1&&e!==0?`${e*100}%`:e}const $2=Ot({prop:"width",transform:In}),rh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a;const u=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[n])||eh[n];return u?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${u}${e.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:In(n)}};return yi(e,e.maxWidth,t)}return null};rh.filterProps=["maxWidth"];const F2=Ot({prop:"minWidth",transform:In}),B2=Ot({prop:"height",transform:In}),H2=Ot({prop:"maxHeight",transform:In}),Y2=Ot({prop:"minHeight",transform:In});Ot({prop:"size",cssProperty:"width",transform:In});Ot({prop:"size",cssProperty:"height",transform:In});const W2=Ot({prop:"boxSizing"});Wl($2,rh,F2,B2,H2,Y2,W2);const U2={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:Ul},color:{themeKey:"palette",transform:ta},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ta},backgroundColor:{themeKey:"palette",transform:ta},p:{style:kt},pt:{style:kt},pr:{style:kt},pb:{style:kt},pl:{style:kt},px:{style:kt},py:{style:kt},padding:{style:kt},paddingTop:{style:kt},paddingRight:{style:kt},paddingBottom:{style:kt},paddingLeft:{style:kt},paddingX:{style:kt},paddingY:{style:kt},paddingInline:{style:kt},paddingInlineStart:{style:kt},paddingInlineEnd:{style:kt},paddingBlock:{style:kt},paddingBlockStart:{style:kt},paddingBlockEnd:{style:kt},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},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:ql},rowGap:{style:Vl},columnGap:{style:zl},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:rh},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"}},Do=U2;function q2(...e){const t=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function z2(e,t){return typeof e=="function"?e(t):e}function i0(){function e(n,i,a,u){const f={[n]:i,theme:a},m=u[n];if(!m)return{[n]:i};const{cssProperty:y=n,themeKey:w,transform:S,style:R}=m;if(i==null)return null;if(w==="typography"&&i==="inherit")return{[n]:i};const T=Yl(a,w)||{};return R?R(f):yi(f,i,F=>{let I=ol(T,S,F);return F===I&&typeof F=="string"&&(I=ol(T,S,`${n}${F==="default"?"":$r(F)}`,F)),y===!1?I:{[y]:I}})}function t(n){var i;const{sx:a,theme:u={}}=n||{};if(!a)return null;const f=(i=u.unstable_sxConfig)!=null?i:Do;function m(y){let w=y;if(typeof y=="function")w=y(u);else if(typeof y!="object")return y;if(!w)return null;const S=i2(u.breakpoints),R=Object.keys(S);let T=S;return Object.keys(w).forEach(H=>{const F=z2(w[H],u);if(F!=null)if(typeof F=="object")if(f[H])T=no(T,e(H,F,u,f));else{const I=yi({theme:u},F,Z=>({[H]:Z}));q2(I,F)?T[H]=t({sx:F,theme:u}):T=no(T,I)}else T=no(T,e(H,F,u,f))}),s2(R,T)}return Array.isArray(a)?a.map(m):m(a)}return t}const s0=i0();s0.filterProps=["sx"];const ih=s0;function a0(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const V2=["breakpoints","palette","spacing","shape"];function sh(e={},...t){const{breakpoints:n={},palette:i={},spacing:a,shape:u={}}=e,f=C._objectWithoutPropertiesLoose(e,V2),m=t0(n),y=h2(a);let w=jr({breakpoints:m,direction:"ltr",components:{},palette:C._extends({mode:"light"},i),spacing:y,shape:C._extends({},r2,u)},f);return w.applyStyles=a0,w=t.reduce((S,R)=>jr(S,R),w),w.unstable_sxConfig=C._extends({},Do,f==null?void 0:f.unstable_sxConfig),w.unstable_sx=function(R){return ih({sx:R,theme:this})},w}const G2=Object.freeze(Object.defineProperty({__proto__:null,default:sh,private_createBreakpoints:t0,unstable_applyStyles:a0},Symbol.toStringTag,{value:"Module"}));function K2(e){return Object.keys(e).length===0}function X2(e=null){const t=C.reactExports.useContext(Bl);return!t||K2(t)?e:t}const Z2=sh();function J2(e=Z2){return X2(e)}const Q2=["sx"],eO=e=>{var t,n;const i={systemProps:{},otherProps:{}},a=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Do;return Object.keys(e).forEach(u=>{a[u]?i.systemProps[u]=e[u]:i.otherProps[u]=e[u]}),i};function tO(e){const{sx:t}=e,n=C._objectWithoutPropertiesLoose(e,Q2),{systemProps:i,otherProps:a}=eO(n);let u;return Array.isArray(t)?u=[i,...t]:typeof t=="function"?u=(...f)=>{const m=t(...f);return $i(m)?C._extends({},i,m):i}:u=C._extends({},i,t),C._extends({},a,{sx:u})}const nO=Object.freeze(Object.defineProperty({__proto__:null,default:ih,extendSxProp:tO,unstable_createStyleFunctionSx:i0,unstable_defaultSxConfig:Do},Symbol.toStringTag,{value:"Module"})),Lg=e=>e,rO=()=>{let e=Lg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Lg}}},iO=rO(),sO=iO,aO={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 Gl(e,t,n="Mui"){const i=aO[t];return i?`${n}-${i}`:`${sO.generate(e)}-${t}`}function Kl(e,t,n="Mui"){const i={};return t.forEach(a=>{i[a]=Gl(e,a,n)}),i}var o0={exports:{}},ut={};/**
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 ah=Symbol.for("react.element"),oh=Symbol.for("react.portal"),Xl=Symbol.for("react.fragment"),Zl=Symbol.for("react.strict_mode"),Jl=Symbol.for("react.profiler"),Ql=Symbol.for("react.provider"),ec=Symbol.for("react.context"),oO=Symbol.for("react.server_context"),tc=Symbol.for("react.forward_ref"),nc=Symbol.for("react.suspense"),rc=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),sc=Symbol.for("react.lazy"),uO=Symbol.for("react.offscreen"),u0;u0=Symbol.for("react.module.reference");function ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ah:switch(e=e.type,e){case Xl:case Jl:case Zl:case nc:case rc:return e;default:switch(e=e&&e.$$typeof,e){case oO:case ec:case tc:case sc:case ic:case Ql:return e;default:return t}}case oh:return t}}}ut.ContextConsumer=ec;ut.ContextProvider=Ql;ut.Element=ah;ut.ForwardRef=tc;ut.Fragment=Xl;ut.Lazy=sc;ut.Memo=ic;ut.Portal=oh;ut.Profiler=Jl;ut.StrictMode=Zl;ut.Suspense=nc;ut.SuspenseList=rc;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return ir(e)===ec};ut.isContextProvider=function(e){return ir(e)===Ql};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ah};ut.isForwardRef=function(e){return ir(e)===tc};ut.isFragment=function(e){return ir(e)===Xl};ut.isLazy=function(e){return ir(e)===sc};ut.isMemo=function(e){return ir(e)===ic};ut.isPortal=function(e){return ir(e)===oh};ut.isProfiler=function(e){return ir(e)===Jl};ut.isStrictMode=function(e){return ir(e)===Zl};ut.isSuspense=function(e){return ir(e)===nc};ut.isSuspenseList=function(e){return ir(e)===rc};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xl||e===Jl||e===Zl||e===nc||e===rc||e===uO||typeof e=="object"&&e!==null&&(e.$$typeof===sc||e.$$typeof===ic||e.$$typeof===Ql||e.$$typeof===ec||e.$$typeof===tc||e.$$typeof===u0||e.getModuleId!==void 0)};ut.typeOf=ir;o0.exports=ut;var Ng=o0.exports;const lO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function l0(e){const t=`${e}`.match(lO);return t&&t[1]||""}function c0(e,t=""){return e.displayName||e.name||l0(e)||t}function jg(e,t,n){const i=c0(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function cO(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return c0(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ng.ForwardRef:return jg(e,e.render,"ForwardRef");case Ng.Memo:return jg(e,e.type,"memo");default:return}}}const fO=Object.freeze(Object.defineProperty({__proto__:null,default:cO,getFunctionName:l0},Symbol.toStringTag,{value:"Module"}));function f0(e,t){const n=C._extends({},t);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))n[i]=C._extends({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},u=t[i];n[i]={},!u||!Object.keys(u)?n[i]=a:!a||!Object.keys(a)?n[i]=u:(n[i]=C._extends({},u),Object.keys(a).forEach(f=>{n[i][f]=f0(a[f],u[f])}))}else n[i]===void 0&&(n[i]=e[i])}),n}function dO(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:f0(t.components[n].defaultProps,i)}function hO({props:e,name:t,defaultTheme:n,themeId:i}){let a=J2(n);return i&&(a=a[i]||a),dO({theme:a,name:t,props:e})}const pO=typeof window<"u"?C.reactExports.useLayoutEffect:C.reactExports.useEffect,gO=pO;function mO(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const yO=Object.freeze(Object.defineProperty({__proto__:null,default:mO},Symbol.toStringTag,{value:"Module"}));function vO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function bO({controlled:e,default:t,name:n,state:i="value"}){const{current:a}=C.reactExports.useRef(e!==void 0),[u,f]=C.reactExports.useState(t),m=a?e:u,y=C.reactExports.useCallback(w=>{a||f(w)},[]);return[m,y]}function Yu(e){const t=C.reactExports.useRef(e);return gO(()=>{t.current=e}),C.reactExports.useRef((...n)=>(0,t.current)(...n)).current}function $g(...e){return C.reactExports.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{vO(n,t)})},e)}const Fg={};function xO(e,t){const n=C.reactExports.useRef(Fg);return n.current===Fg&&(n.current=e(t)),n}const wO=[];function _O(e){C.reactExports.useEffect(e,wO)}class ac{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ac}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function SO(){const e=xO(ac.create).current;return _O(e.disposeEffect),e}let oc=!0,ud=!1;const kO=new ac,CO={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 EO(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&CO[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function DO(e){e.metaKey||e.altKey||e.ctrlKey||(oc=!0)}function Nf(){oc=!1}function TO(){this.visibilityState==="hidden"&&ud&&(oc=!0)}function OO(e){e.addEventListener("keydown",DO,!0),e.addEventListener("mousedown",Nf,!0),e.addEventListener("pointerdown",Nf,!0),e.addEventListener("touchstart",Nf,!0),e.addEventListener("visibilitychange",TO,!0)}function RO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return oc||EO(t)}function AO(){const e=C.reactExports.useCallback(a=>{a!=null&&OO(a.ownerDocument)},[]),t=C.reactExports.useRef(!1);function n(){return t.current?(ud=!0,kO.start(100,()=>{ud=!1}),t.current=!1,!0):!1}function i(a){return RO(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:i,onBlur:n,ref:e}}function uh(e,t,n=void 0){const i={};return Object.keys(e).forEach(a=>{i[a]=e[a].reduce((u,f)=>{if(f){const m=t(f);m!==""&&u.push(m),n&&n[f]&&u.push(n[f])}return u},[]).join(" ")}),i}function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function MO(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(po(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PO(e){var t=MO(e,"string");return po(t)=="symbol"?t:String(t)}function IO(e,t){return C._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Rt={},d0={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(d0);var h0=d0.exports;const LO=C.getAugmentedNamespace(zD),NO=C.getAugmentedNamespace(yO);var p0=h0;Object.defineProperty(Rt,"__esModule",{value:!0});var Bg=Rt.alpha=x0;Rt.blend=VO;Rt.colorChannel=void 0;var g0=Rt.darken=ch;Rt.decomposeColor=er;Rt.emphasize=zO;var jO=Rt.getContrastRatio=YO;Rt.getLuminance=ul;Rt.hexToRgb=y0;Rt.hslToRgb=b0;var m0=Rt.lighten=fh;Rt.private_safeAlpha=WO;Rt.private_safeColorChannel=void 0;Rt.private_safeDarken=UO;Rt.private_safeEmphasize=w0;Rt.private_safeLighten=qO;Rt.recomposeColor=ua;Rt.rgbToHex=HO;var Hg=p0(LO),$O=p0(NO);function lh(e,t=0,n=1){return(0,$O.default)(e,t,n)}function y0(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function FO(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(y0(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Hg.default)(9,e));let i=e.substring(t+1,e.length-1),a;if(n==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,Hg.default)(10,a))}else i=i.split(",");return i=i.map(u=>parseFloat(u)),{type:n,values:i,colorSpace:a}}const v0=e=>{const t=er(e);return t.values.slice(0,3).map((n,i)=>t.type.indexOf("hsl")!==-1&&i!==0?`${n}%`:n).join(" ")};Rt.colorChannel=v0;const BO=(e,t)=>{try{return v0(e)}catch{return e}};Rt.private_safeColorChannel=BO;function ua(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.indexOf("rgb")!==-1?i=i.map((a,u)=>u<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.indexOf("color")!==-1?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function HO(e){if(e.indexOf("#")===0)return e;const{values:t}=er(e);return`#${t.map((n,i)=>FO(i===3?Math.round(255*n):n)).join("")}`}function b0(e){e=er(e);const{values:t}=e,n=t[0],i=t[1]/100,a=t[2]/100,u=i*Math.min(a,1-a),f=(w,S=(w+n/30)%12)=>a-u*Math.max(Math.min(S-3,9-S,1),-1);let m="rgb";const y=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return e.type==="hsla"&&(m+="a",y.push(t[3])),ua({type:m,values:y})}function ul(e){e=er(e);let t=e.type==="hsl"||e.type==="hsla"?er(b0(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function YO(e,t){const n=ul(e),i=ul(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function x0(e,t){return e=er(e),t=lh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ua(e)}function WO(e,t,n){try{return x0(e,t)}catch{return e}}function ch(e,t){if(e=er(e),t=lh(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 n=0;n<3;n+=1)e.values[n]*=1-t;return ua(e)}function UO(e,t,n){try{return ch(e,t)}catch{return e}}function fh(e,t){if(e=er(e),t=lh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ua(e)}function qO(e,t,n){try{return fh(e,t)}catch{return e}}function zO(e,t=.15){return ul(e)>.5?ch(e,t):fh(e,t)}function w0(e,t,n){try{return w0(e,t)}catch{return e}}function VO(e,t,n,i=1){const a=(y,w)=>Math.round((y**(1/i)*(1-n)+w**(1/i)*n)**i),u=er(e),f=er(t),m=[a(u.values[0],f.values[0]),a(u.values[1],f.values[1]),a(u.values[2],f.values[2])];return ua({type:"rgb",values:m})}const GO=["mode","contrastThreshold","tonalOffset"],Yg={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:uo.white,default:uo.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}},jf={text:{primary:uo.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:uo.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 Wg(e,t,n,i){const a=i.light||i,u=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=m0(e.main,a):t==="dark"&&(e.dark=g0(e.main,u)))}function KO(e="light"){return e==="dark"?{main:Us[200],light:Us[50],dark:Us[400]}:{main:Us[700],light:Us[400],dark:Us[800]}}function XO(e="light"){return e==="dark"?{main:Ws[200],light:Ws[50],dark:Ws[400]}:{main:Ws[500],light:Ws[300],dark:Ws[700]}}function ZO(e="light"){return e==="dark"?{main:Ys[500],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[400],dark:Ys[800]}}function JO(e="light"){return e==="dark"?{main:qs[400],light:qs[300],dark:qs[700]}:{main:qs[700],light:qs[500],dark:qs[900]}}function QO(e="light"){return e==="dark"?{main:zs[400],light:zs[300],dark:zs[700]}:{main:zs[800],light:zs[500],dark:zs[900]}}function eR(e="light"){return e==="dark"?{main:Xa[400],light:Xa[300],dark:Xa[700]}:{main:"#ed6c02",light:Xa[500],dark:Xa[900]}}function tR(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,a=C._objectWithoutPropertiesLoose(e,GO),u=e.primary||KO(t),f=e.secondary||XO(t),m=e.error||ZO(t),y=e.info||JO(t),w=e.success||QO(t),S=e.warning||eR(t);function R(I){return jO(I,jf.text.primary)>=n?jf.text.primary:Yg.text.primary}const T=({color:I,name:Z,mainShade:Y=500,lightShade:oe=300,darkShade:fe=700})=>{if(I=C._extends({},I),!I.main&&I[Y]&&(I.main=I[Y]),!I.hasOwnProperty("main"))throw new Error(lo(11,Z?` (${Z})`:"",Y));if(typeof I.main!="string")throw new Error(lo(12,Z?` (${Z})`:"",JSON.stringify(I.main)));return Wg(I,"light",oe,i),Wg(I,"dark",fe,i),I.contrastText||(I.contrastText=R(I.main)),I},H={dark:jf,light:Yg};return jr(C._extends({common:C._extends({},uo),mode:t,primary:T({color:u,name:"primary"}),secondary:T({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:m,name:"error"}),warning:T({color:S,name:"warning"}),info:T({color:y,name:"info"}),success:T({color:w,name:"success"}),grey:qD,contrastThreshold:n,getContrastText:R,augmentColor:T,tonalOffset:i},H[t]),a)}const nR=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rR(e){return Math.round(e*1e5)/1e5}const Ug={textTransform:"uppercase"},qg='"Roboto", "Helvetica", "Arial", sans-serif';function iR(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:i=qg,fontSize:a=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:m=500,fontWeightBold:y=700,htmlFontSize:w=16,allVariants:S,pxToRem:R}=n,T=C._objectWithoutPropertiesLoose(n,nR),H=a/14,F=R||(Y=>`${Y/w*H}rem`),I=(Y,oe,fe,ue,re)=>C._extends({fontFamily:i,fontWeight:Y,fontSize:F(oe),lineHeight:fe},i===qg?{letterSpacing:`${rR(ue/oe)}em`}:{},re,S),Z={h1:I(u,96,1.167,-1.5),h2:I(u,60,1.2,-.5),h3:I(f,48,1.167,0),h4:I(f,34,1.235,.25),h5:I(f,24,1.334,0),h6:I(m,20,1.6,.15),subtitle1:I(f,16,1.75,.15),subtitle2:I(m,14,1.57,.1),body1:I(f,16,1.5,.15),body2:I(f,14,1.43,.15),button:I(m,14,1.75,.4,Ug),caption:I(f,12,1.66,.4),overline:I(f,12,2.66,1,Ug),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jr(C._extends({htmlFontSize:w,pxToRem:F,fontFamily:i,fontSize:a,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:m,fontWeightBold:y},Z),T,{clone:!1})}const sR=.2,aR=.14,oR=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${aR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oR})`].join(",")}const uR=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],lR=uR,cR=["duration","easing","delay"],fR={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)"},dR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zg(e){return`${Math.round(e)}ms`}function hR(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pR(e){const t=C._extends({},fR,e.easing),n=C._extends({},dR,e.duration),i=(a=["all"],u={})=>{const{duration:f=n.standard,easing:m=t.easeInOut,delay:y=0}=u;return C._objectWithoutPropertiesLoose(u,cR),(Array.isArray(a)?a:[a]).map(w=>`${w} ${typeof f=="string"?f:zg(f)} ${m} ${typeof y=="string"?y:zg(y)}`).join(",")};return C._extends({getAutoHeightDuration:hR,create:i},e,{easing:t,duration:n})}const gR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mR=gR,yR=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vR(e={},...t){const{mixins:n={},palette:i={},transitions:a={},typography:u={}}=e,f=C._objectWithoutPropertiesLoose(e,yR);if(e.vars)throw new Error(lo(18));const m=tR(i),y=sh(e);let w=jr(y,{mixins:IO(y.breakpoints,n),palette:m,shadows:lR.slice(),typography:iR(m,u),transitions:pR(a),zIndex:C._extends({},mR)});return w=jr(w,f),w=t.reduce((S,R)=>jr(S,R),w),w.unstable_sxConfig=C._extends({},Do,f==null?void 0:f.unstable_sxConfig),w.unstable_sx=function(R){return ih({sx:R,theme:this})},w}const bR=vR(),_0=bR;function dh({props:e,name:t}){return hO({props:e,name:t,defaultTheme:_0,themeId:Py})}var To={};const xR=C.getAugmentedNamespace(C._extends$1),wR=C.getAugmentedNamespace(C.objectWithoutPropertiesLoose),_R=C.getAugmentedNamespace(JT),SR=C.getAugmentedNamespace(QT),kR=C.getAugmentedNamespace(a2),CR=C.getAugmentedNamespace(fO),ER=C.getAugmentedNamespace(G2),DR=C.getAugmentedNamespace(nO);var la=h0;Object.defineProperty(To,"__esModule",{value:!0});var TR=To.default=YR,OR=To.shouldForwardProp=Qu;To.systemDefaultTheme=void 0;var Kn=la(xR),ld=la(wR),Vg=NR(_R),RR=SR;la(kR);la(CR);var AR=la(ER),MR=la(DR);const PR=["ownerState"],IR=["variants"],LR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function S0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(S0=function(i){return i?n:t})(e)}function NR(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=S0(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&Object.prototype.hasOwnProperty.call(e,u)){var f=a?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(i,u,f):i[u]=e[u]}return i.default=e,n&&n.set(e,i),i}function jR(e){return Object.keys(e).length===0}function $R(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const FR=To.systemDefaultTheme=(0,AR.default)(),BR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wu({defaultTheme:e,theme:t,themeId:n}){return jR(t)?e:t[n]||t}function HR(e){return e?(t,n)=>n[e]:null}function el(e,t){let{ownerState:n}=t,i=(0,ld.default)(t,PR);const a=typeof e=="function"?e((0,Kn.default)({ownerState:n},i)):e;if(Array.isArray(a))return a.flatMap(u=>el(u,(0,Kn.default)({ownerState:n},i)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:u=[]}=a;let m=(0,ld.default)(a,IR);return u.forEach(y=>{let w=!0;typeof y.props=="function"?w=y.props((0,Kn.default)({ownerState:n},i,n)):Object.keys(y.props).forEach(S=>{(n==null?void 0:n[S])!==y.props[S]&&i[S]!==y.props[S]&&(w=!1)}),w&&(Array.isArray(m)||(m=[m]),m.push(typeof y.style=="function"?y.style((0,Kn.default)({ownerState:n},i,n)):y.style))}),m}return a}function YR(e={}){const{themeId:t,defaultTheme:n=FR,rootShouldForwardProp:i=Qu,slotShouldForwardProp:a=Qu}=e,u=f=>(0,MR.default)((0,Kn.default)({},f,{theme:Wu((0,Kn.default)({},f,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(f,m={})=>{(0,Vg.internal_processStyles)(f,re=>re.filter(ae=>!(ae!=null&&ae.__mui_systemSx)));const{name:y,slot:w,skipVariantsResolver:S,skipSx:R,overridesResolver:T=HR(BR(w))}=m,H=(0,ld.default)(m,LR),F=S!==void 0?S:w&&w!=="Root"&&w!=="root"||!1,I=R||!1;let Z,Y=Qu;w==="Root"||w==="root"?Y=i:w?Y=a:$R(f)&&(Y=void 0);const oe=(0,Vg.default)(f,(0,Kn.default)({shouldForwardProp:Y,label:Z},H)),fe=re=>typeof re=="function"&&re.__emotion_real!==re||(0,RR.isPlainObject)(re)?ae=>el(re,(0,Kn.default)({},ae,{theme:Wu({theme:ae.theme,defaultTheme:n,themeId:t})})):re,ue=(re,...ae)=>{let h=fe(re);const Ae=ae?ae.map(fe):[];y&&T&&Ae.push(je=>{const Ie=Wu((0,Kn.default)({},je,{defaultTheme:n,themeId:t}));if(!Ie.components||!Ie.components[y]||!Ie.components[y].styleOverrides)return null;const ke=Ie.components[y].styleOverrides,ze={};return Object.entries(ke).forEach(([U,te])=>{ze[U]=el(te,(0,Kn.default)({},je,{theme:Ie}))}),T(je,ze)}),y&&!F&&Ae.push(je=>{var Ie;const ke=Wu((0,Kn.default)({},je,{defaultTheme:n,themeId:t})),ze=ke==null||(Ie=ke.components)==null||(Ie=Ie[y])==null?void 0:Ie.variants;return el({variants:ze},(0,Kn.default)({},je,{theme:ke}))}),I||Ae.push(u);const le=Ae.length-ae.length;if(Array.isArray(re)&&le>0){const je=new Array(le).fill("");h=[...re,...je],h.raw=[...re.raw,...je]}const Je=oe(h,...Ae);return f.muiName&&(Je.muiName=f.muiName),Je};return oe.withConfig&&(ue.withConfig=oe.withConfig),ue}}const k0=e=>OR(e)&&e!=="classes",WR=TR({themeId:Py,defaultTheme:_0,rootShouldForwardProp:k0}),Yr=WR,Gg=C.React$1.createContext(null);function UR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hh(e,t){var n=function(u){return t&&C.reactExports.isValidElement(u)?t(u):u},i=Object.create(null);return e&&C.reactExports.Children.map(e,function(a){return a}).forEach(function(a){i[a.key]=n(a)}),i}function qR(e,t){e=e||{},t=t||{};function n(S){return S in t?t[S]:e[S]}var i=Object.create(null),a=[];for(var u in e)u in t?a.length&&(i[u]=a,a=[]):a.push(u);var f,m={};for(var y in t){if(i[y])for(f=0;f<i[y].length;f++){var w=i[y][f];m[i[y][f]]=n(w)}m[y]=n(y)}for(f=0;f<a.length;f++)m[a[f]]=n(a[f]);return m}function ds(e,t,n){return n[t]!=null?n[t]:e.props[t]}function zR(e,t){return hh(e.children,function(n){return C.reactExports.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ds(n,"appear",e),enter:ds(n,"enter",e),exit:ds(n,"exit",e)})})}function VR(e,t,n){var i=hh(e.children),a=qR(t,i);return Object.keys(a).forEach(function(u){var f=a[u];if(C.reactExports.isValidElement(f)){var m=u in t,y=u in i,w=t[u],S=C.reactExports.isValidElement(w)&&!w.props.in;y&&(!m||S)?a[u]=C.reactExports.cloneElement(f,{onExited:n.bind(null,f),in:!0,exit:ds(f,"exit",e),enter:ds(f,"enter",e)}):!y&&m&&!S?a[u]=C.reactExports.cloneElement(f,{in:!1}):y&&m&&C.reactExports.isValidElement(w)&&(a[u]=C.reactExports.cloneElement(f,{onExited:n.bind(null,f),in:w.props.in,exit:ds(f,"exit",e),enter:ds(f,"enter",e)}))}}),a}var GR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},KR={component:"div",childFactory:function(t){return t}},ph=function(e){C._inheritsLoose(t,e);function t(i,a){var u;u=e.call(this,i,a)||this;var f=u.handleExited.bind(UR(u));return u.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},u}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,u){var f=u.children,m=u.handleExited,y=u.firstRender;return{children:y?zR(a,m):VR(a,f,m),firstRender:!1}},n.handleExited=function(a,u){var f=hh(this.props.children);a.key in f||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(m){var y=C._extends({},m.children);return delete y[a.key],{children:y}}))},n.render=function(){var a=this.props,u=a.component,f=a.childFactory,m=C._objectWithoutPropertiesLoose(a,["component","childFactory"]),y=this.state.contextValue,w=GR(this.state.children).map(f);return delete m.appear,delete m.enter,delete m.exit,u===null?C.React$1.createElement(Gg.Provider,{value:y},w):C.React$1.createElement(Gg.Provider,{value:y},C.React$1.createElement(u,m,w))},t}(C.React$1.Component);ph.propTypes={};ph.defaultProps=KR;const XR=ph;function ZR(e){const{className:t,classes:n,pulsate:i=!1,rippleX:a,rippleY:u,rippleSize:f,in:m,onExited:y,timeout:w}=e,[S,R]=C.reactExports.useState(!1),T=Xn(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),H={width:f,height:f,top:-(f/2)+u,left:-(f/2)+a},F=Xn(n.child,S&&n.childLeaving,i&&n.childPulsate);return!m&&!S&&R(!0),C.reactExports.useEffect(()=>{if(!m&&y!=null){const I=setTimeout(y,w);return()=>{clearTimeout(I)}}},[y,m,w]),C.jsxRuntimeExports.jsx("span",{className:T,style:H,children:C.jsxRuntimeExports.jsx("span",{className:F})})}const JR=Kl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zn=JR,QR=["center","classes","className"];let uc=e=>e,Kg,Xg,Zg,Jg;const cd=550,eA=80,tA=Hl(Kg||(Kg=uc`
32
+ 0% {
33
+ transform: scale(0);
34
+ opacity: 0.1;
35
+ }
36
+
37
+ 100% {
38
+ transform: scale(1);
39
+ opacity: 0.3;
40
+ }
41
+ `)),nA=Hl(Xg||(Xg=uc`
42
+ 0% {
43
+ opacity: 1;
44
+ }
45
+
46
+ 100% {
47
+ opacity: 0;
48
+ }
49
+ `)),rA=Hl(Zg||(Zg=uc`
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
+ `)),iA=Yr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sA=Yr(ZR,{name:"MuiTouchRipple",slot:"Ripple"})(Jg||(Jg=uc`
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
+ `),Zn.rippleVisible,tA,cd,({theme:e})=>e.transitions.easing.easeInOut,Zn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Zn.child,Zn.childLeaving,nA,cd,({theme:e})=>e.transitions.easing.easeInOut,Zn.childPulsate,rA,({theme:e})=>e.transitions.easing.easeInOut),aA=C.reactExports.forwardRef(function(t,n){const i=dh({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:u={},className:f}=i,m=C._objectWithoutPropertiesLoose(i,QR),[y,w]=C.reactExports.useState([]),S=C.reactExports.useRef(0),R=C.reactExports.useRef(null);C.reactExports.useEffect(()=>{R.current&&(R.current(),R.current=null)},[y]);const T=C.reactExports.useRef(!1),H=SO(),F=C.reactExports.useRef(null),I=C.reactExports.useRef(null),Z=C.reactExports.useCallback(ue=>{const{pulsate:re,rippleX:ae,rippleY:h,rippleSize:Ae,cb:le}=ue;w(Je=>[...Je,C.jsxRuntimeExports.jsx(sA,{classes:{ripple:Xn(u.ripple,Zn.ripple),rippleVisible:Xn(u.rippleVisible,Zn.rippleVisible),ripplePulsate:Xn(u.ripplePulsate,Zn.ripplePulsate),child:Xn(u.child,Zn.child),childLeaving:Xn(u.childLeaving,Zn.childLeaving),childPulsate:Xn(u.childPulsate,Zn.childPulsate)},timeout:cd,pulsate:re,rippleX:ae,rippleY:h,rippleSize:Ae},S.current)]),S.current+=1,R.current=le},[u]),Y=C.reactExports.useCallback((ue={},re={},ae=()=>{})=>{const{pulsate:h=!1,center:Ae=a||re.pulsate,fakeElement:le=!1}=re;if((ue==null?void 0:ue.type)==="mousedown"&&T.current){T.current=!1;return}(ue==null?void 0:ue.type)==="touchstart"&&(T.current=!0);const Je=le?null:I.current,je=Je?Je.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ie,ke,ze;if(Ae||ue===void 0||ue.clientX===0&&ue.clientY===0||!ue.clientX&&!ue.touches)Ie=Math.round(je.width/2),ke=Math.round(je.height/2);else{const{clientX:U,clientY:te}=ue.touches&&ue.touches.length>0?ue.touches[0]:ue;Ie=Math.round(U-je.left),ke=Math.round(te-je.top)}if(Ae)ze=Math.sqrt((2*je.width**2+je.height**2)/3),ze%2===0&&(ze+=1);else{const U=Math.max(Math.abs((Je?Je.clientWidth:0)-Ie),Ie)*2+2,te=Math.max(Math.abs((Je?Je.clientHeight:0)-ke),ke)*2+2;ze=Math.sqrt(U**2+te**2)}ue!=null&&ue.touches?F.current===null&&(F.current=()=>{Z({pulsate:h,rippleX:Ie,rippleY:ke,rippleSize:ze,cb:ae})},H.start(eA,()=>{F.current&&(F.current(),F.current=null)})):Z({pulsate:h,rippleX:Ie,rippleY:ke,rippleSize:ze,cb:ae})},[a,Z,H]),oe=C.reactExports.useCallback(()=>{Y({},{pulsate:!0})},[Y]),fe=C.reactExports.useCallback((ue,re)=>{if(H.clear(),(ue==null?void 0:ue.type)==="touchend"&&F.current){F.current(),F.current=null,H.start(0,()=>{fe(ue,re)});return}F.current=null,w(ae=>ae.length>0?ae.slice(1):ae),R.current=re},[H]);return C.reactExports.useImperativeHandle(n,()=>({pulsate:oe,start:Y,stop:fe}),[oe,Y,fe]),C.jsxRuntimeExports.jsx(iA,C._extends({className:Xn(Zn.root,u.root,f),ref:I},m,{children:C.jsxRuntimeExports.jsx(XR,{component:null,exit:!0,children:y})}))}),oA=aA;function uA(e){return Gl("MuiButtonBase",e)}const lA=Kl("MuiButtonBase",["root","disabled","focusVisible"]),cA=lA,fA=["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"],dA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:a}=e,f=uh({root:["root",t&&"disabled",n&&"focusVisible"]},uA,a);return n&&i&&(f.root+=` ${i}`),f},hA=Yr("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"},[`&.${cA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pA=C.reactExports.forwardRef(function(t,n){const i=dh({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:f,className:m,component:y="button",disabled:w=!1,disableRipple:S=!1,disableTouchRipple:R=!1,focusRipple:T=!1,LinkComponent:H="a",onBlur:F,onClick:I,onContextMenu:Z,onDragLeave:Y,onFocus:oe,onFocusVisible:fe,onKeyDown:ue,onKeyUp:re,onMouseDown:ae,onMouseLeave:h,onMouseUp:Ae,onTouchEnd:le,onTouchMove:Je,onTouchStart:je,tabIndex:Ie=0,TouchRippleProps:ke,touchRippleRef:ze,type:U}=i,te=C._objectWithoutPropertiesLoose(i,fA),he=C.reactExports.useRef(null),ce=C.reactExports.useRef(null),Ce=$g(ce,ze),{isFocusVisibleRef:_e,onFocus:ft,onBlur:vt,ref:dt}=AO(),[Ct,Gt]=C.reactExports.useState(!1);w&&Ct&&Gt(!1),C.reactExports.useImperativeHandle(a,()=>({focusVisible:()=>{Gt(!0),he.current.focus()}}),[]);const[sr,qi]=C.reactExports.useState(!1);C.reactExports.useEffect(()=>{qi(!0)},[]);const Wr=sr&&!S&&!w;C.reactExports.useEffect(()=>{Ct&&T&&!S&&sr&&ce.current.pulsate()},[S,T,Ct,sr]);function jt(Re,zr,wi=R){return Yu(Bn=>(zr&&zr(Bn),!wi&&ce.current&&ce.current[Re](Bn),!0))}const dn=jt("start",ae),xi=jt("stop",Z),Cn=jt("stop",Y),Ur=jt("stop",Ae),Kt=jt("stop",Re=>{Ct&&Re.preventDefault(),h&&h(Re)}),qr=jt("start",je),zi=jt("stop",le),Xt=jt("stop",Je),hn=jt("stop",Re=>{vt(Re),_e.current===!1&&Gt(!1),F&&F(Re)},!1),fa=Yu(Re=>{he.current||(he.current=Re.currentTarget),ft(Re),_e.current===!0&&(Gt(!0),fe&&fe(Re)),oe&&oe(Re)}),ar=()=>{const Re=he.current;return y&&y!=="button"&&!(Re.tagName==="A"&&Re.href)},Wt=C.reactExports.useRef(!1),$t=Yu(Re=>{T&&!Wt.current&&Ct&&ce.current&&Re.key===" "&&(Wt.current=!0,ce.current.stop(Re,()=>{ce.current.start(Re)})),Re.target===Re.currentTarget&&ar()&&Re.key===" "&&Re.preventDefault(),ue&&ue(Re),Re.target===Re.currentTarget&&ar()&&Re.key==="Enter"&&!w&&(Re.preventDefault(),I&&I(Re))}),$n=Yu(Re=>{T&&Re.key===" "&&ce.current&&Ct&&!Re.defaultPrevented&&(Wt.current=!1,ce.current.stop(Re,()=>{ce.current.pulsate(Re)})),re&&re(Re),I&&Re.target===Re.currentTarget&&ar()&&Re.key===" "&&!Re.defaultPrevented&&I(Re)});let Fn=y;Fn==="button"&&(te.href||te.to)&&(Fn=H);const ye={};Fn==="button"?(ye.type=U===void 0?"button":U,ye.disabled=w):(!te.href&&!te.to&&(ye.role="button"),w&&(ye["aria-disabled"]=w));const Ft=$g(n,dt,he),br=C._extends({},i,{centerRipple:u,component:y,disabled:w,disableRipple:S,disableTouchRipple:R,focusRipple:T,tabIndex:Ie,focusVisible:Ct}),xr=dA(br);return C.jsxRuntimeExports.jsxs(hA,C._extends({as:Fn,className:Xn(xr.root,m),ownerState:br,onBlur:hn,onClick:I,onContextMenu:xi,onFocus:fa,onKeyDown:$t,onKeyUp:$n,onMouseDown:dn,onMouseLeave:Kt,onMouseUp:Ur,onDragLeave:Cn,onTouchEnd:zi,onTouchMove:Xt,onTouchStart:qr,ref:Ft,tabIndex:w?-1:Ie,type:U},ye,te,{children:[f,Wr?C.jsxRuntimeExports.jsx(oA,C._extends({ref:Ce,center:u},ke)):null]}))}),gA=pA,mA=C.reactExports.createContext(void 0),yA=mA;function vA(){return C.reactExports.useContext(yA)}function bA(e){return Gl("PrivateSwitchBase",e)}Kl("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const xA=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],wA=e=>{const{classes:t,checked:n,disabled:i,edge:a}=e,u={root:["root",n&&"checked",i&&"disabled",a&&`edge${$r(a)}`],input:["input"]};return uh(u,bA,t)},_A=Yr(gA)(({ownerState:e})=>C._extends({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),SA=Yr("input",{shouldForwardProp:k0})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kA=C.reactExports.forwardRef(function(t,n){const{autoFocus:i,checked:a,checkedIcon:u,className:f,defaultChecked:m,disabled:y,disableFocusRipple:w=!1,edge:S=!1,icon:R,id:T,inputProps:H,inputRef:F,name:I,onBlur:Z,onChange:Y,onFocus:oe,readOnly:fe,required:ue=!1,tabIndex:re,type:ae,value:h}=t,Ae=C._objectWithoutPropertiesLoose(t,xA),[le,Je]=bO({controlled:a,default:!!m,name:"SwitchBase",state:"checked"}),je=vA(),Ie=Ce=>{oe&&oe(Ce),je&&je.onFocus&&je.onFocus(Ce)},ke=Ce=>{Z&&Z(Ce),je&&je.onBlur&&je.onBlur(Ce)},ze=Ce=>{if(Ce.nativeEvent.defaultPrevented)return;const _e=Ce.target.checked;Je(_e),Y&&Y(Ce,_e)};let U=y;je&&typeof U>"u"&&(U=je.disabled);const te=ae==="checkbox"||ae==="radio",he=C._extends({},t,{checked:le,disabled:U,disableFocusRipple:w,edge:S}),ce=wA(he);return C.jsxRuntimeExports.jsxs(_A,C._extends({component:"span",className:Xn(ce.root,f),centerRipple:!0,focusRipple:!w,disabled:U,tabIndex:null,role:void 0,onFocus:Ie,onBlur:ke,ownerState:he,ref:n},Ae,{children:[C.jsxRuntimeExports.jsx(SA,C._extends({autoFocus:i,checked:a,defaultChecked:m,className:ce.input,disabled:U,id:te?T:void 0,name:I,onChange:ze,readOnly:fe,ref:F,required:ue,ownerState:he,tabIndex:re,type:ae},ae==="checkbox"&&h===void 0?{}:{value:h},H)),le?u:R]}))}),CA=kA;function EA(e){return Gl("MuiSwitch",e)}const DA=Kl("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),fn=DA,TA=["className","color","edge","size","sx"],OA=e=>{const{classes:t,edge:n,size:i,color:a,checked:u,disabled:f}=e,m={root:["root",n&&`edge${$r(n)}`,`size${$r(i)}`],switchBase:["switchBase",`color${$r(a)}`,u&&"checked",f&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},y=uh(m,EA,t);return C._extends({},t,y)},RA=Yr("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${$r(n.edge)}`],t[`size${$r(n.size)}`]]}})(({ownerState:e})=>C._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,[`& .${fn.thumb}`]:{width:16,height:16},[`& .${fn.switchBase}`]:{padding:4,[`&.${fn.checked}`]:{transform:"translateX(16px)"}}})),AA=Yr(CA,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${fn.input}`]:t.input},n.color!=="default"&&t[`color${$r(n.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}),[`&.${fn.checked}`]:{transform:"translateX(20px)"},[`&.${fn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${fn.checked} + .${fn.track}`]:{opacity:.5},[`&.${fn.disabled} + .${fn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${fn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>C._extends({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Bg(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${fn.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})`:Bg(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?m0(e.palette[t.color].main,.62):g0(e.palette[t.color].main,.55)}`}},[`&.${fn.checked} + .${fn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),MA=Yr("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}`})),PA=Yr("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%"})),IA=C.reactExports.forwardRef(function(t,n){const i=dh({props:t,name:"MuiSwitch"}),{className:a,color:u="primary",edge:f=!1,size:m="medium",sx:y}=i,w=C._objectWithoutPropertiesLoose(i,TA),S=C._extends({},i,{color:u,edge:f,size:m}),R=OA(S),T=C.jsxRuntimeExports.jsx(PA,{className:R.thumb,ownerState:S});return C.jsxRuntimeExports.jsxs(RA,{className:Xn(R.root,a),sx:y,ownerState:S,children:[C.jsxRuntimeExports.jsx(AA,C._extends({type:"checkbox",icon:T,checkedIcon:T,ref:n,ownerState:S},w,{classes:C._extends({},R,{root:R.switchBase})})),C.jsxRuntimeExports.jsx(MA,{className:R.track,ownerState:S})]})}),LA=IA;const NA={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};let jA=class fd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||NA,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new fd(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fd(this.logger,t)}};var Lr=new jA;class lc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(n)||0;this.observers[i].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(f=>{let[m,y]=f;for(let w=0;w<y;w++)m(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(f=>{let[m,y]=f;for(let w=0;w<y;w++)m.apply(m,[t,...i])})}}function Ja(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});return n.resolve=e,n.reject=t,n}function Qg(e){return e==null?"":""+e}function $A(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}const FA=/###/g;function ro(e,t,n){function i(m){return m&&m.indexOf("###")>-1?m.replace(FA,"."):m}function a(){return!e||typeof e=="string"}const u=typeof t!="string"?t:t.split(".");let f=0;for(;f<u.length-1;){if(a())return{};const m=i(u[f]);!e[m]&&n&&(e[m]=new n),Object.prototype.hasOwnProperty.call(e,m)?e=e[m]:e={},++f}return a()?{}:{obj:e,k:i(u[f])}}function em(e,t,n){const{obj:i,k:a}=ro(e,t,Object);if(i!==void 0||t.length===1){i[a]=n;return}let u=t[t.length-1],f=t.slice(0,t.length-1),m=ro(e,f,Object);for(;m.obj===void 0&&f.length;)u=`${f[f.length-1]}.${u}`,f=f.slice(0,f.length-1),m=ro(e,f,Object),m&&m.obj&&typeof m.obj[`${m.k}.${u}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${u}`]=n}function BA(e,t,n,i){const{obj:a,k:u}=ro(e,t,Object);a[u]=a[u]||[],i&&(a[u]=a[u].concat(n)),i||a[u].push(n)}function ll(e,t){const{obj:n,k:i}=ro(e,t);if(n)return n[i]}function HA(e,t,n){const i=ll(e,n);return i!==void 0?i:ll(t,n)}function C0(e,t,n){for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):C0(e[i],t[i],n):e[i]=t[i]);return e}function Vs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var YA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function WA(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>YA[t]):e}class UA{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const qA=[" ",",","?","!",";"],zA=new UA(20);function VA(e,t,n){t=t||"",n=n||"";const i=qA.filter(f=>t.indexOf(f)<0&&n.indexOf(f)<0);if(i.length===0)return!0;const a=zA.getRegExp(`(${i.map(f=>f==="?"?"\\?":f).join("|")})`);let u=!a.test(e);if(!u){const f=e.indexOf(n);f>0&&!a.test(e.substring(0,f))&&(u=!0)}return u}function dd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(n);let a=e;for(let u=0;u<i.length;){if(!a||typeof a!="object")return;let f,m="";for(let y=u;y<i.length;++y)if(y!==u&&(m+=n),m+=i[y],f=a[m],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&y<i.length-1)continue;u+=y-u+1;break}a=f}return a}function cl(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class tm extends lc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,f=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;t.indexOf(".")>-1?m=t.split("."):(m=[t,n],i&&(Array.isArray(i)?m.push(...i):typeof i=="string"&&u?m.push(...i.split(u)):m.push(i)));const y=ll(this.data,m);return!y&&!n&&!i&&t.indexOf(".")>-1&&(t=m[0],n=m[1],i=m.slice(2).join(".")),y||!f||typeof i!="string"?y:dd(this.data&&this.data[t]&&this.data[t][n],i,u)}addResource(t,n,i,a){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let m=[t,n];i&&(m=m.concat(f?i.split(f):i)),t.indexOf(".")>-1&&(m=t.split("."),a=n,n=m[1]),this.addNamespaces(n),em(this.data,m,a),u.silent||this.emit("added",t,n,i,a)}addResources(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const u in i)(typeof i[u]=="string"||Object.prototype.toString.apply(i[u])==="[object Array]")&&this.addResource(t,n,u,i[u],{silent:!0});a.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,a,u){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},m=[t,n];t.indexOf(".")>-1&&(m=t.split("."),a=i,i=n,n=m[1]),this.addNamespaces(n);let y=ll(this.data,m)||{};f.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?C0(y,i,u):y={...y,...i},em(this.data,m,y),f.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var E0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,a){return e.forEach(u=>{this.processors[u]&&(t=this.processors[u].process(t,n,i,a))}),t}};const nm={};class fl extends lc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Lr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let u=n.ns||this.options.defaultNS||[];const f=i&&t.indexOf(i)>-1,m=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!VA(t,i,a);if(f&&!m){const y=t.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:t,namespaces:u};const w=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(w[0])>-1)&&(u=w.shift()),t=w.join(a)}return typeof u=="string"&&(u=[u]),{key:t,namespaces:u}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,u=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:f,namespaces:m}=this.extractFromKey(t[t.length-1],n),y=m[m.length-1],w=n.lng||this.language,S=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(w&&w.toLowerCase()==="cimode"){if(S){const ue=n.nsSeparator||this.options.nsSeparator;return a?{res:`${y}${ue}${f}`,usedKey:f,exactUsedKey:f,usedLng:w,usedNS:y,usedParams:this.getUsedParamsDetails(n)}:`${y}${ue}${f}`}return a?{res:f,usedKey:f,exactUsedKey:f,usedLng:w,usedNS:y,usedParams:this.getUsedParamsDetails(n)}:f}const R=this.resolve(t,n);let T=R&&R.res;const H=R&&R.usedKey||f,F=R&&R.exactUsedKey||f,I=Object.prototype.toString.apply(T),Z=["[object Number]","[object Function]","[object RegExp]"],Y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,oe=!this.i18nFormat||this.i18nFormat.handleAsObject;if(oe&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&Z.indexOf(I)<0&&!(typeof Y=="string"&&I==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,T,{...n,ns:m}):`key '${f} (${this.language})' returned an object instead of string.`;return a?(R.res=ue,R.usedParams=this.getUsedParamsDetails(n),R):ue}if(u){const ue=I==="[object Array]",re=ue?[]:{},ae=ue?F:H;for(const h in T)if(Object.prototype.hasOwnProperty.call(T,h)){const Ae=`${ae}${u}${h}`;re[h]=this.translate(Ae,{...n,joinArrays:!1,ns:m}),re[h]===Ae&&(re[h]=T[h])}T=re}}else if(oe&&typeof Y=="string"&&I==="[object Array]")T=T.join(Y),T&&(T=this.extendTranslation(T,t,n,i));else{let ue=!1,re=!1;const ae=n.count!==void 0&&typeof n.count!="string",h=fl.hasDefaultValue(n),Ae=ae?this.pluralResolver.getSuffix(w,n.count,n):"",le=n.ordinal&&ae?this.pluralResolver.getSuffix(w,n.count,{ordinal:!1}):"",Je=ae&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=Je&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${Ae}`]||n[`defaultValue${le}`]||n.defaultValue;!this.isValidLookup(T)&&h&&(ue=!0,T=je),this.isValidLookup(T)||(re=!0,T=f);const ke=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&re?void 0:T,ze=h&&je!==T&&this.options.updateMissing;if(re||ue||ze){if(this.logger.log(ze?"updateKey":"missingKey",w,y,f,ze?je:T),u){const ce=this.resolve(f,{...n,keySeparator:!1});ce&&ce.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let ce=0;ce<te.length;ce++)U.push(te[ce]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(n.lng||this.language):U.push(n.lng||this.language);const he=(ce,Ce,_e)=>{const ft=h&&_e!==T?_e:ke;this.options.missingKeyHandler?this.options.missingKeyHandler(ce,y,Ce,ft,ze,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ce,y,Ce,ft,ze,n),this.emit("missingKey",ce,y,Ce,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ae?U.forEach(ce=>{const Ce=this.pluralResolver.getSuffixes(ce,n);Je&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(_e=>{he([ce],f+_e,n[`defaultValue${_e}`]||je)})}):he(U,f,je))}T=this.extendTranslation(T,t,n,R,i),re&&T===f&&this.options.appendNamespaceToMissingKey&&(T=`${y}:${f}`),(re||ue)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}:${f}`:f,ue?T:void 0):T=this.options.parseMissingKeyHandler(T))}return a?(R.res=T,R.usedParams=this.getUsedParamsDetails(n),R):T}extendTranslation(t,n,i,a,u){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const w=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(w){const T=t.match(this.interpolator.nestingRegexp);S=T&&T.length}let R=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(R={...this.options.interpolation.defaultVariables,...R}),t=this.interpolator.interpolate(t,R,i.lng||this.language,i),w){const T=t.match(this.interpolator.nestingRegexp),H=T&&T.length;S<H&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(i.lng=a.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,H=new Array(T),F=0;F<T;F++)H[F]=arguments[F];return u&&u[0]===H[0]&&!i.context?(f.logger.warn(`It seems you are nesting recursively key: ${H[0]} in key: ${n[0]}`),null):f.translate(...H,n)},i)),i.interpolation&&this.interpolator.reset()}const m=i.postProcess||this.options.postProcess,y=typeof m=="string"?[m]:m;return t!=null&&y&&y.length&&i.applyPostProcessor!==!1&&(t=E0.handle(y,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,u,f,m;return typeof t=="string"&&(t=[t]),t.forEach(y=>{if(this.isValidLookup(i))return;const w=this.extractFromKey(y,n),S=w.key;a=S;let R=w.namespaces;this.options.fallbackNS&&(R=R.concat(this.options.fallbackNS));const T=n.count!==void 0&&typeof n.count!="string",H=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),F=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);R.forEach(Z=>{this.isValidLookup(i)||(m=Z,!nm[`${I[0]}-${Z}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(m)&&(nm[`${I[0]}-${Z}`]=!0,this.logger.warn(`key "${a}" for languages "${I.join(", ")}" won't get resolved as namespace "${m}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(Y=>{if(this.isValidLookup(i))return;f=Y;const oe=[S];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(oe,S,Y,Z,n);else{let ue;T&&(ue=this.pluralResolver.getSuffix(Y,n.count,n));const re=`${this.options.pluralSeparator}zero`,ae=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(oe.push(S+ue),n.ordinal&&ue.indexOf(ae)===0&&oe.push(S+ue.replace(ae,this.options.pluralSeparator)),H&&oe.push(S+re)),F){const h=`${S}${this.options.contextSeparator}${n.context}`;oe.push(h),T&&(oe.push(h+ue),n.ordinal&&ue.indexOf(ae)===0&&oe.push(h+ue.replace(ae,this.options.pluralSeparator)),H&&oe.push(h+re))}}let fe;for(;fe=oe.pop();)this.isValidLookup(i)||(u=fe,i=this.getResource(Y,Z,fe,n))}))})}),{res:i,usedKey:a,exactUsedKey:u,usedLng:f,usedNS:m}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,a):this.resourceStore.getResource(t,n,i,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string";let a=i?t.replace:t;if(i&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const u of n)delete a[u]}return a}static hasDefaultValue(t){const n="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}}function $f(e){return e.charAt(0).toUpperCase()+e.slice(1)}class rm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Lr.create("languageUtils")}getScriptPartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$f(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=$f(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=$f(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(u=>{if(u===a)return u;if(!(u.indexOf("-")<0&&a.indexOf("-")<0)&&(u.indexOf("-")>0&&a.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===a||u.indexOf(a)===0&&a.length>1))return u})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],u=f=>{f&&(this.isSupportedCode(f)?a.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(t))):typeof t=="string"&&u(this.formatLanguageCode(t)),i.forEach(f=>{a.indexOf(f)<0&&u(this.formatLanguageCode(f))}),a}}let GA=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],KA={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const XA=["v1","v2","v3"],ZA=["v4"],im={zero:0,one:1,two:2,few:3,many:4,other:5};function JA(){const e={};return GA.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:KA[t.fc]}})}),e}class QA{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Lr.create("pluralResolver"),(!this.options.compatibilityJSON||ZA.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=JA()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(cl(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,u)=>im[a]-im[u]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const u=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!XA.includes(this.options.compatibilityJSON)}}function sm(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=HA(e,t,n);return!u&&a&&typeof n=="string"&&(u=dd(e,n,i),u===void 0&&(u=dd(t,n,i))),u}class eM{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:WA,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Vs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Vs(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Vs(n.nestingPrefix):n.nestingPrefixEscaped||Vs("$t("),this.nestingSuffix=n.nestingSuffix?Vs(n.nestingSuffix):n.nestingSuffixEscaped||Vs(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,a){let u,f,m;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function w(F){return F.replace(/\$/g,"$$$$")}const S=F=>{if(F.indexOf(this.formatSeparator)<0){const oe=sm(n,y,F,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(oe,void 0,i,{...a,...n,interpolationkey:F}):oe}const I=F.split(this.formatSeparator),Z=I.shift().trim(),Y=I.join(this.formatSeparator).trim();return this.format(sm(n,y,Z,this.options.keySeparator,this.options.ignoreJSONStructure),Y,i,{...a,...n,interpolationkey:Z})};this.resetRegExp();const R=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,T=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:F=>w(F)},{regex:this.regexp,safeValue:F=>this.escapeValue?w(this.escape(F)):w(F)}].forEach(F=>{for(m=0;u=F.regex.exec(t);){const I=u[1].trim();if(f=S(I),f===void 0)if(typeof R=="function"){const Y=R(t,u,a);f=typeof Y=="string"?Y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,I))f="";else if(T){f=u[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),f="";else typeof f!="string"&&!this.useRawValueToEscape&&(f=Qg(f));const Z=F.safeValue(f);if(t=t.replace(u[0],Z),T?(F.regex.lastIndex+=f.length,F.regex.lastIndex-=u[0].length):F.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,u,f;function m(y,w){const S=this.nestingOptionsSeparator;if(y.indexOf(S)<0)return y;const R=y.split(new RegExp(`${S}[ ]*{`));let T=`{${R[1]}`;y=R[0],T=this.interpolate(T,f);const H=T.match(/'/g),F=T.match(/"/g);(H&&H.length%2===0&&!F||F.length%2!==0)&&(T=T.replace(/'/g,'"'));try{f=JSON.parse(T),w&&(f={...w,...f})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,I),`${y}${S}${T}`}return delete f.defaultValue,y}for(;a=this.nestingRegexp.exec(t);){let y=[];f={...i},f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;let w=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const S=a[1].split(this.formatSeparator).map(R=>R.trim());a[1]=S.shift(),y=S,w=!0}if(u=n(m.call(this,a[1].trim(),f),f),u&&a[0]===t&&typeof u!="string")return u;typeof u!="string"&&(u=Qg(u)),u||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),u=""),w&&(u=y.reduce((S,R)=>this.format(S,R,i.lng,{...i,interpolationkey:a[1].trim()}),u.trim())),t=t.replace(a[0],u),this.regexp.lastIndex=0}return t}}function tM(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(f=>{if(!f)return;const[m,...y]=f.split(":"),w=y.join(":").trim().replace(/^'+|'+$/g,"");n[m.trim()]||(n[m.trim()]=w),w==="false"&&(n[m.trim()]=!1),w==="true"&&(n[m.trim()]=!0),isNaN(w)||(n[m.trim()]=parseInt(w,10))})}return{formatName:t,formatOptions:n}}function Gs(e){const t={};return function(i,a,u){const f=a+JSON.stringify(u);let m=t[f];return m||(m=e(cl(a),u),t[f]=m),m(i)}}class nM{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lr.create("formatter"),this.options=t,this.formats={number:Gs((n,i)=>{const a=new Intl.NumberFormat(n,{...i});return u=>a.format(u)}),currency:Gs((n,i)=>{const a=new Intl.NumberFormat(n,{...i,style:"currency"});return u=>a.format(u)}),datetime:Gs((n,i)=>{const a=new Intl.DateTimeFormat(n,{...i});return u=>a.format(u)}),relativetime:Gs((n,i)=>{const a=new Intl.RelativeTimeFormat(n,{...i});return u=>a.format(u,i.range||"day")}),list:Gs((n,i)=>{const a=new Intl.ListFormat(n,{...i});return u=>a.format(u)})},this.init(t)}init(t){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Gs(n)}format(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((m,y)=>{const{formatName:w,formatOptions:S}=tM(y);if(this.formats[w]){let R=m;try{const T=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},H=T.locale||T.lng||a.locale||a.lng||i;R=this.formats[w](m,H,{...S,...a,...T})}catch(T){this.logger.warn(T)}return R}else this.logger.warn(`there was no format function for ${w}`);return m},t)}}function rM(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class iM extends lc{constructor(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=Lr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,a.backend,a)}queueLoad(t,n,i,a){const u={},f={},m={},y={};return t.forEach(w=>{let S=!0;n.forEach(R=>{const T=`${w}|${R}`;!i.reload&&this.store.hasResourceBundle(w,R)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?f[T]===void 0&&(f[T]=!0):(this.state[T]=1,S=!1,f[T]===void 0&&(f[T]=!0),u[T]===void 0&&(u[T]=!0),y[R]===void 0&&(y[R]=!0)))}),S||(m[w]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(y)}}loaded(t,n,i){const a=t.split("|"),u=a[0],f=a[1];n&&this.emit("failedLoading",u,f,n),i&&this.store.addResourceBundle(u,f,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const m={};this.queue.forEach(y=>{BA(y.loaded,[u],f),rM(y,t),n&&y.errors.push(n),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(w=>{m[w]||(m[w]={});const S=y.loaded[w];S.length&&S.forEach(R=>{m[w][R]===void 0&&(m[w][R]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(y=>!y.done)}read(t,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!t.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:a,wait:u,callback:f});return}this.readingCalls++;const m=(w,S)=>{if(this.readingCalls--,this.waitingReads.length>0){const R=this.waitingReads.shift();this.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(w&&S&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,a+1,u*2,f)},u);return}f(w,S)},y=this.backend[i].bind(this.backend);if(y.length===2){try{const w=y(t,n);w&&typeof w.then=="function"?w.then(S=>m(null,S)).catch(m):m(null,w)}catch(w){m(w)}return}return y(t,n,m)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const u=this.queueLoad(t,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(f=>{this.loadOne(f)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,(f,m)=>{f&&this.logger.warn(`${n}loading namespace ${u} for language ${a} failed`,f),!f&&m&&this.logger.log(`${n}loaded namespace ${u} for language ${a}`,m),this.loaded(t,f,m)})}saveMissing(t,n,i,a,u){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},m=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const y={...f,isUpdate:u},w=this.backend.create.bind(this.backend);if(w.length<6)try{let S;w.length===5?S=w(t,n,i,a,y):S=w(t,n,i,a),S&&typeof S.then=="function"?S.then(R=>m(null,R)).catch(m):m(null,S)}catch(S){m(S)}else w(t,n,i,a,m,y)}!t||!t[0]||this.store.addResource(t[0],n,i,a)}}}function am(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const i=t[3]||t[2];Object.keys(i).forEach(a=>{n[a]=i[a]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function om(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Uu(){}function sM(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class go extends lc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=om(t),this.services={},this.logger=Lr,this.modules={external:[]},sM(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=am();this.options={...a,...this.options,...om(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function u(S){return S?typeof S=="function"?new S:S:null}if(!this.options.isClone){this.modules.logger?Lr.init(u(this.modules.logger),this.options):Lr.init(null,this.options);let S;this.modules.formatter?S=this.modules.formatter:typeof Intl<"u"&&(S=nM);const R=new rm(this.options);this.store=new tm(this.options.resources,this.options);const T=this.services;T.logger=Lr,T.resourceStore=this.store,T.languageUtils=R,T.pluralResolver=new QA(R,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),S&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(T.formatter=u(S),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new eM(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new iM(u(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(H){for(var F=arguments.length,I=new Array(F>1?F-1:0),Z=1;Z<F;Z++)I[Z-1]=arguments[Z];t.emit(H,...I)}),this.modules.languageDetector&&(T.languageDetector=u(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=u(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new fl(this.services,this.options),this.translator.on("*",function(H){for(var F=arguments.length,I=new Array(F>1?F-1:0),Z=1;Z<F;Z++)I[Z-1]=arguments[Z];t.emit(H,...I)}),this.modules.external.forEach(H=>{H.init&&H.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Uu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(S=>{this[S]=function(){return t.store[S](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(S=>{this[S]=function(){return t.store[S](...arguments),t}});const y=Ja(),w=()=>{const S=(R,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),y.resolve(T),i(R,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return S(null,this.t.bind(this));this.changeLanguage(this.options.lng,S)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),y}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uu;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const u=[],f=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(w=>{w!=="cimode"&&u.indexOf(w)<0&&u.push(w)})};a?f(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>f(y)),this.options.preload&&this.options.preload.forEach(m=>f(m)),this.services.backendConnector.load(u,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(m)})}else i(null)}reloadResources(t,n,i){const a=Ja();return t||(t=this.languages),n||(n=this.options.ns),i||(i=Uu),this.services.backendConnector.reload(t,n,u=>{a.resolve(),i(u)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&E0.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;const a=Ja();this.emit("languageChanging",t);const u=y=>{this.language=y,this.languages=this.services.languageUtils.toResolveHierarchy(y),this.resolvedLanguage=void 0,this.setResolvedLanguage(y)},f=(y,w)=>{w?(u(w),this.translator.changeLanguage(w),this.isLanguageChangingTo=void 0,this.emit("languageChanged",w),this.logger.log("languageChanged",w)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),n&&n(y,function(){return i.t(...arguments)})},m=y=>{!t&&!y&&this.services.languageDetector&&(y=[]);const w=typeof y=="string"?y:this.services.languageUtils.getBestMatchFromCodes(y);w&&(this.language||u(w),this.translator.language||this.translator.changeLanguage(w),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(w)),this.loadResources(w,S=>{f(S,w)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(t),a}getFixedT(t,n,i){var a=this;const u=function(f,m){let y;if(typeof m!="object"){for(var w=arguments.length,S=new Array(w>2?w-2:0),R=2;R<w;R++)S[R-2]=arguments[R];y=a.options.overloadTranslationOptionHandler([f,m].concat(S))}else y={...m};y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix=y.keyPrefix||i||u.keyPrefix;const T=a.options.keySeparator||".";let H;return y.keyPrefix&&Array.isArray(f)?H=f.map(F=>`${y.keyPrefix}${T}${F}`):H=y.keyPrefix?`${y.keyPrefix}${T}${f}`:f,a.t(H,y)};return typeof t=="string"?u.lng=t:u.lngs=t,u.ns=n,u.keyPrefix=i,u}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const f=(m,y)=>{const w=this.services.backendConnector.state[`${m}|${y}`];return w===-1||w===2};if(n.precheck){const m=n.precheck(this,f);if(m!==void 0)return m}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(i,t)&&(!a||f(u,t)))}loadNamespaces(t,n){const i=Ja();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){const i=Ja();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],u=t.filter(f=>a.indexOf(f)<0);return u.length?(this.options.preload=a.concat(u),this.loadResources(f=>{i.resolve(),n&&n(f)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new rm(am());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new go(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uu;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},u=new go(a);return(t.debug!==void 0||t.prefix!==void 0)&&(u.logger=u.logger.clone(t)),["store","services","language"].forEach(m=>{u[m]=this[m]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},i&&(u.store=new tm(this.store.data,a),u.services.resourceStore=u.store),u.translator=new fl(u.services,a),u.translator.on("*",function(m){for(var y=arguments.length,w=new Array(y>1?y-1:0),S=1;S<y;S++)w[S-1]=arguments[S];u.emit(m,...w)}),u.init(a,n),u.translator.options=a,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Vt=go.createInstance();Vt.createInstance=go.createInstance;Vt.createInstance;Vt.dir;Vt.init;Vt.loadResources;Vt.reloadResources;Vt.use;Vt.changeLanguage;Vt.getFixedT;Vt.t;Vt.exists;Vt.setDefaultNamespace;Vt.hasLoadedNamespace;Vt.loadNamespaces;Vt.loadLanguages;var dl={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
+ */dl.exports;(function(e,t){(function(){var n,i="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",m="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",w=500,S="__lodash_placeholder__",R=1,T=2,H=4,F=1,I=2,Z=1,Y=2,oe=4,fe=8,ue=16,re=32,ae=64,h=128,Ae=256,le=512,Je=30,je="...",Ie=800,ke=16,ze=1,U=2,te=3,he=1/0,ce=9007199254740991,Ce=17976931348623157e292,_e=0/0,ft=4294967295,vt=ft-1,dt=ft>>>1,Ct=[["ary",h],["bind",Z],["bindKey",Y],["curry",fe],["curryRight",ue],["flip",le],["partial",re],["partialRight",ae],["rearg",Ae]],Gt="[object Arguments]",sr="[object Array]",qi="[object AsyncFunction]",Wr="[object Boolean]",jt="[object Date]",dn="[object DOMException]",xi="[object Error]",Cn="[object Function]",Ur="[object GeneratorFunction]",Kt="[object Map]",qr="[object Number]",zi="[object Null]",Xt="[object Object]",hn="[object Promise]",fa="[object Proxy]",ar="[object RegExp]",Wt="[object Set]",$t="[object String]",$n="[object Symbol]",Fn="[object Undefined]",ye="[object WeakMap]",Ft="[object WeakSet]",br="[object ArrayBuffer]",xr="[object DataView]",Re="[object Float32Array]",zr="[object Float64Array]",wi="[object Int8Array]",Bn="[object Int16Array]",pn="[object Int32Array]",or="[object Uint8Array]",wr="[object Uint8ClampedArray]",da="[object Uint16Array]",_i="[object Uint32Array]",Oo=/\b__p \+= '';/g,Ro=/\b(__p \+=) '' \+/g,pc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,Si=/[&<>"']/g,Ao=RegExp(Vr.source),Mo=RegExp(Si.source),gn=/<%-([\s\S]+?)%>/g,Zt=/<%([\s\S]+?)%>/g,_s=/<%=([\s\S]+?)%>/g,gc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Po=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_r=/[\\^$.*+?()[\]{}|]/g,ki=RegExp(_r.source),Vi=/^\s+/,Ss=/\s/,mc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yc=/\{\n\/\* \[wrapped with (.+)\] \*/,vc=/,? & /,Lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bc=/[()=,{}\[\]\/\s]/,xc=/\\(\\)?/g,No=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jo=/\w*$/,Ci=/^[-+]0x[0-9a-f]+$/i,$o=/^0b[01]+$/i,ha=/^\[object .+?Constructor\]$/,pa=/^0o[0-7]+$/i,ks=/^(?:0|[1-9]\d*)$/,Fo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cs=/($^)/,Gi=/['\n\r\u2028\u2029\\]/g,Ki="\\ud800-\\udfff",Bo="\\u0300-\\u036f",Ho="\\ufe20-\\ufe2f",Yo="\\u20d0-\\u20ff",Wo=Bo+Ho+Yo,Es="\\u2700-\\u27bf",Uo="a-z\\xdf-\\xf6\\xf8-\\xff",wc="\\xac\\xb1\\xd7\\xf7",qo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zo="\\u2000-\\u206f",ga=" \\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",ma="A-Z\\xc0-\\xd6\\xd8-\\xde",Ut="\\ufe0e\\ufe0f",Gr=wc+qo+zo+ga,Ei="['’]",_c="["+Ki+"]",Vo="["+Gr+"]",Di="["+Wo+"]",ya="\\d+",Ds="["+Es+"]",va="["+Uo+"]",Go="[^"+Ki+Gr+ya+Es+Uo+ma+"]",ba="\\ud83c[\\udffb-\\udfff]",En="(?:"+Di+"|"+ba+")",xa="[^"+Ki+"]",Kr="(?:\\ud83c[\\udde6-\\uddff]){2}",wa="[\\ud800-\\udbff][\\udc00-\\udfff]",Ti="["+ma+"]",Sr="\\u200d",kr="(?:"+va+"|"+Go+")",_a="(?:"+Ti+"|"+Go+")",Ko="(?:"+Ei+"(?:d|ll|m|re|s|t|ve))?",Oi="(?:"+Ei+"(?:D|LL|M|RE|S|T|VE))?",Sa=En+"?",Ts="["+Ut+"]?",Xo="(?:"+Sr+"(?:"+[xa,Kr,wa].join("|")+")"+Ts+Sa+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ka=Ts+Sa+Xo,kc="(?:"+[Ds,Kr,wa].join("|")+")"+ka,Cc="(?:"+[xa+Di+"?",Di,Kr,wa,_c].join("|")+")",Ca=RegExp(Ei,"g"),Ec=RegExp(Di,"g"),Ea=RegExp(ba+"(?="+ba+")|"+Cc+ka,"g"),Dc=RegExp([Ti+"?"+va+"+"+Ko+"(?="+[Vo,Ti,"$"].join("|")+")",_a+"+"+Oi+"(?="+[Vo,Ti+kr,"$"].join("|")+")",Ti+"?"+kr+"+"+Ko,Ti+"+"+Oi,Sc,Zo,ya,kc].join("|"),"g"),Tc=RegExp("["+Sr+Ki+Wo+Ut+"]"),Oc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rc=["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"],Ac=-1,lt={};lt[Re]=lt[zr]=lt[wi]=lt[Bn]=lt[pn]=lt[or]=lt[wr]=lt[da]=lt[_i]=!0,lt[Gt]=lt[sr]=lt[br]=lt[Wr]=lt[xr]=lt[jt]=lt[xi]=lt[Cn]=lt[Kt]=lt[qr]=lt[Xt]=lt[ar]=lt[Wt]=lt[$t]=lt[ye]=!1;var it={};it[Gt]=it[sr]=it[br]=it[xr]=it[Wr]=it[jt]=it[Re]=it[zr]=it[wi]=it[Bn]=it[pn]=it[Kt]=it[qr]=it[Xt]=it[ar]=it[Wt]=it[$t]=it[$n]=it[or]=it[wr]=it[da]=it[_i]=!0,it[xi]=it[Cn]=it[ye]=!1;var Jo={À:"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"},Da={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eu={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ta=parseFloat,Mc=parseInt,tu=typeof C.commonjsGlobal=="object"&&C.commonjsGlobal&&C.commonjsGlobal.Object===Object&&C.commonjsGlobal,Pc=typeof self=="object"&&self&&self.Object===Object&&self,bt=tu||Pc||Function("return this")(),Os=t&&!t.nodeType&&t,ur=Os&&!0&&e&&!e.nodeType&&e,nu=ur&&ur.exports===Os,Oa=nu&&tu.process,mn=function(){try{var D=ur&&ur.require&&ur.require("util").types;return D||Oa&&Oa.binding&&Oa.binding("util")}catch{}}(),o=mn&&mn.isArrayBuffer,c=mn&&mn.isDate,d=mn&&mn.isMap,g=mn&&mn.isRegExp,v=mn&&mn.isSet,b=mn&&mn.isTypedArray;function _(D,N,L){switch(L.length){case 0:return D.call(N);case 1:return D.call(N,L[0]);case 2:return D.call(N,L[0],L[1]);case 3:return D.call(N,L[0],L[1],L[2])}return D.apply(N,L)}function P(D,N,L,X){for(var J=-1,ve=D==null?0:D.length;++J<ve;){var be=D[J];N(X,be,L(be),D)}return X}function A(D,N){for(var L=-1,X=D==null?0:D.length;++L<X&&N(D[L],L,D)!==!1;);return D}function B(D,N){for(var L=D==null?0:D.length;L--&&N(D[L],L,D)!==!1;);return D}function G(D,N){for(var L=-1,X=D==null?0:D.length;++L<X;)if(!N(D[L],L,D))return!1;return!0}function K(D,N){for(var L=-1,X=D==null?0:D.length,J=0,ve=[];++L<X;){var be=D[L];N(be,L,D)&&(ve[J++]=be)}return ve}function z(D,N){var L=D==null?0:D.length;return!!L&&at(D,N,0)>-1}function ie(D,N,L){for(var X=-1,J=D==null?0:D.length;++X<J;)if(L(N,D[X]))return!0;return!1}function me(D,N){for(var L=-1,X=D==null?0:D.length,J=Array(X);++L<X;)J[L]=N(D[L],L,D);return J}function Le(D,N){for(var L=-1,X=N.length,J=D.length;++L<X;)D[J+L]=N[L];return D}function Pe(D,N,L,X){var J=-1,ve=D==null?0:D.length;for(X&&ve&&(L=D[++J]);++J<ve;)L=N(L,D[J],J,D);return L}function Mt(D,N,L,X){var J=D==null?0:D.length;for(X&&J&&(L=D[--J]);J--;)L=N(L,D[J],J,D);return L}function xt(D,N){for(var L=-1,X=D==null?0:D.length;++L<X;)if(N(D[L],L,D))return!0;return!1}var Hn=Xr("length");function Yn(D){return D.split("")}function Ue(D){return D.match(Lo)||[]}function Cr(D,N,L){var X;return L(D,function(J,ve,be){if(N(J,ve,be))return X=ve,!1}),X}function qe(D,N,L,X){for(var J=D.length,ve=L+(X?1:-1);X?ve--:++ve<J;)if(N(D[ve],ve,D))return ve;return-1}function at(D,N,L){return N===N?Nc(D,N,L):qe(D,Rs,L)}function Xi(D,N,L,X){for(var J=L-1,ve=D.length;++J<ve;)if(X(D[J],N))return J;return-1}function Rs(D){return D!==D}function Dn(D,N){var L=D==null?0:D.length;return L?Jt(D,N)/L:_e}function Xr(D){return function(N){return N==null?n:N[D]}}function yn(D){return function(N){return D==null?n:D[N]}}function lr(D,N,L,X,J){return J(D,function(ve,be,ge){L=X?(X=!1,ve):N(L,ve,be,ge)}),L}function Er(D,N){var L=D.length;for(D.sort(N);L--;)D[L]=D[L].value;return D}function Jt(D,N){for(var L,X=-1,J=D.length;++X<J;){var ve=N(D[X]);ve!==n&&(L=L===n?ve:L+ve)}return L}function Zi(D,N){for(var L=-1,X=Array(D);++L<D;)X[L]=N(L);return X}function cr(D,N){return me(N,function(L){return[L,D[L]]})}function Wn(D){return D&&D.slice(0,iu(D)+1).replace(Vi,"")}function sn(D){return function(N){return D(N)}}function Ra(D,N){return me(N,function(L){return D[L]})}function Ji(D,N){return D.has(N)}function Qe(D,N){for(var L=-1,X=D.length;++L<X&&at(N,D[L],0)>-1;);return L}function Qi(D,N){for(var L=D.length;L--&&at(N,D[L],0)>-1;);return L}function Tn(D,N){for(var L=D.length,X=0;L--;)D[L]===N&&++X;return X}var Ri=yn(Jo),Ic=yn(Da);function Lc(D){return"\\"+eu[D]}function ru(D,N){return D==null?n:D[N]}function vn(D){return Tc.test(D)}function Aa(D){return Oc.test(D)}function Dr(D){for(var N,L=[];!(N=D.next()).done;)L.push(N.value);return L}function As(D){var N=-1,L=Array(D.size);return D.forEach(function(X,J){L[++N]=[J,X]}),L}function Ai(D,N){return function(L){return D(N(L))}}function On(D,N){for(var L=-1,X=D.length,J=0,ve=[];++L<X;){var be=D[L];(be===N||be===S)&&(D[L]=S,ve[J++]=L)}return ve}function Zr(D){var N=-1,L=Array(D.size);return D.forEach(function(X){L[++N]=X}),L}function Ma(D){var N=-1,L=Array(D.size);return D.forEach(function(X){L[++N]=[X,X]}),L}function Nc(D,N,L){for(var X=L-1,J=D.length;++X<J;)if(D[X]===N)return X;return-1}function Ms(D,N,L){for(var X=L+1;X--;)if(D[X]===N)return X;return X}function Tr(D){return vn(D)?su(D):Hn(D)}function an(D){return vn(D)?O(D):Yn(D)}function iu(D){for(var N=D.length;N--&&Ss.test(D.charAt(N)););return N}var Pa=yn(Qo);function su(D){for(var N=Ea.lastIndex=0;Ea.test(D);)++N;return N}function O(D){return D.match(Ea)||[]}function $(D){return D.match(Dc)||[]}var q=function D(N){N=N==null?bt:V.defaults(bt.Object(),N,V.pick(bt,Rc));var L=N.Array,X=N.Date,J=N.Error,ve=N.Function,be=N.Math,ge=N.Object,$e=N.RegExp,Ee=N.String,Ye=N.TypeError,Pt=L.prototype,Bt=ve.prototype,It=ge.prototype,on=N["__core-js_shared__"],fr=Bt.toString,Me=It.hasOwnProperty,Ev=0,Th=function(){var r=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),au=It.toString,Dv=fr.call(ge),Tv=bt._,Ov=$e("^"+fr.call(Me).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=nu?N.Buffer:n,Mi=N.Symbol,uu=N.Uint8Array,Oh=ou?ou.allocUnsafe:n,lu=Ai(ge.getPrototypeOf,ge),Rh=ge.create,Ah=It.propertyIsEnumerable,cu=Pt.splice,Mh=Mi?Mi.isConcatSpreadable:n,Ia=Mi?Mi.iterator:n,es=Mi?Mi.toStringTag:n,fu=function(){try{var r=ss(ge,"defineProperty");return r({},"",{}),r}catch{}}(),Rv=N.clearTimeout!==bt.clearTimeout&&N.clearTimeout,Av=X&&X.now!==bt.Date.now&&X.now,Mv=N.setTimeout!==bt.setTimeout&&N.setTimeout,du=be.ceil,hu=be.floor,jc=ge.getOwnPropertySymbols,Pv=ou?ou.isBuffer:n,Ph=N.isFinite,Iv=Pt.join,Lv=Ai(ge.keys,ge),Lt=be.max,Qt=be.min,Nv=X.now,jv=N.parseInt,Ih=be.random,$v=Pt.reverse,$c=ss(N,"DataView"),La=ss(N,"Map"),Fc=ss(N,"Promise"),Ps=ss(N,"Set"),Na=ss(N,"WeakMap"),ja=ss(ge,"create"),pu=Na&&new Na,Is={},Fv=as($c),Bv=as(La),Hv=as(Fc),Yv=as(Ps),Wv=as(Na),gu=Mi?Mi.prototype:n,$a=gu?gu.valueOf:n,Lh=gu?gu.toString:n;function k(r){if(_t(r)&&!Ne(r)&&!(r instanceof Ge)){if(r instanceof Un)return r;if(Me.call(r,"__wrapped__"))return Np(r)}return new Un(r)}var Ls=function(){function r(){}return function(s){if(!wt(s))return{};if(Rh)return Rh(s);r.prototype=s;var l=new r;return r.prototype=n,l}}();function mu(){}function Un(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}k.templateSettings={escape:gn,evaluate:Zt,interpolate:_s,variable:"",imports:{_:k}},k.prototype=mu.prototype,k.prototype.constructor=k,Un.prototype=Ls(mu.prototype),Un.prototype.constructor=Un;function Ge(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ft,this.__views__=[]}function Uv(){var r=new Ge(this.__wrapped__);return r.__actions__=bn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=bn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=bn(this.__views__),r}function qv(){if(this.__filtered__){var r=new Ge(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function zv(){var r=this.__wrapped__.value(),s=this.__dir__,l=Ne(r),p=s<0,x=l?r.length:0,E=i1(0,x,this.__views__),M=E.start,j=E.end,W=j-M,Q=p?j:M-1,ee=this.__iteratees__,ne=ee.length,de=0,we=Qt(W,this.__takeCount__);if(!l||!p&&x==W&&we==W)return sp(r,this.__actions__);var Te=[];e:for(;W--&&de<we;){Q+=s;for(var He=-1,Oe=r[Q];++He<ne;){var Ve=ee[He],Xe=Ve.iteratee,Mn=Ve.type,cn=Xe(Oe);if(Mn==U)Oe=cn;else if(!cn){if(Mn==ze)continue e;break e}}Te[de++]=Oe}return Te}Ge.prototype=Ls(mu.prototype),Ge.prototype.constructor=Ge;function ts(r){var s=-1,l=r==null?0:r.length;for(this.clear();++s<l;){var p=r[s];this.set(p[0],p[1])}}function Vv(){this.__data__=ja?ja(null):{},this.size=0}function Gv(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function Kv(r){var s=this.__data__;if(ja){var l=s[r];return l===y?n:l}return Me.call(s,r)?s[r]:n}function Xv(r){var s=this.__data__;return ja?s[r]!==n:Me.call(s,r)}function Zv(r,s){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=ja&&s===n?y:s,this}ts.prototype.clear=Vv,ts.prototype.delete=Gv,ts.prototype.get=Kv,ts.prototype.has=Xv,ts.prototype.set=Zv;function Jr(r){var s=-1,l=r==null?0:r.length;for(this.clear();++s<l;){var p=r[s];this.set(p[0],p[1])}}function Jv(){this.__data__=[],this.size=0}function Qv(r){var s=this.__data__,l=yu(s,r);if(l<0)return!1;var p=s.length-1;return l==p?s.pop():cu.call(s,l,1),--this.size,!0}function eb(r){var s=this.__data__,l=yu(s,r);return l<0?n:s[l][1]}function tb(r){return yu(this.__data__,r)>-1}function nb(r,s){var l=this.__data__,p=yu(l,r);return p<0?(++this.size,l.push([r,s])):l[p][1]=s,this}Jr.prototype.clear=Jv,Jr.prototype.delete=Qv,Jr.prototype.get=eb,Jr.prototype.has=tb,Jr.prototype.set=nb;function Qr(r){var s=-1,l=r==null?0:r.length;for(this.clear();++s<l;){var p=r[s];this.set(p[0],p[1])}}function rb(){this.size=0,this.__data__={hash:new ts,map:new(La||Jr),string:new ts}}function ib(r){var s=Ou(this,r).delete(r);return this.size-=s?1:0,s}function sb(r){return Ou(this,r).get(r)}function ab(r){return Ou(this,r).has(r)}function ob(r,s){var l=Ou(this,r),p=l.size;return l.set(r,s),this.size+=l.size==p?0:1,this}Qr.prototype.clear=rb,Qr.prototype.delete=ib,Qr.prototype.get=sb,Qr.prototype.has=ab,Qr.prototype.set=ob;function ns(r){var s=-1,l=r==null?0:r.length;for(this.__data__=new Qr;++s<l;)this.add(r[s])}function ub(r){return this.__data__.set(r,y),this}function lb(r){return this.__data__.has(r)}ns.prototype.add=ns.prototype.push=ub,ns.prototype.has=lb;function dr(r){var s=this.__data__=new Jr(r);this.size=s.size}function cb(){this.__data__=new Jr,this.size=0}function fb(r){var s=this.__data__,l=s.delete(r);return this.size=s.size,l}function db(r){return this.__data__.get(r)}function hb(r){return this.__data__.has(r)}function pb(r,s){var l=this.__data__;if(l instanceof Jr){var p=l.__data__;if(!La||p.length<a-1)return p.push([r,s]),this.size=++l.size,this;l=this.__data__=new Qr(p)}return l.set(r,s),this.size=l.size,this}dr.prototype.clear=cb,dr.prototype.delete=fb,dr.prototype.get=db,dr.prototype.has=hb,dr.prototype.set=pb;function Nh(r,s){var l=Ne(r),p=!l&&os(r),x=!l&&!p&&ji(r),E=!l&&!p&&!x&&Fs(r),M=l||p||x||E,j=M?Zi(r.length,Ee):[],W=j.length;for(var Q in r)(s||Me.call(r,Q))&&!(M&&(Q=="length"||x&&(Q=="offset"||Q=="parent")||E&&(Q=="buffer"||Q=="byteLength"||Q=="byteOffset")||ri(Q,W)))&&j.push(Q);return j}function jh(r){var s=r.length;return s?r[Xc(0,s-1)]:n}function gb(r,s){return Ru(bn(r),rs(s,0,r.length))}function mb(r){return Ru(bn(r))}function Bc(r,s,l){(l!==n&&!hr(r[s],l)||l===n&&!(s in r))&&ei(r,s,l)}function Fa(r,s,l){var p=r[s];(!(Me.call(r,s)&&hr(p,l))||l===n&&!(s in r))&&ei(r,s,l)}function yu(r,s){for(var l=r.length;l--;)if(hr(r[l][0],s))return l;return-1}function yb(r,s,l,p){return Pi(r,function(x,E,M){s(p,x,l(x),M)}),p}function $h(r,s){return r&&Rr(s,Ht(s),r)}function vb(r,s){return r&&Rr(s,wn(s),r)}function ei(r,s,l){s=="__proto__"&&fu?fu(r,s,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[s]=l}function Hc(r,s){for(var l=-1,p=s.length,x=L(p),E=r==null;++l<p;)x[l]=E?n:_f(r,s[l]);return x}function rs(r,s,l){return r===r&&(l!==n&&(r=r<=l?r:l),s!==n&&(r=r>=s?r:s)),r}function qn(r,s,l,p,x,E){var M,j=s&R,W=s&T,Q=s&H;if(l&&(M=x?l(r,p,x,E):l(r)),M!==n)return M;if(!wt(r))return r;var ee=Ne(r);if(ee){if(M=a1(r),!j)return bn(r,M)}else{var ne=en(r),de=ne==Cn||ne==Ur;if(ji(r))return up(r,j);if(ne==Xt||ne==Gt||de&&!x){if(M=W||de?{}:Dp(r),!j)return W?Kb(r,vb(M,r)):Gb(r,$h(M,r))}else{if(!it[ne])return x?r:{};M=o1(r,ne,j)}}E||(E=new dr);var we=E.get(r);if(we)return we;E.set(r,M),ng(r)?r.forEach(function(Oe){M.add(qn(Oe,s,l,Oe,r,E))}):eg(r)&&r.forEach(function(Oe,Ve){M.set(Ve,qn(Oe,s,l,Ve,r,E))});var Te=Q?W?uf:of:W?wn:Ht,He=ee?n:Te(r);return A(He||r,function(Oe,Ve){He&&(Ve=Oe,Oe=r[Ve]),Fa(M,Ve,qn(Oe,s,l,Ve,r,E))}),M}function bb(r){var s=Ht(r);return function(l){return Fh(l,r,s)}}function Fh(r,s,l){var p=l.length;if(r==null)return!p;for(r=ge(r);p--;){var x=l[p],E=s[x],M=r[x];if(M===n&&!(x in r)||!E(M))return!1}return!0}function Bh(r,s,l){if(typeof r!="function")throw new Ye(f);return za(function(){r.apply(n,l)},s)}function Ba(r,s,l,p){var x=-1,E=z,M=!0,j=r.length,W=[],Q=s.length;if(!j)return W;l&&(s=me(s,sn(l))),p?(E=ie,M=!1):s.length>=a&&(E=Ji,M=!1,s=new ns(s));e:for(;++x<j;){var ee=r[x],ne=l==null?ee:l(ee);if(ee=p||ee!==0?ee:0,M&&ne===ne){for(var de=Q;de--;)if(s[de]===ne)continue e;W.push(ee)}else E(s,ne,p)||W.push(ee)}return W}var Pi=hp(Or),Hh=hp(Wc,!0);function xb(r,s){var l=!0;return Pi(r,function(p,x,E){return l=!!s(p,x,E),l}),l}function vu(r,s,l){for(var p=-1,x=r.length;++p<x;){var E=r[p],M=s(E);if(M!=null&&(j===n?M===M&&!An(M):l(M,j)))var j=M,W=E}return W}function wb(r,s,l,p){var x=r.length;for(l=Fe(l),l<0&&(l=-l>x?0:x+l),p=p===n||p>x?x:Fe(p),p<0&&(p+=x),p=l>p?0:ig(p);l<p;)r[l++]=s;return r}function Yh(r,s){var l=[];return Pi(r,function(p,x,E){s(p,x,E)&&l.push(p)}),l}function qt(r,s,l,p,x){var E=-1,M=r.length;for(l||(l=l1),x||(x=[]);++E<M;){var j=r[E];s>0&&l(j)?s>1?qt(j,s-1,l,p,x):Le(x,j):p||(x[x.length]=j)}return x}var Yc=pp(),Wh=pp(!0);function Or(r,s){return r&&Yc(r,s,Ht)}function Wc(r,s){return r&&Wh(r,s,Ht)}function bu(r,s){return K(s,function(l){return ii(r[l])})}function is(r,s){s=Li(s,r);for(var l=0,p=s.length;r!=null&&l<p;)r=r[Ar(s[l++])];return l&&l==p?r:n}function Uh(r,s,l){var p=s(r);return Ne(r)?p:Le(p,l(r))}function un(r){return r==null?r===n?Fn:zi:es&&es in ge(r)?r1(r):m1(r)}function Uc(r,s){return r>s}function _b(r,s){return r!=null&&Me.call(r,s)}function Sb(r,s){return r!=null&&s in ge(r)}function kb(r,s,l){return r>=Qt(s,l)&&r<Lt(s,l)}function qc(r,s,l){for(var p=l?ie:z,x=r[0].length,E=r.length,M=E,j=L(E),W=1/0,Q=[];M--;){var ee=r[M];M&&s&&(ee=me(ee,sn(s))),W=Qt(ee.length,W),j[M]=!l&&(s||x>=120&&ee.length>=120)?new ns(M&&ee):n}ee=r[0];var ne=-1,de=j[0];e:for(;++ne<x&&Q.length<W;){var we=ee[ne],Te=s?s(we):we;if(we=l||we!==0?we:0,!(de?Ji(de,Te):p(Q,Te,l))){for(M=E;--M;){var He=j[M];if(!(He?Ji(He,Te):p(r[M],Te,l)))continue e}de&&de.push(Te),Q.push(we)}}return Q}function Cb(r,s,l,p){return Or(r,function(x,E,M){s(p,l(x),E,M)}),p}function Ha(r,s,l){s=Li(s,r),r=Ap(r,s);var p=r==null?r:r[Ar(Vn(s))];return p==null?n:_(p,r,l)}function qh(r){return _t(r)&&un(r)==Gt}function Eb(r){return _t(r)&&un(r)==br}function Db(r){return _t(r)&&un(r)==jt}function Ya(r,s,l,p,x){return r===s?!0:r==null||s==null||!_t(r)&&!_t(s)?r!==r&&s!==s:Tb(r,s,l,p,Ya,x)}function Tb(r,s,l,p,x,E){var M=Ne(r),j=Ne(s),W=M?sr:en(r),Q=j?sr:en(s);W=W==Gt?Xt:W,Q=Q==Gt?Xt:Q;var ee=W==Xt,ne=Q==Xt,de=W==Q;if(de&&ji(r)){if(!ji(s))return!1;M=!0,ee=!1}if(de&&!ee)return E||(E=new dr),M||Fs(r)?kp(r,s,l,p,x,E):t1(r,s,W,l,p,x,E);if(!(l&F)){var we=ee&&Me.call(r,"__wrapped__"),Te=ne&&Me.call(s,"__wrapped__");if(we||Te){var He=we?r.value():r,Oe=Te?s.value():s;return E||(E=new dr),x(He,Oe,l,p,E)}}return de?(E||(E=new dr),n1(r,s,l,p,x,E)):!1}function Ob(r){return _t(r)&&en(r)==Kt}function zc(r,s,l,p){var x=l.length,E=x,M=!p;if(r==null)return!E;for(r=ge(r);x--;){var j=l[x];if(M&&j[2]?j[1]!==r[j[0]]:!(j[0]in r))return!1}for(;++x<E;){j=l[x];var W=j[0],Q=r[W],ee=j[1];if(M&&j[2]){if(Q===n&&!(W in r))return!1}else{var ne=new dr;if(p)var de=p(Q,ee,W,r,s,ne);if(!(de===n?Ya(ee,Q,F|I,p,ne):de))return!1}}return!0}function zh(r){if(!wt(r)||f1(r))return!1;var s=ii(r)?Ov:ha;return s.test(as(r))}function Rb(r){return _t(r)&&un(r)==ar}function Ab(r){return _t(r)&&en(r)==Wt}function Mb(r){return _t(r)&&Nu(r.length)&&!!lt[un(r)]}function Vh(r){return typeof r=="function"?r:r==null?_n:typeof r=="object"?Ne(r)?Xh(r[0],r[1]):Kh(r):gg(r)}function Vc(r){if(!qa(r))return Lv(r);var s=[];for(var l in ge(r))Me.call(r,l)&&l!="constructor"&&s.push(l);return s}function Pb(r){if(!wt(r))return g1(r);var s=qa(r),l=[];for(var p in r)p=="constructor"&&(s||!Me.call(r,p))||l.push(p);return l}function Gc(r,s){return r<s}function Gh(r,s){var l=-1,p=xn(r)?L(r.length):[];return Pi(r,function(x,E,M){p[++l]=s(x,E,M)}),p}function Kh(r){var s=cf(r);return s.length==1&&s[0][2]?Op(s[0][0],s[0][1]):function(l){return l===r||zc(l,r,s)}}function Xh(r,s){return df(r)&&Tp(s)?Op(Ar(r),s):function(l){var p=_f(l,r);return p===n&&p===s?Sf(l,r):Ya(s,p,F|I)}}function xu(r,s,l,p,x){r!==s&&Yc(s,function(E,M){if(x||(x=new dr),wt(E))Ib(r,s,M,l,xu,p,x);else{var j=p?p(pf(r,M),E,M+"",r,s,x):n;j===n&&(j=E),Bc(r,M,j)}},wn)}function Ib(r,s,l,p,x,E,M){var j=pf(r,l),W=pf(s,l),Q=M.get(W);if(Q){Bc(r,l,Q);return}var ee=E?E(j,W,l+"",r,s,M):n,ne=ee===n;if(ne){var de=Ne(W),we=!de&&ji(W),Te=!de&&!we&&Fs(W);ee=W,de||we||Te?Ne(j)?ee=j:Et(j)?ee=bn(j):we?(ne=!1,ee=up(W,!0)):Te?(ne=!1,ee=lp(W,!0)):ee=[]:Va(W)||os(W)?(ee=j,os(j)?ee=sg(j):(!wt(j)||ii(j))&&(ee=Dp(W))):ne=!1}ne&&(M.set(W,ee),x(ee,W,p,E,M),M.delete(W)),Bc(r,l,ee)}function Zh(r,s){var l=r.length;if(l)return s+=s<0?l:0,ri(s,l)?r[s]:n}function Jh(r,s,l){s.length?s=me(s,function(E){return Ne(E)?function(M){return is(M,E.length===1?E[0]:E)}:E}):s=[_n];var p=-1;s=me(s,sn(De()));var x=Gh(r,function(E,M,j){var W=me(s,function(Q){return Q(E)});return{criteria:W,index:++p,value:E}});return Er(x,function(E,M){return Vb(E,M,l)})}function Lb(r,s){return Qh(r,s,function(l,p){return Sf(r,p)})}function Qh(r,s,l){for(var p=-1,x=s.length,E={};++p<x;){var M=s[p],j=is(r,M);l(j,M)&&Wa(E,Li(M,r),j)}return E}function Nb(r){return function(s){return is(s,r)}}function Kc(r,s,l,p){var x=p?Xi:at,E=-1,M=s.length,j=r;for(r===s&&(s=bn(s)),l&&(j=me(r,sn(l)));++E<M;)for(var W=0,Q=s[E],ee=l?l(Q):Q;(W=x(j,ee,W,p))>-1;)j!==r&&cu.call(j,W,1),cu.call(r,W,1);return r}function ep(r,s){for(var l=r?s.length:0,p=l-1;l--;){var x=s[l];if(l==p||x!==E){var E=x;ri(x)?cu.call(r,x,1):Qc(r,x)}}return r}function Xc(r,s){return r+hu(Ih()*(s-r+1))}function jb(r,s,l,p){for(var x=-1,E=Lt(du((s-r)/(l||1)),0),M=L(E);E--;)M[p?E:++x]=r,r+=l;return M}function Zc(r,s){var l="";if(!r||s<1||s>ce)return l;do s%2&&(l+=r),s=hu(s/2),s&&(r+=r);while(s);return l}function We(r,s){return gf(Rp(r,s,_n),r+"")}function $b(r){return jh(Bs(r))}function Fb(r,s){var l=Bs(r);return Ru(l,rs(s,0,l.length))}function Wa(r,s,l,p){if(!wt(r))return r;s=Li(s,r);for(var x=-1,E=s.length,M=E-1,j=r;j!=null&&++x<E;){var W=Ar(s[x]),Q=l;if(W==="__proto__"||W==="constructor"||W==="prototype")return r;if(x!=M){var ee=j[W];Q=p?p(ee,W,j):n,Q===n&&(Q=wt(ee)?ee:ri(s[x+1])?[]:{})}Fa(j,W,Q),j=j[W]}return r}var tp=pu?function(r,s){return pu.set(r,s),r}:_n,Bb=fu?function(r,s){return fu(r,"toString",{configurable:!0,enumerable:!1,value:Cf(s),writable:!0})}:_n;function Hb(r){return Ru(Bs(r))}function zn(r,s,l){var p=-1,x=r.length;s<0&&(s=-s>x?0:x+s),l=l>x?x:l,l<0&&(l+=x),x=s>l?0:l-s>>>0,s>>>=0;for(var E=L(x);++p<x;)E[p]=r[p+s];return E}function Yb(r,s){var l;return Pi(r,function(p,x,E){return l=s(p,x,E),!l}),!!l}function wu(r,s,l){var p=0,x=r==null?p:r.length;if(typeof s=="number"&&s===s&&x<=dt){for(;p<x;){var E=p+x>>>1,M=r[E];M!==null&&!An(M)&&(l?M<=s:M<s)?p=E+1:x=E}return x}return Jc(r,s,_n,l)}function Jc(r,s,l,p){var x=0,E=r==null?0:r.length;if(E===0)return 0;s=l(s);for(var M=s!==s,j=s===null,W=An(s),Q=s===n;x<E;){var ee=hu((x+E)/2),ne=l(r[ee]),de=ne!==n,we=ne===null,Te=ne===ne,He=An(ne);if(M)var Oe=p||Te;else Q?Oe=Te&&(p||de):j?Oe=Te&&de&&(p||!we):W?Oe=Te&&de&&!we&&(p||!He):we||He?Oe=!1:Oe=p?ne<=s:ne<s;Oe?x=ee+1:E=ee}return Qt(E,vt)}function np(r,s){for(var l=-1,p=r.length,x=0,E=[];++l<p;){var M=r[l],j=s?s(M):M;if(!l||!hr(j,W)){var W=j;E[x++]=M===0?0:M}}return E}function rp(r){return typeof r=="number"?r:An(r)?_e:+r}function Rn(r){if(typeof r=="string")return r;if(Ne(r))return me(r,Rn)+"";if(An(r))return Lh?Lh.call(r):"";var s=r+"";return s=="0"&&1/r==-he?"-0":s}function Ii(r,s,l){var p=-1,x=z,E=r.length,M=!0,j=[],W=j;if(l)M=!1,x=ie;else if(E>=a){var Q=s?null:Qb(r);if(Q)return Zr(Q);M=!1,x=Ji,W=new ns}else W=s?[]:j;e:for(;++p<E;){var ee=r[p],ne=s?s(ee):ee;if(ee=l||ee!==0?ee:0,M&&ne===ne){for(var de=W.length;de--;)if(W[de]===ne)continue e;s&&W.push(ne),j.push(ee)}else x(W,ne,l)||(W!==j&&W.push(ne),j.push(ee))}return j}function Qc(r,s){return s=Li(s,r),r=Ap(r,s),r==null||delete r[Ar(Vn(s))]}function ip(r,s,l,p){return Wa(r,s,l(is(r,s)),p)}function _u(r,s,l,p){for(var x=r.length,E=p?x:-1;(p?E--:++E<x)&&s(r[E],E,r););return l?zn(r,p?0:E,p?E+1:x):zn(r,p?E+1:0,p?x:E)}function sp(r,s){var l=r;return l instanceof Ge&&(l=l.value()),Pe(s,function(p,x){return x.func.apply(x.thisArg,Le([p],x.args))},l)}function ef(r,s,l){var p=r.length;if(p<2)return p?Ii(r[0]):[];for(var x=-1,E=L(p);++x<p;)for(var M=r[x],j=-1;++j<p;)j!=x&&(E[x]=Ba(E[x]||M,r[j],s,l));return Ii(qt(E,1),s,l)}function ap(r,s,l){for(var p=-1,x=r.length,E=s.length,M={};++p<x;){var j=p<E?s[p]:n;l(M,r[p],j)}return M}function tf(r){return Et(r)?r:[]}function nf(r){return typeof r=="function"?r:_n}function Li(r,s){return Ne(r)?r:df(r,s)?[r]:Lp(st(r))}var Wb=We;function Ni(r,s,l){var p=r.length;return l=l===n?p:l,!s&&l>=p?r:zn(r,s,l)}var op=Rv||function(r){return bt.clearTimeout(r)};function up(r,s){if(s)return r.slice();var l=r.length,p=Oh?Oh(l):new r.constructor(l);return r.copy(p),p}function rf(r){var s=new r.constructor(r.byteLength);return new uu(s).set(new uu(r)),s}function Ub(r,s){var l=s?rf(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function qb(r){var s=new r.constructor(r.source,jo.exec(r));return s.lastIndex=r.lastIndex,s}function zb(r){return $a?ge($a.call(r)):{}}function lp(r,s){var l=s?rf(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function cp(r,s){if(r!==s){var l=r!==n,p=r===null,x=r===r,E=An(r),M=s!==n,j=s===null,W=s===s,Q=An(s);if(!j&&!Q&&!E&&r>s||E&&M&&W&&!j&&!Q||p&&M&&W||!l&&W||!x)return 1;if(!p&&!E&&!Q&&r<s||Q&&l&&x&&!p&&!E||j&&l&&x||!M&&x||!W)return-1}return 0}function Vb(r,s,l){for(var p=-1,x=r.criteria,E=s.criteria,M=x.length,j=l.length;++p<M;){var W=cp(x[p],E[p]);if(W){if(p>=j)return W;var Q=l[p];return W*(Q=="desc"?-1:1)}}return r.index-s.index}function fp(r,s,l,p){for(var x=-1,E=r.length,M=l.length,j=-1,W=s.length,Q=Lt(E-M,0),ee=L(W+Q),ne=!p;++j<W;)ee[j]=s[j];for(;++x<M;)(ne||x<E)&&(ee[l[x]]=r[x]);for(;Q--;)ee[j++]=r[x++];return ee}function dp(r,s,l,p){for(var x=-1,E=r.length,M=-1,j=l.length,W=-1,Q=s.length,ee=Lt(E-j,0),ne=L(ee+Q),de=!p;++x<ee;)ne[x]=r[x];for(var we=x;++W<Q;)ne[we+W]=s[W];for(;++M<j;)(de||x<E)&&(ne[we+l[M]]=r[x++]);return ne}function bn(r,s){var l=-1,p=r.length;for(s||(s=L(p));++l<p;)s[l]=r[l];return s}function Rr(r,s,l,p){var x=!l;l||(l={});for(var E=-1,M=s.length;++E<M;){var j=s[E],W=p?p(l[j],r[j],j,l,r):n;W===n&&(W=r[j]),x?ei(l,j,W):Fa(l,j,W)}return l}function Gb(r,s){return Rr(r,ff(r),s)}function Kb(r,s){return Rr(r,Cp(r),s)}function Su(r,s){return function(l,p){var x=Ne(l)?P:yb,E=s?s():{};return x(l,r,De(p,2),E)}}function Ns(r){return We(function(s,l){var p=-1,x=l.length,E=x>1?l[x-1]:n,M=x>2?l[2]:n;for(E=r.length>3&&typeof E=="function"?(x--,E):n,M&&ln(l[0],l[1],M)&&(E=x<3?n:E,x=1),s=ge(s);++p<x;){var j=l[p];j&&r(s,j,p,E)}return s})}function hp(r,s){return function(l,p){if(l==null)return l;if(!xn(l))return r(l,p);for(var x=l.length,E=s?x:-1,M=ge(l);(s?E--:++E<x)&&p(M[E],E,M)!==!1;);return l}}function pp(r){return function(s,l,p){for(var x=-1,E=ge(s),M=p(s),j=M.length;j--;){var W=M[r?j:++x];if(l(E[W],W,E)===!1)break}return s}}function Xb(r,s,l){var p=s&Z,x=Ua(r);function E(){var M=this&&this!==bt&&this instanceof E?x:r;return M.apply(p?l:this,arguments)}return E}function gp(r){return function(s){s=st(s);var l=vn(s)?an(s):n,p=l?l[0]:s.charAt(0),x=l?Ni(l,1).join(""):s.slice(1);return p[r]()+x}}function js(r){return function(s){return Pe(hg(dg(s).replace(Ca,"")),r,"")}}function Ua(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var l=Ls(r.prototype),p=r.apply(l,s);return wt(p)?p:l}}function Zb(r,s,l){var p=Ua(r);function x(){for(var E=arguments.length,M=L(E),j=E,W=$s(x);j--;)M[j]=arguments[j];var Q=E<3&&M[0]!==W&&M[E-1]!==W?[]:On(M,W);if(E-=Q.length,E<l)return xp(r,s,ku,x.placeholder,n,M,Q,n,n,l-E);var ee=this&&this!==bt&&this instanceof x?p:r;return _(ee,this,M)}return x}function mp(r){return function(s,l,p){var x=ge(s);if(!xn(s)){var E=De(l,3);s=Ht(s),l=function(j){return E(x[j],j,x)}}var M=r(s,l,p);return M>-1?x[E?s[M]:M]:n}}function yp(r){return ni(function(s){var l=s.length,p=l,x=Un.prototype.thru;for(r&&s.reverse();p--;){var E=s[p];if(typeof E!="function")throw new Ye(f);if(x&&!M&&Tu(E)=="wrapper")var M=new Un([],!0)}for(p=M?p:l;++p<l;){E=s[p];var j=Tu(E),W=j=="wrapper"?lf(E):n;W&&hf(W[0])&&W[1]==(h|fe|re|Ae)&&!W[4].length&&W[9]==1?M=M[Tu(W[0])].apply(M,W[3]):M=E.length==1&&hf(E)?M[j]():M.thru(E)}return function(){var Q=arguments,ee=Q[0];if(M&&Q.length==1&&Ne(ee))return M.plant(ee).value();for(var ne=0,de=l?s[ne].apply(this,Q):ee;++ne<l;)de=s[ne].call(this,de);return de}})}function ku(r,s,l,p,x,E,M,j,W,Q){var ee=s&h,ne=s&Z,de=s&Y,we=s&(fe|ue),Te=s&le,He=de?n:Ua(r);function Oe(){for(var Ve=arguments.length,Xe=L(Ve),Mn=Ve;Mn--;)Xe[Mn]=arguments[Mn];if(we)var cn=$s(Oe),Pn=Tn(Xe,cn);if(p&&(Xe=fp(Xe,p,x,we)),E&&(Xe=dp(Xe,E,M,we)),Ve-=Pn,we&&Ve<Q){var Dt=On(Xe,cn);return xp(r,s,ku,Oe.placeholder,l,Xe,Dt,j,W,Q-Ve)}var pr=ne?l:this,ai=de?pr[r]:r;return Ve=Xe.length,j?Xe=y1(Xe,j):Te&&Ve>1&&Xe.reverse(),ee&&W<Ve&&(Xe.length=W),this&&this!==bt&&this instanceof Oe&&(ai=He||Ua(ai)),ai.apply(pr,Xe)}return Oe}function vp(r,s){return function(l,p){return Cb(l,r,s(p),{})}}function Cu(r,s){return function(l,p){var x;if(l===n&&p===n)return s;if(l!==n&&(x=l),p!==n){if(x===n)return p;typeof l=="string"||typeof p=="string"?(l=Rn(l),p=Rn(p)):(l=rp(l),p=rp(p)),x=r(l,p)}return x}}function sf(r){return ni(function(s){return s=me(s,sn(De())),We(function(l){var p=this;return r(s,function(x){return _(x,p,l)})})})}function Eu(r,s){s=s===n?" ":Rn(s);var l=s.length;if(l<2)return l?Zc(s,r):s;var p=Zc(s,du(r/Tr(s)));return vn(s)?Ni(an(p),0,r).join(""):p.slice(0,r)}function Jb(r,s,l,p){var x=s&Z,E=Ua(r);function M(){for(var j=-1,W=arguments.length,Q=-1,ee=p.length,ne=L(ee+W),de=this&&this!==bt&&this instanceof M?E:r;++Q<ee;)ne[Q]=p[Q];for(;W--;)ne[Q++]=arguments[++j];return _(de,x?l:this,ne)}return M}function bp(r){return function(s,l,p){return p&&typeof p!="number"&&ln(s,l,p)&&(l=p=n),s=si(s),l===n?(l=s,s=0):l=si(l),p=p===n?s<l?1:-1:si(p),jb(s,l,p,r)}}function Du(r){return function(s,l){return typeof s=="string"&&typeof l=="string"||(s=Gn(s),l=Gn(l)),r(s,l)}}function xp(r,s,l,p,x,E,M,j,W,Q){var ee=s&fe,ne=ee?M:n,de=ee?n:M,we=ee?E:n,Te=ee?n:E;s|=ee?re:ae,s&=~(ee?ae:re),s&oe||(s&=~(Z|Y));var He=[r,s,x,we,ne,Te,de,j,W,Q],Oe=l.apply(n,He);return hf(r)&&Mp(Oe,He),Oe.placeholder=p,Pp(Oe,r,s)}function af(r){var s=be[r];return function(l,p){if(l=Gn(l),p=p==null?0:Qt(Fe(p),292),p&&Ph(l)){var x=(st(l)+"e").split("e"),E=s(x[0]+"e"+(+x[1]+p));return x=(st(E)+"e").split("e"),+(x[0]+"e"+(+x[1]-p))}return s(l)}}var Qb=Ps&&1/Zr(new Ps([,-0]))[1]==he?function(r){return new Ps(r)}:Tf;function wp(r){return function(s){var l=en(s);return l==Kt?As(s):l==Wt?Ma(s):cr(s,r(s))}}function ti(r,s,l,p,x,E,M,j){var W=s&Y;if(!W&&typeof r!="function")throw new Ye(f);var Q=p?p.length:0;if(Q||(s&=~(re|ae),p=x=n),M=M===n?M:Lt(Fe(M),0),j=j===n?j:Fe(j),Q-=x?x.length:0,s&ae){var ee=p,ne=x;p=x=n}var de=W?n:lf(r),we=[r,s,l,p,x,ee,ne,E,M,j];if(de&&p1(we,de),r=we[0],s=we[1],l=we[2],p=we[3],x=we[4],j=we[9]=we[9]===n?W?0:r.length:Lt(we[9]-Q,0),!j&&s&(fe|ue)&&(s&=~(fe|ue)),!s||s==Z)var Te=Xb(r,s,l);else s==fe||s==ue?Te=Zb(r,s,j):(s==re||s==(Z|re))&&!x.length?Te=Jb(r,s,l,p):Te=ku.apply(n,we);var He=de?tp:Mp;return Pp(He(Te,we),r,s)}function _p(r,s,l,p){return r===n||hr(r,It[l])&&!Me.call(p,l)?s:r}function Sp(r,s,l,p,x,E){return wt(r)&&wt(s)&&(E.set(s,r),xu(r,s,n,Sp,E),E.delete(s)),r}function e1(r){return Va(r)?n:r}function kp(r,s,l,p,x,E){var M=l&F,j=r.length,W=s.length;if(j!=W&&!(M&&W>j))return!1;var Q=E.get(r),ee=E.get(s);if(Q&&ee)return Q==s&&ee==r;var ne=-1,de=!0,we=l&I?new ns:n;for(E.set(r,s),E.set(s,r);++ne<j;){var Te=r[ne],He=s[ne];if(p)var Oe=M?p(He,Te,ne,s,r,E):p(Te,He,ne,r,s,E);if(Oe!==n){if(Oe)continue;de=!1;break}if(we){if(!xt(s,function(Ve,Xe){if(!Ji(we,Xe)&&(Te===Ve||x(Te,Ve,l,p,E)))return we.push(Xe)})){de=!1;break}}else if(!(Te===He||x(Te,He,l,p,E))){de=!1;break}}return E.delete(r),E.delete(s),de}function t1(r,s,l,p,x,E,M){switch(l){case xr:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case br:return!(r.byteLength!=s.byteLength||!E(new uu(r),new uu(s)));case Wr:case jt:case qr:return hr(+r,+s);case xi:return r.name==s.name&&r.message==s.message;case ar:case $t:return r==s+"";case Kt:var j=As;case Wt:var W=p&F;if(j||(j=Zr),r.size!=s.size&&!W)return!1;var Q=M.get(r);if(Q)return Q==s;p|=I,M.set(r,s);var ee=kp(j(r),j(s),p,x,E,M);return M.delete(r),ee;case $n:if($a)return $a.call(r)==$a.call(s)}return!1}function n1(r,s,l,p,x,E){var M=l&F,j=of(r),W=j.length,Q=of(s),ee=Q.length;if(W!=ee&&!M)return!1;for(var ne=W;ne--;){var de=j[ne];if(!(M?de in s:Me.call(s,de)))return!1}var we=E.get(r),Te=E.get(s);if(we&&Te)return we==s&&Te==r;var He=!0;E.set(r,s),E.set(s,r);for(var Oe=M;++ne<W;){de=j[ne];var Ve=r[de],Xe=s[de];if(p)var Mn=M?p(Xe,Ve,de,s,r,E):p(Ve,Xe,de,r,s,E);if(!(Mn===n?Ve===Xe||x(Ve,Xe,l,p,E):Mn)){He=!1;break}Oe||(Oe=de=="constructor")}if(He&&!Oe){var cn=r.constructor,Pn=s.constructor;cn!=Pn&&"constructor"in r&&"constructor"in s&&!(typeof cn=="function"&&cn instanceof cn&&typeof Pn=="function"&&Pn instanceof Pn)&&(He=!1)}return E.delete(r),E.delete(s),He}function ni(r){return gf(Rp(r,n,Fp),r+"")}function of(r){return Uh(r,Ht,ff)}function uf(r){return Uh(r,wn,Cp)}var lf=pu?function(r){return pu.get(r)}:Tf;function Tu(r){for(var s=r.name+"",l=Is[s],p=Me.call(Is,s)?l.length:0;p--;){var x=l[p],E=x.func;if(E==null||E==r)return x.name}return s}function $s(r){var s=Me.call(k,"placeholder")?k:r;return s.placeholder}function De(){var r=k.iteratee||Ef;return r=r===Ef?Vh:r,arguments.length?r(arguments[0],arguments[1]):r}function Ou(r,s){var l=r.__data__;return c1(s)?l[typeof s=="string"?"string":"hash"]:l.map}function cf(r){for(var s=Ht(r),l=s.length;l--;){var p=s[l],x=r[p];s[l]=[p,x,Tp(x)]}return s}function ss(r,s){var l=ru(r,s);return zh(l)?l:n}function r1(r){var s=Me.call(r,es),l=r[es];try{r[es]=n;var p=!0}catch{}var x=au.call(r);return p&&(s?r[es]=l:delete r[es]),x}var ff=jc?function(r){return r==null?[]:(r=ge(r),K(jc(r),function(s){return Ah.call(r,s)}))}:Of,Cp=jc?function(r){for(var s=[];r;)Le(s,ff(r)),r=lu(r);return s}:Of,en=un;($c&&en(new $c(new ArrayBuffer(1)))!=xr||La&&en(new La)!=Kt||Fc&&en(Fc.resolve())!=hn||Ps&&en(new Ps)!=Wt||Na&&en(new Na)!=ye)&&(en=function(r){var s=un(r),l=s==Xt?r.constructor:n,p=l?as(l):"";if(p)switch(p){case Fv:return xr;case Bv:return Kt;case Hv:return hn;case Yv:return Wt;case Wv:return ye}return s});function i1(r,s,l){for(var p=-1,x=l.length;++p<x;){var E=l[p],M=E.size;switch(E.type){case"drop":r+=M;break;case"dropRight":s-=M;break;case"take":s=Qt(s,r+M);break;case"takeRight":r=Lt(r,s-M);break}}return{start:r,end:s}}function s1(r){var s=r.match(yc);return s?s[1].split(vc):[]}function Ep(r,s,l){s=Li(s,r);for(var p=-1,x=s.length,E=!1;++p<x;){var M=Ar(s[p]);if(!(E=r!=null&&l(r,M)))break;r=r[M]}return E||++p!=x?E:(x=r==null?0:r.length,!!x&&Nu(x)&&ri(M,x)&&(Ne(r)||os(r)))}function a1(r){var s=r.length,l=new r.constructor(s);return s&&typeof r[0]=="string"&&Me.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function Dp(r){return typeof r.constructor=="function"&&!qa(r)?Ls(lu(r)):{}}function o1(r,s,l){var p=r.constructor;switch(s){case br:return rf(r);case Wr:case jt:return new p(+r);case xr:return Ub(r,l);case Re:case zr:case wi:case Bn:case pn:case or:case wr:case da:case _i:return lp(r,l);case Kt:return new p;case qr:case $t:return new p(r);case ar:return qb(r);case Wt:return new p;case $n:return zb(r)}}function u1(r,s){var l=s.length;if(!l)return r;var p=l-1;return s[p]=(l>1?"& ":"")+s[p],s=s.join(l>2?", ":" "),r.replace(mc,`{
112
+ /* [wrapped with `+s+`] */
113
+ `)}function l1(r){return Ne(r)||os(r)||!!(Mh&&r&&r[Mh])}function ri(r,s){var l=typeof r;return s=s??ce,!!s&&(l=="number"||l!="symbol"&&ks.test(r))&&r>-1&&r%1==0&&r<s}function ln(r,s,l){if(!wt(l))return!1;var p=typeof s;return(p=="number"?xn(l)&&ri(s,l.length):p=="string"&&s in l)?hr(l[s],r):!1}function df(r,s){if(Ne(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||An(r)?!0:Po.test(r)||!gc.test(r)||s!=null&&r in ge(s)}function c1(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function hf(r){var s=Tu(r),l=k[s];if(typeof l!="function"||!(s in Ge.prototype))return!1;if(r===l)return!0;var p=lf(l);return!!p&&r===p[0]}function f1(r){return!!Th&&Th in r}var d1=on?ii:Rf;function qa(r){var s=r&&r.constructor,l=typeof s=="function"&&s.prototype||It;return r===l}function Tp(r){return r===r&&!wt(r)}function Op(r,s){return function(l){return l==null?!1:l[r]===s&&(s!==n||r in ge(l))}}function h1(r){var s=Iu(r,function(p){return l.size===w&&l.clear(),p}),l=s.cache;return s}function p1(r,s){var l=r[1],p=s[1],x=l|p,E=x<(Z|Y|h),M=p==h&&l==fe||p==h&&l==Ae&&r[7].length<=s[8]||p==(h|Ae)&&s[7].length<=s[8]&&l==fe;if(!(E||M))return r;p&Z&&(r[2]=s[2],x|=l&Z?0:oe);var j=s[3];if(j){var W=r[3];r[3]=W?fp(W,j,s[4]):j,r[4]=W?On(r[3],S):s[4]}return j=s[5],j&&(W=r[5],r[5]=W?dp(W,j,s[6]):j,r[6]=W?On(r[5],S):s[6]),j=s[7],j&&(r[7]=j),p&h&&(r[8]=r[8]==null?s[8]:Qt(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=x,r}function g1(r){var s=[];if(r!=null)for(var l in ge(r))s.push(l);return s}function m1(r){return au.call(r)}function Rp(r,s,l){return s=Lt(s===n?r.length-1:s,0),function(){for(var p=arguments,x=-1,E=Lt(p.length-s,0),M=L(E);++x<E;)M[x]=p[s+x];x=-1;for(var j=L(s+1);++x<s;)j[x]=p[x];return j[s]=l(M),_(r,this,j)}}function Ap(r,s){return s.length<2?r:is(r,zn(s,0,-1))}function y1(r,s){for(var l=r.length,p=Qt(s.length,l),x=bn(r);p--;){var E=s[p];r[p]=ri(E,l)?x[E]:n}return r}function pf(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Mp=Ip(tp),za=Mv||function(r,s){return bt.setTimeout(r,s)},gf=Ip(Bb);function Pp(r,s,l){var p=s+"";return gf(r,u1(p,v1(s1(p),l)))}function Ip(r){var s=0,l=0;return function(){var p=Nv(),x=ke-(p-l);if(l=p,x>0){if(++s>=Ie)return arguments[0]}else s=0;return r.apply(n,arguments)}}function Ru(r,s){var l=-1,p=r.length,x=p-1;for(s=s===n?p:s;++l<s;){var E=Xc(l,x),M=r[E];r[E]=r[l],r[l]=M}return r.length=s,r}var Lp=h1(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(Io,function(l,p,x,E){s.push(x?E.replace(xc,"$1"):p||l)}),s});function Ar(r){if(typeof r=="string"||An(r))return r;var s=r+"";return s=="0"&&1/r==-he?"-0":s}function as(r){if(r!=null){try{return fr.call(r)}catch{}try{return r+""}catch{}}return""}function v1(r,s){return A(Ct,function(l){var p="_."+l[0];s&l[1]&&!z(r,p)&&r.push(p)}),r.sort()}function Np(r){if(r instanceof Ge)return r.clone();var s=new Un(r.__wrapped__,r.__chain__);return s.__actions__=bn(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function b1(r,s,l){(l?ln(r,s,l):s===n)?s=1:s=Lt(Fe(s),0);var p=r==null?0:r.length;if(!p||s<1)return[];for(var x=0,E=0,M=L(du(p/s));x<p;)M[E++]=zn(r,x,x+=s);return M}function x1(r){for(var s=-1,l=r==null?0:r.length,p=0,x=[];++s<l;){var E=r[s];E&&(x[p++]=E)}return x}function w1(){var r=arguments.length;if(!r)return[];for(var s=L(r-1),l=arguments[0],p=r;p--;)s[p-1]=arguments[p];return Le(Ne(l)?bn(l):[l],qt(s,1))}var _1=We(function(r,s){return Et(r)?Ba(r,qt(s,1,Et,!0)):[]}),S1=We(function(r,s){var l=Vn(s);return Et(l)&&(l=n),Et(r)?Ba(r,qt(s,1,Et,!0),De(l,2)):[]}),k1=We(function(r,s){var l=Vn(s);return Et(l)&&(l=n),Et(r)?Ba(r,qt(s,1,Et,!0),n,l):[]});function C1(r,s,l){var p=r==null?0:r.length;return p?(s=l||s===n?1:Fe(s),zn(r,s<0?0:s,p)):[]}function E1(r,s,l){var p=r==null?0:r.length;return p?(s=l||s===n?1:Fe(s),s=p-s,zn(r,0,s<0?0:s)):[]}function D1(r,s){return r&&r.length?_u(r,De(s,3),!0,!0):[]}function T1(r,s){return r&&r.length?_u(r,De(s,3),!0):[]}function O1(r,s,l,p){var x=r==null?0:r.length;return x?(l&&typeof l!="number"&&ln(r,s,l)&&(l=0,p=x),wb(r,s,l,p)):[]}function jp(r,s,l){var p=r==null?0:r.length;if(!p)return-1;var x=l==null?0:Fe(l);return x<0&&(x=Lt(p+x,0)),qe(r,De(s,3),x)}function $p(r,s,l){var p=r==null?0:r.length;if(!p)return-1;var x=p-1;return l!==n&&(x=Fe(l),x=l<0?Lt(p+x,0):Qt(x,p-1)),qe(r,De(s,3),x,!0)}function Fp(r){var s=r==null?0:r.length;return s?qt(r,1):[]}function R1(r){var s=r==null?0:r.length;return s?qt(r,he):[]}function A1(r,s){var l=r==null?0:r.length;return l?(s=s===n?1:Fe(s),qt(r,s)):[]}function M1(r){for(var s=-1,l=r==null?0:r.length,p={};++s<l;){var x=r[s];p[x[0]]=x[1]}return p}function Bp(r){return r&&r.length?r[0]:n}function P1(r,s,l){var p=r==null?0:r.length;if(!p)return-1;var x=l==null?0:Fe(l);return x<0&&(x=Lt(p+x,0)),at(r,s,x)}function I1(r){var s=r==null?0:r.length;return s?zn(r,0,-1):[]}var L1=We(function(r){var s=me(r,tf);return s.length&&s[0]===r[0]?qc(s):[]}),N1=We(function(r){var s=Vn(r),l=me(r,tf);return s===Vn(l)?s=n:l.pop(),l.length&&l[0]===r[0]?qc(l,De(s,2)):[]}),j1=We(function(r){var s=Vn(r),l=me(r,tf);return s=typeof s=="function"?s:n,s&&l.pop(),l.length&&l[0]===r[0]?qc(l,n,s):[]});function $1(r,s){return r==null?"":Iv.call(r,s)}function Vn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function F1(r,s,l){var p=r==null?0:r.length;if(!p)return-1;var x=p;return l!==n&&(x=Fe(l),x=x<0?Lt(p+x,0):Qt(x,p-1)),s===s?Ms(r,s,x):qe(r,Rs,x,!0)}function B1(r,s){return r&&r.length?Zh(r,Fe(s)):n}var H1=We(Hp);function Hp(r,s){return r&&r.length&&s&&s.length?Kc(r,s):r}function Y1(r,s,l){return r&&r.length&&s&&s.length?Kc(r,s,De(l,2)):r}function W1(r,s,l){return r&&r.length&&s&&s.length?Kc(r,s,n,l):r}var U1=ni(function(r,s){var l=r==null?0:r.length,p=Hc(r,s);return ep(r,me(s,function(x){return ri(x,l)?+x:x}).sort(cp)),p});function q1(r,s){var l=[];if(!(r&&r.length))return l;var p=-1,x=[],E=r.length;for(s=De(s,3);++p<E;){var M=r[p];s(M,p,r)&&(l.push(M),x.push(p))}return ep(r,x),l}function mf(r){return r==null?r:$v.call(r)}function z1(r,s,l){var p=r==null?0:r.length;return p?(l&&typeof l!="number"&&ln(r,s,l)?(s=0,l=p):(s=s==null?0:Fe(s),l=l===n?p:Fe(l)),zn(r,s,l)):[]}function V1(r,s){return wu(r,s)}function G1(r,s,l){return Jc(r,s,De(l,2))}function K1(r,s){var l=r==null?0:r.length;if(l){var p=wu(r,s);if(p<l&&hr(r[p],s))return p}return-1}function X1(r,s){return wu(r,s,!0)}function Z1(r,s,l){return Jc(r,s,De(l,2),!0)}function J1(r,s){var l=r==null?0:r.length;if(l){var p=wu(r,s,!0)-1;if(hr(r[p],s))return p}return-1}function Q1(r){return r&&r.length?np(r):[]}function ex(r,s){return r&&r.length?np(r,De(s,2)):[]}function tx(r){var s=r==null?0:r.length;return s?zn(r,1,s):[]}function nx(r,s,l){return r&&r.length?(s=l||s===n?1:Fe(s),zn(r,0,s<0?0:s)):[]}function rx(r,s,l){var p=r==null?0:r.length;return p?(s=l||s===n?1:Fe(s),s=p-s,zn(r,s<0?0:s,p)):[]}function ix(r,s){return r&&r.length?_u(r,De(s,3),!1,!0):[]}function sx(r,s){return r&&r.length?_u(r,De(s,3)):[]}var ax=We(function(r){return Ii(qt(r,1,Et,!0))}),ox=We(function(r){var s=Vn(r);return Et(s)&&(s=n),Ii(qt(r,1,Et,!0),De(s,2))}),ux=We(function(r){var s=Vn(r);return s=typeof s=="function"?s:n,Ii(qt(r,1,Et,!0),n,s)});function lx(r){return r&&r.length?Ii(r):[]}function cx(r,s){return r&&r.length?Ii(r,De(s,2)):[]}function fx(r,s){return s=typeof s=="function"?s:n,r&&r.length?Ii(r,n,s):[]}function yf(r){if(!(r&&r.length))return[];var s=0;return r=K(r,function(l){if(Et(l))return s=Lt(l.length,s),!0}),Zi(s,function(l){return me(r,Xr(l))})}function Yp(r,s){if(!(r&&r.length))return[];var l=yf(r);return s==null?l:me(l,function(p){return _(s,n,p)})}var dx=We(function(r,s){return Et(r)?Ba(r,s):[]}),hx=We(function(r){return ef(K(r,Et))}),px=We(function(r){var s=Vn(r);return Et(s)&&(s=n),ef(K(r,Et),De(s,2))}),gx=We(function(r){var s=Vn(r);return s=typeof s=="function"?s:n,ef(K(r,Et),n,s)}),mx=We(yf);function yx(r,s){return ap(r||[],s||[],Fa)}function vx(r,s){return ap(r||[],s||[],Wa)}var bx=We(function(r){var s=r.length,l=s>1?r[s-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Yp(r,l)});function Wp(r){var s=k(r);return s.__chain__=!0,s}function xx(r,s){return s(r),r}function Au(r,s){return s(r)}var wx=ni(function(r){var s=r.length,l=s?r[0]:0,p=this.__wrapped__,x=function(E){return Hc(E,r)};return s>1||this.__actions__.length||!(p instanceof Ge)||!ri(l)?this.thru(x):(p=p.slice(l,+l+(s?1:0)),p.__actions__.push({func:Au,args:[x],thisArg:n}),new Un(p,this.__chain__).thru(function(E){return s&&!E.length&&E.push(n),E}))});function _x(){return Wp(this)}function Sx(){return new Un(this.value(),this.__chain__)}function kx(){this.__values__===n&&(this.__values__=rg(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function Cx(){return this}function Ex(r){for(var s,l=this;l instanceof mu;){var p=Np(l);p.__index__=0,p.__values__=n,s?x.__wrapped__=p:s=p;var x=p;l=l.__wrapped__}return x.__wrapped__=r,s}function Dx(){var r=this.__wrapped__;if(r instanceof Ge){var s=r;return this.__actions__.length&&(s=new Ge(this)),s=s.reverse(),s.__actions__.push({func:Au,args:[mf],thisArg:n}),new Un(s,this.__chain__)}return this.thru(mf)}function Tx(){return sp(this.__wrapped__,this.__actions__)}var Ox=Su(function(r,s,l){Me.call(r,l)?++r[l]:ei(r,l,1)});function Rx(r,s,l){var p=Ne(r)?G:xb;return l&&ln(r,s,l)&&(s=n),p(r,De(s,3))}function Ax(r,s){var l=Ne(r)?K:Yh;return l(r,De(s,3))}var Mx=mp(jp),Px=mp($p);function Ix(r,s){return qt(Mu(r,s),1)}function Lx(r,s){return qt(Mu(r,s),he)}function Nx(r,s,l){return l=l===n?1:Fe(l),qt(Mu(r,s),l)}function Up(r,s){var l=Ne(r)?A:Pi;return l(r,De(s,3))}function qp(r,s){var l=Ne(r)?B:Hh;return l(r,De(s,3))}var jx=Su(function(r,s,l){Me.call(r,l)?r[l].push(s):ei(r,l,[s])});function $x(r,s,l,p){r=xn(r)?r:Bs(r),l=l&&!p?Fe(l):0;var x=r.length;return l<0&&(l=Lt(x+l,0)),ju(r)?l<=x&&r.indexOf(s,l)>-1:!!x&&at(r,s,l)>-1}var Fx=We(function(r,s,l){var p=-1,x=typeof s=="function",E=xn(r)?L(r.length):[];return Pi(r,function(M){E[++p]=x?_(s,M,l):Ha(M,s,l)}),E}),Bx=Su(function(r,s,l){ei(r,l,s)});function Mu(r,s){var l=Ne(r)?me:Gh;return l(r,De(s,3))}function Hx(r,s,l,p){return r==null?[]:(Ne(s)||(s=s==null?[]:[s]),l=p?n:l,Ne(l)||(l=l==null?[]:[l]),Jh(r,s,l))}var Yx=Su(function(r,s,l){r[l?0:1].push(s)},function(){return[[],[]]});function Wx(r,s,l){var p=Ne(r)?Pe:lr,x=arguments.length<3;return p(r,De(s,4),l,x,Pi)}function Ux(r,s,l){var p=Ne(r)?Mt:lr,x=arguments.length<3;return p(r,De(s,4),l,x,Hh)}function qx(r,s){var l=Ne(r)?K:Yh;return l(r,Lu(De(s,3)))}function zx(r){var s=Ne(r)?jh:$b;return s(r)}function Vx(r,s,l){(l?ln(r,s,l):s===n)?s=1:s=Fe(s);var p=Ne(r)?gb:Fb;return p(r,s)}function Gx(r){var s=Ne(r)?mb:Hb;return s(r)}function Kx(r){if(r==null)return 0;if(xn(r))return ju(r)?Tr(r):r.length;var s=en(r);return s==Kt||s==Wt?r.size:Vc(r).length}function Xx(r,s,l){var p=Ne(r)?xt:Yb;return l&&ln(r,s,l)&&(s=n),p(r,De(s,3))}var Zx=We(function(r,s){if(r==null)return[];var l=s.length;return l>1&&ln(r,s[0],s[1])?s=[]:l>2&&ln(s[0],s[1],s[2])&&(s=[s[0]]),Jh(r,qt(s,1),[])}),Pu=Av||function(){return bt.Date.now()};function Jx(r,s){if(typeof s!="function")throw new Ye(f);return r=Fe(r),function(){if(--r<1)return s.apply(this,arguments)}}function zp(r,s,l){return s=l?n:s,s=r&&s==null?r.length:s,ti(r,h,n,n,n,n,s)}function Vp(r,s){var l;if(typeof s!="function")throw new Ye(f);return r=Fe(r),function(){return--r>0&&(l=s.apply(this,arguments)),r<=1&&(s=n),l}}var vf=We(function(r,s,l){var p=Z;if(l.length){var x=On(l,$s(vf));p|=re}return ti(r,p,s,l,x)}),Gp=We(function(r,s,l){var p=Z|Y;if(l.length){var x=On(l,$s(Gp));p|=re}return ti(s,p,r,l,x)});function Kp(r,s,l){s=l?n:s;var p=ti(r,fe,n,n,n,n,n,s);return p.placeholder=Kp.placeholder,p}function Xp(r,s,l){s=l?n:s;var p=ti(r,ue,n,n,n,n,n,s);return p.placeholder=Xp.placeholder,p}function Zp(r,s,l){var p,x,E,M,j,W,Q=0,ee=!1,ne=!1,de=!0;if(typeof r!="function")throw new Ye(f);s=Gn(s)||0,wt(l)&&(ee=!!l.leading,ne="maxWait"in l,E=ne?Lt(Gn(l.maxWait)||0,s):E,de="trailing"in l?!!l.trailing:de);function we(Dt){var pr=p,ai=x;return p=x=n,Q=Dt,M=r.apply(ai,pr),M}function Te(Dt){return Q=Dt,j=za(Ve,s),ee?we(Dt):M}function He(Dt){var pr=Dt-W,ai=Dt-Q,mg=s-pr;return ne?Qt(mg,E-ai):mg}function Oe(Dt){var pr=Dt-W,ai=Dt-Q;return W===n||pr>=s||pr<0||ne&&ai>=E}function Ve(){var Dt=Pu();if(Oe(Dt))return Xe(Dt);j=za(Ve,He(Dt))}function Xe(Dt){return j=n,de&&p?we(Dt):(p=x=n,M)}function Mn(){j!==n&&op(j),Q=0,p=W=x=j=n}function cn(){return j===n?M:Xe(Pu())}function Pn(){var Dt=Pu(),pr=Oe(Dt);if(p=arguments,x=this,W=Dt,pr){if(j===n)return Te(W);if(ne)return op(j),j=za(Ve,s),we(W)}return j===n&&(j=za(Ve,s)),M}return Pn.cancel=Mn,Pn.flush=cn,Pn}var Qx=We(function(r,s){return Bh(r,1,s)}),ew=We(function(r,s,l){return Bh(r,Gn(s)||0,l)});function tw(r){return ti(r,le)}function Iu(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Ye(f);var l=function(){var p=arguments,x=s?s.apply(this,p):p[0],E=l.cache;if(E.has(x))return E.get(x);var M=r.apply(this,p);return l.cache=E.set(x,M)||E,M};return l.cache=new(Iu.Cache||Qr),l}Iu.Cache=Qr;function Lu(r){if(typeof r!="function")throw new Ye(f);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function nw(r){return Vp(2,r)}var rw=Wb(function(r,s){s=s.length==1&&Ne(s[0])?me(s[0],sn(De())):me(qt(s,1),sn(De()));var l=s.length;return We(function(p){for(var x=-1,E=Qt(p.length,l);++x<E;)p[x]=s[x].call(this,p[x]);return _(r,this,p)})}),bf=We(function(r,s){var l=On(s,$s(bf));return ti(r,re,n,s,l)}),Jp=We(function(r,s){var l=On(s,$s(Jp));return ti(r,ae,n,s,l)}),iw=ni(function(r,s){return ti(r,Ae,n,n,n,s)});function sw(r,s){if(typeof r!="function")throw new Ye(f);return s=s===n?s:Fe(s),We(r,s)}function aw(r,s){if(typeof r!="function")throw new Ye(f);return s=s==null?0:Lt(Fe(s),0),We(function(l){var p=l[s],x=Ni(l,0,s);return p&&Le(x,p),_(r,this,x)})}function ow(r,s,l){var p=!0,x=!0;if(typeof r!="function")throw new Ye(f);return wt(l)&&(p="leading"in l?!!l.leading:p,x="trailing"in l?!!l.trailing:x),Zp(r,s,{leading:p,maxWait:s,trailing:x})}function uw(r){return zp(r,1)}function lw(r,s){return bf(nf(s),r)}function cw(){if(!arguments.length)return[];var r=arguments[0];return Ne(r)?r:[r]}function fw(r){return qn(r,H)}function dw(r,s){return s=typeof s=="function"?s:n,qn(r,H,s)}function hw(r){return qn(r,R|H)}function pw(r,s){return s=typeof s=="function"?s:n,qn(r,R|H,s)}function gw(r,s){return s==null||Fh(r,s,Ht(s))}function hr(r,s){return r===s||r!==r&&s!==s}var mw=Du(Uc),yw=Du(function(r,s){return r>=s}),os=qh(function(){return arguments}())?qh:function(r){return _t(r)&&Me.call(r,"callee")&&!Ah.call(r,"callee")},Ne=L.isArray,vw=o?sn(o):Eb;function xn(r){return r!=null&&Nu(r.length)&&!ii(r)}function Et(r){return _t(r)&&xn(r)}function bw(r){return r===!0||r===!1||_t(r)&&un(r)==Wr}var ji=Pv||Rf,xw=c?sn(c):Db;function ww(r){return _t(r)&&r.nodeType===1&&!Va(r)}function _w(r){if(r==null)return!0;if(xn(r)&&(Ne(r)||typeof r=="string"||typeof r.splice=="function"||ji(r)||Fs(r)||os(r)))return!r.length;var s=en(r);if(s==Kt||s==Wt)return!r.size;if(qa(r))return!Vc(r).length;for(var l in r)if(Me.call(r,l))return!1;return!0}function Sw(r,s){return Ya(r,s)}function kw(r,s,l){l=typeof l=="function"?l:n;var p=l?l(r,s):n;return p===n?Ya(r,s,n,l):!!p}function xf(r){if(!_t(r))return!1;var s=un(r);return s==xi||s==dn||typeof r.message=="string"&&typeof r.name=="string"&&!Va(r)}function Cw(r){return typeof r=="number"&&Ph(r)}function ii(r){if(!wt(r))return!1;var s=un(r);return s==Cn||s==Ur||s==qi||s==fa}function Qp(r){return typeof r=="number"&&r==Fe(r)}function Nu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ce}function wt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function _t(r){return r!=null&&typeof r=="object"}var eg=d?sn(d):Ob;function Ew(r,s){return r===s||zc(r,s,cf(s))}function Dw(r,s,l){return l=typeof l=="function"?l:n,zc(r,s,cf(s),l)}function Tw(r){return tg(r)&&r!=+r}function Ow(r){if(d1(r))throw new J(u);return zh(r)}function Rw(r){return r===null}function Aw(r){return r==null}function tg(r){return typeof r=="number"||_t(r)&&un(r)==qr}function Va(r){if(!_t(r)||un(r)!=Xt)return!1;var s=lu(r);if(s===null)return!0;var l=Me.call(s,"constructor")&&s.constructor;return typeof l=="function"&&l instanceof l&&fr.call(l)==Dv}var wf=g?sn(g):Rb;function Mw(r){return Qp(r)&&r>=-ce&&r<=ce}var ng=v?sn(v):Ab;function ju(r){return typeof r=="string"||!Ne(r)&&_t(r)&&un(r)==$t}function An(r){return typeof r=="symbol"||_t(r)&&un(r)==$n}var Fs=b?sn(b):Mb;function Pw(r){return r===n}function Iw(r){return _t(r)&&en(r)==ye}function Lw(r){return _t(r)&&un(r)==Ft}var Nw=Du(Gc),jw=Du(function(r,s){return r<=s});function rg(r){if(!r)return[];if(xn(r))return ju(r)?an(r):bn(r);if(Ia&&r[Ia])return Dr(r[Ia]());var s=en(r),l=s==Kt?As:s==Wt?Zr:Bs;return l(r)}function si(r){if(!r)return r===0?r:0;if(r=Gn(r),r===he||r===-he){var s=r<0?-1:1;return s*Ce}return r===r?r:0}function Fe(r){var s=si(r),l=s%1;return s===s?l?s-l:s:0}function ig(r){return r?rs(Fe(r),0,ft):0}function Gn(r){if(typeof r=="number")return r;if(An(r))return _e;if(wt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=wt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Wn(r);var l=$o.test(r);return l||pa.test(r)?Mc(r.slice(2),l?2:8):Ci.test(r)?_e:+r}function sg(r){return Rr(r,wn(r))}function $w(r){return r?rs(Fe(r),-ce,ce):r===0?r:0}function st(r){return r==null?"":Rn(r)}var Fw=Ns(function(r,s){if(qa(s)||xn(s)){Rr(s,Ht(s),r);return}for(var l in s)Me.call(s,l)&&Fa(r,l,s[l])}),ag=Ns(function(r,s){Rr(s,wn(s),r)}),$u=Ns(function(r,s,l,p){Rr(s,wn(s),r,p)}),Bw=Ns(function(r,s,l,p){Rr(s,Ht(s),r,p)}),Hw=ni(Hc);function Yw(r,s){var l=Ls(r);return s==null?l:$h(l,s)}var Ww=We(function(r,s){r=ge(r);var l=-1,p=s.length,x=p>2?s[2]:n;for(x&&ln(s[0],s[1],x)&&(p=1);++l<p;)for(var E=s[l],M=wn(E),j=-1,W=M.length;++j<W;){var Q=M[j],ee=r[Q];(ee===n||hr(ee,It[Q])&&!Me.call(r,Q))&&(r[Q]=E[Q])}return r}),Uw=We(function(r){return r.push(n,Sp),_(og,n,r)});function qw(r,s){return Cr(r,De(s,3),Or)}function zw(r,s){return Cr(r,De(s,3),Wc)}function Vw(r,s){return r==null?r:Yc(r,De(s,3),wn)}function Gw(r,s){return r==null?r:Wh(r,De(s,3),wn)}function Kw(r,s){return r&&Or(r,De(s,3))}function Xw(r,s){return r&&Wc(r,De(s,3))}function Zw(r){return r==null?[]:bu(r,Ht(r))}function Jw(r){return r==null?[]:bu(r,wn(r))}function _f(r,s,l){var p=r==null?n:is(r,s);return p===n?l:p}function Qw(r,s){return r!=null&&Ep(r,s,_b)}function Sf(r,s){return r!=null&&Ep(r,s,Sb)}var e_=vp(function(r,s,l){s!=null&&typeof s.toString!="function"&&(s=au.call(s)),r[s]=l},Cf(_n)),t_=vp(function(r,s,l){s!=null&&typeof s.toString!="function"&&(s=au.call(s)),Me.call(r,s)?r[s].push(l):r[s]=[l]},De),n_=We(Ha);function Ht(r){return xn(r)?Nh(r):Vc(r)}function wn(r){return xn(r)?Nh(r,!0):Pb(r)}function r_(r,s){var l={};return s=De(s,3),Or(r,function(p,x,E){ei(l,s(p,x,E),p)}),l}function i_(r,s){var l={};return s=De(s,3),Or(r,function(p,x,E){ei(l,x,s(p,x,E))}),l}var s_=Ns(function(r,s,l){xu(r,s,l)}),og=Ns(function(r,s,l,p){xu(r,s,l,p)}),a_=ni(function(r,s){var l={};if(r==null)return l;var p=!1;s=me(s,function(E){return E=Li(E,r),p||(p=E.length>1),E}),Rr(r,uf(r),l),p&&(l=qn(l,R|T|H,e1));for(var x=s.length;x--;)Qc(l,s[x]);return l});function o_(r,s){return ug(r,Lu(De(s)))}var u_=ni(function(r,s){return r==null?{}:Lb(r,s)});function ug(r,s){if(r==null)return{};var l=me(uf(r),function(p){return[p]});return s=De(s),Qh(r,l,function(p,x){return s(p,x[0])})}function l_(r,s,l){s=Li(s,r);var p=-1,x=s.length;for(x||(x=1,r=n);++p<x;){var E=r==null?n:r[Ar(s[p])];E===n&&(p=x,E=l),r=ii(E)?E.call(r):E}return r}function c_(r,s,l){return r==null?r:Wa(r,s,l)}function f_(r,s,l,p){return p=typeof p=="function"?p:n,r==null?r:Wa(r,s,l,p)}var lg=wp(Ht),cg=wp(wn);function d_(r,s,l){var p=Ne(r),x=p||ji(r)||Fs(r);if(s=De(s,4),l==null){var E=r&&r.constructor;x?l=p?new E:[]:wt(r)?l=ii(E)?Ls(lu(r)):{}:l={}}return(x?A:Or)(r,function(M,j,W){return s(l,M,j,W)}),l}function h_(r,s){return r==null?!0:Qc(r,s)}function p_(r,s,l){return r==null?r:ip(r,s,nf(l))}function g_(r,s,l,p){return p=typeof p=="function"?p:n,r==null?r:ip(r,s,nf(l),p)}function Bs(r){return r==null?[]:Ra(r,Ht(r))}function m_(r){return r==null?[]:Ra(r,wn(r))}function y_(r,s,l){return l===n&&(l=s,s=n),l!==n&&(l=Gn(l),l=l===l?l:0),s!==n&&(s=Gn(s),s=s===s?s:0),rs(Gn(r),s,l)}function v_(r,s,l){return s=si(s),l===n?(l=s,s=0):l=si(l),r=Gn(r),kb(r,s,l)}function b_(r,s,l){if(l&&typeof l!="boolean"&&ln(r,s,l)&&(s=l=n),l===n&&(typeof s=="boolean"?(l=s,s=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&s===n?(r=0,s=1):(r=si(r),s===n?(s=r,r=0):s=si(s)),r>s){var p=r;r=s,s=p}if(l||r%1||s%1){var x=Ih();return Qt(r+x*(s-r+Ta("1e-"+((x+"").length-1))),s)}return Xc(r,s)}var x_=js(function(r,s,l){return s=s.toLowerCase(),r+(l?fg(s):s)});function fg(r){return kf(st(r).toLowerCase())}function dg(r){return r=st(r),r&&r.replace(Fo,Ri).replace(Ec,"")}function w_(r,s,l){r=st(r),s=Rn(s);var p=r.length;l=l===n?p:rs(Fe(l),0,p);var x=l;return l-=s.length,l>=0&&r.slice(l,x)==s}function __(r){return r=st(r),r&&Mo.test(r)?r.replace(Si,Ic):r}function S_(r){return r=st(r),r&&ki.test(r)?r.replace(_r,"\\$&"):r}var k_=js(function(r,s,l){return r+(l?"-":"")+s.toLowerCase()}),C_=js(function(r,s,l){return r+(l?" ":"")+s.toLowerCase()}),E_=gp("toLowerCase");function D_(r,s,l){r=st(r),s=Fe(s);var p=s?Tr(r):0;if(!s||p>=s)return r;var x=(s-p)/2;return Eu(hu(x),l)+r+Eu(du(x),l)}function T_(r,s,l){r=st(r),s=Fe(s);var p=s?Tr(r):0;return s&&p<s?r+Eu(s-p,l):r}function O_(r,s,l){r=st(r),s=Fe(s);var p=s?Tr(r):0;return s&&p<s?Eu(s-p,l)+r:r}function R_(r,s,l){return l||s==null?s=0:s&&(s=+s),jv(st(r).replace(Vi,""),s||0)}function A_(r,s,l){return(l?ln(r,s,l):s===n)?s=1:s=Fe(s),Zc(st(r),s)}function M_(){var r=arguments,s=st(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var P_=js(function(r,s,l){return r+(l?"_":"")+s.toLowerCase()});function I_(r,s,l){return l&&typeof l!="number"&&ln(r,s,l)&&(s=l=n),l=l===n?ft:l>>>0,l?(r=st(r),r&&(typeof s=="string"||s!=null&&!wf(s))&&(s=Rn(s),!s&&vn(r))?Ni(an(r),0,l):r.split(s,l)):[]}var L_=js(function(r,s,l){return r+(l?" ":"")+kf(s)});function N_(r,s,l){return r=st(r),l=l==null?0:rs(Fe(l),0,r.length),s=Rn(s),r.slice(l,l+s.length)==s}function j_(r,s,l){var p=k.templateSettings;l&&ln(r,s,l)&&(s=n),r=st(r),s=$u({},s,p,_p);var x=$u({},s.imports,p.imports,_p),E=Ht(x),M=Ra(x,E),j,W,Q=0,ee=s.interpolate||Cs,ne="__p += '",de=$e((s.escape||Cs).source+"|"+ee.source+"|"+(ee===_s?No:Cs).source+"|"+(s.evaluate||Cs).source+"|$","g"),we="//# sourceURL="+(Me.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ac+"]")+`
114
+ `;r.replace(de,function(Oe,Ve,Xe,Mn,cn,Pn){return Xe||(Xe=Mn),ne+=r.slice(Q,Pn).replace(Gi,Lc),Ve&&(j=!0,ne+=`' +
115
+ __e(`+Ve+`) +
116
+ '`),cn&&(W=!0,ne+=`';
117
+ `+cn+`;
118
+ __p += '`),Xe&&(ne+=`' +
119
+ ((__t = (`+Xe+`)) == null ? '' : __t) +
120
+ '`),Q=Pn+Oe.length,Oe}),ne+=`';
121
+ `;var Te=Me.call(s,"variable")&&s.variable;if(!Te)ne=`with (obj) {
122
+ `+ne+`
123
+ }
124
+ `;else if(bc.test(Te))throw new J(m);ne=(W?ne.replace(Oo,""):ne).replace(Ro,"$1").replace(pc,"$1;"),ne="function("+(Te||"obj")+`) {
125
+ `+(Te?"":`obj || (obj = {});
126
+ `)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
127
+ function print() { __p += __j.call(arguments, '') }
128
+ `:`;
129
+ `)+ne+`return __p
130
+ }`;var He=pg(function(){return ve(E,we+"return "+ne).apply(n,M)});if(He.source=ne,xf(He))throw He;return He}function $_(r){return st(r).toLowerCase()}function F_(r){return st(r).toUpperCase()}function B_(r,s,l){if(r=st(r),r&&(l||s===n))return Wn(r);if(!r||!(s=Rn(s)))return r;var p=an(r),x=an(s),E=Qe(p,x),M=Qi(p,x)+1;return Ni(p,E,M).join("")}function H_(r,s,l){if(r=st(r),r&&(l||s===n))return r.slice(0,iu(r)+1);if(!r||!(s=Rn(s)))return r;var p=an(r),x=Qi(p,an(s))+1;return Ni(p,0,x).join("")}function Y_(r,s,l){if(r=st(r),r&&(l||s===n))return r.replace(Vi,"");if(!r||!(s=Rn(s)))return r;var p=an(r),x=Qe(p,an(s));return Ni(p,x).join("")}function W_(r,s){var l=Je,p=je;if(wt(s)){var x="separator"in s?s.separator:x;l="length"in s?Fe(s.length):l,p="omission"in s?Rn(s.omission):p}r=st(r);var E=r.length;if(vn(r)){var M=an(r);E=M.length}if(l>=E)return r;var j=l-Tr(p);if(j<1)return p;var W=M?Ni(M,0,j).join(""):r.slice(0,j);if(x===n)return W+p;if(M&&(j+=W.length-j),wf(x)){if(r.slice(j).search(x)){var Q,ee=W;for(x.global||(x=$e(x.source,st(jo.exec(x))+"g")),x.lastIndex=0;Q=x.exec(ee);)var ne=Q.index;W=W.slice(0,ne===n?j:ne)}}else if(r.indexOf(Rn(x),j)!=j){var de=W.lastIndexOf(x);de>-1&&(W=W.slice(0,de))}return W+p}function U_(r){return r=st(r),r&&Ao.test(r)?r.replace(Vr,Pa):r}var q_=js(function(r,s,l){return r+(l?" ":"")+s.toUpperCase()}),kf=gp("toUpperCase");function hg(r,s,l){return r=st(r),s=l?n:s,s===n?Aa(r)?$(r):Ue(r):r.match(s)||[]}var pg=We(function(r,s){try{return _(r,n,s)}catch(l){return xf(l)?l:new J(l)}}),z_=ni(function(r,s){return A(s,function(l){l=Ar(l),ei(r,l,vf(r[l],r))}),r});function V_(r){var s=r==null?0:r.length,l=De();return r=s?me(r,function(p){if(typeof p[1]!="function")throw new Ye(f);return[l(p[0]),p[1]]}):[],We(function(p){for(var x=-1;++x<s;){var E=r[x];if(_(E[0],this,p))return _(E[1],this,p)}})}function G_(r){return bb(qn(r,R))}function Cf(r){return function(){return r}}function K_(r,s){return r==null||r!==r?s:r}var X_=yp(),Z_=yp(!0);function _n(r){return r}function Ef(r){return Vh(typeof r=="function"?r:qn(r,R))}function J_(r){return Kh(qn(r,R))}function Q_(r,s){return Xh(r,qn(s,R))}var eS=We(function(r,s){return function(l){return Ha(l,r,s)}}),tS=We(function(r,s){return function(l){return Ha(r,l,s)}});function Df(r,s,l){var p=Ht(s),x=bu(s,p);l==null&&!(wt(s)&&(x.length||!p.length))&&(l=s,s=r,r=this,x=bu(s,Ht(s)));var E=!(wt(l)&&"chain"in l)||!!l.chain,M=ii(r);return A(x,function(j){var W=s[j];r[j]=W,M&&(r.prototype[j]=function(){var Q=this.__chain__;if(E||Q){var ee=r(this.__wrapped__),ne=ee.__actions__=bn(this.__actions__);return ne.push({func:W,args:arguments,thisArg:r}),ee.__chain__=Q,ee}return W.apply(r,Le([this.value()],arguments))})}),r}function nS(){return bt._===this&&(bt._=Tv),this}function Tf(){}function rS(r){return r=Fe(r),We(function(s){return Zh(s,r)})}var iS=sf(me),sS=sf(G),aS=sf(xt);function gg(r){return df(r)?Xr(Ar(r)):Nb(r)}function oS(r){return function(s){return r==null?n:is(r,s)}}var uS=bp(),lS=bp(!0);function Of(){return[]}function Rf(){return!1}function cS(){return{}}function fS(){return""}function dS(){return!0}function hS(r,s){if(r=Fe(r),r<1||r>ce)return[];var l=ft,p=Qt(r,ft);s=De(s),r-=ft;for(var x=Zi(p,s);++l<r;)s(l);return x}function pS(r){return Ne(r)?me(r,Ar):An(r)?[r]:bn(Lp(st(r)))}function gS(r){var s=++Ev;return st(r)+s}var mS=Cu(function(r,s){return r+s},0),yS=af("ceil"),vS=Cu(function(r,s){return r/s},1),bS=af("floor");function xS(r){return r&&r.length?vu(r,_n,Uc):n}function wS(r,s){return r&&r.length?vu(r,De(s,2),Uc):n}function _S(r){return Dn(r,_n)}function SS(r,s){return Dn(r,De(s,2))}function kS(r){return r&&r.length?vu(r,_n,Gc):n}function CS(r,s){return r&&r.length?vu(r,De(s,2),Gc):n}var ES=Cu(function(r,s){return r*s},1),DS=af("round"),TS=Cu(function(r,s){return r-s},0);function OS(r){return r&&r.length?Jt(r,_n):0}function RS(r,s){return r&&r.length?Jt(r,De(s,2)):0}return k.after=Jx,k.ary=zp,k.assign=Fw,k.assignIn=ag,k.assignInWith=$u,k.assignWith=Bw,k.at=Hw,k.before=Vp,k.bind=vf,k.bindAll=z_,k.bindKey=Gp,k.castArray=cw,k.chain=Wp,k.chunk=b1,k.compact=x1,k.concat=w1,k.cond=V_,k.conforms=G_,k.constant=Cf,k.countBy=Ox,k.create=Yw,k.curry=Kp,k.curryRight=Xp,k.debounce=Zp,k.defaults=Ww,k.defaultsDeep=Uw,k.defer=Qx,k.delay=ew,k.difference=_1,k.differenceBy=S1,k.differenceWith=k1,k.drop=C1,k.dropRight=E1,k.dropRightWhile=D1,k.dropWhile=T1,k.fill=O1,k.filter=Ax,k.flatMap=Ix,k.flatMapDeep=Lx,k.flatMapDepth=Nx,k.flatten=Fp,k.flattenDeep=R1,k.flattenDepth=A1,k.flip=tw,k.flow=X_,k.flowRight=Z_,k.fromPairs=M1,k.functions=Zw,k.functionsIn=Jw,k.groupBy=jx,k.initial=I1,k.intersection=L1,k.intersectionBy=N1,k.intersectionWith=j1,k.invert=e_,k.invertBy=t_,k.invokeMap=Fx,k.iteratee=Ef,k.keyBy=Bx,k.keys=Ht,k.keysIn=wn,k.map=Mu,k.mapKeys=r_,k.mapValues=i_,k.matches=J_,k.matchesProperty=Q_,k.memoize=Iu,k.merge=s_,k.mergeWith=og,k.method=eS,k.methodOf=tS,k.mixin=Df,k.negate=Lu,k.nthArg=rS,k.omit=a_,k.omitBy=o_,k.once=nw,k.orderBy=Hx,k.over=iS,k.overArgs=rw,k.overEvery=sS,k.overSome=aS,k.partial=bf,k.partialRight=Jp,k.partition=Yx,k.pick=u_,k.pickBy=ug,k.property=gg,k.propertyOf=oS,k.pull=H1,k.pullAll=Hp,k.pullAllBy=Y1,k.pullAllWith=W1,k.pullAt=U1,k.range=uS,k.rangeRight=lS,k.rearg=iw,k.reject=qx,k.remove=q1,k.rest=sw,k.reverse=mf,k.sampleSize=Vx,k.set=c_,k.setWith=f_,k.shuffle=Gx,k.slice=z1,k.sortBy=Zx,k.sortedUniq=Q1,k.sortedUniqBy=ex,k.split=I_,k.spread=aw,k.tail=tx,k.take=nx,k.takeRight=rx,k.takeRightWhile=ix,k.takeWhile=sx,k.tap=xx,k.throttle=ow,k.thru=Au,k.toArray=rg,k.toPairs=lg,k.toPairsIn=cg,k.toPath=pS,k.toPlainObject=sg,k.transform=d_,k.unary=uw,k.union=ax,k.unionBy=ox,k.unionWith=ux,k.uniq=lx,k.uniqBy=cx,k.uniqWith=fx,k.unset=h_,k.unzip=yf,k.unzipWith=Yp,k.update=p_,k.updateWith=g_,k.values=Bs,k.valuesIn=m_,k.without=dx,k.words=hg,k.wrap=lw,k.xor=hx,k.xorBy=px,k.xorWith=gx,k.zip=mx,k.zipObject=yx,k.zipObjectDeep=vx,k.zipWith=bx,k.entries=lg,k.entriesIn=cg,k.extend=ag,k.extendWith=$u,Df(k,k),k.add=mS,k.attempt=pg,k.camelCase=x_,k.capitalize=fg,k.ceil=yS,k.clamp=y_,k.clone=fw,k.cloneDeep=hw,k.cloneDeepWith=pw,k.cloneWith=dw,k.conformsTo=gw,k.deburr=dg,k.defaultTo=K_,k.divide=vS,k.endsWith=w_,k.eq=hr,k.escape=__,k.escapeRegExp=S_,k.every=Rx,k.find=Mx,k.findIndex=jp,k.findKey=qw,k.findLast=Px,k.findLastIndex=$p,k.findLastKey=zw,k.floor=bS,k.forEach=Up,k.forEachRight=qp,k.forIn=Vw,k.forInRight=Gw,k.forOwn=Kw,k.forOwnRight=Xw,k.get=_f,k.gt=mw,k.gte=yw,k.has=Qw,k.hasIn=Sf,k.head=Bp,k.identity=_n,k.includes=$x,k.indexOf=P1,k.inRange=v_,k.invoke=n_,k.isArguments=os,k.isArray=Ne,k.isArrayBuffer=vw,k.isArrayLike=xn,k.isArrayLikeObject=Et,k.isBoolean=bw,k.isBuffer=ji,k.isDate=xw,k.isElement=ww,k.isEmpty=_w,k.isEqual=Sw,k.isEqualWith=kw,k.isError=xf,k.isFinite=Cw,k.isFunction=ii,k.isInteger=Qp,k.isLength=Nu,k.isMap=eg,k.isMatch=Ew,k.isMatchWith=Dw,k.isNaN=Tw,k.isNative=Ow,k.isNil=Aw,k.isNull=Rw,k.isNumber=tg,k.isObject=wt,k.isObjectLike=_t,k.isPlainObject=Va,k.isRegExp=wf,k.isSafeInteger=Mw,k.isSet=ng,k.isString=ju,k.isSymbol=An,k.isTypedArray=Fs,k.isUndefined=Pw,k.isWeakMap=Iw,k.isWeakSet=Lw,k.join=$1,k.kebabCase=k_,k.last=Vn,k.lastIndexOf=F1,k.lowerCase=C_,k.lowerFirst=E_,k.lt=Nw,k.lte=jw,k.max=xS,k.maxBy=wS,k.mean=_S,k.meanBy=SS,k.min=kS,k.minBy=CS,k.stubArray=Of,k.stubFalse=Rf,k.stubObject=cS,k.stubString=fS,k.stubTrue=dS,k.multiply=ES,k.nth=B1,k.noConflict=nS,k.noop=Tf,k.now=Pu,k.pad=D_,k.padEnd=T_,k.padStart=O_,k.parseInt=R_,k.random=b_,k.reduce=Wx,k.reduceRight=Ux,k.repeat=A_,k.replace=M_,k.result=l_,k.round=DS,k.runInContext=D,k.sample=zx,k.size=Kx,k.snakeCase=P_,k.some=Xx,k.sortedIndex=V1,k.sortedIndexBy=G1,k.sortedIndexOf=K1,k.sortedLastIndex=X1,k.sortedLastIndexBy=Z1,k.sortedLastIndexOf=J1,k.startCase=L_,k.startsWith=N_,k.subtract=TS,k.sum=OS,k.sumBy=RS,k.template=j_,k.times=hS,k.toFinite=si,k.toInteger=Fe,k.toLength=ig,k.toLower=$_,k.toNumber=Gn,k.toSafeInteger=$w,k.toString=st,k.toUpper=F_,k.trim=B_,k.trimEnd=H_,k.trimStart=Y_,k.truncate=W_,k.unescape=U_,k.uniqueId=gS,k.upperCase=q_,k.upperFirst=kf,k.each=Up,k.eachRight=qp,k.first=Bp,Df(k,function(){var r={};return Or(k,function(s,l){Me.call(k.prototype,l)||(r[l]=s)}),r}(),{chain:!1}),k.VERSION=i,A(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){k[r].placeholder=k}),A(["drop","take"],function(r,s){Ge.prototype[r]=function(l){l=l===n?1:Lt(Fe(l),0);var p=this.__filtered__&&!s?new Ge(this):this.clone();return p.__filtered__?p.__takeCount__=Qt(l,p.__takeCount__):p.__views__.push({size:Qt(l,ft),type:r+(p.__dir__<0?"Right":"")}),p},Ge.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),A(["filter","map","takeWhile"],function(r,s){var l=s+1,p=l==ze||l==te;Ge.prototype[r]=function(x){var E=this.clone();return E.__iteratees__.push({iteratee:De(x,3),type:l}),E.__filtered__=E.__filtered__||p,E}}),A(["head","last"],function(r,s){var l="take"+(s?"Right":"");Ge.prototype[r]=function(){return this[l](1).value()[0]}}),A(["initial","tail"],function(r,s){var l="drop"+(s?"":"Right");Ge.prototype[r]=function(){return this.__filtered__?new Ge(this):this[l](1)}}),Ge.prototype.compact=function(){return this.filter(_n)},Ge.prototype.find=function(r){return this.filter(r).head()},Ge.prototype.findLast=function(r){return this.reverse().find(r)},Ge.prototype.invokeMap=We(function(r,s){return typeof r=="function"?new Ge(this):this.map(function(l){return Ha(l,r,s)})}),Ge.prototype.reject=function(r){return this.filter(Lu(De(r)))},Ge.prototype.slice=function(r,s){r=Fe(r);var l=this;return l.__filtered__&&(r>0||s<0)?new Ge(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),s!==n&&(s=Fe(s),l=s<0?l.dropRight(-s):l.take(s-r)),l)},Ge.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ge.prototype.toArray=function(){return this.take(ft)},Or(Ge.prototype,function(r,s){var l=/^(?:filter|find|map|reject)|While$/.test(s),p=/^(?:head|last)$/.test(s),x=k[p?"take"+(s=="last"?"Right":""):s],E=p||/^find/.test(s);x&&(k.prototype[s]=function(){var M=this.__wrapped__,j=p?[1]:arguments,W=M instanceof Ge,Q=j[0],ee=W||Ne(M),ne=function(Ve){var Xe=x.apply(k,Le([Ve],j));return p&&de?Xe[0]:Xe};ee&&l&&typeof Q=="function"&&Q.length!=1&&(W=ee=!1);var de=this.__chain__,we=!!this.__actions__.length,Te=E&&!de,He=W&&!we;if(!E&&ee){M=He?M:new Ge(this);var Oe=r.apply(M,j);return Oe.__actions__.push({func:Au,args:[ne],thisArg:n}),new Un(Oe,de)}return Te&&He?r.apply(this,j):(Oe=this.thru(ne),Te?p?Oe.value()[0]:Oe.value():Oe)})}),A(["pop","push","shift","sort","splice","unshift"],function(r){var s=Pt[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",p=/^(?:pop|shift)$/.test(r);k.prototype[r]=function(){var x=arguments;if(p&&!this.__chain__){var E=this.value();return s.apply(Ne(E)?E:[],x)}return this[l](function(M){return s.apply(Ne(M)?M:[],x)})}}),Or(Ge.prototype,function(r,s){var l=k[s];if(l){var p=l.name+"";Me.call(Is,p)||(Is[p]=[]),Is[p].push({name:s,func:l})}}),Is[ku(n,Y).name]=[{name:"wrapper",func:n}],Ge.prototype.clone=Uv,Ge.prototype.reverse=qv,Ge.prototype.value=zv,k.prototype.at=wx,k.prototype.chain=_x,k.prototype.commit=Sx,k.prototype.next=kx,k.prototype.plant=Ex,k.prototype.reverse=Dx,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=Tx,k.prototype.first=k.prototype.head,Ia&&(k.prototype[Ia]=Cx),k},V=q();ur?((ur.exports=V)._=V,Os._=V):bt._=V}).call(C.commonjsGlobal)})(dl,dl.exports);dl.exports;function aM(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,i=e.startIndex,a=e.stopIndex;return!(i>n||a<t)}function oM(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,a=e.startIndex,u=e.stopIndex,f=[],m=null,y=null,w=a;w<=u;w++){var S=t(w);S?y!==null&&(f.push(m,y),m=y=null):(y=w,m===null&&(m=w))}if(y!==null){for(var R=Math.min(Math.max(y,m+i-1),n-1),T=y+1;T<=R&&!t(T);T++)y=T;f.push(m,y)}if(f.length)for(;f[1]-f[0]+1<i&&f[0]>0;){var H=f[0]-1;if(!t(H))f[0]=H;else break}return f}var uM=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},lM=function(){function e(t,n){for(var i=0;i<n.length;i++){var a=n[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),cM=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)},um=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){cM(t,e);function t(){var n,i,a,u;uM(this,t);for(var f=arguments.length,m=Array(f),y=0;y<f;y++)m[y]=arguments[y];return u=(i=(a=um(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(m))),a),a._lastRenderedStartIndex=-1,a._lastRenderedStopIndex=-1,a._memoizedUnloadedRanges=[],a._onItemsRendered=function(w){var S=w.visibleStartIndex,R=w.visibleStopIndex;a._lastRenderedStartIndex=S,a._lastRenderedStopIndex=R,a._ensureRowsLoaded(S,R)},a._setRef=function(w){a._listRef=w},i),um(a,u)}return lM(t,[{key:"resetloadMoreItemsCache",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],i&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var i=this.props.children;return i({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(i,a){var u=this.props,f=u.isItemLoaded,m=u.itemCount,y=u.minimumBatchSize,w=y===void 0?10:y,S=u.threshold,R=S===void 0?15:S,T=oM({isItemLoaded:f,itemCount:m,minimumBatchSize:w,startIndex:Math.max(0,i-R),stopIndex:Math.min(m-1,a+R)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(H,F){return T[F]!==H}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(i){for(var a=this,u=this.props.loadMoreItems||this.props.loadMoreRows,f=function(w){var S=i[w],R=i[w+1],T=u(S,R);T!=null&&T.then(function(){if(aM({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:S,stopIndex:R})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(S,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},m=0;m<i.length;m+=2)f(m)}}]),t})(C.reactExports.PureComponent);C.reactExports.createContext({});const fM=e=>{const[t,n]=C.reactExports.useState([]);return C.reactExports.useEffect(()=>{C.axios.get(`${e}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(i=>n(i.data)).catch(i=>{console.error("Getting user permission error:",i)})},[e]),t},D0=e=>(t,n)=>{const i=fM(e);return n?t.every(a=>i==null?void 0:i.includes(a)):t.some(a=>i==null?void 0:i.includes(a))},T0=({baseUrl:e,accessWith:t,requireAll:n,children:i})=>D0(e)(t,n)?C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:i}):null;{const e=C.s(T0,{props:{baseUrl:"string",accessWith:"json",requireAll:"boolean",children:"json"},shadow:"open"});customElements.define("has-permission",e)}function O0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lm(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,PO(i.key),i)}}function R0(e,t,n){return t&&lm(e.prototype,t),n&&lm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var A0=[],dM=A0.forEach,hM=A0.slice;function pM(e){return dM.call(hM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var cm=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gM=function(t,n,i){var a=i||{};a.path=a.path||"/";var u=encodeURIComponent(n),f="".concat(t,"=").concat(u);if(a.maxAge>0){var m=a.maxAge-0;if(Number.isNaN(m))throw new Error("maxAge should be a Number");f+="; Max-Age=".concat(Math.floor(m))}if(a.domain){if(!cm.test(a.domain))throw new TypeError("option domain is invalid");f+="; Domain=".concat(a.domain)}if(a.path){if(!cm.test(a.path))throw new TypeError("option path is invalid");f+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(f+="; HttpOnly"),a.secure&&(f+="; Secure"),a.sameSite){var y=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(y){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return f},fm={create:function(t,n,i,a){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+i*60*1e3)),a&&(u.domain=a),document.cookie=gM(t,encodeURIComponent(n),u)},read:function(t){for(var n="".concat(t,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var u=i[a];u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(n)===0)return u.substring(n.length,u.length)}return null},remove:function(t){this.create(t,"",-1)}},mM={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var i=fm.read(t.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&fm.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},yM={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=i.substring(1),u=a.split("&"),f=0;f<u.length;f++){var m=u[f].indexOf("=");if(m>0){var y=u[f].substring(0,m);y===t.lookupQuerystring&&(n=u[f].substring(m+1))}}}return n}},Qa=null,dm=function(){if(Qa!==null)return Qa;try{Qa=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qa=!1}return Qa},vM={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&dm()){var i=window.localStorage.getItem(t.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&dm()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},eo=null,hm=function(){if(eo!==null)return eo;try{eo=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{eo=!1}return eo},bM={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&hm()){var i=window.sessionStorage.getItem(t.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&hm()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},xM={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},wM={name:"htmlTag",lookup:function(t){var n,i=t.htmlTag||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},_M={name:"path",lookup:function(t){var n;if(typeof window<"u"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof i[t.lookupFromPathIndex]!="string")return;n=i[t.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},SM={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,i=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function kM(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var M0=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O0(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return R0(e,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=pM(i,this.options||{},kM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(u){return u.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(mM),this.addDetector(yM),this.addDetector(vM),this.addDetector(bM),this.addDetector(xM),this.addDetector(wM),this.addDetector(_M),this.addDetector(SM)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var a=[];return n.forEach(function(u){if(i.detectors[u]){var f=i.detectors[u].lookup(i.options);f&&typeof f=="string"&&(f=[f]),f&&(a=a.concat(f))}}),a=a.map(function(u){return i.options.convertDetectedLanguage(u)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(u){a.detectors[u]&&a.detectors[u].cacheUserLanguage(n,a.options)}))}}]),e}();M0.type="languageDetector";const CM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,EM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},DM=e=>EM[e],TM=e=>e.replace(CM,DM);let pm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:TM};function OM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pm={...pm,...e}}const RM={type:"3rdParty",init(e){OM(e.options.react)}};var P0=[],AM=P0.forEach,MM=P0.slice;function PM(e){return AM.call(MM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function IM(e){return e?typeof e=="function"?new e:e:null}function LM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function gm(e,t,n,i){var a=e.read.bind(e);if(a.length===2){try{var u=a(t,n);u&&typeof u.then=="function"?u.then(function(f){return i(null,f)}).catch(i):i(null,u)}catch(f){i(f)}return}a(t,n,i)}var I0=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O0(this,e),this.backends=[],this.type="backend",this.allOptions=i,this.init(t,n)}return R0(e,[{key:"init",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=PM(a,this.options||{},LM()),this.allOptions=u,this.options.backends&&this.options.backends.forEach(function(f,m){i.backends[m]=i.backends[m]||IM(f),i.backends[m].init(n,i.options.backendOptions&&i.options.backendOptions[m]||{},u)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,i,a){var u=this,f=this.backends.length,m=function w(S){if(S>=f)return a(new Error("non of the backend loaded data",!0));var R=S===f-1,T=u.options.handleEmptyResourcesAsFailed&&!R?0:-1,H=u.backends[S];H.read?gm(H,n,i,function(F,I,Z){if(!F&&I&&Object.keys(I).length>T){if(a(null,I,S),y(S-1,I),H.save&&u.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(u.options.cacheHitMode)>-1){if(Z&&u.options.refreshExpirationTime&&Z+u.options.refreshExpirationTime>Date.now())return;var Y=u.backends[S+1];Y&&Y.read&&gm(Y,n,i,function(oe,fe){oe||fe&&(Object.keys(fe).length<=T||(y(S,fe),u.options.cacheHitMode==="refreshAndUpdateStore"&&u.services&&u.services.resourceStore&&u.services.resourceStore.addResourceBundle(n,i,fe)))})}}else w(S+1)}):w(S+1)},y=function w(S,R){if(!(S<0)){var T=u.backends[S];T.save&&T.save(n,i,R),w(S-1,R)}};m(0)}},{key:"create",value:function(n,i,a,u){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(y){if(y.create){var w=y.create.bind(y);if(w.length<6){try{var S;w.length===5?S=w(n,i,a,u,m):S=w(n,i,a,u),S&&typeof S.then=="function"?S.then(function(R){return f(null,R)}).catch(f):f(null,S)}catch(R){f(R)}return}w(n,i,a,u,f,m)}})}},{key:"reload",value:function(){var n=this,i=this.services,a=i.backendConnector,u=i.languageUtils,f=i.logger,m=a.language;if(!(m&&m.toLowerCase()==="cimode")){var y=[],w=function(R){var T=u.toResolveHierarchy(R);T.forEach(function(H){y.indexOf(H)<0&&y.push(H)})};w(m),this.allOptions.preload&&this.allOptions.preload.forEach(function(S){return w(S)}),y.forEach(function(S){n.allOptions.ns.forEach(function(R){a.read(S,R,"read",null,null,function(T,H){T&&f.warn("loading namespace ".concat(R," for language ").concat(S," failed"),T),!T&&H&&f.log("loaded namespace ".concat(R," for language ").concat(S),H),a.loaded("".concat(S,"|").concat(R),T,H)})})})}}}]),e}();I0.type="backend";function hd(e){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(e)}function L0(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":hd(XMLHttpRequest))==="object"}function NM(e){return!!e&&typeof e.then=="function"}function jM(e){return NM(e)?e:Promise.resolve(e)}function $M(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pd={exports:{}},qu={exports:{}},mm;function FM(){return mm||(mm=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof C.commonjsGlobal<"u"&&C.commonjsGlobal,i=function(){function u(){this.fetch=!1,this.DOMException=n.DOMException}return u.prototype=n,new u}();(function(u){(function(f){var m=typeof u<"u"&&u||typeof self<"u"&&self||typeof m<"u"&&m,y={searchParams:"URLSearchParams"in m,iterable:"Symbol"in m&&"iterator"in Symbol,blob:"FileReader"in m&&"Blob"in m&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in m,arrayBuffer:"ArrayBuffer"in m};function w(U){return U&&DataView.prototype.isPrototypeOf(U)}if(y.arrayBuffer)var S=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],R=ArrayBuffer.isView||function(U){return U&&S.indexOf(Object.prototype.toString.call(U))>-1};function T(U){if(typeof U!="string"&&(U=String(U)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(U)||U==="")throw new TypeError('Invalid character in header field name: "'+U+'"');return U.toLowerCase()}function H(U){return typeof U!="string"&&(U=String(U)),U}function F(U){var te={next:function(){var he=U.shift();return{done:he===void 0,value:he}}};return y.iterable&&(te[Symbol.iterator]=function(){return te}),te}function I(U){this.map={},U instanceof I?U.forEach(function(te,he){this.append(he,te)},this):Array.isArray(U)?U.forEach(function(te){this.append(te[0],te[1])},this):U&&Object.getOwnPropertyNames(U).forEach(function(te){this.append(te,U[te])},this)}I.prototype.append=function(U,te){U=T(U),te=H(te);var he=this.map[U];this.map[U]=he?he+", "+te:te},I.prototype.delete=function(U){delete this.map[T(U)]},I.prototype.get=function(U){return U=T(U),this.has(U)?this.map[U]:null},I.prototype.has=function(U){return this.map.hasOwnProperty(T(U))},I.prototype.set=function(U,te){this.map[T(U)]=H(te)},I.prototype.forEach=function(U,te){for(var he in this.map)this.map.hasOwnProperty(he)&&U.call(te,this.map[he],he,this)},I.prototype.keys=function(){var U=[];return this.forEach(function(te,he){U.push(he)}),F(U)},I.prototype.values=function(){var U=[];return this.forEach(function(te){U.push(te)}),F(U)},I.prototype.entries=function(){var U=[];return this.forEach(function(te,he){U.push([he,te])}),F(U)},y.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function Z(U){if(U.bodyUsed)return Promise.reject(new TypeError("Already read"));U.bodyUsed=!0}function Y(U){return new Promise(function(te,he){U.onload=function(){te(U.result)},U.onerror=function(){he(U.error)}})}function oe(U){var te=new FileReader,he=Y(te);return te.readAsArrayBuffer(U),he}function fe(U){var te=new FileReader,he=Y(te);return te.readAsText(U),he}function ue(U){for(var te=new Uint8Array(U),he=new Array(te.length),ce=0;ce<te.length;ce++)he[ce]=String.fromCharCode(te[ce]);return he.join("")}function re(U){if(U.slice)return U.slice(0);var te=new Uint8Array(U.byteLength);return te.set(new Uint8Array(U)),te.buffer}function ae(){return this.bodyUsed=!1,this._initBody=function(U){this.bodyUsed=this.bodyUsed,this._bodyInit=U,U?typeof U=="string"?this._bodyText=U:y.blob&&Blob.prototype.isPrototypeOf(U)?this._bodyBlob=U:y.formData&&FormData.prototype.isPrototypeOf(U)?this._bodyFormData=U:y.searchParams&&URLSearchParams.prototype.isPrototypeOf(U)?this._bodyText=U.toString():y.arrayBuffer&&y.blob&&w(U)?(this._bodyArrayBuffer=re(U.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(U)||R(U))?this._bodyArrayBuffer=re(U):this._bodyText=U=Object.prototype.toString.call(U):this._bodyText="",this.headers.get("content-type")||(typeof U=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(U)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var U=Z(this);if(U)return U;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var U=Z(this);return U||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(oe)}),this.text=function(){var U=Z(this);if(U)return U;if(this._bodyBlob)return fe(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ue(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(Je)}),this.json=function(){return this.text().then(JSON.parse)},this}var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ae(U){var te=U.toUpperCase();return h.indexOf(te)>-1?te:U}function le(U,te){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');te=te||{};var he=te.body;if(U instanceof le){if(U.bodyUsed)throw new TypeError("Already read");this.url=U.url,this.credentials=U.credentials,te.headers||(this.headers=new I(U.headers)),this.method=U.method,this.mode=U.mode,this.signal=U.signal,!he&&U._bodyInit!=null&&(he=U._bodyInit,U.bodyUsed=!0)}else this.url=String(U);if(this.credentials=te.credentials||this.credentials||"same-origin",(te.headers||!this.headers)&&(this.headers=new I(te.headers)),this.method=Ae(te.method||this.method||"GET"),this.mode=te.mode||this.mode||null,this.signal=te.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&he)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(he),(this.method==="GET"||this.method==="HEAD")&&(te.cache==="no-store"||te.cache==="no-cache")){var ce=/([?&])_=[^&]*/;if(ce.test(this.url))this.url=this.url.replace(ce,"$1_="+new Date().getTime());else{var Ce=/\?/;this.url+=(Ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}le.prototype.clone=function(){return new le(this,{body:this._bodyInit})};function Je(U){var te=new FormData;return U.trim().split("&").forEach(function(he){if(he){var ce=he.split("="),Ce=ce.shift().replace(/\+/g," "),_e=ce.join("=").replace(/\+/g," ");te.append(decodeURIComponent(Ce),decodeURIComponent(_e))}}),te}function je(U){var te=new I,he=U.replace(/\r?\n[\t ]+/g," ");return he.split("\r").map(function(ce){return ce.indexOf(`
131
+ `)===0?ce.substr(1,ce.length):ce}).forEach(function(ce){var Ce=ce.split(":"),_e=Ce.shift().trim();if(_e){var ft=Ce.join(":").trim();te.append(_e,ft)}}),te}ae.call(le.prototype);function Ie(U,te){if(!(this instanceof Ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');te||(te={}),this.type="default",this.status=te.status===void 0?200:te.status,this.ok=this.status>=200&&this.status<300,this.statusText=te.statusText===void 0?"":""+te.statusText,this.headers=new I(te.headers),this.url=te.url||"",this._initBody(U)}ae.call(Ie.prototype),Ie.prototype.clone=function(){return new Ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Ie.error=function(){var U=new Ie(null,{status:0,statusText:""});return U.type="error",U};var ke=[301,302,303,307,308];Ie.redirect=function(U,te){if(ke.indexOf(te)===-1)throw new RangeError("Invalid status code");return new Ie(null,{status:te,headers:{location:U}})},f.DOMException=m.DOMException;try{new f.DOMException}catch{f.DOMException=function(te,he){this.message=te,this.name=he;var ce=Error(te);this.stack=ce.stack},f.DOMException.prototype=Object.create(Error.prototype),f.DOMException.prototype.constructor=f.DOMException}function ze(U,te){return new Promise(function(he,ce){var Ce=new le(U,te);if(Ce.signal&&Ce.signal.aborted)return ce(new f.DOMException("Aborted","AbortError"));var _e=new XMLHttpRequest;function ft(){_e.abort()}_e.onload=function(){var dt={status:_e.status,statusText:_e.statusText,headers:je(_e.getAllResponseHeaders()||"")};dt.url="responseURL"in _e?_e.responseURL:dt.headers.get("X-Request-URL");var Ct="response"in _e?_e.response:_e.responseText;setTimeout(function(){he(new Ie(Ct,dt))},0)},_e.onerror=function(){setTimeout(function(){ce(new TypeError("Network request failed"))},0)},_e.ontimeout=function(){setTimeout(function(){ce(new TypeError("Network request failed"))},0)},_e.onabort=function(){setTimeout(function(){ce(new f.DOMException("Aborted","AbortError"))},0)};function vt(dt){try{return dt===""&&m.location.href?m.location.href:dt}catch{return dt}}_e.open(Ce.method,vt(Ce.url),!0),Ce.credentials==="include"?_e.withCredentials=!0:Ce.credentials==="omit"&&(_e.withCredentials=!1),"responseType"in _e&&(y.blob?_e.responseType="blob":y.arrayBuffer&&Ce.headers.get("Content-Type")&&Ce.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(_e.responseType="arraybuffer")),te&&typeof te.headers=="object"&&!(te.headers instanceof I)?Object.getOwnPropertyNames(te.headers).forEach(function(dt){_e.setRequestHeader(dt,H(te.headers[dt]))}):Ce.headers.forEach(function(dt,Ct){_e.setRequestHeader(Ct,dt)}),Ce.signal&&(Ce.signal.addEventListener("abort",ft),_e.onreadystatechange=function(){_e.readyState===4&&Ce.signal.removeEventListener("abort",ft)}),_e.send(typeof Ce._bodyInit>"u"?null:Ce._bodyInit)})}return ze.polyfill=!0,m.fetch||(m.fetch=ze,m.Headers=I,m.Request=le,m.Response=Ie),f.Headers=I,f.Request=le,f.Response=Ie,f.fetch=ze,f})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=n.fetch?n:i;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(qu,qu.exports)),qu.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof C.commonjsGlobal<"u"&&C.commonjsGlobal.fetch?n=C.commonjsGlobal.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof $M<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=n||FM();i.default&&(i=i.default),t.default=i,e.exports=t.default}})(pd,pd.exports);var N0=pd.exports;const j0=C.getDefaultExportFromCjs(N0),ym=AS({__proto__:null,default:j0},[N0]);function vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(n),!0).forEach(function(i){BM(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function BM(e,t,n){return t=HM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HM(e){var t=YM(e,"string");return gs(t)=="symbol"?t:String(t)}function YM(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(gs(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}var pi;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?pi=global.fetch:typeof window<"u"&&window.fetch?pi=window.fetch:pi=fetch);var mo;L0()&&(typeof global<"u"&&global.XMLHttpRequest?mo=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(mo=window.XMLHttpRequest));var hl;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?hl=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(hl=window.ActiveXObject));!pi&&ym&&!mo&&!hl&&(pi=j0||ym);typeof pi!="function"&&(pi=void 0);var gd=function(t,n){if(n&&gs(n)==="object"){var i="";for(var a in n)i+="&"+encodeURIComponent(a)+"="+encodeURIComponent(n[a]);if(!i)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+i.slice(1)}return t},xm=function(t,n,i,a){var u=function(y){if(!y.ok)return i(y.statusText||"Error",{status:y.status});y.text().then(function(w){i(null,{status:y.status,data:w})}).catch(i)};if(a){var f=a(t,n);if(f instanceof Promise){f.then(u).catch(i);return}}typeof fetch=="function"?fetch(t,n).then(u).catch(i):pi(t,n).then(u).catch(i)},wm=!1,WM=function(t,n,i,a){t.queryStringParams&&(n=gd(n,t.queryStringParams));var u=bm({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(u["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(u["Content-Type"]="application/json");var f=typeof t.requestOptions=="function"?t.requestOptions(i):t.requestOptions,m=bm({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:u},wm?{}:f),y=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{xm(n,m,a,y)}catch(w){if(!f||Object.keys(f).length===0||!w.message||w.message.indexOf("not implemented")<0)return a(w);try{Object.keys(f).forEach(function(S){delete m[S]}),xm(n,m,a,y),wm=!0}catch(S){a(S)}}},UM=function(t,n,i,a){i&&gs(i)==="object"&&(i=gd("",i).slice(1)),t.queryStringParams&&(n=gd(n,t.queryStringParams));try{var u;mo?u=new mo:u=new hl("MSXML2.XMLHTTP.3.0"),u.open(i?"POST":"GET",n,1),t.crossDomain||u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.withCredentials=!!t.withCredentials,i&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.overrideMimeType&&u.overrideMimeType("application/json");var f=t.customHeaders;if(f=typeof f=="function"?f():f,f)for(var m in f)u.setRequestHeader(m,f[m]);u.onreadystatechange=function(){u.readyState>3&&a(u.status>=400?u.statusText:null,{status:u.status,data:u.responseText})},u.send(i)}catch(y){console&&console.log(y)}},qM=function(t,n,i,a){if(typeof i=="function"&&(a=i,i=void 0),a=a||function(){},pi&&n.indexOf("file:")!==0)return WM(t,n,i,a);if(L0()||typeof ActiveXObject=="function")return UM(t,n,i,a);a(new Error("No fetch and no xhr implementation found!"))};function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(i){$0(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sm(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,F0(i.key),i)}}function VM(e,t,n){return t&&Sm(e.prototype,t),n&&Sm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $0(e,t,n){return t=F0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F0(e){var t=GM(e,"string");return yo(t)=="symbol"?t:String(t)}function GM(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(yo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KM=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,i,a){return $0({},i,a||"")},parseLoadPayload:function(n,i){},request:qM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},B0=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zM(this,e),this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)}return VM(e,[{key:"init",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Ff(Ff(Ff({},KM()),this.options||{}),a),this.allOptions=u,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,i,a){this._readAny(n,n,i,i,a)}},{key:"read",value:function(n,i,a){this._readAny([n],n,[i],i,a)}},{key:"_readAny",value:function(n,i,a,u,f){var m=this,y=this.options.loadPath;typeof this.options.loadPath=="function"&&(y=this.options.loadPath(n,a)),y=jM(y),y.then(function(w){if(!w)return f(null,{});var S=m.services.interpolator.interpolate(w,{lng:n.join("+"),ns:a.join("+")});m.loadUrl(S,f,i,u)})}},{key:"loadUrl",value:function(n,i,a,u){var f=this,m=typeof a=="string"?[a]:a,y=typeof u=="string"?[u]:u,w=this.options.parseLoadPayload(m,y);this.options.request(this.options,n,w,function(S,R){if(R&&(R.status>=500&&R.status<600||!R.status))return i("failed loading "+n+"; status code: "+R.status,!0);if(R&&R.status>=400&&R.status<500)return i("failed loading "+n+"; status code: "+R.status,!1);if(!R&&S&&S.message&&S.message.indexOf("Failed to fetch")>-1)return i("failed loading "+n+": "+S.message,!0);if(S)return i(S,!1);var T,H;try{typeof R.data=="string"?T=f.options.parse(R.data,a,u):T=R.data}catch{H="failed parsing "+n+" to json"}if(H)return i(H,!1);i(null,T)})}},{key:"create",value:function(n,i,a,u,f){var m=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var y=this.options.parsePayload(i,a,u),w=0,S=[],R=[];n.forEach(function(T){var H=m.options.addPath;typeof m.options.addPath=="function"&&(H=m.options.addPath(T,i));var F=m.services.interpolator.interpolate(H,{lng:T,ns:i});m.options.request(m.options,F,y,function(I,Z){w+=1,S.push(I),R.push(Z),w===n.length&&typeof f=="function"&&f(S,R)})})}}},{key:"reload",value:function(){var n=this,i=this.services,a=i.backendConnector,u=i.languageUtils,f=i.logger,m=a.language;if(!(m&&m.toLowerCase()==="cimode")){var y=[],w=function(R){var T=u.toResolveHierarchy(R);T.forEach(function(H){y.indexOf(H)<0&&y.push(H)})};w(m),this.allOptions.preload&&this.allOptions.preload.forEach(function(S){return w(S)}),y.forEach(function(S){n.allOptions.ns.forEach(function(R){a.read(S,R,"read",null,null,function(T,H){T&&f.warn("loading namespace ".concat(R," for language ").concat(S," failed"),T),!T&&H&&f.log("loaded namespace ".concat(R," for language ").concat(S),H),a.loaded("".concat(S,"|").concat(R),T,H)})})})}}}]),e}();B0.type="backend";var md=(e=>(e.en="en",e.de="de",e))(md||{});Vt.use(I0).use(RM).use(M0).init({initImmediate:!0,fallbackLng:"en",backend:{backends:[B0],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0}]}});const XM=C.reactExports.createContext({}),ZM=()=>C.reactExports.useContext(XM);var Bf={exports:{}};/*!
132
+ * jQuery JavaScript Library v3.7.1
133
+ * https://jquery.com/
134
+ *
135
+ * Copyright OpenJS Foundation and other contributors
136
+ * Released under the MIT license
137
+ * https://jquery.org/license
138
+ *
139
+ * Date: 2023-08-28T13:37Z
140
+ */var km;function H0(){return km||(km=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:C.commonjsGlobal,function(t,n){var i=[],a=Object.getPrototypeOf,u=i.slice,f=i.flat?function(o){return i.flat.call(o)}:function(o){return i.concat.apply([],o)},m=i.push,y=i.indexOf,w={},S=w.toString,R=w.hasOwnProperty,T=R.toString,H=T.call(Object),F={},I=function(c){return typeof c=="function"&&typeof c.nodeType!="number"&&typeof c.item!="function"},Z=function(c){return c!=null&&c===c.window},Y=t.document,oe={type:!0,src:!0,nonce:!0,noModule:!0};function fe(o,c,d){d=d||Y;var g,v,b=d.createElement("script");if(b.text=o,c)for(g in oe)v=c[g]||c.getAttribute&&c.getAttribute(g),v&&b.setAttribute(g,v);d.head.appendChild(b).parentNode.removeChild(b)}function ue(o){return o==null?o+"":typeof o=="object"||typeof o=="function"?w[S.call(o)]||"object":typeof o}var re="3.7.1",ae=/HTML$/i,h=function(o,c){return new h.fn.init(o,c)};h.fn=h.prototype={jquery:re,constructor:h,length:0,toArray:function(){return u.call(this)},get:function(o){return o==null?u.call(this):o<0?this[o+this.length]:this[o]},pushStack:function(o){var c=h.merge(this.constructor(),o);return c.prevObject=this,c},each:function(o){return h.each(this,o)},map:function(o){return this.pushStack(h.map(this,function(c,d){return o.call(c,d,c)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(h.grep(this,function(o,c){return(c+1)%2}))},odd:function(){return this.pushStack(h.grep(this,function(o,c){return c%2}))},eq:function(o){var c=this.length,d=+o+(o<0?c:0);return this.pushStack(d>=0&&d<c?[this[d]]:[])},end:function(){return this.prevObject||this.constructor()},push:m,sort:i.sort,splice:i.splice},h.extend=h.fn.extend=function(){var o,c,d,g,v,b,_=arguments[0]||{},P=1,A=arguments.length,B=!1;for(typeof _=="boolean"&&(B=_,_=arguments[P]||{},P++),typeof _!="object"&&!I(_)&&(_={}),P===A&&(_=this,P--);P<A;P++)if((o=arguments[P])!=null)for(c in o)g=o[c],!(c==="__proto__"||_===g)&&(B&&g&&(h.isPlainObject(g)||(v=Array.isArray(g)))?(d=_[c],v&&!Array.isArray(d)?b=[]:!v&&!h.isPlainObject(d)?b={}:b=d,v=!1,_[c]=h.extend(B,b,g)):g!==void 0&&(_[c]=g));return _},h.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(o){throw new Error(o)},noop:function(){},isPlainObject:function(o){var c,d;return!o||S.call(o)!=="[object Object]"?!1:(c=a(o),c?(d=R.call(c,"constructor")&&c.constructor,typeof d=="function"&&T.call(d)===H):!0)},isEmptyObject:function(o){var c;for(c in o)return!1;return!0},globalEval:function(o,c,d){fe(o,{nonce:c&&c.nonce},d)},each:function(o,c){var d,g=0;if(Ae(o))for(d=o.length;g<d&&c.call(o[g],g,o[g])!==!1;g++);else for(g in o)if(c.call(o[g],g,o[g])===!1)break;return o},text:function(o){var c,d="",g=0,v=o.nodeType;if(!v)for(;c=o[g++];)d+=h.text(c);return v===1||v===11?o.textContent:v===9?o.documentElement.textContent:v===3||v===4?o.nodeValue:d},makeArray:function(o,c){var d=c||[];return o!=null&&(Ae(Object(o))?h.merge(d,typeof o=="string"?[o]:o):m.call(d,o)),d},inArray:function(o,c,d){return c==null?-1:y.call(c,o,d)},isXMLDoc:function(o){var c=o&&o.namespaceURI,d=o&&(o.ownerDocument||o).documentElement;return!ae.test(c||d&&d.nodeName||"HTML")},merge:function(o,c){for(var d=+c.length,g=0,v=o.length;g<d;g++)o[v++]=c[g];return o.length=v,o},grep:function(o,c,d){for(var g,v=[],b=0,_=o.length,P=!d;b<_;b++)g=!c(o[b],b),g!==P&&v.push(o[b]);return v},map:function(o,c,d){var g,v,b=0,_=[];if(Ae(o))for(g=o.length;b<g;b++)v=c(o[b],b,d),v!=null&&_.push(v);else for(b in o)v=c(o[b],b,d),v!=null&&_.push(v);return f(_)},guid:1,support:F}),typeof Symbol=="function"&&(h.fn[Symbol.iterator]=i[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(o,c){w["[object "+c+"]"]=c.toLowerCase()});function Ae(o){var c=!!o&&"length"in o&&o.length,d=ue(o);return I(o)||Z(o)?!1:d==="array"||c===0||typeof c=="number"&&c>0&&c-1 in o}function le(o,c){return o.nodeName&&o.nodeName.toLowerCase()===c.toLowerCase()}var Je=i.pop,je=i.sort,Ie=i.splice,ke="[\\x20\\t\\r\\n\\f]",ze=new RegExp("^"+ke+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ke+"+$","g");h.contains=function(o,c){var d=c&&c.parentNode;return o===d||!!(d&&d.nodeType===1&&(o.contains?o.contains(d):o.compareDocumentPosition&&o.compareDocumentPosition(d)&16))};var U=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function te(o,c){return c?o==="\0"?"�":o.slice(0,-1)+"\\"+o.charCodeAt(o.length-1).toString(16)+" ":"\\"+o}h.escapeSelector=function(o){return(o+"").replace(U,te)};var he=Y,ce=m;(function(){var o,c,d,g,v,b=ce,_,P,A,B,G,K=h.expando,z=0,ie=0,me=Qi(),Le=Qi(),Pe=Qi(),Mt=Qi(),xt=function(O,$){return O===$&&(v=!0),0},Hn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Yn="(?:\\\\[\\da-fA-F]{1,6}"+ke+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ue="\\["+ke+"*("+Yn+")(?:"+ke+"*([*^$|!~]?=)"+ke+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Yn+"))|)"+ke+"*\\]",Cr=":("+Yn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ue+")*)|.*)\\)|)",qe=new RegExp(ke+"+","g"),at=new RegExp("^"+ke+"*,"+ke+"*"),Xi=new RegExp("^"+ke+"*([>+~]|"+ke+")"+ke+"*"),Rs=new RegExp(ke+"|>"),Dn=new RegExp(Cr),Xr=new RegExp("^"+Yn+"$"),yn={ID:new RegExp("^#("+Yn+")"),CLASS:new RegExp("^\\.("+Yn+")"),TAG:new RegExp("^("+Yn+"|[*])"),ATTR:new RegExp("^"+Ue),PSEUDO:new RegExp("^"+Cr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ke+"*(even|odd|(([+-]|)(\\d*)n|)"+ke+"*(?:([+-]|)"+ke+"*(\\d+)|))"+ke+"*\\)|)","i"),bool:new RegExp("^(?:"+Hn+")$","i"),needsContext:new RegExp("^"+ke+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ke+"*((?:-\\d)?\\d*)"+ke+"*\\)|)(?=[^-]|$)","i")},lr=/^(?:input|select|textarea|button)$/i,Er=/^h\d$/i,Jt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Zi=/[+~]/,cr=new RegExp("\\\\[\\da-fA-F]{1,6}"+ke+"?|\\\\([^\\r\\n\\f])","g"),Wn=function(O,$){var q="0x"+O.slice(1)-65536;return $||(q<0?String.fromCharCode(q+65536):String.fromCharCode(q>>10|55296,q&1023|56320))},sn=function(){Dr()},Ra=Zr(function(O){return O.disabled===!0&&le(O,"fieldset")},{dir:"parentNode",next:"legend"});function Ji(){try{return _.activeElement}catch{}}try{b.apply(i=u.call(he.childNodes),he.childNodes),i[he.childNodes.length].nodeType}catch{b={apply:function($,q){ce.apply($,u.call(q))},call:function($){ce.apply($,u.call(arguments,1))}}}function Qe(O,$,q,V){var D,N,L,X,J,ve,be,ge=$&&$.ownerDocument,$e=$?$.nodeType:9;if(q=q||[],typeof O!="string"||!O||$e!==1&&$e!==9&&$e!==11)return q;if(!V&&(Dr($),$=$||_,A)){if($e!==11&&(J=Jt.exec(O)))if(D=J[1]){if($e===9)if(L=$.getElementById(D)){if(L.id===D)return b.call(q,L),q}else return q;else if(ge&&(L=ge.getElementById(D))&&Qe.contains($,L)&&L.id===D)return b.call(q,L),q}else{if(J[2])return b.apply(q,$.getElementsByTagName(O)),q;if((D=J[3])&&$.getElementsByClassName)return b.apply(q,$.getElementsByClassName(D)),q}if(!Mt[O+" "]&&(!B||!B.test(O))){if(be=O,ge=$,$e===1&&(Rs.test(O)||Xi.test(O))){for(ge=Zi.test(O)&&Aa($.parentNode)||$,(ge!=$||!F.scope)&&((X=$.getAttribute("id"))?X=h.escapeSelector(X):$.setAttribute("id",X=K)),ve=Ai(O),N=ve.length;N--;)ve[N]=(X?"#"+X:":scope")+" "+On(ve[N]);be=ve.join(",")}try{return b.apply(q,ge.querySelectorAll(be)),q}catch{Mt(O,!0)}finally{X===K&&$.removeAttribute("id")}}}return su(O.replace(ze,"$1"),$,q,V)}function Qi(){var O=[];function $(q,V){return O.push(q+" ")>c.cacheLength&&delete $[O.shift()],$[q+" "]=V}return $}function Tn(O){return O[K]=!0,O}function Ri(O){var $=_.createElement("fieldset");try{return!!O($)}catch{return!1}finally{$.parentNode&&$.parentNode.removeChild($),$=null}}function Ic(O){return function($){return le($,"input")&&$.type===O}}function Lc(O){return function($){return(le($,"input")||le($,"button"))&&$.type===O}}function ru(O){return function($){return"form"in $?$.parentNode&&$.disabled===!1?"label"in $?"label"in $.parentNode?$.parentNode.disabled===O:$.disabled===O:$.isDisabled===O||$.isDisabled!==!O&&Ra($)===O:$.disabled===O:"label"in $?$.disabled===O:!1}}function vn(O){return Tn(function($){return $=+$,Tn(function(q,V){for(var D,N=O([],q.length,$),L=N.length;L--;)q[D=N[L]]&&(q[D]=!(V[D]=q[D]))})})}function Aa(O){return O&&typeof O.getElementsByTagName<"u"&&O}function Dr(O){var $,q=O?O.ownerDocument||O:he;return q==_||q.nodeType!==9||!q.documentElement||(_=q,P=_.documentElement,A=!h.isXMLDoc(_),G=P.matches||P.webkitMatchesSelector||P.msMatchesSelector,P.msMatchesSelector&&he!=_&&($=_.defaultView)&&$.top!==$&&$.addEventListener("unload",sn),F.getById=Ri(function(V){return P.appendChild(V).id=h.expando,!_.getElementsByName||!_.getElementsByName(h.expando).length}),F.disconnectedMatch=Ri(function(V){return G.call(V,"*")}),F.scope=Ri(function(){return _.querySelectorAll(":scope")}),F.cssHas=Ri(function(){try{return _.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),F.getById?(c.filter.ID=function(V){var D=V.replace(cr,Wn);return function(N){return N.getAttribute("id")===D}},c.find.ID=function(V,D){if(typeof D.getElementById<"u"&&A){var N=D.getElementById(V);return N?[N]:[]}}):(c.filter.ID=function(V){var D=V.replace(cr,Wn);return function(N){var L=typeof N.getAttributeNode<"u"&&N.getAttributeNode("id");return L&&L.value===D}},c.find.ID=function(V,D){if(typeof D.getElementById<"u"&&A){var N,L,X,J=D.getElementById(V);if(J){if(N=J.getAttributeNode("id"),N&&N.value===V)return[J];for(X=D.getElementsByName(V),L=0;J=X[L++];)if(N=J.getAttributeNode("id"),N&&N.value===V)return[J]}return[]}}),c.find.TAG=function(V,D){return typeof D.getElementsByTagName<"u"?D.getElementsByTagName(V):D.querySelectorAll(V)},c.find.CLASS=function(V,D){if(typeof D.getElementsByClassName<"u"&&A)return D.getElementsByClassName(V)},B=[],Ri(function(V){var D;P.appendChild(V).innerHTML="<a id='"+K+"' href='' disabled='disabled'></a><select id='"+K+"-\r\\' disabled='disabled'><option selected=''></option></select>",V.querySelectorAll("[selected]").length||B.push("\\["+ke+"*(?:value|"+Hn+")"),V.querySelectorAll("[id~="+K+"-]").length||B.push("~="),V.querySelectorAll("a#"+K+"+*").length||B.push(".#.+[+~]"),V.querySelectorAll(":checked").length||B.push(":checked"),D=_.createElement("input"),D.setAttribute("type","hidden"),V.appendChild(D).setAttribute("name","D"),P.appendChild(V).disabled=!0,V.querySelectorAll(":disabled").length!==2&&B.push(":enabled",":disabled"),D=_.createElement("input"),D.setAttribute("name",""),V.appendChild(D),V.querySelectorAll("[name='']").length||B.push("\\["+ke+"*name"+ke+"*="+ke+`*(?:''|"")`)}),F.cssHas||B.push(":has"),B=B.length&&new RegExp(B.join("|")),xt=function(V,D){if(V===D)return v=!0,0;var N=!V.compareDocumentPosition-!D.compareDocumentPosition;return N||(N=(V.ownerDocument||V)==(D.ownerDocument||D)?V.compareDocumentPosition(D):1,N&1||!F.sortDetached&&D.compareDocumentPosition(V)===N?V===_||V.ownerDocument==he&&Qe.contains(he,V)?-1:D===_||D.ownerDocument==he&&Qe.contains(he,D)?1:g?y.call(g,V)-y.call(g,D):0:N&4?-1:1)}),_}Qe.matches=function(O,$){return Qe(O,null,null,$)},Qe.matchesSelector=function(O,$){if(Dr(O),A&&!Mt[$+" "]&&(!B||!B.test($)))try{var q=G.call(O,$);if(q||F.disconnectedMatch||O.document&&O.document.nodeType!==11)return q}catch{Mt($,!0)}return Qe($,_,null,[O]).length>0},Qe.contains=function(O,$){return(O.ownerDocument||O)!=_&&Dr(O),h.contains(O,$)},Qe.attr=function(O,$){(O.ownerDocument||O)!=_&&Dr(O);var q=c.attrHandle[$.toLowerCase()],V=q&&R.call(c.attrHandle,$.toLowerCase())?q(O,$,!A):void 0;return V!==void 0?V:O.getAttribute($)},Qe.error=function(O){throw new Error("Syntax error, unrecognized expression: "+O)},h.uniqueSort=function(O){var $,q=[],V=0,D=0;if(v=!F.sortStable,g=!F.sortStable&&u.call(O,0),je.call(O,xt),v){for(;$=O[D++];)$===O[D]&&(V=q.push(D));for(;V--;)Ie.call(O,q[V],1)}return g=null,O},h.fn.uniqueSort=function(){return this.pushStack(h.uniqueSort(u.apply(this)))},c=h.expr={cacheLength:50,createPseudo:Tn,match:yn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(O){return O[1]=O[1].replace(cr,Wn),O[3]=(O[3]||O[4]||O[5]||"").replace(cr,Wn),O[2]==="~="&&(O[3]=" "+O[3]+" "),O.slice(0,4)},CHILD:function(O){return O[1]=O[1].toLowerCase(),O[1].slice(0,3)==="nth"?(O[3]||Qe.error(O[0]),O[4]=+(O[4]?O[5]+(O[6]||1):2*(O[3]==="even"||O[3]==="odd")),O[5]=+(O[7]+O[8]||O[3]==="odd")):O[3]&&Qe.error(O[0]),O},PSEUDO:function(O){var $,q=!O[6]&&O[2];return yn.CHILD.test(O[0])?null:(O[3]?O[2]=O[4]||O[5]||"":q&&Dn.test(q)&&($=Ai(q,!0))&&($=q.indexOf(")",q.length-$)-q.length)&&(O[0]=O[0].slice(0,$),O[2]=q.slice(0,$)),O.slice(0,3))}},filter:{TAG:function(O){var $=O.replace(cr,Wn).toLowerCase();return O==="*"?function(){return!0}:function(q){return le(q,$)}},CLASS:function(O){var $=me[O+" "];return $||($=new RegExp("(^|"+ke+")"+O+"("+ke+"|$)"))&&me(O,function(q){return $.test(typeof q.className=="string"&&q.className||typeof q.getAttribute<"u"&&q.getAttribute("class")||"")})},ATTR:function(O,$,q){return function(V){var D=Qe.attr(V,O);return D==null?$==="!=":$?(D+="",$==="="?D===q:$==="!="?D!==q:$==="^="?q&&D.indexOf(q)===0:$==="*="?q&&D.indexOf(q)>-1:$==="$="?q&&D.slice(-q.length)===q:$==="~="?(" "+D.replace(qe," ")+" ").indexOf(q)>-1:$==="|="?D===q||D.slice(0,q.length+1)===q+"-":!1):!0}},CHILD:function(O,$,q,V,D){var N=O.slice(0,3)!=="nth",L=O.slice(-4)!=="last",X=$==="of-type";return V===1&&D===0?function(J){return!!J.parentNode}:function(J,ve,be){var ge,$e,Ee,Ye,Pt,Bt=N!==L?"nextSibling":"previousSibling",It=J.parentNode,on=X&&J.nodeName.toLowerCase(),fr=!be&&!X,Me=!1;if(It){if(N){for(;Bt;){for(Ee=J;Ee=Ee[Bt];)if(X?le(Ee,on):Ee.nodeType===1)return!1;Pt=Bt=O==="only"&&!Pt&&"nextSibling"}return!0}if(Pt=[L?It.firstChild:It.lastChild],L&&fr){for($e=It[K]||(It[K]={}),ge=$e[O]||[],Ye=ge[0]===z&&ge[1],Me=Ye&&ge[2],Ee=Ye&&It.childNodes[Ye];Ee=++Ye&&Ee&&Ee[Bt]||(Me=Ye=0)||Pt.pop();)if(Ee.nodeType===1&&++Me&&Ee===J){$e[O]=[z,Ye,Me];break}}else if(fr&&($e=J[K]||(J[K]={}),ge=$e[O]||[],Ye=ge[0]===z&&ge[1],Me=Ye),Me===!1)for(;(Ee=++Ye&&Ee&&Ee[Bt]||(Me=Ye=0)||Pt.pop())&&!((X?le(Ee,on):Ee.nodeType===1)&&++Me&&(fr&&($e=Ee[K]||(Ee[K]={}),$e[O]=[z,Me]),Ee===J)););return Me-=D,Me===V||Me%V===0&&Me/V>=0}}},PSEUDO:function(O,$){var q,V=c.pseudos[O]||c.setFilters[O.toLowerCase()]||Qe.error("unsupported pseudo: "+O);return V[K]?V($):V.length>1?(q=[O,O,"",$],c.setFilters.hasOwnProperty(O.toLowerCase())?Tn(function(D,N){for(var L,X=V(D,$),J=X.length;J--;)L=y.call(D,X[J]),D[L]=!(N[L]=X[J])}):function(D){return V(D,0,q)}):V}},pseudos:{not:Tn(function(O){var $=[],q=[],V=Pa(O.replace(ze,"$1"));return V[K]?Tn(function(D,N,L,X){for(var J,ve=V(D,null,X,[]),be=D.length;be--;)(J=ve[be])&&(D[be]=!(N[be]=J))}):function(D,N,L){return $[0]=D,V($,null,L,q),$[0]=null,!q.pop()}}),has:Tn(function(O){return function($){return Qe(O,$).length>0}}),contains:Tn(function(O){return O=O.replace(cr,Wn),function($){return($.textContent||h.text($)).indexOf(O)>-1}}),lang:Tn(function(O){return Xr.test(O||"")||Qe.error("unsupported lang: "+O),O=O.replace(cr,Wn).toLowerCase(),function($){var q;do if(q=A?$.lang:$.getAttribute("xml:lang")||$.getAttribute("lang"))return q=q.toLowerCase(),q===O||q.indexOf(O+"-")===0;while(($=$.parentNode)&&$.nodeType===1);return!1}}),target:function(O){var $=t.location&&t.location.hash;return $&&$.slice(1)===O.id},root:function(O){return O===P},focus:function(O){return O===Ji()&&_.hasFocus()&&!!(O.type||O.href||~O.tabIndex)},enabled:ru(!1),disabled:ru(!0),checked:function(O){return le(O,"input")&&!!O.checked||le(O,"option")&&!!O.selected},selected:function(O){return O.parentNode&&O.parentNode.selectedIndex,O.selected===!0},empty:function(O){for(O=O.firstChild;O;O=O.nextSibling)if(O.nodeType<6)return!1;return!0},parent:function(O){return!c.pseudos.empty(O)},header:function(O){return Er.test(O.nodeName)},input:function(O){return lr.test(O.nodeName)},button:function(O){return le(O,"input")&&O.type==="button"||le(O,"button")},text:function(O){var $;return le(O,"input")&&O.type==="text"&&(($=O.getAttribute("type"))==null||$.toLowerCase()==="text")},first:vn(function(){return[0]}),last:vn(function(O,$){return[$-1]}),eq:vn(function(O,$,q){return[q<0?q+$:q]}),even:vn(function(O,$){for(var q=0;q<$;q+=2)O.push(q);return O}),odd:vn(function(O,$){for(var q=1;q<$;q+=2)O.push(q);return O}),lt:vn(function(O,$,q){var V;for(q<0?V=q+$:q>$?V=$:V=q;--V>=0;)O.push(V);return O}),gt:vn(function(O,$,q){for(var V=q<0?q+$:q;++V<$;)O.push(V);return O})}},c.pseudos.nth=c.pseudos.eq;for(o in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})c.pseudos[o]=Ic(o);for(o in{submit:!0,reset:!0})c.pseudos[o]=Lc(o);function As(){}As.prototype=c.filters=c.pseudos,c.setFilters=new As;function Ai(O,$){var q,V,D,N,L,X,J,ve=Le[O+" "];if(ve)return $?0:ve.slice(0);for(L=O,X=[],J=c.preFilter;L;){(!q||(V=at.exec(L)))&&(V&&(L=L.slice(V[0].length)||L),X.push(D=[])),q=!1,(V=Xi.exec(L))&&(q=V.shift(),D.push({value:q,type:V[0].replace(ze," ")}),L=L.slice(q.length));for(N in c.filter)(V=yn[N].exec(L))&&(!J[N]||(V=J[N](V)))&&(q=V.shift(),D.push({value:q,type:N,matches:V}),L=L.slice(q.length));if(!q)break}return $?L.length:L?Qe.error(O):Le(O,X).slice(0)}function On(O){for(var $=0,q=O.length,V="";$<q;$++)V+=O[$].value;return V}function Zr(O,$,q){var V=$.dir,D=$.next,N=D||V,L=q&&N==="parentNode",X=ie++;return $.first?function(J,ve,be){for(;J=J[V];)if(J.nodeType===1||L)return O(J,ve,be);return!1}:function(J,ve,be){var ge,$e,Ee=[z,X];if(be){for(;J=J[V];)if((J.nodeType===1||L)&&O(J,ve,be))return!0}else for(;J=J[V];)if(J.nodeType===1||L)if($e=J[K]||(J[K]={}),D&&le(J,D))J=J[V]||J;else{if((ge=$e[N])&&ge[0]===z&&ge[1]===X)return Ee[2]=ge[2];if($e[N]=Ee,Ee[2]=O(J,ve,be))return!0}return!1}}function Ma(O){return O.length>1?function($,q,V){for(var D=O.length;D--;)if(!O[D]($,q,V))return!1;return!0}:O[0]}function Nc(O,$,q){for(var V=0,D=$.length;V<D;V++)Qe(O,$[V],q);return q}function Ms(O,$,q,V,D){for(var N,L=[],X=0,J=O.length,ve=$!=null;X<J;X++)(N=O[X])&&(!q||q(N,V,D))&&(L.push(N),ve&&$.push(X));return L}function Tr(O,$,q,V,D,N){return V&&!V[K]&&(V=Tr(V)),D&&!D[K]&&(D=Tr(D,N)),Tn(function(L,X,J,ve){var be,ge,$e,Ee,Ye=[],Pt=[],Bt=X.length,It=L||Nc($||"*",J.nodeType?[J]:J,[]),on=O&&(L||!$)?Ms(It,Ye,O,J,ve):It;if(q?(Ee=D||(L?O:Bt||V)?[]:X,q(on,Ee,J,ve)):Ee=on,V)for(be=Ms(Ee,Pt),V(be,[],J,ve),ge=be.length;ge--;)($e=be[ge])&&(Ee[Pt[ge]]=!(on[Pt[ge]]=$e));if(L){if(D||O){if(D){for(be=[],ge=Ee.length;ge--;)($e=Ee[ge])&&be.push(on[ge]=$e);D(null,Ee=[],be,ve)}for(ge=Ee.length;ge--;)($e=Ee[ge])&&(be=D?y.call(L,$e):Ye[ge])>-1&&(L[be]=!(X[be]=$e))}}else Ee=Ms(Ee===X?Ee.splice(Bt,Ee.length):Ee),D?D(null,X,Ee,ve):b.apply(X,Ee)})}function an(O){for(var $,q,V,D=O.length,N=c.relative[O[0].type],L=N||c.relative[" "],X=N?1:0,J=Zr(function(ge){return ge===$},L,!0),ve=Zr(function(ge){return y.call($,ge)>-1},L,!0),be=[function(ge,$e,Ee){var Ye=!N&&(Ee||$e!=d)||(($=$e).nodeType?J(ge,$e,Ee):ve(ge,$e,Ee));return $=null,Ye}];X<D;X++)if(q=c.relative[O[X].type])be=[Zr(Ma(be),q)];else{if(q=c.filter[O[X].type].apply(null,O[X].matches),q[K]){for(V=++X;V<D&&!c.relative[O[V].type];V++);return Tr(X>1&&Ma(be),X>1&&On(O.slice(0,X-1).concat({value:O[X-2].type===" "?"*":""})).replace(ze,"$1"),q,X<V&&an(O.slice(X,V)),V<D&&an(O=O.slice(V)),V<D&&On(O))}be.push(q)}return Ma(be)}function iu(O,$){var q=$.length>0,V=O.length>0,D=function(N,L,X,J,ve){var be,ge,$e,Ee=0,Ye="0",Pt=N&&[],Bt=[],It=d,on=N||V&&c.find.TAG("*",ve),fr=z+=It==null?1:Math.random()||.1,Me=on.length;for(ve&&(d=L==_||L||ve);Ye!==Me&&(be=on[Ye])!=null;Ye++){if(V&&be){for(ge=0,!L&&be.ownerDocument!=_&&(Dr(be),X=!A);$e=O[ge++];)if($e(be,L||_,X)){b.call(J,be);break}ve&&(z=fr)}q&&((be=!$e&&be)&&Ee--,N&&Pt.push(be))}if(Ee+=Ye,q&&Ye!==Ee){for(ge=0;$e=$[ge++];)$e(Pt,Bt,L,X);if(N){if(Ee>0)for(;Ye--;)Pt[Ye]||Bt[Ye]||(Bt[Ye]=Je.call(J));Bt=Ms(Bt)}b.apply(J,Bt),ve&&!N&&Bt.length>0&&Ee+$.length>1&&h.uniqueSort(J)}return ve&&(z=fr,d=It),Pt};return q?Tn(D):D}function Pa(O,$){var q,V=[],D=[],N=Pe[O+" "];if(!N){for($||($=Ai(O)),q=$.length;q--;)N=an($[q]),N[K]?V.push(N):D.push(N);N=Pe(O,iu(D,V)),N.selector=O}return N}function su(O,$,q,V){var D,N,L,X,J,ve=typeof O=="function"&&O,be=!V&&Ai(O=ve.selector||O);if(q=q||[],be.length===1){if(N=be[0]=be[0].slice(0),N.length>2&&(L=N[0]).type==="ID"&&$.nodeType===9&&A&&c.relative[N[1].type]){if($=(c.find.ID(L.matches[0].replace(cr,Wn),$)||[])[0],$)ve&&($=$.parentNode);else return q;O=O.slice(N.shift().value.length)}for(D=yn.needsContext.test(O)?0:N.length;D--&&(L=N[D],!c.relative[X=L.type]);)if((J=c.find[X])&&(V=J(L.matches[0].replace(cr,Wn),Zi.test(N[0].type)&&Aa($.parentNode)||$))){if(N.splice(D,1),O=V.length&&On(N),!O)return b.apply(q,V),q;break}}return(ve||Pa(O,be))(V,$,!A,q,!$||Zi.test(O)&&Aa($.parentNode)||$),q}F.sortStable=K.split("").sort(xt).join("")===K,Dr(),F.sortDetached=Ri(function(O){return O.compareDocumentPosition(_.createElement("fieldset"))&1}),h.find=Qe,h.expr[":"]=h.expr.pseudos,h.unique=h.uniqueSort,Qe.compile=Pa,Qe.select=su,Qe.setDocument=Dr,Qe.tokenize=Ai,Qe.escape=h.escapeSelector,Qe.getText=h.text,Qe.isXML=h.isXMLDoc,Qe.selectors=h.expr,Qe.support=h.support,Qe.uniqueSort=h.uniqueSort})();var Ce=function(o,c,d){for(var g=[],v=d!==void 0;(o=o[c])&&o.nodeType!==9;)if(o.nodeType===1){if(v&&h(o).is(d))break;g.push(o)}return g},_e=function(o,c){for(var d=[];o;o=o.nextSibling)o.nodeType===1&&o!==c&&d.push(o);return d},ft=h.expr.match.needsContext,vt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function dt(o,c,d){return I(c)?h.grep(o,function(g,v){return!!c.call(g,v,g)!==d}):c.nodeType?h.grep(o,function(g){return g===c!==d}):typeof c!="string"?h.grep(o,function(g){return y.call(c,g)>-1!==d}):h.filter(c,o,d)}h.filter=function(o,c,d){var g=c[0];return d&&(o=":not("+o+")"),c.length===1&&g.nodeType===1?h.find.matchesSelector(g,o)?[g]:[]:h.find.matches(o,h.grep(c,function(v){return v.nodeType===1}))},h.fn.extend({find:function(o){var c,d,g=this.length,v=this;if(typeof o!="string")return this.pushStack(h(o).filter(function(){for(c=0;c<g;c++)if(h.contains(v[c],this))return!0}));for(d=this.pushStack([]),c=0;c<g;c++)h.find(o,v[c],d);return g>1?h.uniqueSort(d):d},filter:function(o){return this.pushStack(dt(this,o||[],!1))},not:function(o){return this.pushStack(dt(this,o||[],!0))},is:function(o){return!!dt(this,typeof o=="string"&&ft.test(o)?h(o):o||[],!1).length}});var Ct,Gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,sr=h.fn.init=function(o,c,d){var g,v;if(!o)return this;if(d=d||Ct,typeof o=="string")if(o[0]==="<"&&o[o.length-1]===">"&&o.length>=3?g=[null,o,null]:g=Gt.exec(o),g&&(g[1]||!c))if(g[1]){if(c=c instanceof h?c[0]:c,h.merge(this,h.parseHTML(g[1],c&&c.nodeType?c.ownerDocument||c:Y,!0)),vt.test(g[1])&&h.isPlainObject(c))for(g in c)I(this[g])?this[g](c[g]):this.attr(g,c[g]);return this}else return v=Y.getElementById(g[2]),v&&(this[0]=v,this.length=1),this;else return!c||c.jquery?(c||d).find(o):this.constructor(c).find(o);else{if(o.nodeType)return this[0]=o,this.length=1,this;if(I(o))return d.ready!==void 0?d.ready(o):o(h)}return h.makeArray(o,this)};sr.prototype=h.fn,Ct=h(Y);var qi=/^(?:parents|prev(?:Until|All))/,Wr={children:!0,contents:!0,next:!0,prev:!0};h.fn.extend({has:function(o){var c=h(o,this),d=c.length;return this.filter(function(){for(var g=0;g<d;g++)if(h.contains(this,c[g]))return!0})},closest:function(o,c){var d,g=0,v=this.length,b=[],_=typeof o!="string"&&h(o);if(!ft.test(o)){for(;g<v;g++)for(d=this[g];d&&d!==c;d=d.parentNode)if(d.nodeType<11&&(_?_.index(d)>-1:d.nodeType===1&&h.find.matchesSelector(d,o))){b.push(d);break}}return this.pushStack(b.length>1?h.uniqueSort(b):b)},index:function(o){return o?typeof o=="string"?y.call(h(o),this[0]):y.call(this,o.jquery?o[0]:o):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(o,c){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(o,c))))},addBack:function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}});function jt(o,c){for(;(o=o[c])&&o.nodeType!==1;);return o}h.each({parent:function(o){var c=o.parentNode;return c&&c.nodeType!==11?c:null},parents:function(o){return Ce(o,"parentNode")},parentsUntil:function(o,c,d){return Ce(o,"parentNode",d)},next:function(o){return jt(o,"nextSibling")},prev:function(o){return jt(o,"previousSibling")},nextAll:function(o){return Ce(o,"nextSibling")},prevAll:function(o){return Ce(o,"previousSibling")},nextUntil:function(o,c,d){return Ce(o,"nextSibling",d)},prevUntil:function(o,c,d){return Ce(o,"previousSibling",d)},siblings:function(o){return _e((o.parentNode||{}).firstChild,o)},children:function(o){return _e(o.firstChild)},contents:function(o){return o.contentDocument!=null&&a(o.contentDocument)?o.contentDocument:(le(o,"template")&&(o=o.content||o),h.merge([],o.childNodes))}},function(o,c){h.fn[o]=function(d,g){var v=h.map(this,c,d);return o.slice(-5)!=="Until"&&(g=d),g&&typeof g=="string"&&(v=h.filter(g,v)),this.length>1&&(Wr[o]||h.uniqueSort(v),qi.test(o)&&v.reverse()),this.pushStack(v)}});var dn=/[^\x20\t\r\n\f]+/g;function xi(o){var c={};return h.each(o.match(dn)||[],function(d,g){c[g]=!0}),c}h.Callbacks=function(o){o=typeof o=="string"?xi(o):h.extend({},o);var c,d,g,v,b=[],_=[],P=-1,A=function(){for(v=v||o.once,g=c=!0;_.length;P=-1)for(d=_.shift();++P<b.length;)b[P].apply(d[0],d[1])===!1&&o.stopOnFalse&&(P=b.length,d=!1);o.memory||(d=!1),c=!1,v&&(d?b=[]:b="")},B={add:function(){return b&&(d&&!c&&(P=b.length-1,_.push(d)),function G(K){h.each(K,function(z,ie){I(ie)?(!o.unique||!B.has(ie))&&b.push(ie):ie&&ie.length&&ue(ie)!=="string"&&G(ie)})}(arguments),d&&!c&&A()),this},remove:function(){return h.each(arguments,function(G,K){for(var z;(z=h.inArray(K,b,z))>-1;)b.splice(z,1),z<=P&&P--}),this},has:function(G){return G?h.inArray(G,b)>-1:b.length>0},empty:function(){return b&&(b=[]),this},disable:function(){return v=_=[],b=d="",this},disabled:function(){return!b},lock:function(){return v=_=[],!d&&!c&&(b=d=""),this},locked:function(){return!!v},fireWith:function(G,K){return v||(K=K||[],K=[G,K.slice?K.slice():K],_.push(K),c||A()),this},fire:function(){return B.fireWith(this,arguments),this},fired:function(){return!!g}};return B};function Cn(o){return o}function Ur(o){throw o}function Kt(o,c,d,g){var v;try{o&&I(v=o.promise)?v.call(o).done(c).fail(d):o&&I(v=o.then)?v.call(o,c,d):c.apply(void 0,[o].slice(g))}catch(b){d.apply(void 0,[b])}}h.extend({Deferred:function(o){var c=[["notify","progress",h.Callbacks("memory"),h.Callbacks("memory"),2],["resolve","done",h.Callbacks("once memory"),h.Callbacks("once memory"),0,"resolved"],["reject","fail",h.Callbacks("once memory"),h.Callbacks("once memory"),1,"rejected"]],d="pending",g={state:function(){return d},always:function(){return v.done(arguments).fail(arguments),this},catch:function(b){return g.then(null,b)},pipe:function(){var b=arguments;return h.Deferred(function(_){h.each(c,function(P,A){var B=I(b[A[4]])&&b[A[4]];v[A[1]](function(){var G=B&&B.apply(this,arguments);G&&I(G.promise)?G.promise().progress(_.notify).done(_.resolve).fail(_.reject):_[A[0]+"With"](this,B?[G]:arguments)})}),b=null}).promise()},then:function(b,_,P){var A=0;function B(G,K,z,ie){return function(){var me=this,Le=arguments,Pe=function(){var xt,Hn;if(!(G<A)){if(xt=z.apply(me,Le),xt===K.promise())throw new TypeError("Thenable self-resolution");Hn=xt&&(typeof xt=="object"||typeof xt=="function")&&xt.then,I(Hn)?ie?Hn.call(xt,B(A,K,Cn,ie),B(A,K,Ur,ie)):(A++,Hn.call(xt,B(A,K,Cn,ie),B(A,K,Ur,ie),B(A,K,Cn,K.notifyWith))):(z!==Cn&&(me=void 0,Le=[xt]),(ie||K.resolveWith)(me,Le))}},Mt=ie?Pe:function(){try{Pe()}catch(xt){h.Deferred.exceptionHook&&h.Deferred.exceptionHook(xt,Mt.error),G+1>=A&&(z!==Ur&&(me=void 0,Le=[xt]),K.rejectWith(me,Le))}};G?Mt():(h.Deferred.getErrorHook?Mt.error=h.Deferred.getErrorHook():h.Deferred.getStackHook&&(Mt.error=h.Deferred.getStackHook()),t.setTimeout(Mt))}}return h.Deferred(function(G){c[0][3].add(B(0,G,I(P)?P:Cn,G.notifyWith)),c[1][3].add(B(0,G,I(b)?b:Cn)),c[2][3].add(B(0,G,I(_)?_:Ur))}).promise()},promise:function(b){return b!=null?h.extend(b,g):g}},v={};return h.each(c,function(b,_){var P=_[2],A=_[5];g[_[1]]=P.add,A&&P.add(function(){d=A},c[3-b][2].disable,c[3-b][3].disable,c[0][2].lock,c[0][3].lock),P.add(_[3].fire),v[_[0]]=function(){return v[_[0]+"With"](this===v?void 0:this,arguments),this},v[_[0]+"With"]=P.fireWith}),g.promise(v),o&&o.call(v,v),v},when:function(o){var c=arguments.length,d=c,g=Array(d),v=u.call(arguments),b=h.Deferred(),_=function(P){return function(A){g[P]=this,v[P]=arguments.length>1?u.call(arguments):A,--c||b.resolveWith(g,v)}};if(c<=1&&(Kt(o,b.done(_(d)).resolve,b.reject,!c),b.state()==="pending"||I(v[d]&&v[d].then)))return b.then();for(;d--;)Kt(v[d],_(d),b.reject);return b.promise()}});var qr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;h.Deferred.exceptionHook=function(o,c){t.console&&t.console.warn&&o&&qr.test(o.name)&&t.console.warn("jQuery.Deferred exception: "+o.message,o.stack,c)},h.readyException=function(o){t.setTimeout(function(){throw o})};var zi=h.Deferred();h.fn.ready=function(o){return zi.then(o).catch(function(c){h.readyException(c)}),this},h.extend({isReady:!1,readyWait:1,ready:function(o){(o===!0?--h.readyWait:h.isReady)||(h.isReady=!0,!(o!==!0&&--h.readyWait>0)&&zi.resolveWith(Y,[h]))}}),h.ready.then=zi.then;function Xt(){Y.removeEventListener("DOMContentLoaded",Xt),t.removeEventListener("load",Xt),h.ready()}Y.readyState==="complete"||Y.readyState!=="loading"&&!Y.documentElement.doScroll?t.setTimeout(h.ready):(Y.addEventListener("DOMContentLoaded",Xt),t.addEventListener("load",Xt));var hn=function(o,c,d,g,v,b,_){var P=0,A=o.length,B=d==null;if(ue(d)==="object"){v=!0;for(P in d)hn(o,c,P,d[P],!0,b,_)}else if(g!==void 0&&(v=!0,I(g)||(_=!0),B&&(_?(c.call(o,g),c=null):(B=c,c=function(G,K,z){return B.call(h(G),z)})),c))for(;P<A;P++)c(o[P],d,_?g:g.call(o[P],P,c(o[P],d)));return v?o:B?c.call(o):A?c(o[0],d):b},fa=/^-ms-/,ar=/-([a-z])/g;function Wt(o,c){return c.toUpperCase()}function $t(o){return o.replace(fa,"ms-").replace(ar,Wt)}var $n=function(o){return o.nodeType===1||o.nodeType===9||!+o.nodeType};function Fn(){this.expando=h.expando+Fn.uid++}Fn.uid=1,Fn.prototype={cache:function(o){var c=o[this.expando];return c||(c={},$n(o)&&(o.nodeType?o[this.expando]=c:Object.defineProperty(o,this.expando,{value:c,configurable:!0}))),c},set:function(o,c,d){var g,v=this.cache(o);if(typeof c=="string")v[$t(c)]=d;else for(g in c)v[$t(g)]=c[g];return v},get:function(o,c){return c===void 0?this.cache(o):o[this.expando]&&o[this.expando][$t(c)]},access:function(o,c,d){return c===void 0||c&&typeof c=="string"&&d===void 0?this.get(o,c):(this.set(o,c,d),d!==void 0?d:c)},remove:function(o,c){var d,g=o[this.expando];if(g!==void 0){if(c!==void 0)for(Array.isArray(c)?c=c.map($t):(c=$t(c),c=c in g?[c]:c.match(dn)||[]),d=c.length;d--;)delete g[c[d]];(c===void 0||h.isEmptyObject(g))&&(o.nodeType?o[this.expando]=void 0:delete o[this.expando])}},hasData:function(o){var c=o[this.expando];return c!==void 0&&!h.isEmptyObject(c)}};var ye=new Fn,Ft=new Fn,br=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xr=/[A-Z]/g;function Re(o){return o==="true"?!0:o==="false"?!1:o==="null"?null:o===+o+""?+o:br.test(o)?JSON.parse(o):o}function zr(o,c,d){var g;if(d===void 0&&o.nodeType===1)if(g="data-"+c.replace(xr,"-$&").toLowerCase(),d=o.getAttribute(g),typeof d=="string"){try{d=Re(d)}catch{}Ft.set(o,c,d)}else d=void 0;return d}h.extend({hasData:function(o){return Ft.hasData(o)||ye.hasData(o)},data:function(o,c,d){return Ft.access(o,c,d)},removeData:function(o,c){Ft.remove(o,c)},_data:function(o,c,d){return ye.access(o,c,d)},_removeData:function(o,c){ye.remove(o,c)}}),h.fn.extend({data:function(o,c){var d,g,v,b=this[0],_=b&&b.attributes;if(o===void 0){if(this.length&&(v=Ft.get(b),b.nodeType===1&&!ye.get(b,"hasDataAttrs"))){for(d=_.length;d--;)_[d]&&(g=_[d].name,g.indexOf("data-")===0&&(g=$t(g.slice(5)),zr(b,g,v[g])));ye.set(b,"hasDataAttrs",!0)}return v}return typeof o=="object"?this.each(function(){Ft.set(this,o)}):hn(this,function(P){var A;if(b&&P===void 0)return A=Ft.get(b,o),A!==void 0||(A=zr(b,o),A!==void 0)?A:void 0;this.each(function(){Ft.set(this,o,P)})},null,c,arguments.length>1,null,!0)},removeData:function(o){return this.each(function(){Ft.remove(this,o)})}}),h.extend({queue:function(o,c,d){var g;if(o)return c=(c||"fx")+"queue",g=ye.get(o,c),d&&(!g||Array.isArray(d)?g=ye.access(o,c,h.makeArray(d)):g.push(d)),g||[]},dequeue:function(o,c){c=c||"fx";var d=h.queue(o,c),g=d.length,v=d.shift(),b=h._queueHooks(o,c),_=function(){h.dequeue(o,c)};v==="inprogress"&&(v=d.shift(),g--),v&&(c==="fx"&&d.unshift("inprogress"),delete b.stop,v.call(o,_,b)),!g&&b&&b.empty.fire()},_queueHooks:function(o,c){var d=c+"queueHooks";return ye.get(o,d)||ye.access(o,d,{empty:h.Callbacks("once memory").add(function(){ye.remove(o,[c+"queue",d])})})}}),h.fn.extend({queue:function(o,c){var d=2;return typeof o!="string"&&(c=o,o="fx",d--),arguments.length<d?h.queue(this[0],o):c===void 0?this:this.each(function(){var g=h.queue(this,o,c);h._queueHooks(this,o),o==="fx"&&g[0]!=="inprogress"&&h.dequeue(this,o)})},dequeue:function(o){return this.each(function(){h.dequeue(this,o)})},clearQueue:function(o){return this.queue(o||"fx",[])},promise:function(o,c){var d,g=1,v=h.Deferred(),b=this,_=this.length,P=function(){--g||v.resolveWith(b,[b])};for(typeof o!="string"&&(c=o,o=void 0),o=o||"fx";_--;)d=ye.get(b[_],o+"queueHooks"),d&&d.empty&&(g++,d.empty.add(P));return P(),v.promise(c)}});var wi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Bn=new RegExp("^(?:([+-])=|)("+wi+")([a-z%]*)$","i"),pn=["Top","Right","Bottom","Left"],or=Y.documentElement,wr=function(o){return h.contains(o.ownerDocument,o)},da={composed:!0};or.getRootNode&&(wr=function(o){return h.contains(o.ownerDocument,o)||o.getRootNode(da)===o.ownerDocument});var _i=function(o,c){return o=c||o,o.style.display==="none"||o.style.display===""&&wr(o)&&h.css(o,"display")==="none"};function Oo(o,c,d,g){var v,b,_=20,P=g?function(){return g.cur()}:function(){return h.css(o,c,"")},A=P(),B=d&&d[3]||(h.cssNumber[c]?"":"px"),G=o.nodeType&&(h.cssNumber[c]||B!=="px"&&+A)&&Bn.exec(h.css(o,c));if(G&&G[3]!==B){for(A=A/2,B=B||G[3],G=+A||1;_--;)h.style(o,c,G+B),(1-b)*(1-(b=P()/A||.5))<=0&&(_=0),G=G/b;G=G*2,h.style(o,c,G+B),d=d||[]}return d&&(G=+G||+A||0,v=d[1]?G+(d[1]+1)*d[2]:+d[2],g&&(g.unit=B,g.start=G,g.end=v)),v}var Ro={};function pc(o){var c,d=o.ownerDocument,g=o.nodeName,v=Ro[g];return v||(c=d.body.appendChild(d.createElement(g)),v=h.css(c,"display"),c.parentNode.removeChild(c),v==="none"&&(v="block"),Ro[g]=v,v)}function Vr(o,c){for(var d,g,v=[],b=0,_=o.length;b<_;b++)g=o[b],g.style&&(d=g.style.display,c?(d==="none"&&(v[b]=ye.get(g,"display")||null,v[b]||(g.style.display="")),g.style.display===""&&_i(g)&&(v[b]=pc(g))):d!=="none"&&(v[b]="none",ye.set(g,"display",d)));for(b=0;b<_;b++)v[b]!=null&&(o[b].style.display=v[b]);return o}h.fn.extend({show:function(){return Vr(this,!0)},hide:function(){return Vr(this)},toggle:function(o){return typeof o=="boolean"?o?this.show():this.hide():this.each(function(){_i(this)?h(this).show():h(this).hide()})}});var Si=/^(?:checkbox|radio)$/i,Ao=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var o=Y.createDocumentFragment(),c=o.appendChild(Y.createElement("div")),d=Y.createElement("input");d.setAttribute("type","radio"),d.setAttribute("checked","checked"),d.setAttribute("name","t"),c.appendChild(d),F.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,c.innerHTML="<textarea>x</textarea>",F.noCloneChecked=!!c.cloneNode(!0).lastChild.defaultValue,c.innerHTML="<option></option>",F.option=!!c.lastChild})();var gn={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,"",""]};gn.tbody=gn.tfoot=gn.colgroup=gn.caption=gn.thead,gn.th=gn.td,F.option||(gn.optgroup=gn.option=[1,"<select multiple='multiple'>","</select>"]);function Zt(o,c){var d;return typeof o.getElementsByTagName<"u"?d=o.getElementsByTagName(c||"*"):typeof o.querySelectorAll<"u"?d=o.querySelectorAll(c||"*"):d=[],c===void 0||c&&le(o,c)?h.merge([o],d):d}function _s(o,c){for(var d=0,g=o.length;d<g;d++)ye.set(o[d],"globalEval",!c||ye.get(c[d],"globalEval"))}var gc=/<|&#?\w+;/;function Po(o,c,d,g,v){for(var b,_,P,A,B,G,K=c.createDocumentFragment(),z=[],ie=0,me=o.length;ie<me;ie++)if(b=o[ie],b||b===0)if(ue(b)==="object")h.merge(z,b.nodeType?[b]:b);else if(!gc.test(b))z.push(c.createTextNode(b));else{for(_=_||K.appendChild(c.createElement("div")),P=(Ao.exec(b)||["",""])[1].toLowerCase(),A=gn[P]||gn._default,_.innerHTML=A[1]+h.htmlPrefilter(b)+A[2],G=A[0];G--;)_=_.lastChild;h.merge(z,_.childNodes),_=K.firstChild,_.textContent=""}for(K.textContent="",ie=0;b=z[ie++];){if(g&&h.inArray(b,g)>-1){v&&v.push(b);continue}if(B=wr(b),_=Zt(K.appendChild(b),"script"),B&&_s(_),d)for(G=0;b=_[G++];)Mo.test(b.type||"")&&d.push(b)}return K}var Io=/^([^.]*)(?:\.(.+)|)/;function _r(){return!0}function ki(){return!1}function Vi(o,c,d,g,v,b){var _,P;if(typeof c=="object"){typeof d!="string"&&(g=g||d,d=void 0);for(P in c)Vi(o,P,d,g,c[P],b);return o}if(g==null&&v==null?(v=d,g=d=void 0):v==null&&(typeof d=="string"?(v=g,g=void 0):(v=g,g=d,d=void 0)),v===!1)v=ki;else if(!v)return o;return b===1&&(_=v,v=function(A){return h().off(A),_.apply(this,arguments)},v.guid=_.guid||(_.guid=h.guid++)),o.each(function(){h.event.add(this,c,v,g,d)})}h.event={global:{},add:function(o,c,d,g,v){var b,_,P,A,B,G,K,z,ie,me,Le,Pe=ye.get(o);if($n(o))for(d.handler&&(b=d,d=b.handler,v=b.selector),v&&h.find.matchesSelector(or,v),d.guid||(d.guid=h.guid++),(A=Pe.events)||(A=Pe.events=Object.create(null)),(_=Pe.handle)||(_=Pe.handle=function(Mt){return typeof h<"u"&&h.event.triggered!==Mt.type?h.event.dispatch.apply(o,arguments):void 0}),c=(c||"").match(dn)||[""],B=c.length;B--;)P=Io.exec(c[B])||[],ie=Le=P[1],me=(P[2]||"").split(".").sort(),ie&&(K=h.event.special[ie]||{},ie=(v?K.delegateType:K.bindType)||ie,K=h.event.special[ie]||{},G=h.extend({type:ie,origType:Le,data:g,handler:d,guid:d.guid,selector:v,needsContext:v&&h.expr.match.needsContext.test(v),namespace:me.join(".")},b),(z=A[ie])||(z=A[ie]=[],z.delegateCount=0,(!K.setup||K.setup.call(o,g,me,_)===!1)&&o.addEventListener&&o.addEventListener(ie,_)),K.add&&(K.add.call(o,G),G.handler.guid||(G.handler.guid=d.guid)),v?z.splice(z.delegateCount++,0,G):z.push(G),h.event.global[ie]=!0)},remove:function(o,c,d,g,v){var b,_,P,A,B,G,K,z,ie,me,Le,Pe=ye.hasData(o)&&ye.get(o);if(!(!Pe||!(A=Pe.events))){for(c=(c||"").match(dn)||[""],B=c.length;B--;){if(P=Io.exec(c[B])||[],ie=Le=P[1],me=(P[2]||"").split(".").sort(),!ie){for(ie in A)h.event.remove(o,ie+c[B],d,g,!0);continue}for(K=h.event.special[ie]||{},ie=(g?K.delegateType:K.bindType)||ie,z=A[ie]||[],P=P[2]&&new RegExp("(^|\\.)"+me.join("\\.(?:.*\\.|)")+"(\\.|$)"),_=b=z.length;b--;)G=z[b],(v||Le===G.origType)&&(!d||d.guid===G.guid)&&(!P||P.test(G.namespace))&&(!g||g===G.selector||g==="**"&&G.selector)&&(z.splice(b,1),G.selector&&z.delegateCount--,K.remove&&K.remove.call(o,G));_&&!z.length&&((!K.teardown||K.teardown.call(o,me,Pe.handle)===!1)&&h.removeEvent(o,ie,Pe.handle),delete A[ie])}h.isEmptyObject(A)&&ye.remove(o,"handle events")}},dispatch:function(o){var c,d,g,v,b,_,P=new Array(arguments.length),A=h.event.fix(o),B=(ye.get(this,"events")||Object.create(null))[A.type]||[],G=h.event.special[A.type]||{};for(P[0]=A,c=1;c<arguments.length;c++)P[c]=arguments[c];if(A.delegateTarget=this,!(G.preDispatch&&G.preDispatch.call(this,A)===!1)){for(_=h.event.handlers.call(this,A,B),c=0;(v=_[c++])&&!A.isPropagationStopped();)for(A.currentTarget=v.elem,d=0;(b=v.handlers[d++])&&!A.isImmediatePropagationStopped();)(!A.rnamespace||b.namespace===!1||A.rnamespace.test(b.namespace))&&(A.handleObj=b,A.data=b.data,g=((h.event.special[b.origType]||{}).handle||b.handler).apply(v.elem,P),g!==void 0&&(A.result=g)===!1&&(A.preventDefault(),A.stopPropagation()));return G.postDispatch&&G.postDispatch.call(this,A),A.result}},handlers:function(o,c){var d,g,v,b,_,P=[],A=c.delegateCount,B=o.target;if(A&&B.nodeType&&!(o.type==="click"&&o.button>=1)){for(;B!==this;B=B.parentNode||this)if(B.nodeType===1&&!(o.type==="click"&&B.disabled===!0)){for(b=[],_={},d=0;d<A;d++)g=c[d],v=g.selector+" ",_[v]===void 0&&(_[v]=g.needsContext?h(v,this).index(B)>-1:h.find(v,this,null,[B]).length),_[v]&&b.push(g);b.length&&P.push({elem:B,handlers:b})}}return B=this,A<c.length&&P.push({elem:B,handlers:c.slice(A)}),P},addProp:function(o,c){Object.defineProperty(h.Event.prototype,o,{enumerable:!0,configurable:!0,get:I(c)?function(){if(this.originalEvent)return c(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[o]},set:function(d){Object.defineProperty(this,o,{enumerable:!0,configurable:!0,writable:!0,value:d})}})},fix:function(o){return o[h.expando]?o:new h.Event(o)},special:{load:{noBubble:!0},click:{setup:function(o){var c=this||o;return Si.test(c.type)&&c.click&&le(c,"input")&&Ss(c,"click",!0),!1},trigger:function(o){var c=this||o;return Si.test(c.type)&&c.click&&le(c,"input")&&Ss(c,"click"),!0},_default:function(o){var c=o.target;return Si.test(c.type)&&c.click&&le(c,"input")&&ye.get(c,"click")||le(c,"a")}},beforeunload:{postDispatch:function(o){o.result!==void 0&&o.originalEvent&&(o.originalEvent.returnValue=o.result)}}}};function Ss(o,c,d){if(!d){ye.get(o,c)===void 0&&h.event.add(o,c,_r);return}ye.set(o,c,!1),h.event.add(o,c,{namespace:!1,handler:function(g){var v,b=ye.get(this,c);if(g.isTrigger&1&&this[c]){if(b)(h.event.special[c]||{}).delegateType&&g.stopPropagation();else if(b=u.call(arguments),ye.set(this,c,b),this[c](),v=ye.get(this,c),ye.set(this,c,!1),b!==v)return g.stopImmediatePropagation(),g.preventDefault(),v}else b&&(ye.set(this,c,h.event.trigger(b[0],b.slice(1),this)),g.stopPropagation(),g.isImmediatePropagationStopped=_r)}})}h.removeEvent=function(o,c,d){o.removeEventListener&&o.removeEventListener(c,d)},h.Event=function(o,c){if(!(this instanceof h.Event))return new h.Event(o,c);o&&o.type?(this.originalEvent=o,this.type=o.type,this.isDefaultPrevented=o.defaultPrevented||o.defaultPrevented===void 0&&o.returnValue===!1?_r:ki,this.target=o.target&&o.target.nodeType===3?o.target.parentNode:o.target,this.currentTarget=o.currentTarget,this.relatedTarget=o.relatedTarget):this.type=o,c&&h.extend(this,c),this.timeStamp=o&&o.timeStamp||Date.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:ki,isPropagationStopped:ki,isImmediatePropagationStopped:ki,isSimulated:!1,preventDefault:function(){var o=this.originalEvent;this.isDefaultPrevented=_r,o&&!this.isSimulated&&o.preventDefault()},stopPropagation:function(){var o=this.originalEvent;this.isPropagationStopped=_r,o&&!this.isSimulated&&o.stopPropagation()},stopImmediatePropagation:function(){var o=this.originalEvent;this.isImmediatePropagationStopped=_r,o&&!this.isSimulated&&o.stopImmediatePropagation(),this.stopPropagation()}},h.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},h.event.addProp),h.each({focus:"focusin",blur:"focusout"},function(o,c){function d(g){if(Y.documentMode){var v=ye.get(this,"handle"),b=h.event.fix(g);b.type=g.type==="focusin"?"focus":"blur",b.isSimulated=!0,v(g),b.target===b.currentTarget&&v(b)}else h.event.simulate(c,g.target,h.event.fix(g))}h.event.special[o]={setup:function(){var g;if(Ss(this,o,!0),Y.documentMode)g=ye.get(this,c),g||this.addEventListener(c,d),ye.set(this,c,(g||0)+1);else return!1},trigger:function(){return Ss(this,o),!0},teardown:function(){var g;if(Y.documentMode)g=ye.get(this,c)-1,g?ye.set(this,c,g):(this.removeEventListener(c,d),ye.remove(this,c));else return!1},_default:function(g){return ye.get(g.target,o)},delegateType:c},h.event.special[c]={setup:function(){var g=this.ownerDocument||this.document||this,v=Y.documentMode?this:g,b=ye.get(v,c);b||(Y.documentMode?this.addEventListener(c,d):g.addEventListener(o,d,!0)),ye.set(v,c,(b||0)+1)},teardown:function(){var g=this.ownerDocument||this.document||this,v=Y.documentMode?this:g,b=ye.get(v,c)-1;b?ye.set(v,c,b):(Y.documentMode?this.removeEventListener(c,d):g.removeEventListener(o,d,!0),ye.remove(v,c))}}}),h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(o,c){h.event.special[o]={delegateType:c,bindType:c,handle:function(d){var g,v=this,b=d.relatedTarget,_=d.handleObj;return(!b||b!==v&&!h.contains(v,b))&&(d.type=_.origType,g=_.handler.apply(this,arguments),d.type=c),g}}}),h.fn.extend({on:function(o,c,d,g){return Vi(this,o,c,d,g)},one:function(o,c,d,g){return Vi(this,o,c,d,g,1)},off:function(o,c,d){var g,v;if(o&&o.preventDefault&&o.handleObj)return g=o.handleObj,h(o.delegateTarget).off(g.namespace?g.origType+"."+g.namespace:g.origType,g.selector,g.handler),this;if(typeof o=="object"){for(v in o)this.off(v,c,o[v]);return this}return(c===!1||typeof c=="function")&&(d=c,c=void 0),d===!1&&(d=ki),this.each(function(){h.event.remove(this,o,d,c)})}});var mc=/<script|<style|<link/i,yc=/checked\s*(?:[^=]|=\s*.checked.)/i,vc=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Lo(o,c){return le(o,"table")&&le(c.nodeType!==11?c:c.firstChild,"tr")&&h(o).children("tbody")[0]||o}function bc(o){return o.type=(o.getAttribute("type")!==null)+"/"+o.type,o}function xc(o){return(o.type||"").slice(0,5)==="true/"?o.type=o.type.slice(5):o.removeAttribute("type"),o}function No(o,c){var d,g,v,b,_,P,A;if(c.nodeType===1){if(ye.hasData(o)&&(b=ye.get(o),A=b.events,A)){ye.remove(c,"handle events");for(v in A)for(d=0,g=A[v].length;d<g;d++)h.event.add(c,v,A[v][d])}Ft.hasData(o)&&(_=Ft.access(o),P=h.extend({},_),Ft.set(c,P))}}function jo(o,c){var d=c.nodeName.toLowerCase();d==="input"&&Si.test(o.type)?c.checked=o.checked:(d==="input"||d==="textarea")&&(c.defaultValue=o.defaultValue)}function Ci(o,c,d,g){c=f(c);var v,b,_,P,A,B,G=0,K=o.length,z=K-1,ie=c[0],me=I(ie);if(me||K>1&&typeof ie=="string"&&!F.checkClone&&yc.test(ie))return o.each(function(Le){var Pe=o.eq(Le);me&&(c[0]=ie.call(this,Le,Pe.html())),Ci(Pe,c,d,g)});if(K&&(v=Po(c,o[0].ownerDocument,!1,o,g),b=v.firstChild,v.childNodes.length===1&&(v=b),b||g)){for(_=h.map(Zt(v,"script"),bc),P=_.length;G<K;G++)A=v,G!==z&&(A=h.clone(A,!0,!0),P&&h.merge(_,Zt(A,"script"))),d.call(o[G],A,G);if(P)for(B=_[_.length-1].ownerDocument,h.map(_,xc),G=0;G<P;G++)A=_[G],Mo.test(A.type||"")&&!ye.access(A,"globalEval")&&h.contains(B,A)&&(A.src&&(A.type||"").toLowerCase()!=="module"?h._evalUrl&&!A.noModule&&h._evalUrl(A.src,{nonce:A.nonce||A.getAttribute("nonce")},B):fe(A.textContent.replace(vc,""),A,B))}return o}function $o(o,c,d){for(var g,v=c?h.filter(c,o):o,b=0;(g=v[b])!=null;b++)!d&&g.nodeType===1&&h.cleanData(Zt(g)),g.parentNode&&(d&&wr(g)&&_s(Zt(g,"script")),g.parentNode.removeChild(g));return o}h.extend({htmlPrefilter:function(o){return o},clone:function(o,c,d){var g,v,b,_,P=o.cloneNode(!0),A=wr(o);if(!F.noCloneChecked&&(o.nodeType===1||o.nodeType===11)&&!h.isXMLDoc(o))for(_=Zt(P),b=Zt(o),g=0,v=b.length;g<v;g++)jo(b[g],_[g]);if(c)if(d)for(b=b||Zt(o),_=_||Zt(P),g=0,v=b.length;g<v;g++)No(b[g],_[g]);else No(o,P);return _=Zt(P,"script"),_.length>0&&_s(_,!A&&Zt(o,"script")),P},cleanData:function(o){for(var c,d,g,v=h.event.special,b=0;(d=o[b])!==void 0;b++)if($n(d)){if(c=d[ye.expando]){if(c.events)for(g in c.events)v[g]?h.event.remove(d,g):h.removeEvent(d,g,c.handle);d[ye.expando]=void 0}d[Ft.expando]&&(d[Ft.expando]=void 0)}}}),h.fn.extend({detach:function(o){return $o(this,o,!0)},remove:function(o){return $o(this,o)},text:function(o){return hn(this,function(c){return c===void 0?h.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=c)})},null,o,arguments.length)},append:function(){return Ci(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var c=Lo(this,o);c.appendChild(o)}})},prepend:function(){return Ci(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var c=Lo(this,o);c.insertBefore(o,c.firstChild)}})},before:function(){return Ci(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this)})},after:function(){return Ci(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling)})},empty:function(){for(var o,c=0;(o=this[c])!=null;c++)o.nodeType===1&&(h.cleanData(Zt(o,!1)),o.textContent="");return this},clone:function(o,c){return o=o??!1,c=c??o,this.map(function(){return h.clone(this,o,c)})},html:function(o){return hn(this,function(c){var d=this[0]||{},g=0,v=this.length;if(c===void 0&&d.nodeType===1)return d.innerHTML;if(typeof c=="string"&&!mc.test(c)&&!gn[(Ao.exec(c)||["",""])[1].toLowerCase()]){c=h.htmlPrefilter(c);try{for(;g<v;g++)d=this[g]||{},d.nodeType===1&&(h.cleanData(Zt(d,!1)),d.innerHTML=c);d=0}catch{}}d&&this.empty().append(c)},null,o,arguments.length)},replaceWith:function(){var o=[];return Ci(this,arguments,function(c){var d=this.parentNode;h.inArray(this,o)<0&&(h.cleanData(Zt(this)),d&&d.replaceChild(c,this))},o)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(o,c){h.fn[o]=function(d){for(var g,v=[],b=h(d),_=b.length-1,P=0;P<=_;P++)g=P===_?this:this.clone(!0),h(b[P])[c](g),m.apply(v,g.get());return this.pushStack(v)}});var ha=new RegExp("^("+wi+")(?!px)[a-z%]+$","i"),pa=/^--/,ks=function(o){var c=o.ownerDocument.defaultView;return(!c||!c.opener)&&(c=t),c.getComputedStyle(o)},Fo=function(o,c,d){var g,v,b={};for(v in c)b[v]=o.style[v],o.style[v]=c[v];g=d.call(o);for(v in c)o.style[v]=b[v];return g},Cs=new RegExp(pn.join("|"),"i");(function(){function o(){if(B){A.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",B.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",or.appendChild(A).appendChild(B);var G=t.getComputedStyle(B);d=G.top!=="1%",P=c(G.marginLeft)===12,B.style.right="60%",b=c(G.right)===36,g=c(G.width)===36,B.style.position="absolute",v=c(B.offsetWidth/3)===12,or.removeChild(A),B=null}}function c(G){return Math.round(parseFloat(G))}var d,g,v,b,_,P,A=Y.createElement("div"),B=Y.createElement("div");B.style&&(B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",F.clearCloneStyle=B.style.backgroundClip==="content-box",h.extend(F,{boxSizingReliable:function(){return o(),g},pixelBoxStyles:function(){return o(),b},pixelPosition:function(){return o(),d},reliableMarginLeft:function(){return o(),P},scrollboxSize:function(){return o(),v},reliableTrDimensions:function(){var G,K,z,ie;return _==null&&(G=Y.createElement("table"),K=Y.createElement("tr"),z=Y.createElement("div"),G.style.cssText="position:absolute;left:-11111px;border-collapse:separate",K.style.cssText="box-sizing:content-box;border:1px solid",K.style.height="1px",z.style.height="9px",z.style.display="block",or.appendChild(G).appendChild(K).appendChild(z),ie=t.getComputedStyle(K),_=parseInt(ie.height,10)+parseInt(ie.borderTopWidth,10)+parseInt(ie.borderBottomWidth,10)===K.offsetHeight,or.removeChild(G)),_}}))})();function Gi(o,c,d){var g,v,b,_,P=pa.test(c),A=o.style;return d=d||ks(o),d&&(_=d.getPropertyValue(c)||d[c],P&&_&&(_=_.replace(ze,"$1")||void 0),_===""&&!wr(o)&&(_=h.style(o,c)),!F.pixelBoxStyles()&&ha.test(_)&&Cs.test(c)&&(g=A.width,v=A.minWidth,b=A.maxWidth,A.minWidth=A.maxWidth=A.width=_,_=d.width,A.width=g,A.minWidth=v,A.maxWidth=b)),_!==void 0?_+"":_}function Ki(o,c){return{get:function(){if(o()){delete this.get;return}return(this.get=c).apply(this,arguments)}}}var Bo=["Webkit","Moz","ms"],Ho=Y.createElement("div").style,Yo={};function Wo(o){for(var c=o[0].toUpperCase()+o.slice(1),d=Bo.length;d--;)if(o=Bo[d]+c,o in Ho)return o}function Es(o){var c=h.cssProps[o]||Yo[o];return c||(o in Ho?o:Yo[o]=Wo(o)||o)}var Uo=/^(none|table(?!-c[ea]).+)/,wc={position:"absolute",visibility:"hidden",display:"block"},qo={letterSpacing:"0",fontWeight:"400"};function zo(o,c,d){var g=Bn.exec(c);return g?Math.max(0,g[2]-(d||0))+(g[3]||"px"):c}function ga(o,c,d,g,v,b){var _=c==="width"?1:0,P=0,A=0,B=0;if(d===(g?"border":"content"))return 0;for(;_<4;_+=2)d==="margin"&&(B+=h.css(o,d+pn[_],!0,v)),g?(d==="content"&&(A-=h.css(o,"padding"+pn[_],!0,v)),d!=="margin"&&(A-=h.css(o,"border"+pn[_]+"Width",!0,v))):(A+=h.css(o,"padding"+pn[_],!0,v),d!=="padding"?A+=h.css(o,"border"+pn[_]+"Width",!0,v):P+=h.css(o,"border"+pn[_]+"Width",!0,v));return!g&&b>=0&&(A+=Math.max(0,Math.ceil(o["offset"+c[0].toUpperCase()+c.slice(1)]-b-A-P-.5))||0),A+B}function ma(o,c,d){var g=ks(o),v=!F.boxSizingReliable()||d,b=v&&h.css(o,"boxSizing",!1,g)==="border-box",_=b,P=Gi(o,c,g),A="offset"+c[0].toUpperCase()+c.slice(1);if(ha.test(P)){if(!d)return P;P="auto"}return(!F.boxSizingReliable()&&b||!F.reliableTrDimensions()&&le(o,"tr")||P==="auto"||!parseFloat(P)&&h.css(o,"display",!1,g)==="inline")&&o.getClientRects().length&&(b=h.css(o,"boxSizing",!1,g)==="border-box",_=A in o,_&&(P=o[A])),P=parseFloat(P)||0,P+ga(o,c,d||(b?"border":"content"),_,g,P)+"px"}h.extend({cssHooks:{opacity:{get:function(o,c){if(c){var d=Gi(o,"opacity");return d===""?"1":d}}}},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(o,c,d,g){if(!(!o||o.nodeType===3||o.nodeType===8||!o.style)){var v,b,_,P=$t(c),A=pa.test(c),B=o.style;if(A||(c=Es(P)),_=h.cssHooks[c]||h.cssHooks[P],d!==void 0){if(b=typeof d,b==="string"&&(v=Bn.exec(d))&&v[1]&&(d=Oo(o,c,v),b="number"),d==null||d!==d)return;b==="number"&&!A&&(d+=v&&v[3]||(h.cssNumber[P]?"":"px")),!F.clearCloneStyle&&d===""&&c.indexOf("background")===0&&(B[c]="inherit"),(!_||!("set"in _)||(d=_.set(o,d,g))!==void 0)&&(A?B.setProperty(c,d):B[c]=d)}else return _&&"get"in _&&(v=_.get(o,!1,g))!==void 0?v:B[c]}},css:function(o,c,d,g){var v,b,_,P=$t(c),A=pa.test(c);return A||(c=Es(P)),_=h.cssHooks[c]||h.cssHooks[P],_&&"get"in _&&(v=_.get(o,!0,d)),v===void 0&&(v=Gi(o,c,g)),v==="normal"&&c in qo&&(v=qo[c]),d===""||d?(b=parseFloat(v),d===!0||isFinite(b)?b||0:v):v}}),h.each(["height","width"],function(o,c){h.cssHooks[c]={get:function(d,g,v){if(g)return Uo.test(h.css(d,"display"))&&(!d.getClientRects().length||!d.getBoundingClientRect().width)?Fo(d,wc,function(){return ma(d,c,v)}):ma(d,c,v)},set:function(d,g,v){var b,_=ks(d),P=!F.scrollboxSize()&&_.position==="absolute",A=P||v,B=A&&h.css(d,"boxSizing",!1,_)==="border-box",G=v?ga(d,c,v,B,_):0;return B&&P&&(G-=Math.ceil(d["offset"+c[0].toUpperCase()+c.slice(1)]-parseFloat(_[c])-ga(d,c,"border",!1,_)-.5)),G&&(b=Bn.exec(g))&&(b[3]||"px")!=="px"&&(d.style[c]=g,g=h.css(d,c)),zo(d,g,G)}}}),h.cssHooks.marginLeft=Ki(F.reliableMarginLeft,function(o,c){if(c)return(parseFloat(Gi(o,"marginLeft"))||o.getBoundingClientRect().left-Fo(o,{marginLeft:0},function(){return o.getBoundingClientRect().left}))+"px"}),h.each({margin:"",padding:"",border:"Width"},function(o,c){h.cssHooks[o+c]={expand:function(d){for(var g=0,v={},b=typeof d=="string"?d.split(" "):[d];g<4;g++)v[o+pn[g]+c]=b[g]||b[g-2]||b[0];return v}},o!=="margin"&&(h.cssHooks[o+c].set=zo)}),h.fn.extend({css:function(o,c){return hn(this,function(d,g,v){var b,_,P={},A=0;if(Array.isArray(g)){for(b=ks(d),_=g.length;A<_;A++)P[g[A]]=h.css(d,g[A],!1,b);return P}return v!==void 0?h.style(d,g,v):h.css(d,g)},o,c,arguments.length>1)}});function Ut(o,c,d,g,v){return new Ut.prototype.init(o,c,d,g,v)}h.Tween=Ut,Ut.prototype={constructor:Ut,init:function(o,c,d,g,v,b){this.elem=o,this.prop=d,this.easing=v||h.easing._default,this.options=c,this.start=this.now=this.cur(),this.end=g,this.unit=b||(h.cssNumber[d]?"":"px")},cur:function(){var o=Ut.propHooks[this.prop];return o&&o.get?o.get(this):Ut.propHooks._default.get(this)},run:function(o){var c,d=Ut.propHooks[this.prop];return this.options.duration?this.pos=c=h.easing[this.easing](o,this.options.duration*o,0,1,this.options.duration):this.pos=c=o,this.now=(this.end-this.start)*c+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),d&&d.set?d.set(this):Ut.propHooks._default.set(this),this}},Ut.prototype.init.prototype=Ut.prototype,Ut.propHooks={_default:{get:function(o){var c;return o.elem.nodeType!==1||o.elem[o.prop]!=null&&o.elem.style[o.prop]==null?o.elem[o.prop]:(c=h.css(o.elem,o.prop,""),!c||c==="auto"?0:c)},set:function(o){h.fx.step[o.prop]?h.fx.step[o.prop](o):o.elem.nodeType===1&&(h.cssHooks[o.prop]||o.elem.style[Es(o.prop)]!=null)?h.style(o.elem,o.prop,o.now+o.unit):o.elem[o.prop]=o.now}}},Ut.propHooks.scrollTop=Ut.propHooks.scrollLeft={set:function(o){o.elem.nodeType&&o.elem.parentNode&&(o.elem[o.prop]=o.now)}},h.easing={linear:function(o){return o},swing:function(o){return .5-Math.cos(o*Math.PI)/2},_default:"swing"},h.fx=Ut.prototype.init,h.fx.step={};var Gr,Ei,_c=/^(?:toggle|show|hide)$/,Vo=/queueHooks$/;function Di(){Ei&&(Y.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Di):t.setTimeout(Di,h.fx.interval),h.fx.tick())}function ya(){return t.setTimeout(function(){Gr=void 0}),Gr=Date.now()}function Ds(o,c){var d,g=0,v={height:o};for(c=c?1:0;g<4;g+=2-c)d=pn[g],v["margin"+d]=v["padding"+d]=o;return c&&(v.opacity=v.width=o),v}function va(o,c,d){for(var g,v=(En.tweeners[c]||[]).concat(En.tweeners["*"]),b=0,_=v.length;b<_;b++)if(g=v[b].call(d,c,o))return g}function Go(o,c,d){var g,v,b,_,P,A,B,G,K="width"in c||"height"in c,z=this,ie={},me=o.style,Le=o.nodeType&&_i(o),Pe=ye.get(o,"fxshow");d.queue||(_=h._queueHooks(o,"fx"),_.unqueued==null&&(_.unqueued=0,P=_.empty.fire,_.empty.fire=function(){_.unqueued||P()}),_.unqueued++,z.always(function(){z.always(function(){_.unqueued--,h.queue(o,"fx").length||_.empty.fire()})}));for(g in c)if(v=c[g],_c.test(v)){if(delete c[g],b=b||v==="toggle",v===(Le?"hide":"show"))if(v==="show"&&Pe&&Pe[g]!==void 0)Le=!0;else continue;ie[g]=Pe&&Pe[g]||h.style(o,g)}if(A=!h.isEmptyObject(c),!(!A&&h.isEmptyObject(ie))){K&&o.nodeType===1&&(d.overflow=[me.overflow,me.overflowX,me.overflowY],B=Pe&&Pe.display,B==null&&(B=ye.get(o,"display")),G=h.css(o,"display"),G==="none"&&(B?G=B:(Vr([o],!0),B=o.style.display||B,G=h.css(o,"display"),Vr([o]))),(G==="inline"||G==="inline-block"&&B!=null)&&h.css(o,"float")==="none"&&(A||(z.done(function(){me.display=B}),B==null&&(G=me.display,B=G==="none"?"":G)),me.display="inline-block")),d.overflow&&(me.overflow="hidden",z.always(function(){me.overflow=d.overflow[0],me.overflowX=d.overflow[1],me.overflowY=d.overflow[2]})),A=!1;for(g in ie)A||(Pe?"hidden"in Pe&&(Le=Pe.hidden):Pe=ye.access(o,"fxshow",{display:B}),b&&(Pe.hidden=!Le),Le&&Vr([o],!0),z.done(function(){Le||Vr([o]),ye.remove(o,"fxshow");for(g in ie)h.style(o,g,ie[g])})),A=va(Le?Pe[g]:0,g,z),g in Pe||(Pe[g]=A.start,Le&&(A.end=A.start,A.start=0))}}function ba(o,c){var d,g,v,b,_;for(d in o)if(g=$t(d),v=c[g],b=o[d],Array.isArray(b)&&(v=b[1],b=o[d]=b[0]),d!==g&&(o[g]=b,delete o[d]),_=h.cssHooks[g],_&&"expand"in _){b=_.expand(b),delete o[g];for(d in b)d in o||(o[d]=b[d],c[d]=v)}else c[g]=v}function En(o,c,d){var g,v,b=0,_=En.prefilters.length,P=h.Deferred().always(function(){delete A.elem}),A=function(){if(v)return!1;for(var K=Gr||ya(),z=Math.max(0,B.startTime+B.duration-K),ie=z/B.duration||0,me=1-ie,Le=0,Pe=B.tweens.length;Le<Pe;Le++)B.tweens[Le].run(me);return P.notifyWith(o,[B,me,z]),me<1&&Pe?z:(Pe||P.notifyWith(o,[B,1,0]),P.resolveWith(o,[B]),!1)},B=P.promise({elem:o,props:h.extend({},c),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},d),originalProperties:c,originalOptions:d,startTime:Gr||ya(),duration:d.duration,tweens:[],createTween:function(K,z){var ie=h.Tween(o,B.opts,K,z,B.opts.specialEasing[K]||B.opts.easing);return B.tweens.push(ie),ie},stop:function(K){var z=0,ie=K?B.tweens.length:0;if(v)return this;for(v=!0;z<ie;z++)B.tweens[z].run(1);return K?(P.notifyWith(o,[B,1,0]),P.resolveWith(o,[B,K])):P.rejectWith(o,[B,K]),this}}),G=B.props;for(ba(G,B.opts.specialEasing);b<_;b++)if(g=En.prefilters[b].call(B,o,G,B.opts),g)return I(g.stop)&&(h._queueHooks(B.elem,B.opts.queue).stop=g.stop.bind(g)),g;return h.map(G,va,B),I(B.opts.start)&&B.opts.start.call(o,B),B.progress(B.opts.progress).done(B.opts.done,B.opts.complete).fail(B.opts.fail).always(B.opts.always),h.fx.timer(h.extend(A,{elem:o,anim:B,queue:B.opts.queue})),B}h.Animation=h.extend(En,{tweeners:{"*":[function(o,c){var d=this.createTween(o,c);return Oo(d.elem,o,Bn.exec(c),d),d}]},tweener:function(o,c){I(o)?(c=o,o=["*"]):o=o.match(dn);for(var d,g=0,v=o.length;g<v;g++)d=o[g],En.tweeners[d]=En.tweeners[d]||[],En.tweeners[d].unshift(c)},prefilters:[Go],prefilter:function(o,c){c?En.prefilters.unshift(o):En.prefilters.push(o)}}),h.speed=function(o,c,d){var g=o&&typeof o=="object"?h.extend({},o):{complete:d||!d&&c||I(o)&&o,duration:o,easing:d&&c||c&&!I(c)&&c};return h.fx.off?g.duration=0:typeof g.duration!="number"&&(g.duration in h.fx.speeds?g.duration=h.fx.speeds[g.duration]:g.duration=h.fx.speeds._default),(g.queue==null||g.queue===!0)&&(g.queue="fx"),g.old=g.complete,g.complete=function(){I(g.old)&&g.old.call(this),g.queue&&h.dequeue(this,g.queue)},g},h.fn.extend({fadeTo:function(o,c,d,g){return this.filter(_i).css("opacity",0).show().end().animate({opacity:c},o,d,g)},animate:function(o,c,d,g){var v=h.isEmptyObject(o),b=h.speed(c,d,g),_=function(){var P=En(this,h.extend({},o),b);(v||ye.get(this,"finish"))&&P.stop(!0)};return _.finish=_,v||b.queue===!1?this.each(_):this.queue(b.queue,_)},stop:function(o,c,d){var g=function(v){var b=v.stop;delete v.stop,b(d)};return typeof o!="string"&&(d=c,c=o,o=void 0),c&&this.queue(o||"fx",[]),this.each(function(){var v=!0,b=o!=null&&o+"queueHooks",_=h.timers,P=ye.get(this);if(b)P[b]&&P[b].stop&&g(P[b]);else for(b in P)P[b]&&P[b].stop&&Vo.test(b)&&g(P[b]);for(b=_.length;b--;)_[b].elem===this&&(o==null||_[b].queue===o)&&(_[b].anim.stop(d),v=!1,_.splice(b,1));(v||!d)&&h.dequeue(this,o)})},finish:function(o){return o!==!1&&(o=o||"fx"),this.each(function(){var c,d=ye.get(this),g=d[o+"queue"],v=d[o+"queueHooks"],b=h.timers,_=g?g.length:0;for(d.finish=!0,h.queue(this,o,[]),v&&v.stop&&v.stop.call(this,!0),c=b.length;c--;)b[c].elem===this&&b[c].queue===o&&(b[c].anim.stop(!0),b.splice(c,1));for(c=0;c<_;c++)g[c]&&g[c].finish&&g[c].finish.call(this);delete d.finish})}}),h.each(["toggle","show","hide"],function(o,c){var d=h.fn[c];h.fn[c]=function(g,v,b){return g==null||typeof g=="boolean"?d.apply(this,arguments):this.animate(Ds(c,!0),g,v,b)}}),h.each({slideDown:Ds("show"),slideUp:Ds("hide"),slideToggle:Ds("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(o,c){h.fn[o]=function(d,g,v){return this.animate(c,d,g,v)}}),h.timers=[],h.fx.tick=function(){var o,c=0,d=h.timers;for(Gr=Date.now();c<d.length;c++)o=d[c],!o()&&d[c]===o&&d.splice(c--,1);d.length||h.fx.stop(),Gr=void 0},h.fx.timer=function(o){h.timers.push(o),h.fx.start()},h.fx.interval=13,h.fx.start=function(){Ei||(Ei=!0,Di())},h.fx.stop=function(){Ei=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(o,c){return o=h.fx&&h.fx.speeds[o]||o,c=c||"fx",this.queue(c,function(d,g){var v=t.setTimeout(d,o);g.stop=function(){t.clearTimeout(v)}})},function(){var o=Y.createElement("input"),c=Y.createElement("select"),d=c.appendChild(Y.createElement("option"));o.type="checkbox",F.checkOn=o.value!=="",F.optSelected=d.selected,o=Y.createElement("input"),o.value="t",o.type="radio",F.radioValue=o.value==="t"}();var xa,Kr=h.expr.attrHandle;h.fn.extend({attr:function(o,c){return hn(this,h.attr,o,c,arguments.length>1)},removeAttr:function(o){return this.each(function(){h.removeAttr(this,o)})}}),h.extend({attr:function(o,c,d){var g,v,b=o.nodeType;if(!(b===3||b===8||b===2)){if(typeof o.getAttribute>"u")return h.prop(o,c,d);if((b!==1||!h.isXMLDoc(o))&&(v=h.attrHooks[c.toLowerCase()]||(h.expr.match.bool.test(c)?xa:void 0)),d!==void 0){if(d===null){h.removeAttr(o,c);return}return v&&"set"in v&&(g=v.set(o,d,c))!==void 0?g:(o.setAttribute(c,d+""),d)}return v&&"get"in v&&(g=v.get(o,c))!==null?g:(g=h.find.attr(o,c),g??void 0)}},attrHooks:{type:{set:function(o,c){if(!F.radioValue&&c==="radio"&&le(o,"input")){var d=o.value;return o.setAttribute("type",c),d&&(o.value=d),c}}}},removeAttr:function(o,c){var d,g=0,v=c&&c.match(dn);if(v&&o.nodeType===1)for(;d=v[g++];)o.removeAttribute(d)}}),xa={set:function(o,c,d){return c===!1?h.removeAttr(o,d):o.setAttribute(d,d),d}},h.each(h.expr.match.bool.source.match(/\w+/g),function(o,c){var d=Kr[c]||h.find.attr;Kr[c]=function(g,v,b){var _,P,A=v.toLowerCase();return b||(P=Kr[A],Kr[A]=_,_=d(g,v,b)!=null?A:null,Kr[A]=P),_}});var wa=/^(?:input|select|textarea|button)$/i,Ti=/^(?:a|area)$/i;h.fn.extend({prop:function(o,c){return hn(this,h.prop,o,c,arguments.length>1)},removeProp:function(o){return this.each(function(){delete this[h.propFix[o]||o]})}}),h.extend({prop:function(o,c,d){var g,v,b=o.nodeType;if(!(b===3||b===8||b===2))return(b!==1||!h.isXMLDoc(o))&&(c=h.propFix[c]||c,v=h.propHooks[c]),d!==void 0?v&&"set"in v&&(g=v.set(o,d,c))!==void 0?g:o[c]=d:v&&"get"in v&&(g=v.get(o,c))!==null?g:o[c]},propHooks:{tabIndex:{get:function(o){var c=h.find.attr(o,"tabindex");return c?parseInt(c,10):wa.test(o.nodeName)||Ti.test(o.nodeName)&&o.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),F.optSelected||(h.propHooks.selected={get:function(o){var c=o.parentNode;return c&&c.parentNode&&c.parentNode.selectedIndex,null},set:function(o){var c=o.parentNode;c&&(c.selectedIndex,c.parentNode&&c.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});function Sr(o){var c=o.match(dn)||[];return c.join(" ")}function kr(o){return o.getAttribute&&o.getAttribute("class")||""}function _a(o){return Array.isArray(o)?o:typeof o=="string"?o.match(dn)||[]:[]}h.fn.extend({addClass:function(o){var c,d,g,v,b,_;return I(o)?this.each(function(P){h(this).addClass(o.call(this,P,kr(this)))}):(c=_a(o),c.length?this.each(function(){if(g=kr(this),d=this.nodeType===1&&" "+Sr(g)+" ",d){for(b=0;b<c.length;b++)v=c[b],d.indexOf(" "+v+" ")<0&&(d+=v+" ");_=Sr(d),g!==_&&this.setAttribute("class",_)}}):this)},removeClass:function(o){var c,d,g,v,b,_;return I(o)?this.each(function(P){h(this).removeClass(o.call(this,P,kr(this)))}):arguments.length?(c=_a(o),c.length?this.each(function(){if(g=kr(this),d=this.nodeType===1&&" "+Sr(g)+" ",d){for(b=0;b<c.length;b++)for(v=c[b];d.indexOf(" "+v+" ")>-1;)d=d.replace(" "+v+" "," ");_=Sr(d),g!==_&&this.setAttribute("class",_)}}):this):this.attr("class","")},toggleClass:function(o,c){var d,g,v,b,_=typeof o,P=_==="string"||Array.isArray(o);return I(o)?this.each(function(A){h(this).toggleClass(o.call(this,A,kr(this),c),c)}):typeof c=="boolean"&&P?c?this.addClass(o):this.removeClass(o):(d=_a(o),this.each(function(){if(P)for(b=h(this),v=0;v<d.length;v++)g=d[v],b.hasClass(g)?b.removeClass(g):b.addClass(g);else(o===void 0||_==="boolean")&&(g=kr(this),g&&ye.set(this,"__className__",g),this.setAttribute&&this.setAttribute("class",g||o===!1?"":ye.get(this,"__className__")||""))}))},hasClass:function(o){var c,d,g=0;for(c=" "+o+" ";d=this[g++];)if(d.nodeType===1&&(" "+Sr(kr(d))+" ").indexOf(c)>-1)return!0;return!1}});var Ko=/\r/g;h.fn.extend({val:function(o){var c,d,g,v=this[0];return arguments.length?(g=I(o),this.each(function(b){var _;this.nodeType===1&&(g?_=o.call(this,b,h(this).val()):_=o,_==null?_="":typeof _=="number"?_+="":Array.isArray(_)&&(_=h.map(_,function(P){return P==null?"":P+""})),c=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],(!c||!("set"in c)||c.set(this,_,"value")===void 0)&&(this.value=_))})):v?(c=h.valHooks[v.type]||h.valHooks[v.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(v,"value"))!==void 0?d:(d=v.value,typeof d=="string"?d.replace(Ko,""):d??"")):void 0}}),h.extend({valHooks:{option:{get:function(o){var c=h.find.attr(o,"value");return c??Sr(h.text(o))}},select:{get:function(o){var c,d,g,v=o.options,b=o.selectedIndex,_=o.type==="select-one",P=_?null:[],A=_?b+1:v.length;for(b<0?g=A:g=_?b:0;g<A;g++)if(d=v[g],(d.selected||g===b)&&!d.disabled&&(!d.parentNode.disabled||!le(d.parentNode,"optgroup"))){if(c=h(d).val(),_)return c;P.push(c)}return P},set:function(o,c){for(var d,g,v=o.options,b=h.makeArray(c),_=v.length;_--;)g=v[_],(g.selected=h.inArray(h.valHooks.option.get(g),b)>-1)&&(d=!0);return d||(o.selectedIndex=-1),b}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(o,c){if(Array.isArray(c))return o.checked=h.inArray(h(o).val(),c)>-1}},F.checkOn||(h.valHooks[this].get=function(o){return o.getAttribute("value")===null?"on":o.value})});var Oi=t.location,Sa={guid:Date.now()},Ts=/\?/;h.parseXML=function(o){var c,d;if(!o||typeof o!="string")return null;try{c=new t.DOMParser().parseFromString(o,"text/xml")}catch{}return d=c&&c.getElementsByTagName("parsererror")[0],(!c||d)&&h.error("Invalid XML: "+(d?h.map(d.childNodes,function(g){return g.textContent}).join(`
141
+ `):o)),c};var Xo=/^(?:focusinfocus|focusoutblur)$/,Zo=function(o){o.stopPropagation()};h.extend(h.event,{trigger:function(o,c,d,g){var v,b,_,P,A,B,G,K,z=[d||Y],ie=R.call(o,"type")?o.type:o,me=R.call(o,"namespace")?o.namespace.split("."):[];if(b=K=_=d=d||Y,!(d.nodeType===3||d.nodeType===8)&&!Xo.test(ie+h.event.triggered)&&(ie.indexOf(".")>-1&&(me=ie.split("."),ie=me.shift(),me.sort()),A=ie.indexOf(":")<0&&"on"+ie,o=o[h.expando]?o:new h.Event(ie,typeof o=="object"&&o),o.isTrigger=g?2:3,o.namespace=me.join("."),o.rnamespace=o.namespace?new RegExp("(^|\\.)"+me.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,o.result=void 0,o.target||(o.target=d),c=c==null?[o]:h.makeArray(c,[o]),G=h.event.special[ie]||{},!(!g&&G.trigger&&G.trigger.apply(d,c)===!1))){if(!g&&!G.noBubble&&!Z(d)){for(P=G.delegateType||ie,Xo.test(P+ie)||(b=b.parentNode);b;b=b.parentNode)z.push(b),_=b;_===(d.ownerDocument||Y)&&z.push(_.defaultView||_.parentWindow||t)}for(v=0;(b=z[v++])&&!o.isPropagationStopped();)K=b,o.type=v>1?P:G.bindType||ie,B=(ye.get(b,"events")||Object.create(null))[o.type]&&ye.get(b,"handle"),B&&B.apply(b,c),B=A&&b[A],B&&B.apply&&$n(b)&&(o.result=B.apply(b,c),o.result===!1&&o.preventDefault());return o.type=ie,!g&&!o.isDefaultPrevented()&&(!G._default||G._default.apply(z.pop(),c)===!1)&&$n(d)&&A&&I(d[ie])&&!Z(d)&&(_=d[A],_&&(d[A]=null),h.event.triggered=ie,o.isPropagationStopped()&&K.addEventListener(ie,Zo),d[ie](),o.isPropagationStopped()&&K.removeEventListener(ie,Zo),h.event.triggered=void 0,_&&(d[A]=_)),o.result}},simulate:function(o,c,d){var g=h.extend(new h.Event,d,{type:o,isSimulated:!0});h.event.trigger(g,null,c)}}),h.fn.extend({trigger:function(o,c){return this.each(function(){h.event.trigger(o,c,this)})},triggerHandler:function(o,c){var d=this[0];if(d)return h.event.trigger(o,c,d,!0)}});var Sc=/\[\]$/,ka=/\r?\n/g,kc=/^(?:submit|button|image|reset|file)$/i,Cc=/^(?:input|select|textarea|keygen)/i;function Ca(o,c,d,g){var v;if(Array.isArray(c))h.each(c,function(b,_){d||Sc.test(o)?g(o,_):Ca(o+"["+(typeof _=="object"&&_!=null?b:"")+"]",_,d,g)});else if(!d&&ue(c)==="object")for(v in c)Ca(o+"["+v+"]",c[v],d,g);else g(o,c)}h.param=function(o,c){var d,g=[],v=function(b,_){var P=I(_)?_():_;g[g.length]=encodeURIComponent(b)+"="+encodeURIComponent(P??"")};if(o==null)return"";if(Array.isArray(o)||o.jquery&&!h.isPlainObject(o))h.each(o,function(){v(this.name,this.value)});else for(d in o)Ca(d,o[d],c,v);return g.join("&")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var o=h.prop(this,"elements");return o?h.makeArray(o):this}).filter(function(){var o=this.type;return this.name&&!h(this).is(":disabled")&&Cc.test(this.nodeName)&&!kc.test(o)&&(this.checked||!Si.test(o))}).map(function(o,c){var d=h(this).val();return d==null?null:Array.isArray(d)?h.map(d,function(g){return{name:c.name,value:g.replace(ka,`\r
142
+ `)}}):{name:c.name,value:d.replace(ka,`\r
143
+ `)}}).get()}});var Ec=/%20/g,Ea=/#.*$/,Dc=/([?&])_=[^&]*/,Tc=/^(.*?):[ \t]*([^\r\n]*)$/mg,Oc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Rc=/^(?:GET|HEAD)$/,Ac=/^\/\//,lt={},it={},Jo="*/".concat("*"),Da=Y.createElement("a");Da.href=Oi.href;function Qo(o){return function(c,d){typeof c!="string"&&(d=c,c="*");var g,v=0,b=c.toLowerCase().match(dn)||[];if(I(d))for(;g=b[v++];)g[0]==="+"?(g=g.slice(1)||"*",(o[g]=o[g]||[]).unshift(d)):(o[g]=o[g]||[]).push(d)}}function eu(o,c,d,g){var v={},b=o===it;function _(P){var A;return v[P]=!0,h.each(o[P]||[],function(B,G){var K=G(c,d,g);if(typeof K=="string"&&!b&&!v[K])return c.dataTypes.unshift(K),_(K),!1;if(b)return!(A=K)}),A}return _(c.dataTypes[0])||!v["*"]&&_("*")}function Ta(o,c){var d,g,v=h.ajaxSettings.flatOptions||{};for(d in c)c[d]!==void 0&&((v[d]?o:g||(g={}))[d]=c[d]);return g&&h.extend(!0,o,g),o}function Mc(o,c,d){for(var g,v,b,_,P=o.contents,A=o.dataTypes;A[0]==="*";)A.shift(),g===void 0&&(g=o.mimeType||c.getResponseHeader("Content-Type"));if(g){for(v in P)if(P[v]&&P[v].test(g)){A.unshift(v);break}}if(A[0]in d)b=A[0];else{for(v in d){if(!A[0]||o.converters[v+" "+A[0]]){b=v;break}_||(_=v)}b=b||_}if(b)return b!==A[0]&&A.unshift(b),d[b]}function tu(o,c,d,g){var v,b,_,P,A,B={},G=o.dataTypes.slice();if(G[1])for(_ in o.converters)B[_.toLowerCase()]=o.converters[_];for(b=G.shift();b;)if(o.responseFields[b]&&(d[o.responseFields[b]]=c),!A&&g&&o.dataFilter&&(c=o.dataFilter(c,o.dataType)),A=b,b=G.shift(),b){if(b==="*")b=A;else if(A!=="*"&&A!==b){if(_=B[A+" "+b]||B["* "+b],!_){for(v in B)if(P=v.split(" "),P[1]===b&&(_=B[A+" "+P[0]]||B["* "+P[0]],_)){_===!0?_=B[v]:B[v]!==!0&&(b=P[0],G.unshift(P[1]));break}}if(_!==!0)if(_&&o.throws)c=_(c);else try{c=_(c)}catch(K){return{state:"parsererror",error:_?K:"No conversion from "+A+" to "+b}}}}return{state:"success",data:c}}h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oi.href,type:"GET",isLocal:Oc.test(Oi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jo,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":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(o,c){return c?Ta(Ta(o,h.ajaxSettings),c):Ta(h.ajaxSettings,o)},ajaxPrefilter:Qo(lt),ajaxTransport:Qo(it),ajax:function(o,c){typeof o=="object"&&(c=o,o=void 0),c=c||{};var d,g,v,b,_,P,A,B,G,K,z=h.ajaxSetup({},c),ie=z.context||z,me=z.context&&(ie.nodeType||ie.jquery)?h(ie):h.event,Le=h.Deferred(),Pe=h.Callbacks("once memory"),Mt=z.statusCode||{},xt={},Hn={},Yn="canceled",Ue={readyState:0,getResponseHeader:function(qe){var at;if(A){if(!b)for(b={};at=Tc.exec(v);)b[at[1].toLowerCase()+" "]=(b[at[1].toLowerCase()+" "]||[]).concat(at[2]);at=b[qe.toLowerCase()+" "]}return at==null?null:at.join(", ")},getAllResponseHeaders:function(){return A?v:null},setRequestHeader:function(qe,at){return A==null&&(qe=Hn[qe.toLowerCase()]=Hn[qe.toLowerCase()]||qe,xt[qe]=at),this},overrideMimeType:function(qe){return A==null&&(z.mimeType=qe),this},statusCode:function(qe){var at;if(qe)if(A)Ue.always(qe[Ue.status]);else for(at in qe)Mt[at]=[Mt[at],qe[at]];return this},abort:function(qe){var at=qe||Yn;return d&&d.abort(at),Cr(0,at),this}};if(Le.promise(Ue),z.url=((o||z.url||Oi.href)+"").replace(Ac,Oi.protocol+"//"),z.type=c.method||c.type||z.method||z.type,z.dataTypes=(z.dataType||"*").toLowerCase().match(dn)||[""],z.crossDomain==null){P=Y.createElement("a");try{P.href=z.url,P.href=P.href,z.crossDomain=Da.protocol+"//"+Da.host!=P.protocol+"//"+P.host}catch{z.crossDomain=!0}}if(z.data&&z.processData&&typeof z.data!="string"&&(z.data=h.param(z.data,z.traditional)),eu(lt,z,c,Ue),A)return Ue;B=h.event&&z.global,B&&h.active++===0&&h.event.trigger("ajaxStart"),z.type=z.type.toUpperCase(),z.hasContent=!Rc.test(z.type),g=z.url.replace(Ea,""),z.hasContent?z.data&&z.processData&&(z.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(z.data=z.data.replace(Ec,"+")):(K=z.url.slice(g.length),z.data&&(z.processData||typeof z.data=="string")&&(g+=(Ts.test(g)?"&":"?")+z.data,delete z.data),z.cache===!1&&(g=g.replace(Dc,"$1"),K=(Ts.test(g)?"&":"?")+"_="+Sa.guid+++K),z.url=g+K),z.ifModified&&(h.lastModified[g]&&Ue.setRequestHeader("If-Modified-Since",h.lastModified[g]),h.etag[g]&&Ue.setRequestHeader("If-None-Match",h.etag[g])),(z.data&&z.hasContent&&z.contentType!==!1||c.contentType)&&Ue.setRequestHeader("Content-Type",z.contentType),Ue.setRequestHeader("Accept",z.dataTypes[0]&&z.accepts[z.dataTypes[0]]?z.accepts[z.dataTypes[0]]+(z.dataTypes[0]!=="*"?", "+Jo+"; q=0.01":""):z.accepts["*"]);for(G in z.headers)Ue.setRequestHeader(G,z.headers[G]);if(z.beforeSend&&(z.beforeSend.call(ie,Ue,z)===!1||A))return Ue.abort();if(Yn="abort",Pe.add(z.complete),Ue.done(z.success),Ue.fail(z.error),d=eu(it,z,c,Ue),!d)Cr(-1,"No Transport");else{if(Ue.readyState=1,B&&me.trigger("ajaxSend",[Ue,z]),A)return Ue;z.async&&z.timeout>0&&(_=t.setTimeout(function(){Ue.abort("timeout")},z.timeout));try{A=!1,d.send(xt,Cr)}catch(qe){if(A)throw qe;Cr(-1,qe)}}function Cr(qe,at,Xi,Rs){var Dn,Xr,yn,lr,Er,Jt=at;A||(A=!0,_&&t.clearTimeout(_),d=void 0,v=Rs||"",Ue.readyState=qe>0?4:0,Dn=qe>=200&&qe<300||qe===304,Xi&&(lr=Mc(z,Ue,Xi)),!Dn&&h.inArray("script",z.dataTypes)>-1&&h.inArray("json",z.dataTypes)<0&&(z.converters["text script"]=function(){}),lr=tu(z,lr,Ue,Dn),Dn?(z.ifModified&&(Er=Ue.getResponseHeader("Last-Modified"),Er&&(h.lastModified[g]=Er),Er=Ue.getResponseHeader("etag"),Er&&(h.etag[g]=Er)),qe===204||z.type==="HEAD"?Jt="nocontent":qe===304?Jt="notmodified":(Jt=lr.state,Xr=lr.data,yn=lr.error,Dn=!yn)):(yn=Jt,(qe||!Jt)&&(Jt="error",qe<0&&(qe=0))),Ue.status=qe,Ue.statusText=(at||Jt)+"",Dn?Le.resolveWith(ie,[Xr,Jt,Ue]):Le.rejectWith(ie,[Ue,Jt,yn]),Ue.statusCode(Mt),Mt=void 0,B&&me.trigger(Dn?"ajaxSuccess":"ajaxError",[Ue,z,Dn?Xr:yn]),Pe.fireWith(ie,[Ue,Jt]),B&&(me.trigger("ajaxComplete",[Ue,z]),--h.active||h.event.trigger("ajaxStop")))}return Ue},getJSON:function(o,c,d){return h.get(o,c,d,"json")},getScript:function(o,c){return h.get(o,void 0,c,"script")}}),h.each(["get","post"],function(o,c){h[c]=function(d,g,v,b){return I(g)&&(b=b||v,v=g,g=void 0),h.ajax(h.extend({url:d,type:c,dataType:b,data:g,success:v},h.isPlainObject(d)&&d))}}),h.ajaxPrefilter(function(o){var c;for(c in o.headers)c.toLowerCase()==="content-type"&&(o.contentType=o.headers[c]||"")}),h._evalUrl=function(o,c,d){return h.ajax({url:o,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){h.globalEval(g,c,d)}})},h.fn.extend({wrapAll:function(o){var c;return this[0]&&(I(o)&&(o=o.call(this[0])),c=h(o,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){for(var d=this;d.firstElementChild;)d=d.firstElementChild;return d}).append(this)),this},wrapInner:function(o){return I(o)?this.each(function(c){h(this).wrapInner(o.call(this,c))}):this.each(function(){var c=h(this),d=c.contents();d.length?d.wrapAll(o):c.append(o)})},wrap:function(o){var c=I(o);return this.each(function(d){h(this).wrapAll(c?o.call(this,d):o)})},unwrap:function(o){return this.parent(o).not("body").each(function(){h(this).replaceWith(this.childNodes)}),this}}),h.expr.pseudos.hidden=function(o){return!h.expr.pseudos.visible(o)},h.expr.pseudos.visible=function(o){return!!(o.offsetWidth||o.offsetHeight||o.getClientRects().length)},h.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Pc={0:200,1223:204},bt=h.ajaxSettings.xhr();F.cors=!!bt&&"withCredentials"in bt,F.ajax=bt=!!bt,h.ajaxTransport(function(o){var c,d;if(F.cors||bt&&!o.crossDomain)return{send:function(g,v){var b,_=o.xhr();if(_.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(b in o.xhrFields)_[b]=o.xhrFields[b];o.mimeType&&_.overrideMimeType&&_.overrideMimeType(o.mimeType),!o.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(b in g)_.setRequestHeader(b,g[b]);c=function(P){return function(){c&&(c=d=_.onload=_.onerror=_.onabort=_.ontimeout=_.onreadystatechange=null,P==="abort"?_.abort():P==="error"?typeof _.status!="number"?v(0,"error"):v(_.status,_.statusText):v(Pc[_.status]||_.status,_.statusText,(_.responseType||"text")!=="text"||typeof _.responseText!="string"?{binary:_.response}:{text:_.responseText},_.getAllResponseHeaders()))}},_.onload=c(),d=_.onerror=_.ontimeout=c("error"),_.onabort!==void 0?_.onabort=d:_.onreadystatechange=function(){_.readyState===4&&t.setTimeout(function(){c&&d()})},c=c("abort");try{_.send(o.hasContent&&o.data||null)}catch(P){if(c)throw P}},abort:function(){c&&c()}}}),h.ajaxPrefilter(function(o){o.crossDomain&&(o.contents.script=!1)}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(o){return h.globalEval(o),o}}}),h.ajaxPrefilter("script",function(o){o.cache===void 0&&(o.cache=!1),o.crossDomain&&(o.type="GET")}),h.ajaxTransport("script",function(o){if(o.crossDomain||o.scriptAttrs){var c,d;return{send:function(g,v){c=h("<script>").attr(o.scriptAttrs||{}).prop({charset:o.scriptCharset,src:o.url}).on("load error",d=function(b){c.remove(),d=null,b&&v(b.type==="error"?404:200,b.type)}),Y.head.appendChild(c[0])},abort:function(){d&&d()}}}});var Os=[],ur=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var o=Os.pop()||h.expando+"_"+Sa.guid++;return this[o]=!0,o}}),h.ajaxPrefilter("json jsonp",function(o,c,d){var g,v,b,_=o.jsonp!==!1&&(ur.test(o.url)?"url":typeof o.data=="string"&&(o.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ur.test(o.data)&&"data");if(_||o.dataTypes[0]==="jsonp")return g=o.jsonpCallback=I(o.jsonpCallback)?o.jsonpCallback():o.jsonpCallback,_?o[_]=o[_].replace(ur,"$1"+g):o.jsonp!==!1&&(o.url+=(Ts.test(o.url)?"&":"?")+o.jsonp+"="+g),o.converters["script json"]=function(){return b||h.error(g+" was not called"),b[0]},o.dataTypes[0]="json",v=t[g],t[g]=function(){b=arguments},d.always(function(){v===void 0?h(t).removeProp(g):t[g]=v,o[g]&&(o.jsonpCallback=c.jsonpCallback,Os.push(g)),b&&I(v)&&v(b[0]),b=v=void 0}),"script"}),F.createHTMLDocument=function(){var o=Y.implementation.createHTMLDocument("").body;return o.innerHTML="<form></form><form></form>",o.childNodes.length===2}(),h.parseHTML=function(o,c,d){if(typeof o!="string")return[];typeof c=="boolean"&&(d=c,c=!1);var g,v,b;return c||(F.createHTMLDocument?(c=Y.implementation.createHTMLDocument(""),g=c.createElement("base"),g.href=Y.location.href,c.head.appendChild(g)):c=Y),v=vt.exec(o),b=!d&&[],v?[c.createElement(v[1])]:(v=Po([o],c,b),b&&b.length&&h(b).remove(),h.merge([],v.childNodes))},h.fn.load=function(o,c,d){var g,v,b,_=this,P=o.indexOf(" ");return P>-1&&(g=Sr(o.slice(P)),o=o.slice(0,P)),I(c)?(d=c,c=void 0):c&&typeof c=="object"&&(v="POST"),_.length>0&&h.ajax({url:o,type:v||"GET",dataType:"html",data:c}).done(function(A){b=arguments,_.html(g?h("<div>").append(h.parseHTML(A)).find(g):A)}).always(d&&function(A,B){_.each(function(){d.apply(this,b||[A.responseText,B,A])})}),this},h.expr.pseudos.animated=function(o){return h.grep(h.timers,function(c){return o===c.elem}).length},h.offset={setOffset:function(o,c,d){var g,v,b,_,P,A,B,G=h.css(o,"position"),K=h(o),z={};G==="static"&&(o.style.position="relative"),P=K.offset(),b=h.css(o,"top"),A=h.css(o,"left"),B=(G==="absolute"||G==="fixed")&&(b+A).indexOf("auto")>-1,B?(g=K.position(),_=g.top,v=g.left):(_=parseFloat(b)||0,v=parseFloat(A)||0),I(c)&&(c=c.call(o,d,h.extend({},P))),c.top!=null&&(z.top=c.top-P.top+_),c.left!=null&&(z.left=c.left-P.left+v),"using"in c?c.using.call(o,z):K.css(z)}},h.fn.extend({offset:function(o){if(arguments.length)return o===void 0?this:this.each(function(v){h.offset.setOffset(this,o,v)});var c,d,g=this[0];if(g)return g.getClientRects().length?(c=g.getBoundingClientRect(),d=g.ownerDocument.defaultView,{top:c.top+d.pageYOffset,left:c.left+d.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var o,c,d,g=this[0],v={top:0,left:0};if(h.css(g,"position")==="fixed")c=g.getBoundingClientRect();else{for(c=this.offset(),d=g.ownerDocument,o=g.offsetParent||d.documentElement;o&&(o===d.body||o===d.documentElement)&&h.css(o,"position")==="static";)o=o.parentNode;o&&o!==g&&o.nodeType===1&&(v=h(o).offset(),v.top+=h.css(o,"borderTopWidth",!0),v.left+=h.css(o,"borderLeftWidth",!0))}return{top:c.top-v.top-h.css(g,"marginTop",!0),left:c.left-v.left-h.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var o=this.offsetParent;o&&h.css(o,"position")==="static";)o=o.offsetParent;return o||or})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(o,c){var d=c==="pageYOffset";h.fn[o]=function(g){return hn(this,function(v,b,_){var P;if(Z(v)?P=v:v.nodeType===9&&(P=v.defaultView),_===void 0)return P?P[c]:v[b];P?P.scrollTo(d?P.pageXOffset:_,d?_:P.pageYOffset):v[b]=_},o,g,arguments.length)}}),h.each(["top","left"],function(o,c){h.cssHooks[c]=Ki(F.pixelPosition,function(d,g){if(g)return g=Gi(d,c),ha.test(g)?h(d).position()[c]+"px":g})}),h.each({Height:"height",Width:"width"},function(o,c){h.each({padding:"inner"+o,content:c,"":"outer"+o},function(d,g){h.fn[g]=function(v,b){var _=arguments.length&&(d||typeof v!="boolean"),P=d||(v===!0||b===!0?"margin":"border");return hn(this,function(A,B,G){var K;return Z(A)?g.indexOf("outer")===0?A["inner"+o]:A.document.documentElement["client"+o]:A.nodeType===9?(K=A.documentElement,Math.max(A.body["scroll"+o],K["scroll"+o],A.body["offset"+o],K["offset"+o],K["client"+o])):G===void 0?h.css(A,B,P):h.style(A,B,G,P)},c,_?v:void 0,_)}})}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(o,c){h.fn[c]=function(d){return this.on(c,d)}}),h.fn.extend({bind:function(o,c,d){return this.on(o,null,c,d)},unbind:function(o,c){return this.off(o,null,c)},delegate:function(o,c,d,g){return this.on(c,o,d,g)},undelegate:function(o,c,d){return arguments.length===1?this.off(o,"**"):this.off(c,o||"**",d)},hover:function(o,c){return this.on("mouseenter",o).on("mouseleave",c||o)}}),h.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(o,c){h.fn[c]=function(d,g){return arguments.length>0?this.on(c,null,d,g):this.trigger(c)}});var nu=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;h.proxy=function(o,c){var d,g,v;if(typeof c=="string"&&(d=o[c],c=o,o=d),!!I(o))return g=u.call(arguments,2),v=function(){return o.apply(c||this,g.concat(u.call(arguments)))},v.guid=o.guid=o.guid||h.guid++,v},h.holdReady=function(o){o?h.readyWait++:h.ready(!0)},h.isArray=Array.isArray,h.parseJSON=JSON.parse,h.nodeName=le,h.isFunction=I,h.isWindow=Z,h.camelCase=$t,h.type=ue,h.now=Date.now,h.isNumeric=function(o){var c=h.type(o);return(c==="number"||c==="string")&&!isNaN(o-parseFloat(o))},h.trim=function(o){return o==null?"":(o+"").replace(nu,"$1")};var Oa=t.jQuery,mn=t.$;return h.noConflict=function(o){return t.$===h&&(t.$=mn),o&&t.jQuery===h&&(t.jQuery=Oa),h},typeof n>"u"&&(t.jQuery=t.$=h),h})}(Bf)),Bf.exports}var JM=H0();const QM=C.getDefaultExportFromCjs(JM);var eP={exports:{}};const tP=C.getAugmentedNamespace(ID);/**
144
+ * @version: 3.1
145
+ * @author: Dan Grossman http://www.dangrossman.info/
146
+ * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
147
+ * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
148
+ * @website: http://www.daterangepicker.com/
149
+ */(function(e){(function(t,n){if(e.exports){var i=typeof window<"u"?window.jQuery:void 0;i||(i=H0(),i.fn||(i.fn={}));var a=typeof window<"u"&&typeof window.moment<"u"?window.moment:tP;e.exports=n(a,i)}else t.daterangepicker=n(t.moment,t.jQuery)})(C.commonjsGlobal,function(t,n){var i=function(a,u,f){if(this.parentEl="body",this.element=n(a),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 u!="object"||u===null)&&(u={}),u=n.extend(this.element.data(),u),typeof u.template!="string"&&!(u.template instanceof n)&&(u.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=u.parentEl&&n(u.parentEl).length?n(u.parentEl):n(this.parentEl),this.container=n(u.template).appendTo(this.parentEl),typeof u.locale=="object"&&(typeof u.locale.direction=="string"&&(this.locale.direction=u.locale.direction),typeof u.locale.format=="string"&&(this.locale.format=u.locale.format),typeof u.locale.separator=="string"&&(this.locale.separator=u.locale.separator),typeof u.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=u.locale.daysOfWeek.slice()),typeof u.locale.monthNames=="object"&&(this.locale.monthNames=u.locale.monthNames.slice()),typeof u.locale.firstDay=="number"&&(this.locale.firstDay=u.locale.firstDay),typeof u.locale.applyLabel=="string"&&(this.locale.applyLabel=u.locale.applyLabel),typeof u.locale.cancelLabel=="string"&&(this.locale.cancelLabel=u.locale.cancelLabel),typeof u.locale.weekLabel=="string"&&(this.locale.weekLabel=u.locale.weekLabel),typeof u.locale.customRangeLabel=="string")){var m=document.createElement("textarea");m.innerHTML=u.locale.customRangeLabel;var y=m.value;this.locale.customRangeLabel=y}if(this.container.addClass(this.locale.direction),typeof u.startDate=="string"&&(this.startDate=t(u.startDate,this.locale.format)),typeof u.endDate=="string"&&(this.endDate=t(u.endDate,this.locale.format)),typeof u.minDate=="string"&&(this.minDate=t(u.minDate,this.locale.format)),typeof u.maxDate=="string"&&(this.maxDate=t(u.maxDate,this.locale.format)),typeof u.startDate=="object"&&(this.startDate=t(u.startDate)),typeof u.endDate=="object"&&(this.endDate=t(u.endDate)),typeof u.minDate=="object"&&(this.minDate=t(u.minDate)),typeof u.maxDate=="object"&&(this.maxDate=t(u.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 u.applyButtonClasses=="string"&&(this.applyButtonClasses=u.applyButtonClasses),typeof u.applyClass=="string"&&(this.applyButtonClasses=u.applyClass),typeof u.cancelButtonClasses=="string"&&(this.cancelButtonClasses=u.cancelButtonClasses),typeof u.cancelClass=="string"&&(this.cancelButtonClasses=u.cancelClass),typeof u.maxSpan=="object"&&(this.maxSpan=u.maxSpan),typeof u.dateLimit=="object"&&(this.maxSpan=u.dateLimit),typeof u.opens=="string"&&(this.opens=u.opens),typeof u.drops=="string"&&(this.drops=u.drops),typeof u.showWeekNumbers=="boolean"&&(this.showWeekNumbers=u.showWeekNumbers),typeof u.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=u.showISOWeekNumbers),typeof u.buttonClasses=="string"&&(this.buttonClasses=u.buttonClasses),typeof u.buttonClasses=="object"&&(this.buttonClasses=u.buttonClasses.join(" ")),typeof u.showDropdowns=="boolean"&&(this.showDropdowns=u.showDropdowns),typeof u.minYear=="number"&&(this.minYear=u.minYear),typeof u.maxYear=="number"&&(this.maxYear=u.maxYear),typeof u.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=u.showCustomRangeLabel),typeof u.singleDatePicker=="boolean"&&(this.singleDatePicker=u.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof u.timePicker=="boolean"&&(this.timePicker=u.timePicker),typeof u.timePickerSeconds=="boolean"&&(this.timePickerSeconds=u.timePickerSeconds),typeof u.timePickerIncrement=="number"&&(this.timePickerIncrement=u.timePickerIncrement),typeof u.timePicker24Hour=="boolean"&&(this.timePicker24Hour=u.timePicker24Hour),typeof u.autoApply=="boolean"&&(this.autoApply=u.autoApply),typeof u.autoUpdateInput=="boolean"&&(this.autoUpdateInput=u.autoUpdateInput),typeof u.linkedCalendars=="boolean"&&(this.linkedCalendars=u.linkedCalendars),typeof u.isInvalidDate=="function"&&(this.isInvalidDate=u.isInvalidDate),typeof u.isCustomDate=="function"&&(this.isCustomDate=u.isCustomDate),typeof u.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=u.alwaysShowCalendars),this.locale.firstDay!=0)for(var w=this.locale.firstDay;w>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),w--;var S,R,T;if(typeof u.startDate>"u"&&typeof u.endDate>"u"&&n(this.element).is(":text")){var H=n(this.element).val(),F=H.split(this.locale.separator);S=R=null,F.length==2?(S=t(F[0],this.locale.format),R=t(F[1],this.locale.format)):this.singleDatePicker&&H!==""&&(S=t(H,this.locale.format),R=t(H,this.locale.format)),S!==null&&R!==null&&(this.setStartDate(S),this.setEndDate(R))}if(typeof u.ranges=="object"){for(T in u.ranges){typeof u.ranges[T][0]=="string"?S=t(u.ranges[T][0],this.locale.format):S=t(u.ranges[T][0]),typeof u.ranges[T][1]=="string"?R=t(u.ranges[T][1],this.locale.format):R=t(u.ranges[T][1]),this.minDate&&S.isBefore(this.minDate)&&(S=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&S.clone().add(this.maxSpan).isAfter(I)&&(I=S.clone().add(this.maxSpan)),I&&R.isAfter(I)&&(R=I.clone()),!(this.minDate&&R.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&S.isAfter(I,this.timepicker?"minute":"day"))){var m=document.createElement("textarea");m.innerHTML=T;var y=m.value;this.ranges[y]=[S,R]}}var Z="<ul>";for(T in this.ranges)Z+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(Z+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),Z+="</ul>",this.container.find(".ranges").prepend(Z)}typeof f=="function"&&(this.callback=f),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 u.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 u.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",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(a){typeof a=="string"&&(this.startDate=t(a,this.locale.format)),typeof a=="object"&&(this.startDate=t(a)),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(a){typeof a=="string"&&(this.endDate=t(a,this.locale.format)),typeof a=="object"&&(this.endDate=t(a)),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 a,u,f;if(this.endDate){if(a=parseInt(this.container.find(".left .hourselect").val(),10),u=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(u)&&(u=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),f=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var m=this.container.find(".left .ampmselect").val();m==="PM"&&a<12&&(a+=12),m==="AM"&&a===12&&(a=0)}}else if(a=parseInt(this.container.find(".right .hourselect").val(),10),u=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(u)&&(u=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),f=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var m=this.container.find(".right .ampmselect").val();m==="PM"&&a<12&&(a+=12),m==="AM"&&a===12&&(a=0)}this.leftCalendar.month.hour(a).minute(u).second(f),this.rightCalendar.month.hour(a).minute(u).second(f)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(a){var Y=a=="left"?this.leftCalendar:this.rightCalendar,u=Y.month.month(),f=Y.month.year(),m=Y.month.hour(),y=Y.month.minute(),w=Y.month.second(),S=t([f,u]).daysInMonth(),R=t([f,u,1]),T=t([f,u,S]),H=t(R).subtract(1,"month").month(),F=t(R).subtract(1,"month").year(),I=t([F,H]).daysInMonth(),Z=R.day(),Y=[];Y.firstDay=R,Y.lastDay=T;for(var oe=0;oe<6;oe++)Y[oe]=[];var fe=I-Z+this.locale.firstDay+1;fe>I&&(fe-=7),Z==this.locale.firstDay&&(fe=I-6);for(var ue=t([F,H,fe,12,y,w]),re,ae,oe=0,re=0,ae=0;oe<42;oe++,re++,ue=t(ue).add(24,"hour"))oe>0&&re%7===0&&(re=0,ae++),Y[ae][re]=ue.clone().hour(m).minute(y).second(w),ue.hour(12),this.minDate&&Y[ae][re].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&Y[ae][re].isBefore(this.minDate)&&a=="left"&&(Y[ae][re]=this.minDate.clone()),this.maxDate&&Y[ae][re].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&Y[ae][re].isAfter(this.maxDate)&&a=="right"&&(Y[ae][re]=this.maxDate.clone());a=="left"?this.leftCalendar.calendar=Y:this.rightCalendar.calendar=Y;var h=a=="left"?this.minDate:this.startDate,Ae=this.maxDate;a=="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>"),(!h||h.isBefore(Y.firstDay))&&(!this.linkedCalendars||a=="left")?le+='<th class="prev available"><span></span></th>':le+="<th></th>";var Je=this.locale.monthNames[Y[1][1].month()]+Y[1][1].format(" YYYY");if(this.showDropdowns){for(var je=Y[1][1].month(),Ie=Y[1][1].year(),ke=Ae&&Ae.year()||this.maxYear,ze=h&&h.year()||this.minYear,U=Ie==ze,te=Ie==ke,he='<select class="monthselect">',ce=0;ce<12;ce++)(!U||h&&ce>=h.month())&&(!te||Ae&&ce<=Ae.month())?he+="<option value='"+ce+"'"+(ce===je?" selected='selected'":"")+">"+this.locale.monthNames[ce]+"</option>":he+="<option value='"+ce+"'"+(ce===je?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[ce]+"</option>";he+="</select>";for(var Ce='<select class="yearselect">',_e=ze;_e<=ke;_e++)Ce+='<option value="'+_e+'"'+(_e===Ie?' selected="selected"':"")+">"+_e+"</option>";Ce+="</select>",Je=he+Ce}if(le+='<th colspan="5" class="month">'+Je+"</th>",(!Ae||Ae.isAfter(Y.lastDay))&&(!this.linkedCalendars||a=="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>"),n.each(this.locale.daysOfWeek,function(sr,qi){le+="<th>"+qi+"</th>"}),le+="</tr>",le+="</thead>",le+="<tbody>",this.endDate==null&&this.maxSpan){var ft=this.startDate.clone().add(this.maxSpan).endOf("day");(!Ae||ft.isBefore(Ae))&&(Ae=ft)}for(var ae=0;ae<6;ae++){le+="<tr>",this.showWeekNumbers?le+='<td class="week">'+Y[ae][0].week()+"</td>":this.showISOWeekNumbers&&(le+='<td class="week">'+Y[ae][0].isoWeek()+"</td>");for(var re=0;re<7;re++){var vt=[];Y[ae][re].isSame(new Date,"day")&&vt.push("today"),Y[ae][re].isoWeekday()>5&&vt.push("weekend"),Y[ae][re].month()!=Y[1][1].month()&&vt.push("off","ends"),this.minDate&&Y[ae][re].isBefore(this.minDate,"day")&&vt.push("off","disabled"),Ae&&Y[ae][re].isAfter(Ae,"day")&&vt.push("off","disabled"),this.isInvalidDate(Y[ae][re])&&vt.push("off","disabled"),Y[ae][re].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&vt.push("active","start-date"),this.endDate!=null&&Y[ae][re].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&vt.push("active","end-date"),this.endDate!=null&&Y[ae][re]>this.startDate&&Y[ae][re]<this.endDate&&vt.push("in-range");var dt=this.isCustomDate(Y[ae][re]);dt!==!1&&(typeof dt=="string"?vt.push(dt):Array.prototype.push.apply(vt,dt));for(var Ct="",Gt=!1,oe=0;oe<vt.length;oe++)Ct+=vt[oe]+" ",vt[oe]=="disabled"&&(Gt=!0);Gt||(Ct+="available"),le+='<td class="'+Ct.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ae+"c"+re+'">'+Y[ae][re].date()+"</td>"}le+="</tr>"}le+="</tbody>",le+="</table>",this.container.find(".drp-calendar."+a+" .calendar-table").html(le)},renderTimePicker:function(a){if(!(a=="right"&&!this.endDate)){var u,f,m,y=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(y=this.startDate.clone().add(this.maxSpan)),a=="left")f=this.startDate.clone(),m=this.minDate;else if(a=="right"){f=this.endDate.clone(),m=this.startDate;var w=this.container.find(".drp-calendar.right .calendar-time");if(w.html()!=""&&(f.hour(isNaN(f.hour())?w.find(".hourselect option:selected").val():f.hour()),f.minute(isNaN(f.minute())?w.find(".minuteselect option:selected").val():f.minute()),f.second(isNaN(f.second())?w.find(".secondselect option:selected").val():f.second()),!this.timePicker24Hour)){var S=w.find(".ampmselect option:selected").val();S==="PM"&&f.hour()<12&&f.hour(f.hour()+12),S==="AM"&&f.hour()===12&&f.hour(0)}f.isBefore(this.startDate)&&(f=this.startDate.clone()),y&&f.isAfter(y)&&(f=y.clone())}u='<select class="hourselect">';for(var R=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,H=R;H<=T;H++){var F=H;this.timePicker24Hour||(F=f.hour()>=12?H==12?12:H+12:H==12?0:H);var I=f.clone().hour(F),Z=!1;m&&I.minute(59).isBefore(m)&&(Z=!0),y&&I.minute(0).isAfter(y)&&(Z=!0),F==f.hour()&&!Z?u+='<option value="'+H+'" selected="selected">'+H+"</option>":Z?u+='<option value="'+H+'" disabled="disabled" class="disabled">'+H+"</option>":u+='<option value="'+H+'">'+H+"</option>"}u+="</select> ",u+=': <select class="minuteselect">';for(var H=0;H<60;H+=this.timePickerIncrement){var Y=H<10?"0"+H:H,I=f.clone().minute(H),Z=!1;m&&I.second(59).isBefore(m)&&(Z=!0),y&&I.second(0).isAfter(y)&&(Z=!0),f.minute()==H&&!Z?u+='<option value="'+H+'" selected="selected">'+Y+"</option>":Z?u+='<option value="'+H+'" disabled="disabled" class="disabled">'+Y+"</option>":u+='<option value="'+H+'">'+Y+"</option>"}if(u+="</select> ",this.timePickerSeconds){u+=': <select class="secondselect">';for(var H=0;H<60;H++){var Y=H<10?"0"+H:H,I=f.clone().second(H),Z=!1;m&&I.isBefore(m)&&(Z=!0),y&&I.isAfter(y)&&(Z=!0),f.second()==H&&!Z?u+='<option value="'+H+'" selected="selected">'+Y+"</option>":Z?u+='<option value="'+H+'" disabled="disabled" class="disabled">'+Y+"</option>":u+='<option value="'+H+'">'+Y+"</option>"}u+="</select> "}if(!this.timePicker24Hour){u+='<select class="ampmselect">';var oe="",fe="";m&&f.clone().hour(12).minute(0).second(0).isBefore(m)&&(oe=' disabled="disabled" class="disabled"'),y&&f.clone().hour(0).minute(0).second(0).isAfter(y)&&(fe=' disabled="disabled" class="disabled"'),f.hour()>=12?u+='<option value="AM"'+oe+'>AM</option><option value="PM" selected="selected"'+fe+">PM</option>":u+='<option value="AM" selected="selected"'+oe+'>AM</option><option value="PM"'+fe+">PM</option>",u+="</select>"}this.container.find(".drp-calendar."+a+" .calendar-time").html(u)}},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 a={top:0,left:0},u,f=this.drops,m=n(window).width();switch(this.parentEl.is("body")||(a={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},m=this.parentEl[0].clientWidth+this.parentEl.offset().left),f){case"auto":u=this.element.offset().top+this.element.outerHeight()-a.top,u+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(u=this.element.offset().top-this.container.outerHeight()-a.top,f="up");break;case"up":u=this.element.offset().top-this.container.outerHeight()-a.top;break;default:u=this.element.offset().top+this.element.outerHeight()-a.top;break}this.container.css({top:0,left:0,right:"auto"});var y=this.container.outerWidth();if(this.container.toggleClass("drop-up",f=="up"),this.opens=="left"){var w=m-this.element.offset().left-this.element.outerWidth();y+w>n(window).width()?this.container.css({top:u,right:"auto",left:9}):this.container.css({top:u,right:w,left:"auto"})}else if(this.opens=="center"){var S=this.element.offset().left-a.left+this.element.outerWidth()/2-y/2;S<0?this.container.css({top:u,right:"auto",left:9}):S+y>n(window).width()?this.container.css({top:u,left:"auto",right:0}):this.container.css({top:u,left:S,right:"auto"})}else{var S=this.element.offset().left-a.left;S+y>n(window).width()?this.container.css({top:u,left:"auto",right:0}):this.container.css({top:u,left:S,right:"auto"})}},show:function(a){this.isShowing||(this._outsideClickProxy=n.proxy(function(u){this.outsideClick(u)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(u){this.move(u)},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(a){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(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(a){this.isShowing?this.hide():this.show()},outsideClick:function(a){var u=n(a.target);a.type=="focusin"||u.closest(this.element).length||u.closest(this.container).length||u.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(a){var u=a.target.getAttribute("data-range-key");if(this.chosenLabel=u,u==this.locale.customRangeLabel)this.showCalendars();else{var f=this.ranges[u];this.startDate=f[0],this.endDate=f[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(a){var u=n(a.target).parents(".drp-calendar");u.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(a){var u=n(a.target).parents(".drp-calendar");u.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(a){if(n(a.target).hasClass("available")){var u=n(a.target).attr("data-title"),f=u.substr(1,1),m=u.substr(3,1),y=n(a.target).parents(".drp-calendar"),w=y.hasClass("left")?this.leftCalendar.calendar[f][m]:this.rightCalendar.calendar[f][m],S=this.leftCalendar,R=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(H,F){if(!n(F).hasClass("week")){var I=n(F).attr("data-title"),Z=I.substr(1,1),Y=I.substr(3,1),oe=n(F).parents(".drp-calendar"),fe=oe.hasClass("left")?S.calendar[Z][Y]:R.calendar[Z][Y];fe.isAfter(T)&&fe.isBefore(w)||fe.isSame(w,"day")?n(F).addClass("in-range"):n(F).removeClass("in-range")}})}},clickDate:function(a){if(n(a.target).hasClass("available")){var u=n(a.target).attr("data-title"),f=u.substr(1,1),m=u.substr(3,1),y=n(a.target).parents(".drp-calendar"),w=y.hasClass("left")?this.leftCalendar.calendar[f][m]:this.rightCalendar.calendar[f][m];if(this.endDate||w.isBefore(this.startDate,"day")){if(this.timePicker){var S=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var R=this.container.find(".left .ampmselect").val();R==="PM"&&S<12&&(S+=12),R==="AM"&&S===12&&(S=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var H=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;w=w.clone().hour(S).minute(T).second(H)}this.endDate=null,this.setStartDate(w.clone())}else if(!this.endDate&&w.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var S=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var R=this.container.find(".right .ampmselect").val();R==="PM"&&S<12&&(S+=12),R==="AM"&&S===12&&(S=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var H=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;w=w.clone().hour(S).minute(T).second(H)}this.setEndDate(w.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),a.stopPropagation()}},calculateChosenLabel:function(){var a=!0,u=0;for(var f in this.ranges){if(this.timePicker){var m=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(m)==this.ranges[f][0].format(m)&&this.endDate.format(m)==this.ranges[f][1].format(m)){a=!1,this.chosenLabel=this.container.find(".ranges li:eq("+u+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[f][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[f][1].format("YYYY-MM-DD")){a=!1,this.chosenLabel=this.container.find(".ranges li:eq("+u+")").addClass("active").attr("data-range-key");break}u++}a&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(a){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(a){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(a){var u=n(a.target).closest(".drp-calendar").hasClass("left"),f=u?"left":"right",m=this.container.find(".drp-calendar."+f),y=parseInt(m.find(".monthselect").val(),10),w=m.find(".yearselect").val();u||(w<this.startDate.year()||w==this.startDate.year()&&y<this.startDate.month())&&(y=this.startDate.month(),w=this.startDate.year()),this.minDate&&(w<this.minDate.year()||w==this.minDate.year()&&y<this.minDate.month())&&(y=this.minDate.month(),w=this.minDate.year()),this.maxDate&&(w>this.maxDate.year()||w==this.maxDate.year()&&y>this.maxDate.month())&&(y=this.maxDate.month(),w=this.maxDate.year()),u?(this.leftCalendar.month.month(y).year(w),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(y).year(w),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(a){var u=n(a.target).closest(".drp-calendar"),f=u.hasClass("left"),m=parseInt(u.find(".hourselect").val(),10),y=parseInt(u.find(".minuteselect").val(),10);isNaN(y)&&(y=parseInt(u.find(".minuteselect option:last").val(),10));var w=this.timePickerSeconds?parseInt(u.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var S=u.find(".ampmselect").val();S==="PM"&&m<12&&(m+=12),S==="AM"&&m===12&&(m=0)}if(f){var R=this.startDate.clone();R.hour(m),R.minute(y),R.second(w),this.setStartDate(R),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==R.format("YYYY-MM-DD")&&this.endDate.isBefore(R)&&this.setEndDate(R.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(m),T.minute(y),T.second(w),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var a=this.element.val().split(this.locale.separator),u=null,f=null;a.length===2&&(u=t(a[0],this.locale.format),f=t(a[1],this.locale.format)),(this.singleDatePicker||u===null||f===null)&&(u=t(this.element.val(),this.locale.format),f=u),!(!u.isValid()||!f.isValid())&&(this.setStartDate(u),this.setEndDate(f),this.updateView())}},keydown:function(a){(a.keyCode===9||a.keyCode===13)&&this.hide(),a.keyCode===27&&(a.preventDefault(),a.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var a=this.startDate.format(this.locale.format);this.singleDatePicker||(a+=this.locale.separator+this.endDate.format(this.locale.format)),a!==this.element.val()&&this.element.val(a).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(a,u){var f=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,a);return this.each(function(){var m=n(this);m.data("daterangepicker")&&m.data("daterangepicker").remove(),m.data("daterangepicker",new i(m,f,u))}),this},i})})(eP);var yd=function(e,t){return yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},yd(e,t)};function nP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}(function(e){nP(t,e);function t(n){var i=e.call(this,n)||this;return i.ref=null,i.$picker=null,i}return t.prototype.componentDidMount=function(){var n=this;this.$picker=QM(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(i){var a,u=i.charAt(0).toLowerCase()+i.slice(1);(a=n.$picker)===null||a===void 0||a.on(u+".daterangepicker",n.makeEventHandler("on"+i))})},t.prototype.componentWillUnmount=function(){var n,i;(i=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||i===void 0||i.remove()},t.prototype.handleCallback=function(){for(var n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,i)},t.prototype.makeEventHandler=function(n){var i=this,a=this.props.onEvent;return function(u,f){typeof a=="function"&&a(u,f),typeof i.props[n]=="function"&&i.props[n](u,f)}},t.prototype.setStartDate=function(n){var i,a;(a=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||a===void 0||a.setStartDate(n)},t.prototype.setEndDate=function(n){var i,a;(a=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||a===void 0||a.setEndDate(n)},t.prototype.render=function(){var n=this,i=C.reactExports.Children.only(this.props.children);return C.reactExports.cloneElement(i,{ref:function(a){return n.ref=a}})},t})(C.reactExports.Component);Yr(e=>C.jsxRuntimeExports.jsx(LA,{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:C.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}}));/**
150
+ * @license
151
+ * Copyright 2017 Google LLC
152
+ *
153
+ * Licensed under the Apache License, Version 2.0 (the "License");
154
+ * you may not use this file except in compliance with the License.
155
+ * You may obtain a copy of the License at
156
+ *
157
+ * http://www.apache.org/licenses/LICENSE-2.0
158
+ *
159
+ * Unless required by applicable law or agreed to in writing, software
160
+ * distributed under the License is distributed on an "AS IS" BASIS,
161
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
162
+ * See the License for the specific language governing permissions and
163
+ * limitations under the License.
164
+ *//**
165
+ * @license
166
+ * Copyright 2017 Google LLC
167
+ *
168
+ * Licensed under the Apache License, Version 2.0 (the "License");
169
+ * you may not use this file except in compliance with the License.
170
+ * You may obtain a copy of the License at
171
+ *
172
+ * http://www.apache.org/licenses/LICENSE-2.0
173
+ *
174
+ * Unless required by applicable law or agreed to in writing, software
175
+ * distributed under the License is distributed on an "AS IS" BASIS,
176
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
177
+ * See the License for the specific language governing permissions and
178
+ * limitations under the License.
179
+ */const Y0=function(e){const t=[];let n=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);a<128?t[n++]=a:a<2048?(t[n++]=a>>6|192,t[n++]=a&63|128):(a&64512)===55296&&i+1<e.length&&(e.charCodeAt(i+1)&64512)===56320?(a=65536+((a&1023)<<10)+(e.charCodeAt(++i)&1023),t[n++]=a>>18|240,t[n++]=a>>12&63|128,t[n++]=a>>6&63|128,t[n++]=a&63|128):(t[n++]=a>>12|224,t[n++]=a>>6&63|128,t[n++]=a&63|128)}return t},rP=function(e){const t=[];let n=0,i=0;for(;n<e.length;){const a=e[n++];if(a<128)t[i++]=String.fromCharCode(a);else if(a>191&&a<224){const u=e[n++];t[i++]=String.fromCharCode((a&31)<<6|u&63)}else if(a>239&&a<365){const u=e[n++],f=e[n++],m=e[n++],y=((a&7)<<18|(u&63)<<12|(f&63)<<6|m&63)-65536;t[i++]=String.fromCharCode(55296+(y>>10)),t[i++]=String.fromCharCode(56320+(y&1023))}else{const u=e[n++],f=e[n++];t[i++]=String.fromCharCode((a&15)<<12|(u&63)<<6|f&63)}}return t.join("")},W0={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 n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let a=0;a<e.length;a+=3){const u=e[a],f=a+1<e.length,m=f?e[a+1]:0,y=a+2<e.length,w=y?e[a+2]:0,S=u>>2,R=(u&3)<<4|m>>4;let T=(m&15)<<2|w>>6,H=w&63;y||(H=64,f||(T=64)),i.push(n[S],n[R],n[T],n[H])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Y0(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):rP(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let a=0;a<e.length;){const u=n[e.charAt(a++)],m=a<e.length?n[e.charAt(a)]:0;++a;const w=a<e.length?n[e.charAt(a)]:64;++a;const R=a<e.length?n[e.charAt(a)]:64;if(++a,u==null||m==null||w==null||R==null)throw new iP;const T=u<<2|m>>4;if(i.push(T),w!==64){const H=m<<4&240|w>>2;if(i.push(H),R!==64){const F=w<<6&192|R;i.push(F)}}}return i},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 iP extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const sP=function(e){const t=Y0(e);return W0.encodeByteArray(t,!0)},U0=function(e){return sP(e).replace(/\./g,"")},aP=function(e){try{return W0.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
180
+ * @license
181
+ * Copyright 2022 Google LLC
182
+ *
183
+ * Licensed under the Apache License, Version 2.0 (the "License");
184
+ * you may not use this file except in compliance with the License.
185
+ * You may obtain a copy of the License at
186
+ *
187
+ * http://www.apache.org/licenses/LICENSE-2.0
188
+ *
189
+ * Unless required by applicable law or agreed to in writing, software
190
+ * distributed under the License is distributed on an "AS IS" BASIS,
191
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
192
+ * See the License for the specific language governing permissions and
193
+ * limitations under the License.
194
+ */function oP(){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.")}/**
195
+ * @license
196
+ * Copyright 2022 Google LLC
197
+ *
198
+ * Licensed under the Apache License, Version 2.0 (the "License");
199
+ * you may not use this file except in compliance with the License.
200
+ * You may obtain a copy of the License at
201
+ *
202
+ * http://www.apache.org/licenses/LICENSE-2.0
203
+ *
204
+ * Unless required by applicable law or agreed to in writing, software
205
+ * distributed under the License is distributed on an "AS IS" BASIS,
206
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207
+ * See the License for the specific language governing permissions and
208
+ * limitations under the License.
209
+ */const uP=()=>oP().__FIREBASE_DEFAULTS__,lP=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},cP=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&aP(e[1]);return t&&JSON.parse(t)},fP=()=>{try{return uP()||lP()||cP()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},q0=()=>{var e;return(e=fP())===null||e===void 0?void 0:e.config};/**
210
+ * @license
211
+ * Copyright 2017 Google LLC
212
+ *
213
+ * Licensed under the Apache License, Version 2.0 (the "License");
214
+ * you may not use this file except in compliance with the License.
215
+ * You may obtain a copy of the License at
216
+ *
217
+ * http://www.apache.org/licenses/LICENSE-2.0
218
+ *
219
+ * Unless required by applicable law or agreed to in writing, software
220
+ * distributed under the License is distributed on an "AS IS" BASIS,
221
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
222
+ * See the License for the specific language governing permissions and
223
+ * limitations under the License.
224
+ */class dP{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,i)=>{n?this.reject(n):this.resolve(i),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,i))}}}function z0(){try{return typeof indexedDB=="object"}catch{return!1}}function V0(){return new Promise((e,t)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(i);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(i),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var u;t(((u=a.error)===null||u===void 0?void 0:u.message)||"")}}catch(n){t(n)}})}function hP(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
225
+ * @license
226
+ * Copyright 2017 Google LLC
227
+ *
228
+ * Licensed under the Apache License, Version 2.0 (the "License");
229
+ * you may not use this file except in compliance with the License.
230
+ * You may obtain a copy of the License at
231
+ *
232
+ * http://www.apache.org/licenses/LICENSE-2.0
233
+ *
234
+ * Unless required by applicable law or agreed to in writing, software
235
+ * distributed under the License is distributed on an "AS IS" BASIS,
236
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
237
+ * See the License for the specific language governing permissions and
238
+ * limitations under the License.
239
+ */const pP="FirebaseError";class ca extends Error{constructor(t,n,i){super(n),this.code=t,this.customData=i,this.name=pP,Object.setPrototypeOf(this,ca.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,cc.prototype.create)}}class cc{constructor(t,n,i){this.service=t,this.serviceName=n,this.errors=i}create(t,...n){const i=n[0]||{},a=`${this.service}/${t}`,u=this.errors[t],f=u?gP(u,i):"Error",m=`${this.serviceName}: ${f} (${a}).`;return new ca(a,m,i)}}function gP(e,t){return e.replace(mP,(n,i)=>{const a=t[i];return a!=null?String(a):`<${i}?>`})}const mP=/\{\$([^}]+)}/g;function vd(e,t){if(e===t)return!0;const n=Object.keys(e),i=Object.keys(t);for(const a of n){if(!i.includes(a))return!1;const u=e[a],f=t[a];if(Cm(u)&&Cm(f)){if(!vd(u,f))return!1}else if(u!==f)return!1}for(const a of i)if(!n.includes(a))return!1;return!0}function Cm(e){return e!==null&&typeof e=="object"}/**
240
+ * @license
241
+ * Copyright 2021 Google LLC
242
+ *
243
+ * Licensed under the Apache License, Version 2.0 (the "License");
244
+ * you may not use this file except in compliance with the License.
245
+ * You may obtain a copy of the License at
246
+ *
247
+ * http://www.apache.org/licenses/LICENSE-2.0
248
+ *
249
+ * Unless required by applicable law or agreed to in writing, software
250
+ * distributed under the License is distributed on an "AS IS" BASIS,
251
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
252
+ * See the License for the specific language governing permissions and
253
+ * limitations under the License.
254
+ */function gh(e){return e&&e._delegate?e._delegate:e}class Ui{constructor(t,n,i){this.name=t,this.instanceFactory=n,this.type=i,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}}/**
255
+ * @license
256
+ * Copyright 2019 Google LLC
257
+ *
258
+ * Licensed under the Apache License, Version 2.0 (the "License");
259
+ * you may not use this file except in compliance with the License.
260
+ * You may obtain a copy of the License at
261
+ *
262
+ * http://www.apache.org/licenses/LICENSE-2.0
263
+ *
264
+ * Unless required by applicable law or agreed to in writing, software
265
+ * distributed under the License is distributed on an "AS IS" BASIS,
266
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
267
+ * See the License for the specific language governing permissions and
268
+ * limitations under the License.
269
+ */const cs="[DEFAULT]";/**
270
+ * @license
271
+ * Copyright 2019 Google LLC
272
+ *
273
+ * Licensed under the Apache License, Version 2.0 (the "License");
274
+ * you may not use this file except in compliance with the License.
275
+ * You may obtain a copy of the License at
276
+ *
277
+ * http://www.apache.org/licenses/LICENSE-2.0
278
+ *
279
+ * Unless required by applicable law or agreed to in writing, software
280
+ * distributed under the License is distributed on an "AS IS" BASIS,
281
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
282
+ * See the License for the specific language governing permissions and
283
+ * limitations under the License.
284
+ */class yP{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const i=new dP;if(this.instancesDeferred.set(n,i),this.isInitialized(n)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:n});a&&i.resolve(a)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const i=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),a=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(u){if(a)return null;throw u}else{if(a)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(bP(t))try{this.getOrInitializeService({instanceIdentifier:cs})}catch{}for(const[n,i]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(n);try{const u=this.getOrInitializeService({instanceIdentifier:a});i.resolve(u)}catch{}}}}clearInstance(t=cs){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(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=cs){return this.instances.has(t)}getOptions(t=cs){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,i=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const a=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const[u,f]of this.instancesDeferred.entries()){const m=this.normalizeInstanceIdentifier(u);i===m&&f.resolve(a)}return a}onInit(t,n){var i;const a=this.normalizeInstanceIdentifier(n),u=(i=this.onInitCallbacks.get(a))!==null&&i!==void 0?i:new Set;u.add(t),this.onInitCallbacks.set(a,u);const f=this.instances.get(a);return f&&t(f,a),()=>{u.delete(t)}}invokeOnInitCallbacks(t,n){const i=this.onInitCallbacks.get(n);if(i)for(const a of i)try{a(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:vP(t),options:n}),this.instances.set(t,i),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch{}return i||null}normalizeInstanceIdentifier(t=cs){return this.component?this.component.multipleInstances?t:cs:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function vP(e){return e===cs?void 0:e}function bP(e){return e.instantiationMode==="EAGER"}/**
285
+ * @license
286
+ * Copyright 2019 Google LLC
287
+ *
288
+ * Licensed under the Apache License, Version 2.0 (the "License");
289
+ * you may not use this file except in compliance with the License.
290
+ * You may obtain a copy of the License at
291
+ *
292
+ * http://www.apache.org/licenses/LICENSE-2.0
293
+ *
294
+ * Unless required by applicable law or agreed to in writing, software
295
+ * distributed under the License is distributed on an "AS IS" BASIS,
296
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
297
+ * See the License for the specific language governing permissions and
298
+ * limitations under the License.
299
+ */class xP{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.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 n=new yP(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
300
+ * @license
301
+ * Copyright 2017 Google LLC
302
+ *
303
+ * Licensed under the Apache License, Version 2.0 (the "License");
304
+ * you may not use this file except in compliance with the License.
305
+ * You may obtain a copy of the License at
306
+ *
307
+ * http://www.apache.org/licenses/LICENSE-2.0
308
+ *
309
+ * Unless required by applicable law or agreed to in writing, software
310
+ * distributed under the License is distributed on an "AS IS" BASIS,
311
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
312
+ * See the License for the specific language governing permissions and
313
+ * limitations under the License.
314
+ */var ht;(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"})(ht||(ht={}));const wP={debug:ht.DEBUG,verbose:ht.VERBOSE,info:ht.INFO,warn:ht.WARN,error:ht.ERROR,silent:ht.SILENT},_P=ht.INFO,SP={[ht.DEBUG]:"log",[ht.VERBOSE]:"log",[ht.INFO]:"info",[ht.WARN]:"warn",[ht.ERROR]:"error"},kP=(e,t,...n)=>{if(t<e.logLevel)return;const i=new Date().toISOString(),a=SP[t];if(a)console[a](`[${i}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class CP{constructor(t){this.name=t,this._logLevel=_P,this._logHandler=kP,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in ht))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?wP[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,ht.DEBUG,...t),this._logHandler(this,ht.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,ht.VERBOSE,...t),this._logHandler(this,ht.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,ht.INFO,...t),this._logHandler(this,ht.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,ht.WARN,...t),this._logHandler(this,ht.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,ht.ERROR,...t),this._logHandler(this,ht.ERROR,...t)}}const EP=(e,t)=>t.some(n=>e instanceof n);let Em,Dm;function DP(){return Em||(Em=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function TP(){return Dm||(Dm=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const G0=new WeakMap,bd=new WeakMap,K0=new WeakMap,Hf=new WeakMap,mh=new WeakMap;function OP(e){const t=new Promise((n,i)=>{const a=()=>{e.removeEventListener("success",u),e.removeEventListener("error",f)},u=()=>{n(gi(e.result)),a()},f=()=>{i(e.error),a()};e.addEventListener("success",u),e.addEventListener("error",f)});return t.then(n=>{n instanceof IDBCursor&&G0.set(n,e)}).catch(()=>{}),mh.set(t,e),t}function RP(e){if(bd.has(e))return;const t=new Promise((n,i)=>{const a=()=>{e.removeEventListener("complete",u),e.removeEventListener("error",f),e.removeEventListener("abort",f)},u=()=>{n(),a()},f=()=>{i(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",u),e.addEventListener("error",f),e.addEventListener("abort",f)});bd.set(e,t)}let xd={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return bd.get(e);if(t==="objectStoreNames")return e.objectStoreNames||K0.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return gi(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function AP(e){xd=e(xd)}function MP(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Yf(this),t,...n);return K0.set(i,t.sort?t.sort():[t]),gi(i)}:TP().includes(e)?function(...t){return e.apply(Yf(this),t),gi(G0.get(this))}:function(...t){return gi(e.apply(Yf(this),t))}}function PP(e){return typeof e=="function"?MP(e):(e instanceof IDBTransaction&&RP(e),EP(e,DP())?new Proxy(e,xd):e)}function gi(e){if(e instanceof IDBRequest)return OP(e);if(Hf.has(e))return Hf.get(e);const t=PP(e);return t!==e&&(Hf.set(e,t),mh.set(t,e)),t}const Yf=e=>mh.get(e);function fc(e,t,{blocked:n,upgrade:i,blocking:a,terminated:u}={}){const f=indexedDB.open(e,t),m=gi(f);return i&&f.addEventListener("upgradeneeded",y=>{i(gi(f.result),y.oldVersion,y.newVersion,gi(f.transaction),y)}),n&&f.addEventListener("blocked",y=>n(y.oldVersion,y.newVersion,y)),m.then(y=>{u&&y.addEventListener("close",()=>u()),a&&y.addEventListener("versionchange",w=>a(w.oldVersion,w.newVersion,w))}).catch(()=>{}),m}function Wf(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",i=>t(i.oldVersion,i)),gi(n).then(()=>{})}const IP=["get","getKey","getAll","getAllKeys","count"],LP=["put","add","delete","clear"],Uf=new Map;function Tm(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Uf.get(t))return Uf.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,a=LP.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(a||IP.includes(n)))return;const u=async function(f,...m){const y=this.transaction(f,a?"readwrite":"readonly");let w=y.store;return i&&(w=w.index(m.shift())),(await Promise.all([w[n](...m),a&&y.done]))[0]};return Uf.set(t,u),u}AP(e=>({...e,get:(t,n,i)=>Tm(t,n)||e.get(t,n,i),has:(t,n)=>!!Tm(t,n)||e.has(t,n)}));/**
315
+ * @license
316
+ * Copyright 2019 Google LLC
317
+ *
318
+ * Licensed under the Apache License, Version 2.0 (the "License");
319
+ * you may not use this file except in compliance with the License.
320
+ * You may obtain a copy of the License at
321
+ *
322
+ * http://www.apache.org/licenses/LICENSE-2.0
323
+ *
324
+ * Unless required by applicable law or agreed to in writing, software
325
+ * distributed under the License is distributed on an "AS IS" BASIS,
326
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
327
+ * See the License for the specific language governing permissions and
328
+ * limitations under the License.
329
+ */class NP{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(jP(n)){const i=n.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(n=>n).join(" ")}}function jP(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const wd="@firebase/app",Om="0.9.28";/**
330
+ * @license
331
+ * Copyright 2019 Google LLC
332
+ *
333
+ * Licensed under the Apache License, Version 2.0 (the "License");
334
+ * you may not use this file except in compliance with the License.
335
+ * You may obtain a copy of the License at
336
+ *
337
+ * http://www.apache.org/licenses/LICENSE-2.0
338
+ *
339
+ * Unless required by applicable law or agreed to in writing, software
340
+ * distributed under the License is distributed on an "AS IS" BASIS,
341
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
342
+ * See the License for the specific language governing permissions and
343
+ * limitations under the License.
344
+ */const ms=new CP("@firebase/app"),$P="@firebase/app-compat",FP="@firebase/analytics-compat",BP="@firebase/analytics",HP="@firebase/app-check-compat",YP="@firebase/app-check",WP="@firebase/auth",UP="@firebase/auth-compat",qP="@firebase/database",zP="@firebase/database-compat",VP="@firebase/functions",GP="@firebase/functions-compat",KP="@firebase/installations",XP="@firebase/installations-compat",ZP="@firebase/messaging",JP="@firebase/messaging-compat",QP="@firebase/performance",eI="@firebase/performance-compat",tI="@firebase/remote-config",nI="@firebase/remote-config-compat",rI="@firebase/storage",iI="@firebase/storage-compat",sI="@firebase/firestore",aI="@firebase/firestore-compat",oI="firebase";/**
345
+ * @license
346
+ * Copyright 2019 Google LLC
347
+ *
348
+ * Licensed under the Apache License, Version 2.0 (the "License");
349
+ * you may not use this file except in compliance with the License.
350
+ * You may obtain a copy of the License at
351
+ *
352
+ * http://www.apache.org/licenses/LICENSE-2.0
353
+ *
354
+ * Unless required by applicable law or agreed to in writing, software
355
+ * distributed under the License is distributed on an "AS IS" BASIS,
356
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
357
+ * See the License for the specific language governing permissions and
358
+ * limitations under the License.
359
+ */const _d="[DEFAULT]",uI={[wd]:"fire-core",[$P]:"fire-core-compat",[BP]:"fire-analytics",[FP]:"fire-analytics-compat",[YP]:"fire-app-check",[HP]:"fire-app-check-compat",[WP]:"fire-auth",[UP]:"fire-auth-compat",[qP]:"fire-rtdb",[zP]:"fire-rtdb-compat",[VP]:"fire-fn",[GP]:"fire-fn-compat",[KP]:"fire-iid",[XP]:"fire-iid-compat",[ZP]:"fire-fcm",[JP]:"fire-fcm-compat",[QP]:"fire-perf",[eI]:"fire-perf-compat",[tI]:"fire-rc",[nI]:"fire-rc-compat",[rI]:"fire-gcs",[iI]:"fire-gcs-compat",[sI]:"fire-fst",[aI]:"fire-fst-compat","fire-js":"fire-js",[oI]:"fire-js-all"};/**
360
+ * @license
361
+ * Copyright 2019 Google LLC
362
+ *
363
+ * Licensed under the Apache License, Version 2.0 (the "License");
364
+ * you may not use this file except in compliance with the License.
365
+ * You may obtain a copy of the License at
366
+ *
367
+ * http://www.apache.org/licenses/LICENSE-2.0
368
+ *
369
+ * Unless required by applicable law or agreed to in writing, software
370
+ * distributed under the License is distributed on an "AS IS" BASIS,
371
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
372
+ * See the License for the specific language governing permissions and
373
+ * limitations under the License.
374
+ */const pl=new Map,Sd=new Map;function lI(e,t){try{e.container.addComponent(t)}catch(n){ms.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ys(e){const t=e.name;if(Sd.has(t))return ms.debug(`There were multiple attempts to register component ${t}.`),!1;Sd.set(t,e);for(const n of pl.values())lI(n,e);return!0}function yh(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
375
+ * @license
376
+ * Copyright 2019 Google LLC
377
+ *
378
+ * Licensed under the Apache License, Version 2.0 (the "License");
379
+ * you may not use this file except in compliance with the License.
380
+ * You may obtain a copy of the License at
381
+ *
382
+ * http://www.apache.org/licenses/LICENSE-2.0
383
+ *
384
+ * Unless required by applicable law or agreed to in writing, software
385
+ * distributed under the License is distributed on an "AS IS" BASIS,
386
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
387
+ * See the License for the specific language governing permissions and
388
+ * limitations under the License.
389
+ */const cI={"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 cc("app","Firebase",cI);/**
390
+ * @license
391
+ * Copyright 2019 Google LLC
392
+ *
393
+ * Licensed under the Apache License, Version 2.0 (the "License");
394
+ * you may not use this file except in compliance with the License.
395
+ * You may obtain a copy of the License at
396
+ *
397
+ * http://www.apache.org/licenses/LICENSE-2.0
398
+ *
399
+ * Unless required by applicable law or agreed to in writing, software
400
+ * distributed under the License is distributed on an "AS IS" BASIS,
401
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
402
+ * See the License for the specific language governing permissions and
403
+ * limitations under the License.
404
+ */class fI{constructor(t,n,i){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new Ui("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 vh(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const i=Object.assign({name:_d,automaticDataCollectionEnabled:!1},t),a=i.name;if(typeof a!="string"||!a)throw Yi.create("bad-app-name",{appName:String(a)});if(n||(n=q0()),!n)throw Yi.create("no-options");const u=pl.get(a);if(u){if(vd(n,u.options)&&vd(i,u.config))return u;throw Yi.create("duplicate-app",{appName:a})}const f=new xP(a);for(const y of Sd.values())f.addComponent(y);const m=new fI(n,i,f);return pl.set(a,m),m}function dI(e=_d){const t=pl.get(e);if(!t&&e===_d&&q0())return vh();if(!t)throw Yi.create("no-app",{appName:e});return t}function Wi(e,t,n){var i;let a=(i=uI[e])!==null&&i!==void 0?i:e;n&&(a+=`-${n}`);const u=a.match(/\s|\//),f=t.match(/\s|\//);if(u||f){const m=[`Unable to register library "${a}" with version "${t}":`];u&&m.push(`library name "${a}" contains illegal characters (whitespace or "/")`),u&&f&&m.push("and"),f&&m.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ms.warn(m.join(" "));return}ys(new Ui(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}/**
405
+ * @license
406
+ * Copyright 2021 Google LLC
407
+ *
408
+ * Licensed under the Apache License, Version 2.0 (the "License");
409
+ * you may not use this file except in compliance with the License.
410
+ * You may obtain a copy of the License at
411
+ *
412
+ * http://www.apache.org/licenses/LICENSE-2.0
413
+ *
414
+ * Unless required by applicable law or agreed to in writing, software
415
+ * distributed under the License is distributed on an "AS IS" BASIS,
416
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
417
+ * See the License for the specific language governing permissions and
418
+ * limitations under the License.
419
+ */const hI="firebase-heartbeat-database",pI=1,vo="firebase-heartbeat-store";let qf=null;function X0(){return qf||(qf=fc(hI,pI,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(vo)}catch(n){console.warn(n)}}}}).catch(e=>{throw Yi.create("idb-open",{originalErrorMessage:e.message})})),qf}async function gI(e){try{const n=(await X0()).transaction(vo),i=await n.objectStore(vo).get(Z0(e));return await n.done,i}catch(t){if(t instanceof ca)ms.warn(t.message);else{const n=Yi.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});ms.warn(n.message)}}}async function Rm(e,t){try{const i=(await X0()).transaction(vo,"readwrite");await i.objectStore(vo).put(t,Z0(e)),await i.done}catch(n){if(n instanceof ca)ms.warn(n.message);else{const i=Yi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});ms.warn(i.message)}}}function Z0(e){return`${e.name}!${e.options.appId}`}/**
420
+ * @license
421
+ * Copyright 2021 Google LLC
422
+ *
423
+ * Licensed under the Apache License, Version 2.0 (the "License");
424
+ * you may not use this file except in compliance with the License.
425
+ * You may obtain a copy of the License at
426
+ *
427
+ * http://www.apache.org/licenses/LICENSE-2.0
428
+ *
429
+ * Unless required by applicable law or agreed to in writing, software
430
+ * distributed under the License is distributed on an "AS IS" BASIS,
431
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
432
+ * See the License for the specific language governing permissions and
433
+ * limitations under the License.
434
+ */const mI=1024,yI=30*24*60*60*1e3;class vI{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new xI(n),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){var t,n;const a=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),u=Am();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===u||this._heartbeatsCache.heartbeats.some(f=>f.date===u)))return this._heartbeatsCache.heartbeats.push({date:u,agent:a}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(f=>{const m=new Date(f.date).valueOf();return Date.now()-m<=yI}),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 n=Am(),{heartbeatsToSend:i,unsentEntries:a}=bI(this._heartbeatsCache.heartbeats),u=U0(JSON.stringify({version:2,heartbeats:i}));return this._heartbeatsCache.lastSentHeartbeatDate=n,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),u}}function Am(){return new Date().toISOString().substring(0,10)}function bI(e,t=mI){const n=[];let i=e.slice();for(const a of e){const u=n.find(f=>f.agent===a.agent);if(u){if(u.dates.push(a.date),Mm(n)>t){u.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),Mm(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class xI{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return z0()?V0().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await gI(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return Rm(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return Rm(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:[...a.heartbeats,...t.heartbeats]})}else return}}function Mm(e){return U0(JSON.stringify({version:2,heartbeats:e})).length}/**
435
+ * @license
436
+ * Copyright 2019 Google LLC
437
+ *
438
+ * Licensed under the Apache License, Version 2.0 (the "License");
439
+ * you may not use this file except in compliance with the License.
440
+ * You may obtain a copy of the License at
441
+ *
442
+ * http://www.apache.org/licenses/LICENSE-2.0
443
+ *
444
+ * Unless required by applicable law or agreed to in writing, software
445
+ * distributed under the License is distributed on an "AS IS" BASIS,
446
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
447
+ * See the License for the specific language governing permissions and
448
+ * limitations under the License.
449
+ */function wI(e){ys(new Ui("platform-logger",t=>new NP(t),"PRIVATE")),ys(new Ui("heartbeat",t=>new vI(t),"PRIVATE")),Wi(wd,Om,e),Wi(wd,Om,"esm2017"),Wi("fire-js","")}wI("");var _I="firebase",SI="10.8.1";/**
450
+ * @license
451
+ * Copyright 2020 Google LLC
452
+ *
453
+ * Licensed under the Apache License, Version 2.0 (the "License");
454
+ * you may not use this file except in compliance with the License.
455
+ * You may obtain a copy of the License at
456
+ *
457
+ * http://www.apache.org/licenses/LICENSE-2.0
458
+ *
459
+ * Unless required by applicable law or agreed to in writing, software
460
+ * distributed under the License is distributed on an "AS IS" BASIS,
461
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
462
+ * See the License for the specific language governing permissions and
463
+ * limitations under the License.
464
+ */Wi(_I,SI,"app");const J0="@firebase/installations",bh="0.6.5";/**
465
+ * @license
466
+ * Copyright 2019 Google LLC
467
+ *
468
+ * Licensed under the Apache License, Version 2.0 (the "License");
469
+ * you may not use this file except in compliance with the License.
470
+ * You may obtain a copy of the License at
471
+ *
472
+ * http://www.apache.org/licenses/LICENSE-2.0
473
+ *
474
+ * Unless required by applicable law or agreed to in writing, software
475
+ * distributed under the License is distributed on an "AS IS" BASIS,
476
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
477
+ * See the License for the specific language governing permissions and
478
+ * limitations under the License.
479
+ */const Q0=1e4,ev=`w:${bh}`,tv="FIS_v2",kI="https://firebaseinstallations.googleapis.com/v1",CI=60*60*1e3,EI="installations",DI="Installations";/**
480
+ * @license
481
+ * Copyright 2019 Google LLC
482
+ *
483
+ * Licensed under the Apache License, Version 2.0 (the "License");
484
+ * you may not use this file except in compliance with the License.
485
+ * You may obtain a copy of the License at
486
+ *
487
+ * http://www.apache.org/licenses/LICENSE-2.0
488
+ *
489
+ * Unless required by applicable law or agreed to in writing, software
490
+ * distributed under the License is distributed on an "AS IS" BASIS,
491
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
492
+ * See the License for the specific language governing permissions and
493
+ * limitations under the License.
494
+ */const TI={"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."},vs=new cc(EI,DI,TI);function nv(e){return e instanceof ca&&e.code.includes("request-failed")}/**
495
+ * @license
496
+ * Copyright 2019 Google LLC
497
+ *
498
+ * Licensed under the Apache License, Version 2.0 (the "License");
499
+ * you may not use this file except in compliance with the License.
500
+ * You may obtain a copy of the License at
501
+ *
502
+ * http://www.apache.org/licenses/LICENSE-2.0
503
+ *
504
+ * Unless required by applicable law or agreed to in writing, software
505
+ * distributed under the License is distributed on an "AS IS" BASIS,
506
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
507
+ * See the License for the specific language governing permissions and
508
+ * limitations under the License.
509
+ */function rv({projectId:e}){return`${kI}/projects/${e}/installations`}function iv(e){return{token:e.token,requestStatus:2,expiresIn:RI(e.expiresIn),creationTime:Date.now()}}async function sv(e,t){const i=(await t.json()).error;return vs.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function av({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function OI(e,{refreshToken:t}){const n=av(e);return n.append("Authorization",AI(t)),n}async function ov(e){const t=await e();return t.status>=500&&t.status<600?e():t}function RI(e){return Number(e.replace("s","000"))}function AI(e){return`${tv} ${e}`}/**
510
+ * @license
511
+ * Copyright 2019 Google LLC
512
+ *
513
+ * Licensed under the Apache License, Version 2.0 (the "License");
514
+ * you may not use this file except in compliance with the License.
515
+ * You may obtain a copy of the License at
516
+ *
517
+ * http://www.apache.org/licenses/LICENSE-2.0
518
+ *
519
+ * Unless required by applicable law or agreed to in writing, software
520
+ * distributed under the License is distributed on an "AS IS" BASIS,
521
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
522
+ * See the License for the specific language governing permissions and
523
+ * limitations under the License.
524
+ */async function MI({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=rv(e),a=av(e),u=t.getImmediate({optional:!0});if(u){const w=await u.getHeartbeatsHeader();w&&a.append("x-firebase-client",w)}const f={fid:n,authVersion:tv,appId:e.appId,sdkVersion:ev},m={method:"POST",headers:a,body:JSON.stringify(f)},y=await ov(()=>fetch(i,m));if(y.ok){const w=await y.json();return{fid:w.fid||n,registrationStatus:2,refreshToken:w.refreshToken,authToken:iv(w.authToken)}}else throw await sv("Create Installation",y)}/**
525
+ * @license
526
+ * Copyright 2019 Google LLC
527
+ *
528
+ * Licensed under the Apache License, Version 2.0 (the "License");
529
+ * you may not use this file except in compliance with the License.
530
+ * You may obtain a copy of the License at
531
+ *
532
+ * http://www.apache.org/licenses/LICENSE-2.0
533
+ *
534
+ * Unless required by applicable law or agreed to in writing, software
535
+ * distributed under the License is distributed on an "AS IS" BASIS,
536
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
537
+ * See the License for the specific language governing permissions and
538
+ * limitations under the License.
539
+ */function uv(e){return new Promise(t=>{setTimeout(t,e)})}/**
540
+ * @license
541
+ * Copyright 2019 Google LLC
542
+ *
543
+ * Licensed under the Apache License, Version 2.0 (the "License");
544
+ * you may not use this file except in compliance with the License.
545
+ * You may obtain a copy of the License at
546
+ *
547
+ * http://www.apache.org/licenses/LICENSE-2.0
548
+ *
549
+ * Unless required by applicable law or agreed to in writing, software
550
+ * distributed under the License is distributed on an "AS IS" BASIS,
551
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
552
+ * See the License for the specific language governing permissions and
553
+ * limitations under the License.
554
+ */function PI(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
555
+ * @license
556
+ * Copyright 2019 Google LLC
557
+ *
558
+ * Licensed under the Apache License, Version 2.0 (the "License");
559
+ * you may not use this file except in compliance with the License.
560
+ * You may obtain a copy of the License at
561
+ *
562
+ * http://www.apache.org/licenses/LICENSE-2.0
563
+ *
564
+ * Unless required by applicable law or agreed to in writing, software
565
+ * distributed under the License is distributed on an "AS IS" BASIS,
566
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567
+ * See the License for the specific language governing permissions and
568
+ * limitations under the License.
569
+ */const II=/^[cdef][\w-]{21}$/,kd="";function LI(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=NI(e);return II.test(n)?n:kd}catch{return kd}}function NI(e){return PI(e).substr(0,22)}/**
570
+ * @license
571
+ * Copyright 2019 Google LLC
572
+ *
573
+ * Licensed under the Apache License, Version 2.0 (the "License");
574
+ * you may not use this file except in compliance with the License.
575
+ * You may obtain a copy of the License at
576
+ *
577
+ * http://www.apache.org/licenses/LICENSE-2.0
578
+ *
579
+ * Unless required by applicable law or agreed to in writing, software
580
+ * distributed under the License is distributed on an "AS IS" BASIS,
581
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
582
+ * See the License for the specific language governing permissions and
583
+ * limitations under the License.
584
+ */function dc(e){return`${e.appName}!${e.appId}`}/**
585
+ * @license
586
+ * Copyright 2019 Google LLC
587
+ *
588
+ * Licensed under the Apache License, Version 2.0 (the "License");
589
+ * you may not use this file except in compliance with the License.
590
+ * You may obtain a copy of the License at
591
+ *
592
+ * http://www.apache.org/licenses/LICENSE-2.0
593
+ *
594
+ * Unless required by applicable law or agreed to in writing, software
595
+ * distributed under the License is distributed on an "AS IS" BASIS,
596
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
597
+ * See the License for the specific language governing permissions and
598
+ * limitations under the License.
599
+ */const lv=new Map;function cv(e,t){const n=dc(e);fv(n,t),jI(n,t)}function fv(e,t){const n=lv.get(e);if(n)for(const i of n)i(t)}function jI(e,t){const n=$I();n&&n.postMessage({key:e,fid:t}),FI()}let hs=null;function $I(){return!hs&&"BroadcastChannel"in self&&(hs=new BroadcastChannel("[Firebase] FID Change"),hs.onmessage=e=>{fv(e.data.key,e.data.fid)}),hs}function FI(){lv.size===0&&hs&&(hs.close(),hs=null)}/**
600
+ * @license
601
+ * Copyright 2019 Google LLC
602
+ *
603
+ * Licensed under the Apache License, Version 2.0 (the "License");
604
+ * you may not use this file except in compliance with the License.
605
+ * You may obtain a copy of the License at
606
+ *
607
+ * http://www.apache.org/licenses/LICENSE-2.0
608
+ *
609
+ * Unless required by applicable law or agreed to in writing, software
610
+ * distributed under the License is distributed on an "AS IS" BASIS,
611
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
612
+ * See the License for the specific language governing permissions and
613
+ * limitations under the License.
614
+ */const BI="firebase-installations-database",HI=1,bs="firebase-installations-store";let zf=null;function xh(){return zf||(zf=fc(BI,HI,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(bs)}}})),zf}async function gl(e,t){const n=dc(e),a=(await xh()).transaction(bs,"readwrite"),u=a.objectStore(bs),f=await u.get(n);return await u.put(t,n),await a.done,(!f||f.fid!==t.fid)&&cv(e,t.fid),t}async function dv(e){const t=dc(e),i=(await xh()).transaction(bs,"readwrite");await i.objectStore(bs).delete(t),await i.done}async function hc(e,t){const n=dc(e),a=(await xh()).transaction(bs,"readwrite"),u=a.objectStore(bs),f=await u.get(n),m=t(f);return m===void 0?await u.delete(n):await u.put(m,n),await a.done,m&&(!f||f.fid!==m.fid)&&cv(e,m.fid),m}/**
615
+ * @license
616
+ * Copyright 2019 Google LLC
617
+ *
618
+ * Licensed under the Apache License, Version 2.0 (the "License");
619
+ * you may not use this file except in compliance with the License.
620
+ * You may obtain a copy of the License at
621
+ *
622
+ * http://www.apache.org/licenses/LICENSE-2.0
623
+ *
624
+ * Unless required by applicable law or agreed to in writing, software
625
+ * distributed under the License is distributed on an "AS IS" BASIS,
626
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
627
+ * See the License for the specific language governing permissions and
628
+ * limitations under the License.
629
+ */async function wh(e){let t;const n=await hc(e.appConfig,i=>{const a=YI(i),u=WI(e,a);return t=u.registrationPromise,u.installationEntry});return n.fid===kd?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function YI(e){const t=e||{fid:LI(),registrationStatus:0};return hv(t)}function WI(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const a=Promise.reject(vs.create("app-offline"));return{installationEntry:t,registrationPromise:a}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=UI(e,n);return{installationEntry:n,registrationPromise:i}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:qI(e)}:{installationEntry:t}}async function UI(e,t){try{const n=await MI(e,t);return gl(e.appConfig,n)}catch(n){throw nv(n)&&n.customData.serverCode===409?await dv(e.appConfig):await gl(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function qI(e){let t=await Pm(e.appConfig);for(;t.registrationStatus===1;)await uv(100),t=await Pm(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:i}=await wh(e);return i||n}return t}function Pm(e){return hc(e,t=>{if(!t)throw vs.create("installation-not-found");return hv(t)})}function hv(e){return zI(e)?{fid:e.fid,registrationStatus:0}:e}function zI(e){return e.registrationStatus===1&&e.registrationTime+Q0<Date.now()}/**
630
+ * @license
631
+ * Copyright 2019 Google LLC
632
+ *
633
+ * Licensed under the Apache License, Version 2.0 (the "License");
634
+ * you may not use this file except in compliance with the License.
635
+ * You may obtain a copy of the License at
636
+ *
637
+ * http://www.apache.org/licenses/LICENSE-2.0
638
+ *
639
+ * Unless required by applicable law or agreed to in writing, software
640
+ * distributed under the License is distributed on an "AS IS" BASIS,
641
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
642
+ * See the License for the specific language governing permissions and
643
+ * limitations under the License.
644
+ */async function VI({appConfig:e,heartbeatServiceProvider:t},n){const i=GI(e,n),a=OI(e,n),u=t.getImmediate({optional:!0});if(u){const w=await u.getHeartbeatsHeader();w&&a.append("x-firebase-client",w)}const f={installation:{sdkVersion:ev,appId:e.appId}},m={method:"POST",headers:a,body:JSON.stringify(f)},y=await ov(()=>fetch(i,m));if(y.ok){const w=await y.json();return iv(w)}else throw await sv("Generate Auth Token",y)}function GI(e,{fid:t}){return`${rv(e)}/${t}/authTokens:generate`}/**
645
+ * @license
646
+ * Copyright 2019 Google LLC
647
+ *
648
+ * Licensed under the Apache License, Version 2.0 (the "License");
649
+ * you may not use this file except in compliance with the License.
650
+ * You may obtain a copy of the License at
651
+ *
652
+ * http://www.apache.org/licenses/LICENSE-2.0
653
+ *
654
+ * Unless required by applicable law or agreed to in writing, software
655
+ * distributed under the License is distributed on an "AS IS" BASIS,
656
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
657
+ * See the License for the specific language governing permissions and
658
+ * limitations under the License.
659
+ */async function _h(e,t=!1){let n;const i=await hc(e.appConfig,u=>{if(!pv(u))throw vs.create("not-registered");const f=u.authToken;if(!t&&ZI(f))return u;if(f.requestStatus===1)return n=KI(e,t),u;{if(!navigator.onLine)throw vs.create("app-offline");const m=QI(u);return n=XI(e,m),m}});return n?await n:i.authToken}async function KI(e,t){let n=await Im(e.appConfig);for(;n.authToken.requestStatus===1;)await uv(100),n=await Im(e.appConfig);const i=n.authToken;return i.requestStatus===0?_h(e,t):i}function Im(e){return hc(e,t=>{if(!pv(t))throw vs.create("not-registered");const n=t.authToken;return eL(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function XI(e,t){try{const n=await VI(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return await gl(e.appConfig,i),n}catch(n){if(nv(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await dv(e.appConfig);else{const i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await gl(e.appConfig,i)}throw n}}function pv(e){return e!==void 0&&e.registrationStatus===2}function ZI(e){return e.requestStatus===2&&!JI(e)}function JI(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+CI}function QI(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function eL(e){return e.requestStatus===1&&e.requestTime+Q0<Date.now()}/**
660
+ * @license
661
+ * Copyright 2019 Google LLC
662
+ *
663
+ * Licensed under the Apache License, Version 2.0 (the "License");
664
+ * you may not use this file except in compliance with the License.
665
+ * You may obtain a copy of the License at
666
+ *
667
+ * http://www.apache.org/licenses/LICENSE-2.0
668
+ *
669
+ * Unless required by applicable law or agreed to in writing, software
670
+ * distributed under the License is distributed on an "AS IS" BASIS,
671
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
672
+ * See the License for the specific language governing permissions and
673
+ * limitations under the License.
674
+ */async function tL(e){const t=e,{installationEntry:n,registrationPromise:i}=await wh(t);return i?i.catch(console.error):_h(t).catch(console.error),n.fid}/**
675
+ * @license
676
+ * Copyright 2019 Google LLC
677
+ *
678
+ * Licensed under the Apache License, Version 2.0 (the "License");
679
+ * you may not use this file except in compliance with the License.
680
+ * You may obtain a copy of the License at
681
+ *
682
+ * http://www.apache.org/licenses/LICENSE-2.0
683
+ *
684
+ * Unless required by applicable law or agreed to in writing, software
685
+ * distributed under the License is distributed on an "AS IS" BASIS,
686
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
687
+ * See the License for the specific language governing permissions and
688
+ * limitations under the License.
689
+ */async function nL(e,t=!1){const n=e;return await rL(n),(await _h(n,t)).token}async function rL(e){const{registrationPromise:t}=await wh(e);t&&await t}/**
690
+ * @license
691
+ * Copyright 2019 Google LLC
692
+ *
693
+ * Licensed under the Apache License, Version 2.0 (the "License");
694
+ * you may not use this file except in compliance with the License.
695
+ * You may obtain a copy of the License at
696
+ *
697
+ * http://www.apache.org/licenses/LICENSE-2.0
698
+ *
699
+ * Unless required by applicable law or agreed to in writing, software
700
+ * distributed under the License is distributed on an "AS IS" BASIS,
701
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
702
+ * See the License for the specific language governing permissions and
703
+ * limitations under the License.
704
+ */function iL(e){if(!e||!e.options)throw Vf("App Configuration");if(!e.name)throw Vf("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Vf(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Vf(e){return vs.create("missing-app-config-values",{valueName:e})}/**
705
+ * @license
706
+ * Copyright 2020 Google LLC
707
+ *
708
+ * Licensed under the Apache License, Version 2.0 (the "License");
709
+ * you may not use this file except in compliance with the License.
710
+ * You may obtain a copy of the License at
711
+ *
712
+ * http://www.apache.org/licenses/LICENSE-2.0
713
+ *
714
+ * Unless required by applicable law or agreed to in writing, software
715
+ * distributed under the License is distributed on an "AS IS" BASIS,
716
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
717
+ * See the License for the specific language governing permissions and
718
+ * limitations under the License.
719
+ */const gv="installations",sL="installations-internal",aL=e=>{const t=e.getProvider("app").getImmediate(),n=iL(t),i=yh(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},oL=e=>{const t=e.getProvider("app").getImmediate(),n=yh(t,gv).getImmediate();return{getId:()=>tL(n),getToken:a=>nL(n,a)}};function uL(){ys(new Ui(gv,aL,"PUBLIC")),ys(new Ui(sL,oL,"PRIVATE"))}uL();Wi(J0,bh);Wi(J0,bh,"esm2017");/**
720
+ * @license
721
+ * Copyright 2019 Google LLC
722
+ *
723
+ * Licensed under the Apache License, Version 2.0 (the "License");
724
+ * you may not use this file except in compliance with the License.
725
+ * You may obtain a copy of the License at
726
+ *
727
+ * http://www.apache.org/licenses/LICENSE-2.0
728
+ *
729
+ * Unless required by applicable law or agreed to in writing, software
730
+ * distributed under the License is distributed on an "AS IS" BASIS,
731
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
732
+ * See the License for the specific language governing permissions and
733
+ * limitations under the License.
734
+ */const lL="/firebase-messaging-sw.js",cL="/firebase-cloud-messaging-push-scope",mv="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",fL="https://fcmregistrations.googleapis.com/v1",yv="google.c.a.c_id",dL="google.c.a.c_l",hL="google.c.a.ts",pL="google.c.a.e";var Lm;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Lm||(Lm={}));/**
735
+ * @license
736
+ * Copyright 2018 Google LLC
737
+ *
738
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
739
+ * in compliance with the License. You may obtain a copy of the License at
740
+ *
741
+ * http://www.apache.org/licenses/LICENSE-2.0
742
+ *
743
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
744
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
745
+ * or implied. See the License for the specific language governing permissions and limitations under
746
+ * the License.
747
+ */var bo;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(bo||(bo={}));/**
748
+ * @license
749
+ * Copyright 2017 Google LLC
750
+ *
751
+ * Licensed under the Apache License, Version 2.0 (the "License");
752
+ * you may not use this file except in compliance with the License.
753
+ * You may obtain a copy of the License at
754
+ *
755
+ * http://www.apache.org/licenses/LICENSE-2.0
756
+ *
757
+ * Unless required by applicable law or agreed to in writing, software
758
+ * distributed under the License is distributed on an "AS IS" BASIS,
759
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
760
+ * See the License for the specific language governing permissions and
761
+ * limitations under the License.
762
+ */function li(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function gL(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),a=new Uint8Array(i.length);for(let u=0;u<i.length;++u)a[u]=i.charCodeAt(u);return a}/**
763
+ * @license
764
+ * Copyright 2019 Google LLC
765
+ *
766
+ * Licensed under the Apache License, Version 2.0 (the "License");
767
+ * you may not use this file except in compliance with the License.
768
+ * You may obtain a copy of the License at
769
+ *
770
+ * http://www.apache.org/licenses/LICENSE-2.0
771
+ *
772
+ * Unless required by applicable law or agreed to in writing, software
773
+ * distributed under the License is distributed on an "AS IS" BASIS,
774
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
775
+ * See the License for the specific language governing permissions and
776
+ * limitations under the License.
777
+ */const Gf="fcm_token_details_db",mL=5,Nm="fcm_token_object_Store";async function yL(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(u=>u.name).includes(Gf))return null;let t=null;return(await fc(Gf,mL,{upgrade:async(i,a,u,f)=>{var m;if(a<2||!i.objectStoreNames.contains(Nm))return;const y=f.objectStore(Nm),w=await y.index("fcmSenderId").get(e);if(await y.clear(),!!w){if(a===2){const S=w;if(!S.auth||!S.p256dh||!S.endpoint)return;t={token:S.fcmToken,createTime:(m=S.createTime)!==null&&m!==void 0?m:Date.now(),subscriptionOptions:{auth:S.auth,p256dh:S.p256dh,endpoint:S.endpoint,swScope:S.swScope,vapidKey:typeof S.vapidKey=="string"?S.vapidKey:li(S.vapidKey)}}}else if(a===3){const S=w;t={token:S.fcmToken,createTime:S.createTime,subscriptionOptions:{auth:li(S.auth),p256dh:li(S.p256dh),endpoint:S.endpoint,swScope:S.swScope,vapidKey:li(S.vapidKey)}}}else if(a===4){const S=w;t={token:S.fcmToken,createTime:S.createTime,subscriptionOptions:{auth:li(S.auth),p256dh:li(S.p256dh),endpoint:S.endpoint,swScope:S.swScope,vapidKey:li(S.vapidKey)}}}}}})).close(),await Wf(Gf),await Wf("fcm_vapid_details_db"),await Wf("undefined"),vL(t)?t:null}function vL(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}/**
778
+ * @license
779
+ * Copyright 2019 Google LLC
780
+ *
781
+ * Licensed under the Apache License, Version 2.0 (the "License");
782
+ * you may not use this file except in compliance with the License.
783
+ * You may obtain a copy of the License at
784
+ *
785
+ * http://www.apache.org/licenses/LICENSE-2.0
786
+ *
787
+ * Unless required by applicable law or agreed to in writing, software
788
+ * distributed under the License is distributed on an "AS IS" BASIS,
789
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
790
+ * See the License for the specific language governing permissions and
791
+ * limitations under the License.
792
+ */const bL="firebase-messaging-database",xL=1,xs="firebase-messaging-store";let Kf=null;function Sh(){return Kf||(Kf=fc(bL,xL,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(xs)}}})),Kf}async function vv(e){const t=Ch(e),i=await(await Sh()).transaction(xs).objectStore(xs).get(t);if(i)return i;{const a=await yL(e.appConfig.senderId);if(a)return await kh(e,a),a}}async function kh(e,t){const n=Ch(e),a=(await Sh()).transaction(xs,"readwrite");return await a.objectStore(xs).put(t,n),await a.done,t}async function wL(e){const t=Ch(e),i=(await Sh()).transaction(xs,"readwrite");await i.objectStore(xs).delete(t),await i.done}function Ch({appConfig:e}){return e.appId}/**
793
+ * @license
794
+ * Copyright 2017 Google LLC
795
+ *
796
+ * Licensed under the Apache License, Version 2.0 (the "License");
797
+ * you may not use this file except in compliance with the License.
798
+ * You may obtain a copy of the License at
799
+ *
800
+ * http://www.apache.org/licenses/LICENSE-2.0
801
+ *
802
+ * Unless required by applicable law or agreed to in writing, software
803
+ * distributed under the License is distributed on an "AS IS" BASIS,
804
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
805
+ * See the License for the specific language governing permissions and
806
+ * limitations under the License.
807
+ */const _L={"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."},rn=new cc("messaging","Messaging",_L);/**
808
+ * @license
809
+ * Copyright 2019 Google LLC
810
+ *
811
+ * Licensed under the Apache License, Version 2.0 (the "License");
812
+ * you may not use this file except in compliance with the License.
813
+ * You may obtain a copy of the License at
814
+ *
815
+ * http://www.apache.org/licenses/LICENSE-2.0
816
+ *
817
+ * Unless required by applicable law or agreed to in writing, software
818
+ * distributed under the License is distributed on an "AS IS" BASIS,
819
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
820
+ * See the License for the specific language governing permissions and
821
+ * limitations under the License.
822
+ */async function SL(e,t){const n=await Dh(e),i=xv(t),a={method:"POST",headers:n,body:JSON.stringify(i)};let u;try{u=await(await fetch(Eh(e.appConfig),a)).json()}catch(f){throw rn.create("token-subscribe-failed",{errorInfo:f==null?void 0:f.toString()})}if(u.error){const f=u.error.message;throw rn.create("token-subscribe-failed",{errorInfo:f})}if(!u.token)throw rn.create("token-subscribe-no-token");return u.token}async function kL(e,t){const n=await Dh(e),i=xv(t.subscriptionOptions),a={method:"PATCH",headers:n,body:JSON.stringify(i)};let u;try{u=await(await fetch(`${Eh(e.appConfig)}/${t.token}`,a)).json()}catch(f){throw rn.create("token-update-failed",{errorInfo:f==null?void 0:f.toString()})}if(u.error){const f=u.error.message;throw rn.create("token-update-failed",{errorInfo:f})}if(!u.token)throw rn.create("token-update-no-token");return u.token}async function bv(e,t){const i={method:"DELETE",headers:await Dh(e)};try{const u=await(await fetch(`${Eh(e.appConfig)}/${t}`,i)).json();if(u.error){const f=u.error.message;throw rn.create("token-unsubscribe-failed",{errorInfo:f})}}catch(a){throw rn.create("token-unsubscribe-failed",{errorInfo:a==null?void 0:a.toString()})}}function Eh({projectId:e}){return`${fL}/projects/${e}/registrations`}async function Dh({appConfig:e,installations:t}){const n=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 ${n}`})}function xv({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const a={web:{endpoint:n,auth:t,p256dh:e}};return i!==mv&&(a.web.applicationPubKey=i),a}/**
823
+ * @license
824
+ * Copyright 2019 Google LLC
825
+ *
826
+ * Licensed under the Apache License, Version 2.0 (the "License");
827
+ * you may not use this file except in compliance with the License.
828
+ * You may obtain a copy of the License at
829
+ *
830
+ * http://www.apache.org/licenses/LICENSE-2.0
831
+ *
832
+ * Unless required by applicable law or agreed to in writing, software
833
+ * distributed under the License is distributed on an "AS IS" BASIS,
834
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
835
+ * See the License for the specific language governing permissions and
836
+ * limitations under the License.
837
+ */const CL=7*24*60*60*1e3;async function EL(e){const t=await OL(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:li(t.getKey("auth")),p256dh:li(t.getKey("p256dh"))},i=await vv(e.firebaseDependencies);if(i){if(RL(i.subscriptionOptions,n))return Date.now()>=i.createTime+CL?TL(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await bv(e.firebaseDependencies,i.token)}catch(a){console.warn(a)}return jm(e.firebaseDependencies,n)}else return jm(e.firebaseDependencies,n)}async function DL(e){const t=await vv(e.firebaseDependencies);t&&(await bv(e.firebaseDependencies,t.token),await wL(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function TL(e,t){try{const n=await kL(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await kh(e.firebaseDependencies,i),n}catch(n){throw await DL(e),n}}async function jm(e,t){const i={token:await SL(e,t),createTime:Date.now(),subscriptionOptions:t};return await kh(e,i),i.token}async function OL(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:gL(t)})}function RL(e,t){const n=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,a=t.auth===e.auth,u=t.p256dh===e.p256dh;return n&&i&&a&&u}/**
838
+ * @license
839
+ * Copyright 2020 Google LLC
840
+ *
841
+ * Licensed under the Apache License, Version 2.0 (the "License");
842
+ * you may not use this file except in compliance with the License.
843
+ * You may obtain a copy of the License at
844
+ *
845
+ * http://www.apache.org/licenses/LICENSE-2.0
846
+ *
847
+ * Unless required by applicable law or agreed to in writing, software
848
+ * distributed under the License is distributed on an "AS IS" BASIS,
849
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
850
+ * See the License for the specific language governing permissions and
851
+ * limitations under the License.
852
+ */function $m(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return AL(t,e),ML(t,e),PL(t,e),t}function AL(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const a=t.notification.image;a&&(e.notification.image=a);const u=t.notification.icon;u&&(e.notification.icon=u)}function ML(e,t){t.data&&(e.data=t.data)}function PL(e,t){var n,i,a,u,f;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const m=(a=(i=t.fcmOptions)===null||i===void 0?void 0:i.link)!==null&&a!==void 0?a:(u=t.notification)===null||u===void 0?void 0:u.click_action;m&&(e.fcmOptions.link=m);const y=(f=t.fcmOptions)===null||f===void 0?void 0:f.analytics_label;y&&(e.fcmOptions.analyticsLabel=y)}/**
853
+ * @license
854
+ * Copyright 2019 Google LLC
855
+ *
856
+ * Licensed under the Apache License, Version 2.0 (the "License");
857
+ * you may not use this file except in compliance with the License.
858
+ * You may obtain a copy of the License at
859
+ *
860
+ * http://www.apache.org/licenses/LICENSE-2.0
861
+ *
862
+ * Unless required by applicable law or agreed to in writing, software
863
+ * distributed under the License is distributed on an "AS IS" BASIS,
864
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
865
+ * See the License for the specific language governing permissions and
866
+ * limitations under the License.
867
+ */function IL(e){return typeof e=="object"&&!!e&&yv in e}/**
868
+ * @license
869
+ * Copyright 2019 Google LLC
870
+ *
871
+ * Licensed under the Apache License, Version 2.0 (the "License");
872
+ * you may not use this file except in compliance with the License.
873
+ * You may obtain a copy of the License at
874
+ *
875
+ * http://www.apache.org/licenses/LICENSE-2.0
876
+ *
877
+ * Unless required by applicable law or agreed to in writing, software
878
+ * distributed under the License is distributed on an "AS IS" BASIS,
879
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
880
+ * See the License for the specific language governing permissions and
881
+ * limitations under the License.
882
+ */wv("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");wv("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function wv(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e.charAt(i)),i<t.length&&n.push(t.charAt(i));return n.join("")}/**
883
+ * @license
884
+ * Copyright 2019 Google LLC
885
+ *
886
+ * Licensed under the Apache License, Version 2.0 (the "License");
887
+ * you may not use this file except in compliance with the License.
888
+ * You may obtain a copy of the License at
889
+ *
890
+ * http://www.apache.org/licenses/LICENSE-2.0
891
+ *
892
+ * Unless required by applicable law or agreed to in writing, software
893
+ * distributed under the License is distributed on an "AS IS" BASIS,
894
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
895
+ * See the License for the specific language governing permissions and
896
+ * limitations under the License.
897
+ */function LL(e){if(!e||!e.options)throw Xf("App Configuration Object");if(!e.name)throw Xf("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const i of t)if(!n[i])throw Xf(i);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Xf(e){return rn.create("missing-app-config-values",{valueName:e})}/**
898
+ * @license
899
+ * Copyright 2020 Google LLC
900
+ *
901
+ * Licensed under the Apache License, Version 2.0 (the "License");
902
+ * you may not use this file except in compliance with the License.
903
+ * You may obtain a copy of the License at
904
+ *
905
+ * http://www.apache.org/licenses/LICENSE-2.0
906
+ *
907
+ * Unless required by applicable law or agreed to in writing, software
908
+ * distributed under the License is distributed on an "AS IS" BASIS,
909
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
910
+ * See the License for the specific language governing permissions and
911
+ * limitations under the License.
912
+ */class NL{constructor(t,n,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const a=LL(t);this.firebaseDependencies={app:t,appConfig:a,installations:n,analyticsProvider:i}}_delete(){return Promise.resolve()}}/**
913
+ * @license
914
+ * Copyright 2020 Google LLC
915
+ *
916
+ * Licensed under the Apache License, Version 2.0 (the "License");
917
+ * you may not use this file except in compliance with the License.
918
+ * You may obtain a copy of the License at
919
+ *
920
+ * http://www.apache.org/licenses/LICENSE-2.0
921
+ *
922
+ * Unless required by applicable law or agreed to in writing, software
923
+ * distributed under the License is distributed on an "AS IS" BASIS,
924
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
925
+ * See the License for the specific language governing permissions and
926
+ * limitations under the License.
927
+ */async function jL(e){try{e.swRegistration=await navigator.serviceWorker.register(lL,{scope:cL}),e.swRegistration.update().catch(()=>{})}catch(t){throw rn.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
928
+ * @license
929
+ * Copyright 2020 Google LLC
930
+ *
931
+ * Licensed under the Apache License, Version 2.0 (the "License");
932
+ * you may not use this file except in compliance with the License.
933
+ * You may obtain a copy of the License at
934
+ *
935
+ * http://www.apache.org/licenses/LICENSE-2.0
936
+ *
937
+ * Unless required by applicable law or agreed to in writing, software
938
+ * distributed under the License is distributed on an "AS IS" BASIS,
939
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
940
+ * See the License for the specific language governing permissions and
941
+ * limitations under the License.
942
+ */async function $L(e,t){if(!t&&!e.swRegistration&&await jL(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw rn.create("invalid-sw-registration");e.swRegistration=t}}/**
943
+ * @license
944
+ * Copyright 2020 Google LLC
945
+ *
946
+ * Licensed under the Apache License, Version 2.0 (the "License");
947
+ * you may not use this file except in compliance with the License.
948
+ * You may obtain a copy of the License at
949
+ *
950
+ * http://www.apache.org/licenses/LICENSE-2.0
951
+ *
952
+ * Unless required by applicable law or agreed to in writing, software
953
+ * distributed under the License is distributed on an "AS IS" BASIS,
954
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
955
+ * See the License for the specific language governing permissions and
956
+ * limitations under the License.
957
+ */async function FL(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=mv)}/**
958
+ * @license
959
+ * Copyright 2020 Google LLC
960
+ *
961
+ * Licensed under the Apache License, Version 2.0 (the "License");
962
+ * you may not use this file except in compliance with the License.
963
+ * You may obtain a copy of the License at
964
+ *
965
+ * http://www.apache.org/licenses/LICENSE-2.0
966
+ *
967
+ * Unless required by applicable law or agreed to in writing, software
968
+ * distributed under the License is distributed on an "AS IS" BASIS,
969
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
970
+ * See the License for the specific language governing permissions and
971
+ * limitations under the License.
972
+ */async function _v(e,t){if(!navigator)throw rn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw rn.create("permission-blocked");return await FL(e,t==null?void 0:t.vapidKey),await $L(e,t==null?void 0:t.serviceWorkerRegistration),EL(e)}/**
973
+ * @license
974
+ * Copyright 2019 Google LLC
975
+ *
976
+ * Licensed under the Apache License, Version 2.0 (the "License");
977
+ * you may not use this file except in compliance with the License.
978
+ * You may obtain a copy of the License at
979
+ *
980
+ * http://www.apache.org/licenses/LICENSE-2.0
981
+ *
982
+ * Unless required by applicable law or agreed to in writing, software
983
+ * distributed under the License is distributed on an "AS IS" BASIS,
984
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
985
+ * See the License for the specific language governing permissions and
986
+ * limitations under the License.
987
+ */async function BL(e,t,n){const i=HL(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[yv],message_name:n[dL],message_time:n[hL],message_device_time:Math.floor(Date.now()/1e3)})}function HL(e){switch(e){case bo.NOTIFICATION_CLICKED:return"notification_open";case bo.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
988
+ * @license
989
+ * Copyright 2017 Google LLC
990
+ *
991
+ * Licensed under the Apache License, Version 2.0 (the "License");
992
+ * you may not use this file except in compliance with the License.
993
+ * You may obtain a copy of the License at
994
+ *
995
+ * http://www.apache.org/licenses/LICENSE-2.0
996
+ *
997
+ * Unless required by applicable law or agreed to in writing, software
998
+ * distributed under the License is distributed on an "AS IS" BASIS,
999
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1000
+ * See the License for the specific language governing permissions and
1001
+ * limitations under the License.
1002
+ */async function YL(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===bo.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler($m(n)):e.onMessageHandler.next($m(n)));const i=n.data;IL(i)&&i[pL]==="1"&&await BL(e,n.messageType,i)}const Fm="@firebase/messaging",Bm="0.12.6";/**
1003
+ * @license
1004
+ * Copyright 2020 Google LLC
1005
+ *
1006
+ * Licensed under the Apache License, Version 2.0 (the "License");
1007
+ * you may not use this file except in compliance with the License.
1008
+ * You may obtain a copy of the License at
1009
+ *
1010
+ * http://www.apache.org/licenses/LICENSE-2.0
1011
+ *
1012
+ * Unless required by applicable law or agreed to in writing, software
1013
+ * distributed under the License is distributed on an "AS IS" BASIS,
1014
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1015
+ * See the License for the specific language governing permissions and
1016
+ * limitations under the License.
1017
+ */const WL=e=>{const t=new NL(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>YL(t,n)),t},UL=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:i=>_v(t,i)}};function qL(){ys(new Ui("messaging",WL,"PUBLIC")),ys(new Ui("messaging-internal",UL,"PRIVATE")),Wi(Fm,Bm),Wi(Fm,Bm,"esm2017")}/**
1018
+ * @license
1019
+ * Copyright 2020 Google LLC
1020
+ *
1021
+ * Licensed under the Apache License, Version 2.0 (the "License");
1022
+ * you may not use this file except in compliance with the License.
1023
+ * You may obtain a copy of the License at
1024
+ *
1025
+ * http://www.apache.org/licenses/LICENSE-2.0
1026
+ *
1027
+ * Unless required by applicable law or agreed to in writing, software
1028
+ * distributed under the License is distributed on an "AS IS" BASIS,
1029
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1030
+ * See the License for the specific language governing permissions and
1031
+ * limitations under the License.
1032
+ */async function zL(){try{await V0()}catch{return!1}return typeof window<"u"&&z0()&&hP()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
1033
+ * @license
1034
+ * Copyright 2020 Google LLC
1035
+ *
1036
+ * Licensed under the Apache License, Version 2.0 (the "License");
1037
+ * you may not use this file except in compliance with the License.
1038
+ * You may obtain a copy of the License at
1039
+ *
1040
+ * http://www.apache.org/licenses/LICENSE-2.0
1041
+ *
1042
+ * Unless required by applicable law or agreed to in writing, software
1043
+ * distributed under the License is distributed on an "AS IS" BASIS,
1044
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1045
+ * See the License for the specific language governing permissions and
1046
+ * limitations under the License.
1047
+ */function VL(e,t){if(!navigator)throw rn.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
1048
+ * @license
1049
+ * Copyright 2017 Google LLC
1050
+ *
1051
+ * Licensed under the Apache License, Version 2.0 (the "License");
1052
+ * you may not use this file except in compliance with the License.
1053
+ * You may obtain a copy of the License at
1054
+ *
1055
+ * http://www.apache.org/licenses/LICENSE-2.0
1056
+ *
1057
+ * Unless required by applicable law or agreed to in writing, software
1058
+ * distributed under the License is distributed on an "AS IS" BASIS,
1059
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1060
+ * See the License for the specific language governing permissions and
1061
+ * limitations under the License.
1062
+ */function Sv(e=dI()){return zL().then(t=>{if(!t)throw rn.create("unsupported-browser")},t=>{throw rn.create("indexed-db-unsupported")}),yh(gh(e),"messaging").getImmediate()}async function GL(e,t){return e=gh(e),_v(e,t)}function KL(e,t){return e=gh(e),VL(e,t)}qL();const XL=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 n=Sv(vh({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));GL(n,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async i=>{var a,u;if(i){console.log("current token for client: ",i);try{const f="/notification-management/api/v1/notifications/registrations",m=e.baseUrl+f;await C.axios.post(m,{deviceToken:i},{withCredentials:!0})}catch(f){console.log(f),C.pushError(((u=(a=f.response)==null?void 0:a.data)==null?void 0:u.errorMessage)||"Have error when get notification list")}}else console.log("No registration token available. Request permission to generate one.")}).catch(i=>{console.log("An error occurred while retrieving token. ",i)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},ZL=new BroadcastChannel("my-channel");ZL.onmessage=e=>{console.log("Broadcast chanel message",e)};const JL=e=>new Promise(t=>{const n=Sv(vh({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));KL(n,i=>{console.log("payload",i),t(i)})}),ls={"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"},QL=["granted","denied"],eN=e=>{const[t,n]=C.reactExports.useState(!1),i=()=>{Notification.requestPermission(function(u){u==="granted"&&XL(e),QL.includes(u)&&n(!0)})},a=()=>{n(!0)};return C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:t?"":C.jsxRuntimeExports.jsx("div",{className:ls["subscription-diaglog"],children:C.jsxRuntimeExports.jsxs("div",{className:ls["subscription-container"],children:[C.jsxRuntimeExports.jsx("h4",{className:ls["subscription-title"],children:"Notification"}),C.jsxRuntimeExports.jsx("p",{className:ls["subscription-text"],children:"Option to receive notifications about the latest information. You can turn them off at any time."}),C.jsxRuntimeExports.jsxs("div",{className:ls["subscription-btn__container"],children:[C.jsxRuntimeExports.jsx("button",{className:ls["btn-cancel"],onClick:a,children:"Not now"}),C.jsxRuntimeExports.jsx("button",{className:ls["btn-success"],onClick:i,children:"Turn on"})]})]})})})},zu={"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"},tN=e=>{const[t,n]=C.reactExports.useState({userName:"",message:"",context:""}),{setNotiData:i}=C.reactExports.useContext(na);function a(){return C.jsxRuntimeExports.jsx("div",{className:zu["notification-massage_container"],children:C.jsxRuntimeExports.jsxs("div",{className:zu["notification-massage_content"],children:[C.jsxRuntimeExports.jsx("h6",{className:zu["notification-name"],children:t==null?void 0:t.userName}),C.jsxRuntimeExports.jsxs("div",{className:zu["notification-message_service"],children:[C.jsxRuntimeExports.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),C.jsxRuntimeExports.jsx("span",{children:t==null?void 0:t.context})]})]})})}return C.reactExports.useEffect(()=>{t&&Notification.permission==="granted"&&t.userName&&t.message&&t.context&&C.notify(C.jsxRuntimeExports.jsx(a,{}))},[t]),JL(e).then(u=>{var f,m,y;console.log(u),n({userName:(f=u==null?void 0:u.data)==null?void 0:f.userName,message:(m=u==null?void 0:u.data)==null?void 0:m.message,context:(y=u==null?void 0:u.data)==null?void 0:y.context}),i(w=>{var S;return{...w,unread:{...w.unread,total:((S=w.unread)==null?void 0:S.total)+1}}})}).catch(u=>console.log("failed: ",u)),C.jsxRuntimeExports.jsx("div",{children:"Notification"in window&&Notification.permission==="default"?C.jsxRuntimeExports.jsx(eN,{...e}):""})},kv=({baseUrl:e,notiPath:t,setNotiData:n})=>async()=>{const u=e+(t||"/notification-management/api/v1/notifications"),f=await C.axios.get(u,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0}),m=await C.axios.get(u,{params:{filter:{notificationFilterType:"unread"}},withCredentials:!0});Promise.all([f,m]).then(y=>{var w,S,R,T;console.log("result: "+y),n({all:{rows:(w=y[0].data)==null?void 0:w.rows,total:(S=y[0].data)==null?void 0:S.total},unread:{rows:(R=y[1].data)==null?void 0:R.rows,total:(T=y[1].data)==null?void 0:T.total}})})},nN=({baseUrl:e,notiPath:t})=>{var R,T,H,F;const{setShowModalFalse:n}=C.reactExports.useContext(na),{notidata:i,setNotiData:a}=C.reactExports.useContext(na);console.log(i);const[u,f]=C.reactExports.useState("all"),m=kv({baseUrl:e,notiPath:t,setNotiData:a}),y=async()=>{var I,Z;try{const oe=e+(t||"/notification-management/api/v1/notifications");await C.axios.put(oe,{withCredentials:!0})}catch(Y){console.log(Y),C.pushError(((Z=(I=Y.response)==null?void 0:I.data)==null?void 0:Z.errorMessage)||"Have error when get notification list")}await m()},w=async(I,Z)=>{var Y,oe;try{const fe=t||`/notification-management/api/v1/notifications/${I}`,ue=e+fe;await C.axios.put(ue,{isRead:Z},{withCredentials:!0})}catch(fe){C.pushError(((oe=(Y=fe.response)==null?void 0:Y.data)==null?void 0:oe.errorMessage)||"Have error when get notification list")}await m()},S=[{id:"all",tabTitle:`All (${((R=i==null?void 0:i.all)==null?void 0:R.total)||0})`,children:C.jsxRuntimeExports.jsx(Sg,{notidata:((T=i==null?void 0:i.all)==null?void 0:T.rows)||[],handleUpdateRead:w,handleUpdateReadAll:y})},{id:"unread",tabTitle:`Unread (${((H=i==null?void 0:i.unread)==null?void 0:H.total)||0})`,children:C.jsxRuntimeExports.jsx(Sg,{notidata:((F=i==null?void 0:i.unread)==null?void 0:F.rows)||[],handleUpdateRead:w,handleUpdateReadAll:y})}];return C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:C.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:C.jsxRuntimeExports.jsxs("div",{className:"list-content",children:[C.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[C.jsxRuntimeExports.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),C.jsxRuntimeExports.jsx("button",{onClick:n,children:C.jsxRuntimeExports.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.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"})})})]}),C.jsxRuntimeExports.jsx(PS,{tabs:S,setCurrentTab:f,currentTab:u})]})})})};function rN({primaryColor:e="#009d4f",baseUrl:t,notiPath:n}){var w;const{isOpen:i,toggleOpen:a}=C.reactExports.useContext(na),{notidata:u,setNotiData:f}=C.reactExports.useContext(na),m=kv({baseUrl:t,notiPath:n,setNotiData:f}),y=async()=>{var S,R;try{await m()}catch(T){C.pushError(((R=(S=T.response)==null?void 0:S.data)==null?void 0:R.errorMessage)||"Have error when get notification list")}};return C.reactExports.useEffect(()=>{y()},[]),C.jsxRuntimeExports.jsxs("div",{children:[C.jsxRuntimeExports.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:a,style:{cursor:"pointer"},children:[C.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"}),C.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"})]}),(u==null?void 0:u.unread)&&(u==null?void 0:u.unread.total)!=0&&C.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"18px",background:`${C.color.dangerDark}`,width:"13px",height:"13px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"8px"},className:"notification-badge",children:(w=u==null?void 0:u.unread)==null?void 0:w.total}),!i&&C.jsxRuntimeExports.jsx(nN,{baseUrl:t,notiPath:n})]})}const iN=`.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}
1063
+ `,sN=`.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}
1064
+ `,aN=`: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:65%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px}.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}
1065
+ `,oN=`._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}
1066
+ `,uN=`._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}
1067
+ `;function lN(e){return C.jsxRuntimeExports.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[C.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[C.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),C.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"}),C.jsxRuntimeExports.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),C.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"}),C.jsxRuntimeExports.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),C.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"}),C.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"})]}),C.jsxRuntimeExports.jsx("defs",{children:C.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16865_28134",children:C.jsxRuntimeExports.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function cN(e){return C.jsxRuntimeExports.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[C.jsxRuntimeExports.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[C.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),C.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),C.jsxRuntimeExports.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),C.jsxRuntimeExports.jsx("defs",{children:C.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16886_62505",children:C.jsxRuntimeExports.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function Cv({logo:e,user:t,baseUrl:n,notiPath:i,style:a,classNames:u="",customColors:f,notiprops:m}){const y=e||"/public/assets/icons/logo-header.png",w={...a,color:(f==null?void 0:f.color)||"black",backgroundColor:(f==null?void 0:f.bgColor)||"black"},[S,R]=C.reactExports.useState(!1),T=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return C.jsxRuntimeExports.jsxs(C.ShadowDomWrapper,{styles:[iN,sN,aN,oN,uN],style:{zIndex:1202},children:[C.jsxRuntimeExports.jsx("nav",{className:`navbar ${u}`,style:f?w:a,children:C.jsxRuntimeExports.jsxs("div",{className:"navbar-container",children:[C.jsxRuntimeExports.jsx("div",{className:"logo-container",children:C.jsxRuntimeExports.jsx("img",{src:y,alt:"logo-header"})}),C.jsxRuntimeExports.jsxs("div",{className:"right-side-container",children:[C.jsxRuntimeExports.jsx("span",{children:C.jsxRuntimeExports.jsxs(ND,{children:[C.jsxRuntimeExports.jsx(tN,{baseUrl:m.baseUrl,path:m.path,apiKey:m.apiKey,authDomain:m.authDomain,projectId:m.projectId,storageBucket:m.storageBucket,messagingSenderId:m.messagingSenderId,appId:m.appId,measurementId:m.measurementId,vapidKey:m.vapidKey}),C.jsxRuntimeExports.jsx(rN,{primaryColor:f==null?void 0:f.primaryColor,baseUrl:n,notiPath:i})]})}),C.jsxRuntimeExports.jsx("span",{className:"cursor-pointer",children:C.jsxRuntimeExports.jsx(MS,{primaryColor:f==null?void 0:f.primaryColor})}),C.jsxRuntimeExports.jsx(fN,{primaryColor:f==null?void 0:f.primaryColor}),C.jsxRuntimeExports.jsxs("div",{className:"userContainer",children:[C.jsxRuntimeExports.jsx(dN,{primaryColor:f==null?void 0:f.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,userName:t==null?void 0:t.firstName,setShowConfirmModal:R}),C.jsxRuntimeExports.jsx("p",{className:"userFullName",children:`${(t==null?void 0:t.firstName)||"Unknown"} ${(t==null?void 0:t.lastName)||"User"}`})]})]})]})}),C.jsxRuntimeExports.jsx(C.LogoutConfirmModal,{isOpen:S,onClose:()=>R(!1),onConfirm:T})]})}function fN({primaryColor:e="#009d4f"}){var m;const[t,n]=C.reactExports.useState(!1),i=C.reactExports.useRef(null),a=[{value:md.en,element:C.jsxRuntimeExports.jsx(lN,{})},{value:md.de,element:C.jsxRuntimeExports.jsx(cN,{})}],{language:u,setLanguage:f}=ZM();return C.reactExports.useEffect(()=>{const y=w=>{i.current&&!i.current.contains(w.target)&&n(!1)};return document.addEventListener("click",y,!0),()=>{document.removeEventListener("click",y,!0)}},[i]),C.jsxRuntimeExports.jsxs("div",{className:"languageDropdownContainer",style:{position:"relative"},children:[C.jsxRuntimeExports.jsxs("div",{className:"languageDropdown",onClick:()=>{n(!t)},ref:i,children:[(m=a.find(y=>y.value==u))==null?void 0:m.element,C.jsxRuntimeExports.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.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"})})]}),C.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:a.filter(y=>y.value!==u).map(y=>C.jsxRuntimeExports.jsx("div",{className:"languageItem",style:{width:"100px",padding:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=e,w.currentTarget.style.transition="background-color 0.3s ease-in-out"},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#fafafa",w.currentTarget.style.transition="background-color 0.3s ease-out"},onClick:()=>{f(y.value),localStorage.setItem("language",y.value),Vt.changeLanguage(y.value),n(!1),window.location.reload()},children:y.element}))})]})}function dN({avatarUrl:e,userName:t,setShowConfirmModal:n,primaryColor:i="#009d4f"}){const[a,u]=C.reactExports.useState(!1),f=C.reactExports.useRef(null),m=C.reactExports.useRef(null),[y,w]=C.reactExports.useState(!1),[S,R]=C.reactExports.useState(!1),T={backgroundColor:y?i:"transparent"},H={backgroundColor:S?i:"transparent"};return C.reactExports.useEffect(()=>{const F=I=>{f.current&&!f.current.contains(I.target)&&u(!1),m.current&&!m.current.contains(I.target)&&u(!1)};return document.addEventListener("click",F,!0),()=>{document.removeEventListener("click",F,!0)}},[f]),C.jsxRuntimeExports.jsx(C.jsxRuntimeExports.Fragment,{children:C.jsxRuntimeExports.jsxs("div",{style:{position:"relative"},children:[e?C.jsxRuntimeExports.jsx("img",{onClick:()=>u(!a),ref:f,alt:"user avatar",className:"userAvatar",src:e}):C.jsxRuntimeExports.jsx("div",{onClick:()=>u(!a),ref:f,className:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""}),C.jsxRuntimeExports.jsx("div",{style:{display:a?"block":"none"},className:"avartarDropdownMenu",ref:m,children:C.jsxRuntimeExports.jsxs("ul",{children:[C.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),style:H,className:"avatar-dropdown-item",children:"Profile"}),C.jsxRuntimeExports.jsx("li",{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),style:T,onClick:()=>n(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}{const e=C.s(Cv,{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=T0;exports.TopBar=Cv;exports.getUseHasPermission=D0;