UNPKG

@openmrs/esm-patient-vitals-app

Version:
2 lines • 383 kB
/*! For license information please see 9595.js.LICENSE.txt */ (globalThis.webpackChunk_openmrs_esm_patient_vitals_app=globalThis.webpackChunk_openmrs_esm_patient_vitals_app||[]).push([[9595],{2326:(t,e,n)=>{"use strict";n.d(e,{XI:()=>a});var i,r=n(1343),o=n.n(r),s=n(9247);const a=o().forwardRef((function({children:t,size:e=16,...n},r){return o().createElement(s.A,{width:e,height:e,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},i||(i=o().createElement("path",{d:"M29,5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2ZM27,5V9H5V5Zm0,22H5V23H27Zm0-6H5V17H27Zm0-6H5V11H27Z"})),t)}))},10279:function(t){t.exports=function(){"use strict";var t,e,n=1e3,i=6e4,r=36e5,o=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,l=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:a,months:l,days:o,hours:r,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},h=function(t){return t instanceof v},d=function(t,e,n){return new v(t,n,e.$l)},f=function(t){return e.p(t)+"s"},p=function(t){return t<0},m=function(t){return p(t)?Math.ceil(t):Math.floor(t)},g=function(t){return Math.abs(t)},y=function(t,e){return t?p(t)?{negative:!0,format:""+g(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},v=function(){function p(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return d(t*u[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){i.$d[f(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var r=t.match(c);if(r){var o=r.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/a),t%=a,this.$d.months=m(t/l),t%=l,this.$d.days=m(t/o),t%=o,this.$d.hours=m(t/r),t%=r,this.$d.minutes=m(t/i),t%=i,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},g.toISOString=function(){var t=y(this.$d.years,"Y"),e=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=y(n,"D"),r=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var a=y(s,"S"),l=t.negative||e.negative||i.negative||r.negative||o.negative||a.negative,c=r.format||o.format||a.format?"T":"",u=(l?"-":"")+"P"+t.format+e.format+i.format+c+r.format+o.format+a.format;return"P"===u||"-P"===u?"P0D":u},g.toJSON=function(){return this.toISOString()},g.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(s,(function(t,e){return e||String(i[t])}))},g.as=function(t){return this.$ms/u[f(t)]},g.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/u[n]):this.$d[n],e||0},g.add=function(t,e,n){var i;return i=e?t*u[f(e)]:h(t)?t.$ms:d(t,this).$ms,d(this.$ms+i*(n?-1:1),this)},g.subtract=function(t,e){return this.add(t,e,!0)},g.locale=function(t){var e=this.clone();return e.$l=t,e},g.clone=function(){return d(this.$ms,this)},g.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),_=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,i,r){t=r,e=r().$utils(),r.duration=function(t,e){var n=r.locale();return d(t,{$l:n},e)},r.isDuration=h;var o=i.prototype.add,s=i.prototype.subtract;i.prototype.add=function(t,e){return h(t)?_(this,t,1):o.bind(this)(t,e)},i.prototype.subtract=function(t,e){return h(t)?_(this,t,-1):s.bind(this)(t,e)}}}()},30723:function(t,e,n){var i,r;"undefined"!=typeof self&&self,t.exports=(i=n(1343),r=n(43144),function(){"use strict";var t={156:function(t){t.exports=i},111:function(t){t.exports=r},582:function(t,e,n){n.r(e),n.d(e,{__assign:function(){return o},__asyncDelegator:function(){return S},__asyncGenerator:function(){return T},__asyncValues:function(){return O},__await:function(){return E},__awaiter:function(){return p},__classPrivateFieldGet:function(){return D},__classPrivateFieldIn:function(){return R},__classPrivateFieldSet:function(){return L},__createBinding:function(){return g},__decorate:function(){return a},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return r},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return C},__makeTemplateObject:function(){return M},__metadata:function(){return f},__param:function(){return l},__propKey:function(){return h},__read:function(){return _},__rest:function(){return s},__runInitializers:function(){return u},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return x},__spreadArrays:function(){return w},__values:function(){return v}});var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function a(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,i){e(n,i,t)}}function c(t,e,n,i,r,o){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=i.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!e&&t?i.static?t:t.prototype:null,h=e||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d=!1,f=n.length-1;f>=0;f--){var p={};for(var m in i)p[m]="access"===m?{}:i[m];for(var m in i.access)p.access[m]=i.access[m];p.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(t||null))};var g=(0,n[f])("accessor"===l?{get:h.get,set:h.set}:h[c],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(h.get=a),(a=s(g.set))&&(h.set=a),(a=s(g.init))&&r.unshift(a)}else(a=s(g))&&("field"===l?r.unshift(a):h[c]=a)}u&&Object.defineProperty(u,i.name,h),d=!0}function u(t,e,n){for(var i=arguments.length>2,r=0;r<e.length;r++)n=i?e[r].call(t,n):e[r].call(t);return i?n:void 0}function h(t){return"symbol"==typeof t?t:"".concat(t)}function d(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function f(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))}function m(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var g=Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]};function y(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||g(e,t,n)}function v(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}function w(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function x(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function E(t){return this instanceof E?(this.v=t,this):new E(t)}function T(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=r[t](e)).value instanceof E?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(t){u(o[0][3],t)}var n}function l(t){a("next",t)}function c(t){a("throw",t)}function u(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function S(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:E(t[i](e)),done:!1}:r?r(e):e}:r}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=v(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(e=t[n](e)).done,e.value)}))}}}function M(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var A=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&g(e,t,n);return A(e,t),e}function k(t){return t&&t.__esModule?t:{default:t}}function D(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}function L(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n}function R(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}e.default={__extends:r,__assign:o,__rest:s,__decorate:a,__param:l,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:_,__spread:b,__spreadArrays:w,__spreadArray:x,__await:E,__asyncGenerator:T,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:M,__importStar:C,__importDefault:k,__classPrivateFieldGet:D,__classPrivateFieldSet:L,__classPrivateFieldIn:R}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){var t=o;Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=t.PrintContextConsumer=void 0;var e=n(582),i=n(156),r=n(111),s=Object.prototype.hasOwnProperty.call(i,"createContext"),a=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback"),l=s?i.createContext({}):null;t.PrintContextConsumer=l?l.Consumer:function(){return null};var c={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1},u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.startPrint=function(t){var e=n.props,i=e.onAfterPrint,r=e.onPrintError,o=e.print,s=e.documentTitle;setTimeout((function(){var e,a;if(t.contentWindow)if(t.contentWindow.focus(),o)o(t).then((function(){return null==i?void 0:i()})).then((function(){return n.handleRemoveIframe()})).catch((function(t){r?r("print",t):n.logMessages(["An error was thrown by the specified `print` function"])}));else{if(t.contentWindow.print){var l=null!==(a=null===(e=t.contentDocument)||void 0===e?void 0:e.title)&&void 0!==a?a:"",c=t.ownerDocument.title;s&&(t.ownerDocument.title=s,t.contentDocument&&(t.contentDocument.title=s)),t.contentWindow.print(),s&&(t.ownerDocument.title=c,t.contentDocument&&(t.contentDocument.title=l))}else n.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==i||i(),n.handleRemoveIframe()}else n.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},n.triggerPrint=function(t){var e=n.props,i=e.onBeforePrint,r=e.onPrintError;if(i){var o=i();o&&"function"==typeof o.then?o.then((function(){n.startPrint(t)})).catch((function(t){r&&r("onBeforePrint",t)})):n.startPrint(t)}else n.startPrint(t)},n.handleClick=function(){var t=n.props,e=t.onBeforeGetContent,i=t.onPrintError;if(e){var r=e();r&&"function"==typeof r.then?r.then(n.handlePrint).catch((function(t){i&&i("onBeforeGetContent",t)})):n.handlePrint()}else n.handlePrint()},n.handlePrint=function(){var t=n.props,i=t.bodyClass,o=t.content,s=t.copyStyles,a=t.fonts,l=t.pageStyle,c=t.nonce,u=o();if(void 0!==u)if(null!==u){var h=document.createElement("iframe");h.width="".concat(document.documentElement.clientWidth,"px"),h.height="".concat(document.documentElement.clientHeight,"px"),h.style.position="absolute",h.style.top="-".concat(document.documentElement.clientHeight+100,"px"),h.style.left="-".concat(document.documentElement.clientWidth+100,"px"),h.id="printWindow",h.srcdoc="<!DOCTYPE html>";var d=(0,r.findDOMNode)(u);if(d){var f=d.cloneNode(!0),p=f instanceof Text,m=document.querySelectorAll("link[rel='stylesheet']"),g=p?[]:f.querySelectorAll("img"),y=p?[]:f.querySelectorAll("video"),v=a?a.length:0;n.numResourcesToLoad=m.length+g.length+y.length+v,n.resourcesLoaded=[],n.resourcesErrored=[];var _=function(t,i){n.resourcesLoaded.includes(t)?n.logMessages(["Tried to mark a resource that has already been handled",t],"debug"):(i?(n.logMessages(e.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],e.__read(i),!1)),n.resourcesErrored.push(t)):n.resourcesLoaded.push(t),n.resourcesLoaded.length+n.resourcesErrored.length===n.numResourcesToLoad&&n.triggerPrint(h))};h.onload=function(){var t,r,o,u;h.onload=null;var m=h.contentDocument||(null===(r=h.contentWindow)||void 0===r?void 0:r.document);if(m){m.body.appendChild(f),a&&((null===(o=h.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(u=h.contentWindow)||void 0===u?void 0:u.FontFace)?a.forEach((function(t){var e=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});h.contentDocument.fonts.add(e),e.loaded.then((function(){_(e)})).catch((function(t){_(e,["Failed loading the font:",e,"Load error:",t])}))})):(a.forEach((function(t){return _(t)})),n.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var v="function"==typeof l?l():l;if("string"!=typeof v)n.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof v,'". Styles from `pageStyle` will not be applied.')]);else{var b=m.createElement("style");c&&(b.setAttribute("nonce",c),m.head.setAttribute("nonce",c)),b.appendChild(m.createTextNode(v)),m.head.appendChild(b)}if(i&&(t=m.body.classList).add.apply(t,e.__spreadArray([],e.__read(i.split(" ")),!1)),!p){for(var w=p?[]:d.querySelectorAll("canvas"),x=m.querySelectorAll("canvas"),E=0;E<w.length;++E){var T=w[E],S=x[E].getContext("2d");S&&S.drawImage(T,0,0)}var O=function(t){var e=g[t],n=e.getAttribute("src");if(n){var i=new Image;i.onload=function(){return _(e)},i.onerror=function(t,n,i,r,o){return _(e,["Error loading <img>",e,"Error",o])},i.src=n}else _(e,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',e])};for(E=0;E<g.length;E++)O(E);var M=function(t){var e=y[t];e.preload="auto";var n=e.getAttribute("poster");if(n){var i=new Image;i.onload=function(){return _(e)},i.onerror=function(t,i,r,o,s){return _(e,["Error loading video poster",n,"for video",e,"Error:",s])},i.src=n}else e.readyState>=2?_(e):(e.onloadeddata=function(){return _(e)},e.onerror=function(t,n,i,r,o){return _(e,["Error loading video",e,"Error",o])},e.onstalled=function(){return _(e,["Loading video stalled, skipping",e])})};for(E=0;E<y.length;E++)M(E);var A="input",C=d.querySelectorAll(A),k=m.querySelectorAll(A);for(E=0;E<C.length;E++)k[E].value=C[E].value;var D="input[type=checkbox],input[type=radio]",L=d.querySelectorAll(D),R=m.querySelectorAll(D);for(E=0;E<L.length;E++)R[E].checked=L[E].checked;var I="select",P=d.querySelectorAll(I),N=m.querySelectorAll(I);for(E=0;E<P.length;E++)N[E].value=P[E].value}if(s)for(var U=document.querySelectorAll("style, link[rel='stylesheet']"),B=function(t,e){var i=U[t];if("style"===i.tagName.toLowerCase()){var r=m.createElement(i.tagName),o=i.sheet;if(o){var s="";try{for(var a=o.cssRules.length,l=0;l<a;++l)"string"==typeof o.cssRules[l].cssText&&(s+="".concat(o.cssRules[l].cssText,"\r\n"))}catch(t){n.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",i],"warning")}r.setAttribute("id","react-to-print-".concat(t)),c&&r.setAttribute("nonce",c),r.appendChild(m.createTextNode(s)),m.head.appendChild(r)}}else if(i.getAttribute("href"))if(i.hasAttribute("disabled"))n.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",i],"warning"),_(i);else{for(var u=m.createElement(i.tagName),h=(l=0,i.attributes.length);l<h;++l){var d=i.attributes[l];d&&u.setAttribute(d.nodeName,d.nodeValue||"")}u.onload=function(){return _(u)},u.onerror=function(t,e,n,i,r){return _(u,["Failed to load",u,"Error:",r])},c&&u.setAttribute("nonce",c),m.head.appendChild(u)}else n.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",i],"warning"),_(i)},H=(E=0,U.length);E<H;++E)B(E)}0!==n.numResourcesToLoad&&s||n.triggerPrint(h)},n.handleRemoveIframe(!0),document.body.appendChild(h)}else n.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else n.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else n.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},n.handleRemoveIframe=function(t){var e=n.props.removeAfterPrint;if(t||e){var i=document.getElementById("printWindow");i&&document.body.removeChild(i)}},n.logMessages=function(t,e){void 0===e&&(e="error"),n.props.suppressErrors||("error"===e?console.error(t):"warning"===e?console.warn(t):"debug"===e&&console.debug(t))},n}return e.__extends(n,t),n.prototype.render=function(){var t=this.props,e=t.children,n=t.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick});if(!l)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick};return i.createElement(l.Provider,{value:r},e)},n.defaultProps=c,n}(i.Component);t.default=u,t.useReactToPrint=function(t){if(!a)return t.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var n=i.useMemo((function(){return new u(e.__assign(e.__assign({},c),t))}),[t]);return i.useCallback((function(){return n.handleClick()}),[n])}}(),o}())},51890:(t,e,n)=>{"use strict";n.d(e,{Wh:()=>H,bl:()=>__});var i=n(1343),r=(t=>(t.RENDER_FINISHED="render-finished",t.RESIZE="chart-resize",t.MOUSEOVER="chart-mouseover",t.MOUSEOUT="chart-mouseout",t))(r||{}),o=(t=>(t.SHOW="show-modal",t.HIDE="hide-modal",t))(o||{}),s=(t=>(t.UPDATE="model-update",t))(s||{}),a=(t=>(t.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",t.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",t.BUTTON_CLICK="toolbar-button-click",t.SHOW_TOOLTIP="toolbar-show-tooltip",t.HIDE_TOOLTIP="toolbar-hide-tooltip",t))(a||{}),l=(t=>(t.UPDATE="zoom-bar-update",t.SELECTION_START="zoom-bar-selection-start",t.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",t.SELECTION_END="zoom-bar-selection-end",t))(l||{}),c=(t=>(t.CHANGE="zoom-domain-change",t))(c||{}),u=(t=>(t.CANVAS_ZOOM_IN="canvas-zoom-in",t.CANVAS_ZOOM_OUT="canvas-zoom-out",t))(u||{}),h=(t=>(t.LABEL_MOUSEOVER="axis-label-mouseover",t.LABEL_MOUSEMOVE="axis-label-mousemove",t.LABEL_CLICK="axis-label-click",t.LABEL_MOUSEOUT="axis-label-mouseout",t.LABEL_FOCUS="axis-label-focus",t.LABEL_BLUR="axis-label-blur",t.RENDER_COMPLETE="axis-render-complete",t))(h||{}),d=(t=>(t.POINT_MOUSEOVER="scatter-mouseover",t.POINT_MOUSEMOVE="scatter-mousemove",t.POINT_CLICK="scatter-click",t.POINT_MOUSEOUT="scatter-mouseout",t))(d||{}),f=(t=>(t.WORD_MOUSEOVER="wordcloud-word-mouseover",t.WORD_MOUSEMOVE="wordcloud-word-mousemove",t.WORD_CLICK="wordcloud-word-click",t.WORD_MOUSEOUT="wordcloud-word-mouseout",t))(f||{}),p=(t=>(t.SLICE_MOUSEOVER="pie-slice-mouseover",t.SLICE_MOUSEMOVE="pie-slice-mousemove",t.SLICE_CLICK="pie-slice-click",t.SLICE_MOUSEOUT="pie-slice-mouseout",t))(p||{}),m=(t=>(t.ARC_MOUSEOVER="gauge-arc-mouseover",t.ARC_MOUSEMOVE="gauge-arc-mousemove",t.ARC_CLICK="gauge-arc-click",t.ARC_MOUSEOUT="gauge-arc-mouseout",t))(m||{}),g=(t=>(t.BAR_MOUSEOVER="bar-mouseover",t.BAR_MOUSEMOVE="bar-mousemove",t.BAR_CLICK="bar-click",t.BAR_MOUSEOUT="bar-mouseout",t))(g||{}),y=(t=>(t.BOX_MOUSEOVER="box-mouseover",t.BOX_MOUSEMOVE="box-mousemove",t.BOX_CLICK="box-click",t.BOX_MOUSEOUT="box-mouseout",t.OUTLIER_MOUSEOVER="outlier-mouseover",t.OUTLIER_MOUSEMOVE="outlier-mousemove",t.OUTLIER_CLICK="outlier-click",t.OUTLIER_MOUSEOUT="outlier-mouseout",t))(y||{}),v=(t=>(t.SCATTER_MOUSEOVER="scatter-mouseover",t.SCATTER_MOUSEMOVE="scatter-mousemove",t.SCATTER_CLICK="scatter-click",t.SCATTER_MOUSEOUT="scatter-mouseout",t))(v||{}),_=(t=>(t.POINT_MOUSEOVER="scatter-mouseover",t.POINT_MOUSEMOVE="scatter-mousemove",t.POINT_CLICK="scatter-click",t.POINT_MOUSEOUT="scatter-mouseout",t))(_||{}),b=(t=>(t.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",t.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",t.X_AXIS_CLICK="radar-x-axis-click",t.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",t))(b||{}),w=(t=>(t.NODE_MOUSEOVER="tree-node-mouseover",t.NODE_CLICK="tree-node-click",t.NODE_MOUSEOUT="tree-node-mouseout",t))(w||{}),x=(t=>(t.LEAF_MOUSEOVER="leaf-mouseover",t.LEAF_MOUSEMOVE="leaf-mousemove",t.LEAF_CLICK="leaf-click",t.LEAF_MOUSEOUT="leaf-mouseout",t))(x||{}),E=(t=>(t.SHOW="show-tooltip",t.MOVE="move-tooltip",t.HIDE="hide-tooltip",t))(E||{}),T=(t=>(t.SHOW="show-threshold",t.HIDE="hide-threshold",t))(T||{}),S=(t=>(t.ITEM_HOVER="legend-item-onhover",t.ITEM_CLICK="legend-item-onclick",t.ITEM_MOUSEOUT="legend-item-onmouseout",t.ITEMS_UPDATE="legend-items-update",t))(S||{}),O=(t=>(t.CIRCLE_MOUSEOVER="circle-leaf-mouseover",t.CIRCLE_CLICK="circle-leaf-click",t.CIRCLE_MOUSEOUT="circle-leaf-mouseout",t.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",t))(O||{}),M=(t=>(t.NODE_MOUSEOVER="alluvial-node-mouseover",t.NODE_CLICK="alluvial-node-click",t.NODE_MOUSEOUT="alluvial-node-mouseout",t.NODE_MOUSEMOVE="alluvial-node-mousemove",t.LINE_MOUSEOVER="alluvial-line-mouseover",t.LINE_CLICK="alluvial-line-click",t.LINE_MOUSEOUT="alluvial-line-mouseout",t.LINE_MOUSEMOVE="alluvial-line-mousemove",t))(M||{}),A=(t=>(t.METER_MOUSEOVER="meter-mouseover",t.METER_CLICK="meter-click",t.METER_MOUSEOUT="meter-mouseout",t.METER_MOUSEMOVE="meter-mousemove",t))(A||{}),C=(t=>(t.HEATMAP_MOUSEOVER="heatmap-mouseover",t.HEATMAP_CLICK="heatmap-click",t.HEATMAP_MOUSEOUT="heatmap-mouseout",t.HEATMAP_MOUSEMOVE="hetmap-mousemove",t))(C||{}),k=(t=>(t.CHOROPLETH_MOUSEOVER="choropleth-mouseover",t.CHOROPLETH_CLICK="choropleth-click",t.CHOROPLETH_MOUSEOUT="choropleth-mouseout",t.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",t))(k||{});const D=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:M,Area:d,Axis:h,Bar:g,Boxplot:y,CanvasZoom:u,Chart:r,Choropleth:k,CirclePack:O,Gauge:m,Heatmap:C,Legend:S,Line:_,Meter:A,Modal:o,Model:s,Pie:p,Radar:b,Scatter:v,Threshold:T,Toolbar:a,Tooltip:E,Tree:w,Treemap:x,WordCloud:f,ZoomBar:l,ZoomDomain:c},Symbol.toStringTag,{value:"Module"}));var L=(t=>(t.HTML="html",t.SVG="svg",t))(L||{}),R=(t=>(t.WHITE="white",t.G100="g100",t.G90="g90",t.G10="g10",t))(R||{}),I=(t=>(t.BACKGROUND="background",t.FILL="fill",t.STROKE="stroke",t.TOOLTIP="tooltip",t))(I||{}),P=(t=>(t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t))(P||{}),N=(t=>(t.GRAPH_VIEW="graph_view",t.SLIDER_VIEW="slider_view",t))(N||{}),U=(t=>(t.END_LINE="end_line",t.MID_LINE="mid_line",t.FRONT_LINE="front_line",t.NONE="none",t))(U||{}),B=(t=>(t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t))(B||{}),H=(t=>(t.TIME="time",t.LINEAR="linear",t.LOG="log",t.LABELS="labels",t.LABELS_RATIO="labels-ratio",t))(H||{}),$=(t=>(t.RIGHT="right",t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t))($||{}),F=(t=>(t.LEFT="left",t.CENTER="center",t.RIGHT="right",t))(F||{}),z=(t=>(t.HORIZONTAL="horizontal",t.VERTICAL="vertical",t))(z||{}),j=(t=>(t.TREE="tree",t.DENDROGRAM="dendrogram",t))(j||{}),V=(t=>(t.ROW="row",t.COLUMN="column",t.ROW_REVERSE="row-reverse",t.COLUMN_REVERSE="column-reverse",t))(V||{}),G=(t=>(t.FIXED="fixed",t.PREFERRED="preferred",t.STRETCH="stretch",t))(G||{}),W=(t=>(t.CENTER="center",t))(W||{}),Y=(t=>(t.GRID="grid",t.VERT_OR_HORIZ="vertOrHoriz",t.PIE="pie",t.DONUT="donut",t))(Y||{}),Z=(t=>(t.SEMI="semi",t.FULL="full",t))(Z||{}),q=(t=>(t.ALWAYS="always",t.AUTO="auto",t.NEVER="never",t))(q||{}),X=(t=>(t.SCATTER="scatter",t.LINE="line",t.SIMPLE_BAR="simple-bar",t.STACKED_BAR="stacked-bar",t.GROUPED_BAR="grouped-bar",t.AREA="area",t.STACKED_AREA="stacked-area",t))(X||{}),K=(t=>(t.EXPORT_CSV="Export as CSV",t.EXPORT_PNG="Export as PNG",t.EXPORT_JPG="Export as JPG",t.ZOOM_IN="Zoom in",t.ZOOM_OUT="Zoom out",t.RESET_ZOOM="Reset zoom",t.MAKE_FULLSCREEN="Make fullscreen",t.EXIT_FULLSCREEN="Exit fullscreen",t.SHOW_AS_DATATABLE="Show as data-table",t.CUSTOM="Custom",t))(K||{}),Q=(t=>(t.LEFT="left",t.RIGHT="right",t))(Q||{}),J=(t=>(t.CHECKBOX="checkbox",t.RADIUS="radius",t.AREA="area",t.SIZE="size",t.LINE="line",t.QUARTILE="quartile",t.ZOOM="zoom",t))(J||{}),tt=(t=>(t.ON="on",t.AUTO="auto",t.OFF="off",t))(tt||{}),et=(t=>(t.DEFAULT="default",t.HOVERABLE="hoverable",t))(et||{}),nt=(t=>(t.geoEqualEarth="geoEqualEarth",t.geoAlbers="geoAlbers",t.geoConicEqualArea="geoConicEqualArea",t.geoConicEquidistant="geoConicEquidistant",t.geoEquirectangular="geoEquirectangular",t.geoMercator="geoMercator",t.geoNaturalEarth1="geoNaturalEarth1",t))(nt||{}),it=(t=>(t["15seconds"]="15seconds",t.minute="minute",t["30minutes"]="30minutes",t.hourly="hourly",t.daily="daily",t.weekly="weekly",t.monthly="monthly",t.quarterly="quarterly",t.yearly="yearly",t))(it||{});function rt(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}function ot(t){return(e,n)=>{let i;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,r=n?.width?String(n.width):e;i=t.formattingValues[r]||t.formattingValues[e]}else{const e=t.defaultWidth,r=n?.width?String(n.width):t.defaultWidth;i=t.values[r]||t.values[e]}return i[t.argumentCallback?t.argumentCallback(e):e]}}function st(t){return(e,n={})=>{const i=n.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;const s=o[0],a=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(let e=0;e<t.length;e++)if(t[e].test(s))return e}(a):function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].test(s))return e}(a);let c;return c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:e.slice(s.length)}}}const at=6048e5,lt=36e5,ct=Symbol.for("constructDateFrom");function ut(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&ct in t?t[ct](e):t instanceof Date?new t.constructor(e):new Date(e)}function ht(t,...e){const n=ut.bind(null,e.find((t=>"object"==typeof t)));return e.map(n)}let dt={};function ft(){return dt}function pt(t,e){return ut(e||t,t)}function mt(t,e){const n=ft(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=pt(t,e?.in),o=r.getDay(),s=(o<i?7:0)+o-i;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}const gt={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"}},yt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vt={ordinalNumber:(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ot({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ot({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:ot({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:ot({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:ot({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"})},_t={ordinalNumber:(wt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const n=t.match(wt.matchPattern);if(!n)return null;const i=n[0],r=t.match(wt.parsePattern);if(!r)return null;let o=wt.valueCallback?wt.valueCallback(r[0]):r[0];return o=e.valueCallback?e.valueCallback(o):o,{value:o,rest:t.slice(i.length)}}),era:st({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:st({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:t=>t+1}),month:st({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:st({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:st({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"})},bt={code:"en-US",formatDistance:(t,e,n)=>{let i;const r=gt[t];return i="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:{date:rt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rt({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:rt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:(t,e,n,i)=>yt[t],localize:vt,match:_t,options:{weekStartsOn:0,firstWeekContainsDate:1}};var wt,xt="object"==typeof global&&global&&global.Object===Object&&global,Et="object"==typeof self&&self&&self.Object===Object&&self,Tt=xt||Et||Function("return this")(),St=Tt.Symbol,Ot=Object.prototype,Mt=Ot.hasOwnProperty,At=Ot.toString,Ct=St?St.toStringTag:void 0,kt=Object.prototype.toString,Dt=St?St.toStringTag:void 0;function Lt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Dt&&Dt in Object(t)?function(t){var e=Mt.call(t,Ct),n=t[Ct];try{t[Ct]=void 0;var i=!0}catch{}var r=At.call(t);return i&&(e?t[Ct]=n:delete t[Ct]),r}(t):function(t){return kt.call(t)}(t)}function Rt(t){return null!=t&&"object"==typeof t}function It(t){return"symbol"==typeof t||Rt(t)&&"[object Symbol]"==Lt(t)}function Pt(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}var Nt=Array.isArray,Ut=St?St.prototype:void 0,Bt=Ut?Ut.toString:void 0;function Ht(t){if("string"==typeof t)return t;if(Nt(t))return Pt(t,Ht)+"";if(It(t))return Bt?Bt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $t(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ft(t){return t}function zt(t){if(!$t(t))return!1;var e=Lt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var jt=Tt["__core-js_shared__"],Vt=function(){var t=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Gt=Function.prototype.toString;function Wt(t){if(null!=t){try{return Gt.call(t)}catch{}try{return t+""}catch{}}return""}var Yt=/^\[object .+?Constructor\]$/,Zt=Function.prototype,qt=Object.prototype,Xt=Zt.toString,Kt=qt.hasOwnProperty,Qt=RegExp("^"+Xt.call(Kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jt(t,e){var n=function(t,e){return t?.[e]}(t,e);return function(t){return!(!$t(t)||function(t){return!!Vt&&Vt in t}(t))&&(zt(t)?Qt:Yt).test(Wt(t))}(n)?n:void 0}var te=Jt(Tt,"WeakMap"),ee=Object.create,ne=function(){function t(){}return function(e){if(!$t(e))return{};if(ee)return ee(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function ie(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var re=Date.now;function oe(t){return function(){return t}}var se=function(){try{var t=Jt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ae=se?function(t,e){return se(t,"toString",{configurable:!0,enumerable:!1,value:oe(e),writable:!0})}:Ft,le=function(t){var e=0,n=0;return function(){var i=re(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ae);function ce(t){return t!=t}function ue(t,e){return!(null==t||!t.length)&&function(t,e){return e==e?function(t,e){for(var n=-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e):function(t,e){for(var n=t.length,i=-1;++i<n;)if(e(t[i],i,t))return i;return-1}(t,ce)}(t,e)>-1}var he=/^(?:0|[1-9]\d*)$/;function de(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&he.test(t))&&t>-1&&t%1==0&&t<e}function fe(t,e,n){"__proto__"==e&&se?se(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function pe(t,e){return t===e||t!=t&&e!=e}var me=Object.prototype.hasOwnProperty;function ge(t,e,n){var i=t[e];(!me.call(t,e)||!pe(i,n)||void 0===n&&!(e in t))&&fe(t,e,n)}function ye(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;void 0===l&&(l=t[a]),r?fe(n,a,l):ge(n,a,l)}return n}var ve=Math.max;function _e(t,e,n){return e=ve(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=ve(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,a)}}function be(t,e){return le(_e(t,e,Ft),t+"")}function we(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function xe(t){return null!=t&&we(t.length)&&!zt(t)}var Ee=Object.prototype;function Te(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ee)}function Se(t){return Rt(t)&&"[object Arguments]"==Lt(t)}var Oe=Object.prototype,Me=Oe.hasOwnProperty,Ae=Oe.propertyIsEnumerable,Ce=Se(function(){return arguments}())?Se:function(t){return Rt(t)&&Me.call(t,"callee")&&!Ae.call(t,"callee")},ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,De=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Le=De&&De.exports===ke?Tt.Buffer:void 0,Re=(Le?Le.isBuffer:void 0)||function(){return!1},Ie={};function Pe(t){return function(e){return t(e)}}Ie["[object Float32Array]"]=Ie["[object Float64Array]"]=Ie["[object Int8Array]"]=Ie["[object Int16Array]"]=Ie["[object Int32Array]"]=Ie["[object Uint8Array]"]=Ie["[object Uint8ClampedArray]"]=Ie["[object Uint16Array]"]=Ie["[object Uint32Array]"]=!0,Ie["[object Arguments]"]=Ie["[object Array]"]=Ie["[object ArrayBuffer]"]=Ie["[object Boolean]"]=Ie["[object DataView]"]=Ie["[object Date]"]=Ie["[object Error]"]=Ie["[object Function]"]=Ie["[object Map]"]=Ie["[object Number]"]=Ie["[object Object]"]=Ie["[object RegExp]"]=Ie["[object Set]"]=Ie["[object String]"]=Ie["[object WeakMap]"]=!1;var Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ue=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,Be=Ue&&Ue.exports===Ne&&xt.process,He=function(){try{return Ue&&Ue.require&&Ue.require("util").types||Be&&Be.binding&&Be.binding("util")}catch{}}(),$e=He&&He.isTypedArray,Fe=$e?Pe($e):function(t){return Rt(t)&&we(t.length)&&!!Ie[Lt(t)]},ze=Object.prototype.hasOwnProperty;function je(t,e){var n=Nt(t),i=!n&&Ce(t),r=!n&&!i&&Re(t),o=!n&&!i&&!r&&Fe(t),s=n||i||r||o,a=s?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=a.length;for(var c in t)(e||ze.call(t,c))&&(!s||!("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||de(c,l)))&&a.push(c);return a}function Ve(t,e){return function(n){return t(e(n))}}var Ge=Ve(Object.keys,Object),We=Object.prototype.hasOwnProperty;function Ye(t){if(!Te(t))return Ge(t);var e=[];for(var n in Object(t))We.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ze(t){return xe(t)?je(t):Ye(t)}var qe=Object.prototype.hasOwnProperty;function Xe(t){return xe(t)?je(t,!0):function(t){if(!$t(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Te(t),n=[];for(var i in t)"constructor"==i&&(e||!qe.call(t,i))||n.push(i);return n}(t)}var Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/;function Je(t,e){if(Nt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!It(t))||Qe.test(t)||!Ke.test(t)||null!=e&&t in Object(e)}var tn=Jt(Object,"create"),en=Object.prototype.hasOwnProperty,nn=Object.prototype.hasOwnProperty;function rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function on(t,e){for(var n=t.length;n--;)if(pe(t[n][0],e))return n;return-1}rn.prototype.clear=function(){this.__data__=tn?tn(null):{},this.size=0},rn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rn.prototype.get=function(t){var e=this.__data__;if(tn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return en.call(e,t)?e[t]:void 0},rn.prototype.has=function(t){var e=this.__data__;return tn?void 0!==e[t]:nn.call(e,t)},rn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=tn&&void 0===e?"__lodash_hash_undefined__":e,this};var sn=Array.prototype.splice;function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}an.prototype.clear=function(){this.__data__=[],this.size=0},an.prototype.delete=function(t){var e=this.__data__,n=on(e,t);return!(n<0||(n==e.length-1?e.pop():sn.call(e,n,1),--this.size,0))},an.prototype.get=function(t){var e=this.__data__,n=on(e,t);return n<0?void 0:e[n][1]},an.prototype.has=function(t){return on(this.__data__,t)>-1},an.prototype.set=function(t,e){var n=this.__data__,i=on(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};var ln=Jt(Tt,"Map");function cn(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function hn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(hn.Cache||un),n}un.prototype.clear=function(){this.size=0,this.__data__={hash:new rn,map:new(ln||an),string:new rn}},un.prototype.delete=function(t){var e=cn(this,t).delete(t);return this.size-=e?1:0,e},un.prototype.get=function(t){return cn(this,t).get(t)},un.prototype.has=function(t){return cn(this,t).has(t)},un.prototype.set=function(t,e){var n=cn(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},hn.Cache=un;var dn,fn,pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mn=/\\(\\)?/g,gn=(dn=hn((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pn,(function(t,n,i,r){e.push(i?r.replace(mn,"$1"):n||t)})),e}),(function(t){return 500===fn.size&&fn.clear(),t})),fn=dn.cache,dn);function yn(t){return null==t?"":Ht(t)}function vn(t,e){return Nt(t)?t:Je(t,e)?[t]:gn(yn(t))}function _n(t){if("string"==typeof t||It(t))return t;var