@ukpc-lib/react 0.2.26 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.2.26",
4
+ "version": "0.2.27",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-ea3fddce.cjs");const e=require("../index-04dc6603.cjs");exports.TopBar=e.TopBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-ea3fddce.cjs");const e=require("../index-c66f53fe.cjs");exports.TopBar=e.TopBar;
@@ -1,5 +1,5 @@
1
1
  import "../index-a16031d2.js";
2
- import { T as a } from "../index-aff1e7a4.js";
2
+ import { T as a } from "../index-5b201dc6.js";
3
3
  export {
4
4
  a as TopBar
5
5
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-ea3fddce.cjs");const e=require("../index-04dc6603.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-ea3fddce.cjs");const e=require("../index-c66f53fe.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
@@ -1,5 +1,5 @@
1
1
  import "../index-a16031d2.js";
2
- import { H as o, g as r } from "../index-aff1e7a4.js";
2
+ import { H as o, g as r } from "../index-5b201dc6.js";
3
3
  export {
4
4
  o as HasPermission,
5
5
  r as getUseHasPermission
@@ -2701,8 +2701,24 @@ const KT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2701
2701
  default: ge
2702
2702
  }, Symbol.toStringTag, { value: "Module" })), XT = ({ notification: e, handleUpdateRead: t }) => {
2703
2703
  const n = (i) => {
2704
- const a = ge(), u = ge(i), c = a.diff(u, "days");
2705
- return c === 0 ? "Today" : c === 1 ? "Yesterday" : c >= 2 && c <= 7 ? `Last ${c} days` : c === 8 || c === 9 || c === 10 ? "1 week ago" : c >= 11 && c <= 14 ? "2 weeks ago" : u.format("MMMM DD, YYYY");
2704
+ const a = ge(), u = ge(i), c = a.diff(u, "days"), m = a.diff(u, "minutes"), y = a.diff(u, "months"), x = a.diff(u, "years");
2705
+ if (m < 1)
2706
+ return "Just now";
2707
+ if (c === 0) {
2708
+ if (m <= 60)
2709
+ return `${m} minutes ago`;
2710
+ const S = Math.floor(m / 60);
2711
+ return `${S} hour${S > 1 ? "s" : ""} ago`;
2712
+ }
2713
+ if (c === 1)
2714
+ return "Yesterday";
2715
+ if (c >= 2 && c <= 7)
2716
+ return `${c} days ago`;
2717
+ if (y === 0 || y === 1) {
2718
+ const S = Math.ceil(c / 7);
2719
+ return `${S} week${S > 1 ? "s" : ""} ago`;
2720
+ }
2721
+ return y < 12 ? `${Math.floor(y / 4)} months ago` : x === 1 ? "1 year ago" : "Over 1 year ago";
2706
2722
  };
2707
2723
  return /* @__PURE__ */ G.jsxs(
2708
2724
  "div",
@@ -20958,20 +20974,20 @@ function wN({
20958
20974
  baseUrl: t,
20959
20975
  notiPath: n
20960
20976
  }) {
20961
- var x;
20977
+ var x, S;
20962
20978
  const { isOpen: i, toggleOpen: a } = se.useContext(ua), { notidata: u, setNotiData: c } = se.useContext(ua), m = Rv({ baseUrl: t, notiPath: n, setNotiData: c }), y = async () => {
20963
- var S, E;
20979
+ var E, T;
20964
20980
  try {
20965
20981
  await m();
20966
- } catch (T) {
20982
+ } catch (B) {
20967
20983
  ul(
20968
- ((E = (S = T.response) == null ? void 0 : S.data) == null ? void 0 : E.errorMessage) || "Have error when get notification list"
20984
+ ((T = (E = B.response) == null ? void 0 : E.data) == null ? void 0 : T.errorMessage) || "Have error when get notification list"
20969
20985
  );
20970
20986
  }
20971
20987
  };
20972
20988
  return se.useEffect(() => {
20973
20989
  y();
20974
- }, []), /* @__PURE__ */ G.jsxs("div", { children: [
20990
+ }, [u]), /* @__PURE__ */ G.jsxs("div", { children: [
20975
20991
  /* @__PURE__ */ G.jsxs(
20976
20992
  "svg",
20977
20993
  {
@@ -21013,17 +21029,17 @@ function wN({
21013
21029
  {
21014
21030
  style: {
21015
21031
  position: "absolute",
21016
- top: "18px",
21032
+ top: "14px",
21017
21033
  background: `${Pd.dangerDark}`,
21018
- width: "13px",
21019
- height: "13px",
21034
+ width: "18px",
21035
+ height: "18px",
21020
21036
  border: "1px solid #fff",
21021
21037
  borderRadius: "50%",
21022
21038
  color: "#fff",
21023
- fontSize: "8px"
21039
+ fontSize: "12px"
21024
21040
  },
21025
21041
  className: "notification-badge",
21026
- children: (x = u == null ? void 0 : u.unread) == null ? void 0 : x.total
21042
+ children: ((x = u == null ? void 0 : u.unread) == null ? void 0 : x.total) > 9 ? "9+" : `${(S = u == null ? void 0 : u.unread) == null ? void 0 : S.total}`
21027
21043
  }
21028
21044
  ),
21029
21045
  !i && /* @__PURE__ */ G.jsx(bN, { baseUrl: t, notiPath: n })
@@ -21031,7 +21047,7 @@ function wN({
21031
21047
  }
21032
21048
  const xN = `.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}
21033
21049
  `, _N = `.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}
21034
- `, SN = `: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}
21050
+ `, SN = `: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:62%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
21035
21051
  `, kN = `._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}
21036
21052
  `, CN = `._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}
21037
21053
  `;
@@ -7,7 +7,7 @@ var Ym;function pe(){return Ym.apply(null,arguments)}function IS(e){Ym=e}functio
7
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
8
  Arguments: `+Array.prototype.slice.call(i).join("")+`
9
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
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"),m=a.diff(u,"minutes"),y=a.diff(u,"months"),w=a.diff(u,"years");if(m<1)return"Just now";if(f===0){if(m<=60)return`${m} minutes ago`;const S=Math.floor(m/60);return`${S} hour${S>1?"s":""} ago`}if(f===1)return"Yesterday";if(f>=2&&f<=7)return`${f} days ago`;if(y===0||y===1){const S=Math.ceil(f/7);return`${S} week${S>1?"s":""} ago`}return y<12?`${Math.floor(y/4)} months ago`:w===1?"1 year ago":"Over 1 year ago"};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
11
  * react-is.production.min.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1059,9 +1059,9 @@ function print() { __p += __j.call(arguments, '') }
1059
1059
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1060
1060
  * See the License for the specific language governing permissions and
1061
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}
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,S;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 R,T;try{await m()}catch(H){C.pushError(((T=(R=H.response)==null?void 0:R.data)==null?void 0:T.errorMessage)||"Have error when get notification list")}};return C.reactExports.useEffect(()=>{y()},[u]),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:"14px",background:`${C.color.dangerDark}`,width:"18px",height:"18px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px"},className:"notification-badge",children:((w=u==null?void 0:u.unread)==null?void 0:w.total)>9?"9+":`${(S=u==null?void 0:u.unread)==null?void 0:S.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
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}
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:62%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
1065
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
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
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;