UNPKG

@appello/web-ui

Version:

Web ui library for a better development experience

19 lines 601 kB
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e=require("clsx"),t=require("react"),n=require("@appello/common");require("react-day-picker/dist/style.css");var r=require("@appello/web-kit"),a=require("react-day-picker");require("react-nested-dropdown/dist/styles.css");var o=require("react-nested-dropdown"),i=require("react-modal"),l=require("react/jsx-runtime"),u=require("@tanstack/react-table"),s=require("react-content-loader"),c=require("react-hot-toast"),d=require("react-colorful"),f=require("react-hook-form"),p=require("react-select"),m=require("react-select/creatable");function h(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var g=h(t);function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function y(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var S,x={}; /*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */var E,C=function(){if(S)return x;S=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,a=/([\\"])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function i(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(a,"\\$1")+'"'}function l(e){this.parameters=Object.create(null),this.type=e}return x.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,r=e.type;if(!r||!o.test(r))throw new TypeError("invalid type");var a=r;if(t&&"object"==typeof t)for(var l,u=Object.keys(t).sort(),s=0;s<u.length;s++){if(l=u[s],!n.test(l))throw new TypeError("invalid parameter name");a+="; "+l+"="+i(t[l])}return a},x.parse=function(t){if(!t)throw new TypeError("argument string is required");var n="object"==typeof t?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(t):t;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var a=n.indexOf(";"),i=-1!==a?n.slice(0,a).trim():n.trim();if(!o.test(i))throw new TypeError("invalid media type");var u=new l(i.toLowerCase());if(-1!==a){var s,c,d;for(e.lastIndex=a;c=e.exec(n);){if(c.index!==a)throw new TypeError("invalid parameter format");a+=c[0].length,s=c[1].toLowerCase(),34===(d=c[2]).charCodeAt(0)&&-1!==(d=d.slice(1,-1)).indexOf("\\")&&(d=d.replace(r,"$1")),u.parameters[s]=d}if(a!==n.length)throw new TypeError("invalid parameter format")}return u},x}(),N=new Map,R=function(e){return e.cloneNode(!0)},_=function(){return"file:"===window.location.protocol},T=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var a=C.parse(t).type;if("image/svg+xml"!==a&&"text/plain"!==a)throw new Error("Invalid content type: ".concat(a))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(_()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||_()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(e){if(r.abort(),!(e instanceof Error))throw e;n(e,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},P={},M=function(e,t){P[e]=P[e]||[],P[e].push(t)},D=function(e,t,n){if(N.has(e)){var r=N.get(e);if(void 0===r)return void M(e,n);if(r instanceof SVGSVGElement)return void n(null,R(r))}N.set(e,void 0),M(e,n),T(e,t,(function(t,n){var r;t?N.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&N.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(P[e])){var n=N.get(e),r=P[e][t];n instanceof SVGSVGElement&&r(null,R(n)),n instanceof Error&&r(n),t===P[e].length-1&&delete P[e]}}),0)},n=0,r=P[e].length;n<r;n++)t(n)}(e)}))},O=function(e,t,n){T(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},L=0,I=[],z={},A="http://www.w3.org/1999/xlink",F=function(e,t,n,r,a,o,i){var l=e.getAttribute("data-src")||e.getAttribute("src");if(l){if(-1!==I.indexOf(e))return I.splice(I.indexOf(e),1),void(e=null);I.push(e),e.setAttribute("src",""),(r?D:O)(l,a,(function(r,a){if(!a)return I.splice(I.indexOf(e),1),e=null,void i(r);var u=e.getAttribute("id");u&&a.setAttribute("id",u);var s=e.getAttribute("title");s&&a.setAttribute("title",s);var c=e.getAttribute("width");c&&a.setAttribute("width",c);var d=e.getAttribute("height");d&&a.setAttribute("height",d);var f=Array.from(new Set(y(y(y([],(a.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();a.setAttribute("class",f);var p=e.getAttribute("style");p&&a.setAttribute("style",p),a.setAttribute("data-src",l);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&a.setAttribute(e.name,e.value)})),n){var h,g,v,b,w,k={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(k).forEach((function(e){h=e,v=k[e];for(var t=function(e,t){var n;b=g[e].id,w=b+"-"+ ++L,Array.prototype.forEach.call(v,(function(e){for(var t=0,r=(n=a.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var o=n[t].getAttribute(e);o&&!o.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+w+")")}}));for(var r=a.querySelectorAll("[*|href]"),o=[],i=0,l=r.length;i<l;i++){var u=r[i].getAttributeNS(A,"href");u&&u.toString()==="#"+g[e].id&&o.push(r[i])}for(var s=0,c=o.length;s<c;s++)o[s].setAttributeNS(A,"href","#"+w);g[e].id=w},n=0,r=(g=a.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}a.removeAttribute("xmlns:a");for(var S,x,E=a.querySelectorAll("script"),C=[],N=0,R=E.length;N<R;N++)(x=E[N].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((S=E[N].innerText||E[N].textContent)&&C.push(S),a.removeChild(E[N]));if(C.length>0&&("always"===t||"once"===t&&!z[l])){for(var _=0,T=C.length;_<T;_++)new Function(C[_])(window);z[l]=!0}var P=a.querySelectorAll("style");if(Array.prototype.forEach.call(P,(function(e){e.textContent+=""})),a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink",A),o(a),!e.parentNode)return I.splice(I.indexOf(e),1),e=null,void i(new Error("Parent node is null"));e.parentNode.replaceChild(a,e),I.splice(I.indexOf(e),1),e=null,i(null,a)}))}else i(new Error("Invalid data-src or src attribute"))},j={exports:{}},U={exports:{}},B={};var W,V,H,q,$,Y,Q,K,G,X,J,Z,ee,te,ne,re={}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function ae(){return V||(V=1,"production"===process.env.NODE_ENV?U.exports=function(){if(E)return B;E=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case u:case s:case r:case o:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case m:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===s}return B.AsyncMode=u,B.ConcurrentMode=s,B.ContextConsumer=l,B.ContextProvider=i,B.Element=t,B.ForwardRef=c,B.Fragment=r,B.Lazy=m,B.Memo=p,B.Portal=n,B.Profiler=o,B.StrictMode=a,B.Suspense=d,B.isAsyncMode=function(e){return w(e)||b(e)===u},B.isConcurrentMode=w,B.isContextConsumer=function(e){return b(e)===l},B.isContextProvider=function(e){return b(e)===i},B.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},B.isForwardRef=function(e){return b(e)===c},B.isFragment=function(e){return b(e)===r},B.isLazy=function(e){return b(e)===m},B.isMemo=function(e){return b(e)===p},B.isPortal=function(e){return b(e)===n},B.isProfiler=function(e){return b(e)===o},B.isStrictMode=function(e){return b(e)===a},B.isSuspense=function(e){return b(e)===d},B.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===o||e===a||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===h)},B.typeOf=b,B}():U.exports=(W||(W=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var h=e.type;switch(h){case u:case s:case r:case o:case a:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case c:case m:case p:case i:return g;default:return f}}case n:return f}}}var w=u,k=s,S=l,x=i,E=t,C=c,N=r,R=m,_=p,T=n,P=o,M=a,D=d,O=!1;function L(e){return b(e)===s}re.AsyncMode=w,re.ConcurrentMode=k,re.ContextConsumer=S,re.ContextProvider=x,re.Element=E,re.ForwardRef=C,re.Fragment=N,re.Lazy=R,re.Memo=_,re.Portal=T,re.Profiler=P,re.StrictMode=M,re.Suspense=D,re.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===u},re.isConcurrentMode=L,re.isContextConsumer=function(e){return b(e)===l},re.isContextProvider=function(e){return b(e)===i},re.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},re.isForwardRef=function(e){return b(e)===c},re.isFragment=function(e){return b(e)===r},re.isLazy=function(e){return b(e)===m},re.isMemo=function(e){return b(e)===p},re.isPortal=function(e){return b(e)===n},re.isProfiler=function(e){return b(e)===o},re.isStrictMode=function(e){return b(e)===a},re.isSuspense=function(e){return b(e)===d},re.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===o||e===a||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===i||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===h)},re.typeOf=b}()),re)),U.exports} /* object-assign (c) Sindre Sorhus @license MIT */function oe(){if(q)return H;q=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return H=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),u=1;u<arguments.length;u++){for(var s in o=Object(arguments[u]))t.call(o,s)&&(l[s]=o[s]);if(e){i=e(o);for(var c=0;c<i.length;c++)n.call(o,i[c])&&(l[i[c]]=o[i[c]])}}return l},H}function ie(){if(Y)return $;Y=1;return $="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function le(){return K?Q:(K=1,Q=Function.call.bind(Object.prototype.hasOwnProperty))}function ue(){if(X)return G;X=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ie(),n={},r=le();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,o,i,l,u){if("production"!==process.env.NODE_ENV)for(var s in a)if(r(a,s)){var c;try{if("function"!=typeof a[s]){var d=Error((l||"React class")+": "+i+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=a[s](o,s,l,i,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((l||"React class")+": type specification of "+i+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=u?u():"";e("Failed "+i+" type: "+c.message+(null!=f?f:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},G=a}function se(){if(Z)return J;Z=1;var e=ae(),t=oe(),n=ie(),r=le(),a=ue(),o=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),J=function(l,u){var s="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(i),arrayOf:function(e){return m((function(t,r,a,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new p("Invalid "+o+" `"+i+"` of type `"+y(l)+"` supplied to `"+a+"`, expected an array.");for(var u=0;u<l.length;u++){var s=e(l,u,a,o,i+"["+u+"]",n);if(s instanceof Error)return s}return null}))},element:m((function(e,t,n,r,a){var o=e[t];return l(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+y(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,a,o){var i=t[n];return e.isValidElementType(i)?null:new p("Invalid "+a+" `"+o+"` of type `"+y(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,a,o){if(!(t[n]instanceof e)){var i=e.name||c;return new p("Invalid "+a+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:c)+"` supplied to `")+r+"`, expected instance of `"+i+"`.")}var l;return null}))},node:m((function(e,t,n,r,a){return v(e[t])?null:new p("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,a,o,i,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=t[a],s=y(u);if("object"!==s)return new p("Invalid "+i+" `"+l+"` of type `"+s+"` supplied to `"+o+"`, expected an object.");for(var c in u)if(r(u,c)){var d=e(u,c,o,i,l+"."+c,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i;return m((function(t,n,r,a,o){for(var i=t[n],l=0;l<e.length;l++)if(f(i,e[l]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new p("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+u+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(a)+" at index "+t+"."),i}return m((function(t,a,o,i,l){for(var u=[],s=0;s<e.length;s++){var c=(0,e[s])(t,a,o,i,l,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&u.push(c.data.expectedType)}return new p("Invalid "+i+" `"+l+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,a,o,i){var l=t[r],u=y(l);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");for(var s in e){var c=e[s];if("function"!=typeof c)return g(a,o,i,s,b(c));var d=c(l,s,a,o,i+"."+s,n);if(d)return d}return null}))},exact:function(e){return m((function(a,o,i,l,u){var s=a[o],c=y(s);if("object"!==c)return new p("Invalid "+l+" `"+u+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");var d=t({},a[o],e);for(var f in d){var m=e[f];if(r(e,f)&&"function"!=typeof m)return g(i,l,u,f,b(m));if(!m)return new p("Invalid "+l+" `"+u+"` key `"+f+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(s,f,i,l,u+"."+f,n);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,i,l,s,d,f,m){if(s=s||c,f=f||l,m!==n){if(u){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=s+":"+l;!t[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==i[l]?a?null===i[l]?new p("The "+d+" `"+f+"` is marked as required in `"+s+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(i,l,s,d,f)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function h(e){return m((function(t,n,r,a,o,i){var l=t[n];return y(l)!==e?new p("Invalid "+a+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,a){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!v(a[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},J}function ce(){if(te)return ee;te=1;var e=ie();function t(){}function n(){}return n.resetWarningCache=t,ee=function(){function r(t,n,r,a,o,i){if(i!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function de(){if(ne)return j.exports;if(ne=1,"production"!==process.env.NODE_ENV){var e=ae();j.exports=se()(e.isElement,true)}else j.exports=ce()();return j.exports}var fe=de(),pe=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],me="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xlink",ge=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,w(n,r);var a=t.prototype;return a.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,a=this.props,o=a.desc,i=a.evalScripts,l=a.httpRequestWithCredentials,u=a.renumerateIRIElements,s=a.src,c=a.title,d=a.useRequestCache,f=this.props.onError,p=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(me,h)).setAttribute("xmlns",me),n.setAttribute("xmlns:xlink",he),r=document.createElementNS(me,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=s,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){f(e)})):f(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,a=void 0===r?function(){}:r,o=n.afterEach,i=void 0===o?function(){}:o,l=n.beforeEach,u=void 0===l?function(){}:l,s=n.cacheRequests,c=void 0===s||s,d=n.evalScripts,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,m=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var v=0,y=0,b=e.length;y<b;y++)F(e[y],f,g,c,m,u,(function(t,n){i(t,n),e&&"length"in e&&e.length===++v&&a(v)}));else e?F(e,f,g,c,m,u,(function(t,n){i(t,n),a(1),e=null})):a(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=o,e.prepend(n)}if(c){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var a=document.createElement("title");a.innerHTML=c,e.prepend(a)}try{p(e)}catch(e){g(e)}},cacheRequests:d,evalScripts:i,httpRequestWithCredentials:l,renumerateIRIElements:u})}},a.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},a.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},a.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(b({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},a.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},a.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,pe),o=r;return g.createElement(o,b({},a,{ref:this.refCallback},"svg"===r?{xmlns:me,xmlnsXlink:he}:{}),this.state.isLoading&&n&&g.createElement(n,null),this.state.hasError&&t&&g.createElement(t,null))},t}(g.Component);ge.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ge.propTypes={afterInjection:fe.func,beforeInjection:fe.func,desc:fe.string,evalScripts:fe.oneOf(["always","once","never"]),fallback:fe.oneOfType([fe.func,fe.object,fe.string]),httpRequestWithCredentials:fe.bool,loading:fe.oneOfType([fe.func,fe.object,fe.string]),onError:fe.func,renumerateIRIElements:fe.bool,src:fe.string.isRequired,title:fe.string,useRequestCache:fe.bool,wrapper:fe.oneOf(["div","span","svg"])};const ve=e=>{var{name:n,className:r,width:a="100%",height:o="100%",size:i,color:l,beforeInjection:u}=e,s=v(e,["name","className","width","height","size","color","beforeInjection"]);return t.createElement(ge,Object.assign({beforeInjection:e=>{l&&(e.setAttribute("style",`fill: ${l||"#000"};`),e.querySelectorAll("[fill]").forEach((e=>e.setAttribute("fill",l||"#000")))),i?(e.setAttribute("width",i.toString()),e.setAttribute("height",i.toString())):(e.setAttribute("width",a.toString()),e.setAttribute("height",o.toString())),null==u||u(e)},className:r,evalScripts:"never",src:`/icons/${n}.svg`,wrapper:void 0},s))},ye={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function be(e,t){return t}function we(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:function(e){if(!Se.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(void 0===t)return!0;const n=t.prototype;if(null===n||"object"!=typeof n||!Se.has(Object.prototype.toString.call(n)))return!1;if(!n.hasOwnProperty("isPrototypeOf"))return!1;return!0}(e)?1:e instanceof Set?3:e instanceof Map?4:5}function ke(e){return{*[Symbol.iterator](){for(const t of e)for(const e of t)yield e}}}const Se=new Set(["[object Object]","[object Module]"]);function xe(e){return e.at(-1)}var Ee=Object.freeze({__proto__:null,mergeArrays:function(e){return e.flat()},mergeMaps:function(e){return new Map(ke(e))},mergeOthers:xe,mergeRecords:function(e,t,n){const r={};for(const i of function(e){const t=new Set;for(const n of e)for(const e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}(e)){const l=[];for(const t of e)o=i,"object"==typeof(a=t)&&Object.prototype.propertyIsEnumerable.call(a,o)&&l.push(t[i]);if(0===l.length)continue;const u=t.metaDataUpdater(n,{key:i,parents:e}),s=Ne(l,t,u);s!==ye.skip&&("__proto__"===i?Object.defineProperty(r,i,{value:s,configurable:!0,enumerable:!0,writable:!0}):r[i]=s)}var a,o;return r},mergeSets:function(e){return new Set(ke(e))}});function Ce(...e){return function(e,t){const n=function(e,t){return{defaultMergeFunctions:Ee,mergeFunctions:{...Ee,...Object.fromEntries(Object.entries(e).filter((([e,t])=>Object.hasOwn(Ee,e))).map((([e,t])=>!1===t?[e,xe]:[e,t])))},metaDataUpdater:e.metaDataUpdater??be,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,actions:ye}}(e,r);function r(...e){return Ne(e,n,t)}return r}({})(...e)}function Ne(e,t,n){if(0===e.length)return;if(1===e.length)return Re(e,t,n);const r=we(e[0]);if(0!==r&&5!==r)for(let a=1;a<e.length;a++)if(we(e[a])!==r)return Re(e,t,n);switch(r){case 1:return function(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);if(r===ye.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords)return t.defaultMergeFunctions.mergeRecords(e,t,n);return r}(e,t,n);case 2:return function(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);if(r===ye.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays)return t.defaultMergeFunctions.mergeArrays(e);return r}(e,t,n);case 3:return function(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);if(r===ye.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets)return t.defaultMergeFunctions.mergeSets(e);return r}(e,t,n);case 4:return function(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);if(r===ye.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps)return t.defaultMergeFunctions.mergeMaps(e);return r}(e,t,n);default:return Re(e,t,n)}}function Re(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===ye.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}const _e={pageSize:10,debounceDelay:500,dateFormat:"d MMM yyyy"},Te=t.createContext(_e);function Pe(){return t.useContext(Te)}const Me=t.createContext({}),De=Me.Provider;function Oe(){return t.useContext(Me)}function Le({name:e,props:t}){var n;const r=null!==(n=Oe()[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},r),t)}const Ie=()=>{if("undefined"==typeof window)throw Error("This hook only works on client side");return window.location},ze=e=>{if("undefined"==typeof window)throw Error("This hook only works on client side");const[n,r]=t.useState(!1);t.useEffect((()=>{r(a(e))}),[e]);const a=e=>{const t=window.location.pathname,n="/"===e,r=t===e,a=t.startsWith(e||"")&&"/"!==e;return(r||a)&&!n};return{isMatch:n,checkIsMatch:a}},Ae=()=>{if("undefined"==typeof window)throw Error("This hook only works on client side");return window.location.pathname};var Fe;exports.BadgeColor=void 0,(Fe=exports.BadgeColor||(exports.BadgeColor={})).GREEN="green",Fe.GRAY="gray",Fe.BLUE="blue",Fe.RED="red",Fe.ORANGE="orange",Fe.PINK="pink",Fe.YELLOW="yellow",Fe.GREEN_LIGHT="green-light",Fe.CYAN_DARK="cyan-dark",Fe.CYAN_LIGHT="cyan-light",Fe.PURPLE="purple";const je=n=>{const{children:r,options:a,onChange:o,value:i,className:l}=Le({name:"BrowserSelect",props:n});return t.createElement("div",{className:e("browser-select",l)},r,t.createElement("select",{className:"browser-select__select",value:i,onChange:o},a.map(((e,n)=>t.createElement("option",{key:n,value:e.value},e.label)))))};var Ue="container_f0Dns",Be="full-wrapper_wWcMY",We="dot_RjnHw",Ve="dot--default-color_gnYH7",He="container--colorful_CTZni";const qe=t=>{const{full:n,colorful:r,dotSize:a=10,dotClassNames:o}=Le({name:"Loader",props:t}),i=g.useMemo((()=>({width:`${a}px`,height:`${a}px`})),[a]),l=g.useMemo((()=>e(We,o||Ve)),[o]),u=g.useMemo((()=>g.createElement("div",{className:e(Ue,!o&&{[He]:r})},g.createElement("div",{className:l,style:i}),g.createElement("div",{className:l,style:i}),g.createElement("div",{className:l,style:i}))),[o,r,l,i]);return n?g.createElement("div",{className:Be},u):u};var $e,Ye;exports.ButtonVariant=void 0,($e=exports.ButtonVariant||(exports.ButtonVariant={})).PRIMARY="primary",$e.SECONDARY="secondary",$e.NEGATIVE="negative",exports.ButtonSize=void 0,(Ye=exports.ButtonSize||(exports.ButtonSize={})).SMALL="small",Ye.MEDIUM="medium",Ye.LARGE="large";const Qe=r=>{const{type:a="button",label:o,size:i=exports.ButtonSize.MEDIUM,className:l,onClick:u,withIcon:s,iconClassName:c,variant:d,fullWidth:f=!0,children:p,disabled:m,isLoading:h,count:g,rounded:v=!1,iconAfter:y=!1,bold:b=!1,buttonClassesFn:w=e=>{switch(!0){case(null==e?void 0:e.variant)===exports.ButtonVariant.PRIMARY:return"button--primary--default-color";case(null==e?void 0:e.variant)===exports.ButtonVariant.NEGATIVE:return"button--negative--default-color";default:return""}},loaderClassesFn:k}=Le({name:"Button",props:r}),S=t.useMemo((()=>e("button",d?`button--${d}`:void 0,`button--size-${i}`,{"button--full":f,"button--rounded":v,"button--bold":b,"button--disabled":m,"button--only-icon":[o,p,g].every(n.isNil)&&s},l,w({variant:d,disabled:m,isLoading:h,rounded:v,size:i}))),[d,i,f,v,b,m,o,p,g,s,l,w,h]),x=t.useCallback((()=>s?t.createElement(ve,{className:e("button__icon",c),height:18,name:s,width:18}):null),[c,s]);return t.createElement("button",{className:S,disabled:h||m,type:a,onClick:u},t.createElement("div",{className:e("button__label",{"button__label--hidden":h})},!y&&s&&x(),null!=p?p:o,!n.isNil(g)&&t.createElement("p",{className:"button__count"},g),y&&s&&x()),h&&t.createElement("div",{className:"button__loader"},t.createElement(qe,{colorful:d===exports.ButtonVariant.SECONDARY,dotClassNames:null==k?void 0:k({variant:d,disabled:m,isLoading:h,rounded:v,size:i})})))};function Ke(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ge(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Xe(e){const t=Ke(e).getDay();return 0===t||6===t}const Je=6048e5;let Ze={};function et(){return Ze}function tt(e,t){const n=et(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Ke(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function nt(e){return tt(e,{weekStartsOn:1})}function rt(e){const t=Ke(e),n=t.getFullYear(),r=Ge(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=nt(r),o=Ge(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=nt(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function at(e){const t=Ke(e);return t.setHours(0,0,0,0),t}function ot(e){const t=Ke(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function it(e,t){return function(e,t){return Ge(e,+Ke(e)+t)}(e,6e4*t)}function lt(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=Ke(e);return!isNaN(Number(n))}function ut(e,t){const n=function(e){const t=Ke(e);return t.setSeconds(0,0),t}(Ke(e.start)),r=Ke(e.end);let a=+n>+r;const o=a?+n:+r;let i=a?r:n,l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const u=[];for(;+i<=o;)u.push(Ke(i)),i=it(i,l);return a?u.reverse():u}function st(e){const t=Ke(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function ct(e){const t=Ke(e),n=Ge(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function dt(){return function(e){const t=Ke(e);return t.setHours(23,59,59,999),t}(Date.now())}const ft={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"}};function pt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const mt={date:pt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:pt({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:pt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ht={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gt(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const vt={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:gt({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:gt({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:gt({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 yt(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let s;s=e.valueCallback?e.valueCallback(u):u,s=n.valueCallback?n.valueCallback(s):s;return{value:s,rest:t.slice(i.length)}}}const bt={ordinalNumber:(wt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(wt.matchPattern);if(!n)return null;const r=n[0],a=e.match(wt.parsePattern);if(!a)return null;let o=wt.valueCallback?wt.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:yt({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:yt({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:e=>e+1}),month:yt({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:yt({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:yt({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"})};var wt;const kt={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=ft[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:mt,formatRelative:(e,t,n,r)=>ht[e],localize:vt,match:bt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function St(e){const t=Ke(e);return function(e,t){const n=at(e),r=at(t),a=+n-ot(n),o=+r-ot(r);return Math.round((a-o)/864e5)}(t,ct(t))+1}function xt(e){const t=Ke(e),n=+nt(t)-+function(e){const t=rt(e),n=Ge(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),nt(n)}(t);return Math.round(n/Je)+1}function Et(e,t){const n=Ke(e),r=n.getFullYear(),a=et(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Ge(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const l=tt(i,t),u=Ge(e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const s=tt(u,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ct(e,t){const n=Ke(e),r=+tt(n,t)-+function(e,t){const n=et(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Et(e,t),o=Ge(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),tt(o,t)}(n,t);return Math.round(r/Je)+1}function Nt(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Rt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Nt("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Nt(n+1,2)},d:(e,t)=>Nt(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Nt(e.getHours()%12||12,t.length),H:(e,t)=>Nt(e.getHours(),t.length),m:(e,t)=>Nt(e.getMinutes(),t.length),s:(e,t)=>Nt(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Nt(Math.trunc(r*Math.pow(10,n-3)),t.length)}},_t="midnight",Tt="noon",Pt="morning",Mt="afternoon",Dt="evening",Ot="night",Lt={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Rt.y(e,t)},Y:function(e,t,n,r){const a=Et(e,r),o=a>0?a:1-a;if("YY"===t){return Nt(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Nt(o,t.length)},R:function(e,t){return Nt(rt(e),t.length)},u:function(e,t){return Nt(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Nt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Nt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Rt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Nt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Ct(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Nt(a,t.length)},I:function(e,t,n){const r=xt(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Nt(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Rt.d(e,t)},D:function(e,t,n){const r=St(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Nt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Nt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Nt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e