@fattureincloud/fic-design-system 0.19.36 → 0.19.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{faCircleNotch as e,faExpandAlt as n,faChevronRight as t,faChevronLeft as r,faCircle as o,faEllipsisH as i,faGripVertical as a,faTimes as l}from"@fortawesome/pro-regular-svg-icons";import*as c from"react";import s,{useMemo as u,forwardRef as d,useRef as p,useState as f,useEffect as h,useCallback as m,Component as g,createElement as y,createRef as v,useImperativeHandle as b,useReducer as x,Fragment as w,isValidElement as k,useLayoutEffect as S,createContext as C,useContext as E,Children as O,PureComponent as $,cloneElement as P}from"react";import D,{css as T,useTheme as A,keyframes as _,createGlobalStyle as M,ThemeProvider as j}from"styled-components";import{FontAwesomeIcon as N}from"@fortawesome/react-fontawesome";import R,{createPortal as I,findDOMNode as F}from"react-dom";import{CSSTransition as L}from"react-transition-group";import{usePopper as z,Popper as B,Manager as H,Reference as W}from"react-popper";import{faTimes as U,faChevronDown as Y,faCheck as V,faMinus as G,faExclamationCircle as q,faExclamationTriangle as K,faInfoCircle as X,faCheckCircle as Q,faTimesCircle as Z,faCaretDown as J,faCircleNotch as ee,faSpinnerThird as ne,faEllipsisH as te,faCaretRight as re,faXmark as oe,faInfoSquare as ie,faAngleRight as ae,faPencil as le,faPlus as ce,faSortNumericDown as se,faTrashAlt as ue,faBackward as de,faRotateLeft as pe,faChevronRight as fe,faArrowDown as he,faCog as me}from"@fortawesome/pro-solid-svg-icons";import{faTimes as ge,faSearch as ye,faPlus as ve,faChevronDown as be,faAngleUp as xe,faAngleDown as we,faAngleLeft as ke,faAngleRight as Se,faArrowLeft as Ce,faExpandAlt as Ee,faCompressAlt as Oe,faGripVertical as $e,faCheck as Pe,faTimesCircle as De,faCog as Te,faEllipsisH as Ae}from"@fortawesome/pro-light-svg-icons";import{useKey as _e,useMount as Me,useLatest as je,useMeasure as Ne,useDebounce as Re}from"react-use";import Ie,{components as Fe}from"react-select";import Le from"react-select/async";import ze from"react-select/async-creatable";import Be from"react-select/creatable";import{faCheckCircle as He,faTimesCircle as We}from"@fortawesome/free-regular-svg-icons";import{faUpload as Ue,faSort as Ye,faSortDown as Ve,faSortUp as Ge,faRocket as qe,faGhost as Ke,faAddressBook as Xe,faAnalytics as Qe,faBadge as Ze,faBolt as Je,faBooks as en,faBox as nn,faCalendarDays as tn,faChartNetwork as rn,faComments as on,faCreditCard as an,faDownload as ln,faFileAlt as cn,faFile as sn,faPaintBrush as un,faGift as dn,faHandsUsd as pn,faLayerGroup as fn,faMicrochipAi as hn,faMoneyBillWave as mn,faPaintBrushAlt as gn,faPuzzlePiece as yn,faScrewdriverWrench as vn,faSparkles as bn,faUserFriends as xn,faWarehouseFull as wn,faCog as kn}from"@fortawesome/pro-duotone-svg-icons";import{isEqual as Sn,debounce as Cn,cloneDeep as En,find as On,filter as $n,includes as Pn,merge as Dn,property as Tn}from"lodash";import{useRowSelect as An,useFilters as _n,useGlobalFilter as Mn,useSortBy as jn,usePagination as Nn,useFlexLayout as Rn,useTable as In}from"react-table";import Fn from"lodash/range";import{ToastContainer as Ln,toast as zn}from"react-toastify";import Bn from"react-modal";import{library as Hn}from"@fortawesome/fontawesome-svg-core";import{faCaretRight as Wn}from"@fortawesome/free-solid-svg-icons";var Un=function(e,n){return Un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Un(e,n)};function Yn(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Un(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Vn=function(){return Vn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Vn.apply(this,arguments)};function Gn(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function qn(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}c((r=r.apply(e,n||[])).next())}))}function Kn(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function Xn(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function Qn(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function Zn(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Jn,et,nt,tt={"2xs":"0.625em",xs:".75em",xl:"1.5em","2xl":"2em",sm:".875em",lg:"1.33em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},rt=function(e){var n=e.children,t=Gn(e,["children"]);return s.createElement(ot,Vn({},t),n)},ot=D.div(Jn||(Jn=Zn(["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"],["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"])),(function(e){var n=e.backgroundColor,t=e.color,r=e.theme;return n||r.components.iconBackground[t]||"transparent"}),2,(function(e){var n=e.size;return tt[n]}),2,(function(e){var n=e.size;return tt[n]})),it={900:"#064763",800:"#08648B",700:"#0A79A8",600:"#0B8AC0",500:"#0D97D5",400:"#4DB4E0",300:"#7DC8E8",200:"#A4D8EF",100:"#C6E7F5",50:"#E4F3FA"},at={black:{8:"rgba(51, 51, 51, 0.08)",16:"rgba(51, 51, 51, 0.16)",48:"rgba(51, 51, 51, 0.48)",80:"rgba(51, 51, 51, 0.8)",100:"#333333"},white:{8:"rgba(255, 255, 255, 0.08)",16:"rgba(255, 255, 255, 0.16)",48:"rgba(255, 255, 255, 0.48)",80:"rgba(255, 255, 255, 0.8)",100:"#FFFFFF"},grey:{900:"#22282B",800:"#384248",700:"#5A676D",600:"#65747B",500:"#6F7E86",400:"#7F8F94",300:"#A8B3B8",200:"#C4CBCF",100:"#EBEDEE",50:"#FAFAFA"},blue:it,indigo:{900:"#05175E",800:"#082188",700:"#0A29A6",600:"#0B2FBF",500:"#0D35D5",400:"#637CE3",300:"#90A3EB",200:"#B3BFF1",100:"#D0D7F6",50:"#E8ECFB"},yellow:{900:"#FF6B0A",800:"#FF7C12",700:"#FF8617",600:"#FF911B",500:"#FF991F",400:"#FFA841",300:"#FFB862",200:"#FFCC8F",100:"#FFE0BC",50:"#FFF3E4"},orange:{900:"#783722",800:"#A74D2F",700:"#CA5D39",600:"#E66A42",500:"#FF7649",400:"#FF9978",300:"#FFB49B",200:"#FFCAB9",100:"#FFDED3",50:"#FFEFEA"},red:{900:"#C81603",800:"#D12206",700:"#D52808",600:"#DA300A",500:"#DE350B",400:"#E35330",300:"#E87254",200:"#EF9A85",100:"#F5C2B6",50:"#FBE7E2"},green:{900:"#00572E",800:"#006A3F",700:"#007448",600:"#007F52",500:"#00875A",400:"#269973",300:"#4DAB8C",200:"#80C3AD",100:"#B3DBCE",50:"#E0F1EB"},fuchsia:{900:"#500663",800:"#71088B",700:"#880AA8",600:"#9C0BC0",500:"#AD0DD5",400:"#CB67E4",300:"#DB94EC",200:"#E6B6F2",100:"#EFD2F7",50:"#F7E9FB"},pink:{900:"#640648",800:"#8C0864",700:"#A80A79",600:"#C00B8A",500:"#D50D99",400:"#E569BF",300:"#EC96D2",200:"#F2B7E0",100:"#F7D2EC",50:"#FBEAF6"},cyan:{900:"#066552",800:"#088C72",700:"#0AA989",600:"#0BC09C",500:"#0DD5AD",400:"#4DE0C2",300:"#7DE8D3",200:"#A4EFE0",100:"#C6F5EB",50:"#E4FAF5"},primary:it},lt=(at.blue[50],at.indigo[50],at.yellow[50],at.orange[50],at.red[50],at.green[50],at.fuchsia[50],at.pink[50],at.cyan[50],at.primary[50],at.grey[100],at.white[16],at.black[16],[50,100,200,300,400,500,600,700,800,900]),ct=["black","white"],st=["grey","blue","indigo","yellow","orange","red","green","fuchsia","pink","cyan","primary"],ut=Qn(Qn([],ct,!0),st,!0),dt=/^#(?:[0-9a-fA-F]{3}){1,2}$/,pt=function(e){return dt.test(e)},ft=function(e){return e+(function(e){return!!e&&/^\d+$/.test(e.toString())}(e)?"px":"")},ht=function(e){var n=e.replace("px","");return yt(n)?gt(n):0},mt=function(){return(Math.random()+1).toString(36).substring(7)},gt=function(e){return parseFloat(e.replace(",","."))},yt=function(e){return!isNaN(gt(e))&&isFinite(gt(e))},vt=function(e){return null!=e&&ut.includes(e)},bt=function(e){return ct.includes(e)},xt=function(e){return st.includes(e)},wt=function(e){var n=e.isDisabled,t=e.onClick,r=Gn(e,["isDisabled","onClick"]),o=u((function(){return n||!t?void 0:function(e){return t(e)}}),[n,t]);return s.createElement(kt,Vn({},r,{isDisabled:n,onClick:o}))},kt=D(N).attrs((function(e){var n=e.color,t=e.theme;if(n){if(function(e,n){return e in n.components.icon}(n,t))return t.components.icon[n];if(pt(n))return{primary:n,secondary:n+"B3"}}return{primary:"inherit",secondary:"inherit"}}))(et||(et=Zn(["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"],["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"])),(function(e){var n=e.isDisabled;return e.onClick&&!n?"pointer":"inherit"}),(function(e){var n=e.isDisabled,t=e.primary,r=e.theme;return n?r.palette.grey[300]:t}),(function(e){return e.secondary})),St=function(e){return{primary:at[e][500],secondary:at[e][200]}},Ct=(St("blue"),St("red"),St("green"),St("yellow"),St("orange"),St("primary"),St("cyan"),St("fuchsia"),St("indigo"),St("pink"),St("grey"),at.white[100],at.white[48],at.black[100],at.black[48],function(n){var t=n.className,r=n.color,o=n.size;return s.createElement("div",{className:t},s.createElement(wt,{color:r,icon:e,size:null!=o?o:"1x",spin:!0}))}),Et=["yyyy-MM-dd","dd/MM/yyyy","dd-MM-yyyy","yyyy/MM/dd","dd.MM.yyyy","MM/dd/yyyy","dd-MM-yy","dd/MM/yy"],Ot="HH:mm:ss",$t=["yyyy-MM-dd "+Ot,"dd/MM/yyyy "+Ot,"dd-MM-yyyy "+Ot,"yyyy/MM/dd "+Ot,"dd.MM.yyyy "+Ot,"MM/dd/yyyy "+Ot,"dd-MM-yy "+Ot,"dd/MM/yy "+Ot];function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function Dt(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function Tt(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function At(e){Tt(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===Pt(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function _t(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return isNaN(r)?new Date(NaN):r?(t.setDate(t.getDate()+r),t):t}function Mt(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),i=new Date(t.getTime());return i.setMonth(t.getMonth()+r+1,0),o>=i.getDate()?i:(t.setFullYear(i.getFullYear(),i.getMonth(),o),t)}function jt(e,n){Tt(2,arguments);var t=At(e).getTime(),r=Dt(n);return new Date(t+r)}!function(e){e.ERROR="error",e.INFO="info",e.STANDARD="standard",e.SUCCESS="success",e.WARNING="warning"}(nt||(nt={}));var Nt=36e5;function Rt(e,n){return Tt(2,arguments),jt(e,Dt(n)*Nt)}var It={};function Ft(){return It}function Lt(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=At(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function zt(e){return Tt(1,arguments),Lt(e,{weekStartsOn:1})}function Bt(e){Tt(1,arguments);var n=function(e){Tt(1,arguments);var n=At(e),t=n.getFullYear(),r=new Date(0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);var o=zt(r),i=new Date(0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);var a=zt(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}(e),t=new Date(0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),zt(t)}function Ht(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function Wt(e){Tt(1,arguments);var n=At(e);return n.setHours(0,0,0,0),n}var Ut=864e5;function Yt(e,n){Tt(2,arguments);var t=Wt(e),r=Wt(n),o=t.getTime()-Ht(t),i=r.getTime()-Ht(r);return Math.round((o-i)/Ut)}var Vt=6e4;function Gt(e,n){return Tt(2,arguments),jt(e,Dt(n)*Vt)}function qt(e,n){return Tt(2,arguments),Mt(e,3*Dt(n))}function Kt(e,n){return Tt(2,arguments),_t(e,7*Dt(n))}function Xt(e,n){return Tt(2,arguments),Mt(e,12*Dt(n))}function Qt(e){var n,t;if(Tt(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!==Pt(e)||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=At(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Zt(e){var n,t;if(Tt(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!==Pt(e)||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=At(e);(void 0===t||t>n||isNaN(n.getDate()))&&(t=n)})),t||new Date(NaN)}var Jt=6e4,er=36e5;function nr(e){return Tt(1,arguments),e instanceof Date||"object"===Pt(e)&&"[object Date]"===Object.prototype.toString.call(e)}function tr(e){if(Tt(1,arguments),!nr(e)&&"number"!=typeof e)return!1;var n=At(e);return!isNaN(Number(n))}function rr(e,n){Tt(2,arguments);var t=At(e),r=At(n);return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())}function or(e){Tt(1,arguments);var n=At(e);return Math.floor(n.getMonth()/3)+1}function ir(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getFullYear()-r.getFullYear()}function ar(e){Tt(1,arguments);var n=At(e);return n.setHours(23,59,59,999),n}function lr(e){Tt(1,arguments);var n=At(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function cr(e){Tt(1,arguments);var n=At(e),t=n.getMonth(),r=t-t%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}function sr(e){Tt(1,arguments);var n=At(e);return n.setDate(1),n.setHours(0,0,0,0),n}function ur(e){Tt(1,arguments);var n=At(e),t=n.getFullYear();return n.setFullYear(t+1,0,0),n.setHours(23,59,59,999),n}function dr(e){Tt(1,arguments);var n=At(e),t=new Date(0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}function pr(e,n){return Tt(2,arguments),jt(e,-Dt(n))}function fr(e){Tt(1,arguments);var n=At(e),t=n.getUTCDay(),r=(t<1?7:0)+t-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function hr(e){Tt(1,arguments);var n=At(e),t=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=fr(r),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=fr(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}var mr=6048e5;function gr(e){Tt(1,arguments);var n=At(e),t=fr(n).getTime()-function(e){Tt(1,arguments);var n=hr(e),t=new Date(0);return t.setUTCFullYear(n,0,4),t.setUTCHours(0,0,0,0),fr(t)}(n).getTime();return Math.round(t/mr)+1}function yr(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=At(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function vr(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=At(e),d=u.getUTCFullYear(),p=Ft(),f=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==t?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=yr(h,n),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var y=yr(g,n);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}var br=6048e5;function xr(e,n){Tt(1,arguments);var t=At(e),r=yr(t,n).getTime()-function(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==t?t:1),p=vr(e,n),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),yr(f,n)}(t,n).getTime();return Math.round(r/br)+1}function wr(e,n){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length<n;)r="0"+r;return t+r}var kr={y:function(e,n){var t=e.getUTCFullYear(),r=t>0?t:1-t;return wr("yy"===n?r%100:r,n.length)},M:function(e,n){var t=e.getUTCMonth();return"M"===n?String(t+1):wr(t+1,2)},d:function(e,n){return wr(e.getUTCDate(),n.length)},a:function(e,n){var t=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];default:return"am"===t?"a.m.":"p.m."}},h:function(e,n){return wr(e.getUTCHours()%12||12,n.length)},H:function(e,n){return wr(e.getUTCHours(),n.length)},m:function(e,n){return wr(e.getUTCMinutes(),n.length)},s:function(e,n){return wr(e.getUTCSeconds(),n.length)},S:function(e,n){var t=n.length,r=e.getUTCMilliseconds();return wr(Math.floor(r*Math.pow(10,t-3)),n.length)}},Sr=kr,Cr="midnight",Er="noon",Or="morning",$r="afternoon",Pr="evening",Dr="night",Tr={G:function(e,n,t){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if("yo"===n){var r=e.getUTCFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return Sr.y(e,n)},Y:function(e,n,t,r){var o=vr(e,r),i=o>0?o:1-o;return"YY"===n?wr(i%100,2):"Yo"===n?t.ordinalNumber(i,{unit:"year"}):wr(i,n.length)},R:function(e,n){return wr(hr(e),n.length)},u:function(e,n){return wr(e.getUTCFullYear(),n.length)},Q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return wr(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return wr(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Sr.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return wr(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){var o=xr(e,r);return"wo"===n?t.ordinalNumber(o,{unit:"week"}):wr(o,n.length)},I:function(e,n,t){var r=gr(e);return"Io"===n?t.ordinalNumber(r,{unit:"week"}):wr(r,n.length)},d:function(e,n,t){return"do"===n?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):Sr.d(e,n)},D:function(e,n,t){var r=function(e){Tt(1,arguments);var n=At(e),t=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=t-n.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===n?t.ordinalNumber(r,{unit:"dayOfYear"}):wr(r,n.length)},E:function(e,n,t){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return wr(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return wr(i,n.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){var r=e.getUTCDay(),o=0===r?7:r;switch(n){case"i":return String(o);case"ii":return wr(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,n,t){var r,o=e.getUTCHours();switch(r=12===o?Er:0===o?Cr:o/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,n,t){var r,o=e.getUTCHours();switch(r=o>=17?Pr:o>=12?$r:o>=4?Or:Dr,n){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,n,t){if("ho"===n){var r=e.getUTCHours()%12;return 0===r&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Sr.h(e,n)},H:function(e,n,t){return"Ho"===n?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Sr.H(e,n)},K:function(e,n,t){var r=e.getUTCHours()%12;return"Ko"===n?t.ordinalNumber(r,{unit:"hour"}):wr(r,n.length)},k:function(e,n,t){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===n?t.ordinalNumber(r,{unit:"hour"}):wr(r,n.length)},m:function(e,n,t){return"mo"===n?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Sr.m(e,n)},s:function(e,n,t){return"so"===n?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Sr.s(e,n)},S:function(e,n){return Sr.S(e,n)},X:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(n){case"X":return _r(o);case"XXXX":case"XX":return Mr(o);default:return Mr(o,":")}},x:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"x":return _r(o);case"xxxx":case"xx":return Mr(o);default:return Mr(o,":")}},O:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ar(o,":");default:return"GMT"+Mr(o,":")}},z:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ar(o,":");default:return"GMT"+Mr(o,":")}},t:function(e,n,t,r){var o=r._originalDate||e;return wr(Math.floor(o.getTime()/1e3),n.length)},T:function(e,n,t,r){return wr((r._originalDate||e).getTime(),n.length)}};function Ar(e,n){var t=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return t+String(o);var a=n||"";return t+String(o)+a+wr(i,2)}function _r(e,n){return e%60==0?(e>0?"-":"+")+wr(Math.abs(e)/60,2):Mr(e,n)}function Mr(e,n){var t=n||"",r=e>0?"-":"+",o=Math.abs(e);return r+wr(Math.floor(o/60),2)+t+wr(o%60,2)}var jr=Tr,Nr=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Rr=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},Ir={p:Rr,P:function(e,n){var t,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Nr(e,n);switch(o){case"P":t=n.dateTime({width:"short"});break;case"PP":t=n.dateTime({width:"medium"});break;case"PPP":t=n.dateTime({width:"long"});break;default:t=n.dateTime({width:"full"})}return t.replace("{{date}}",Nr(o,n)).replace("{{time}}",Rr(i,n))}},Fr=Ir,Lr=["D","DD"],zr=["YY","YYYY"];function Br(e){return-1!==Lr.indexOf(e)}function Hr(e){return-1!==zr.indexOf(e)}function Wr(e,n,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ur={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yr=function(e,n,t){var r,o=Ur[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Vr(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var Gr={date:Vr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Vr({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Vr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kr=function(e,n,t,r){return qr[e]};function Xr(e){return function(n,t){var r;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=t&&t.width?String(t.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(n):n]}}var Qr={ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Xr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xr({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xr({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Xr({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Xr({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Zr(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t;return}(c,(function(e){return e.test(l)})):function(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t;return}(c,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(s):s,{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(l.length)}}}function Jr(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(o.length)}}}var eo={code:"en-US",formatDistance:Yr,formatLong:Gr,formatRelative:Kr,localize:Qr,match:{ordinalNumber:Jr({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Zr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Zr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Zr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},no=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,to=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ro=/^'([^]*?)'?$/,oo=/''/g,io=/[a-zA-Z]/;function ao(e,n,t){var r,o,i,a,l,c,s,u,d,p,f,h,m,g,y,v,b,x;Tt(2,arguments);var w=String(n),k=Ft(),S=null!==(r=null!==(o=null==t?void 0:t.locale)&&void 0!==o?o:k.locale)&&void 0!==r?r:eo,C=Dt(null!==(i=null!==(a=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:k.firstWeekContainsDate)&&void 0!==a?a:null===(d=k.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=Dt(null!==(f=null!==(h=null!==(m=null!==(g=null==t?void 0:t.weekStartsOn)&&void 0!==g?g:null==t||null===(y=t.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:k.weekStartsOn)&&void 0!==h?h:null===(b=k.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var O=At(e);if(!tr(O))throw new RangeError("Invalid time value");var $=pr(O,Ht(O)),P={firstWeekContainsDate:C,weekStartsOn:E,locale:S,_originalDate:O};return w.match(to).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,Fr[n])(e,S.formatLong):e})).join("").match(no).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var n=e.match(ro);if(!n)return e;return n[1].replace(oo,"'")}(r);var i=jr[o];if(i)return null!=t&&t.useAdditionalWeekYearTokens||!Hr(r)||Wr(r,n,String(e)),null!=t&&t.useAdditionalDayOfYearTokens||!Br(r)||Wr(r,n,String(e)),i($,r,S.localize,P);if(o.match(io))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function lo(e,n){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}function co(e){return Tt(1,arguments),At(e).getDate()}function so(e){return Tt(1,arguments),At(e).getHours()}var uo=6048e5;function po(e){return Tt(1,arguments),At(e).getMinutes()}function fo(e){return Tt(1,arguments),At(e).getMonth()}function ho(e){return Tt(1,arguments),At(e).getSeconds()}function mo(e){return Tt(1,arguments),At(e).getTime()}function go(e){return Tt(1,arguments),At(e).getFullYear()}function yo(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getTime()>r.getTime()}function vo(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getTime()<r.getTime()}function bo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function xo(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return bo(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bo(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ko(e,n){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ko(e,n)}function So(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ko(e,n)}function Co(e){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Co(e)}function Eo(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=Co(e);if(n){var o=Co(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"===Pt(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}(this,t)}}function Oo(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $o(e){var n=function(e,n){if("object"!==Pt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===Pt(n)?n:String(n)}function Po(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$o(r.key),r)}}function Do(e,n,t){return n&&Po(e.prototype,n),t&&Po(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function To(e,n,t){return(n=$o(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Ao=function(){function e(){Oo(this,e),To(this,"priority",void 0),To(this,"subPriority",0)}return Do(e,[{key:"validate",value:function(e,n){return!0}}]),e}(),_o=function(e){So(t,Ao);var n=Eo(t);function t(e,r,o,i,a){var l;return Oo(this,t),(l=n.call(this)).value=e,l.validateValue=r,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return Do(t,[{key:"validate",value:function(e,n){return this.validateValue(e,this.value,n)}},{key:"set",value:function(e,n,t){return this.setValue(e,n,this.value,t)}}]),t}(),Mo=function(e){So(t,Ao);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"subPriority",-1),e}return Do(t,[{key:"set",value:function(e,n){if(n.timestampIsSet)return e;var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}}]),t}(),jo=function(){function e(){Oo(this,e),To(this,"incompatibleTokens",void 0),To(this,"priority",void 0),To(this,"subPriority",void 0)}return Do(e,[{key:"run",value:function(e,n,t,r){var o=this.parse(e,n,t,r);return o?{setter:new _o(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,n,t){return!0}}]),e}(),No=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",140),To(wo(e),"incompatibleTokens",["R","u","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}}},{key:"set",value:function(e,n,t){return n.era=t,e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),Ro=/^(1[0-2]|0?\d)/,Io=/^(3[0-1]|[0-2]?\d)/,Fo=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Lo=/^(5[0-3]|[0-4]?\d)/,zo=/^(2[0-3]|[0-1]?\d)/,Bo=/^(2[0-4]|[0-1]?\d)/,Ho=/^(1[0-1]|0?\d)/,Wo=/^(1[0-2]|0?\d)/,Uo=/^[0-5]?\d/,Yo=/^[0-5]?\d/,Vo=/^\d/,Go=/^\d{1,2}/,qo=/^\d{1,3}/,Ko=/^\d{1,4}/,Xo=/^-?\d+/,Qo=/^-?\d/,Zo=/^-?\d{1,2}/,Jo=/^-?\d{1,3}/,ei=/^-?\d{1,4}/,ni=/^([+-])(\d{2})(\d{2})?|Z/,ti=/^([+-])(\d{2})(\d{2})|Z/,ri=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,oi=/^([+-])(\d{2}):(\d{2})|Z/,ii=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ai(e,n){return e?{value:n(e.value),rest:e.rest}:e}function li(e,n){var t=n.match(e);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function ci(e,n){var t=n.match(e);if(!t)return null;if("Z"===t[0])return{value:0,rest:n.slice(1)};var r="+"===t[1]?1:-1,o=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return{value:r*(o*er+i*Jt+1e3*a),rest:n.slice(t[0].length)}}function si(e){return li(Xo,e)}function ui(e,n){switch(e){case 1:return li(Vo,n);case 2:return li(Go,n);case 3:return li(qo,n);case 4:return li(Ko,n);default:return li(new RegExp("^\\d{1,"+e+"}"),n)}}function di(e,n){switch(e){case 1:return li(Qo,n);case 2:return li(Zo,n);case 3:return li(Jo,n);case 4:return li(ei,n);default:return li(new RegExp("^-?\\d{1,"+e+"}"),n)}}function pi(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function fi(e,n){var t,r=n>0,o=r?n:1-n;if(o<=50)t=e||100;else{var i=o+50;t=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?t:1-t}function hi(e){return e%400==0||e%4==0&&e%100!=0}var mi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return{year:e,isTwoDigitYear:"yy"===n}};switch(n){case"y":return ai(ui(4,e),r);case"yo":return ai(t.ordinalNumber(e,{unit:"year"}),r);default:return ai(ui(n.length,e),r)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,t){var r=e.getUTCFullYear();if(t.isTwoDigitYear){var o=fi(t.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),gi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return{year:e,isTwoDigitYear:"YY"===n}};switch(n){case"Y":return ai(ui(4,e),r);case"Yo":return ai(t.ordinalNumber(e,{unit:"year"}),r);default:return ai(ui(n.length,e),r)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,t,r){var o=vr(e,r);if(t.isTwoDigitYear){var i=fi(t.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yr(e,r)}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yr(e,r)}}]),t}(),yi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return di("R"===n?4:n.length,e)}},{key:"set",value:function(e,n,t){var r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),fr(r)}}]),t}(),vi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return di("u"===n?4:n.length,e)}},{key:"set",value:function(e,n,t){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),bi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",120),To(wo(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"Q":case"QQ":return ui(n.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,t){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}}]),t}(),xi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",120),To(wo(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"q":case"qq":return ui(n.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,t){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}}]),t}(),wi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),To(wo(e),"priority",110),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return e-1};switch(n){case"M":return ai(li(Ro,e),r);case"MM":return ai(ui(2,e),r);case"Mo":return ai(t.ordinalNumber(e,{unit:"month"}),r);case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),t}(),ki=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",110),To(wo(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return e-1};switch(n){case"L":return ai(li(Ro,e),r);case"LL":return ai(ui(2,e),r);case"Lo":return ai(t.ordinalNumber(e,{unit:"month"}),r);case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),t}();var Si=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",100),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"w":return li(Lo,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,t,r){return yr(function(e,n,t){Tt(2,arguments);var r=At(e),o=Dt(n),i=xr(r,t)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,t,r),r)}}]),t}();var Ci=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",100),To(wo(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"I":return li(Lo,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,t){return fr(function(e,n){Tt(2,arguments);var t=At(e),r=Dt(n),o=gr(t)-r;return t.setUTCDate(t.getUTCDate()-7*o),t}(e,t))}}]),t}(),Ei=[31,28,31,30,31,30,31,31,30,31,30,31],Oi=[31,29,31,30,31,30,31,31,30,31,30,31],$i=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"subPriority",1),To(wo(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"d":return li(Io,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){var t=hi(e.getUTCFullYear()),r=e.getUTCMonth();return t?n>=1&&n<=Oi[r]:n>=1&&n<=Ei[r]}},{key:"set",value:function(e,n,t){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e}}]),t}(),Pi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"subpriority",1),To(wo(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"D":case"DD":return li(Fo,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return hi(e.getUTCFullYear())?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(e,n,t){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e}}]),t}();function Di(e,n,t){var r,o,i,a,l,c,s,u;Tt(2,arguments);var d=Ft(),p=Dt(null!==(r=null!==(o=null!==(i=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(s=d.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=At(e),h=Dt(n),m=((h%7+7)%7<p?7:0)+h-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+m),f}var Ti=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}(),Ai=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"e":case"ee":return ai(ui(n.length,e),o);case"eo":return ai(t.ordinalNumber(e,{unit:"day"}),o);case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}(),_i=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"c":case"cc":return ai(ui(n.length,e),o);case"co":return ai(t.ordinalNumber(e,{unit:"day"}),o);case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}();var Mi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return 0===e?7:e};switch(n){case"i":case"ii":return ui(n.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return ai(t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ai(t.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ai(t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r);default:return ai(t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,n){return n>=1&&n<=7}},{key:"set",value:function(e,n,t){return e=function(e,n){Tt(2,arguments);var t=Dt(n);t%7==0&&(t-=7);var r=At(e),o=((t%7+7)%7<1?7:0)+t-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,t),e.setUTCHours(0,0,0,0),e}}]),t}(),ji=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ni=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ri=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["a","b","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ii=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"h":return li(Wo,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=12}},{key:"set",value:function(e,n,t){var r=e.getUTCHours()>=12;return r&&t<12?e.setUTCHours(t+12,0,0,0):r||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e}}]),t}(),Fi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"H":return li(zo,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=23}},{key:"set",value:function(e,n,t){return e.setUTCHours(t,0,0,0),e}}]),t}(),Li=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"K":return li(Ho,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e}}]),t}(),zi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"k":return li(Bo,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=24}},{key:"set",value:function(e,n,t){var r=t<=24?t%24:t;return e.setUTCHours(r,0,0,0),e}}]),t}(),Bi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",60),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"m":return li(Uo,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,t){return e.setUTCMinutes(t,0,0),e}}]),t}(),Hi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",50),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"s":return li(Yo,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,t){return e.setUTCSeconds(t,0),e}}]),t}(),Wi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",30),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return ai(ui(n.length,e),(function(e){return Math.floor(e*Math.pow(10,3-n.length))}))}},{key:"set",value:function(e,n,t){return e.setUTCMilliseconds(t),e}}]),t}(),Ui=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"incompatibleTokens",["t","T","x"]),e}return Do(t,[{key:"parse",value:function(e,n){switch(n){case"X":return ci(ni,e);case"XX":return ci(ti,e);case"XXXX":return ci(ri,e);case"XXXXX":return ci(ii,e);default:return ci(oi,e)}}},{key:"set",value:function(e,n,t){return n.timestampIsSet?e:new Date(e.getTime()-t)}}]),t}(),Yi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"incompatibleTokens",["t","T","X"]),e}return Do(t,[{key:"parse",value:function(e,n){switch(n){case"x":return ci(ni,e);case"xx":return ci(ti,e);case"xxxx":return ci(ri,e);case"xxxxx":return ci(ii,e);default:return ci(oi,e)}}},{key:"set",value:function(e,n,t){return n.timestampIsSet?e:new Date(e.getTime()-t)}}]),t}(),Vi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",40),To(wo(e),"incompatibleTokens","*"),e}return Do(t,[{key:"parse",value:function(e){return si(e)}},{key:"set",value:function(e,n,t){return[new Date(1e3*t),{timestampIsSet:!0}]}}]),t}(),Gi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",20),To(wo(e),"incompatibleTokens","*"),e}return Do(t,[{key:"parse",value:function(e){return si(e)}},{key:"set",value:function(e,n,t){return[new Date(t),{timestampIsSet:!0}]}}]),t}(),qi={G:new No,y:new mi,Y:new gi,R:new yi,u:new vi,Q:new bi,q:new xi,M:new wi,L:new ki,w:new Si,I:new Ci,d:new $i,D:new Pi,E:new Ti,e:new Ai,c:new _i,i:new Mi,a:new ji,b:new Ni,B:new Ri,h:new Ii,H:new Fi,K:new Li,k:new zi,m:new Bi,s:new Hi,S:new Wi,X:new Ui,x:new Yi,t:new Vi,T:new Gi},Ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qi=/^'([^]*?)'?$/,Zi=/''/g,Ji=/\S/,ea=/[a-zA-Z]/;function na(e,n,t,r){var o,i,a,l,c,s,u,d,p,f,h,m,g,y,v,b,x,w;Tt(3,arguments);var k=String(e),S=String(n),C=Ft(),E=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:C.locale)&&void 0!==o?o:eo;if(!E.match)throw new RangeError("locale must contain match property");var O=Dt(null!==(a=null!==(l=null!==(c=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:C.firstWeekContainsDate)&&void 0!==l?l:null===(p=C.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Dt(null!==(h=null!==(m=null!==(g=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==m?m:null===(x=C.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==h?h:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===S)return""===k?At(t):new Date(NaN);var P,D={firstWeekContainsDate:O,weekStartsOn:$,locale:E},T=[new Mo],A=S.match(Xi).map((function(e){var n=e[0];return n in Fr?(0,Fr[n])(e,E.formatLong):e})).join("").match(Ki),_=[],M=xo(A);try{var j=function(){var n=P.value;null!=r&&r.useAdditionalWeekYearTokens||!Hr(n)||Wr(n,S,e),null!=r&&r.useAdditionalDayOfYearTokens||!Br(n)||Wr(n,S,e);var t=n[0],o=qi[t];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=_.find((function(e){return i.includes(e.token)||e.token===t}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(n,"` at the same time"))}else if("*"===o.incompatibleTokens&&_.length>0)throw new RangeError("The format string mustn't contain `".concat(n,"` and any other token at the same time"));_.push({token:t,fullToken:n});var l=o.run(k,n,E.match,D);if(!l)return{v:new Date(NaN)};T.push(l.setter),k=l.rest}else{if(t.match(ea))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");if("''"===n?n="'":"'"===t&&(n=n.match(Qi)[1].replace(Zi,"'")),0!==k.indexOf(n))return{v:new Date(NaN)};k=k.slice(n.length)}};for(M.s();!(P=M.n()).done;){var N=j();if("object"===Pt(N))return N.v}}catch(e){M.e(e)}finally{M.f()}if(k.length>0&&Ji.test(k))return new Date(NaN);var R=T.map((function(e){return e.priority})).sort((function(e,n){return n-e})).filter((function(e,n,t){return t.indexOf(e)===n})).map((function(e){return T.filter((function(n){return n.priority===e})).sort((function(e,n){return n.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=At(t);if(isNaN(I.getTime()))return new Date(NaN);var F,L=pr(I,Ht(I)),z={},B=xo(R);try{for(B.s();!(F=B.n()).done;){var H=F.value;if(!H.validate(L,D))return new Date(NaN);var W=H.set(L,z,D);Array.isArray(W)?(L=W[0],lo(z,W[1])):L=W}}catch(e){B.e(e)}finally{B.f()}return L}function ta(e,n,t){return Tt(2,arguments),tr(na(e,n,new Date,t))}function ra(e,n){Tt(2,arguments);var t=At(e).getTime(),r=At(n.start).getTime(),o=At(n.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return t>=r&&t<=o}function oa(e,n){var t;Tt(1,arguments);var r=Dt(null!==(t=null==n?void 0:n.additionalDigits)&&void 0!==t?t:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=function(e){var n,t={},r=e.split(ia.dateTimeDelimiter);if(r.length>2)return t;/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],ia.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ia.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){var o=ia.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}(e);if(i.date){var a=function(e,n){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=e.match(t);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,n){if(null===n)return new Date(NaN);var t=e.match(aa);if(!t)return new Date(NaN);var r=!!t[4],o=sa(t[1]),i=sa(t[2])-1,a=sa(t[3]),l=sa(t[4]),c=sa(t[5])-1;if(r)return function(e,n,t){return n>=1&&n<=53&&t>=0&&t<=6}(0,l,c)?function(e,n,t){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(n-1)+t+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(n,l,c):new Date(NaN);var s=new Date(0);return function(e,n,t){return n>=0&&n<=11&&t>=1&&t<=(da[n]||(pa(e)?29:28))}(n,i,a)&&function(e,n){return n>=1&&n<=(pa(e)?366:365)}(n,o)?(s.setUTCFullYear(n,i,Math.max(o,a)),s):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=function(e){var n=e.match(la);if(!n)return NaN;var t=ua(n[1]),r=ua(n[2]),o=ua(n[3]);if(!function(e,n,t){if(24===e)return 0===n&&0===t;return t>=0&&t<60&&n>=0&&n<60&&e>=0&&e<25}(t,r,o))return NaN;return t*er+r*Jt+1e3*o}(i.time),isNaN(s)))return new Date(NaN);if(!i.timezone){var u=new Date(c+s),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return l=function(e){if("Z"===e)return 0;var n=e.match(ca);if(!n)return 0;var t="+"===n[1]?-1:1,r=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;if(!function(e,n){return n>=0&&n<=59}(0,o))return NaN;return t*(r*er+o*Jt)}(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}var ia={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aa=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,la=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ca=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sa(e){return e?parseInt(e):1}function ua(e){return e&&parseFloat(e.replace(",","."))||0}var da=[31,null,31,30,31,30,31,31,30,31,30,31];function pa(e){return e%400==0||e%4==0&&e%100!=0}function fa(e,n){Tt(2,arguments);var t=At(e),r=Dt(n),o=t.getFullYear(),i=t.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=function(e){Tt(1,arguments);var n=At(e),t=n.getFullYear(),r=n.getMonth(),o=new Date(0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return t.setMonth(r,Math.min(i,l)),t}function ha(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return t.setHours(r),t}function ma(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return t.setMinutes(r),t}function ga(e,n){Tt(2,arguments);var t=At(e),r=Dt(n)-(Math.floor(t.getMonth()/3)+1);return fa(t,t.getMonth()+3*r)}function ya(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function va(e,n){return Tt(2,arguments),Mt(e,-Dt(n))}function ba(e,n){return Tt(2,arguments),Xt(e,-Dt(n))}function xa(e,n,t){Tt(2,arguments);var r=yr(e,t),o=yr(n,t);return r.getTime()===o.getTime()}var wa={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},ka=function(e,n,t){var r,o=wa[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},Sa={date:Vr({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Vr({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Vr({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ca=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Ea(e){return"'"+Ca[e]+" alle' p"}var Oa,$a,Pa,Da,Ta,Aa,_a,Ma,ja,Na,Ra,Ia,Fa={lastWeek:function(e,n,t){var r=e.getUTCDay();return xa(e,n,t)?Ea(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ca[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return xa(e,n,t)?Ea(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ca[e]+" prossimo alle' p"}(r)},other:"P"},La=function(e,n,t,r){var o=Fa[e];return"function"==typeof o?o(n,t,r):o},za={ordinalNumber:function(e,n){var t=Number(e);return String(t)},era:Xr({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Xr({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xr({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Xr({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Xr({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},Ba={code:"it",formatDistance:ka,formatLong:Sa,formatRelative:La,localize:za,match:{ordinalNumber:Jr({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Zr({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Zr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Zr({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zr({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ha=function(e){for(var n=function(e){var n=e.split(" "),t=n[0],r=n[1];return Boolean(t)&&Boolean(r)&&ta(r,Ot)}(e)?$t:Et,t=0;t<n.length;t++)if(ta(e,n[t]))return n[t];return""},Wa=function(e,n){var t=function(e){var n=Ha(e);return n?na(e,n,new Date):null}(e);return t?ao(t,n,{locale:Ba}):""},Ua=D.div.attrs((function(e){var n=e.color,t=e.theme;return n?vt(n)?{color:bt(n)?t.palette[n][100]:t.palette[n][500]}:{color:n}:{color:void 0}}))($a||($a=Zn(["\n font-weight: ",";\n text-align: ",";\n color: ",";\n\n ","\n"],["\n font-weight: ",";\n text-align: ",";\n color: ",";\n\n ","\n"])),(function(e){return e.bold?500:400}),(function(e){return e.centered?"center":"left"}),(function(e){var n=e.color;return null!=n?n:"inherit"}),(function(e){var n=e.clamp;return n&&T(Oa||(Oa=Zn(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "],["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "])),n)})),Ya=d((function(e,n){var t=e.children,r=e.type,o=Gn(e,["children","type"]);return s.createElement(Ua,Vn({ref:n},o),Array.isArray(t)||s.isValidElement(t)?t:"currency"===r&&("string"==typeof t&&yt(t)||"number"==typeof t&&!isNaN(t))?function(e){return"number"!=typeof e&&(e=parseFloat(e)),isNaN(e)||!isFinite(e)?"":e.toLocaleString("it-IT",{minimumFractionDigits:2,maximumFractionDigits:2})+" €"}(t):"date"===r&&"string"==typeof t?function(e){return Wa(e,"dd/MM/yyyy")}(t):null!=t?t:"")})),Va=D(Ya)(Pa||(Pa=Zn(["\n font-size: 48px;\n line-height: 72px;\n"],["\n font-size: 48px;\n line-height: 72px;\n"]))),Ga=D(Ya)(Da||(Da=Zn(["\n font-size: 36px;\n line-height: 54px;\n"],["\n font-size: 36px;\n line-height: 54px;\n"]))),qa=D(Ya)(Ta||(Ta=Zn(["\n font-size: 30px;\n line-height: 45px;\n"],["\n font-size: 30px;\n line-height: 45px;\n"]))),Ka=D(Ya)(Aa||(Aa=Zn(["\n font-size: 24px;\n line-height: 36px;\n"],["\n font-size: 24px;\n line-height: 36px;\n"]))),Xa=D(Ya)(_a||(_a=Zn(["\n font-size: 20px;\n line-height: 30px;\n"],["\n font-size: 20px;\n line-height: 30px;\n"]))),Qa=D(Ya)(Ma||(Ma=Zn(["\n font-size: 18px;\n line-height: 27px;\n"],["\n font-size: 18px;\n line-height: 27px;\n"]))),Za=D(Ya)(ja||(ja=Zn(["\n font-size: 16px;\n line-height: 24px;\n"],["\n font-size: 16px;\n line-height: 24px;\n"]))),Ja=D(Ya)(Na||(Na=Zn(["\n font-size: 14px;\n line-height: 21px;\n"],["\n font-size: 14px;\n line-height: 21px;\n"]))),el=D(Ya)(Ra||(Ra=Zn(["\n font-size: 12px;\n line-height: 18px;\n"],["\n font-size: 12px;\n line-height: 18px;\n"])));D(Ya)(Ia||(Ia=Zn(["\n line-height: 17px;\n"],["\n line-height: 17px;\n"])));var nl,tl,rl,ol,il,al,ll,cl,sl,ul,dl,pl,fl,hl,ml,gl,yl,vl,bl,xl={xs:"0.75em","2xs":"0.625em",sm:"0.875em",lg:"1.3em",xl:"1.5em","2xl":"2em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},wl=function(e){var n;return e?xl[null!==(n=e.size)&&void 0!==n?n:"1x"]:"0"},kl=D.div.attrs((function(e){var n=e.animation,t=e.changeColor,r=e.open,o=e.theme,i={animation:"",iconColor:r&&t?o.palette.blue[500]:o.palette.black[100]};if(r)switch(n){case"rotate45":i.animation="rotate(45deg)";break;case"rotate90":i.animation="rotate(90deg)";break;case"rotate180":i.animation="rotate(180deg)"}return i}))(nl||(nl=Zn(["\n color: ",";\n & > svg {\n transition: transform 225ms;\n transform: ",";\n }\n"],["\n color: ",";\n & > svg {\n transition: transform 225ms;\n transform: ",";\n }\n"])),(function(e){return e.iconColor}),(function(e){return e.animation})),Sl=function(e){var n=e.iconProps,t=n.animation,r=n.changeColor,o=Gn(n,["animation","changeColor"]),i=e.open;return s.createElement(kl,{open:i,changeColor:r,animation:t},s.createElement(wt,Vn({},o)))},Cl=D(Za)(tl||(tl=Zn(["\n padding: 8px 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n"],["\n padding: 8px 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n"]))),El=D.div(ol||(ol=Zn(["\n display: flex;\n flex: 1;\n ","\n"],["\n display: flex;\n flex: 1;\n ","\n"])),(function(e){var n=e.leftPadding,t=e.rightPadding;return T(rl||(rl=Zn(["\n padding-left: ",";\n padding-right: ",";\n "],["\n padding-left: ",";\n padding-right: ",";\n "])),n,t)})),Ol=D.div(il||(il=Zn(["\n padding-left: 16px;\n padding-right: 8px;\n overflow: hidden;\n height: ",";\n transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n"],["\n padding-left: 16px;\n padding-right: 8px;\n overflow: hidden;\n height: ",";\n transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n"])),(function(e){var n=e.contentHeight;return"number"==typeof n?n+"px":n})),$l=function(e){var n,t=e.content,r=e.customOpenContentHeight,o=e.header,i=e.index,a=e.leftIcon,l=e.open,c=e.rightIcon,u=e.style,d=e.toggle,m=p(null),g=f(0),y=g[0],v=g[1];return h((function(){var e;return v(l?r||(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.scrollHeight):0)}),[null===(n=null==m?void 0:m.current)||void 0===n?void 0:n.scrollHeight,r,l]),s.createElement(s.Fragment,null,s.createElement(Cl,{bold:!0,style:null==u?void 0:u.header,onClick:function(){return d(i)}},a&&s.createElement(Sl,{iconProps:a,open:l}),s.createElement(El,{leftPadding:wl(a),rightPadding:wl(c)},o),c&&s.createElement(Sl,{iconProps:c,open:l})),s.createElement(Ol,{ref:m,style:null==u?void 0:u.content,contentHeight:y},t))},Pl=function(e){var n=e.customOpenContentHeight,t=e.defaultOpen,r=e.divider,o=e.items,i=e.leftIcon,a=e.multipleOpen,l=void 0!==a&&a,c=e.openItem,u=e.rightIcon,d=e.setOpenItem,p=e.showItemsOnFirstRender,g=void 0!==p&&p,y=e.style,v=f(void 0!==c&&void 0!==d)[0],b=f(void 0!==t?[t]:[]),x=b[0],w=b[1];h((function(){v&&c&&w(c)}),[v,c]);var k=m((function(e){(v&&d?d:w)((function(n){var t=n.indexOf(e);return t>=0?Qn(Qn([],n.slice(0,t),!0),n.slice(t+1),!0):l?Qn(Qn([],n,!0),[e],!1):[e]}))}),[v,l,d]);return s.createElement(s.Fragment,null,o.map((function(e,t){var o,a,l;return s.createElement("div",{id:"Accordion_"+t,key:"Accordion_"+t},s.createElement($l,{index:t,open:x.includes(t),toggle:k,content:g?x.includes(t)?e.content:null:e.content,header:e.header,leftIcon:null!==(o=e.leftIcon)&&void 0!==o?o:i,rightIcon:null!==(a=e.rightIcon)&&void 0!==a?a:u,style:null!==(l=e.style)&&void 0!==l?l:y,customOpenContentHeight:n}),r)})))},Dl=function(e,n){for(var t=e.split("").map((function(e){return e.charCodeAt(0)})),r=t.length%(n-1)+1,o=t.reduce((function(e,n){return e+n}),0)%n,i=t[0]%n,a=0;a<t.length;a++)i=(r*i+o)%n;return i},Tl=function(e,n){if(!e)return"transparent";var t=Array.from(st).filter((function(e){return"primary"!==e})),r=Array.from(lt).filter((function(e){return e>200})),o=t[Dl(e,t.length)],i=r[Dl(e,r.length)];return n.palette[o][i]},Al=D.div(dl||(dl=Zn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"])),(function(e){var n=e.textColor,t=e.theme;return null!=n?n:t.palette.white[100]}),(function(e){var n=e.backgroundColor,t=e.theme;return null!=n?n:t.palette.primary[500]}),(function(e){return void 0!==e.onClick&&T(al||(al=Zn(["\n cursor: pointer;\n "],["\n cursor: pointer;\n "])))}),(function(e){var n=e.size,t=e.textLenght;return T(ll||(ll=Zn(["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "],["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "])),n,n,n*function(e){return e<=2?.45:3===e?.4:.35}(t))}),(function(e){var n=e.image,t=e.placeholder;return void 0!==n&&T(ul||(ul=Zn(["\n ","\n background-size: cover;\n "],["\n ","\n background-size: cover;\n "])),t?T(cl||(cl=Zn(["\n background-image: url('","'), url('","');\n "],["\n background-image: url('","'), url('","');\n "])),n,t):T(sl||(sl=Zn(["\n background-image: url('","');\n "],["\n background-image: url('","');\n "])),n))})),_l=function(e){var n,t=e.backgroundColor,r=e.className,o=e.icon,i=e.image,a=e.onClick,l=e.placeholder,c=e.randomColor,u=e.size,d=e.style,p=e.text,f=e.textColor,h=A(),m=null!==(n=null==p?void 0:p.split(" ").map((function(e,n){return n>2?null:e.charAt(0)})).join(""))&&void 0!==n?n:"";return s.createElement(Al,{backgroundColor:c?Tl(p,h):t,className:r,image:i,onClick:a,size:u,style:d,textColor:f,textLenght:m.length,placeholder:l},o?s.createElement(wt,Vn({},o)):m)},Ml={xxs:"4px",xs:"8px",s:"12px",m:"16px",l:"24px",xl:"32px",xxl:"48px",xxxl:"64px"},jl=D.div(pl||(pl=Zn(["\n position: absolute;\n width: 10px;\n height: 10px;\n\n &:after {\n content: '';\n position: absolute;\n transform: rotate(45deg);\n width: 10px;\n height: 10px;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 10px;\n height: 10px;\n\n &:after {\n content: '';\n position: absolute;\n transform: rotate(45deg);\n width: 10px;\n height: 10px;\n background-color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.type;return n.components.tooltip[t].background})),Nl=T(fl||(fl=Zn(["\n &[data-popper-placement^='top'] > "," {\n bottom: -5px;\n &:after {\n border-bottom-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -5px;\n &:after {\n border-top-left-radius: 3px;\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -5px;\n &:after {\n border-top-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -5px;\n &:after {\n border-bottom-left-radius: 3px;\n }\n }\n"],["\n &[data-popper-placement^='top'] > "," {\n bottom: -5px;\n &:after {\n border-bottom-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -5px;\n &:after {\n border-top-left-radius: 3px;\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -5px;\n &:after {\n border-top-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -5px;\n &:after {\n border-bottom-left-radius: 3px;\n }\n }\n"])),jl,jl,jl,jl),Rl=D.div.attrs((function(e){var n=e.theme,t=e.type;return n.components.tooltip[t]}))(hl||(hl=Zn(["\n z-index: 9;\n\n font-size: 14px;\n\n padding: 8px;\n border-radius: 4px;\n\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n\n color: ",";\n background: ",";\n"],["\n z-index: 9;\n\n font-size: 14px;\n\n padding: 8px;\n border-radius: 4px;\n\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n\n color: ",";\n background: ",";\n"])),(function(e){return e.color}),(function(e){return e.background})),Il=D.div(ml||(ml=Zn(["\n ",";\n z-index: 9999;\n\n max-width: min(calc(100vw - 5%), 300px);\n"],["\n ",";\n z-index: 9999;\n\n max-width: min(calc(100vw - 5%), 300px);\n"])),Nl),Fl=D.div(gl||(gl=Zn(["\n &.enter {\n opacity: 0;\n }\n\n &.enter-active {\n opacity: 1;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit-active {\n opacity: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n &.enter {\n opacity: 0;\n }\n\n &.enter-active {\n opacity: 1;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit-active {\n opacity: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),Ll=D(wt)(yl||(yl=Zn(["\n margin-left: 4px;\n"],["\n margin-left: 4px;\n"]))),zl=D.div(vl||(vl=Zn(["\n padding-top: 8px;\n"],["\n padding-top: 8px;\n"]))),Bl=function(e){var n=e.attributes,t=e.icon,r=e.message,o=e.popperRef,i=e.renderButton,a=e.setArrowRef,l=e.shouldRender,c=e.showTooltip,u=e.styles,d=e.type,p=void 0===d?"dark":d;return l?s.createElement(L,{in:c,timeout:200,unmountOnExit:!0,appear:!0},s.createElement(Fl,null,s.createElement(Il,Vn({ref:o,style:u.popper},n.popper),s.createElement(jl,{type:p,ref:a,style:u.arrow}),s.createElement(Rl,{type:p,style:u.offset},s.createElement("div",null,r,t&&s.createElement(Ll,Vn({},t))),i&&s.createElement(zl,null,i()))))):s.createElement(s.Fragment,null)},Hl=function(e,n,t,r){var o=u((function(){return Qn([e],null!=r?r:[],!0)}),[r,e]);h((function(){function e(e){var n=o.some((function(n){var t;return null===(t=n.current)||void 0===t?void 0:t.contains(e.target)}));if(!n){if(e.target instanceof HTMLElement){var r=e.target,i=r.clientHeight,a=r.clientWidth,l=r.offsetHeight;if(a<r.offsetWidth&&e.offsetX>a||i<l&&e.offsetY>i)return}t()}}return n&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t,o,n])},Wl=function(e){var n=e.callbackAfterTimeout,t=e.hideAfterSeconds,r=e.onMouseEnter,o=e.onMouseLeave,i=e.onMouseLeaveHideDelay,a=e.onOpen,l=e.placement,c=void 0===l?"top":l,s=e.positionStrategy,d=void 0===s?"fixed":s,g=e.showAfterSeconds,y=e.showAlways,v=void 0!==y&&y,b=p(null),x=p(null),w=p(null),k=p(void 0),S=p(void 0),C=p(void 0),E=f(null),O=E[0],$=E[1],P=f(!1),D=P[0],T=P[1],A=f(!1),_=A[0],M=A[1],j=m((function(){return M(!0)}),[]),N=m((function(){return M(!1)}),[]);Hl(b,_,N,[w]),h((function(){if(_)return window.addEventListener("touchmove",N),function(){window.removeEventListener("touchmove",N)}}),[N,_]),h((function(){null==a||a(_)}),[_,a]);var R=m((function(e){g?S.current=setTimeout((function(){j()}),1e3*g):j(),null==r||r(e)}),[r,j,g]),I=m((function(e){_||!S.current?(i?C.current=setTimeout((function(){N()}),1e3*i):N(),null==o||o(e)):clearTimeout(S.current)}),[N,o,i,_]),F=u((function(){return[{name:"arrow",options:{element:O}},{name:"offset",options:{offset:[0,10]}}]}),[O]),L=z(w.current,x.current,{placement:c,strategy:d,modifiers:F}),B=L.attributes,H=L.styles,W=u((function(){return(_||v)&&!D}),[D,_,v]);return h((function(){return t&&(k.current=setTimeout((function(){T(!0),M(!1),null==n||n()}),1e3*t)),function(){k.current&&clearTimeout(k.current)}}),[n,t]),{_onMouseEnter:R,_onMouseLeave:I,attributes:B,childrenRef:w,popperRef:x,setArrowRef:$,show:j,showTooltip:W,styles:H,wrapperRef:b}},Ul={message:"",type:"dark",placement:"bottom"},Yl=function(e){var n=e.callbackAfterTimeout,t=e.children,r=e.className,o=e.hideAfterSeconds,i=e.icon,a=e.message,l=e.onMouseEnter,c=e.onMouseLeave,u=e.onMouseLeaveHideDelay,d=e.onOpen,p=e.placement,f=void 0===p?"top":p,h=e.portalContainer,m=void 0===h?document.body:h,g=e.positionStrategy,y=void 0===g?"fixed":g,v=e.renderButton,b=e.shouldRender,x=void 0===b||b,w=e.showAfterSeconds,k=e.showAlways,S=void 0!==k&&k,C=e.style,E=e.type,O=void 0===E?"dark":E,$=e.usePortal,P=void 0!==$&&$,D=Wl({callbackAfterTimeout:n,hideAfterSeconds:o,onMouseEnter:l,onMouseLeave:c,onMouseLeaveHideDelay:u,onOpen:d,placement:f,positionStrategy:y,showAfterSeconds:w,showAlways:S}),T=D._onMouseEnter,A=D._onMouseLeave,_=D.attributes,M=D.childrenRef,j=D.popperRef,N=D.setArrowRef,R=D.show,F=D.showTooltip,L=D.styles,z=D.wrapperRef;return a?s.createElement("div",{className:r,style:C,ref:z},s.createElement("div",{ref:M,onClick:R,onMouseEnter:T,onMouseLeave:A},t),P?I(s.createElement(Bl,{shouldRender:!!a&&x,icon:i,message:a,renderButton:v,type:O,showTooltip:F,popperRef:j,styles:L,setArrowRef:N,attributes:_}),m):s.createElement(Bl,{shouldRender:!!a&&x,icon:i,message:a,renderButton:v,type:O,showTooltip:F,popperRef:j,styles:L,setArrowRef:N,attributes:_})):s.createElement(s.Fragment,null,t)};at.white[100],at.white[100];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(bl||(bl={}));var Vl,Gl,ql,Kl=D.div(Vl||(Vl=Zn(["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"],["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"])),(function(e){var n=e.imageUrl;return e.leftIcon||n?"8px":"0"}),(function(e){return e.rightIcon?"8px":"0"}),(function(e){var n=e.theme,t=e.type;return n.components.badge[null!=t?t:bl.SUCCESS].color}),(function(e){var n=e.theme,t=e.type;return n.components.badge[null!=t?t:bl.SUCCESS].backgroundColor})),Xl=function(e){var n,t=e.handleRightIconClick,r=e.imageUrl,o=e.leftIcon,i=e.rightIcon,a=e.text,l=e.tooltip;return s.createElement(Kl,Vn({},e),r&&s.createElement(_l,{size:16,image:r}),o&&s.createElement(wt,Vn({},o)),s.createElement(Ql,null,a),s.createElement(Yl,Vn({message:null!==(n=null==l?void 0:l.message)&&void 0!==n?n:"",shouldRender:!!i&&!!l},l),i&&s.createElement(wt,Vn({},i,{onClick:t}))))},Ql=D.div(Gl||(Gl=Zn(["\n padding: "," ",";\n"],["\n padding: "," ",";\n"])),Ml.xxs,Ml.xs);at.grey[900],at.grey[50],at.yellow[900],at.yellow[50],at.green[900],at.green[50],at.blue[900],at.blue[50],at.red[900],at.red[50];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(ql||(ql={}));var Zl,Jl,ec,nc,tc,rc,oc,ic,ac,lc,cc,sc,uc,dc,pc,fc=D.div(Zl||(Zl=Zn(["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"],["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.banner[null!=t?t:ql.STANDARD].color}),(function(e){var n=e.theme,t=e.type;return n.components.banner[null!=t?t:ql.STANDARD].backgroundColor})),hc=D.div(Jl||(Jl=Zn(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"]))),mc=function(e){var n=e.className,t=e.content,r=e.icon,o=e.onClose,i=e.type;return s.createElement(fc,{type:i,className:n},r&&s.createElement(wt,Vn({},r)),s.createElement(hc,null,t),o&&s.createElement(wt,{icon:U,onClick:o}))},gc=(at.white[100],at.blue[500],at.white[100],at.yellow[500],at.white[100],at.green[500],at.black[100],at.grey[200],at.white[100],at.red[500],function(e){var n=e.manualLock,t=void 0!==n&&n,r=e.onClick,o=e.timeMs,i=void 0===o?250:o,a=p(!0);return m((function(e){a.current&&!t&&(a.current=!1,setTimeout((function(){return a.current=!0}),i),null==r||r(e))}),[r,t,i])}),yc={large:40,medium:32},vc=function(e){var n=e.color,t=e.isDisabled,r=e.size,o=e.theme,i=e.type,a=o.components.button,l=a.defaultColor,c=a.defaultSize,s=a.defaultType,u=i||s,d=r||c,p=t?"disabled":n||l,f="primary"===u?"1px solid rgba(9,30,66, 0.16)":"",h=t?"default":"pointer",m=o.components.button[u][p];return Vn({height:yc[d],border:f,cursor:h},m)},bc=D(wt)(ec||(ec=Zn(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),xc=D(bc)(nc||(nc=Zn([""],[""]))),wc=D(bc)(tc||(tc=Zn([""],[""]))),kc=D(Ct)(rc||(rc=Zn(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"]))),Sc=D.div(oc||(oc=Zn(["\n display: inline-block;\n line-height: initial;\n"],["\n display: inline-block;\n line-height: initial;\n"]))),Cc=D.div(ic||(ic=Zn(["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0 12px;\n"],["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0 12px;\n"])),(function(e){return e.isLoading?0:1})),Ec=T(ac||(ac=Zn(["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n display: inline-block;\n"],["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n display: inline-block;\n"])),(function(e){return e.fullWidth?"100%":"initial"}),(function(e){return e.cursor}),(function(e){return e.border}),Cc,(function(e){return e.height}),xc,Sc,(function(e){return e.text}),(function(e){return e.normal}),(function(e){return e.textHover}),(function(e){return e.hover}),(function(e){return e.active})),Oc=D.a.attrs(vc)(lc||(lc=Zn(["\n ",";\n\n text-decoration: none;\n"],["\n ",";\n\n text-decoration: none;\n"])),Ec),$c=D.div.attrs(vc)(cc||(cc=Zn(["\n ",";\n"],["\n ",";\n"])),Ec),Pc=d((function(e,n){var t=e.href,r=Gn(e,["href"]);return t?s.createElement(Oc,Vn({},r,{href:t,ref:n})):s.createElement($c,Vn({},r,{ref:n}))})),Dc=d((function(e,n){var t=e.className,r=e.color,o=e.fullWidth,i=void 0!==o&&o,a=e.href,l=e.iconLeft,c=e.iconRight,u=e.isDisabled,d=void 0!==u&&u,p=e.isLoading,f=void 0!==p&&p,h=e.onClick,m=e.size,g=e.target,y=e.text,v=e.type,b=gc({onClick:h,manualLock:f||d});return s.createElement(Pc,{ref:n,className:t,size:m,color:r,onClick:b,href:a,type:v,isDisabled:d,fullWidth:i,target:g},s.createElement(Cc,{isLoading:f},l&&s.createElement(xc,Vn({},l)),y&&s.createElement(Sc,null,y),c&&s.createElement(wc,Vn({},c))),f&&s.createElement(kc,null))})),Tc=(at.blue[500],at.blue[700],at.blue[900],at.white[100],at.grey[100],at.red[500],at.red[700],at.red[900],at.white[100],at.grey[100],at.green[500],at.green[700],at.green[900],at.white[100],at.grey[100],at.white[100],at.grey[100],at.grey[200],at.black[100],at.black[100],at.yellow[500],at.yellow[700],at.yellow[900],at.white[100],at.grey[100],at.grey[50],at.grey[50],at.grey[50],at.grey[200],at.grey[200],at.blue[50],at.blue[100],at.blue[200],at.blue[900],at.blue[900],at.red[50],at.red[100],at.red[200],at.red[900],at.red[900],at.green[50],at.green[100],at.green[200],at.green[900],at.green[900],at.yellow[50],at.yellow[100],at.yellow[200],at.yellow[900],at.yellow[900],at.grey[50],at.grey[100],at.grey[200],at.black[100],at.black[100],at.grey[50],at.grey[50],at.grey[50],at.grey[200],at.grey[200],at.blue[50],at.blue[100],at.blue[500],at.blue[500],at.red[50],at.red[100],at.red[500],at.red[500],at.green[50],at.green[100],at.green[500],at.green[500],at.grey[50],at.grey[100],at.grey[500],at.grey[500],at.yellow[50],at.yellow[100],at.yellow[500],at.yellow[500],at.grey[200],at.grey[200],D.div.attrs((function(e){var n=e.color,t=e.isDisabled,r=e.theme,o=e.type,i=r.components.iconButton,a=i.defaultColor,l=i.defaultType,c=t?"disabled":n||a,s=o||l;return r.components.iconButton[s][c]}))(sc||(sc=Zn(["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n user-select: none;\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"],["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n user-select: none;\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"])),(function(e){return e.isDisabled?"default":"pointer"}),(function(e){return e.normal}),(function(e){return e.hover}))),Ac=d((function(e,n){var t=e.icon,r=e.onClick,o=Gn(e,["icon","onClick"]),i=gc({onClick:r,manualLock:o.isDisabled});return s.createElement(Tc,Vn({},o,{ref:n,onClick:i}),s.createElement(wt,Vn({},t)))})),_c=(at.blue[200],at.blue[500],at.red[200],at.red[500],at.green[200],at.green[500],at.yellow[200],at.yellow[500],at.grey[200],at.grey[200],at.blue[200],at.white[100],at.red[200],at.white[100],at.green[200],at.white[100],at.yellow[200],at.white[100],at.grey[200],at.grey[200],["large","medium"]),Mc=["primary","secondary","text"],jc=["blue","red","green","grey","yellow"],Nc=["disabled"],Rc=["normal","hover","active","text","textHover"],Ic={transparent:{primary:{background:"transparent",border:at.grey[300]},secondary:{background:"transparent",border:at.grey[300]}},grey:{primary:{background:at.white[100],border:at.grey[100]},secondary:{background:at.grey[50],border:at.grey[50]}},yellow:{primary:{background:at.yellow[500],border:at.yellow[500]},secondary:{background:at.yellow[50],border:at.yellow[500]}},red:{primary:{background:at.red[500],border:at.red[500]},secondary:{background:at.red[50],border:at.red[500]}},blue:{primary:{background:at.blue[500],border:at.blue[500]},secondary:{background:at.blue[50],border:at.blue[500]}},green:{primary:{background:at.green[500],border:at.green[500]},secondary:{background:at.green[50],border:at.green[500]}}};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary"}(uc||(uc={})),function(e){e.BLUE="blue",e.GREEN="green",e.GREY="grey",e.RED="red",e.TRANSPARENT="transparent",e.YELLOW="yellow"}(dc||(dc={})),function(e){e[e.FLAT=0]="FLAT",e[e.LOW=1]="LOW",e[e.HIGH=2]="HIGH"}(pc||(pc={}));var Fc,Lc,zc,Bc,Hc,Wc,Uc,Yc,Vc,Gc,qc,Kc,Xc,Qc,Zc,Jc,es,ns,ts,rs=D.div(zc||(zc=Zn(["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"],["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"])),(function(e){var n=e.color,t=e.elevation,r=e.outlined,o=e.theme,i=e.type;return T(Fc||(Fc=Zn(["\n background-color: ",";\n border: 1px solid ",";\n "],["\n background-color: ",";\n border: 1px solid ",";\n "])),o.components.card[n][i].background,o.components.card[n][i][r&&t<=0?"border":"background"])}),(function(e){var n=e.elevation;return n>0&&T(Lc||(Lc=Zn(["\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "],["\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "])),1*n,3*n,1*n,2*n,5*n)})),os=d((function(e,n){var t=e.children,r=e.color,o=void 0===r?dc.GREY:r,i=e.elevation,a=void 0===i?0:i,l=e.outlined,c=void 0!==l&&l,u=e.type,d=void 0===u?uc.PRIMARY:u,p=Gn(e,["children","color","elevation","outlined","type"]);return s.createElement(rs,Vn({ref:n,color:o,elevation:a,outlined:c,type:d},p),t)})),is=D.div(Hc||(Hc=Zn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n ",";\n"])),(function(e){var n=e.gap;return T(Bc||(Bc=Zn(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n)})),as=D.div(Wc||(Wc=Zn(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),ls=new Map([["jpg","img"],["jpeg","img"],["png","img"],["gif","img"],["mp4","video"],["webm","video"],["ogg","video"],["3gp","video"]]),cs=function(e){var n=e.src,t=e.className,r=e.showVideoControls,o=void 0===r||r;return function(e){var n=new URL(e).pathname.split(".")[1];return"video"===ls.get(n)}(n)?s.createElement("video",{controls:o,controlsList:"nodownload",src:n,className:t}):s.createElement("img",{src:n,className:t})},ss=D(cs)(Uc||(Uc=Zn(["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"],["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"]))),us=D(Ac)(Yc||(Yc=Zn(["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"],["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.white[100]})),ds=D(is)(Vc||(Vc=Zn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),ps=function(e){var t=e.src,r=e.openFullscreen;return s.createElement(ds,null,s.createElement(ss,{src:t}),s.createElement(us,{icon:{icon:n},onClick:r}))},fs=D.li(Gc||(Gc=Zn(["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"],["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"]))),hs=D(cs)(Kc||(Kc=Zn(["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"],["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"])),(function(e){return e.isSelected&&T(qc||(qc=Zn(["\n filter: brightness(65%);\n "],["\n filter: brightness(65%);\n "])))})),ms=s.forwardRef((function(e,n){var t=e.src,r=e.isSelected,o=e.onClick;return s.createElement(fs,{onClick:o,ref:n},s.createElement(hs,{isSelected:r,src:t,showVideoControls:!1}))})),gs=D(is)(Xc||(Xc=Zn(["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"],["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"]))),ys=D.ul(Zc||(Zc=Zn(["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"],["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"])),(function(e){return e.mediaCount<3&&T(Qc||(Qc=Zn(["\n justify-content: center;\n "],["\n justify-content: center;\n "])))})),vs=D(Ac)(Jc||(Jc=Zn(["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"],["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"])),(function(e){return e.theme.palette.grey[800]})),bs=D(vs)(es||(es=Zn(["\n right: -32px;\n"],["\n right: -32px;\n"]))),xs=D(vs)(ns||(ns=Zn(["\n left: -32px;\n"],["\n left: -32px;\n"]))),ws=function(e){var n=e.media,o=e.selectedMedia,i=e.setSelectedMedia,a=p([]),l=m((function(e){i(e),function(e,n){var t;null===(t=n.current[e])||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}(e,a)}),[i]),c=m((function(e){l(function(e,n,t){return(n+e+("back"===t?-1:1))%n}(o,n.length,e))}),[o,n.length,l]);return s.createElement(gs,null,s.createElement(ys,{mediaCount:n.length},n.map((function(e,n){return s.createElement(ms,{key:n,src:e,isSelected:o===n,onClick:function(){return l(n)},ref:function(e){return a.current[n]=e}})}))),s.createElement(bs,{onClick:function(){return c("forward")},icon:{icon:t}}),s.createElement(xs,{onClick:function(){return c("back")},icon:{icon:r}}))};!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(ts||(ts={}));var ks,Ss,Cs,Es,Os,$s,Ps,Ds,Ts,As,_s,Ms,js,Ns=D(wt)(ks||(ks=Zn(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),Rs=D(wt)(Ss||(Ss=Zn(["\n cursor: pointer;\n margin-left: 4px;\n"],["\n cursor: pointer;\n margin-left: 4px;\n"]))),Is=D.div(Cs||(Cs=Zn([""],[""]))),Fs=D.div($s||($s=Zn(["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"],["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"])),Ml.xs,(function(e){var n=e.theme,t=e.type,r=void 0===t?ts.STANDARD:t;return T(Es||(Es=Zn(["\n background-color: ",";\n color: ",";\n "],["\n background-color: ",";\n color: ",";\n "])),n.components.chip[r].backgroundColor,n.components.chip[r].color)}),(function(e){var n=e.statusEdit,t=e.theme,r=e.type,o=void 0===r?ts.STANDARD:r;if(n)return T(Os||(Os=Zn(["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),t.components.chip[o].hover,t.components.chip[o].active)})),Ls=function(e){var n=e.closeAction,t=e.leftIcon,r=e.statusEdit,o=e.text;return s.createElement(Fs,Vn({},e),t&&s.createElement(Ns,Vn({},t)),s.createElement(Is,null,o),r&&s.createElement(Rs,{icon:U,onClick:function(){n&&n()}}))},zs=(at.black[100],at.grey[100],at.grey[200],at.grey[300],at.green[900],at.green[100],at.green[200],at.green[300],at.blue[900],at.blue[100],at.blue[200],at.blue[300],at.yellow[900],at.yellow[100],at.yellow[200],at.yellow[300],at.red[900],at.red[100],at.red[200],at.red[300],200),Bs="M30,90 A40,40 0 1,1 80,90",Hs=D.path(Ps||(Ps=Zn(["\n stroke-linecap: round;\n stroke: ",";\n stroke-width: 8;\n fill-opacity: 0;\n"],["\n stroke-linecap: round;\n stroke: ",";\n stroke-width: 8;\n fill-opacity: 0;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trailBorder})),Ws=D.path(Ds||(Ds=Zn(["\n stroke-linecap: round;\n stroke-width: 6;\n fill-opacity: 0;\n stroke: ",";\n"],["\n stroke-linecap: round;\n stroke-width: 6;\n fill-opacity: 0;\n stroke: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trail})),Us=D.path(Ts||(Ts=Zn(["\n stroke: ",";\n stroke-width: 6;\n stroke-linecap: round;\n fill-opacity: 0;\n"],["\n stroke: ",";\n stroke-width: 6;\n stroke-linecap: round;\n fill-opacity: 0;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].path})),Ys=D.circle(As||(As=Zn(["\n stroke: ",";\n fill: white;\n stroke-width: 0.5;\n"],["\n stroke: ",";\n fill: white;\n stroke-width: 0.5;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trailBorder})),Vs=D.div(_s||(_s=Zn(["\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n"]))),Gs=D(el)(Ms||(Ms=Zn(["\n color: rgba(0, 0, 0, 0.64);\n"],["\n color: rgba(0, 0, 0, 0.64);\n"]))),qs=function(e){var n=e.percentage,t=e.subtitle,r=e.type,o=0===n?199:(100-n)/100*zs+"px";return s.createElement(s.Fragment,null,s.createElement("svg",{viewBox:"10 10 90 90",width:"100%",height:"100%"},s.createElement(Hs,{type:r,d:Bs}),s.createElement(Ws,{d:Bs,type:r}),s.createElement("foreignObject",{textAnchor:"middle",x:"28%",y:"40%",width:60,height:60},s.createElement(Vs,null,s.createElement(Za,null,n+"%"),"string"==typeof t?s.createElement(Gs,null,t):t)),s.createElement(Us,{d:Bs,type:r,pathLength:zs,strokeDasharray:"200px 200px",strokeDashoffset:o}),s.createElement(Ys,{cx:"0",cy:"0",r:"1.75",type:r,path:Bs,pathLength:n},s.createElement("animateMotion",{restart:"always",repeatCount:"indefinite",keyPoints:n/100+";"+n/100,keyTimes:"0;1",path:Bs,dur:"1s"}))))};!function(e){e.STANDARD="standard",e.WARNING="warning",e.ERROR="error"}(js||(js={}));var Ks,Xs,Qs,Zs,Js,eu,nu,tu,ru,ou,iu,au,lu,cu,su,uu,du,pu,fu,hu,mu,gu,yu,vu,bu,xu,wu,ku,Su,Cu,Eu,Ou=D.div(Ks||(Ks=Zn(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: ",";\n padding: 12px;\n border-radius: 8px;\n border: ",";\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: ",";\n padding: 12px;\n border-radius: 8px;\n border: ",";\n"])),(function(e){return e.theme.components.closableCard.background}),(function(e){return"0.5px solid "+e.theme.components.closableCard.border})),$u=D(el)(Xs||(Xs=Zn(["\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n text-align: center;\n"],["\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n text-align: center;\n"]))),Pu=D(el)(Qs||(Qs=Zn(["\n text-align: center;\n font-size: 14px;\n line-height: 22px;\n font-weight: 400;\n"],["\n text-align: center;\n font-size: 14px;\n line-height: 22px;\n font-weight: 400;\n"]))),Du=D(wt)(Zs||(Zs=Zn(["\n cursor: pointer;\n position: absolute;\n top: 8px;\n right: 8px;\n"],["\n cursor: pointer;\n position: absolute;\n top: 8px;\n right: 8px;\n"]))),Tu=function(e){var n=e.className,t=e.onClose,r=e.renderSubtitleElement,o=e.subtitle,i=e.title;return s.createElement(Ou,{className:n},s.createElement($u,null,i),o&&s.createElement(Pu,null,o),null==r?void 0:r(),t&&s.createElement(Du,{icon:ge}))},Au=(at.white[80],at.grey[200],D.span(Js||(Js=Zn(["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"],["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"])),(function(e){return e.theme.components.dropdown.shortcut.color}))),_u=function(e){var n=e.active,t=e.className,r=e.componentId,o=e.icon,i=e.isDisabled,a=e.onClick,l=e.rowHasFocus,c=e.shortcut,u=e.text,d=Gn(e,["active","className","componentId","icon","isDisabled","onClick","rowHasFocus","shortcut","text"]),p=m((function(e){return!i&&(null==a?void 0:a(e))}),[i,a]);return s.createElement(Mu,Vn({active:!!n,className:t||"",id:r,isDisabled:i,onClick:p,rowHasFocus:Boolean(l),tabIndex:-1},d),s.createElement(ju,null,o&&s.createElement(wt,Vn({},o)),s.createElement(Nu,null,u),c&&s.createElement(Au,null,c)))},Mu=D.div.attrs((function(e){var n=e.active,t=e.isDisabled,r=e.theme,o=e.type,i=void 0===o?"default":o,a=r.components.dropdown.items.notActive[i],l=r.components.dropdown.items.active,c=n?l:a;return{opacity:t?.5:1,background:c.background,color:c.color,hoverBackground:c.hoverBackground}}))(tu||(tu=Zn(["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.opacity}),(function(e){return e.color}),(function(e){return e.background}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground;return!n&&T(eu||(eu=Zn(["\n :hover {\n background-color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n }\n "])),t)}),(function(e){var n=e.hoverBackground;return T(nu||(nu=Zn(["\n background-color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n outline: 0 solid transparent;\n "])),n)})),ju=D.div(ru||(ru=Zn(["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"]))),Nu=D.div(ou||(ou=Zn(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"]))),Ru=D.div(iu||(iu=Zn(["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"],["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"])),(function(e){return e.theme.components.dropdown.separator.color})),Iu=function(){return s.createElement(Ru,null)},Fu=D.div(au||(au=Zn(["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"],["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"])),(function(e){return e.theme.components.dropdown.title.color})),Lu=function(e){var n=e.avatarSize,t=e.img,r=e.noText,o=e.onClick,i=e.placeholder,a=e.renderText,l=e.text;return s.createElement(zu,{clickable:!!o,onClick:o},s.createElement(_l,{image:t,placeholder:i,size:n||24,text:l}),s.createElement(Bu,null,a||(l||r)))},zu=D.div(cu||(cu=Zn(["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"],["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"])),(function(e){return e.clickable&&T(lu||(lu=Zn(["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "],["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "])),(function(e){return e.theme.components.dropdown.items.notActive.default.hoverBackground}))})),Bu=D.div(su||(su=Zn(["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"],["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"]))),Hu=function(e,n){return e.replace(":id",""+n)},Wu=function(e,n,t,r,o,i){if(void 0===i&&(i=-1),!n.includes(":id"))throw new Error("Selector pattern require :id");var a=f(i),l=a[0],c=a[1],s=f(null),u=s[0],d=s[1],p=document.getElementById(e);return null==p||p.addEventListener("focusout",(function(e){!t&&e.relatedTarget instanceof Node&&!p.contains(e.relatedTarget)&&(c(-1),d(null))})),null==p||p.addEventListener("focus",(function(){if(!t){var e=i>=0?i:0,r=document.getElementById(Hu(n,e));null==r||r.focus(),d(r),c(e)}})),null==p||p.addEventListener("mousemove",(function(){u&&(u.blur(),d(null))})),_e("ArrowUp",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.max(l-1,0),o=document.getElementById(Hu(n,r));o&&(o.focus(),d(o),c(r))}}),{target:p},[l,t,n]),_e("ArrowDown",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.min(l+1,o),i=document.getElementById(Hu(n,r));i&&(i.focus(),d(i),c(r))}}),{target:p},[l,t,o,n]),_e("Enter",(function(e){e.preventDefault(),t||l>=0&&r(l)}),{target:p},[l,t]),[l,c,null!==u]},Uu=function(e){var n=e.title,t=e.isDisabled;return s.createElement(Dc,{text:n,isDisabled:t,iconRight:{icon:Y}})},Yu=D.div(uu||(uu=Zn(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n"],["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n"]))),Vu=function(e){var n=e.children,t=e.onClick;return s.createElement(Yu,{onClick:t},n)},Gu=function(e){var n=e.closeDropdown,t=e.componentId,r=e.content,o=e.emptyState,i=e.fullWidth,a=e.maxWidth,l=e.rowHasFocus,c=e.setHighlightedItem,d=u((function(){return r.map((function(e,r){var o=e.onClick;e.onMouseEnter;var u=Gn(e,["onClick","onMouseEnter"]);return s.createElement(_u,Vn({componentId:t+"_"+r+"_listItem",fullWidth:i,maxWidth:a,key:r,onMouseEnter:function(){return!l&&c(r)},onClick:function(e){e.stopPropagation(),null==o||o(e),n()},rowHasFocus:l},u))}))}),[n,t,r,i,a,l,c]);return r&&r.length>0?s.createElement(s.Fragment,null,d):o?s.createElement(s.Fragment,null,o):s.createElement(qu,null,"Non ci sono elementi da visualizzare")},qu=D.div(du||(du=Zn(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),Ku=D.div(pu||(pu=Zn(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Xu=D(Dc)(fu||(fu=Zn(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),Qu=D(Dc)(hu||(hu=Zn(["\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"]))),Zu=D.div(mu||(mu=Zn(["\n display: flex;\n"],["\n display: flex;\n"]))),Ju=T(vu||(vu=Zn(["\n overflow-y: auto;\n max-height: ",";\n\n ",";\n"],["\n overflow-y: auto;\n max-height: ",";\n\n ",";\n"])),(function(e){return e.maxHeight+"px"}),(function(e){var n=e.fullWidth,t=e.maxWidth;return t?T(gu||(gu=Zn(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),ft(t)):T(yu||(yu=Zn(["\n width: ",";\n "],["\n width: ",";\n "])),n?"auto":"200px")})),ed=D.div(bu||(bu=Zn(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),Ju),nd=D.div(xu||(xu=Zn(["\n ","\n"],["\n ","\n"])),Ju),td=D.div(ku||(ku=Zn(["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"],["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"])),(function(e){return e.withPadding&&T(wu||(wu=Zn(["\n padding: 8px 0;\n "],["\n padding: 8px 0;\n "])))}),(function(e){return e.theme.components.dropdown.color}),(function(e){return e.theme.components.dropdown.backgroundColor})),rd=D.div(Su||(Su=Zn(["\n position: absolute;\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-done {\n z-index: initial;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n position: absolute;\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-done {\n z-index: initial;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),od=d((function(e,n){var t=e.attributes,r=e.blockIframeClick,o=e.closeDropdown,i=e.content,a=e.disableArrowNavigation,l=e.dropdownId,c=e.emptyState,d=e.fullWidth,p=e.internalMaxHeight,f=e.internalState,h=e.maxWidth,m=e.onClose,g=e.onOpen,y=e.renderContent,v=e.rowHasFocus,b=e.setArrowRef,x=e.setHighlightedItem,w=e.styles,k=e.withPadding,S=u((function(){return s.createElement(td,Vn({ref:n,style:w.popper},t.popper,{withPadding:k}),s.createElement("div",{ref:b,style:w.arrow}),s.createElement("div",{style:w.offset},i?s.createElement(ed,{id:l+"_list",fullWidth:d,maxWidth:h,maxHeight:p},s.createElement(Gu,{closeDropdown:o,componentId:l,content:i,disableArrowNavigation:a,fullWidth:d,maxWidth:h,rowHasFocus:v,setHighlightedItem:x,emptyState:c})):s.createElement(nd,{maxWidth:h,maxHeight:p,fullWidth:d},null==y?void 0:y(o))))}),[t.popper,o,i,a,l,c,d,p,h,n,y,v,b,x,w.arrow,w.offset,w.popper,k]);return s.createElement(L,{in:f,timeout:200,unmountOnExit:!0,appear:!0,onExit:function(){return null==m?void 0:m(!f)},onEnter:function(){return null==g?void 0:g(f)}},s.createElement(rd,null,r?s.createElement(Vu,{onClick:function(){return null==o?void 0:o()}},S):S))})),id=function(e){var n,t=e.blockIframeClick,r=e.className,o=e.content,i=e.disableArrowNavigation,a=void 0!==i&&i,l=e.emptyState,c=e.fullWidth,d=e.isDisabled,g=e.maxHeight,y=e.maxWidth,v=e.minWidthAsTrigger,b=void 0!==v&&v,x=e.offsetY,w=void 0===x?4:x,k=e.onClose,S=e.onOpen,C=e.open,E=e.outsideTriggers,O=e.placement,$=void 0===O?"bottom-start":O,P=e.portalContainer,D=void 0===P?document.body:P,T=e.renderContent,A=e.renderTrigger,_=e.setOpen,M=e.sideButton,j=e.title,N=e.triggerStyles,R=e.usePortal,F=void 0!==R&&R,L=e.withPadding,B=void 0===L||L,H=f(mt())[0],W=f(null!=C&&C),U=W[0],V=W[1],G=f(99999),q=G[0],K=G[1];h((function(){void 0!==C&&V(C)}),[C]);var X=m((function(){void 0!==_?_(!1):V(!1)}),[_]),Q=m((function(e){d||(void 0!==_?_((function(e){return!e})):V((function(e){return!e})),e.stopPropagation(),e.preventDefault())}),[d,_]),Z=p(null);Hl(Z,U,X,E);var J=m((function(e){return null==o?void 0:o[e].onClick}),[o]),ee=Wu(H+"_list",H+"_:id_listItem",a,J,null!==(n=null==o?void 0:o.length)&&void 0!==n?n:0),ne=ee[1],te=ee[2],re=f(null),oe=re[0],ie=re[1],ae=p(null),le=f(null),ce=le[0],se=le[1],ue=z(ae.current,oe,{placement:$,strategy:"fixed",modifiers:u((function(){return[{name:"computeStyles",options:{gpuAcceleration:!1}},{name:"arrow",options:{element:ce}},{name:"offset",enabled:!0,options:{offset:[0,w]}},{name:"minWidthAsTrigger",enabled:b,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n=e.state;n.styles.popper.minWidth=n.rects.reference.width+"px"},effect:function(e){var n=e.state,t=n.elements.reference.getBoundingClientRect().width;n.elements.popper.style.minWidth=t+"px"}}]}),[ce,w,b])}),de=ue.attributes,pe=ue.styles,fe=m((function(){var e,n,t,r=null===(e=Z.current)||void 0===e?void 0:e.getBoundingClientRect(),o="string"==typeof g?ht(g):null!=g?g:99999,i=o;r&&(i=(null===(n=null==de?void 0:de.popper)||void 0===n?void 0:n["data-popper-placement"].includes("bottom"))?window.innerHeight-r.bottom-4-8-16:(null===(t=null==de?void 0:de.popper)||void 0===t?void 0:t["data-popper-placement"].includes("top"))?r.top-4-8-16:window.innerHeight-8-8-16),K(Math.max(Math.min(Math.abs(i),o),100))}),[de,g]);return h((function(){return fe(),window.addEventListener("resize",fe),window.addEventListener("scroll",fe),function(){window.removeEventListener("resize",fe),window.removeEventListener("scroll",fe)}}),[fe]),s.createElement(Zu,{id:H,className:r,ref:Z},M?s.createElement(Ku,{ref:ae},s.createElement(Xu,Vn({},M,{isDisabled:d})),s.createElement(Qu,{iconRight:{icon:Y},onClick:Q,isDisabled:d})):s.createElement("div",{style:N,ref:ae,onClick:Q},j?s.createElement(Uu,{title:j,isDisabled:d}):null==A?void 0:A()),function(e,n,t){return t?I(e,n):e}(s.createElement(od,{attributes:de,closeDropdown:X,content:o,disableArrowNavigation:a,dropdownId:H,emptyState:l,fullWidth:c,internalMaxHeight:q,internalState:U,maxWidth:y,onClose:k,onOpen:S,ref:ie,renderContent:T,rowHasFocus:te,setArrowRef:se,setHighlightedItem:ne,styles:pe,withPadding:B,blockIframeClick:t}),D,F))},ad=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Yn(n,e),n.prototype.render=function(){return s.createElement(id,Vn({},this.props))},n.Item=_u,n.Title=function(e){return n=e,s.createElement(Fu,null,n.text);var n},n.Separator=Iu,n.UserListItem=Lu,n}(g);at.grey[900],at.white[100],at.black[100],at.blue[50],at.grey[100],at.black[100],at.grey[100],at.red[500],at.red[50],at.green[500],at.green[50],at.yellow[500],at.yellow[50],at.blue[500],at.blue[50],at.grey[700],at.grey[100],at.grey[500],at.white[100],at.grey[500],at.white[100],at.yellow[500],at.white[100],at.green[500],at.white[100],at.blue[500],at.white[100],at.red[500],at.white[100],at.grey[200];!function(e){e.EXTRA_EXTRA_SMALL="extra-extra-small",e.EXTRA_SMALL="extra-small",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Cu||(Cu={})),function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Eu||(Eu={}));var ld,cd,sd,ud,dd,pd,fd,hd,md,gd,yd,vd,bd,xd,wd,kd,Sd,Cd,Ed,Od,$d=D.span(pd||(pd=Zn(["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"],["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.floatingBadge[null!=t?t:Eu.STANDARD].backgroundColor}),(function(e){var n=e.theme,t=e.type;return n.components.floatingBadge[null!=t?t:Eu.STANDARD].color}),(function(e){return function(e){switch(e){case Cu.EXTRA_EXTRA_SMALL:return T(ld||(ld=Zn(["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "],["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "])));case Cu.EXTRA_SMALL:return T(cd||(cd=Zn(["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "],["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "])));case Cu.SMALL:return T(sd||(sd=Zn(["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "],["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "])));case Cu.LARGE:return T(ud||(ud=Zn(["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "],["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "])));default:return T(dd||(dd=Zn(["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "],["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "])))}}(e.size)})),Pd=D($d)(gd||(gd=Zn(["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"],["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"])),(function(e){return function(e){switch(e){case"small":return T(fd||(fd=Zn(["\n top: 3px;\n right: 3px;\n "],["\n top: 3px;\n right: 3px;\n "])));case"large":return T(hd||(hd=Zn(["\n top: -1px;\n right: -1px;\n "],["\n top: -1px;\n right: -1px;\n "])));default:return T(md||(md=Zn(["\n top: 1px;\n right: 1px;\n "],["\n top: 1px;\n right: 1px;\n "])))}}(e.size)}),(function(e){var n=e.top;return void 0!==n?n+"px":void 0}),(function(e){var n=e.right;return void 0!==n?n+"px":void 0}),(function(e){return e.counter})),Dd=function(e){var n=e.children,t=Gn(e,["children"]);return s.createElement(Td,null,n,!t.isDisabled&&s.createElement(Pd,Vn({},t)))},Td=D.div(yd||(yd=Zn(["\n display: inline-block;\n position: relative;\n"],["\n display: inline-block;\n position: relative;\n"]))),Ad=D.span.attrs((function(e){var n=e.disabled,t=e.large,r=e.hasError,o=e.palette;return{fontSize:t?"16px":"14px",cursor:n?"not-allowed":"pointer",opacity:n?.16:1,color:r?o.error:o.normal}}))(vd||(vd=Zn(["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"],["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"])),(function(e){return e.fontSize}),(function(e){return e.cursor}),(function(e){return e.color}),(function(e){return e.opacity})),_d=D.div(bd||(bd=Zn(["\n display: flex;\n gap: 8px;\n width: fit-content;\n"],["\n display: flex;\n gap: 8px;\n width: fit-content;\n"]))),Md=D.div(xd||(xd=Zn(["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n min-width: 0;\n"],["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n min-width: 0;\n"]))),jd=D.input(wd||(wd=Zn(["\n display: none;\n"],["\n display: none;\n"]))),Nd=function(e){var n=e.status,t=e.message,r=function(e,n){var t=A();return n||null===n?n:t.components.inputHelper[e].defaultIcon}(n,e.icon);return s.createElement(Id,{status:n},r&&s.createElement(Rd,Vn({},r)),t)},Rd=D(wt)(kd||(kd=Zn(["\n margin-top: 2px;\n"],["\n margin-top: 2px;\n"]))),Id=D.div(Sd||(Sd=Zn(["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"],["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].background}),Rd,(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}));!function(e){e.CHECKED="checked",e.UNCHECKED="unchecked",e.INDETERMINATE="indeterminate"}(Cd||(Cd={})),function(e){e.NORMAL="normal",e.ERROR="error"}(Ed||(Ed={})),function(e){e.TICKCOLOR="tickColor",e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(Od||(Od={}));var Fd,Ld,zd,Bd,Hd={checked:V,indeterminate:G,unchecked:null},Wd=function(e){return"boolean"==typeof e?e?Cd.CHECKED:Cd.UNCHECKED:e},Ud=D.span.attrs((function(e){var n=e.disabled,t=e.hasError,r=e.large,o=e.theme,i=e.value,a=o.components.checkbox.input,l=a.error,c=a.normal,s=r?"20px":"16px",u=(t?l:c)[i],d=u.backgroundColor,p=u.borderColor;return{backgroundColor:d,tickColor:u.tickColor,borderColor:p,cursor:n?"not-allowed":"pointer",height:s,width:s,opacity:n?.3:1}}))(Fd||(Fd=Zn(["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"],["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.backgroundColor}),(function(e){return e.tickColor}),(function(e){return"1px solid "+e.borderColor}),(function(e){return e.cursor}),(function(e){return e.opacity})),Yd=D.span(Ld||(Ld=Zn(["\n margin-left: 2px;\n color: ",";\n"],["\n margin-left: 2px;\n color: ",";\n"])),(function(e){return e.theme.palette.red[600]})),Vd=function(e){var n=e.className,t=e.disabled,r=e.helper,o=e.large,i=e.onChange,a=e.onClick,l=e.required,c=e.text,u=e.value,d=m((function(){var e;return null===(e=v.current)||void 0===e?void 0:e.click()}),[]),f=m((function(e){return!t&&a&&a(e)}),[t,a]),g=A(),y=Hd[u],v=p(null);h((function(){if(v.current)switch(u){case Cd.CHECKED:v.current.checked=!0,v.current.indeterminate=!1;break;case Cd.INDETERMINATE:v.current.checked=!1,v.current.indeterminate=!0;break;case Cd.UNCHECKED:v.current.checked=!1,v.current.indeterminate=!1}}),[u]);var b="error"===(null==r?void 0:r.status);return s.createElement(Md,null,s.createElement(_d,{className:n,onClick:d},s.createElement(Ud,{value:u,large:o,disabled:t,hasError:b},y&&s.createElement(wt,{icon:y})),s.createElement(jd,{ref:v,type:"checkbox",value:u,onClick:f,onChange:i,disabled:t}),!!c&&s.createElement(Ad,{large:o,disabled:t,hasError:b,palette:g.components.checkbox.label},c,l&&s.createElement(Yd,null,"*"))),r&&s.createElement(Nd,Vn({},r)))},Gd=function(e){var n=e.value,t=Gn(e,["value"]);return s.createElement(Vd,Vn({},t,{value:Wd(n)}))},qd={tickColor:at.white[100],backgroundColor:at.blue[500],borderColor:at.blue[500]},Kd={tickColor:at.white[100],backgroundColor:at.red[500],borderColor:at.red[500]},Xd=(at.white[100],at.grey[500],at.white[100],at.red[500],at.black[100],at.red[500],function(e){void 0===e&&(e=Cd.UNCHECKED);var n=f((function(){return Wd(e)})),t=n[0],r=n[1],o=t===Cd.CHECKED,i=m((function(){return r(Cd.CHECKED)}),[]),a=m((function(){return r(Cd.UNCHECKED)}),[]),l=m((function(){return r(Cd.INDETERMINATE)}),[]),c=m((function(){return r((function(e){return e===Cd.UNCHECKED?Cd.CHECKED:Cd.UNCHECKED}))}),[]);return{status:t,value:o,setCheck:i,setUncheck:a,setIndeterminate:l,toggleCheckbox:c}}),Qd=T(zd||(zd=Zn(["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"],["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Bd||(Bd={}));var Zd,Jd,ep=D.label(Zd||(Zd=Zn(["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"],["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"])),(function(e){var n=e.color,t=e.disabled;return function(e){var n=e.theme,t=e.color;return e.disabled?n.components.label[Bd.DISABLED]:Object.values(Bd).includes(t)?n.components.label[t]:t||n.components.label[Bd.STANDARD]}({theme:e.theme,color:n,disabled:t})}),(function(e){return e.required&&np}),Qd),np=T(Jd||(Jd=Zn(["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"],["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"])),(function(e){return e.theme.components.label[Bd.ERROR]})),tp=function(e){var n=e.label,t=e.disabled,r=e.required,o=e.color;return n?s.createElement(ep,{disabled:t,required:r,color:o},n):null};at.red[500],at.yellow[500],at.green[500],at.blue[500],at.black[100],at.grey[300];function rp(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}function op(e){return function(n,t){var r;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=t&&t.width?String(t.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(n):n]}}function ip(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t}(c,(function(e){return e.test(l)})):function(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t}(c,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(s):s,{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(l.length)}}}function ap(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(o.length)}}}function lp(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function cp(e){return cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cp(e)}var sp={};function up(e,n){var t,r,o,i,a,l,c,s;lp(1,arguments);var u=sp,d=function(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=function(e){lp(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===cp(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}var dp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pp={date:rp({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rp({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},fp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hp={code:"en-US",formatDistance:function(e,n,t){var r,o=dp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},formatLong:pp,formatRelative:function(e,n,t,r){return fp[e]},localize:{ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:op({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:op({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ap({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function mp(e,n,t){lp(2,arguments);var r=up(e,t),o=up(n,t);return r.getTime()===o.getTime()}var gp={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},yp={date:rp({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:rp({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vp={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},bp={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},xp={code:"es",formatDistance:function(e,n,t){var r,o=gp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"hace "+r:r},formatLong:yp,formatRelative:function(e,n,t,r){return 1!==n.getUTCHours()?bp[e]:vp[e]},localize:{ordinalNumber:function(e,n){return Number(e)+"º"},era:op({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:op({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:op({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ap({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},wp={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},kp={date:rp({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:rp({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Sp=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Cp(e){return"'"+Sp[e]+" alle' p"}var Ep={lastWeek:function(e,n,t){var r=e.getUTCDay();return mp(e,n,t)?Cp(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Sp[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return mp(e,n,t)?Cp(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Sp[e]+" prossimo alle' p"}(r)},other:"P"},Op={ordinalNumber:function(e,n){var t=Number(e);return String(t)},era:op({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:op({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},$p={ordinalNumber:ap({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},Pp={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},Dp={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},Tp={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},Ap={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},_p={en:hp,es:xp,it:{code:"it",formatDistance:function(e,n,t){var r,o=wp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},formatLong:kp,formatRelative:function(e,n,t,r){var o=Ep[e];return"function"==typeof o?o(n,t,r):o},localize:Op,match:$p,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Mp=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],jp=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],Np=["HH:mm:ss","HH:mm"],Rp=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],Ip=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],Fp=new RegExp(Object.keys(Dp).join("|"),"g"),Lp=new RegExp(Object.keys(Tp).join("|"),"g"),zp=function(e){var n;if("string"==typeof e&&(e=function(e){return(e=e.toLowerCase()).match(Fp)&&(e=e.replace(Fp,(function(e){return e in Dp?Dp[e]:e}))),e.match(Lp)&&(e=e.replace(Lp,(function(e){return e in Tp?Tp[e]:e}))),e.trim()}(e)),!function(e){return null!=e}(e)||!e)return new Date;if(function(e){return"number"==typeof e}(e)||e instanceof Date)return new Date(e);if(n=e,Mp.includes(n))return function(e){var n=new Date;switch(e){case"yesterday":case"YESTERDAY":return n.setDate(n.getDate()-1),n;case"tomorrow":case"TOMORROW":return n.setDate(n.getDate()+1),n;default:return new Date}}(e);var t=function(e){for(var n=function(e){return e.split(" ").reverse().some((function(e){return Np.some((function(n){return ta(e,n)}))}))}(e)?Ip:Rp,t=0;t<n.length;t++)if(ta(e,n[t].format,{locale:hp})&&n[t].pattern.test(e))return n[t].format;return null}(e);return t?na(e,t,new Date,{locale:hp}):new Date("michi")},Bp=function(e,n,t){void 0===t&&(t="it");var r,o=zp(e);return function(e){return e instanceof Date||(e=zp(e)),e instanceof Date&&!isNaN(e.getTime())}(o)?(r=n,jp.includes(r)&&(n=Pp[n]),ao(o,n,{locale:_p[t]})):Ap[t]};(new Date).getFullYear();var Hp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wp={exports:{}},Up={exports:{}},Yp={},Vp="function"==typeof Symbol&&Symbol.for,Gp=Vp?Symbol.for("react.element"):60103,qp=Vp?Symbol.for("react.portal"):60106,Kp=Vp?Symbol.for("react.fragment"):60107,Xp=Vp?Symbol.for("react.strict_mode"):60108,Qp=Vp?Symbol.for("react.profiler"):60114,Zp=Vp?Symbol.for("react.provider"):60109,Jp=Vp?Symbol.for("react.context"):60110,ef=Vp?Symbol.for("react.async_mode"):60111,nf=Vp?Symbol.for("react.concurrent_mode"):60111,tf=Vp?Symbol.for("react.forward_ref"):60112,rf=Vp?Symbol.for("react.suspense"):60113,of=Vp?Symbol.for("react.suspense_list"):60120,af=Vp?Symbol.for("react.memo"):60115,lf=Vp?Symbol.for("react.lazy"):60116,cf=Vp?Symbol.for("react.block"):60121,sf=Vp?Symbol.for("react.fundamental"):60117,uf=Vp?Symbol.for("react.responder"):60118,df=Vp?Symbol.for("react.scope"):60119;function pf(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case Gp:switch(e=e.type){case ef:case nf:case Kp:case Qp:case Xp:case rf:return e;default:switch(e=e&&e.$$typeof){case Jp:case tf:case lf:case af:case Zp:return e;default:return n}}case qp:return n}}}function ff(e){return pf(e)===nf}Yp.AsyncMode=ef,Yp.ConcurrentMode=nf,Yp.ContextConsumer=Jp,Yp.ContextProvider=Zp,Yp.Element=Gp,Yp.ForwardRef=tf,Yp.Fragment=Kp,Yp.Lazy=lf,Yp.Memo=af,Yp.Portal=qp,Yp.Profiler=Qp,Yp.StrictMode=Xp,Yp.Suspense=rf,Yp.isAsyncMode=function(e){return ff(e)||pf(e)===ef},Yp.isConcurrentMode=ff,Yp.isContextConsumer=function(e){return pf(e)===Jp},Yp.isContextProvider=function(e){return pf(e)===Zp},Yp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Gp},Yp.isForwardRef=function(e){return pf(e)===tf},Yp.isFragment=function(e){return pf(e)===Kp},Yp.isLazy=function(e){return pf(e)===lf},Yp.isMemo=function(e){return pf(e)===af},Yp.isPortal=function(e){return pf(e)===qp},Yp.isProfiler=function(e){return pf(e)===Qp},Yp.isStrictMode=function(e){return pf(e)===Xp},Yp.isSuspense=function(e){return pf(e)===rf},Yp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kp||e===nf||e===Qp||e===Xp||e===rf||e===of||"object"==typeof e&&null!==e&&(e.$$typeof===lf||e.$$typeof===af||e.$$typeof===Zp||e.$$typeof===Jp||e.$$typeof===tf||e.$$typeof===sf||e.$$typeof===uf||e.$$typeof===df||e.$$typeof===cf)},Yp.typeOf=pf;var hf={};
1
+ import{faCircleNotch as e,faExpandAlt as n,faChevronRight as t,faChevronLeft as r,faCircle as o,faEllipsisH as i,faGripVertical as a,faTimes as l}from"@fortawesome/pro-regular-svg-icons";import*as c from"react";import s,{useMemo as u,forwardRef as d,useRef as p,useState as f,useEffect as h,useCallback as m,Component as g,createElement as y,createRef as v,useImperativeHandle as b,useReducer as x,Fragment as w,isValidElement as k,useLayoutEffect as S,createContext as C,useContext as E,Children as O,PureComponent as $,cloneElement as P}from"react";import D,{css as T,useTheme as A,keyframes as _,createGlobalStyle as M,ThemeProvider as j}from"styled-components";import{FontAwesomeIcon as N}from"@fortawesome/react-fontawesome";import R,{createPortal as I,findDOMNode as F}from"react-dom";import{CSSTransition as L}from"react-transition-group";import{usePopper as z,Popper as B,Manager as H,Reference as W}from"react-popper";import{faTimes as U,faChevronDown as Y,faCheck as V,faMinus as G,faExclamationCircle as q,faExclamationTriangle as K,faInfoCircle as X,faCheckCircle as Q,faTimesCircle as Z,faCaretDown as J,faCircleNotch as ee,faSpinnerThird as ne,faEllipsisH as te,faCaretRight as re,faXmark as oe,faInfoSquare as ie,faAngleRight as ae,faPencil as le,faPlus as ce,faSortNumericDown as se,faTrashAlt as ue,faBackward as de,faRotateLeft as pe,faChevronRight as fe,faArrowDown as he,faCog as me}from"@fortawesome/pro-solid-svg-icons";import{faTimes as ge,faSearch as ye,faPlus as ve,faChevronDown as be,faAngleUp as xe,faAngleDown as we,faAngleLeft as ke,faAngleRight as Se,faArrowLeft as Ce,faExpandAlt as Ee,faCompressAlt as Oe,faGripVertical as $e,faCheck as Pe,faTimesCircle as De,faCog as Te,faEllipsisH as Ae}from"@fortawesome/pro-light-svg-icons";import{useKey as _e,useMount as Me,useLatest as je,useMeasure as Ne,useDebounce as Re}from"react-use";import Ie,{components as Fe}from"react-select";import Le from"react-select/async";import ze from"react-select/async-creatable";import Be from"react-select/creatable";import{faCheckCircle as He,faTimesCircle as We}from"@fortawesome/free-regular-svg-icons";import{faUpload as Ue,faSort as Ye,faSortDown as Ve,faSortUp as Ge,faRocket as qe,faGhost as Ke,faAddressBook as Xe,faAnalytics as Qe,faBadge as Ze,faBolt as Je,faBooks as en,faBox as nn,faCalendarDays as tn,faChartNetwork as rn,faComments as on,faCreditCard as an,faDownload as ln,faFileAlt as cn,faFile as sn,faPaintBrush as un,faGift as dn,faHandsUsd as pn,faLayerGroup as fn,faMicrochipAi as hn,faMoneyBillWave as mn,faPaintBrushAlt as gn,faPuzzlePiece as yn,faScrewdriverWrench as vn,faSparkles as bn,faUserFriends as xn,faWarehouseFull as wn,faCog as kn}from"@fortawesome/pro-duotone-svg-icons";import{isEqual as Sn,debounce as Cn,cloneDeep as En,find as On,filter as $n,includes as Pn,merge as Dn,property as Tn}from"lodash";import{useRowSelect as An,useFilters as _n,useGlobalFilter as Mn,useSortBy as jn,usePagination as Nn,useFlexLayout as Rn,useTable as In}from"react-table";import Fn from"lodash/range";import{ToastContainer as Ln,toast as zn}from"react-toastify";import Bn from"react-modal";import{library as Hn}from"@fortawesome/fontawesome-svg-core";import{faCaretRight as Wn}from"@fortawesome/free-solid-svg-icons";var Un=function(e,n){return Un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},Un(e,n)};function Yn(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}Un(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Vn=function(){return Vn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Vn.apply(this,arguments)};function Gn(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function qn(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}c((r=r.apply(e,n||[])).next())}))}function Kn(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function Xn(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function Qn(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function Zn(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var Jn,et,nt,tt={"2xs":"0.625em",xs:".75em",xl:"1.5em","2xl":"2em",sm:".875em",lg:"1.33em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},rt=function(e){var n=e.children,t=Gn(e,["children"]);return s.createElement(ot,Vn({},t),n)},ot=D.div(Jn||(Jn=Zn(["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"],["\n background-color: ",";\n border-radius: 50%;\n\n min-width: calc("," * ",");\n min-height: calc("," * ",");\n\n display: inline-flex;\n justify-content: center;\n align-items: center;\n"])),(function(e){var n=e.backgroundColor,t=e.color,r=e.theme;return n||r.components.iconBackground[t]||"transparent"}),2,(function(e){var n=e.size;return tt[n]}),2,(function(e){var n=e.size;return tt[n]})),it={900:"#064763",800:"#08648B",700:"#0A79A8",600:"#0B8AC0",500:"#0D97D5",400:"#4DB4E0",300:"#7DC8E8",200:"#A4D8EF",100:"#C6E7F5",50:"#E4F3FA"},at={black:{8:"rgba(51, 51, 51, 0.08)",16:"rgba(51, 51, 51, 0.16)",48:"rgba(51, 51, 51, 0.48)",80:"rgba(51, 51, 51, 0.8)",100:"#333333"},white:{8:"rgba(255, 255, 255, 0.08)",16:"rgba(255, 255, 255, 0.16)",48:"rgba(255, 255, 255, 0.48)",80:"rgba(255, 255, 255, 0.8)",100:"#FFFFFF"},grey:{900:"#22282B",800:"#384248",700:"#5A676D",600:"#65747B",500:"#6F7E86",400:"#7F8F94",300:"#A8B3B8",200:"#C4CBCF",100:"#EBEDEE",50:"#FAFAFA"},blue:it,indigo:{900:"#05175E",800:"#082188",700:"#0A29A6",600:"#0B2FBF",500:"#0D35D5",400:"#637CE3",300:"#90A3EB",200:"#B3BFF1",100:"#D0D7F6",50:"#E8ECFB"},yellow:{900:"#FF6B0A",800:"#FF7C12",700:"#FF8617",600:"#FF911B",500:"#FF991F",400:"#FFA841",300:"#FFB862",200:"#FFCC8F",100:"#FFE0BC",50:"#FFF3E4"},orange:{900:"#783722",800:"#A74D2F",700:"#CA5D39",600:"#E66A42",500:"#FF7649",400:"#FF9978",300:"#FFB49B",200:"#FFCAB9",100:"#FFDED3",50:"#FFEFEA"},red:{900:"#C81603",800:"#D12206",700:"#D52808",600:"#DA300A",500:"#DE350B",400:"#E35330",300:"#E87254",200:"#EF9A85",100:"#F5C2B6",50:"#FBE7E2"},green:{900:"#00572E",800:"#006A3F",700:"#007448",600:"#007F52",500:"#00875A",400:"#269973",300:"#4DAB8C",200:"#80C3AD",100:"#B3DBCE",50:"#E0F1EB"},fuchsia:{900:"#500663",800:"#71088B",700:"#880AA8",600:"#9C0BC0",500:"#AD0DD5",400:"#CB67E4",300:"#DB94EC",200:"#E6B6F2",100:"#EFD2F7",50:"#F7E9FB"},pink:{900:"#640648",800:"#8C0864",700:"#A80A79",600:"#C00B8A",500:"#D50D99",400:"#E569BF",300:"#EC96D2",200:"#F2B7E0",100:"#F7D2EC",50:"#FBEAF6"},cyan:{900:"#066552",800:"#088C72",700:"#0AA989",600:"#0BC09C",500:"#0DD5AD",400:"#4DE0C2",300:"#7DE8D3",200:"#A4EFE0",100:"#C6F5EB",50:"#E4FAF5"},primary:it},lt=(at.blue[50],at.indigo[50],at.yellow[50],at.orange[50],at.red[50],at.green[50],at.fuchsia[50],at.pink[50],at.cyan[50],at.primary[50],at.grey[100],at.white[16],at.black[16],[50,100,200,300,400,500,600,700,800,900]),ct=["black","white"],st=["grey","blue","indigo","yellow","orange","red","green","fuchsia","pink","cyan","primary"],ut=Qn(Qn([],ct,!0),st,!0),dt=/^#(?:[0-9a-fA-F]{3}){1,2}$/,pt=function(e){return dt.test(e)},ft=function(e){return e+(function(e){return!!e&&/^\d+$/.test(e.toString())}(e)?"px":"")},ht=function(e){var n=e.replace("px","");return yt(n)?gt(n):0},mt=function(){return(Math.random()+1).toString(36).substring(7)},gt=function(e){return parseFloat(e.replace(",","."))},yt=function(e){return!isNaN(gt(e))&&isFinite(gt(e))},vt=function(e){return null!=e&&ut.includes(e)},bt=function(e){return ct.includes(e)},xt=function(e){return st.includes(e)},wt=function(e){var n=e.isDisabled,t=e.onClick,r=Gn(e,["isDisabled","onClick"]),o=u((function(){return n||!t?void 0:function(e){return t(e)}}),[n,t]);return s.createElement(kt,Vn({},r,{isDisabled:n,onClick:o}))},kt=D(N).attrs((function(e){var n=e.color,t=e.theme;if(n){if(function(e,n){return e in n.components.icon}(n,t))return t.components.icon[n];if(pt(n))return{primary:n,secondary:n+"B3"}}return{primary:"inherit",secondary:"inherit"}}))(et||(et=Zn(["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"],["\n cursor: ",";\n color: ",";\n animation-duration: 0.8s;\n --fa-secondary-color: ",";\n"])),(function(e){var n=e.isDisabled;return e.onClick&&!n?"pointer":"inherit"}),(function(e){var n=e.isDisabled,t=e.primary,r=e.theme;return n?r.palette.grey[300]:t}),(function(e){return e.secondary})),St=function(e){return{primary:at[e][500],secondary:at[e][200]}},Ct=(St("blue"),St("red"),St("green"),St("yellow"),St("orange"),St("primary"),St("cyan"),St("fuchsia"),St("indigo"),St("pink"),St("grey"),at.white[100],at.white[48],at.black[100],at.black[48],function(n){var t=n.className,r=n.color,o=n.size;return s.createElement("div",{className:t},s.createElement(wt,{color:r,icon:e,size:null!=o?o:"1x",spin:!0}))}),Et=["yyyy-MM-dd","dd/MM/yyyy","dd-MM-yyyy","yyyy/MM/dd","dd.MM.yyyy","MM/dd/yyyy","dd-MM-yy","dd/MM/yy"],Ot="HH:mm:ss",$t=["yyyy-MM-dd "+Ot,"dd/MM/yyyy "+Ot,"dd-MM-yyyy "+Ot,"yyyy/MM/dd "+Ot,"dd.MM.yyyy "+Ot,"MM/dd/yyyy "+Ot,"dd-MM-yy "+Ot,"dd/MM/yy "+Ot];function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function Dt(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function Tt(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function At(e){Tt(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===Pt(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function _t(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return isNaN(r)?new Date(NaN):r?(t.setDate(t.getDate()+r),t):t}function Mt(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),i=new Date(t.getTime());return i.setMonth(t.getMonth()+r+1,0),o>=i.getDate()?i:(t.setFullYear(i.getFullYear(),i.getMonth(),o),t)}function jt(e,n){Tt(2,arguments);var t=At(e).getTime(),r=Dt(n);return new Date(t+r)}!function(e){e.ERROR="error",e.INFO="info",e.STANDARD="standard",e.SUCCESS="success",e.WARNING="warning"}(nt||(nt={}));var Nt=36e5;function Rt(e,n){return Tt(2,arguments),jt(e,Dt(n)*Nt)}var It={};function Ft(){return It}function Lt(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=At(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function zt(e){return Tt(1,arguments),Lt(e,{weekStartsOn:1})}function Bt(e){Tt(1,arguments);var n=function(e){Tt(1,arguments);var n=At(e),t=n.getFullYear(),r=new Date(0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);var o=zt(r),i=new Date(0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);var a=zt(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}(e),t=new Date(0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),zt(t)}function Ht(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function Wt(e){Tt(1,arguments);var n=At(e);return n.setHours(0,0,0,0),n}var Ut=864e5;function Yt(e,n){Tt(2,arguments);var t=Wt(e),r=Wt(n),o=t.getTime()-Ht(t),i=r.getTime()-Ht(r);return Math.round((o-i)/Ut)}var Vt=6e4;function Gt(e,n){return Tt(2,arguments),jt(e,Dt(n)*Vt)}function qt(e,n){return Tt(2,arguments),Mt(e,3*Dt(n))}function Kt(e,n){return Tt(2,arguments),_t(e,7*Dt(n))}function Xt(e,n){return Tt(2,arguments),Mt(e,12*Dt(n))}function Qt(e){var n,t;if(Tt(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!==Pt(e)||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=At(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function Zt(e){var n,t;if(Tt(1,arguments),e&&"function"==typeof e.forEach)n=e;else{if("object"!==Pt(e)||null===e)return new Date(NaN);n=Array.prototype.slice.call(e)}return n.forEach((function(e){var n=At(e);(void 0===t||t>n||isNaN(n.getDate()))&&(t=n)})),t||new Date(NaN)}var Jt=6e4,er=36e5;function nr(e){return Tt(1,arguments),e instanceof Date||"object"===Pt(e)&&"[object Date]"===Object.prototype.toString.call(e)}function tr(e){if(Tt(1,arguments),!nr(e)&&"number"!=typeof e)return!1;var n=At(e);return!isNaN(Number(n))}function rr(e,n){Tt(2,arguments);var t=At(e),r=At(n);return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())}function or(e){Tt(1,arguments);var n=At(e);return Math.floor(n.getMonth()/3)+1}function ir(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getFullYear()-r.getFullYear()}function ar(e){Tt(1,arguments);var n=At(e);return n.setHours(23,59,59,999),n}function lr(e){Tt(1,arguments);var n=At(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function cr(e){Tt(1,arguments);var n=At(e),t=n.getMonth(),r=t-t%3;return n.setMonth(r,1),n.setHours(0,0,0,0),n}function sr(e){Tt(1,arguments);var n=At(e);return n.setDate(1),n.setHours(0,0,0,0),n}function ur(e){Tt(1,arguments);var n=At(e),t=n.getFullYear();return n.setFullYear(t+1,0,0),n.setHours(23,59,59,999),n}function dr(e){Tt(1,arguments);var n=At(e),t=new Date(0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}function pr(e,n){return Tt(2,arguments),jt(e,-Dt(n))}function fr(e){Tt(1,arguments);var n=At(e),t=n.getUTCDay(),r=(t<1?7:0)+t-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function hr(e){Tt(1,arguments);var n=At(e),t=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=fr(r),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=fr(i);return n.getTime()>=o.getTime()?t+1:n.getTime()>=a.getTime()?t:t-1}var mr=6048e5;function gr(e){Tt(1,arguments);var n=At(e),t=fr(n).getTime()-function(e){Tt(1,arguments);var n=hr(e),t=new Date(0);return t.setUTCFullYear(n,0,4),t.setUTCHours(0,0,0,0),fr(t)}(n).getTime();return Math.round(t/mr)+1}function yr(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=At(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function vr(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=At(e),d=u.getUTCFullYear(),p=Ft(),f=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==t?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=yr(h,n),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var y=yr(g,n);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}var br=6048e5;function xr(e,n){Tt(1,arguments);var t=At(e),r=yr(t,n).getTime()-function(e,n){var t,r,o,i,a,l,c,s;Tt(1,arguments);var u=Ft(),d=Dt(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.firstWeekContainsDate)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==t?t:1),p=vr(e,n),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),yr(f,n)}(t,n).getTime();return Math.round(r/br)+1}function wr(e,n){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length<n;)r="0"+r;return t+r}var kr={y:function(e,n){var t=e.getUTCFullYear(),r=t>0?t:1-t;return wr("yy"===n?r%100:r,n.length)},M:function(e,n){var t=e.getUTCMonth();return"M"===n?String(t+1):wr(t+1,2)},d:function(e,n){return wr(e.getUTCDate(),n.length)},a:function(e,n){var t=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];default:return"am"===t?"a.m.":"p.m."}},h:function(e,n){return wr(e.getUTCHours()%12||12,n.length)},H:function(e,n){return wr(e.getUTCHours(),n.length)},m:function(e,n){return wr(e.getUTCMinutes(),n.length)},s:function(e,n){return wr(e.getUTCSeconds(),n.length)},S:function(e,n){var t=n.length,r=e.getUTCMilliseconds();return wr(Math.floor(r*Math.pow(10,t-3)),n.length)}},Sr=kr,Cr="midnight",Er="noon",Or="morning",$r="afternoon",Pr="evening",Dr="night",Tr={G:function(e,n,t){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if("yo"===n){var r=e.getUTCFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return Sr.y(e,n)},Y:function(e,n,t,r){var o=vr(e,r),i=o>0?o:1-o;return"YY"===n?wr(i%100,2):"Yo"===n?t.ordinalNumber(i,{unit:"year"}):wr(i,n.length)},R:function(e,n){return wr(hr(e),n.length)},u:function(e,n){return wr(e.getUTCFullYear(),n.length)},Q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return wr(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return wr(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Sr.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return wr(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){var o=xr(e,r);return"wo"===n?t.ordinalNumber(o,{unit:"week"}):wr(o,n.length)},I:function(e,n,t){var r=gr(e);return"Io"===n?t.ordinalNumber(r,{unit:"week"}):wr(r,n.length)},d:function(e,n,t){return"do"===n?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):Sr.d(e,n)},D:function(e,n,t){var r=function(e){Tt(1,arguments);var n=At(e),t=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=t-n.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===n?t.ordinalNumber(r,{unit:"dayOfYear"}):wr(r,n.length)},E:function(e,n,t){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return wr(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return wr(i,n.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){var r=e.getUTCDay(),o=0===r?7:r;switch(n){case"i":return String(o);case"ii":return wr(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,n,t){var r,o=e.getUTCHours();switch(r=12===o?Er:0===o?Cr:o/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,n,t){var r,o=e.getUTCHours();switch(r=o>=17?Pr:o>=12?$r:o>=4?Or:Dr,n){case"B":case"BB":case"BBB":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(r,{width:"narrow",context:"formatting"});default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,n,t){if("ho"===n){var r=e.getUTCHours()%12;return 0===r&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Sr.h(e,n)},H:function(e,n,t){return"Ho"===n?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Sr.H(e,n)},K:function(e,n,t){var r=e.getUTCHours()%12;return"Ko"===n?t.ordinalNumber(r,{unit:"hour"}):wr(r,n.length)},k:function(e,n,t){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===n?t.ordinalNumber(r,{unit:"hour"}):wr(r,n.length)},m:function(e,n,t){return"mo"===n?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Sr.m(e,n)},s:function(e,n,t){return"so"===n?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Sr.s(e,n)},S:function(e,n){return Sr.S(e,n)},X:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(n){case"X":return _r(o);case"XXXX":case"XX":return Mr(o);default:return Mr(o,":")}},x:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"x":return _r(o);case"xxxx":case"xx":return Mr(o);default:return Mr(o,":")}},O:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ar(o,":");default:return"GMT"+Mr(o,":")}},z:function(e,n,t,r){var o=(r._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ar(o,":");default:return"GMT"+Mr(o,":")}},t:function(e,n,t,r){var o=r._originalDate||e;return wr(Math.floor(o.getTime()/1e3),n.length)},T:function(e,n,t,r){return wr((r._originalDate||e).getTime(),n.length)}};function Ar(e,n){var t=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return t+String(o);var a=n||"";return t+String(o)+a+wr(i,2)}function _r(e,n){return e%60==0?(e>0?"-":"+")+wr(Math.abs(e)/60,2):Mr(e,n)}function Mr(e,n){var t=n||"",r=e>0?"-":"+",o=Math.abs(e);return r+wr(Math.floor(o/60),2)+t+wr(o%60,2)}var jr=Tr,Nr=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Rr=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},Ir={p:Rr,P:function(e,n){var t,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Nr(e,n);switch(o){case"P":t=n.dateTime({width:"short"});break;case"PP":t=n.dateTime({width:"medium"});break;case"PPP":t=n.dateTime({width:"long"});break;default:t=n.dateTime({width:"full"})}return t.replace("{{date}}",Nr(o,n)).replace("{{time}}",Rr(i,n))}},Fr=Ir,Lr=["D","DD"],zr=["YY","YYYY"];function Br(e){return-1!==Lr.indexOf(e)}function Hr(e){return-1!==zr.indexOf(e)}function Wr(e,n,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ur={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yr=function(e,n,t){var r,o=Ur[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Vr(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var Gr={date:Vr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Vr({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Vr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kr=function(e,n,t,r){return qr[e]};function Xr(e){return function(n,t){var r;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=t&&t.width?String(t.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(n):n]}}var Qr={ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Xr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xr({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xr({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Xr({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Xr({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Zr(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t;return}(c,(function(e){return e.test(l)})):function(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t;return}(c,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(s):s,{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(l.length)}}}function Jr(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(o.length)}}}var eo={code:"en-US",formatDistance:Yr,formatLong:Gr,formatRelative:Kr,localize:Qr,match:{ordinalNumber:Jr({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Zr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Zr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Zr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},no=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,to=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ro=/^'([^]*?)'?$/,oo=/''/g,io=/[a-zA-Z]/;function ao(e,n,t){var r,o,i,a,l,c,s,u,d,p,f,h,m,g,y,v,b,x;Tt(2,arguments);var w=String(n),k=Ft(),S=null!==(r=null!==(o=null==t?void 0:t.locale)&&void 0!==o?o:k.locale)&&void 0!==r?r:eo,C=Dt(null!==(i=null!==(a=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:k.firstWeekContainsDate)&&void 0!==a?a:null===(d=k.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=Dt(null!==(f=null!==(h=null!==(m=null!==(g=null==t?void 0:t.weekStartsOn)&&void 0!==g?g:null==t||null===(y=t.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:k.weekStartsOn)&&void 0!==h?h:null===(b=k.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var O=At(e);if(!tr(O))throw new RangeError("Invalid time value");var $=pr(O,Ht(O)),P={firstWeekContainsDate:C,weekStartsOn:E,locale:S,_originalDate:O};return w.match(to).map((function(e){var n=e[0];return"p"===n||"P"===n?(0,Fr[n])(e,S.formatLong):e})).join("").match(no).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var n=e.match(ro);if(!n)return e;return n[1].replace(oo,"'")}(r);var i=jr[o];if(i)return null!=t&&t.useAdditionalWeekYearTokens||!Hr(r)||Wr(r,n,String(e)),null!=t&&t.useAdditionalDayOfYearTokens||!Br(r)||Wr(r,n,String(e)),i($,r,S.localize,P);if(o.match(io))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function lo(e,n){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}function co(e){return Tt(1,arguments),At(e).getDate()}function so(e){return Tt(1,arguments),At(e).getHours()}var uo=6048e5;function po(e){return Tt(1,arguments),At(e).getMinutes()}function fo(e){return Tt(1,arguments),At(e).getMonth()}function ho(e){return Tt(1,arguments),At(e).getSeconds()}function mo(e){return Tt(1,arguments),At(e).getTime()}function go(e){return Tt(1,arguments),At(e).getFullYear()}function yo(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getTime()>r.getTime()}function vo(e,n){Tt(2,arguments);var t=At(e),r=At(n);return t.getTime()<r.getTime()}function bo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function xo(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return bo(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bo(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ko(e,n){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ko(e,n)}function So(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ko(e,n)}function Co(e){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Co(e)}function Eo(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=Co(e);if(n){var o=Co(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"===Pt(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}(this,t)}}function Oo(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $o(e){var n=function(e,n){if("object"!==Pt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===Pt(n)?n:String(n)}function Po(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$o(r.key),r)}}function Do(e,n,t){return n&&Po(e.prototype,n),t&&Po(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function To(e,n,t){return(n=$o(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Ao=function(){function e(){Oo(this,e),To(this,"priority",void 0),To(this,"subPriority",0)}return Do(e,[{key:"validate",value:function(e,n){return!0}}]),e}(),_o=function(e){So(t,Ao);var n=Eo(t);function t(e,r,o,i,a){var l;return Oo(this,t),(l=n.call(this)).value=e,l.validateValue=r,l.setValue=o,l.priority=i,a&&(l.subPriority=a),l}return Do(t,[{key:"validate",value:function(e,n){return this.validateValue(e,this.value,n)}},{key:"set",value:function(e,n,t){return this.setValue(e,n,this.value,t)}}]),t}(),Mo=function(e){So(t,Ao);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"subPriority",-1),e}return Do(t,[{key:"set",value:function(e,n){if(n.timestampIsSet)return e;var t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}}]),t}(),jo=function(){function e(){Oo(this,e),To(this,"incompatibleTokens",void 0),To(this,"priority",void 0),To(this,"subPriority",void 0)}return Do(e,[{key:"run",value:function(e,n,t,r){var o=this.parse(e,n,t,r);return o?{setter:new _o(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,n,t){return!0}}]),e}(),No=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",140),To(wo(e),"incompatibleTokens",["R","u","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}}},{key:"set",value:function(e,n,t){return n.era=t,e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),Ro=/^(1[0-2]|0?\d)/,Io=/^(3[0-1]|[0-2]?\d)/,Fo=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Lo=/^(5[0-3]|[0-4]?\d)/,zo=/^(2[0-3]|[0-1]?\d)/,Bo=/^(2[0-4]|[0-1]?\d)/,Ho=/^(1[0-1]|0?\d)/,Wo=/^(1[0-2]|0?\d)/,Uo=/^[0-5]?\d/,Yo=/^[0-5]?\d/,Vo=/^\d/,Go=/^\d{1,2}/,qo=/^\d{1,3}/,Ko=/^\d{1,4}/,Xo=/^-?\d+/,Qo=/^-?\d/,Zo=/^-?\d{1,2}/,Jo=/^-?\d{1,3}/,ei=/^-?\d{1,4}/,ni=/^([+-])(\d{2})(\d{2})?|Z/,ti=/^([+-])(\d{2})(\d{2})|Z/,ri=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,oi=/^([+-])(\d{2}):(\d{2})|Z/,ii=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ai(e,n){return e?{value:n(e.value),rest:e.rest}:e}function li(e,n){var t=n.match(e);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function ci(e,n){var t=n.match(e);if(!t)return null;if("Z"===t[0])return{value:0,rest:n.slice(1)};var r="+"===t[1]?1:-1,o=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return{value:r*(o*er+i*Jt+1e3*a),rest:n.slice(t[0].length)}}function si(e){return li(Xo,e)}function ui(e,n){switch(e){case 1:return li(Vo,n);case 2:return li(Go,n);case 3:return li(qo,n);case 4:return li(Ko,n);default:return li(new RegExp("^\\d{1,"+e+"}"),n)}}function di(e,n){switch(e){case 1:return li(Qo,n);case 2:return li(Zo,n);case 3:return li(Jo,n);case 4:return li(ei,n);default:return li(new RegExp("^-?\\d{1,"+e+"}"),n)}}function pi(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function fi(e,n){var t,r=n>0,o=r?n:1-n;if(o<=50)t=e||100;else{var i=o+50;t=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?t:1-t}function hi(e){return e%400==0||e%4==0&&e%100!=0}var mi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return{year:e,isTwoDigitYear:"yy"===n}};switch(n){case"y":return ai(ui(4,e),r);case"yo":return ai(t.ordinalNumber(e,{unit:"year"}),r);default:return ai(ui(n.length,e),r)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,t){var r=e.getUTCFullYear();if(t.isTwoDigitYear){var o=fi(t.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),gi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return{year:e,isTwoDigitYear:"YY"===n}};switch(n){case"Y":return ai(ui(4,e),r);case"Yo":return ai(t.ordinalNumber(e,{unit:"year"}),r);default:return ai(ui(n.length,e),r)}}},{key:"validate",value:function(e,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(e,n,t,r){var o=vr(e,r);if(t.isTwoDigitYear){var i=fi(t.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yr(e,r)}var a="era"in n&&1!==n.era?1-t.year:t.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),yr(e,r)}}]),t}(),yi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return di("R"===n?4:n.length,e)}},{key:"set",value:function(e,n,t){var r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),fr(r)}}]),t}(),vi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",130),To(wo(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return di("u"===n?4:n.length,e)}},{key:"set",value:function(e,n,t){return e.setUTCFullYear(t,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(),bi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",120),To(wo(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"Q":case"QQ":return ui(n.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,t){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}}]),t}(),xi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",120),To(wo(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"q":case"qq":return ui(n.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=1&&n<=4}},{key:"set",value:function(e,n,t){return e.setUTCMonth(3*(t-1),1),e.setUTCHours(0,0,0,0),e}}]),t}(),wi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),To(wo(e),"priority",110),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return e-1};switch(n){case"M":return ai(li(Ro,e),r);case"MM":return ai(ui(2,e),r);case"Mo":return ai(t.ordinalNumber(e,{unit:"month"}),r);case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),t}(),ki=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",110),To(wo(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return e-1};switch(n){case"L":return ai(li(Ro,e),r);case"LL":return ai(ui(2,e),r);case"Lo":return ai(t.ordinalNumber(e,{unit:"month"}),r);case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.setUTCMonth(t,1),e.setUTCHours(0,0,0,0),e}}]),t}();var Si=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",100),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"w":return li(Lo,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,t,r){return yr(function(e,n,t){Tt(2,arguments);var r=At(e),o=Dt(n),i=xr(r,t)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,t,r),r)}}]),t}();var Ci=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",100),To(wo(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"I":return li(Lo,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=53}},{key:"set",value:function(e,n,t){return fr(function(e,n){Tt(2,arguments);var t=At(e),r=Dt(n),o=gr(t)-r;return t.setUTCDate(t.getUTCDate()-7*o),t}(e,t))}}]),t}(),Ei=[31,28,31,30,31,30,31,31,30,31,30,31],Oi=[31,29,31,30,31,30,31,31,30,31,30,31],$i=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"subPriority",1),To(wo(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"d":return li(Io,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){var t=hi(e.getUTCFullYear()),r=e.getUTCMonth();return t?n>=1&&n<=Oi[r]:n>=1&&n<=Ei[r]}},{key:"set",value:function(e,n,t){return e.setUTCDate(t),e.setUTCHours(0,0,0,0),e}}]),t}(),Pi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"subpriority",1),To(wo(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"D":case"DD":return li(Fo,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return hi(e.getUTCFullYear())?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(e,n,t){return e.setUTCMonth(0,t),e.setUTCHours(0,0,0,0),e}}]),t}();function Di(e,n,t){var r,o,i,a,l,c,s,u;Tt(2,arguments);var d=Ft(),p=Dt(null!==(r=null!==(o=null!==(i=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==o?o:null===(s=d.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=At(e),h=Dt(n),m=((h%7+7)%7<p?7:0)+h-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+m),f}var Ti=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}(),Ai=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"e":case"ee":return ai(ui(n.length,e),o);case"eo":return ai(t.ordinalNumber(e,{unit:"day"}),o);case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}(),_i=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t,r){var o=function(e){var n=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+n};switch(n){case"c":case"cc":return ai(ui(n.length,e),o);case"co":return ai(t.ordinalNumber(e,{unit:"day"}),o);case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,n){return n>=0&&n<=6}},{key:"set",value:function(e,n,t,r){return(e=Di(e,t,r)).setUTCHours(0,0,0,0),e}}]),t}();var Mi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",90),To(wo(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){var r=function(e){return 0===e?7:e};switch(n){case"i":case"ii":return ui(n.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return ai(t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ai(t.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ai(t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r);default:return ai(t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,n){return n>=1&&n<=7}},{key:"set",value:function(e,n,t){return e=function(e,n){Tt(2,arguments);var t=Dt(n);t%7==0&&(t-=7);var r=At(e),o=((t%7+7)%7<1?7:0)+t-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,t),e.setUTCHours(0,0,0,0),e}}]),t}(),ji=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ni=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ri=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",80),To(wo(e),"incompatibleTokens",["a","b","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,n,t){return e.setUTCHours(pi(t),0,0,0),e}}]),t}(),Ii=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"h":return li(Wo,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=12}},{key:"set",value:function(e,n,t){var r=e.getUTCHours()>=12;return r&&t<12?e.setUTCHours(t+12,0,0,0):r||12!==t?e.setUTCHours(t,0,0,0):e.setUTCHours(0,0,0,0),e}}]),t}(),Fi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"H":return li(zo,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=23}},{key:"set",value:function(e,n,t){return e.setUTCHours(t,0,0,0),e}}]),t}(),Li=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"K":return li(Ho,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=11}},{key:"set",value:function(e,n,t){return e.getUTCHours()>=12&&t<12?e.setUTCHours(t+12,0,0,0):e.setUTCHours(t,0,0,0),e}}]),t}(),zi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",70),To(wo(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"k":return li(Bo,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=1&&n<=24}},{key:"set",value:function(e,n,t){var r=t<=24?t%24:t;return e.setUTCHours(r,0,0,0),e}}]),t}(),Bi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",60),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"m":return li(Uo,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,t){return e.setUTCMinutes(t,0,0),e}}]),t}(),Hi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",50),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n,t){switch(n){case"s":return li(Yo,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return ui(n.length,e)}}},{key:"validate",value:function(e,n){return n>=0&&n<=59}},{key:"set",value:function(e,n,t){return e.setUTCSeconds(t,0),e}}]),t}(),Wi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",30),To(wo(e),"incompatibleTokens",["t","T"]),e}return Do(t,[{key:"parse",value:function(e,n){return ai(ui(n.length,e),(function(e){return Math.floor(e*Math.pow(10,3-n.length))}))}},{key:"set",value:function(e,n,t){return e.setUTCMilliseconds(t),e}}]),t}(),Ui=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"incompatibleTokens",["t","T","x"]),e}return Do(t,[{key:"parse",value:function(e,n){switch(n){case"X":return ci(ni,e);case"XX":return ci(ti,e);case"XXXX":return ci(ri,e);case"XXXXX":return ci(ii,e);default:return ci(oi,e)}}},{key:"set",value:function(e,n,t){return n.timestampIsSet?e:new Date(e.getTime()-t)}}]),t}(),Yi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",10),To(wo(e),"incompatibleTokens",["t","T","X"]),e}return Do(t,[{key:"parse",value:function(e,n){switch(n){case"x":return ci(ni,e);case"xx":return ci(ti,e);case"xxxx":return ci(ri,e);case"xxxxx":return ci(ii,e);default:return ci(oi,e)}}},{key:"set",value:function(e,n,t){return n.timestampIsSet?e:new Date(e.getTime()-t)}}]),t}(),Vi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",40),To(wo(e),"incompatibleTokens","*"),e}return Do(t,[{key:"parse",value:function(e){return si(e)}},{key:"set",value:function(e,n,t){return[new Date(1e3*t),{timestampIsSet:!0}]}}]),t}(),Gi=function(e){So(t,jo);var n=Eo(t);function t(){var e;Oo(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return To(wo(e=n.call.apply(n,[this].concat(o))),"priority",20),To(wo(e),"incompatibleTokens","*"),e}return Do(t,[{key:"parse",value:function(e){return si(e)}},{key:"set",value:function(e,n,t){return[new Date(t),{timestampIsSet:!0}]}}]),t}(),qi={G:new No,y:new mi,Y:new gi,R:new yi,u:new vi,Q:new bi,q:new xi,M:new wi,L:new ki,w:new Si,I:new Ci,d:new $i,D:new Pi,E:new Ti,e:new Ai,c:new _i,i:new Mi,a:new ji,b:new Ni,B:new Ri,h:new Ii,H:new Fi,K:new Li,k:new zi,m:new Bi,s:new Hi,S:new Wi,X:new Ui,x:new Yi,t:new Vi,T:new Gi},Ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qi=/^'([^]*?)'?$/,Zi=/''/g,Ji=/\S/,ea=/[a-zA-Z]/;function na(e,n,t,r){var o,i,a,l,c,s,u,d,p,f,h,m,g,y,v,b,x,w;Tt(3,arguments);var k=String(e),S=String(n),C=Ft(),E=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:C.locale)&&void 0!==o?o:eo;if(!E.match)throw new RangeError("locale must contain match property");var O=Dt(null!==(a=null!==(l=null!==(c=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:C.firstWeekContainsDate)&&void 0!==l?l:null===(p=C.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Dt(null!==(h=null!==(m=null!==(g=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==m?m:null===(x=C.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==h?h:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===S)return""===k?At(t):new Date(NaN);var P,D={firstWeekContainsDate:O,weekStartsOn:$,locale:E},T=[new Mo],A=S.match(Xi).map((function(e){var n=e[0];return n in Fr?(0,Fr[n])(e,E.formatLong):e})).join("").match(Ki),_=[],M=xo(A);try{var j=function(){var n=P.value;null!=r&&r.useAdditionalWeekYearTokens||!Hr(n)||Wr(n,S,e),null!=r&&r.useAdditionalDayOfYearTokens||!Br(n)||Wr(n,S,e);var t=n[0],o=qi[t];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=_.find((function(e){return i.includes(e.token)||e.token===t}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(n,"` at the same time"))}else if("*"===o.incompatibleTokens&&_.length>0)throw new RangeError("The format string mustn't contain `".concat(n,"` and any other token at the same time"));_.push({token:t,fullToken:n});var l=o.run(k,n,E.match,D);if(!l)return{v:new Date(NaN)};T.push(l.setter),k=l.rest}else{if(t.match(ea))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");if("''"===n?n="'":"'"===t&&(n=n.match(Qi)[1].replace(Zi,"'")),0!==k.indexOf(n))return{v:new Date(NaN)};k=k.slice(n.length)}};for(M.s();!(P=M.n()).done;){var N=j();if("object"===Pt(N))return N.v}}catch(e){M.e(e)}finally{M.f()}if(k.length>0&&Ji.test(k))return new Date(NaN);var R=T.map((function(e){return e.priority})).sort((function(e,n){return n-e})).filter((function(e,n,t){return t.indexOf(e)===n})).map((function(e){return T.filter((function(n){return n.priority===e})).sort((function(e,n){return n.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=At(t);if(isNaN(I.getTime()))return new Date(NaN);var F,L=pr(I,Ht(I)),z={},B=xo(R);try{for(B.s();!(F=B.n()).done;){var H=F.value;if(!H.validate(L,D))return new Date(NaN);var W=H.set(L,z,D);Array.isArray(W)?(L=W[0],lo(z,W[1])):L=W}}catch(e){B.e(e)}finally{B.f()}return L}function ta(e,n,t){return Tt(2,arguments),tr(na(e,n,new Date,t))}function ra(e,n){Tt(2,arguments);var t=At(e).getTime(),r=At(n.start).getTime(),o=At(n.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return t>=r&&t<=o}function oa(e,n){var t;Tt(1,arguments);var r=Dt(null!==(t=null==n?void 0:n.additionalDigits)&&void 0!==t?t:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,i=function(e){var n,t={},r=e.split(ia.dateTimeDelimiter);if(r.length>2)return t;/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],ia.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ia.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){var o=ia.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}(e);if(i.date){var a=function(e,n){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=e.match(t);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(i.date,r);o=function(e,n){if(null===n)return new Date(NaN);var t=e.match(aa);if(!t)return new Date(NaN);var r=!!t[4],o=sa(t[1]),i=sa(t[2])-1,a=sa(t[3]),l=sa(t[4]),c=sa(t[5])-1;if(r)return function(e,n,t){return n>=1&&n<=53&&t>=0&&t<=6}(0,l,c)?function(e,n,t){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(n-1)+t+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(n,l,c):new Date(NaN);var s=new Date(0);return function(e,n,t){return n>=0&&n<=11&&t>=1&&t<=(da[n]||(pa(e)?29:28))}(n,i,a)&&function(e,n){return n>=1&&n<=(pa(e)?366:365)}(n,o)?(s.setUTCFullYear(n,i,Math.max(o,a)),s):new Date(NaN)}(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l,c=o.getTime(),s=0;if(i.time&&(s=function(e){var n=e.match(la);if(!n)return NaN;var t=ua(n[1]),r=ua(n[2]),o=ua(n[3]);if(!function(e,n,t){if(24===e)return 0===n&&0===t;return t>=0&&t<60&&n>=0&&n<60&&e>=0&&e<25}(t,r,o))return NaN;return t*er+r*Jt+1e3*o}(i.time),isNaN(s)))return new Date(NaN);if(!i.timezone){var u=new Date(c+s),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return l=function(e){if("Z"===e)return 0;var n=e.match(ca);if(!n)return 0;var t="+"===n[1]?-1:1,r=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;if(!function(e,n){return n>=0&&n<=59}(0,o))return NaN;return t*(r*er+o*Jt)}(i.timezone),isNaN(l)?new Date(NaN):new Date(c+s+l)}var ia={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},aa=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,la=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ca=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sa(e){return e?parseInt(e):1}function ua(e){return e&&parseFloat(e.replace(",","."))||0}var da=[31,null,31,30,31,30,31,31,30,31,30,31];function pa(e){return e%400==0||e%4==0&&e%100!=0}function fa(e,n){Tt(2,arguments);var t=At(e),r=Dt(n),o=t.getFullYear(),i=t.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=function(e){Tt(1,arguments);var n=At(e),t=n.getFullYear(),r=n.getMonth(),o=new Date(0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return t.setMonth(r,Math.min(i,l)),t}function ha(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return t.setHours(r),t}function ma(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return t.setMinutes(r),t}function ga(e,n){Tt(2,arguments);var t=At(e),r=Dt(n)-(Math.floor(t.getMonth()/3)+1);return fa(t,t.getMonth()+3*r)}function ya(e,n){Tt(2,arguments);var t=At(e),r=Dt(n);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function va(e,n){return Tt(2,arguments),Mt(e,-Dt(n))}function ba(e,n){return Tt(2,arguments),Xt(e,-Dt(n))}function xa(e,n,t){Tt(2,arguments);var r=yr(e,t),o=yr(n,t);return r.getTime()===o.getTime()}var wa={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},ka=function(e,n,t){var r,o=wa[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},Sa={date:Vr({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Vr({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Vr({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ca=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Ea(e){return"'"+Ca[e]+" alle' p"}var Oa,$a,Pa,Da,Ta,Aa,_a,Ma,ja,Na,Ra,Ia,Fa={lastWeek:function(e,n,t){var r=e.getUTCDay();return xa(e,n,t)?Ea(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Ca[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return xa(e,n,t)?Ea(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Ca[e]+" prossimo alle' p"}(r)},other:"P"},La=function(e,n,t,r){var o=Fa[e];return"function"==typeof o?o(n,t,r):o},za={ordinalNumber:function(e,n){var t=Number(e);return String(t)},era:Xr({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Xr({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xr({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Xr({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:Xr({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},Ba={code:"it",formatDistance:ka,formatLong:Sa,formatRelative:La,localize:za,match:{ordinalNumber:Jr({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Zr({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Zr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Zr({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zr({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Zr({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ha=function(e){for(var n=function(e){var n=e.split(" "),t=n[0],r=n[1];return Boolean(t)&&Boolean(r)&&ta(r,Ot)}(e)?$t:Et,t=0;t<n.length;t++)if(ta(e,n[t]))return n[t];return""},Wa=function(e,n){var t=function(e){var n=Ha(e);return n?na(e,n,new Date):null}(e);return t?ao(t,n,{locale:Ba}):""},Ua=D.div.attrs((function(e){var n=e.color,t=e.theme;return n?vt(n)?{color:bt(n)?t.palette[n][100]:t.palette[n][500]}:{color:n}:{color:void 0}}))($a||($a=Zn(["\n font-weight: ",";\n text-align: ",";\n color: ",";\n\n ","\n"],["\n font-weight: ",";\n text-align: ",";\n color: ",";\n\n ","\n"])),(function(e){return e.bold?500:400}),(function(e){return e.centered?"center":"left"}),(function(e){var n=e.color;return null!=n?n:"inherit"}),(function(e){var n=e.clamp;return n&&T(Oa||(Oa=Zn(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "],["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n "])),n)})),Ya=d((function(e,n){var t=e.children,r=e.type,o=Gn(e,["children","type"]);return s.createElement(Ua,Vn({ref:n},o),Array.isArray(t)||s.isValidElement(t)?t:"currency"===r&&("string"==typeof t&&yt(t)||"number"==typeof t&&!isNaN(t))?function(e){return"number"!=typeof e&&(e=parseFloat(e)),isNaN(e)||!isFinite(e)?"":e.toLocaleString("it-IT",{minimumFractionDigits:2,maximumFractionDigits:2})+" €"}(t):"date"===r&&"string"==typeof t?function(e){return Wa(e,"dd/MM/yyyy")}(t):null!=t?t:"")})),Va=D(Ya)(Pa||(Pa=Zn(["\n font-size: 48px;\n line-height: 72px;\n"],["\n font-size: 48px;\n line-height: 72px;\n"]))),Ga=D(Ya)(Da||(Da=Zn(["\n font-size: 36px;\n line-height: 54px;\n"],["\n font-size: 36px;\n line-height: 54px;\n"]))),qa=D(Ya)(Ta||(Ta=Zn(["\n font-size: 30px;\n line-height: 45px;\n"],["\n font-size: 30px;\n line-height: 45px;\n"]))),Ka=D(Ya)(Aa||(Aa=Zn(["\n font-size: 24px;\n line-height: 36px;\n"],["\n font-size: 24px;\n line-height: 36px;\n"]))),Xa=D(Ya)(_a||(_a=Zn(["\n font-size: 20px;\n line-height: 30px;\n"],["\n font-size: 20px;\n line-height: 30px;\n"]))),Qa=D(Ya)(Ma||(Ma=Zn(["\n font-size: 18px;\n line-height: 27px;\n"],["\n font-size: 18px;\n line-height: 27px;\n"]))),Za=D(Ya)(ja||(ja=Zn(["\n font-size: 16px;\n line-height: 24px;\n"],["\n font-size: 16px;\n line-height: 24px;\n"]))),Ja=D(Ya)(Na||(Na=Zn(["\n font-size: 14px;\n line-height: 21px;\n"],["\n font-size: 14px;\n line-height: 21px;\n"]))),el=D(Ya)(Ra||(Ra=Zn(["\n font-size: 12px;\n line-height: 18px;\n"],["\n font-size: 12px;\n line-height: 18px;\n"])));D(Ya)(Ia||(Ia=Zn(["\n line-height: 17px;\n"],["\n line-height: 17px;\n"])));var nl,tl,rl,ol,il,al,ll,cl,sl,ul,dl,pl,fl,hl,ml,gl,yl,vl,bl,xl={xs:"0.75em","2xs":"0.625em",sm:"0.875em",lg:"1.3em",xl:"1.5em","2xl":"2em","1x":"1em","2x":"2em","3x":"3em","4x":"4em","5x":"5em","6x":"6em","7x":"7em","8x":"8em","9x":"9em","10x":"10em"},wl=function(e){var n;return e?xl[null!==(n=e.size)&&void 0!==n?n:"1x"]:"0"},kl=D.div.attrs((function(e){var n=e.animation,t=e.changeColor,r=e.open,o=e.theme,i={animation:"",iconColor:r&&t?o.palette.blue[500]:o.palette.black[100]};if(r)switch(n){case"rotate45":i.animation="rotate(45deg)";break;case"rotate90":i.animation="rotate(90deg)";break;case"rotate180":i.animation="rotate(180deg)"}return i}))(nl||(nl=Zn(["\n color: ",";\n & > svg {\n transition: transform 225ms;\n transform: ",";\n }\n"],["\n color: ",";\n & > svg {\n transition: transform 225ms;\n transform: ",";\n }\n"])),(function(e){return e.iconColor}),(function(e){return e.animation})),Sl=function(e){var n=e.iconProps,t=n.animation,r=n.changeColor,o=Gn(n,["animation","changeColor"]),i=e.open;return s.createElement(kl,{open:i,changeColor:r,animation:t},s.createElement(wt,Vn({},o)))},Cl=D(Za)(tl||(tl=Zn(["\n padding: 8px 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n"],["\n padding: 8px 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n"]))),El=D.div(ol||(ol=Zn(["\n display: flex;\n flex: 1;\n ","\n"],["\n display: flex;\n flex: 1;\n ","\n"])),(function(e){var n=e.leftPadding,t=e.rightPadding;return T(rl||(rl=Zn(["\n padding-left: ",";\n padding-right: ",";\n "],["\n padding-left: ",";\n padding-right: ",";\n "])),n,t)})),Ol=D.div(il||(il=Zn(["\n padding-left: 16px;\n padding-right: 8px;\n overflow: hidden;\n height: ",";\n transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n"],["\n padding-left: 16px;\n padding-right: 8px;\n overflow: hidden;\n height: ",";\n transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n"])),(function(e){var n=e.contentHeight;return"number"==typeof n?n+"px":n})),$l=function(e){var n,t=e.content,r=e.customOpenContentHeight,o=e.header,i=e.index,a=e.leftIcon,l=e.open,c=e.rightIcon,u=e.style,d=e.toggle,m=p(null),g=f(0),y=g[0],v=g[1];return h((function(){var e;return v(l?r||(null===(e=null==m?void 0:m.current)||void 0===e?void 0:e.scrollHeight):0)}),[null===(n=null==m?void 0:m.current)||void 0===n?void 0:n.scrollHeight,r,l]),s.createElement(s.Fragment,null,s.createElement(Cl,{bold:!0,style:null==u?void 0:u.header,onClick:function(){return d(i)}},a&&s.createElement(Sl,{iconProps:a,open:l}),s.createElement(El,{leftPadding:wl(a),rightPadding:wl(c)},o),c&&s.createElement(Sl,{iconProps:c,open:l})),s.createElement(Ol,{ref:m,style:null==u?void 0:u.content,contentHeight:y},t))},Pl=function(e){var n=e.customOpenContentHeight,t=e.defaultOpen,r=e.divider,o=e.items,i=e.leftIcon,a=e.multipleOpen,l=void 0!==a&&a,c=e.openItem,u=e.rightIcon,d=e.setOpenItem,p=e.showItemsOnFirstRender,g=void 0!==p&&p,y=e.style,v=f(void 0!==c&&void 0!==d)[0],b=f(void 0!==t?[t]:[]),x=b[0],w=b[1];h((function(){v&&c&&w(c)}),[v,c]);var k=m((function(e){(v&&d?d:w)((function(n){var t=n.indexOf(e);return t>=0?Qn(Qn([],n.slice(0,t),!0),n.slice(t+1),!0):l?Qn(Qn([],n,!0),[e],!1):[e]}))}),[v,l,d]);return s.createElement(s.Fragment,null,o.map((function(e,t){var o,a,l;return s.createElement("div",{id:"Accordion_"+t,key:"Accordion_"+t},s.createElement($l,{index:t,open:x.includes(t),toggle:k,content:g?x.includes(t)?e.content:null:e.content,header:e.header,leftIcon:null!==(o=e.leftIcon)&&void 0!==o?o:i,rightIcon:null!==(a=e.rightIcon)&&void 0!==a?a:u,style:null!==(l=e.style)&&void 0!==l?l:y,customOpenContentHeight:n}),r)})))},Dl=function(e,n){for(var t=e.split("").map((function(e){return e.charCodeAt(0)})),r=t.length%(n-1)+1,o=t.reduce((function(e,n){return e+n}),0)%n,i=t[0]%n,a=0;a<t.length;a++)i=(r*i+o)%n;return i},Tl=function(e,n){if(!e)return"transparent";var t=Array.from(st).filter((function(e){return"primary"!==e})),r=Array.from(lt).filter((function(e){return e>200})),o=t[Dl(e,t.length)],i=r[Dl(e,r.length)];return n.palette[o][i]},Al=D.div(dl||(dl=Zn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n font-weight: 500;\n font-style: normal;\n text-transform: uppercase;\n color: ",";\n background-color: ",";\n\n ","\n\n ","\n\n ","\n"])),(function(e){var n=e.textColor,t=e.theme;return null!=n?n:t.palette.white[100]}),(function(e){var n=e.backgroundColor,t=e.theme;return null!=n?n:t.palette.primary[500]}),(function(e){return void 0!==e.onClick&&T(al||(al=Zn(["\n cursor: pointer;\n "],["\n cursor: pointer;\n "])))}),(function(e){var n=e.size,t=e.textLenght;return T(ll||(ll=Zn(["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "],["\n height: ","px;\n width: ","px;\n font-size: ","px;\n "])),n,n,n*function(e){return e<=2?.45:3===e?.4:.35}(t))}),(function(e){var n=e.image,t=e.placeholder;return void 0!==n&&T(ul||(ul=Zn(["\n ","\n background-size: cover;\n "],["\n ","\n background-size: cover;\n "])),t?T(cl||(cl=Zn(["\n background-image: url('","'), url('","');\n "],["\n background-image: url('","'), url('","');\n "])),n,t):T(sl||(sl=Zn(["\n background-image: url('","');\n "],["\n background-image: url('","');\n "])),n))})),_l=function(e){var n,t=e.backgroundColor,r=e.className,o=e.icon,i=e.image,a=e.onClick,l=e.placeholder,c=e.randomColor,u=e.size,d=e.style,p=e.text,f=e.textColor,h=A(),m=null!==(n=null==p?void 0:p.split(" ").map((function(e,n){return n>2?null:e.charAt(0)})).join(""))&&void 0!==n?n:"";return s.createElement(Al,{backgroundColor:c?Tl(p,h):t,className:r,image:i,onClick:a,size:u,style:d,textColor:f,textLenght:m.length,placeholder:l},o?s.createElement(wt,Vn({},o)):m)},Ml={xxs:"4px",xs:"8px",s:"12px",m:"16px",l:"24px",xl:"32px",xxl:"48px",xxxl:"64px"},jl=D.div(pl||(pl=Zn(["\n position: absolute;\n width: 10px;\n height: 10px;\n\n &:after {\n content: '';\n position: absolute;\n transform: rotate(45deg);\n width: 10px;\n height: 10px;\n background-color: ",";\n }\n"],["\n position: absolute;\n width: 10px;\n height: 10px;\n\n &:after {\n content: '';\n position: absolute;\n transform: rotate(45deg);\n width: 10px;\n height: 10px;\n background-color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.type;return n.components.tooltip[t].background})),Nl=T(fl||(fl=Zn(["\n &[data-popper-placement^='top'] > "," {\n bottom: -5px;\n &:after {\n border-bottom-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -5px;\n &:after {\n border-top-left-radius: 3px;\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -5px;\n &:after {\n border-top-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -5px;\n &:after {\n border-bottom-left-radius: 3px;\n }\n }\n"],["\n &[data-popper-placement^='top'] > "," {\n bottom: -5px;\n &:after {\n border-bottom-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -5px;\n &:after {\n border-top-left-radius: 3px;\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -5px;\n &:after {\n border-top-right-radius: 3px;\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -5px;\n &:after {\n border-bottom-left-radius: 3px;\n }\n }\n"])),jl,jl,jl,jl),Rl=D.div.attrs((function(e){var n=e.theme,t=e.type;return n.components.tooltip[t]}))(hl||(hl=Zn(["\n z-index: 9;\n\n font-size: 14px;\n\n padding: 8px;\n border-radius: 4px;\n\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n\n color: ",";\n background: ",";\n"],["\n z-index: 9;\n\n font-size: 14px;\n\n padding: 8px;\n border-radius: 4px;\n\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n\n color: ",";\n background: ",";\n"])),(function(e){return e.color}),(function(e){return e.background})),Il=D.div(ml||(ml=Zn(["\n ",";\n z-index: 9999;\n\n max-width: min(calc(100vw - 5%), 300px);\n"],["\n ",";\n z-index: 9999;\n\n max-width: min(calc(100vw - 5%), 300px);\n"])),Nl),Fl=D.div(gl||(gl=Zn(["\n &.enter {\n opacity: 0;\n }\n\n &.enter-active {\n opacity: 1;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit-active {\n opacity: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n &.enter {\n opacity: 0;\n }\n\n &.enter-active {\n opacity: 1;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit-active {\n opacity: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),Ll=D(wt)(yl||(yl=Zn(["\n margin-left: 4px;\n"],["\n margin-left: 4px;\n"]))),zl=D.div(vl||(vl=Zn(["\n padding-top: 8px;\n"],["\n padding-top: 8px;\n"]))),Bl=function(e){var n=e.attributes,t=e.icon,r=e.message,o=e.popperRef,i=e.renderButton,a=e.setArrowRef,l=e.shouldRender,c=e.showTooltip,u=e.styles,d=e.type,p=void 0===d?"dark":d;return l?s.createElement(L,{in:c,timeout:200,unmountOnExit:!0,appear:!0},s.createElement(Fl,null,s.createElement(Il,Vn({ref:o,style:u.popper},n.popper),s.createElement(jl,{type:p,ref:a,style:u.arrow}),s.createElement(Rl,{type:p,style:u.offset},s.createElement("div",null,r,t&&s.createElement(Ll,Vn({},t))),i&&s.createElement(zl,null,i()))))):s.createElement(s.Fragment,null)},Hl=function(e,n,t,r){var o=u((function(){return Qn([e],null!=r?r:[],!0)}),[r,e]);h((function(){function e(e){var n=o.some((function(n){var t;return null===(t=n.current)||void 0===t?void 0:t.contains(e.target)}));if(!n){if(e.target instanceof HTMLElement){var r=e.target,i=r.clientHeight,a=r.clientWidth,l=r.offsetHeight;if(a<r.offsetWidth&&e.offsetX>a||i<l&&e.offsetY>i)return}t()}}return n&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t,o,n])},Wl=function(e){var n=e.callbackAfterTimeout,t=e.hideAfterSeconds,r=e.onMouseEnter,o=e.onMouseLeave,i=e.onMouseLeaveHideDelay,a=e.onOpen,l=e.placement,c=void 0===l?"top":l,s=e.positionStrategy,d=void 0===s?"fixed":s,g=e.showAfterSeconds,y=e.showAlways,v=void 0!==y&&y,b=p(null),x=p(null),w=p(null),k=p(void 0),S=p(void 0),C=p(void 0),E=f(null),O=E[0],$=E[1],P=f(!1),D=P[0],T=P[1],A=f(!1),_=A[0],M=A[1],j=m((function(){return M(!0)}),[]),N=m((function(){return M(!1)}),[]);Hl(b,_,N,[w]),h((function(){if(_)return window.addEventListener("touchmove",N),function(){window.removeEventListener("touchmove",N)}}),[N,_]),h((function(){null==a||a(_)}),[_,a]);var R=m((function(e){g?S.current=setTimeout((function(){j()}),1e3*g):j(),null==r||r(e)}),[r,j,g]),I=m((function(e){_||!S.current?(i?C.current=setTimeout((function(){N()}),1e3*i):N(),null==o||o(e)):clearTimeout(S.current)}),[N,o,i,_]),F=u((function(){return[{name:"arrow",options:{element:O}},{name:"offset",options:{offset:[0,10]}}]}),[O]),L=z(w.current,x.current,{placement:c,strategy:d,modifiers:F}),B=L.attributes,H=L.styles,W=u((function(){return(_||v)&&!D}),[D,_,v]);return h((function(){return t&&(k.current=setTimeout((function(){T(!0),M(!1),null==n||n()}),1e3*t)),function(){k.current&&clearTimeout(k.current)}}),[n,t]),{_onMouseEnter:R,_onMouseLeave:I,attributes:B,childrenRef:w,popperRef:x,setArrowRef:$,show:j,showTooltip:W,styles:H,wrapperRef:b}},Ul={message:"",type:"dark",placement:"bottom"},Yl=function(e){var n=e.callbackAfterTimeout,t=e.children,r=e.className,o=e.hideAfterSeconds,i=e.icon,a=e.message,l=e.onMouseEnter,c=e.onMouseLeave,u=e.onMouseLeaveHideDelay,d=e.onOpen,p=e.placement,f=void 0===p?"top":p,h=e.portalContainer,m=void 0===h?document.body:h,g=e.positionStrategy,y=void 0===g?"fixed":g,v=e.renderButton,b=e.shouldRender,x=void 0===b||b,w=e.showAfterSeconds,k=e.showAlways,S=void 0!==k&&k,C=e.style,E=e.type,O=void 0===E?"dark":E,$=e.usePortal,P=void 0!==$&&$,D=Wl({callbackAfterTimeout:n,hideAfterSeconds:o,onMouseEnter:l,onMouseLeave:c,onMouseLeaveHideDelay:u,onOpen:d,placement:f,positionStrategy:y,showAfterSeconds:w,showAlways:S}),T=D._onMouseEnter,A=D._onMouseLeave,_=D.attributes,M=D.childrenRef,j=D.popperRef,N=D.setArrowRef,R=D.show,F=D.showTooltip,L=D.styles,z=D.wrapperRef;return a?s.createElement("div",{className:r,style:C,ref:z},s.createElement("div",{ref:M,onClick:R,onMouseEnter:T,onMouseLeave:A},t),P?I(s.createElement(Bl,{shouldRender:!!a&&x,icon:i,message:a,renderButton:v,type:O,showTooltip:F,popperRef:j,styles:L,setArrowRef:N,attributes:_}),m):s.createElement(Bl,{shouldRender:!!a&&x,icon:i,message:a,renderButton:v,type:O,showTooltip:F,popperRef:j,styles:L,setArrowRef:N,attributes:_})):s.createElement(s.Fragment,null,t)};at.white[100],at.white[100];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(bl||(bl={}));var Vl,Gl,ql,Kl=D.div(Vl||(Vl=Zn(["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"],["\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin: 3px 0;\n max-height: 24px;\n\n padding-left: ",";\n padding-right: ",";\n\n color: ",";\n background-color: ",";\n"])),(function(e){var n=e.imageUrl;return e.leftIcon||n?"8px":"0"}),(function(e){return e.rightIcon?"8px":"0"}),(function(e){var n=e.theme,t=e.type;return n.components.badge[null!=t?t:bl.SUCCESS].color}),(function(e){var n=e.theme,t=e.type;return n.components.badge[null!=t?t:bl.SUCCESS].backgroundColor})),Xl=function(e){var n,t=e.handleRightIconClick,r=e.imageUrl,o=e.leftIcon,i=e.rightIcon,a=e.text,l=e.tooltip;return s.createElement(Kl,Vn({},e),r&&s.createElement(_l,{size:16,image:r}),o&&s.createElement(wt,Vn({},o)),s.createElement(Ql,null,a),s.createElement(Yl,Vn({message:null!==(n=null==l?void 0:l.message)&&void 0!==n?n:"",shouldRender:!!i&&!!l},l),i&&s.createElement(wt,Vn({},i,{onClick:t}))))},Ql=D.div(Gl||(Gl=Zn(["\n padding: "," ",";\n"],["\n padding: "," ",";\n"])),Ml.xxs,Ml.xs);at.grey[900],at.grey[50],at.yellow[900],at.yellow[50],at.green[900],at.green[50],at.blue[900],at.blue[50],at.red[900],at.red[50];!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(ql||(ql={}));var Zl,Jl,ec,nc,tc,rc,oc,ic,ac,lc,cc,sc,uc,dc,pc,fc=D.div(Zl||(Zl=Zn(["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"],["\n color: ",";\n background-color: ",";\n padding: 10px 20px 10px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n z-index: 11;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.banner[null!=t?t:ql.STANDARD].color}),(function(e){var n=e.theme,t=e.type;return n.components.banner[null!=t?t:ql.STANDARD].backgroundColor})),hc=D.div(Jl||(Jl=Zn(["\n flex-grow: 1;\n"],["\n flex-grow: 1;\n"]))),mc=function(e){var n=e.className,t=e.content,r=e.icon,o=e.onClose,i=e.type;return s.createElement(fc,{type:i,className:n},r&&s.createElement(wt,Vn({},r)),s.createElement(hc,null,t),o&&s.createElement(wt,{icon:U,onClick:o}))},gc=(at.white[100],at.blue[500],at.white[100],at.yellow[500],at.white[100],at.green[500],at.black[100],at.grey[200],at.white[100],at.red[500],function(e){var n=e.manualLock,t=void 0!==n&&n,r=e.onClick,o=e.timeMs,i=void 0===o?250:o,a=p(!0);return m((function(e){a.current&&!t&&(a.current=!1,setTimeout((function(){return a.current=!0}),i),null==r||r(e))}),[r,t,i])}),yc={large:40,medium:32},vc=function(e){var n=e.color,t=e.isDisabled,r=e.size,o=e.theme,i=e.type,a=o.components.button,l=a.defaultColor,c=a.defaultSize,s=a.defaultType,u=i||s,d=r||c,p=t?"disabled":n||l,f="primary"===u?"1px solid rgba(9,30,66, 0.16)":"",h=t?"default":"pointer",m=o.components.button[u][p];return Vn({height:yc[d],border:f,cursor:h},m)},bc=D(wt)(ec||(ec=Zn(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),xc=D(bc)(nc||(nc=Zn([""],[""]))),wc=D(bc)(tc||(tc=Zn([""],[""]))),kc=D(Ct)(rc||(rc=Zn(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n"]))),Sc=D.div(oc||(oc=Zn(["\n display: inline-block;\n line-height: initial;\n"],["\n display: inline-block;\n line-height: initial;\n"]))),Cc=D.div(ic||(ic=Zn(["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0 12px;\n"],["\n opacity: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0 12px;\n"])),(function(e){return e.isLoading?0:1})),Ec=T(ac||(ac=Zn(["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n display: inline-block;\n"],["\n border-radius: 4px;\n user-select: none;\n position: relative;\n text-align: center;\n\n width: ",";\n\n font-weight: 500;\n\n cursor: ",";\n border: ",";\n\n "," {\n height: ","px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n "," + * {\n margin-left: 8px;\n }\n\n color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n display: inline-block;\n"])),(function(e){return e.fullWidth?"100%":"initial"}),(function(e){return e.cursor}),(function(e){return e.border}),Cc,(function(e){return e.height}),xc,Sc,(function(e){return e.text}),(function(e){return e.normal}),(function(e){return e.textHover}),(function(e){return e.hover}),(function(e){return e.active})),Oc=D.a.attrs(vc)(lc||(lc=Zn(["\n ",";\n\n text-decoration: none;\n"],["\n ",";\n\n text-decoration: none;\n"])),Ec),$c=D.div.attrs(vc)(cc||(cc=Zn(["\n ",";\n"],["\n ",";\n"])),Ec),Pc=d((function(e,n){var t=e.href,r=Gn(e,["href"]);return t?s.createElement(Oc,Vn({},r,{href:t,ref:n})):s.createElement($c,Vn({},r,{ref:n}))})),Dc=d((function(e,n){var t=e.className,r=e.color,o=e.fullWidth,i=void 0!==o&&o,a=e.href,l=e.iconLeft,c=e.iconRight,u=e.isDisabled,d=void 0!==u&&u,p=e.isLoading,f=void 0!==p&&p,h=e.onClick,m=e.size,g=e.target,y=e.text,v=e.type,b=gc({onClick:h,manualLock:f||d});return s.createElement(Pc,{ref:n,className:t,size:m,color:r,onClick:b,href:a,type:v,isDisabled:d,fullWidth:i,target:g},s.createElement(Cc,{isLoading:f},l&&s.createElement(xc,Vn({},l)),y&&s.createElement(Sc,null,y),c&&s.createElement(wc,Vn({},c))),f&&s.createElement(kc,null))})),Tc=(at.blue[500],at.blue[700],at.blue[900],at.white[100],at.grey[100],at.red[500],at.red[700],at.red[900],at.white[100],at.grey[100],at.green[500],at.green[700],at.green[900],at.white[100],at.grey[100],at.white[100],at.grey[100],at.grey[200],at.black[100],at.black[100],at.yellow[500],at.yellow[700],at.yellow[900],at.white[100],at.grey[100],at.grey[50],at.grey[50],at.grey[50],at.grey[200],at.grey[200],at.blue[50],at.blue[100],at.blue[200],at.blue[900],at.blue[900],at.red[50],at.red[100],at.red[200],at.red[900],at.red[900],at.green[50],at.green[100],at.green[200],at.green[900],at.green[900],at.yellow[50],at.yellow[100],at.yellow[200],at.yellow[900],at.yellow[900],at.grey[50],at.grey[100],at.grey[200],at.black[100],at.black[100],at.grey[50],at.grey[50],at.grey[50],at.grey[200],at.grey[200],at.blue[50],at.blue[100],at.blue[500],at.blue[500],at.red[50],at.red[100],at.red[500],at.red[500],at.green[50],at.green[100],at.green[500],at.green[500],at.grey[50],at.grey[100],at.grey[500],at.grey[500],at.yellow[50],at.yellow[100],at.yellow[500],at.yellow[500],at.grey[200],at.grey[200],D.div.attrs((function(e){var n=e.color,t=e.isDisabled,r=e.theme,o=e.type,i=r.components.iconButton,a=i.defaultColor,l=i.defaultType,c=t?"disabled":n||a,s=o||l;return r.components.iconButton[s][c]}))(sc||(sc=Zn(["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n user-select: none;\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"],["\n display: inline-flex;\n font-size: 20px;\n text-decoration: none;\n padding: 0 8px;\n height: 32px;\n align-items: center;\n user-select: none;\n cursor: ",";\n color: ",";\n\n :hover {\n color: ",";\n text-decoration: none;\n }\n"])),(function(e){return e.isDisabled?"default":"pointer"}),(function(e){return e.normal}),(function(e){return e.hover}))),Ac=d((function(e,n){var t=e.icon,r=e.onClick,o=Gn(e,["icon","onClick"]),i=gc({onClick:r,manualLock:o.isDisabled});return s.createElement(Tc,Vn({},o,{ref:n,onClick:i}),s.createElement(wt,Vn({},t)))})),_c=(at.blue[200],at.blue[500],at.red[200],at.red[500],at.green[200],at.green[500],at.yellow[200],at.yellow[500],at.grey[200],at.grey[200],at.blue[200],at.white[100],at.red[200],at.white[100],at.green[200],at.white[100],at.yellow[200],at.white[100],at.grey[200],at.grey[200],["large","medium"]),Mc=["primary","secondary","text"],jc=["blue","red","green","grey","yellow"],Nc=["disabled"],Rc=["normal","hover","active","text","textHover"],Ic={transparent:{primary:{background:"transparent",border:at.grey[300]},secondary:{background:"transparent",border:at.grey[300]}},grey:{primary:{background:at.white[100],border:at.grey[100]},secondary:{background:at.grey[50],border:at.grey[50]}},yellow:{primary:{background:at.yellow[500],border:at.yellow[500]},secondary:{background:at.yellow[50],border:at.yellow[500]}},red:{primary:{background:at.red[500],border:at.red[500]},secondary:{background:at.red[50],border:at.red[500]}},blue:{primary:{background:at.blue[500],border:at.blue[500]},secondary:{background:at.blue[50],border:at.blue[500]}},green:{primary:{background:at.green[500],border:at.green[500]},secondary:{background:at.green[50],border:at.green[500]}}};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary"}(uc||(uc={})),function(e){e.BLUE="blue",e.GREEN="green",e.GREY="grey",e.RED="red",e.TRANSPARENT="transparent",e.YELLOW="yellow"}(dc||(dc={})),function(e){e[e.FLAT=0]="FLAT",e[e.LOW=1]="LOW",e[e.HIGH=2]="HIGH"}(pc||(pc={}));var Fc,Lc,zc,Bc,Hc,Wc,Uc,Yc,Vc,Gc,qc,Kc,Xc,Qc,Zc,Jc,es,ns,ts,rs=D.div(zc||(zc=Zn(["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"],["\n overflow: hidden;\n padding: 16px;\n border-radius: 8px;\n ","\n\n ","\n"])),(function(e){var n=e.color,t=e.elevation,r=e.outlined,o=e.theme,i=e.type;return T(Fc||(Fc=Zn(["\n background-color: ",";\n border: 1px solid ",";\n "],["\n background-color: ",";\n border: 1px solid ",";\n "])),o.components.card[n][i].background,o.components.card[n][i][r&&t<=0?"border":"background"])}),(function(e){var n=e.elevation;return n>0&&T(Lc||(Lc=Zn(["\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "],["\n box-shadow: 0px ","px ","px rgba(51, 51, 51, 0.12),\n ","px ","px ","px rgba(51, 51, 51, 0.24);\n "])),1*n,3*n,1*n,2*n,5*n)})),os=d((function(e,n){var t=e.children,r=e.color,o=void 0===r?dc.GREY:r,i=e.elevation,a=void 0===i?0:i,l=e.outlined,c=void 0!==l&&l,u=e.type,d=void 0===u?uc.PRIMARY:u,p=Gn(e,["children","color","elevation","outlined","type"]);return s.createElement(rs,Vn({ref:n,color:o,elevation:a,outlined:c,type:d},p),t)})),is=D.div(Hc||(Hc=Zn(["\n display: flex;\n flex-direction: row;\n align-items: center;\n ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n ",";\n"])),(function(e){var n=e.gap;return T(Bc||(Bc=Zn(["\n gap: ","px;\n "],["\n gap: ","px;\n "])),n)})),as=D.div(Wc||(Wc=Zn(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),ls=new Map([["jpg","img"],["jpeg","img"],["png","img"],["gif","img"],["mp4","video"],["webm","video"],["ogg","video"],["3gp","video"]]),cs=function(e){var n=e.src,t=e.className,r=e.showVideoControls,o=void 0===r||r;return function(e){var n=new URL(e).pathname.split(".")[1];return"video"===ls.get(n)}(n)?s.createElement("video",{controls:o,controlsList:"nodownload",src:n,className:t}):s.createElement("img",{src:n,className:t})},ss=D(cs)(Uc||(Uc=Zn(["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"],["\n border-radius: 10px;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n"]))),us=D(Ac)(Yc||(Yc=Zn(["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"],["\n position: absolute;\n color: ",";\n top: 2%;\n right: 2%;\n font-size: 24px;\n user-select: none;\n text-shadow: 0 0 3px ",";\n :active {\n filter: brightness(65%);\n }\n > svg > path {\n stroke: ",";\n stroke-width: 15;\n }\n"])),(function(e){return e.theme.palette.grey[800]}),(function(e){return e.theme.palette.white[100]}),(function(e){return e.theme.palette.white[100]})),ds=D(is)(Vc||(Vc=Zn(["\n width: 100%;\n"],["\n width: 100%;\n"]))),ps=function(e){var t=e.src,r=e.openFullscreen;return s.createElement(ds,null,s.createElement(ss,{src:t}),s.createElement(us,{icon:{icon:n},onClick:r}))},fs=D.li(Gc||(Gc=Zn(["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"],["\n display: flex;\n cursor: pointer;\n min-width: calc(25% - 8px);\n max-width: 33%;\n"]))),hs=D(cs)(Kc||(Kc=Zn(["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"],["\n border-radius: 10%;\n aspect-ratio: 16/9;\n object-fit: cover;\n width: 100%;\n ","\n"])),(function(e){return e.isSelected&&T(qc||(qc=Zn(["\n filter: brightness(65%);\n "],["\n filter: brightness(65%);\n "])))})),ms=s.forwardRef((function(e,n){var t=e.src,r=e.isSelected,o=e.onClick;return s.createElement(fs,{onClick:o,ref:n},s.createElement(hs,{isSelected:r,src:t,showVideoControls:!1}))})),gs=D(is)(Xc||(Xc=Zn(["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"],["\n position: relative;\n display: flex;\n width: 70%;\n align-items: center;\n"]))),ys=D.ul(Zc||(Zc=Zn(["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"],["\n overflow-x: scroll;\n scroll-snap-type: x;\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 0;\n margin: 0;\n\n /* remove scrollbar */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n background: transparent;\n width: 0;\n height: 0;\n }\n\n ","\n"])),(function(e){return e.mediaCount<3&&T(Qc||(Qc=Zn(["\n justify-content: center;\n "],["\n justify-content: center;\n "])))})),vs=D(Ac)(Jc||(Jc=Zn(["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"],["\n user-select: none;\n position: absolute;\n color: ",";\n font-size: 24px;\n :active {\n filter: brightness(65%);\n }\n"])),(function(e){return e.theme.palette.grey[800]})),bs=D(vs)(es||(es=Zn(["\n right: -32px;\n"],["\n right: -32px;\n"]))),xs=D(vs)(ns||(ns=Zn(["\n left: -32px;\n"],["\n left: -32px;\n"]))),ws=function(e){var n=e.media,o=e.selectedMedia,i=e.setSelectedMedia,a=p([]),l=m((function(e){i(e),function(e,n){var t;null===(t=n.current[e])||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}(e,a)}),[i]),c=m((function(e){l(function(e,n,t){return(n+e+("back"===t?-1:1))%n}(o,n.length,e))}),[o,n.length,l]);return s.createElement(gs,null,s.createElement(ys,{mediaCount:n.length},n.map((function(e,n){return s.createElement(ms,{key:n,src:e,isSelected:o===n,onClick:function(){return l(n)},ref:function(e){return a.current[n]=e}})}))),s.createElement(bs,{onClick:function(){return c("forward")},icon:{icon:t}}),s.createElement(xs,{onClick:function(){return c("back")},icon:{icon:r}}))};!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success"}(ts||(ts={}));var ks,Ss,Cs,Es,Os,$s,Ps,Ds,Ts,As,_s,Ms,js,Ns=D(wt)(ks||(ks=Zn(["\n margin-right: 4px;\n"],["\n margin-right: 4px;\n"]))),Rs=D(wt)(Ss||(Ss=Zn(["\n cursor: pointer;\n margin-left: 4px;\n"],["\n cursor: pointer;\n margin-left: 4px;\n"]))),Is=D.div(Cs||(Cs=Zn([""],[""]))),Fs=D.div($s||($s=Zn(["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"],["\n border-radius: 100px;\n display: inline-flex;\n align-items: center;\n font-size: 14px;\n line-height: 1em;\n white-space: nowrap;\n padding: 5px ",";\n\n ","\n\n ","\n"])),Ml.xs,(function(e){var n=e.theme,t=e.type,r=void 0===t?ts.STANDARD:t;return T(Es||(Es=Zn(["\n background-color: ",";\n color: ",";\n "],["\n background-color: ",";\n color: ",";\n "])),n.components.chip[r].backgroundColor,n.components.chip[r].color)}),(function(e){var n=e.statusEdit,t=e.theme,r=e.type,o=void 0===r?ts.STANDARD:r;if(n)return T(Os||(Os=Zn(["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "],["\n &:hover {\n background-color: ",";\n }\n &:active {\n background-color: ",";\n }\n "])),t.components.chip[o].hover,t.components.chip[o].active)})),Ls=function(e){var n=e.closeAction,t=e.leftIcon,r=e.statusEdit,o=e.text;return s.createElement(Fs,Vn({},e),t&&s.createElement(Ns,Vn({},t)),s.createElement(Is,null,o),r&&s.createElement(Rs,{icon:U,onClick:function(){n&&n()}}))},zs=(at.black[100],at.grey[100],at.grey[200],at.grey[300],at.green[900],at.green[100],at.green[200],at.green[300],at.blue[900],at.blue[100],at.blue[200],at.blue[300],at.yellow[900],at.yellow[100],at.yellow[200],at.yellow[300],at.red[900],at.red[100],at.red[200],at.red[300],200),Bs="M30,90 A40,40 0 1,1 80,90",Hs=D.path(Ps||(Ps=Zn(["\n stroke-linecap: round;\n stroke: ",";\n stroke-width: 8;\n fill-opacity: 0;\n"],["\n stroke-linecap: round;\n stroke: ",";\n stroke-width: 8;\n fill-opacity: 0;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trailBorder})),Ws=D.path(Ds||(Ds=Zn(["\n stroke-linecap: round;\n stroke-width: 6;\n fill-opacity: 0;\n stroke: ",";\n"],["\n stroke-linecap: round;\n stroke-width: 6;\n fill-opacity: 0;\n stroke: ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trail})),Us=D.path(Ts||(Ts=Zn(["\n stroke: ",";\n stroke-width: 6;\n stroke-linecap: round;\n fill-opacity: 0;\n"],["\n stroke: ",";\n stroke-width: 6;\n stroke-linecap: round;\n fill-opacity: 0;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].path})),Ys=D.circle(As||(As=Zn(["\n stroke: ",";\n fill: white;\n stroke-width: 0.5;\n"],["\n stroke: ",";\n fill: white;\n stroke-width: 0.5;\n"])),(function(e){var n=e.theme,t=e.type;return n.components.circularProgressBar[t].trailBorder})),Vs=D.div(_s||(_s=Zn(["\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n"]))),Gs=D(el)(Ms||(Ms=Zn(["\n color: rgba(0, 0, 0, 0.64);\n"],["\n color: rgba(0, 0, 0, 0.64);\n"]))),qs=function(e){var n=e.percentage,t=e.subtitle,r=e.type,o=0===n?199:(100-n)/100*zs+"px";return s.createElement(s.Fragment,null,s.createElement("svg",{viewBox:"10 10 90 90",width:"100%",height:"100%"},s.createElement(Hs,{type:r,d:Bs}),s.createElement(Ws,{d:Bs,type:r}),s.createElement("foreignObject",{textAnchor:"middle",x:"28%",y:"40%",width:60,height:60},s.createElement(Vs,null,s.createElement(Za,null,n+"%"),"string"==typeof t?s.createElement(Gs,null,t):t)),s.createElement(Us,{d:Bs,type:r,pathLength:zs,strokeDasharray:"200px 200px",strokeDashoffset:o}),s.createElement(Ys,{cx:"0",cy:"0",r:"1.75",type:r,path:Bs,pathLength:n},s.createElement("animateMotion",{restart:"always",repeatCount:"indefinite",keyPoints:n/100+";"+n/100,keyTimes:"0;1",path:Bs,dur:"1s"}))))};!function(e){e.STANDARD="standard",e.WARNING="warning",e.ERROR="error"}(js||(js={}));var Ks,Xs,Qs,Zs,Js,eu,nu,tu,ru,ou,iu,au,lu,cu,su,uu,du,pu,fu,hu,mu,gu,yu,vu,bu,xu,wu,ku,Su,Cu,Eu,Ou=D.div(Ks||(Ks=Zn(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: ",";\n padding: 12px;\n border-radius: 8px;\n border: ",";\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: ",";\n padding: 12px;\n border-radius: 8px;\n border: ",";\n"])),(function(e){return e.theme.components.closableCard.background}),(function(e){return"0.5px solid "+e.theme.components.closableCard.border})),$u=D(el)(Xs||(Xs=Zn(["\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n text-align: center;\n"],["\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n text-align: center;\n"]))),Pu=D(el)(Qs||(Qs=Zn(["\n text-align: center;\n font-size: 14px;\n line-height: 22px;\n font-weight: 400;\n"],["\n text-align: center;\n font-size: 14px;\n line-height: 22px;\n font-weight: 400;\n"]))),Du=D(wt)(Zs||(Zs=Zn(["\n cursor: pointer;\n position: absolute;\n top: 8px;\n right: 8px;\n"],["\n cursor: pointer;\n position: absolute;\n top: 8px;\n right: 8px;\n"]))),Tu=function(e){var n=e.className,t=e.onClose,r=e.renderSubtitleElement,o=e.subtitle,i=e.title;return s.createElement(Ou,{className:n},s.createElement($u,null,i),o&&s.createElement(Pu,null,o),null==r?void 0:r(),t&&s.createElement(Du,{icon:ge}))},Au=(at.white[80],at.grey[200],D.span(Js||(Js=Zn(["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"],["\n background-color: transparent;\n color: ",";\n padding: 0 2px 0 2px;\n white-space: nowrap;\n font-size: 12px;\n"])),(function(e){return e.theme.components.dropdown.shortcut.color}))),_u=function(e){var n=e.active,t=e.className,r=e.componentId,o=e.icon,i=e.isDisabled,a=e.onClick,l=e.rowHasFocus,c=e.shortcut,u=e.text,d=Gn(e,["active","className","componentId","icon","isDisabled","onClick","rowHasFocus","shortcut","text"]),p=m((function(e){return!i&&(null==a?void 0:a(e))}),[i,a]);return s.createElement(Mu,Vn({active:!!n,className:t||"",id:r,isDisabled:i,onClick:p,rowHasFocus:Boolean(l),tabIndex:-1},d),s.createElement(ju,null,o&&s.createElement(wt,Vn({},o)),s.createElement(Nu,null,u),c&&s.createElement(Au,null,c)))},Mu=D.div.attrs((function(e){var n=e.active,t=e.isDisabled,r=e.theme,o=e.type,i=void 0===o?"default":o,a=r.components.dropdown.items.notActive[i],l=r.components.dropdown.items.active,c=n?l:a;return{opacity:t?.5:1,background:c.background,color:c.color,hoverBackground:c.hoverBackground}}))(tu||(tu=Zn(["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"],["\n text-align: left;\n line-height: 21px !important;\n padding: 5px 16px;\n font-size: 14px;\n font-style: normal;\n font-weight: normal;\n\n opacity: ",";\n color: ",";\n background-color: ",";\n\n ","\n\n :focus {\n ","\n }\n"])),(function(e){return e.opacity}),(function(e){return e.color}),(function(e){return e.background}),(function(e){var n=e.rowHasFocus,t=e.hoverBackground;return!n&&T(eu||(eu=Zn(["\n :hover {\n background-color: ",";\n }\n "],["\n :hover {\n background-color: ",";\n }\n "])),t)}),(function(e){var n=e.hoverBackground;return T(nu||(nu=Zn(["\n background-color: ",";\n outline: 0 solid transparent;\n "],["\n background-color: ",";\n outline: 0 solid transparent;\n "])),n)})),ju=D.div(ru||(ru=Zn(["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n\n & > * {\n display: inline;\n }\n\n & > svg {\n margin-right: 10px;\n }\n"]))),Nu=D.div(ou||(ou=Zn(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n flex: 1 1 auto;\n"]))),Ru=D.div(iu||(iu=Zn(["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"],["\n margin: 8px 0;\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid ",";\n padding: 0;\n cursor: initial;\n"])),(function(e){return e.theme.components.dropdown.separator.color})),Iu=function(){return s.createElement(Ru,null)},Fu=D.div(au||(au=Zn(["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"],["\n cursor: initial;\n text-align: left;\n padding: 4px 16px;\n font-weight: 500;\n font-size: 12px;\n line-height: 18px;\n text-transform: uppercase;\n color: ",";\n"])),(function(e){return e.theme.components.dropdown.title.color})),Lu=function(e){var n=e.avatarSize,t=e.img,r=e.noText,o=e.onClick,i=e.placeholder,a=e.renderText,l=e.text;return s.createElement(zu,{clickable:!!o,onClick:o},s.createElement(_l,{image:t,placeholder:i,size:n||24,text:l}),s.createElement(Bu,null,a||(l||r)))},zu=D.div(cu||(cu=Zn(["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"],["\n ",";\n\n display: flex;\n padding: 4px 16px;\n align-items: center;\n"])),(function(e){return e.clickable&&T(lu||(lu=Zn(["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "],["\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n "])),(function(e){return e.theme.components.dropdown.items.notActive.default.hoverBackground}))})),Bu=D.div(su||(su=Zn(["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"],["\n width: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: middle;\n flex-grow: 1;\n padding-left: 10px;\n"]))),Hu=function(e,n){return e.replace(":id",""+n)},Wu=function(e,n,t,r,o,i){if(void 0===i&&(i=-1),!n.includes(":id"))throw new Error("Selector pattern require :id");var a=f(i),l=a[0],c=a[1],s=f(null),u=s[0],d=s[1],p=document.getElementById(e);return null==p||p.addEventListener("focusout",(function(e){!t&&e.relatedTarget instanceof Node&&!p.contains(e.relatedTarget)&&(c(-1),d(null))})),null==p||p.addEventListener("focus",(function(){if(!t){var e=i>=0?i:0,r=document.getElementById(Hu(n,e));null==r||r.focus(),d(r),c(e)}})),null==p||p.addEventListener("mousemove",(function(){u&&(u.blur(),d(null))})),_e("ArrowUp",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.max(l-1,0),o=document.getElementById(Hu(n,r));o&&(o.focus(),d(o),c(r))}}),{target:p},[l,t,n]),_e("ArrowDown",(function(e){if(e.preventDefault(),!t&&l>=0){var r=Math.min(l+1,o),i=document.getElementById(Hu(n,r));i&&(i.focus(),d(i),c(r))}}),{target:p},[l,t,o,n]),_e("Enter",(function(e){e.preventDefault(),t||l>=0&&r(l)}),{target:p},[l,t]),[l,c,null!==u]},Uu=function(e){var n=e.title,t=e.isDisabled;return s.createElement(Dc,{text:n,isDisabled:t,iconRight:{icon:Y}})},Yu=D.div(uu||(uu=Zn(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n"],["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n"]))),Vu=function(e){var n=e.children,t=e.onClick;return s.createElement(Yu,{onClick:t},n)},Gu=function(e){var n=e.closeDropdown,t=e.componentId,r=e.content,o=e.emptyState,i=e.fullWidth,a=e.maxWidth,l=e.rowHasFocus,c=e.setHighlightedItem,d=u((function(){return r.map((function(e,r){var o=e.onClick;e.onMouseEnter;var u=Gn(e,["onClick","onMouseEnter"]);return s.createElement(_u,Vn({componentId:t+"_"+r+"_listItem",fullWidth:i,maxWidth:a,key:r,onMouseEnter:function(){return!l&&c(r)},onClick:function(e){e.stopPropagation(),null==o||o(e),n()},rowHasFocus:l},u))}))}),[n,t,r,i,a,l,c]);return r&&r.length>0?s.createElement(s.Fragment,null,d):o?s.createElement(s.Fragment,null,o):s.createElement(qu,null,"Non ci sono elementi da visualizzare")},qu=D.div(du||(du=Zn(["\n text-align: center;\n padding: 1em;\n"],["\n text-align: center;\n padding: 1em;\n"]))),Ku=D.div(pu||(pu=Zn(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Xu=D(Dc)(fu||(fu=Zn(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),Qu=D(Dc)(hu||(hu=Zn(["\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"]))),Zu=D.div(mu||(mu=Zn(["\n display: flex;\n"],["\n display: flex;\n"]))),Ju=T(vu||(vu=Zn(["\n overflow-y: auto;\n max-height: ",";\n\n ",";\n"],["\n overflow-y: auto;\n max-height: ",";\n\n ",";\n"])),(function(e){return e.maxHeight+"px"}),(function(e){var n=e.fullWidth,t=e.maxWidth;return t?T(gu||(gu=Zn(["\n max-width: ",";\n "],["\n max-width: ",";\n "])),ft(t)):T(yu||(yu=Zn(["\n width: ",";\n "],["\n width: ",";\n "])),n?"auto":"200px")})),ed=D.div(bu||(bu=Zn(["\n cursor: pointer;\n ","\n"],["\n cursor: pointer;\n ","\n"])),Ju),nd=D.div(xu||(xu=Zn(["\n ","\n"],["\n ","\n"])),Ju),td=D.div(ku||(ku=Zn(["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"],["\n overflow-y: hidden;\n ","\n color: ",";\n background-color: ",";\n border-radius: 3px;\n box-shadow: 0 2px 7px -2px rgba(0, 0, 0, 1);\n z-index: 9;\n"])),(function(e){return e.withPadding&&T(wu||(wu=Zn(["\n padding: 8px 0;\n "],["\n padding: 8px 0;\n "])))}),(function(e){return e.theme.components.dropdown.color}),(function(e){return e.theme.components.dropdown.backgroundColor})),rd=D.div(Su||(Su=Zn(["\n position: absolute;\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-done {\n z-index: initial;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"],["\n position: absolute;\n z-index: 9;\n &.enter {\n opacity: 0;\n margin-top: -10px;\n }\n\n &.enter-done {\n z-index: initial;\n }\n\n &.enter-active {\n opacity: 1;\n margin-top: 0;\n transition: margin-top 200ms, opacity 200ms;\n }\n\n &.exit {\n opacity: 1;\n margin-top: 0;\n }\n\n &.exit-active {\n opacity: 0;\n margin-top: -10px;\n transition: margin-top 200ms, opacity 200ms;\n }\n"]))),od=d((function(e,n){var t=e.attributes,r=e.blockIframeClick,o=e.closeDropdown,i=e.content,a=e.disableArrowNavigation,l=e.dropdownId,c=e.emptyState,d=e.fullWidth,p=e.internalMaxHeight,f=e.internalState,h=e.maxWidth,m=e.onClose,g=e.onOpen,y=e.renderContent,v=e.rowHasFocus,b=e.setArrowRef,x=e.setHighlightedItem,w=e.styles,k=e.withPadding,S=u((function(){return s.createElement(td,Vn({ref:n,style:w.popper},t.popper,{withPadding:k}),s.createElement("div",{ref:b,style:w.arrow}),s.createElement("div",{style:w.offset},i?s.createElement(ed,{id:l+"_list",fullWidth:d,maxWidth:h,maxHeight:p},s.createElement(Gu,{closeDropdown:o,componentId:l,content:i,disableArrowNavigation:a,fullWidth:d,maxWidth:h,rowHasFocus:v,setHighlightedItem:x,emptyState:c})):s.createElement(nd,{maxWidth:h,maxHeight:p,fullWidth:d},null==y?void 0:y(o))))}),[t.popper,o,i,a,l,c,d,p,h,n,y,v,b,x,w.arrow,w.offset,w.popper,k]);return s.createElement(L,{in:f,timeout:200,unmountOnExit:!0,appear:!0,onExit:function(){return null==m?void 0:m(!f)},onEnter:function(){return null==g?void 0:g(f)}},s.createElement(rd,null,r?s.createElement(Vu,{onClick:function(){return null==o?void 0:o()}},S):S))})),id=function(e){var n,t=e.blockIframeClick,r=e.className,o=e.content,i=e.disableArrowNavigation,a=void 0!==i&&i,l=e.disablePlacementFlip,c=void 0!==l&&l,d=e.emptyState,g=e.fullWidth,y=e.isDisabled,v=e.maxHeight,b=e.maxWidth,x=e.minWidthAsTrigger,w=void 0!==x&&x,k=e.offsetY,S=void 0===k?4:k,C=e.onClose,E=e.onOpen,O=e.open,$=e.outsideTriggers,P=e.placement,D=void 0===P?"bottom-start":P,T=e.portalContainer,A=void 0===T?document.body:T,_=e.renderContent,M=e.renderTrigger,j=e.setOpen,N=e.sideButton,R=e.title,F=e.triggerStyles,L=e.usePortal,B=void 0!==L&&L,H=e.withPadding,W=void 0===H||H,U=f(mt())[0],V=f(null!=O&&O),G=V[0],q=V[1],K=f(99999),X=K[0],Q=K[1];h((function(){void 0!==O&&q(O)}),[O]);var Z=m((function(){void 0!==j?j(!1):q(!1)}),[j]),J=m((function(e){y||(void 0!==j?j((function(e){return!e})):q((function(e){return!e})),e.stopPropagation(),e.preventDefault())}),[y,j]),ee=p(null);Hl(ee,G,Z,$);var ne=m((function(e){return null==o?void 0:o[e].onClick}),[o]),te=Wu(U+"_list",U+"_:id_listItem",a,ne,null!==(n=null==o?void 0:o.length)&&void 0!==n?n:0),re=te[1],oe=te[2],ie=f(null),ae=ie[0],le=ie[1],ce=p(null),se=f(null),ue=se[0],de=se[1],pe=z(ce.current,ae,{placement:D,strategy:"fixed",modifiers:u((function(){return[{name:"computeStyles",options:{gpuAcceleration:!1}},{name:"arrow",options:{element:ue}},{name:"offset",enabled:!0,options:{offset:[0,S]}},{name:"flip",enabled:!c},{name:"minWidthAsTrigger",enabled:w,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var n=e.state;n.styles.popper.minWidth=n.rects.reference.width+"px"},effect:function(e){var n=e.state,t=n.elements.reference.getBoundingClientRect().width;n.elements.popper.style.minWidth=t+"px"}}]}),[ue,S,w,c])}),fe=pe.attributes,he=pe.styles,me=m((function(){var e,n,t,r=null===(e=ee.current)||void 0===e?void 0:e.getBoundingClientRect(),o="string"==typeof v?ht(v):null!=v?v:99999,i=o;r&&(i=(null===(n=null==fe?void 0:fe.popper)||void 0===n?void 0:n["data-popper-placement"].includes("bottom"))?window.innerHeight-r.bottom-4-8-16:(null===(t=null==fe?void 0:fe.popper)||void 0===t?void 0:t["data-popper-placement"].includes("top"))?r.top-4-8-16:window.innerHeight-8-8-16),Q(Math.max(Math.min(Math.abs(i),o),100))}),[fe,v]);return h((function(){return me(),window.addEventListener("resize",me),window.addEventListener("scroll",me),function(){window.removeEventListener("resize",me),window.removeEventListener("scroll",me)}}),[me]),s.createElement(Zu,{id:U,className:r,ref:ee},N?s.createElement(Ku,{ref:ce},s.createElement(Xu,Vn({},N,{isDisabled:y})),s.createElement(Qu,{iconRight:{icon:Y},onClick:J,isDisabled:y})):s.createElement("div",{style:F,ref:ce,onClick:J},R?s.createElement(Uu,{title:R,isDisabled:y}):null==M?void 0:M()),function(e,n,t){return t?I(e,n):e}(s.createElement(od,{attributes:fe,closeDropdown:Z,content:o,disableArrowNavigation:a,dropdownId:U,emptyState:d,fullWidth:g,internalMaxHeight:X,internalState:G,maxWidth:b,onClose:C,onOpen:E,ref:le,renderContent:_,rowHasFocus:oe,setArrowRef:de,setHighlightedItem:re,styles:he,withPadding:W,blockIframeClick:t}),A,B))},ad=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Yn(n,e),n.prototype.render=function(){return s.createElement(id,Vn({},this.props))},n.Item=_u,n.Title=function(e){return n=e,s.createElement(Fu,null,n.text);var n},n.Separator=Iu,n.UserListItem=Lu,n}(g);at.grey[900],at.white[100],at.black[100],at.blue[50],at.grey[100],at.black[100],at.grey[100],at.red[500],at.red[50],at.green[500],at.green[50],at.yellow[500],at.yellow[50],at.blue[500],at.blue[50],at.grey[700],at.grey[100],at.grey[500],at.white[100],at.grey[500],at.white[100],at.yellow[500],at.white[100],at.green[500],at.white[100],at.blue[500],at.white[100],at.red[500],at.white[100],at.grey[200];!function(e){e.EXTRA_EXTRA_SMALL="extra-extra-small",e.EXTRA_SMALL="extra-small",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Cu||(Cu={})),function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Eu||(Eu={}));var ld,cd,sd,ud,dd,pd,fd,hd,md,gd,yd,vd,bd,xd,wd,kd,Sd,Cd,Ed,Od,$d=D.span(pd||(pd=Zn(["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"],["\n display: block;\n text-align: center;\n width: fit-content;\n padding: 2px;\n white-space: nowrap;\n font-style: normal;\n font-weight: 500;\n\n background-color: ",";\n color: ",";\n\n ",";\n"])),(function(e){var n=e.theme,t=e.type;return n.components.floatingBadge[null!=t?t:Eu.STANDARD].backgroundColor}),(function(e){var n=e.theme,t=e.type;return n.components.floatingBadge[null!=t?t:Eu.STANDARD].color}),(function(e){return function(e){switch(e){case Cu.EXTRA_EXTRA_SMALL:return T(ld||(ld=Zn(["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "],["\n height: 4px;\n min-width: 4px;\n border-radius: 4px;\n font-size: 4px;\n line-height: 4px;\n "])));case Cu.EXTRA_SMALL:return T(cd||(cd=Zn(["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "],["\n height: 12px;\n min-width: 12px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 12px;\n "])));case Cu.SMALL:return T(sd||(sd=Zn(["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "],["\n height: 16px;\n min-width: 16px;\n border-radius: 10px;\n font-size: 12px;\n line-height: 16px;\n "])));case Cu.LARGE:return T(ud||(ud=Zn(["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "],["\n height: 24px;\n min-width: 24px;\n border-radius: 14px;\n font-size: 14px;\n line-height: 24px;\n "])));default:return T(dd||(dd=Zn(["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "],["\n height: 20px;\n min-width: 20px;\n border-radius: 12px;\n font-size: 12px;\n line-height: 20px;\n "])))}}(e.size)})),Pd=D($d)(gd||(gd=Zn(["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"],["\n position: absolute;\n ",";\n top: ",";\n right: ",";\n padding: 0;\n\n &:after {\n content: '","';\n\n position: static;\n margin: 1px 2px;\n display: block;\n text-align: center;\n }\n"])),(function(e){return function(e){switch(e){case"small":return T(fd||(fd=Zn(["\n top: 3px;\n right: 3px;\n "],["\n top: 3px;\n right: 3px;\n "])));case"large":return T(hd||(hd=Zn(["\n top: -1px;\n right: -1px;\n "],["\n top: -1px;\n right: -1px;\n "])));default:return T(md||(md=Zn(["\n top: 1px;\n right: 1px;\n "],["\n top: 1px;\n right: 1px;\n "])))}}(e.size)}),(function(e){var n=e.top;return void 0!==n?n+"px":void 0}),(function(e){var n=e.right;return void 0!==n?n+"px":void 0}),(function(e){return e.counter})),Dd=function(e){var n=e.children,t=Gn(e,["children"]);return s.createElement(Td,null,n,!t.isDisabled&&s.createElement(Pd,Vn({},t)))},Td=D.div(yd||(yd=Zn(["\n display: inline-block;\n position: relative;\n"],["\n display: inline-block;\n position: relative;\n"]))),Ad=D.span.attrs((function(e){var n=e.disabled,t=e.large,r=e.hasError,o=e.palette;return{fontSize:t?"16px":"14px",cursor:n?"not-allowed":"pointer",opacity:n?.16:1,color:r?o.error:o.normal}}))(vd||(vd=Zn(["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"],["\n flex: 1;\n text-align: left;\n font-size: ",";\n cursor: ",";\n color: ",";\n opacity: ",";\n"])),(function(e){return e.fontSize}),(function(e){return e.cursor}),(function(e){return e.color}),(function(e){return e.opacity})),_d=D.div(bd||(bd=Zn(["\n display: flex;\n gap: 8px;\n width: fit-content;\n"],["\n display: flex;\n gap: 8px;\n width: fit-content;\n"]))),Md=D.div(xd||(xd=Zn(["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n min-width: 0;\n"],["\n display: flex;\n flex-flow: column;\n gap: 6px;\n flex: 1;\n min-width: 0;\n"]))),jd=D.input(wd||(wd=Zn(["\n display: none;\n"],["\n display: none;\n"]))),Nd=function(e){var n=e.status,t=e.message,r=function(e,n){var t=A();return n||null===n?n:t.components.inputHelper[e].defaultIcon}(n,e.icon);return s.createElement(Id,{status:n},r&&s.createElement(Rd,Vn({},r)),t)},Rd=D(wt)(kd||(kd=Zn(["\n margin-top: 2px;\n"],["\n margin-top: 2px;\n"]))),Id=D.div(Sd||(Sd=Zn(["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"],["\n color: ",";\n background: ",";\n border-radius: 4px;\n\n padding: 4px 8px;\n\n display: flex;\n align-items: flex-start;\n gap: 8px;\n\n font-size: 12px;\n line-height: 18px;\n\n "," {\n color: ",";\n }\n"])),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}),(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].background}),Rd,(function(e){var n=e.theme,t=e.status;return n.components.inputHelper[t].color}));!function(e){e.CHECKED="checked",e.UNCHECKED="unchecked",e.INDETERMINATE="indeterminate"}(Cd||(Cd={})),function(e){e.NORMAL="normal",e.ERROR="error"}(Ed||(Ed={})),function(e){e.TICKCOLOR="tickColor",e.BACKGROUNDCOLOR="backgroundColor",e.BORDERCOLOR="borderColor"}(Od||(Od={}));var Fd,Ld,zd,Bd,Hd={checked:V,indeterminate:G,unchecked:null},Wd=function(e){return"boolean"==typeof e?e?Cd.CHECKED:Cd.UNCHECKED:e},Ud=D.span.attrs((function(e){var n=e.disabled,t=e.hasError,r=e.large,o=e.theme,i=e.value,a=o.components.checkbox.input,l=a.error,c=a.normal,s=r?"20px":"16px",u=(t?l:c)[i],d=u.backgroundColor,p=u.borderColor;return{backgroundColor:d,tickColor:u.tickColor,borderColor:p,cursor:n?"not-allowed":"pointer",height:s,width:s,opacity:n?.3:1}}))(Fd||(Fd=Zn(["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"],["\n border-radius: 4px;\n font-size: 10px;\n text-align: center;\n\n width: ",";\n height: ",";\n background-color: ",";\n color: ",";\n border: ",";\n cursor: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n opacity: ",";\n"])),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.backgroundColor}),(function(e){return e.tickColor}),(function(e){return"1px solid "+e.borderColor}),(function(e){return e.cursor}),(function(e){return e.opacity})),Yd=D.span(Ld||(Ld=Zn(["\n margin-left: 2px;\n color: ",";\n"],["\n margin-left: 2px;\n color: ",";\n"])),(function(e){return e.theme.palette.red[600]})),Vd=function(e){var n=e.className,t=e.disabled,r=e.helper,o=e.large,i=e.onChange,a=e.onClick,l=e.required,c=e.text,u=e.value,d=m((function(){var e;return null===(e=v.current)||void 0===e?void 0:e.click()}),[]),f=m((function(e){return!t&&a&&a(e)}),[t,a]),g=A(),y=Hd[u],v=p(null);h((function(){if(v.current)switch(u){case Cd.CHECKED:v.current.checked=!0,v.current.indeterminate=!1;break;case Cd.INDETERMINATE:v.current.checked=!1,v.current.indeterminate=!0;break;case Cd.UNCHECKED:v.current.checked=!1,v.current.indeterminate=!1}}),[u]);var b="error"===(null==r?void 0:r.status);return s.createElement(Md,null,s.createElement(_d,{className:n,onClick:d},s.createElement(Ud,{value:u,large:o,disabled:t,hasError:b},y&&s.createElement(wt,{icon:y})),s.createElement(jd,{ref:v,type:"checkbox",value:u,onClick:f,onChange:i,disabled:t}),!!c&&s.createElement(Ad,{large:o,disabled:t,hasError:b,palette:g.components.checkbox.label},c,l&&s.createElement(Yd,null,"*"))),r&&s.createElement(Nd,Vn({},r)))},Gd=function(e){var n=e.value,t=Gn(e,["value"]);return s.createElement(Vd,Vn({},t,{value:Wd(n)}))},qd={tickColor:at.white[100],backgroundColor:at.blue[500],borderColor:at.blue[500]},Kd={tickColor:at.white[100],backgroundColor:at.red[500],borderColor:at.red[500]},Xd=(at.white[100],at.grey[500],at.white[100],at.red[500],at.black[100],at.red[500],function(e){void 0===e&&(e=Cd.UNCHECKED);var n=f((function(){return Wd(e)})),t=n[0],r=n[1],o=t===Cd.CHECKED,i=m((function(){return r(Cd.CHECKED)}),[]),a=m((function(){return r(Cd.UNCHECKED)}),[]),l=m((function(){return r(Cd.INDETERMINATE)}),[]),c=m((function(){return r((function(e){return e===Cd.UNCHECKED?Cd.CHECKED:Cd.UNCHECKED}))}),[]);return{status:t,value:o,setCheck:i,setUncheck:a,setIndeterminate:l,toggleCheckbox:c}}),Qd=T(zd||(zd=Zn(["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"],["\n cursor: default !important;\n font-weight: 400 !important;\n display: block !important;\n margin-bottom: 0 !important;\n"])));!function(e){e.STANDARD="standard",e.ERROR="error",e.INFO="info",e.WARNING="warning",e.SUCCESS="success",e.DISABLED="disabled"}(Bd||(Bd={}));var Zd,Jd,ep=D.label(Zd||(Zd=Zn(["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"],["\n font-size: 12px;\n line-height: 18px;\n\n color: ",";\n\n ","\n\n /* Bootstrap Fixes */\n ","\n"])),(function(e){var n=e.color,t=e.disabled;return function(e){var n=e.theme,t=e.color;return e.disabled?n.components.label[Bd.DISABLED]:Object.values(Bd).includes(t)?n.components.label[t]:t||n.components.label[Bd.STANDARD]}({theme:e.theme,color:n,disabled:t})}),(function(e){return e.required&&np}),Qd),np=T(Jd||(Jd=Zn(["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"],["\n &:after {\n color: ",";\n content: '*';\n display: inline;\n }\n"])),(function(e){return e.theme.components.label[Bd.ERROR]})),tp=function(e){var n=e.label,t=e.disabled,r=e.required,o=e.color;return n?s.createElement(ep,{disabled:t,required:r,color:o},n):null};at.red[500],at.yellow[500],at.green[500],at.blue[500],at.black[100],at.grey[300];function rp(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}function op(e){return function(n,t){var r;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=t&&t.width?String(t.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(n):n]}}function ip(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=n.match(o);if(!i)return null;var a,l=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return t}(c,(function(e){return e.test(l)})):function(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t}(c,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(s):s,{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(l.length)}}}function ap(e){return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(e.matchPattern);if(!r)return null;var o=r[0],i=n.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:n.slice(o.length)}}}function lp(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function cp(e){return cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cp(e)}var sp={};function up(e,n){var t,r,o,i,a,l,c,s;lp(1,arguments);var u=sp,d=function(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}(null!==(t=null!==(r=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=function(e){lp(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===cp(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):("string"!=typeof e&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}var dp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pp={date:rp({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rp({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},fp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hp={code:"en-US",formatDistance:function(e,n,t){var r,o=dp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},formatLong:pp,formatRelative:function(e,n,t,r){return fp[e]},localize:{ordinalNumber:function(e,n){var t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:op({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:op({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ap({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function mp(e,n,t){lp(2,arguments);var r=up(e,t),o=up(n,t);return r.getTime()===o.getTime()}var gp={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},yp={date:rp({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:rp({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vp={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},bp={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},xp={code:"es",formatDistance:function(e,n,t){var r,o=gp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"hace "+r:r},formatLong:yp,formatRelative:function(e,n,t,r){return 1!==n.getUTCHours()?bp[e]:vp[e]},localize:{ordinalNumber:function(e,n){return Number(e)+"º"},era:op({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:op({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:op({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ap({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},wp={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},kp={date:rp({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:rp({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:rp({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Sp=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Cp(e){return"'"+Sp[e]+" alle' p"}var Ep={lastWeek:function(e,n,t){var r=e.getUTCDay();return mp(e,n,t)?Cp(r):function(e){return 0===e?"'domenica scorsa alle' p":"'"+Sp[e]+" scorso alle' p"}(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,n,t){var r=e.getUTCDay();return mp(e,n,t)?Cp(r):function(e){return 0===e?"'domenica prossima alle' p":"'"+Sp[e]+" prossimo alle' p"}(r)},other:"P"},Op={ordinalNumber:function(e,n){var t=Number(e);return String(t)},era:op({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:op({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:op({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:op({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},$p={ordinalNumber:ap({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ip({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:ip({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ip({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ip({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:ip({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},Pp={SQL:"yyyy-MM-dd","SQL+T":"yyyy-MM-dd HH:mm:ss",IT:"dd/MM/yyyy","IT+T":"dd/MM/yyyy HH:mm:ss",IT_FULL:"dd MMMM yyyy","IT_FULL+T":"dd MMMM yyyy HH:mm:ss"},Dp={gennaio:"january",febbraio:"february",marzo:"march",aprile:"april",maggio:"may",giugno:"june",luglio:"july",agosto:"august",settembre:"september",ottobre:"october",novembre:"november",dicembre:"december"},Tp={enero:"january",febrero:"february",marzo:"march",abril:"april",mayo:"may",junio:"june",julio:"july",agosto:"august",septiembre:"september",octubre:"october",noviembre:"november",diciembre:"december"},Ap={en:"Invalid date",es:"Fecha invalida",it:"Data non valida"},_p={en:hp,es:xp,it:{code:"it",formatDistance:function(e,n,t){var r,o=wp[e];return r="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},formatLong:kp,formatRelative:function(e,n,t,r){var o=Ep[e];return"function"==typeof o?o(n,t,r):o},localize:Op,match:$p,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Mp=["now","NOW","yesterday","YESTERDAY","tomorrow","TOMORROW"],jp=["SQL","SQL+T","IT","IT+T","IT_FULL","IT_FULL+T"],Np=["HH:mm:ss","HH:mm"],Rp=[{format:"yyyy-MM-dd",pattern:/\d{4}-\d{2}-\d{2}/},{format:"dd/MM/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"dd/MM/yy",pattern:/\d{2}\/\d{2}\/\d{2}/},{format:"dd-MM-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"dd-MM-yy",pattern:/\d{2}-\d{2}-\d{2}/},{format:"MM/dd/yyyy",pattern:/\d{2}\/\d{2}\/\d{4}/},{format:"MM-dd-yyyy",pattern:/\d{2}-\d{2}-\d{4}/},{format:"yyyy/MM/dd",pattern:/\d{4}\/\d{2}\/\d{2}/},{format:"dd MMMM yyyy",pattern:/\d{2} [a-zA-Z]+ \d{4}/},{format:"dd MMM yyyy",pattern:/\d{2} [a-zA-Z]{3} \d{4}/},{format:"MMMM yyyy",pattern:/[a-zA-Z]+ \d{4}/},{format:"EEEE dd/MM",pattern:/[a-zA-Z]+ \d{2}\/\d{2}/},{format:"EEE dd/MM",pattern:/[a-zA-Z]{3} \d{2}\/\d{2}/}],Ip=[{format:"yyyy-MM-dd HH:mm:ss",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"yyyy-MM-dd HH:mm",pattern:/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yyyy HH:mm",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/},{format:"dd/MM/yy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd/MM/yy HH:mm",pattern:/\d{2}\/\d{2}\/\d{2} \d{2}:\d{2}/},{format:"dd-MM-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"dd-MM-yy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/},{format:"MM/dd/yyyy HH:mm:ss",pattern:/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/},{format:"MM-dd-yyyy HH:mm:ss",pattern:/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}/},{format:"yyyy/MM/dd HH:mm:ss",pattern:/\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}/},{format:"dd MMMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/},{format:"dd MMM yyyy HH:mm:ss",pattern:/\d{2} [a-zA-Z]{3} \d{4} \d{2}:\d{2}:\d{2}/},{format:"MMMM yyyy HH:mm:ss",pattern:/[a-zA-Z]+ \d{4} \d{2}:\d{2}:\d{2}/}],Fp=new RegExp(Object.keys(Dp).join("|"),"g"),Lp=new RegExp(Object.keys(Tp).join("|"),"g"),zp=function(e){var n;if("string"==typeof e&&(e=function(e){return(e=e.toLowerCase()).match(Fp)&&(e=e.replace(Fp,(function(e){return e in Dp?Dp[e]:e}))),e.match(Lp)&&(e=e.replace(Lp,(function(e){return e in Tp?Tp[e]:e}))),e.trim()}(e)),!function(e){return null!=e}(e)||!e)return new Date;if(function(e){return"number"==typeof e}(e)||e instanceof Date)return new Date(e);if(n=e,Mp.includes(n))return function(e){var n=new Date;switch(e){case"yesterday":case"YESTERDAY":return n.setDate(n.getDate()-1),n;case"tomorrow":case"TOMORROW":return n.setDate(n.getDate()+1),n;default:return new Date}}(e);var t=function(e){for(var n=function(e){return e.split(" ").reverse().some((function(e){return Np.some((function(n){return ta(e,n)}))}))}(e)?Ip:Rp,t=0;t<n.length;t++)if(ta(e,n[t].format,{locale:hp})&&n[t].pattern.test(e))return n[t].format;return null}(e);return t?na(e,t,new Date,{locale:hp}):new Date("michi")},Bp=function(e,n,t){void 0===t&&(t="it");var r,o=zp(e);return function(e){return e instanceof Date||(e=zp(e)),e instanceof Date&&!isNaN(e.getTime())}(o)?(r=n,jp.includes(r)&&(n=Pp[n]),ao(o,n,{locale:_p[t]})):Ap[t]};(new Date).getFullYear();var Hp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wp={exports:{}},Up={exports:{}},Yp={},Vp="function"==typeof Symbol&&Symbol.for,Gp=Vp?Symbol.for("react.element"):60103,qp=Vp?Symbol.for("react.portal"):60106,Kp=Vp?Symbol.for("react.fragment"):60107,Xp=Vp?Symbol.for("react.strict_mode"):60108,Qp=Vp?Symbol.for("react.profiler"):60114,Zp=Vp?Symbol.for("react.provider"):60109,Jp=Vp?Symbol.for("react.context"):60110,ef=Vp?Symbol.for("react.async_mode"):60111,nf=Vp?Symbol.for("react.concurrent_mode"):60111,tf=Vp?Symbol.for("react.forward_ref"):60112,rf=Vp?Symbol.for("react.suspense"):60113,of=Vp?Symbol.for("react.suspense_list"):60120,af=Vp?Symbol.for("react.memo"):60115,lf=Vp?Symbol.for("react.lazy"):60116,cf=Vp?Symbol.for("react.block"):60121,sf=Vp?Symbol.for("react.fundamental"):60117,uf=Vp?Symbol.for("react.responder"):60118,df=Vp?Symbol.for("react.scope"):60119;function pf(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case Gp:switch(e=e.type){case ef:case nf:case Kp:case Qp:case Xp:case rf:return e;default:switch(e=e&&e.$$typeof){case Jp:case tf:case lf:case af:case Zp:return e;default:return n}}case qp:return n}}}function ff(e){return pf(e)===nf}Yp.AsyncMode=ef,Yp.ConcurrentMode=nf,Yp.ContextConsumer=Jp,Yp.ContextProvider=Zp,Yp.Element=Gp,Yp.ForwardRef=tf,Yp.Fragment=Kp,Yp.Lazy=lf,Yp.Memo=af,Yp.Portal=qp,Yp.Profiler=Qp,Yp.StrictMode=Xp,Yp.Suspense=rf,Yp.isAsyncMode=function(e){return ff(e)||pf(e)===ef},Yp.isConcurrentMode=ff,Yp.isContextConsumer=function(e){return pf(e)===Jp},Yp.isContextProvider=function(e){return pf(e)===Zp},Yp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Gp},Yp.isForwardRef=function(e){return pf(e)===tf},Yp.isFragment=function(e){return pf(e)===Kp},Yp.isLazy=function(e){return pf(e)===lf},Yp.isMemo=function(e){return pf(e)===af},Yp.isPortal=function(e){return pf(e)===qp},Yp.isProfiler=function(e){return pf(e)===Qp},Yp.isStrictMode=function(e){return pf(e)===Xp},Yp.isSuspense=function(e){return pf(e)===rf},Yp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kp||e===nf||e===Qp||e===Xp||e===rf||e===of||"object"==typeof e&&null!==e&&(e.$$typeof===lf||e.$$typeof===af||e.$$typeof===Zp||e.$$typeof===Jp||e.$$typeof===tf||e.$$typeof===sf||e.$$typeof===uf||e.$$typeof===df||e.$$typeof===cf)},Yp.typeOf=pf;var hf={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *