mig-schema-table 4.4.16 → 4.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ function print() { __p += __j.call(arguments, '') }
58
58
  https://github.com/Hacker0x01/react-datepicker
59
59
  Released under the MIT License.
60
60
  */function jn(n,s,e){return s=uh(s),f5e(n,N6()?Reflect.construct(s,e||[],uh(n).constructor):s.apply(n,e))}function N6(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N6=function(){return!!n})()}function I6(n,s){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);s&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),e.push.apply(e,t)}return e}function ka(n){for(var s=1;s<arguments.length;s++){var e=arguments[s]!=null?arguments[s]:{};s%2?I6(Object(e),!0).forEach(function(t){ue(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):I6(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function c5e(n,s){if(typeof n!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,s||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(n)}function A6(n){var s=c5e(n,"string");return typeof s=="symbol"?s:s+""}function R3(n){"@babel/helpers - typeof";return R3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},R3(n)}function Wn(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function R6(n,s){for(var e=0;e<s.length;e++){var t=s[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,A6(t.key),t)}}function Ln(n,s,e){return s&&R6(n.prototype,s),e&&R6(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ue(n,s,e){return s=A6(s),s in n?Object.defineProperty(n,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[s]=e,n}function Sd(){return Sd=Object.assign?Object.assign.bind():function(n){for(var s=1;s<arguments.length;s++){var e=arguments[s];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},Sd.apply(this,arguments)}function Nn(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),s&&z3(n,s)}function uh(n){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(n)}function z3(n,s){return z3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},z3(n,s)}function h5e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function f5e(n,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h5e(n)}function ni(n){return m5e(n)||p5e(n)||g5e(n)||b5e()}function m5e(n){if(Array.isArray(n))return H3(n)}function p5e(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function g5e(n,s){if(n){if(typeof n=="string")return H3(n,s);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return H3(n,s)}}function H3(n,s){(s==null||s>n.length)&&(s=n.length);for(var e=0,t=new Array(s);e<s;e++)t[e]=n[e];return t}function b5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dd=12,v5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function cn(n){var s=n?typeof n=="string"||n instanceof String?p4(n):xe(n):new Date;return ri(s)?s:null}function y5e(n,s,e,t,a){var d=null,i=oi(e)||oi(ji()),u=!0;return Array.isArray(s)?(s.forEach(function(o){var r=Yo(n,o,new Date,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});t&&(u=ri(r,a)&&n===gn(r,o,e)),ri(r,a)&&u&&(d=r)}),d):(d=Yo(n,s,new Date,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),t?u=ri(d)&&n===gn(d,s,e):ri(d)||(s=s.match(v5e).map(function(o){var r=o[0];if(r==="p"||r==="P"){var l=pd.longFormatters[r];return i?l(o,i.formatLong):r}return o}).join(""),n.length>0&&(d=Yo(n,s.slice(0,n.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),ri(d)||(d=new Date(n))),ri(d)&&u?d:null)}function ri(n,s){return s=s||new Date("1/1/1000"),vr(n)&&!Ya(n,s)}function gn(n,s,e){if(e==="en")return pd.format(n,s,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var t=oi(e);return e&&!t&&console.warn('A locale object was not found for the provided string ["'.concat(e,'"].')),!t&&ji()&&oi(ji())&&(t=oi(ji())),pd.format(n,s,{locale:t||null,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Cr(n,s){var e=s.dateFormat,t=s.locale;return n&&gn(n,Array.isArray(e)?e[0]:e,t)||""}function w5e(n,s,e){if(!n)return"";var t=Cr(n,e),a=s?Cr(s,e):"";return"".concat(t," - ").concat(a)}function _5e(n,s){if(!(n!=null&&n.length))return"";var e=Cr(n[0],s);if(n.length===1)return e;if(n.length===2){var t=Cr(n[1],s);return"".concat(e,", ").concat(t)}var a=n.length-1;return"".concat(e," (+").concat(a,")")}function B3(n,s){var e=s.hour,t=e===void 0?0:e,a=s.minute,d=a===void 0?0:a,i=s.second,u=i===void 0?0:i;return Uo(Go(Ko(n,u),d),t)}function x5e(n,s){return ji()&&oi(ji()),vc(n)}function M5e(n,s){return gn(n,"ddd",s)}function k5e(n){return Dr(n)}function ai(n,s,e){var t=oi(s||ji());return On(n,{locale:t,weekStartsOn:e})}function ii(n){return Ji(n)}function Td(n){return eo(n)}function z6(n){return Va(n)}function H6(){return Dr(cn())}function P5e(n){return mf(n)}function ca(n,s){return n&&s?kf(n,s):!n&&!s}function _r(n,s){return n&&s?_f(n,s):!n&&!s}function lh(n,s){return n&&s?xf(n,s):!n&&!s}function un(n,s){return n&&s?Zi(n,s):!n&&!s}function Oi(n,s){return n&&s?e4(n,s):!n&&!s}function Cd(n,s,e){var t,a=Dr(s),d=xi(e);try{t=ao(n,{start:a,end:d})}catch{t=!1}return t}function ji(){var n=typeof window<"u"?window:globalThis;return n.__localeId__}function oi(n){if(typeof n=="string"){var s=typeof window<"u"?window:globalThis;return s.__localeData__?s.__localeData__[n]:null}else return n}function $5e(n,s,e){return s(gn(n,"EEEE",e))}function S5e(n,s){return gn(n,"EEEEEE",s)}function D5e(n,s){return gn(n,"EEE",s)}function V3(n,s){return gn(Yn(cn(),n),"LLLL",s)}function B6(n,s){return gn(Yn(cn(),n),"LLL",s)}function T5e(n,s){return gn(Pi(cn(),n),"QQQ",s)}function dh(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.excludeDateIntervals,i=s.includeDates,u=s.includeDateIntervals,o=s.filterDate;return ph(n,{minDate:e,maxDate:t})||a&&a.some(function(r){return un(n,r.date?r.date:r)})||d&&d.some(function(r){var l=r.start,f=r.end;return ao(n,{start:l,end:f})})||i&&!i.some(function(r){return un(n,r)})||u&&!u.some(function(r){var l=r.start,f=r.end;return ao(n,{start:l,end:f})})||o&&!o(cn(n))||!1}function Y3(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.excludeDates,t=s.excludeDateIntervals;return t&&t.length>0?t.some(function(a){var d=a.start,i=a.end;return ao(n,{start:d,end:i})}):e&&e.some(function(a){return un(n,a.date?a.date:a)})||!1}function ch(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate;return ph(n,{minDate:Ji(e),maxDate:mc(t)})||a&&a.some(function(u){return _r(n,u)})||d&&!d.some(function(u){return _r(n,u)})||i&&!i(cn(n))||!1}function hh(n,s,e,t){var a=Ut(n),d=Vn(n),i=Ut(s),u=Vn(s),o=Ut(t);if(a===i&&a===o)return d<=e&&e<=u;if(a<i)return o===a&&d<=e||o===i&&u>=e||o<i&&o>a}function X3(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate;return ph(n,{minDate:e,maxDate:t})||a&&a.some(function(u){return lh(n,u)})||d&&!d.some(function(u){return lh(n,u)})||i&&!i(cn(n))||!1}function fh(n,s,e){if(!vr(s)||!vr(e))return!1;var t=Ut(s),a=Ut(e);return t<=n&&a>=n}function V6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate,u=new Date(n,0,1);return ph(u,{minDate:eo(e),maxDate:bc(t)})||a&&a.some(function(o){return ca(u,o)})||d&&!d.some(function(o){return ca(u,o)})||i&&!i(cn(u))||!1}function mh(n,s,e,t){var a=Ut(n),d=za(n),i=Ut(s),u=za(s),o=Ut(t);if(a===i&&a===o)return d<=e&&e<=u;if(a<i)return o===a&&d<=e||o===i&&u>=e||o<i&&o>a}function ph(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate;return e&&lr(n,e)<0||t&&lr(n,t)>0}function Y6(n,s){return s.some(function(e){return zr(e)===zr(n)&&Hr(e)===Hr(n)&&aa(e)===aa(n)})}function X6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.excludeTimes,t=s.includeTimes,a=s.filterTime;return e&&Y6(n,e)||t&&!Y6(n,t)||a&&!a(n)||!1}function q6(n,s){var e=s.minTime,t=s.maxTime;if(!e||!t)throw new Error("Both minTime and maxTime props required");var a=cn();a=Uo(a,zr(n)),a=Go(a,Hr(n)),a=Ko(a,aa(n));var d=cn();d=Uo(d,zr(e)),d=Go(d,Hr(e)),d=Ko(d,aa(e));var i=cn();i=Uo(i,zr(t)),i=Go(i,Hr(t)),i=Ko(i,aa(t));var u;try{u=!ao(a,{start:d,end:i})}catch{u=!1}return u}function U6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=Ua(n,1);return e&&Ra(e,a)>0||t&&t.every(function(d){return Ra(d,a)>0})||!1}function G6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=br(n,1);return e&&Ra(a,e)>0||t&&t.every(function(d){return Ra(a,d)>0})||!1}function C5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=eo(n),d=$f(a,1);return e&&Ha(e,d)>0||t&&t.every(function(i){return Ha(i,d)>0})||!1}function E5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=bc(n),d=Bo(a,1);return e&&Ha(d,e)>0||t&&t.every(function(i){return Ha(d,i)>0})||!1}function K6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=$i(n,1);return e&&ya(e,a)>0||t&&t.every(function(d){return ya(d,a)>0})||!1}function F5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.yearItemNumber,a=t===void 0?Dd:t,d=Td($i(n,a)),i=si(d,a),u=i.endPeriod,o=e&&Ut(e);return o&&o>u||!1}function Q6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=Jr(n,1);return e&&ya(a,e)>0||t&&t.every(function(d){return ya(a,d)>0})||!1}function O5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.yearItemNumber,a=t===void 0?Dd:t,d=Jr(n,a),i=si(d,a),u=i.startPeriod,o=e&&Ut(e);return o&&o<u||!1}function Z6(n){var s=n.minDate,e=n.includeDates;if(e&&s){var t=e.filter(function(a){return lr(a,s)>=0});return lc(t)}else return e?lc(e):s}function J6(n){var s=n.maxDate,e=n.includeDates;if(e&&s){var t=e.filter(function(a){return lr(a,s)<=0});return uc(t)}else return e?uc(e):s}function eP(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",e=new Map,t=0,a=n.length;t<a;t++){var d=n[t];if(Aa(d)){var i=gn(d,"MM.dd.yyyy"),u=e.get(i)||[];u.includes(s)||(u.push(s),e.set(i,u))}else if(R3(d)==="object"){var o=Object.keys(d),r=o[0],l=d[o[0]];if(typeof r=="string"&&l.constructor===Array)for(var f=0,c=l.length;f<c;f++){var h=gn(l[f],"MM.dd.yyyy"),g=e.get(h)||[];g.includes(r)||(g.push(r),e.set(h,g))}}}return e}function j5e(n,s){return n.length!==s.length?!1:n.every(function(e,t){return e===s[t]})}function W5e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",e=new Map;return n.forEach(function(t){var a=t.date,d=t.holidayName;if(Aa(a)){var i=gn(a,"MM.dd.yyyy"),u=e.get(i)||{};if(!("className"in u&&u.className===s&&j5e(u.holidayNames,[d]))){u.className=s;var o=u.holidayNames;u.holidayNames=o?[].concat(ni(o),[d]):[d],e.set(i,u)}}}),e}function L5e(n,s,e,t,a){for(var d=a.length,i=[],u=0;u<d;u++){var o=n;o=sc(o,zr(a[u])),o=Qi(o,Hr(a[u])),o=cf(o,aa(a[u]));var r=Qi(n,(e+1)*t);wa(o,s)&&Ya(o,r)&&i.push(a[u])}return i}function tP(n){return n<10?"0".concat(n):"".concat(n)}function si(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dd,e=Math.ceil(Ut(n)/s)*s,t=e-(s-1);return{startPeriod:t,endPeriod:e}}function N5e(n){var s=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+e-+s)/36e5)}function nP(n){var s=n.getSeconds(),e=n.getMilliseconds();return xe(n.getTime()-s*1e3-e)}function I5e(n,s){return nP(n).getTime()===nP(s).getTime()}function rP(n){if(!Aa(n))throw new Error("Invalid date");var s=new Date(n);return s.setHours(0,0,0,0),s}function aP(n,s){if(!Aa(n)||!Aa(s))throw new Error("Invalid date received");var e=rP(n),t=rP(s);return Ya(e,t)}function iP(n){var s=" ";return n.key===s}function A5e(n,s,e,t){for(var a=[],d=0;d<2*s+1;d++){var i=n+s-d,u=!0;e&&(u=Ut(e)<=i),t&&u&&(u=Ut(t)>=i),u&&a.push(i)}return a}var R5e=function(n){function s(e){var t;Wn(this,s),t=jn(this,s,[e]),ue(t,"renderOptions",function(){var u=t.props.year,o=t.state.yearsList.map(function(f){return le.createElement("div",{className:u===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:t.onChange.bind(t,f),"aria-selected":u===f?"true":void 0},u===f?le.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),r=t.props.minDate?Ut(t.props.minDate):null,l=t.props.maxDate?Ut(t.props.maxDate):null;return(!l||!t.state.yearsList.find(function(f){return f===l}))&&o.unshift(le.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:t.incrementYears},le.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!r||!t.state.yearsList.find(function(f){return f===r}))&&o.push(le.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:t.decrementYears},le.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),o}),ue(t,"onChange",function(u){t.props.onChange(u)}),ue(t,"handleClickOutside",function(){t.props.onCancel()}),ue(t,"shiftYears",function(u){var o=t.state.yearsList.map(function(r){return r+u});t.setState({yearsList:o})}),ue(t,"incrementYears",function(){return t.shiftYears(1)}),ue(t,"decrementYears",function(){return t.shiftYears(-1)});var a=e.yearDropdownItemNumber,d=e.scrollableYearDropdown,i=a||(d?10:5);return t.state={yearsList:A5e(t.props.year,i,t.props.minDate,t.props.maxDate)},t.dropdownRef=le.createRef(),t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){var t=this.dropdownRef.current;if(t){var a=t.children?Array.from(t.children):null,d=a?a.find(function(i){return i.ariaSelected}):null;t.scrollTop=d?d.offsetTop+(d.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}}},{key:"render",value:function(){var t=An({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return le.createElement("div",{className:t,ref:this.dropdownRef},this.renderOptions())}}])}(le.Component),z5e=Jc(R5e),H5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(){for(var i=e.props.minDate?Ut(e.props.minDate):1900,u=e.props.maxDate?Ut(e.props.maxDate):2100,o=[],r=i;r<=u;r++)o.push(le.createElement("option",{key:r,value:r},r));return o}),ue(e,"onSelectChange",function(i){e.onChange(i.target.value)}),ue(e,"renderSelectMode",function(){return le.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),ue(e,"renderReadView",function(i){return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return e.toggleDropdown(o)}},le.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))}),ue(e,"renderDropdown",function(){return le.createElement(z5e,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),ue(e,"renderScrollMode",function(){var i=e.state.dropdownVisible,u=[e.renderReadView(!i)];return i&&u.unshift(e.renderDropdown()),u}),ue(e,"onChange",function(i){e.toggleDropdown(),i!==e.props.year&&e.props.onChange(i)}),ue(e,"toggleDropdown",function(i){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,i)})}),ue(e,"handleYearChange",function(i,u){e.onSelect(i,u),e.setOpen()}),ue(e,"onSelect",function(i,u){e.props.onSelect&&e.props.onSelect(i,u)}),ue(e,"setOpen",function(){e.props.setOpen&&e.props.setOpen(!0)}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return le.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)}}])}(le.Component),B5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"isSelectedMonth",function(i){return e.props.month===i}),ue(e,"renderOptions",function(){return e.props.monthNames.map(function(i,u){return le.createElement("div",{className:e.isSelectedMonth(u)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:i,onClick:e.onChange.bind(e,u),"aria-selected":e.isSelectedMonth(u)?"true":void 0},e.isSelectedMonth(u)?le.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",i)})}),ue(e,"onChange",function(i){return e.props.onChange(i)}),ue(e,"handleClickOutside",function(){return e.props.onCancel()}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){return le.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}])}(le.Component),V5e=Jc(B5e),Y5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(i){return i.map(function(u,o){return le.createElement("option",{key:o,value:o},u)})}),ue(e,"renderSelectMode",function(i){return le.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(o){return e.onChange(o.target.value)}},e.renderSelectOptions(i))}),ue(e,"renderReadView",function(i,u){return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},le.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},u[e.props.month]))}),ue(e,"renderDropdown",function(i){return le.createElement(V5e,{key:"dropdown",month:e.props.month,monthNames:i,onChange:e.onChange,onCancel:e.toggleDropdown})}),ue(e,"renderScrollMode",function(i){var u=e.state.dropdownVisible,o=[e.renderReadView(!u,i)];return u&&o.unshift(e.renderDropdown(i)),o}),ue(e,"onChange",function(i){e.toggleDropdown(),i!==e.props.month&&e.props.onChange(i)}),ue(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this,a=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return B6(i,t.props.locale)}:function(i){return V3(i,t.props.locale)}),d;switch(this.props.dropdownMode){case"scroll":d=this.renderScrollMode(a);break;case"select":d=this.renderSelectMode(a);break}return le.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},d)}}])}(le.Component);function X5e(n,s){for(var e=[],t=ii(n),a=ii(s);!wa(t,a);)e.push(cn(t)),t=br(t,1);return e}var q5e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"renderOptions",function(){return t.state.monthYearsList.map(function(a){var d=kc(a),i=ca(t.props.date,a)&&_r(t.props.date,a);return le.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:d,onClick:t.onChange.bind(t,d),"aria-selected":i?"true":void 0},i?le.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",gn(a,t.props.dateFormat,t.props.locale))})}),ue(t,"onChange",function(a){return t.props.onChange(a)}),ue(t,"handleClickOutside",function(){t.props.onCancel()}),t.state={monthYearsList:X5e(t.props.minDate,t.props.maxDate)},t}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=An({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return le.createElement("div",{className:t},this.renderOptions())}}])}(le.Component),U5e=Jc(q5e),G5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(){for(var i=ii(e.props.minDate),u=ii(e.props.maxDate),o=[];!wa(i,u);){var r=kc(i);o.push(le.createElement("option",{key:r,value:r},gn(i,e.props.dateFormat,e.props.locale))),i=br(i,1)}return o}),ue(e,"onSelectChange",function(i){e.onChange(i.target.value)}),ue(e,"renderSelectMode",function(){return le.createElement("select",{value:kc(ii(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),ue(e,"renderReadView",function(i){var u=gn(e.props.date,e.props.dateFormat,e.props.locale);return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(r){return e.toggleDropdown(r)}},le.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},u))}),ue(e,"renderDropdown",function(){return le.createElement(U5e,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})}),ue(e,"renderScrollMode",function(){var i=e.state.dropdownVisible,u=[e.renderReadView(!i)];return i&&u.unshift(e.renderDropdown()),u}),ue(e,"onChange",function(i){e.toggleDropdown();var u=cn(parseInt(i));ca(e.props.date,u)&&_r(e.props.date,u)||e.props.onChange(u)}),ue(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return le.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)}}])}(le.Component),K5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"dayEl",le.createRef()),ue(e,"handleClick",function(i){!e.isDisabled()&&e.props.onClick&&e.props.onClick(i)}),ue(e,"handleMouseEnter",function(i){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(i)}),ue(e,"handleOnKeyDown",function(i){var u=i.key;u===" "&&(i.preventDefault(),i.key="Enter"),e.props.handleOnKeyDown(i)}),ue(e,"isSameDay",function(i){return un(e.props.day,i)}),ue(e,"isKeyboardSelected",function(){var i;if(e.props.disabledKeyboardNavigation)return!1;var u=e.props.selectsMultiple?(i=e.props.selectedDates)===null||i===void 0?void 0:i.some(function(o){return e.isSameDayOrWeek(o)}):e.isSameDayOrWeek(e.props.selected);return!u&&e.isSameDayOrWeek(e.props.preSelection)}),ue(e,"isDisabled",function(){return dh(e.props.day,e.props)}),ue(e,"isExcluded",function(){return Y3(e.props.day,e.props)}),ue(e,"isStartOfWeek",function(){return un(e.props.day,ai(e.props.day,e.props.locale,e.props.calendarStartDay))}),ue(e,"isSameWeek",function(i){return e.props.showWeekPicker&&un(i,ai(e.props.day,e.props.locale,e.props.calendarStartDay))}),ue(e,"isSameDayOrWeek",function(i){return e.isSameDay(i)||e.isSameWeek(i)}),ue(e,"getHighLightedClass",function(){var i=e.props,u=i.day,o=i.highlightDates;if(!o)return!1;var r=gn(u,"MM.dd.yyyy");return o.get(r)}),ue(e,"getHolidaysClass",function(){var i=e.props,u=i.day,o=i.holidays;if(!o)return!1;var r=gn(u,"MM.dd.yyyy");if(o.has(r))return[o.get(r).className]}),ue(e,"isInRange",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:Cd(u,o,r)}),ue(e,"isInSelectingRange",function(){var i,u=e.props,o=u.day,r=u.selectsStart,l=u.selectsEnd,f=u.selectsRange,c=u.selectsDisabledDaysInRange,h=u.startDate,g=u.endDate,p=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return!(r||l||f)||!p||!c&&e.isDisabled()?!1:r&&g&&(Ya(p,g)||Oi(p,g))?Cd(o,p,g):l&&h&&(wa(p,h)||Oi(p,h))||f&&h&&!g&&(wa(p,h)||Oi(p,h))?Cd(o,h,p):!1}),ue(e,"isSelectingRangeStart",function(){var i;if(!e.isInSelectingRange())return!1;var u=e.props,o=u.day,r=u.startDate,l=u.selectsStart,f=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return l?un(o,f):un(o,r)}),ue(e,"isSelectingRangeEnd",function(){var i;if(!e.isInSelectingRange())return!1;var u=e.props,o=u.day,r=u.endDate,l=u.selectsEnd,f=u.selectsRange,c=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return l||f?un(o,c):un(o,r)}),ue(e,"isRangeStart",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:un(o,u)}),ue(e,"isRangeEnd",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:un(r,u)}),ue(e,"isWeekend",function(){var i=Vo(e.props.day);return i===0||i===6}),ue(e,"isAfterMonth",function(){return e.props.month!==void 0&&(e.props.month+1)%12===Vn(e.props.day)}),ue(e,"isBeforeMonth",function(){return e.props.month!==void 0&&(Vn(e.props.day)+1)%12===e.props.month}),ue(e,"isCurrentDay",function(){return e.isSameDay(cn())}),ue(e,"isSelected",function(){if(e.props.selectsMultiple){var i;return(i=e.props.selectedDates)===null||i===void 0?void 0:i.some(function(u){return e.isSameDayOrWeek(u)})}return e.isSameDayOrWeek(e.props.selected)}),ue(e,"getClassNames",function(i){var u=e.props.dayClassName?e.props.dayClassName(i):void 0;return An("react-datepicker__day",u,"react-datepicker__day--"+M5e(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())}),ue(e,"getAriaLabel",function(){var i=e.props,u=i.day,o=i.ariaLabelPrefixWhenEnabled,r=o===void 0?"Choose":o,l=i.ariaLabelPrefixWhenDisabled,f=l===void 0?"Not available":l,c=e.isDisabled()||e.isExcluded()?f:r;return"".concat(c," ").concat(gn(u,"PPPP",e.props.locale))}),ue(e,"getTitle",function(){var i=e.props,u=i.day,o=i.holidays,r=o===void 0?new Map:o,l=i.excludeDates,f=gn(u,"MM.dd.yyyy"),c=[];return r.has(f)&&c.push.apply(c,ni(r.get(f).holidayNames)),e.isExcluded()&&c.push(l==null?void 0:l.filter(function(h){return un(h.date?h.date:h,u)}).map(function(h){return h.message})),c.join(", ")}),ue(e,"getTabIndex",function(i,u){var o=i||e.props.selected,r=u||e.props.preSelection,l=!(e.props.showWeekPicker&&(e.props.showWeekNumber||!e.isStartOfWeek()))&&(e.isKeyboardSelected()||e.isSameDay(o)&&un(r,o))?0:-1;return l}),ue(e,"handleFocusDay",function(){var i,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=!1;e.getTabIndex()===0&&!u.isInputFocused&&e.isSameDay(e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(o=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(o=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(o=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(o=!1)),o&&((i=e.dayEl.current)===null||i===void 0||i.focus({preventScroll:!0}))}),ue(e,"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Mc(e.props.day),e.props.day):Mc(e.props.day)}),ue(e,"render",function(){return le.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),e.getTitle()!==""&&le.createElement("span",{className:"overlay"},e.getTitle()))}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(t){this.handleFocusDay(t)}}])}(le.Component),Q5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"weekNumberEl",le.createRef()),ue(e,"handleClick",function(i){e.props.onClick&&e.props.onClick(i)}),ue(e,"handleOnKeyDown",function(i){var u=i.key;u===" "&&(i.preventDefault(),i.key="Enter"),e.props.handleOnKeyDown(i)}),ue(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!un(e.props.date,e.props.selected)&&un(e.props.date,e.props.preSelection)}),ue(e,"getTabIndex",function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||un(e.props.date,e.props.selected)&&un(e.props.preSelection,e.props.selected))?0:-1}),ue(e,"handleFocusWeekNumber",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;e.getTabIndex()===0&&!i.isInputFocused&&un(e.props.date,e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(u=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(u=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(u=!0)),u&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(t){this.handleFocusWeekNumber(t)}},{key:"render",value:function(){var t=this.props,a=t.weekNumber,d=t.ariaLabelPrefix,i=d===void 0?"week ":d,u=t.onClick,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!u,"react-datepicker__week-number--selected":!!u&&un(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return le.createElement("div",{ref:this.weekNumberEl,className:An(o),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},a)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}])}(le.Component),Z5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"handleDayClick",function(i,u){e.props.onDayClick&&e.props.onDayClick(i,u)}),ue(e,"handleDayMouseEnter",function(i){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(i)}),ue(e,"handleWeekClick",function(i,u,o){typeof e.props.onWeekSelect=="function"&&e.props.onWeekSelect(i,u,o),e.props.showWeekPicker&&e.handleDayClick(i,o),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)}),ue(e,"formatWeekNumber",function(i){return e.props.formatWeekNumber?e.props.formatWeekNumber(i):x5e(i)}),ue(e,"renderDays",function(){var i=e.startOfWeek(),u=[],o=e.formatWeekNumber(i);if(e.props.showWeekNumber){var r=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(e,i,o):void 0;u.push(le.createElement(Q5e,{key:"W",weekNumber:o,date:i,onClick:r,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return u.concat([0,1,2,3,4,5,6].map(function(l){var f=sr(i,l);return le.createElement(K5e,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:e.props.month,onClick:e.handleDayClick.bind(e,f),usePointerEvent:e.props.usePointerEvent,onMouseEnter:e.handleDayMouseEnter.bind(e,f),minDate:e.props.minDate,maxDate:e.props.maxDate,calendarStartDay:e.props.calendarStartDay,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})}))}),ue(e,"startOfWeek",function(){return ai(e.props.day,e.props.locale,e.props.calendarStartDay)}),ue(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!un(e.startOfWeek(),e.props.selected)&&un(e.startOfWeek(),e.props.preSelection)}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":un(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return le.createElement("div",{className:An(t)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}])}(le.Component),J5e=6,wo={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},q3=ue(ue(ue({},wo.TWO_COLUMNS,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),wo.THREE_COLUMNS,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),wo.FOUR_COLUMNS,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),gh=1;function oP(n,s){return n?wo.FOUR_COLUMNS:s?wo.TWO_COLUMNS:wo.THREE_COLUMNS}var e8e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"MONTH_REFS",ni(Array(12)).map(function(){return le.createRef()})),ue(e,"QUARTER_REFS",ni(Array(4)).map(function(){return le.createRef()})),ue(e,"isDisabled",function(i){return dh(i,e.props)}),ue(e,"isExcluded",function(i){return Y3(i,e.props)}),ue(e,"handleDayClick",function(i,u){e.props.onDayClick&&e.props.onDayClick(i,u,e.props.orderInDisplay)}),ue(e,"handleDayMouseEnter",function(i){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(i)}),ue(e,"handleMouseLeave",function(){e.props.onMouseLeave&&e.props.onMouseLeave()}),ue(e,"isRangeStartMonth",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:_r(Yn(o,i),r)}),ue(e,"isRangeStartQuarter",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:lh(Pi(o,i),r)}),ue(e,"isRangeEndMonth",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:_r(Yn(o,i),l)}),ue(e,"isRangeEndQuarter",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:lh(Pi(o,i),l)}),ue(e,"isInSelectingRangeMonth",function(i){var u,o=e.props,r=o.day,l=o.selectsStart,f=o.selectsEnd,c=o.selectsRange,h=o.startDate,g=o.endDate,p=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return!(l||f||c)||!p?!1:l&&g?hh(p,g,i,r):f&&h||c&&h&&!g?hh(h,p,i,r):!1}),ue(e,"isSelectingMonthRangeStart",function(i){var u;if(!e.isInSelectingRangeMonth(i))return!1;var o=e.props,r=o.day,l=o.startDate,f=o.selectsStart,c=Yn(r,i),h=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return f?_r(c,h):_r(c,l)}),ue(e,"isSelectingMonthRangeEnd",function(i){var u;if(!e.isInSelectingRangeMonth(i))return!1;var o=e.props,r=o.day,l=o.endDate,f=o.selectsEnd,c=o.selectsRange,h=Yn(r,i),g=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return f||c?_r(h,g):_r(h,l)}),ue(e,"isInSelectingRangeQuarter",function(i){var u,o=e.props,r=o.day,l=o.selectsStart,f=o.selectsEnd,c=o.selectsRange,h=o.startDate,g=o.endDate,p=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return!(l||f||c)||!p?!1:l&&g?mh(p,g,i,r):f&&h||c&&h&&!g?mh(h,p,i,r):!1}),ue(e,"isWeekInMonth",function(i){var u=e.props.day,o=sr(i,6);return _r(i,u)||_r(o,u)}),ue(e,"isCurrentMonth",function(i,u){return Ut(i)===Ut(cn())&&u===Vn(cn())}),ue(e,"isCurrentQuarter",function(i,u){return Ut(i)===Ut(cn())&&u===za(cn())}),ue(e,"isSelectedMonth",function(i,u,o){return Vn(o)===u&&Ut(i)===Ut(o)}),ue(e,"isSelectedQuarter",function(i,u,o){return za(i)===u&&Ut(i)===Ut(o)}),ue(e,"renderWeeks",function(){for(var i=[],u=e.props.fixedHeight,o=0,r=!1,l=ai(ii(e.props.day),e.props.locale,e.props.calendarStartDay),f=e.props.showWeekPicker?ai(e.props.selected,e.props.locale,e.props.calendarStartDay):e.props.selected,c=e.props.showWeekPicker?ai(e.props.preSelection,e.props.locale,e.props.calendarStartDay):e.props.preSelection;i.push(le.createElement(Z5e,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:o,day:l,month:Vn(e.props.day),onDayClick:e.handleDayClick,usePointerEvent:e.props.usePointerEvent,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:c,selected:f,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!r;){o++,l=_i(l,1);var h=u&&o>=J5e,g=!u&&!e.isWeekInMonth(l);if(h||g)if(e.props.peekNextMonth)r=!0;else break}return i}),ue(e,"onMonthClick",function(i,u){var o=Yn(e.props.day,u);ch(o,e.props)||e.handleDayClick(ii(o),i)}),ue(e,"onMonthMouseEnter",function(i){var u=Yn(e.props.day,i);ch(u,e.props)||e.handleDayMouseEnter(ii(u))}),ue(e,"handleMonthNavigation",function(i,u){e.isDisabled(u)||e.isExcluded(u)||(e.props.setPreSelection(u),e.MONTH_REFS[i].current&&e.MONTH_REFS[i].current.focus())}),ue(e,"onMonthKeyDown",function(i,u){var o=e.props,r=o.selected,l=o.preSelection,f=o.disabledKeyboardNavigation,c=o.showTwoColumnMonthYearPicker,h=o.showFourColumnMonthYearPicker,g=o.setPreSelection,p=o.handleOnMonthKeyDown,m=i.key;if(m!=="Tab"&&i.preventDefault(),!f){var y=oP(h,c),b=q3[y].verticalNavigationOffset,M=q3[y].grid;switch(m){case"Enter":e.onMonthClick(i,u),g(r);break;case"ArrowRight":e.handleMonthNavigation(u===11?0:u+gh,br(l,gh));break;case"ArrowLeft":e.handleMonthNavigation(u===0?11:u-gh,Ua(l,gh));break;case"ArrowUp":e.handleMonthNavigation(M[0].includes(u)?u+12-b:u-b,Ua(l,b));break;case"ArrowDown":e.handleMonthNavigation(M[M.length-1].includes(u)?u-12+b:u+b,br(l,b));break}}p&&p(i)}),ue(e,"onQuarterClick",function(i,u){var o=Pi(e.props.day,u);X3(o,e.props)||e.handleDayClick(z6(o),i)}),ue(e,"onQuarterMouseEnter",function(i){var u=Pi(e.props.day,i);X3(u,e.props)||e.handleDayMouseEnter(z6(u))}),ue(e,"handleQuarterNavigation",function(i,u){e.isDisabled(u)||e.isExcluded(u)||(e.props.setPreSelection(u),e.QUARTER_REFS[i-1].current&&e.QUARTER_REFS[i-1].current.focus())}),ue(e,"onQuarterKeyDown",function(i,u){var o=i.key;if(!e.props.disabledKeyboardNavigation)switch(o){case"Enter":e.onQuarterClick(i,u),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(u===4?1:u+1,Bo(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(u===1?4:u-1,$f(e.props.preSelection,1));break}}),ue(e,"isMonthDisabled",function(i){var u=e.props,o=u.day,r=u.minDate,l=u.maxDate,f=u.excludeDates,c=u.includeDates,h=Yn(o,i);return(r||l||f||c)&&ch(h,e.props)}),ue(e,"getMonthClassNames",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate,f=u.selected,c=u.preSelection,h=u.monthClassName,g=h?h(Yn(o,i)):void 0;return An("react-datepicker__month-text","react-datepicker__month-".concat(i),g,{"react-datepicker__month-text--disabled":e.isMonthDisabled(i),"react-datepicker__month-text--selected":e.isSelectedMonth(o,i,f),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&e.isSelectedMonth(o,i,c),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(i),"react-datepicker__month-text--in-range":hh(r,l,i,o),"react-datepicker__month-text--range-start":e.isRangeStartMonth(i),"react-datepicker__month-text--range-end":e.isRangeEndMonth(i),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(i),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(i),"react-datepicker__month-text--today":e.isCurrentMonth(o,i)})}),ue(e,"getTabIndex",function(i){var u=Vn(e.props.preSelection),o=!e.props.disabledKeyboardNavigation&&i===u?"0":"-1";return o}),ue(e,"getQuarterTabIndex",function(i){var u=za(e.props.preSelection),o=!e.props.disabledKeyboardNavigation&&i===u?"0":"-1";return o}),ue(e,"getAriaLabel",function(i){var u=e.props,o=u.chooseDayAriaLabelPrefix,r=o===void 0?"Choose":o,l=u.disabledDayAriaLabelPrefix,f=l===void 0?"Not available":l,c=u.day,h=u.locale,g=Yn(c,i),p=e.isDisabled(g)||e.isExcluded(g)?f:r;return"".concat(p," ").concat(gn(g,"MMMM yyyy",h))}),ue(e,"getQuarterClassNames",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate,f=u.selected,c=u.minDate,h=u.maxDate,g=u.preSelection,p=u.disabledKeyboardNavigation;return An("react-datepicker__quarter-text","react-datepicker__quarter-".concat(i),{"react-datepicker__quarter-text--disabled":(c||h)&&X3(Pi(o,i),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(o,i,f),"react-datepicker__quarter-text--keyboard-selected":!p&&e.isSelectedQuarter(o,i,g),"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(i),"react-datepicker__quarter-text--in-range":mh(r,l,i,o),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(i),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(i)})}),ue(e,"getMonthContent",function(i){var u=e.props,o=u.showFullMonthYearPicker,r=u.renderMonthContent,l=u.locale,f=u.day,c=B6(i,l),h=V3(i,l);return r?r(i,c,h,f):o?h:c}),ue(e,"getQuarterContent",function(i){var u=e.props,o=u.renderQuarterContent,r=u.locale,l=T5e(i,r);return o?o(i,l):l}),ue(e,"renderMonths",function(){var i=e.props,u=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,r=i.day,l=i.selected,f=q3[oP(o,u)].grid;return f.map(function(c,h){return le.createElement("div",{className:"react-datepicker__month-wrapper",key:h},c.map(function(g,p){return le.createElement("div",{ref:e.MONTH_REFS[g],key:p,onClick:function(y){e.onMonthClick(y,g)},onKeyDown:function(y){iP(y)&&(y.preventDefault(),y.key="Enter"),e.onMonthKeyDown(y,g)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(g)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(g)}:void 0,tabIndex:e.getTabIndex(g),className:e.getMonthClassNames(g),"aria-disabled":e.isMonthDisabled(g),role:"option","aria-label":e.getAriaLabel(g),"aria-current":e.isCurrentMonth(r,g)?"date":void 0,"aria-selected":e.isSelectedMonth(r,g,l)},e.getMonthContent(g))}))})}),ue(e,"renderQuarters",function(){var i=e.props,u=i.day,o=i.selected,r=[1,2,3,4];return le.createElement("div",{className:"react-datepicker__quarter-wrapper"},r.map(function(l,f){return le.createElement("div",{key:f,ref:e.QUARTER_REFS[f],role:"option",onClick:function(h){e.onQuarterClick(h,l)},onKeyDown:function(h){e.onQuarterKeyDown(h,l)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(l)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(l)}:void 0,className:e.getQuarterClassNames(l),"aria-selected":e.isSelectedQuarter(u,l,o),tabIndex:e.getQuarterTabIndex(l),"aria-current":e.isCurrentQuarter(u,l)?"date":void 0},e.getQuarterContent(l))}))}),ue(e,"getClassNames",function(){var i=e.props,u=i.selectingDate,o=i.selectsStart,r=i.selectsEnd,l=i.showMonthYearPicker,f=i.showQuarterYearPicker,c=i.showWeekPicker;return An("react-datepicker__month",{"react-datepicker__month--selecting-range":u&&(o||r)},{"react-datepicker__monthPicker":l},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":c})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this.props,a=t.showMonthYearPicker,d=t.showQuarterYearPicker,i=t.day,u=t.ariaLabelPrefix,o=u===void 0?"Month ":u,r=o?o.trim()+" ":"";return le.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(r).concat(gn(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},a?this.renderMonths():d?this.renderQuarters():this.renderWeeks())}}])}(le.Component),sP=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{height:null}),ue(e,"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){e.list&&(e.list.scrollTop=e.centerLi&&s.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))})}),ue(e,"handleClick",function(i){(e.props.minTime||e.props.maxTime)&&q6(i,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&X6(i,e.props)||e.props.onChange(i)}),ue(e,"isSelectedTime",function(i){return e.props.selected&&I5e(e.props.selected,i)}),ue(e,"isDisabledTime",function(i){return(e.props.minTime||e.props.maxTime)&&q6(i,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&X6(i,e.props)}),ue(e,"liClasses",function(i){var u=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(i):void 0];return e.isSelectedTime(i)&&u.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(i)&&u.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(zr(i)*3600+Hr(i)*60+aa(i))%(e.props.intervals*60)!==0&&u.push("react-datepicker__time-list-item--injected"),u.join(" ")}),ue(e,"handleOnKeyDown",function(i,u){i.key===" "&&(i.preventDefault(),i.key="Enter"),(i.key==="ArrowUp"||i.key==="ArrowLeft")&&i.target.previousSibling&&(i.preventDefault(),i.target.previousSibling.focus()),(i.key==="ArrowDown"||i.key==="ArrowRight")&&i.target.nextSibling&&(i.preventDefault(),i.target.nextSibling.focus()),i.key==="Enter"&&e.handleClick(u),e.props.handleOnKeyDown(i)}),ue(e,"renderTimes",function(){for(var i=[],u=e.props.format?e.props.format:"p",o=e.props.intervals,r=e.props.selected||e.props.openToDate||cn(),l=k5e(r),f=e.props.injectTimes&&e.props.injectTimes.sort(function(b,M){return b-M}),c=60*N5e(r),h=c/o,g=0;g<h;g++){var p=Qi(l,g*o);if(i.push(p),f){var m=L5e(l,p,g,o,f);i=i.concat(m)}}var y=i.reduce(function(b,M){return M.getTime()<=r.getTime()?M:b},i[0]);return i.map(function(b,M){return le.createElement("li",{key:M,onClick:e.handleClick.bind(e,b),className:e.liClasses(b),ref:function(C){b===y&&(e.centerLi=C)},onKeyDown:function(C){e.handleOnKeyDown(C,b)},tabIndex:b===y?0:-1,role:"option","aria-selected":e.isSelectedTime(b)?"true":void 0,"aria-disabled":e.isDisabledTime(b)?"true":void 0},gn(b,u,e.props.locale))})}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var t=this,a=this.state.height;return le.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},le.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){t.header=i}},le.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),le.createElement("div",{className:"react-datepicker__time"},le.createElement("div",{className:"react-datepicker__time-box"},le.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:a?{height:a}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}])}(le.Component);ue(sP,"calcCenterPosition",function(n,s){return s.offsetTop-(n/2-s.clientHeight/2)});var uP=3,t8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"YEAR_REFS",ni(Array(t.props.yearItemNumber)).map(function(){return le.createRef()})),ue(t,"isDisabled",function(a){return dh(a,t.props)}),ue(t,"isExcluded",function(a){return Y3(a,t.props)}),ue(t,"selectingDate",function(){var a;return(a=t.props.selectingDate)!==null&&a!==void 0?a:t.props.preSelection}),ue(t,"updateFocusOnPaginate",function(a){var d=(function(){this.YEAR_REFS[a].current.focus()}).bind(t);window.requestAnimationFrame(d)}),ue(t,"handleYearClick",function(a,d){t.props.onDayClick&&t.props.onDayClick(a,d)}),ue(t,"handleYearNavigation",function(a,d){var i=t.props,u=i.date,o=i.yearItemNumber,r=si(u,o),l=r.startPeriod;t.isDisabled(d)||t.isExcluded(d)||(t.props.setPreSelection(d),a-l<0?t.updateFocusOnPaginate(o-(l-a)):a-l>=o?t.updateFocusOnPaginate(Math.abs(o-(a-l))):t.YEAR_REFS[a-l].current.focus())}),ue(t,"isSameDay",function(a,d){return un(a,d)}),ue(t,"isCurrentYear",function(a){return a===Ut(cn())}),ue(t,"isRangeStart",function(a){return t.props.startDate&&t.props.endDate&&ca(Br(cn(),a),t.props.startDate)}),ue(t,"isRangeEnd",function(a){return t.props.startDate&&t.props.endDate&&ca(Br(cn(),a),t.props.endDate)}),ue(t,"isInRange",function(a){return fh(a,t.props.startDate,t.props.endDate)}),ue(t,"isInSelectingRange",function(a){var d=t.props,i=d.selectsStart,u=d.selectsEnd,o=d.selectsRange,r=d.startDate,l=d.endDate;return!(i||u||o)||!t.selectingDate()?!1:i&&l?fh(a,t.selectingDate(),l):u&&r||o&&r&&!l?fh(a,r,t.selectingDate()):!1}),ue(t,"isSelectingRangeStart",function(a){if(!t.isInSelectingRange(a))return!1;var d=t.props,i=d.startDate,u=d.selectsStart,o=Br(cn(),a);return u?ca(o,t.selectingDate()):ca(o,i)}),ue(t,"isSelectingRangeEnd",function(a){if(!t.isInSelectingRange(a))return!1;var d=t.props,i=d.endDate,u=d.selectsEnd,o=d.selectsRange,r=Br(cn(),a);return u||o?ca(r,t.selectingDate()):ca(r,i)}),ue(t,"isKeyboardSelected",function(a){var d=Td(Br(t.props.date,a));return!t.props.disabledKeyboardNavigation&&!t.props.inline&&!un(d,Td(t.props.selected))&&un(d,Td(t.props.preSelection))}),ue(t,"onYearClick",function(a,d){var i=t.props.date;t.handleYearClick(Td(Br(i,d)),a)}),ue(t,"onYearKeyDown",function(a,d){var i=a.key,u=t.props,o=u.date,r=u.yearItemNumber,l=u.handleOnKeyDown;if(i!=="Tab"&&a.preventDefault(),!t.props.disabledKeyboardNavigation)switch(i){case"Enter":t.onYearClick(a,d),t.props.setPreSelection(t.props.selected);break;case"ArrowRight":t.handleYearNavigation(d+1,Jr(t.props.preSelection,1));break;case"ArrowLeft":t.handleYearNavigation(d-1,$i(t.props.preSelection,1));break;case"ArrowUp":{var f=si(o,r),c=f.startPeriod,h=uP,g=d-h;if(g<c){var p=r%h;d>=c&&d<c+p?h=p:h+=p,g=d-h}t.handleYearNavigation(g,$i(t.props.preSelection,h));break}case"ArrowDown":{var m=si(o,r),y=m.endPeriod,b=uP,M=d+b;if(M>y){var S=r%b;d<=y&&d>y-S?b=S:b+=S,M=d+b}t.handleYearNavigation(M,Jr(t.props.preSelection,b));break}}l&&l(a)}),ue(t,"getYearClassNames",function(a){var d=t.props,i=d.date,u=d.minDate,o=d.maxDate,r=d.selected,l=d.excludeDates,f=d.includeDates,c=d.filterDate,h=d.yearClassName;return An("react-datepicker__year-text","react-datepicker__year-".concat(a),h?h(Br(i,a)):void 0,{"react-datepicker__year-text--selected":a===Ut(r),"react-datepicker__year-text--disabled":(u||o||l||f||c)&&V6(a,t.props),"react-datepicker__year-text--keyboard-selected":t.isKeyboardSelected(a),"react-datepicker__year-text--range-start":t.isRangeStart(a),"react-datepicker__year-text--range-end":t.isRangeEnd(a),"react-datepicker__year-text--in-range":t.isInRange(a),"react-datepicker__year-text--in-selecting-range":t.isInSelectingRange(a),"react-datepicker__year-text--selecting-range-start":t.isSelectingRangeStart(a),"react-datepicker__year-text--selecting-range-end":t.isSelectingRangeEnd(a),"react-datepicker__year-text--today":t.isCurrentYear(a)})}),ue(t,"getYearTabIndex",function(a){if(t.props.disabledKeyboardNavigation)return"-1";var d=Ut(t.props.preSelection);return a===d?"0":"-1"}),ue(t,"getYearContainerClassNames",function(){var a=t.props,d=a.selectingDate,i=a.selectsStart,u=a.selectsEnd,o=a.selectsRange;return An("react-datepicker__year",{"react-datepicker__year--selecting-range":d&&(i||u||o)})}),ue(t,"getYearContent",function(a){return t.props.renderYearContent?t.props.renderYearContent(a):a}),t}return Nn(s,n),Ln(s,[{key:"render",value:function(){for(var t=this,a=[],d=this.props,i=d.date,u=d.yearItemNumber,o=d.onYearMouseEnter,r=d.onYearMouseLeave,l=si(i,u),f=l.startPeriod,c=l.endPeriod,h=function(m){a.push(le.createElement("div",{ref:t.YEAR_REFS[m-f],onClick:function(b){t.onYearClick(b,m)},onKeyDown:function(b){iP(b)&&(b.preventDefault(),b.key="Enter"),t.onYearKeyDown(b,m)},tabIndex:t.getYearTabIndex(m),className:t.getYearClassNames(m),onMouseEnter:t.props.usePointerEvent?void 0:function(y){return o(y,m)},onPointerEnter:t.props.usePointerEvent?function(y){return o(y,m)}:void 0,onMouseLeave:t.props.usePointerEvent?void 0:function(y){return r(y,m)},onPointerLeave:t.props.usePointerEvent?function(y){return r(y,m)}:void 0,key:m,"aria-current":t.isCurrentYear(m)?"date":void 0},t.getYearContent(m)))},g=f;g<=c;g++)h(g);return le.createElement("div",{className:this.getYearContainerClassNames()},le.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},a))}}])}(le.Component),n8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"onTimeChange",function(a){t.setState({time:a});var d=t.props.date,i=d instanceof Date&&!isNaN(d),u=i?d:new Date;u.setHours(a.split(":")[0]),u.setMinutes(a.split(":")[1]),t.props.onChange(u)}),ue(t,"renderTimeInput",function(){var a=t.state.time,d=t.props,i=d.date,u=d.timeString,o=d.customTimeInput;return o?le.cloneElement(o,{date:i,value:a,onChange:t.onTimeChange}):le.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:a,onChange:function(l){t.onTimeChange(l.target.value||u)}})}),t.state={time:t.props.timeString},t}return Nn(s,n),Ln(s,[{key:"render",value:function(){return le.createElement("div",{className:"react-datepicker__input-time-container"},le.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),le.createElement("div",{className:"react-datepicker-time__input-container"},le.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(t,a){return t.timeString!==a.time?{time:t.timeString}:null}}])}(le.Component);function r8e(n){var s=n.showTimeSelectOnly,e=s===void 0?!1:s,t=n.showTime,a=t===void 0?!1:t,d=n.className,i=n.children,u=e?"Choose Time":"Choose Date".concat(a?" and Time":"");return le.createElement("div",{className:d,role:"dialog","aria-label":u,"aria-modal":"true"},i)}var a8e=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],i8e=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=(s.className||"").split(/\s+/);return a8e.some(function(t){return e.indexOf(t)>=0})},o8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"handleClickOutside",function(a){t.props.onClickOutside(a)}),ue(t,"setClickOutsideRef",function(){return t.containerRef.current}),ue(t,"handleDropdownFocus",function(a){i8e(a.target)&&t.props.onDropdownFocus()}),ue(t,"getDateInView",function(){var a=t.props,d=a.preSelection,i=a.selected,u=a.openToDate,o=Z6(t.props),r=J6(t.props),l=cn(),f=u||i||d;return f||(o&&Ya(l,o)?o:r&&wa(l,r)?r:l)}),ue(t,"increaseMonth",function(){t.setState(function(a){var d=a.date;return{date:br(d,1)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"decreaseMonth",function(){t.setState(function(a){var d=a.date;return{date:Ua(d,1)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"handleDayClick",function(a,d,i){t.props.onSelect(a,d,i),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleDayMouseEnter",function(a){t.setState({selectingDate:a}),t.props.onDayMouseEnter&&t.props.onDayMouseEnter(a)}),ue(t,"handleMonthMouseLeave",function(){t.setState({selectingDate:null}),t.props.onMonthMouseLeave&&t.props.onMonthMouseLeave()}),ue(t,"handleYearMouseEnter",function(a,d){t.setState({selectingDate:Br(cn(),d)}),t.props.onYearMouseEnter&&t.props.onYearMouseEnter(a,d)}),ue(t,"handleYearMouseLeave",function(a,d){t.props.onYearMouseLeave&&t.props.onYearMouseLeave(a,d)}),ue(t,"handleYearChange",function(a){t.props.onYearChange&&(t.props.onYearChange(a),t.setState({isRenderAriaLiveMessage:!0})),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(a),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleMonthChange",function(a){t.handleCustomMonthChange(a),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(a),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleCustomMonthChange",function(a){t.props.onMonthChange&&(t.props.onMonthChange(a),t.setState({isRenderAriaLiveMessage:!0}))}),ue(t,"handleMonthYearChange",function(a){t.handleYearChange(a),t.handleMonthChange(a)}),ue(t,"changeYear",function(a){t.setState(function(d){var i=d.date;return{date:Br(i,a)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"changeMonth",function(a){t.setState(function(d){var i=d.date;return{date:Yn(i,a)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"changeMonthYear",function(a){t.setState(function(d){var i=d.date;return{date:Br(Yn(i,Vn(a)),Ut(a))}},function(){return t.handleMonthYearChange(t.state.date)})}),ue(t,"header",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.state.date,d=ai(a,t.props.locale,t.props.calendarStartDay),i=[];return t.props.showWeekNumbers&&i.push(le.createElement("div",{key:"W",className:"react-datepicker__day-name"},t.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(u){var o=sr(d,u),r=t.formatWeekday(o,t.props.locale),l=t.props.weekDayClassName?t.props.weekDayClassName(o):void 0;return le.createElement("div",{key:u,"aria-label":gn(o,"EEEE",t.props.locale),className:An("react-datepicker__day-name",l)},r)}))}),ue(t,"formatWeekday",function(a,d){return t.props.formatWeekDay?$5e(a,t.props.formatWeekDay,d):t.props.useWeekdaysShort?D5e(a,d):S5e(a,d)}),ue(t,"decreaseYear",function(){t.setState(function(a){var d=a.date;return{date:$i(d,t.props.showYearPicker?t.props.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"clearSelectingDate",function(){t.setState({selectingDate:null})}),ue(t,"renderPreviousButton",function(){if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=K6(t.state.date,t.props);break;case t.props.showYearPicker:a=F5e(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=C5e(t.state.date,t.props);break;default:a=U6(t.state.date,t.props);break}if(!(!t.props.forceShowMonthNavigation&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var d=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],i=["react-datepicker__navigation","react-datepicker__navigation--previous"],u=t.decreaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(u=t.decreaseYear),a&&t.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--previous--disabled"),u=null);var o=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,r=t.props,l=r.previousMonthButtonLabel,f=r.previousYearButtonLabel,c=t.props,h=c.previousMonthAriaLabel,g=h===void 0?typeof l=="string"?l:"Previous Month":h,p=c.previousYearAriaLabel,m=p===void 0?typeof f=="string"?f:"Previous Year":p;return le.createElement("button",{type:"button",className:i.join(" "),onClick:u,onKeyDown:t.props.handleOnKeyDown,"aria-label":o?m:g},le.createElement("span",{className:d.join(" ")},o?t.props.previousYearButtonLabel:t.props.previousMonthButtonLabel))}}}),ue(t,"increaseYear",function(){t.setState(function(a){var d=a.date;return{date:Jr(d,t.props.showYearPicker?t.props.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"renderNextButton",function(){if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=Q6(t.state.date,t.props);break;case t.props.showYearPicker:a=O5e(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=E5e(t.state.date,t.props);break;default:a=G6(t.state.date,t.props);break}if(!(!t.props.forceShowMonthNavigation&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var d=["react-datepicker__navigation","react-datepicker__navigation--next"],i=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];t.props.showTimeSelect&&d.push("react-datepicker__navigation--next--with-time"),t.props.todayButton&&d.push("react-datepicker__navigation--next--with-today-button");var u=t.increaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(u=t.increaseYear),a&&t.props.showDisabledMonthNavigation&&(d.push("react-datepicker__navigation--next--disabled"),u=null);var o=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,r=t.props,l=r.nextMonthButtonLabel,f=r.nextYearButtonLabel,c=t.props,h=c.nextMonthAriaLabel,g=h===void 0?typeof l=="string"?l:"Next Month":h,p=c.nextYearAriaLabel,m=p===void 0?typeof f=="string"?f:"Next Year":p;return le.createElement("button",{type:"button",className:d.join(" "),onClick:u,onKeyDown:t.props.handleOnKeyDown,"aria-label":o?m:g},le.createElement("span",{className:i.join(" ")},o?t.props.nextYearButtonLabel:t.props.nextMonthButtonLabel))}}}),ue(t,"renderCurrentMonth",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.state.date,d=["react-datepicker__current-month"];return t.props.showYearDropdown&&d.push("react-datepicker__current-month--hasYearDropdown"),t.props.showMonthDropdown&&d.push("react-datepicker__current-month--hasMonthDropdown"),t.props.showMonthYearDropdown&&d.push("react-datepicker__current-month--hasMonthYearDropdown"),le.createElement("div",{className:d.join(" ")},gn(a,t.props.dateFormat,t.props.locale))}),ue(t,"renderYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showYearDropdown||a))return le.createElement(H5e,{adjustDateOnChange:t.props.adjustDateOnChange,date:t.state.date,onSelect:t.props.onSelect,setOpen:t.props.setOpen,dropdownMode:t.props.dropdownMode,onChange:t.changeYear,minDate:t.props.minDate,maxDate:t.props.maxDate,year:Ut(t.state.date),scrollableYearDropdown:t.props.scrollableYearDropdown,yearDropdownItemNumber:t.props.yearDropdownItemNumber})}),ue(t,"renderMonthDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showMonthDropdown||a))return le.createElement(Y5e,{dropdownMode:t.props.dropdownMode,locale:t.props.locale,onChange:t.changeMonth,month:Vn(t.state.date),useShortMonthInDropdown:t.props.useShortMonthInDropdown})}),ue(t,"renderMonthYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showMonthYearDropdown||a))return le.createElement(G5e,{dropdownMode:t.props.dropdownMode,locale:t.props.locale,dateFormat:t.props.dateFormat,onChange:t.changeMonthYear,minDate:t.props.minDate,maxDate:t.props.maxDate,date:t.state.date,scrollableMonthYearDropdown:t.props.scrollableMonthYearDropdown})}),ue(t,"handleTodayButtonClick",function(a){t.props.onSelect(H6(),a),t.props.setPreSelection&&t.props.setPreSelection(H6())}),ue(t,"renderTodayButton",function(){if(!(!t.props.todayButton||t.props.showTimeSelectOnly))return le.createElement("div",{className:"react-datepicker__today-button",onClick:function(d){return t.handleTodayButtonClick(d)}},t.props.todayButton)}),ue(t,"renderDefaultHeader",function(a){var d=a.monthDate,i=a.i;return le.createElement("div",{className:"react-datepicker__header ".concat(t.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},t.renderCurrentMonth(d),le.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(t.props.dropdownMode),onFocus:t.handleDropdownFocus},t.renderMonthDropdown(i!==0),t.renderMonthYearDropdown(i!==0),t.renderYearDropdown(i!==0)),le.createElement("div",{className:"react-datepicker__day-names"},t.header(d)))}),ue(t,"renderCustomHeader",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=a.monthDate,i=a.i;if(t.props.showTimeSelect&&!t.state.monthContainer||t.props.showTimeSelectOnly)return null;var u=U6(t.state.date,t.props),o=G6(t.state.date,t.props),r=K6(t.state.date,t.props),l=Q6(t.state.date,t.props),f=!t.props.showMonthYearPicker&&!t.props.showQuarterYearPicker&&!t.props.showYearPicker;return le.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:t.props.onDropdownFocus},t.props.renderCustomHeader(ka(ka({},t.state),{},{customHeaderCount:i,monthDate:d,changeMonth:t.changeMonth,changeYear:t.changeYear,decreaseMonth:t.decreaseMonth,increaseMonth:t.increaseMonth,decreaseYear:t.decreaseYear,increaseYear:t.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:o,prevYearButtonDisabled:r,nextYearButtonDisabled:l})),f&&le.createElement("div",{className:"react-datepicker__day-names"},t.header(d)))}),ue(t,"renderYearHeader",function(a){var d=a.monthDate,i=t.props,u=i.showYearPicker,o=i.yearItemNumber,r=si(d,o),l=r.startPeriod,f=r.endPeriod;return le.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},u?"".concat(l," - ").concat(f):Ut(d))}),ue(t,"renderHeader",function(a){switch(!0){case t.props.renderCustomHeader!==void 0:return t.renderCustomHeader(a);case(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker):return t.renderYearHeader(a);default:return t.renderDefaultHeader(a)}}),ue(t,"renderMonths",function(){var a;if(!(t.props.showTimeSelectOnly||t.props.showYearPicker)){for(var d=[],i=t.props.showPreviousMonths?t.props.monthsShown-1:0,u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?Jr(t.state.date,i):Ua(t.state.date,i),o=(a=t.props.monthSelectedIn)!==null&&a!==void 0?a:i,r=0;r<t.props.monthsShown;++r){var l=r-o+i,f=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?Jr(u,l):br(u,l),c="month-".concat(r),h=r<t.props.monthsShown-1,g=r>0;d.push(le.createElement("div",{key:c,ref:function(m){t.monthContainer=m},className:"react-datepicker__month-container"},t.renderHeader({monthDate:f,i:r}),le.createElement(e8e,{chooseDayAriaLabelPrefix:t.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:t.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:t.props.weekAriaLabelPrefix,ariaLabelPrefix:t.props.monthAriaLabelPrefix,onChange:t.changeMonthYear,day:f,dayClassName:t.props.dayClassName,calendarStartDay:t.props.calendarStartDay,monthClassName:t.props.monthClassName,onDayClick:t.handleDayClick,handleOnKeyDown:t.props.handleOnDayKeyDown,handleOnMonthKeyDown:t.props.handleOnKeyDown,usePointerEvent:t.props.usePointerEvent,onDayMouseEnter:t.handleDayMouseEnter,onMouseLeave:t.handleMonthMouseLeave,onWeekSelect:t.props.onWeekSelect,orderInDisplay:r,formatWeekNumber:t.props.formatWeekNumber,locale:t.props.locale,minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,highlightDates:t.props.highlightDates,holidays:t.props.holidays,selectingDate:t.state.selectingDate,includeDates:t.props.includeDates,includeDateIntervals:t.props.includeDateIntervals,inline:t.props.inline,shouldFocusDayInline:t.props.shouldFocusDayInline,fixedHeight:t.props.fixedHeight,filterDate:t.props.filterDate,preSelection:t.props.preSelection,setPreSelection:t.props.setPreSelection,selected:t.props.selected,selectsStart:t.props.selectsStart,selectsEnd:t.props.selectsEnd,selectsRange:t.props.selectsRange,selectsDisabledDaysInRange:t.props.selectsDisabledDaysInRange,selectsMultiple:t.props.selectsMultiple,selectedDates:t.props.selectedDates,showWeekNumbers:t.props.showWeekNumbers,startDate:t.props.startDate,endDate:t.props.endDate,peekNextMonth:t.props.peekNextMonth,setOpen:t.props.setOpen,shouldCloseOnSelect:t.props.shouldCloseOnSelect,renderDayContents:t.props.renderDayContents,renderMonthContent:t.props.renderMonthContent,renderQuarterContent:t.props.renderQuarterContent,renderYearContent:t.props.renderYearContent,disabledKeyboardNavigation:t.props.disabledKeyboardNavigation,showMonthYearPicker:t.props.showMonthYearPicker,showFullMonthYearPicker:t.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:t.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:t.props.showFourColumnMonthYearPicker,showYearPicker:t.props.showYearPicker,showQuarterYearPicker:t.props.showQuarterYearPicker,showWeekPicker:t.props.showWeekPicker,isInputFocused:t.props.isInputFocused,containerRef:t.containerRef,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:g})))}return d}}),ue(t,"renderYears",function(){if(!t.props.showTimeSelectOnly&&t.props.showYearPicker)return le.createElement("div",{className:"react-datepicker__year--container"},t.renderHeader({monthDate:t.state.date}),le.createElement(t8e,Sd({onDayClick:t.handleDayClick,selectingDate:t.state.selectingDate,clearSelectingDate:t.clearSelectingDate,date:t.state.date},t.props,{onYearMouseEnter:t.handleYearMouseEnter,onYearMouseLeave:t.handleYearMouseLeave})))}),ue(t,"renderTimeSection",function(){if(t.props.showTimeSelect&&(t.state.monthContainer||t.props.showTimeSelectOnly))return le.createElement(sP,{selected:t.props.selected,openToDate:t.props.openToDate,onChange:t.props.onTimeChange,timeClassName:t.props.timeClassName,format:t.props.timeFormat,includeTimes:t.props.includeTimes,intervals:t.props.timeIntervals,minTime:t.props.minTime,maxTime:t.props.maxTime,excludeTimes:t.props.excludeTimes,filterTime:t.props.filterTime,timeCaption:t.props.timeCaption,todayButton:t.props.todayButton,showMonthDropdown:t.props.showMonthDropdown,showMonthYearDropdown:t.props.showMonthYearDropdown,showYearDropdown:t.props.showYearDropdown,withPortal:t.props.withPortal,monthRef:t.state.monthContainer,injectTimes:t.props.injectTimes,locale:t.props.locale,handleOnKeyDown:t.props.handleOnKeyDown,showTimeSelectOnly:t.props.showTimeSelectOnly})}),ue(t,"renderInputTimeSection",function(){var a=new Date(t.props.selected),d=ri(a)&&!!t.props.selected,i=d?"".concat(tP(a.getHours()),":").concat(tP(a.getMinutes())):"";if(t.props.showTimeInput)return le.createElement(n8e,{date:a,timeString:i,timeInputLabel:t.props.timeInputLabel,onChange:t.props.onTimeChange,customTimeInput:t.props.customTimeInput})}),ue(t,"renderAriaLiveRegion",function(){var a=si(t.state.date,t.props.yearItemNumber),d=a.startPeriod,i=a.endPeriod,u;return t.props.showYearPicker?u="".concat(d," - ").concat(i):t.props.showMonthYearPicker||t.props.showQuarterYearPicker?u=Ut(t.state.date):u="".concat(V3(Vn(t.state.date),t.props.locale)," ").concat(Ut(t.state.date)),le.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},t.state.isRenderAriaLiveMessage&&u)}),ue(t,"renderChildren",function(){if(t.props.children)return le.createElement("div",{className:"react-datepicker__children-container"},t.props.children)}),t.containerRef=le.createRef(),t.state={date:t.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){t.setState({monthContainer:t.monthContainer})}())}},{key:"componentDidUpdate",value:function(t){var a=this;if(this.props.preSelection&&(!un(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var d=!_r(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return d&&a.handleCustomMonthChange(a.state.date)})}else this.props.openToDate&&!un(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var t=this.props.container||r8e;return le.createElement("div",{style:{display:"contents"},ref:this.containerRef},le.createElement(t,{className:An("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Dd}}}])}(le.Component),s8e=function(s){var e=s.icon,t=s.className,a=t===void 0?"":t,d=s.onClick,i="react-datepicker__calendar-icon";return le.isValidElement(e)?le.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(i," ").concat(a),onClick:function(o){typeof e.props.onClick=="function"&&e.props.onClick(o),typeof d=="function"&&d(o)}}):typeof e=="string"?le.createElement("i",{className:"".concat(i," ").concat(e," ").concat(a),"aria-hidden":"true",onClick:d}):le.createElement("svg",{className:"".concat(i," ").concat(a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:d},le.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},u8e=s8e,lP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),t.el=document.createElement("div"),t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Zr.createPortal(this.props.children,this.el)}}])}(le.Component),l8e="[tabindex], a, button, input, select, textarea",d8e=function(s){return!s.disabled&&s.tabIndex!==-1},dP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"getTabChildren",function(){return Array.prototype.slice.call(t.tabLoopRef.current.querySelectorAll(l8e),1,-1).filter(d8e)}),ue(t,"handleFocusStart",function(){var a=t.getTabChildren();a&&a.length>1&&a[a.length-1].focus()}),ue(t,"handleFocusEnd",function(){var a=t.getTabChildren();a&&a.length>1&&a[0].focus()}),t.tabLoopRef=le.createRef(),t}return Nn(s,n),Ln(s,[{key:"render",value:function(){return this.props.enableTabLoop?le.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},le.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,le.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}])}(le.Component);function c8e(n){var s=function(t){var a=ka(ka({},t),{},{popperModifiers:t.popperModifiers||[],popperProps:t.popperProps||{},hidePopper:typeof t.hidePopper=="boolean"?t.hidePopper:!0}),d=le.useRef(),i=d5e(ka({open:!a.hidePopper,whileElementsMounted:VPe,placement:a.popperPlacement,middleware:[N3({padding:15}),GPe(10),KPe({element:d})].concat(ni(a.popperModifiers))},a.popperProps));return le.createElement(n,Sd({},a,{popperProps:ka(ka({},i),{},{arrowRef:d})}))};return s}var h8e=function(n){function s(){return Wn(this,s),jn(this,s,arguments)}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this.props,a=t.className,d=t.wrapperClassName,i=t.hidePopper,u=t.popperComponent,o=t.targetComponent,r=t.enableTabLoop,l=t.popperOnKeyDown,f=t.portalId,c=t.portalHost,h=t.popperProps,g=t.showArrow,p;if(!i){var m=An("react-datepicker-popper",a);p=le.createElement(dP,{enableTabLoop:r},le.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:m,"data-placement":h.placement,onKeyDown:l},u,g&&le.createElement(r5e,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(p=le.createElement(this.props.popperContainer,{},p)),f&&!i&&(p=le.createElement(lP,{portalId:f,portalHost:c},p));var y=An("react-datepicker-wrapper",d);return le.createElement(le.Fragment,null,le.createElement("div",{ref:h.refs.setReference,className:y},o),p)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}])}(le.Component),f8e=c8e(h8e),cP="react-datepicker-ignore-onclickoutside",m8e=Jc(o8e);function p8e(n,s){return n&&s?Vn(n)!==Vn(s)||Ut(n)!==Ut(s):n!==s}var U3="Date input not valid.",hP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"getPreSelection",function(){return t.props.openToDate?t.props.openToDate:t.props.selectsEnd&&t.props.startDate?t.props.startDate:t.props.selectsStart&&t.props.endDate?t.props.endDate:cn()}),ue(t,"modifyHolidays",function(){var a;return(a=t.props.holidays)===null||a===void 0?void 0:a.reduce(function(d,i){var u=new Date(i.date);return vr(u)?[].concat(ni(d),[ka(ka({},i),{},{date:u})]):d},[])}),ue(t,"calcInitialState",function(){var a,d=t.getPreSelection(),i=Z6(t.props),u=J6(t.props),o=i&&Ya(d,Dr(i))?i:u&&wa(d,xi(u))?u:d;return{open:t.props.startOpen||!1,preventFocus:!1,preSelection:(a=t.props.selectsRange?t.props.startDate:t.props.selected)!==null&&a!==void 0?a:o,highlightDates:eP(t.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ue(t,"clearPreventFocusTimeout",function(){t.preventFocusTimeout&&clearTimeout(t.preventFocusTimeout)}),ue(t,"setFocus",function(){t.input&&t.input.focus&&t.input.focus({preventScroll:!0})}),ue(t,"setBlur",function(){t.input&&t.input.blur&&t.input.blur(),t.cancelFocusInput()}),ue(t,"setOpen",function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t.setState({open:a,preSelection:a&&t.state.open?t.state.preSelection:t.calcInitialState().preSelection,lastPreSelectChange:G3},function(){a||t.setState(function(i){return{focused:d?i.focused:!1}},function(){!d&&t.setBlur(),t.setState({inputValue:null})})})}),ue(t,"inputOk",function(){return Aa(t.state.preSelection)}),ue(t,"isCalendarOpen",function(){return t.props.open===void 0?t.state.open&&!t.props.disabled&&!t.props.readOnly:t.props.open}),ue(t,"handleFocus",function(a){t.state.preventFocus||(t.props.onFocus(a),!t.props.preventOpenOnFocus&&!t.props.readOnly&&t.setOpen(!0)),t.setState({focused:!0})}),ue(t,"sendFocusBackToInput",function(){t.preventFocusTimeout&&t.clearPreventFocusTimeout(),t.setState({preventFocus:!0},function(){t.preventFocusTimeout=setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})})}),ue(t,"cancelFocusInput",function(){clearTimeout(t.inputFocusTimeout),t.inputFocusTimeout=null}),ue(t,"deferFocusInput",function(){t.cancelFocusInput(),t.inputFocusTimeout=setTimeout(function(){return t.setFocus()},1)}),ue(t,"handleDropdownFocus",function(){t.cancelFocusInput()}),ue(t,"handleBlur",function(a){(!t.state.open||t.props.withPortal||t.props.showTimeInput)&&t.props.onBlur(a),t.setState({focused:!1})}),ue(t,"handleCalendarClickOutside",function(a){t.props.inline||t.setOpen(!1),t.props.onClickOutside(a),t.props.withPortal&&a.preventDefault()}),ue(t,"handleChange",function(){for(var a=arguments.length,d=new Array(a),i=0;i<a;i++)d[i]=arguments[i];var u=d[0];if(!(t.props.onChangeRaw&&(t.props.onChangeRaw.apply(t,d),typeof u.isDefaultPrevented!="function"||u.isDefaultPrevented()))){t.setState({inputValue:u.target.value,lastPreSelectChange:g8e});var o=y5e(u.target.value,t.props.dateFormat,t.props.locale,t.props.strictParsing,t.props.minDate);t.props.showTimeSelectOnly&&t.props.selected&&o&&!un(o,t.props.selected)&&(o=b4(t.props.selected,{hours:zr(o),minutes:Hr(o),seconds:aa(o)})),(o||!u.target.value)&&t.setSelected(o,u,!0)}}),ue(t,"handleSelect",function(a,d,i){if(t.props.shouldCloseOnSelect&&!t.props.showTimeSelect&&t.sendFocusBackToInput(),t.props.onChangeRaw&&t.props.onChangeRaw(d),t.setSelected(a,d,!1,i),t.props.showDateSelect&&t.setState({isRenderAriaLiveMessage:!0}),!t.props.shouldCloseOnSelect||t.props.showTimeSelect)t.setPreSelection(a);else if(!t.props.inline){t.props.selectsRange||t.setOpen(!1);var u=t.props,o=u.startDate,r=u.endDate;o&&!r&&(t.props.swapRange||!aP(a,o))&&t.setOpen(!1)}}),ue(t,"setSelected",function(a,d,i,u){var o=a;if(t.props.showYearPicker){if(o!==null&&V6(Ut(o),t.props))return}else if(t.props.showMonthYearPicker){if(o!==null&&ch(o,t.props))return}else if(o!==null&&dh(o,t.props))return;var r=t.props,l=r.onChange,f=r.selectsRange,c=r.startDate,h=r.endDate,g=r.selectsMultiple,p=r.selectedDates,m=r.minTime,y=r.swapRange;if(!Oi(t.props.selected,o)||t.props.allowSameDay||f||g)if(o!==null&&(t.props.selected&&(!i||!t.props.showTimeSelect&&!t.props.showTimeSelectOnly&&!t.props.showTimeInput)&&(o=B3(o,{hour:zr(t.props.selected),minute:Hr(t.props.selected),second:aa(t.props.selected)})),!i&&(t.props.showTimeSelect||t.props.showTimeSelectOnly)&&m&&(o=B3(o,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),t.props.inline||t.setState({preSelection:o}),t.props.focusSelectedMonth||t.setState({monthSelectedIn:u})),f){var b=!c&&!h,M=c&&!h,S=c&&h;b?l([o,null],d):M&&(o===null?l([null,null],d):aP(o,c)?l(y?[o,c]:[o,null],d):l([c,o],d)),S&&l([o,null],d)}else if(g)if(!(p!=null&&p.length))l([o],d);else{var C=p.some(function(H){return un(H,o)});if(C){var N=p.filter(function(H){return!un(H,o)});l(N,d)}else l([].concat(ni(p),[o]),d)}else l(o,d);i||(t.props.onSelect(o,d),t.setState({inputValue:null}))}),ue(t,"setPreSelection",function(a){var d=typeof t.props.minDate<"u",i=typeof t.props.maxDate<"u",u=!0;if(a){var o=Dr(a);if(d&&i)u=Cd(a,t.props.minDate,t.props.maxDate);else if(d){var r=Dr(t.props.minDate);u=wa(a,r)||Oi(o,r)}else if(i){var l=xi(t.props.maxDate);u=Ya(a,l)||Oi(o,l)}}u&&t.setState({preSelection:a})}),ue(t,"toggleCalendar",function(){t.setOpen(!t.state.open)}),ue(t,"handleTimeChange",function(a){var d=t.props.selected?t.props.selected:t.getPreSelection(),i=t.props.selected?a:B3(d,{hour:zr(a),minute:Hr(a)});t.setState({preSelection:i}),t.props.onChange(i),t.props.shouldCloseOnSelect&&(t.sendFocusBackToInput(),t.setOpen(!1)),t.props.showTimeInput&&t.setOpen(!0),(t.props.showTimeSelectOnly||t.props.showTimeSelect)&&t.setState({isRenderAriaLiveMessage:!0}),t.setState({inputValue:null})}),ue(t,"onInputClick",function(){!t.props.disabled&&!t.props.readOnly&&t.setOpen(!0),t.props.onInputClick()}),ue(t,"onInputKeyDown",function(a){t.props.onKeyDown(a);var d=a.key;if(!t.state.open&&!t.props.inline&&!t.props.preventOpenOnFocus){(d==="ArrowDown"||d==="ArrowUp"||d==="Enter")&&t.onInputClick();return}if(t.state.open){if(d==="ArrowDown"||d==="ArrowUp"){a.preventDefault();var i=t.props.showWeekPicker&&t.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':t.props.showFullMonthYearPicker||t.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=t.calendar.componentNode&&t.calendar.componentNode.querySelector(i);u&&u.focus({preventScroll:!0});return}var o=cn(t.state.preSelection);d==="Enter"?(a.preventDefault(),t.inputOk()&&t.state.lastPreSelectChange===G3?(t.handleSelect(o,a),!t.props.shouldCloseOnSelect&&t.setPreSelection(o)):t.setOpen(!1)):d==="Escape"?(a.preventDefault(),t.sendFocusBackToInput(),t.setOpen(!1)):d==="Tab"&&t.setOpen(!1),t.inputOk()||t.props.onInputError({code:1,msg:U3})}}),ue(t,"onPortalKeyDown",function(a){var d=a.key;d==="Escape"&&(a.preventDefault(),t.setState({preventFocus:!0},function(){t.setOpen(!1),setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})}))}),ue(t,"onDayKeyDown",function(a){t.props.onKeyDown(a);var d=a.key,i=a.shiftKey,u=cn(t.state.preSelection);if(d==="Enter")a.preventDefault(),t.handleSelect(u,a),!t.props.shouldCloseOnSelect&&t.setPreSelection(u);else if(d==="Escape")a.preventDefault(),t.setOpen(!1),t.inputOk()||t.props.onInputError({code:1,msg:U3});else if(!t.props.disabledKeyboardNavigation){var o;switch(d){case"ArrowLeft":t.props.showWeekPicker?o=Sf(u,1):o=Xo(u,1);break;case"ArrowRight":t.props.showWeekPicker?o=_i(u,1):o=sr(u,1);break;case"ArrowUp":o=Sf(u,1);break;case"ArrowDown":o=_i(u,1);break;case"PageUp":o=i?$i(u,1):Ua(u,1);break;case"PageDown":o=i?Jr(u,1):br(u,1);break;case"Home":o=ai(u,t.props.locale,t.props.calendarStartDay);break;case"End":o=P5e(u);break;default:o=null;break}if(!o){t.props.onInputError&&t.props.onInputError({code:1,msg:U3});return}if(a.preventDefault(),t.setState({lastPreSelectChange:G3}),t.props.adjustDateOnChange&&t.setSelected(o),t.setPreSelection(o),t.props.inline){var r=Vn(u),l=Vn(o),f=Ut(u),c=Ut(o);r!==l||f!==c?t.setState({shouldFocusDayInline:!0}):t.setState({shouldFocusDayInline:!1})}}}),ue(t,"onPopperKeyDown",function(a){var d=a.key;d==="Escape"&&(a.preventDefault(),t.sendFocusBackToInput())}),ue(t,"onClearClick",function(a){a&&a.preventDefault&&a.preventDefault(),t.sendFocusBackToInput(),t.props.selectsRange?t.props.onChange([null,null],a):t.props.onChange(null,a),t.setState({inputValue:null})}),ue(t,"clear",function(){t.onClearClick()}),ue(t,"onScroll",function(a){typeof t.props.closeOnScroll=="boolean"&&t.props.closeOnScroll?(a.target===document||a.target===document.documentElement||a.target===document.body)&&t.setOpen(!1):typeof t.props.closeOnScroll=="function"&&t.props.closeOnScroll(a)&&t.setOpen(!1)}),ue(t,"renderCalendar",function(){return!t.props.inline&&!t.isCalendarOpen()?null:le.createElement(m8e,{ref:function(d){t.calendar=d},locale:t.props.locale,calendarStartDay:t.props.calendarStartDay,chooseDayAriaLabelPrefix:t.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:t.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:t.props.weekAriaLabelPrefix,monthAriaLabelPrefix:t.props.monthAriaLabelPrefix,adjustDateOnChange:t.props.adjustDateOnChange,setOpen:t.setOpen,shouldCloseOnSelect:t.props.shouldCloseOnSelect,dateFormat:t.props.dateFormatCalendar,useWeekdaysShort:t.props.useWeekdaysShort,formatWeekDay:t.props.formatWeekDay,dropdownMode:t.props.dropdownMode,selected:t.props.selected,preSelection:t.state.preSelection,onSelect:t.handleSelect,onWeekSelect:t.props.onWeekSelect,openToDate:t.props.openToDate,minDate:t.props.minDate,maxDate:t.props.maxDate,selectsStart:t.props.selectsStart,selectsEnd:t.props.selectsEnd,selectsRange:t.props.selectsRange,selectsMultiple:t.props.selectsMultiple,selectedDates:t.props.selectedDates,startDate:t.props.startDate,endDate:t.props.endDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,filterDate:t.props.filterDate,onClickOutside:t.handleCalendarClickOutside,formatWeekNumber:t.props.formatWeekNumber,highlightDates:t.state.highlightDates,holidays:W5e(t.modifyHolidays()),includeDates:t.props.includeDates,includeDateIntervals:t.props.includeDateIntervals,includeTimes:t.props.includeTimes,injectTimes:t.props.injectTimes,inline:t.props.inline,shouldFocusDayInline:t.state.shouldFocusDayInline,peekNextMonth:t.props.peekNextMonth,showMonthDropdown:t.props.showMonthDropdown,showPreviousMonths:t.props.showPreviousMonths,useShortMonthInDropdown:t.props.useShortMonthInDropdown,showMonthYearDropdown:t.props.showMonthYearDropdown,showWeekNumbers:t.props.showWeekNumbers,showYearDropdown:t.props.showYearDropdown,withPortal:t.props.withPortal,forceShowMonthNavigation:t.props.forceShowMonthNavigation,showDisabledMonthNavigation:t.props.showDisabledMonthNavigation,scrollableYearDropdown:t.props.scrollableYearDropdown,scrollableMonthYearDropdown:t.props.scrollableMonthYearDropdown,todayButton:t.props.todayButton,weekLabel:t.props.weekLabel,outsideClickIgnoreClass:cP,fixedHeight:t.props.fixedHeight,monthsShown:t.props.monthsShown,monthSelectedIn:t.state.monthSelectedIn,onDropdownFocus:t.handleDropdownFocus,onMonthChange:t.props.onMonthChange,onYearChange:t.props.onYearChange,dayClassName:t.props.dayClassName,weekDayClassName:t.props.weekDayClassName,monthClassName:t.props.monthClassName,timeClassName:t.props.timeClassName,showDateSelect:t.props.showDateSelect,showTimeSelect:t.props.showTimeSelect,showTimeSelectOnly:t.props.showTimeSelectOnly,onTimeChange:t.handleTimeChange,timeFormat:t.props.timeFormat,timeIntervals:t.props.timeIntervals,minTime:t.props.minTime,maxTime:t.props.maxTime,excludeTimes:t.props.excludeTimes,filterTime:t.props.filterTime,timeCaption:t.props.timeCaption,className:t.props.calendarClassName,container:t.props.calendarContainer,yearItemNumber:t.props.yearItemNumber,yearDropdownItemNumber:t.props.yearDropdownItemNumber,previousMonthAriaLabel:t.props.previousMonthAriaLabel,previousMonthButtonLabel:t.props.previousMonthButtonLabel,nextMonthAriaLabel:t.props.nextMonthAriaLabel,nextMonthButtonLabel:t.props.nextMonthButtonLabel,previousYearAriaLabel:t.props.previousYearAriaLabel,previousYearButtonLabel:t.props.previousYearButtonLabel,nextYearAriaLabel:t.props.nextYearAriaLabel,nextYearButtonLabel:t.props.nextYearButtonLabel,timeInputLabel:t.props.timeInputLabel,disabledKeyboardNavigation:t.props.disabledKeyboardNavigation,renderCustomHeader:t.props.renderCustomHeader,popperProps:t.props.popperProps,renderDayContents:t.props.renderDayContents,renderMonthContent:t.props.renderMonthContent,renderQuarterContent:t.props.renderQuarterContent,renderYearContent:t.props.renderYearContent,onDayMouseEnter:t.props.onDayMouseEnter,onMonthMouseLeave:t.props.onMonthMouseLeave,onYearMouseEnter:t.props.onYearMouseEnter,onYearMouseLeave:t.props.onYearMouseLeave,selectsDisabledDaysInRange:t.props.selectsDisabledDaysInRange,showTimeInput:t.props.showTimeInput,showMonthYearPicker:t.props.showMonthYearPicker,showFullMonthYearPicker:t.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:t.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:t.props.showFourColumnMonthYearPicker,showYearPicker:t.props.showYearPicker,showQuarterYearPicker:t.props.showQuarterYearPicker,showWeekPicker:t.props.showWeekPicker,excludeScrollbar:t.props.excludeScrollbar,handleOnKeyDown:t.props.onKeyDown,handleOnDayKeyDown:t.onDayKeyDown,isInputFocused:t.state.focused,customTimeInput:t.props.customTimeInput,setPreSelection:t.setPreSelection,usePointerEvent:t.props.usePointerEvent,yearClassName:t.props.yearClassName},t.props.children)}),ue(t,"renderAriaLiveRegion",function(){var a=t.props,d=a.dateFormat,i=a.locale,u=t.props.showTimeInput||t.props.showTimeSelect,o=u?"PPPPp":"PPPP",r;return t.props.selectsRange?r="Selected start date: ".concat(Cr(t.props.startDate,{dateFormat:o,locale:i}),". ").concat(t.props.endDate?"End date: "+Cr(t.props.endDate,{dateFormat:o,locale:i}):""):t.props.showTimeSelectOnly?r="Selected time: ".concat(Cr(t.props.selected,{dateFormat:d,locale:i})):t.props.showYearPicker?r="Selected year: ".concat(Cr(t.props.selected,{dateFormat:"yyyy",locale:i})):t.props.showMonthYearPicker?r="Selected month: ".concat(Cr(t.props.selected,{dateFormat:"MMMM yyyy",locale:i})):t.props.showQuarterYearPicker?r="Selected quarter: ".concat(Cr(t.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):r="Selected date: ".concat(Cr(t.props.selected,{dateFormat:o,locale:i})),le.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r)}),ue(t,"renderDateInput",function(){var a,d=An(t.props.className,ue({},cP,t.state.open)),i=t.props.customInput||le.createElement("input",{type:"text"}),u=t.props.customInputRef||"ref",o=typeof t.props.value=="string"?t.props.value:typeof t.state.inputValue=="string"?t.state.inputValue:t.props.selectsRange?w5e(t.props.startDate,t.props.endDate,t.props):t.props.selectsMultiple?_5e(t.props.selectedDates,t.props):Cr(t.props.selected,t.props);return le.cloneElement(i,(a={},ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(a,u,function(r){t.input=r}),"value",o),"onBlur",t.handleBlur),"onChange",t.handleChange),"onClick",t.onInputClick),"onFocus",t.handleFocus),"onKeyDown",t.onInputKeyDown),"id",t.props.id),"name",t.props.name),"form",t.props.form),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(a,"autoFocus",t.props.autoFocus),"placeholder",t.props.placeholderText),"disabled",t.props.disabled),"autoComplete",t.props.autoComplete),"className",An(i.props.className,d)),"title",t.props.title),"readOnly",t.props.readOnly),"required",t.props.required),"tabIndex",t.props.tabIndex),"aria-describedby",t.props.ariaDescribedBy),ue(ue(ue(a,"aria-invalid",t.props.ariaInvalid),"aria-labelledby",t.props.ariaLabelledBy),"aria-required",t.props.ariaRequired)))}),ue(t,"renderClearButton",function(){var a=t.props,d=a.isClearable,i=a.disabled,u=a.selected,o=a.startDate,r=a.endDate,l=a.clearButtonTitle,f=a.clearButtonClassName,c=f===void 0?"":f,h=a.ariaLabelClose,g=h===void 0?"Close":h,p=a.selectedDates;return d&&(u!=null||o!=null||r!=null||p!=null&&p.length)?le.createElement("button",{type:"button",className:An("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":g,onClick:t.onClearClick,title:l,tabIndex:-1}):null}),t.state=t.calcInitialState(),t.preventFocusTimeout=null,t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(t,a){t.inline&&p8e(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:eP(this.props.highlightDates)}),!a.focused&&!Oi(t.selected,this.props.selected)&&this.setState({inputValue:null}),a.open!==this.state.open&&(a.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),a.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var t=this.props,a=t.showIcon,d=t.icon,i=t.calendarIconClassname,u=t.toggleCalendarOnIconClick,o=this.state.open;return le.createElement("div",{className:"react-datepicker__input-container".concat(a?" react-datepicker__view-calendar-icon":"")},a&&le.createElement(u8e,Sd({icon:d,className:"".concat(i," ").concat(o&&"react-datepicker-ignore-onclickoutside")},u?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var a=this.state.open?le.createElement(dP,{enableTabLoop:this.props.enableTabLoop},le.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(a=le.createElement(lP,{portalId:this.props.portalId,portalHost:this.props.portalHost},a)),le.createElement("div",null,this.renderInputContainer(),a)}return le.createElement(f8e,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:t,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop,showArrow:this.props.showPopperArrow})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Dd,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}}}])}(le.Component),g8e="input",G3="navigate";const b8e={[xa.GT]:">",[xa.LT]:"<",[xa.EQ]:"="},v8e=le.memo(({columnFilterValue:n,onChange:s,onInputKeyDown:e,propIsRequired:t,propName:a,propSchema:d,translate:i})=>{const{displayTimezone:u}=le.useContext(mo),{type:o,format:r,minimum:l,maximum:f}=d||{},c=n,h=r==="date-time";switch(o){case"number":case"integer":const g=c||{},p=(b,M,S)=>{const C={...g,[b]:M.value===""?void 0:parseInt(M.value)},N=Object.values(C).find(H=>isFinite(H));s(N!==void 0&&(l===void 0||N>=l)?C:void 0,S)};return Ke.jsxs("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:[t?null:Ke.jsxs("li",{style:{padding:8},children:[Ke.jsxs("label",{className:"d-flex",children:[Ke.jsx("input",{type:"checkbox",style:{marginRight:14},checked:!!g.filterEmpty,onChange:()=>{const{filterEmpty:b,...M}=g;b||(M.filterEmpty=!0),s(Object.keys(M).length?M:void 0,!0)}}),"Hide empty values"]}),Ke.jsx("hr",{})]}),Object.keys(xa).map(b=>{const M=g[b];return Ke.jsxs("li",{children:[Ke.jsx("label",{style:{width:40,paddingLeft:16},children:b8e[b]}),Ke.jsx("input",{className:"form-control",style:{width:120},type:"number",value:M!==void 0?M:"","data-prop-name":a,onChange:S=>{p(b,S.currentTarget,!1)},onBlur:S=>{p(b,S.currentTarget,!0)},onKeyDown:e,min:l,max:f})]},b)})]});case"boolean":const m=["✓","✕"];t||m.push("?");let y=c?"✓":"✕";return c===null&&(y="?"),c===void 0&&(y=""),Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsxs("select",{autoFocus:!0,className:"form-select",value:y,"data-prop-name":a,onChange:b=>{switch(b.currentTarget.value){case"✓":s(!0,!0);break;case"✕":s(!1,!0);break;case"?":s(null,!0);break;default:s(void 0,!0)}},children:[Ke.jsx("option",{value:"",children:"All"},"all"),m.map(b=>Ke.jsx("option",{value:b,children:b},`column-filter-select-${b}`))]})})});case"string":if(d!=null&&d.enum)return Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsxs("select",{autoFocus:!0,className:"form-select",value:c,"data-prop-name":a,onChange:b=>{s(b.currentTarget.value||void 0,!0)},children:[Ke.jsx("option",{value:"",children:"All"},"all"),d.enum.map(b=>Ke.jsx("option",{value:b,children:i(b)},`column-filter-select-${b}`))]})})});if(h||r==="date"){const b=h?xd:x3,M=n||{from:void 0,to:void 0,filterEmpty:void 0};return Ke.jsxs("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:[t?null:Ke.jsxs("li",{style:{padding:8},children:[Ke.jsxs("label",{className:"d-flex",children:[Ke.jsx("input",{type:"checkbox",checked:!!M.filterEmpty,onChange:()=>{const{filterEmpty:S,...C}=M;S||(C.filterEmpty=!0),s(Object.keys(C).length?C:void 0,!0)}}),"Hide empty values"]}),Ke.jsx("hr",{})]}),Ke.jsxs("li",{style:{padding:8},children:[Ke.jsx("label",{style:{width:120,paddingLeft:4},children:"After"}),Ke.jsx(hP,{dateFormat:b,"data-prop-name":a,locale:Df,selected:M.from?so.toZonedTime(M.from,u||wn.timeZone):null,onChange:S=>{if(!S&&!M.to){s(void 0,!0);return}if(M.to&&S&&S>M.to)return;const C=S?so.fromZonedTime(S,u||wn.timeZone):void 0;s({...n,from:C},!0)},placeholderText:b,isClearable:!0,selectsStart:!0,showTimeSelect:h,showTimeInput:h,showMonthDropdown:!0,showYearDropdown:!0,timeIntervals:15,shouldCloseOnSelect:!h})]}),Ke.jsxs("li",{style:{padding:8},children:[Ke.jsx("label",{style:{width:120,paddingLeft:4},children:"Before"}),Ke.jsx(hP,{id:"filter-date",dateFormat:b,"data-prop-name":a,locale:Df,selectsEnd:!0,selected:M.to?so.toZonedTime(M.to,u||wn.timeZone):null,showMonthDropdown:!0,showYearDropdown:!0,onChange:S=>{if(!S&&!M.from){s(void 0,!0);return}const C=S?h?so.fromZonedTime(S,u||wn.timeZone):xi(S):void 0;M.from&&C&&C<M.from||s({...n,to:C},!0)},placeholderText:b,isClearable:!0,startDate:M.from,endDate:M.to,showTimeInput:h,showTimeSelect:h,timeIntervals:15,shouldCloseOnSelect:!h})]})]})}default:return Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsx("input",{autoFocus:!0,type:"search",className:"form-control",placeholder:`Search ${a}`,"aria-label":`Search ${a}`,value:c||"","data-prop-name":a,onChange:b=>{s(b.currentTarget.value||void 0,!1)},onKeyDown:e,onBlur:b=>{s(b.currentTarget.value||void 0,!0)}})})})}}),y8e=({isSortable:n,isFilterable:s,onChange:e,onClose:t,onInputKeyDown:a,propConfig:d,propIsRequired:i,propName:u,propSchema:o,referenceElement:r,setFilterSortColumn:l,translate:f,value:c})=>{const h=L3({placement:"bottom-start",elements:{reference:r},middleware:[N3()]}),g=L3({placement:"right-start",middleware:[N3()]});le.useEffect(()=>{const M=S=>{if(!h.elements.floating)return;let C=S.target;for(;C&&h.elements.floating;){if(C===h.elements.floating||C===g.elements.floating)return;C=C.parentNode===window.document?null:C.parentNode}t(S)};return window.addEventListener("click",M,{capture:!0}),()=>{window.removeEventListener("click",M,{capture:!0})}},[h.elements.floating,t,g.elements.floating]);const p=(d==null?void 0:d.FilterMenu)||v8e,m=le.useCallback(M=>{l(u,!0),t(M)},[t,u,l]),y=le.useCallback(M=>{l(u,!1),t(M)},[t,u,l]),b=le.useCallback(()=>{e(void 0,!0)},[e]);return!n&&!s?null:Ke.jsxs(Ke.Fragment,{children:[Ke.jsx("div",{className:"mig-schema-table mig-schema-table__th-menu",ref:h.refs.setFloating,style:h.floatingStyles,children:Ke.jsxs("ol",{className:"mig-schema-table-menu",children:[n?Ke.jsxs("li",{onClick:m,style:{padding:8},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:"↓"})," ",f("sortAscending")]}):null,n?Ke.jsxs("li",{onClick:y,style:{padding:8},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:"↑"})," ",f("sortDescending")]}):null,s?Ke.jsxs("li",{style:{padding:8},onMouseOver:M=>{g.refs.setReference(M.currentTarget)},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:Ke.jsx("input",{type:"checkbox",id:"mig-schema-table__th-menu__filters",checked:c!==void 0,disabled:c===void 0,onChange:b})}),Ke.jsx("label",{htmlFor:"mig-schema-table__th-menu__filters",children:f("filters")}),Ke.jsx("div",{className:"mig-schema-table__th-menu__sub-menu-indicator"})]}):null]})}),g.elements.reference?Ke.jsx("div",{className:"mig-schema-table mig-schema-table__th-menu__sub-menu",ref:g.refs.setFloating,style:g.floatingStyles,children:Ke.jsx(p,{columnFilterValue:c,onChange:e,onInputKeyDown:a,propIsRequired:i,propName:u,propSchema:o,translate:f})}):null]})},w8e=le.memo(y8e),_8e=({columnWidths:n,resizeColumnIndex:s,setResizeColumnIndex:e,tableBodyHeight:t})=>{const[a,d]=le.useState(0),i=c6(),u=le.useCallback(f=>{const c=n.map((h,g)=>g===s?Math.max(h+f,M3):h);i(c)},[n,s,i]);let o=0;const r=le.useCallback(f=>{e(parseInt(f.currentTarget.dataset.columnIndex)),d(f.clientX)},[e]),l=le.useCallback(f=>{u(f.clientX-a),d(0),e(-1)},[a,u,e]);return Ke.jsx("div",{children:n.map((f,c)=>{o+=f;const h=["mig-schema-table__column_resizer"];return c===s&&h.push("mig-schema-table__column_resizer--dragged"),Ke.jsx("div",{style:{left:o-u6,bottom:t},className:h.join(" "),draggable:"true","data-column-index":c,onDragStart:r,onDragEnd:l},c)})})};function fP(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function x8e(n){var s=n.lastRenderedStartIndex,e=n.lastRenderedStopIndex,t=n.startIndex,a=n.stopIndex;return!(t>e||a<s)}function M8e(n){for(var s=n.isItemLoaded,e=n.itemCount,t=n.minimumBatchSize,a=n.startIndex,d=n.stopIndex,i=[],u=null,o=null,r=a;r<=d;r++){var l=s(r);l?o!==null&&(i.push(u,o),u=o=null):(o=r,u===null&&(u=r))}if(o!==null){for(var f=Math.min(Math.max(o,u+t-1),e-1),c=o+1;c<=f&&!s(c);c++)o=c;i.push(u,o)}if(i.length)for(;i[1]-i[0]+1<t&&i[0]>0;){var h=i[0]-1;if(!s(h))i[0]=h;else break}return i}var k8e=function(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")},P8e=function(){function n(s,e){for(var t=0;t<e.length;t++){var a=e[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,e,t){return e&&n(s.prototype,e),t&&n(s,t),s}}(),$8e=function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)},mP=function(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:n},S8e=function(n){$8e(s,n);function s(){var e,t,a,d;k8e(this,s);for(var i=arguments.length,u=Array(i),o=0;o<i;o++)u[o]=arguments[o];return d=(t=(a=mP(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(u))),a),a._lastRenderedStartIndex=-1,a._lastRenderedStopIndex=-1,a._memoizedUnloadedRanges=[],a._onItemsRendered=function(r){var l=r.visibleStartIndex,f=r.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!fP(l)||!fP(f))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof a.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),a._lastRenderedStartIndex=l,a._lastRenderedStopIndex=f,a._ensureRowsLoaded(l,f)},a._setRef=function(r){a._listRef=r},t),mP(a,d)}return P8e(s,[{key:"resetloadMoreItemsCache",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],t&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var t=this.props.children;return t({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(t,a){var d=this.props,i=d.isItemLoaded,u=d.itemCount,o=d.minimumBatchSize,r=o===void 0?10:o,l=d.threshold,f=l===void 0?15:l,c=M8e({isItemLoaded:i,itemCount:u,minimumBatchSize:r,startIndex:Math.max(0,t-f),stopIndex:Math.min(u-1,a+f)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(h,g){return c[g]!==h}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(t){for(var a=this,d=this.props.loadMoreItems||this.props.loadMoreRows,i=function(r){var l=t[r],f=t[r+1],c=d(l,f);c!=null&&c.then(function(){if(x8e({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:l,stopIndex:f})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(l,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},u=0;u<t.length;u+=2)i(u)}}]),s}(le.PureComponent);const pP=new Date("1000-01-01 00:00:00Z"),D8e=new Intl.NumberFormat("nl-NL"),T8e=new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR"});function C8e(n,s){const{TdBody:e,sortByValue:t}=s||{};if(t!==void 0)return t;if(!n)return!1;const{format:a,type:d}=n;return(a==null?void 0:a.startsWith("date"))||d==="boolean"||d==="integer"||d==="number"||!!e}const E8e=({Heading:n=V8,checkedIndexes:s,config:e,CustomElement:t,customElementProps:a,data:d,defaultColumnFilters:i,defaultSortAsc:u=!1,defaultSortColumn:o,disabledCheckedIndexes:r,enableAutoFocus:l=!0,enableRowCounter:f=!0,getRowClassName:c,getRowSelected:h,infiniteLoaderRef:g,isColumnFilterable:p=!0,isExportable:m=!0,isResizable:y=!0,isSearchable:b=!0,isSortable:M=!0,maxHeight:S,setCheckedIndexes:C,onRowClick:N,onRowDoubleClick:H,onSearchEnter:L,onTableDataStateChange:z,rowHeight:B=36,schema:X,searchPlaceholder:V,settingsStorageKey:D,style:E,translate:P=o6,useFilterStateHash:w,width:_,tableRef:x,loadMoreItems:k,itemCount:T,displayTimezone:j,autoRender:A})=>{var Ee;const[q,U]=le.useState(),[ee,R]=le.useState(),[K,O]=le.useState(-1),[F,Y]=le.useState(-1),[Q,ie]=le.useState(),[J,ae]=le.useState(),pe=d instanceof Function,[he,te]=le.useState(pe?void 0:d),[de,ce]=le.useState(),[fe,be]=le.useState({searchQuery:"",columnFilterMap:i||{},sortColumn:o,sortAsc:u}),[we,Se]=le.useState(w?wn.parseLocationHash(window.location.hash):null);le.useEffect(()=>{pe||te(d)},[d,pe]),le.useEffect(()=>{!pe||he!==void 0||d(we&&Object.keys(we).length!==0?{...we,columnFilterMap:we.columnFilterMap||{}}:fe).then(te)},[d,pe,we,he,fe]),le.useEffect(()=>{de||ce(fe)},[fe,de]),le.useEffect(()=>{if(!w)return;const $e=()=>{Se(wn.parseLocationHash(window.location.hash))};return window.addEventListener("hashchange",$e),()=>{window.removeEventListener("hashchange",$e)}},[w]),le.useEffect(()=>{if(!w)return;const{columnFilterMap:$e,searchQuery:Ie,sortAsc:ne,sortColumn:ye}=we||{},I={searchQuery:Ie||"",columnFilterMap:$e||i||{},sortAsc:ne===void 0?u:ne,sortColumn:ye===void 0?o:ye};be(De=>Ja.isEqual(I,De)?De:I)},[we,w,i,u,o]),le.useEffect(()=>{z&&z(fe)},[z,fe]);const Te=le.useMemo(()=>!Ja.isEqual(fe,de)&&pe,[fe,de,pe]),{properties:Oe,required:Qe}=le.useMemo(()=>({properties:{},required:[],...X}),[X]),Be=D?localStorage.getItem(`${D}.columnNames`):null,He=D?localStorage.getItem(`${D}.columnWidths`):null,rt=le.useMemo(()=>{if(q)return q;const $e=Be?JSON.parse(Be):void 0;let Ie=Object.keys(Oe);if(C&&Ie.unshift(Vr),e){Object.keys(e).forEach(ye=>{Ie.includes(ye)||Ie.push(ye)});const ne=Object.entries(e).reduce((ye,[I,De])=>(De.hidden&&ye.push(I),ye),[]);Ie=Ie.filter(ye=>!ne.includes(ye)).sort((ye,I)=>{let De=e[ye]?e[ye].order:void 0;De===void 0&&(De=Object.keys(Oe).findIndex(Ve=>Ve===ye));let We=e[I]?e[I].order:void 0;return We===void 0&&(We=Object.keys(Oe).findIndex(Ve=>Ve===I)),I===Vr||ye===Vr?0:De===-1?1:We===-1?-1:De-We})}return($e==null?void 0:$e.length)===Ie.length?$e:Ie},[e,q,C,Oe,Be]),st=le.useMemo(()=>he&&rt?he.map(($e,Ie)=>rt.reduce((ne,ye)=>{var Ve;const I=Oe[ye],De=e?e[ye]:void 0;if(De!=null&&De.renderData)return ne[ye]=De.renderData($e,Ie),ne;if(!I||ye===Vr)return ne[ye]="",ne;const We=$e?$e[ye]:"";switch(I.type){case"array":return ne[ye]=((Ve=I.items)==null?void 0:Ve.type)==="string"&&We?We.map(Ye=>P(Ye)).join(", "):JSON.stringify(We),ne;case"boolean":return ne[ye]=We===void 0?"?":We?"✓":"✕",ne;case"number":case"integer":return We===void 0?(ne[ye]="",ne):(ne[ye]=I.format==="currency"?T8e.format(We):D8e.format(We),ne);case"string":if(I.format==="date"&&We)return ne[ye]=["2999-12-31","1970-01-01"].includes(We)?"-":Tf(new Date(We),(De==null?void 0:De.dateFormat)||x3),ne;if(I.format==="date-time"&&We)return ne[ye]=j?wn.localeFormatInTimeZone(new Date(We),j,xd):Tf(new Date(We),(De==null?void 0:De.dateFormat)||xd),ne;if(I.enum)return ne[ye]=We?P(We):"",ne;default:return ne[ye]=We?`${We}`:"",ne}},{_index:Ie})):void 0,[he,rt,Oe,e,P,j]),at=rt?rt.length:0,{dynamicWidthColumnCount:ut,fixedWidthColumnsWidth:Ge}=le.useMemo(()=>{let $e=0,Ie=0;return(rt||[]).forEach(ne=>{if(ne===Vr){$e+=s6;return}const ye=e?e[ne]:void 0;ye!=null&&ye.width?$e+=ye.width:Ie+=1},0),{dynamicWidthColumnCount:Ie,fixedWidthColumnsWidth:$e}},[rt,e]),Ae=le.useMemo(()=>{if(ee)return ee;const $e=He?JSON.parse(He):void 0,Ie=Math.max(Math.floor((_-Ge)/ut),M3);let ne=(_-Ge)%ut;const ye=rt.map(I=>{if(I===Vr)return s6;const De=e?e[I]:void 0;return De!=null&&De.width?De==null?void 0:De.width:ne?(ne-=1,Ie+1):Ie});return($e==null?void 0:$e.length)===ye.length?$e:ye},[rt,e,ee,ut,Ge,He,_]),Ze=le.useCallback($e=>Ae?Ae[$e]:1,[Ae]),it=le.useMemo(()=>!st||!p&&!b||pe?st:st.filter($e=>{var ye;const Ie=((ye=fe.searchQuery)==null?void 0:ye.toLowerCase())||"";if(fe.searchQuery&&rt&&!rt.find(I=>`${$e[I]}`.toLowerCase().includes(Ie)))return!1;let ne=!0;return fe.columnFilterMap?(Object.entries(fe.columnFilterMap).forEach(([I,De])=>{var lt;if(!ne||De===void 0)return;const We=e?e[I]:void 0;if(he&&(We!=null&&We.filter)){ne=We.filter(he[$e._index],De);return}const Ve=Oe[I],Ye=(lt=he[$e._index])==null?void 0:lt[I];switch(Ve==null?void 0:Ve.type){case"boolean":case"number":case"integer":if(De&&typeof De=="object"){De.filterEmpty&&Ye===void 0&&(ne=!1);for(const pt of Object.keys(xa)){const gt=De[pt];if(ne&&Ja.isFinite(gt))switch(pt){case xa.EQ:Ye!==gt&&(ne=!1);break;case xa.GT:Ye<=gt&&(ne=!1);break;case xa.LT:Ye>=gt&&(ne=!1);break}}}else{if(Ye===void 0&&De===null)return!0;ne=Ye===De}break;case"string":if(typeof De=="object"&&(Ve.format==="date"||Ve.format==="date-time")){const{from:pt,to:gt,filterEmpty:Nt}=De;if(!Ye)ne=!Nt;else{const Zt=Ye?new Date(Ye):void 0;(Nt===!1||pt&&(!Zt||Zt<pt)||gt&&(!Zt||Zt>gt))&&(ne=!1)}return}default:if(Ve!=null&&Ve.enum){ne=Ye===De;return}ne=`${$e[I]}`.toLowerCase().includes(`${De}`.toLowerCase())}}),ne):!1}),[st,p,b,pe,fe.searchQuery,fe.columnFilterMap,rt,e,he,Oe]),Xe=le.useMemo(()=>{var Ve;const{sortAsc:$e,sortColumn:Ie}=fe;if(!Ie||!it||!he||pe)return it;const ne=Oe[Ie],ye=e?e[Ie]:void 0,I=ye==null?void 0:ye.sort;if(I)return it.sort((Ye,lt)=>{const pt=he[Ye._index],gt=he[lt._index];return pt?gt?I(pt,gt,$e||u):-1:1});const De=ne&&((Ve=ne.format)==null?void 0:Ve.startsWith("date")),We=C8e(ne,ye);return it.sort((Ye,lt)=>{let pt=We&&he[Ye._index]?he[Ye._index][Ie]:Ye[Ie].toLowerCase(),gt=We&&he[lt._index]?he[lt._index][Ie]:lt[Ie].toLowerCase();return We&&De&&(pt=new Date(pt),isNaN(pt.getTime())&&(pt=pP),gt=new Date(gt),isNaN(gt.getTime())&&(gt=pP)),pt===gt?0:pt?gt?(pt<gt?1:-1)*($e?-1:1):$e?1:-1:$e?-1:1})},[e,u,it,pe,Oe,he,fe]),Ct=le.useCallback($e=>{const Ie={...fe.columnFilterMap};delete Ie[$e],be({...fe,columnFilterMap:Ie})},[fe]),Lt=le.useCallback(($e,Ie)=>{if(w){window.location.hash=wn.serializeLocationHash({...we,sortColumn:$e,sortAsc:Ie});return}be({...fe,sortColumn:$e,sortAsc:Ie})},[fe,we,w]),ft=le.useCallback($e=>{be({...fe,searchQuery:$e.currentTarget.value})},[fe]),Mt=le.useCallback(()=>{ce(fe),te(void 0)},[fe]);le.useEffect(()=>{if(!A||!we||!de||!w)return;const $e=Object.keys(we);let Ie=!1;for(const ne of $e){const ye=we[ne],I=de[ne];if(typeof ye=="string"&&ye!==I){Ie=!0;break}if(typeof ye=="object"&&!Ja.isEqual(ye,I)){Ie=!0;break}}Ie&&Mt()},[A,we,de,Mt,w]);const kt=le.useCallback($e=>{$e.key==="Enter"&&(ie(void 0),Te&&Mt(),L&&$e.currentTarget.className==="mig-schema-table__search"&&L(fe.searchQuery||""))},[Te,fe.searchQuery,L,Mt]),bt=le.useCallback(()=>B,[B]),Ft=le.useMemo(()=>Ja.sum(Ae),[Ae]),Ot=le.useMemo(()=>Xe?Xe.length:0,[Xe]),dt=le.useMemo(()=>{const $e=B*Ot,Ie=S?S-(b?50:0):0;return Ie&&Ie<$e?Ie:$e},[S,b,Ot,B]),Wt=le.useCallback($e=>{ie(void 0),$e.preventDefault(),$e.stopPropagation()},[]),Xt=le.useCallback(($e,Ie)=>{if(!Q)return;if(w&&Ie!==!1){window.location.hash=wn.serializeLocationHash({...we,columnFilterMap:{...fe.columnFilterMap,[Q.propName]:$e}});return}if($e===void 0){Ct(Q.propName);return}const ne={...fe.columnFilterMap,[Q.propName]:$e};be({...fe,columnFilterMap:ne})},[Ct,fe,we,Q,w]),vt=le.useCallback(()=>{const $e={searchQuery:"",columnFilterMap:i||{},sortColumn:o,sortAsc:u};w&&(window.location.hash=wn.serializeLocationHash($e)),ce($e),be($e)},[w,i,u,o]),Ht=le.useCallback(()=>{const $e=(we==null?void 0:we.searchQuery)||"";w&&(fe.searchQuery||$e)&&fe.searchQuery!==$e&&(window.location.hash=wn.serializeLocationHash({...we,searchQuery:fe.searchQuery}))},[we,fe.searchQuery,w]),Vt=le.useCallback(async $e=>{if($e.preventDefault(),$e.stopPropagation(),!Xe)return;const{renderDataToExcel:Ie}=await Promise.resolve().then(()=>L8e);Ie(Xe)},[Xe]),wt=le.useCallback(()=>{D&&(localStorage.removeItem(`${D}.columnNames`),localStorage.removeItem(`${D}.columnWidths`),U(void 0),R(void 0))},[D]),ge=le.useCallback($e=>!Xe||!he||!k||!T?!0:he[Xe[$e]._index]!==void 0,[T,k,Xe,he]),Me=le.useMemo(()=>!(he&&!Te)&&!k?Ke.jsx("div",{style:{width:Ft,height:Math.max(50,dt),border:"1px solid #BBB",textAlign:"center",display:"flex",backgroundColor:"#CCC",alignItems:"center",justifyContent:"center"},children:Te?Ke.jsx("button",{onClick:Mt,className:"btn border",children:"Refresh data"}):Ke.jsx("div",{children:"⌛ Loading..."})}):k&&T?Ke.jsx(S8e,{ref:g,isItemLoaded:ge,itemCount:T,loadMoreItems:k,children:({onItemsRendered:Ie,ref:ne})=>Ke.jsx(pM,{className:"mig-schema-table__tbody",estimatedRowHeight:B,height:dt,width:Ft,columnWidth:Ze,rowHeight:bt,columnCount:at,rowCount:Ot,ref:ne,onItemsRendered:({overscanRowStartIndex:ye,overscanRowStopIndex:I,visibleRowStartIndex:De,visibleRowStopIndex:We})=>Ie({overscanStartIndex:ye,overscanStopIndex:I,visibleStartIndex:De,visibleStopIndex:We}),children:l6},`tbody_${dt}_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${at}_${Ae.join(" ")}`)}):Ke.jsx(pM,{className:"mig-schema-table__tbody",estimatedRowHeight:B,height:dt,width:Ft,columnWidth:Ze,rowHeight:bt,columnCount:at,rowCount:Ot,ref:x,children:l6},`tbody_${dt}_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${at}_${Ae.join(" ")}`),[at,Ae,Ze,bt,g,Te,ge,T,k,Mt,Ot,B,Ft,fe.searchQuery,fe.sortAsc,fe.sortColumn,he,dt,x]);return Ke.jsx(mo.Provider,{value:{checkedIndexes:s,columnNames:rt,columnWidths:Ae,config:e,disabledCheckedIndexes:r,displayTimezone:j,dropTargetIndex:F,getRowClassName:c,getRowSelected:h,isColumnFilterable:p,isItemLoaded:ge,isSortable:M,lastCheckChangedRowIndex:J,onRowClick:N,onRowDoubleClick:H,properties:Oe,required:Qe,setCheckedIndexes:C,setCustomColumnNames:U,setCustomColumnWidths:R,setDropTargetIndex:Y,setFilterSortColumn:Lt,setLastCheckChangedRowIndex:ae,setMenuConfig:ie,settingsStorageKey:D,sortedRenderData:Xe,sourceData:he,tableDataState:fe,translate:P||o6},children:Ke.jsxs("div",{className:`mig-schema-table${N?" mig-schema-table--clickable-rows":""}`,style:{...E,width:Math.min(Ft,_)},role:"table",children:[Ke.jsxs("div",{className:"mig-schema-table__action-container",children:[Ke.jsx("div",{children:b?Ke.jsx("input",{className:"mig-schema-table__search",type:"search",name:"search",autoComplete:"off",placeholder:V||P("search..."),value:fe.searchQuery,onChange:ft,onKeyDown:kt,autoFocus:l,onBlur:Ht}):null}),t?Ke.jsx(t,{...a,renderData:Xe}):Ke.jsx("div",{className:"mig-schema-table__custom_element_placeholder"}),f&&Array.isArray(d)?Ke.jsx("span",{className:"mig-schema-table__row_counter",children:P("showingFilteredCountOfTotalCount",(Xe==null?void 0:Xe.length)||0,d.length)}):null,m?Ke.jsx("button",{onClick:Vt,style:{marginLeft:8},disabled:!(Xe!=null&&Xe.length),children:P("exportData")}):null,b||p?Ke.jsx("button",{onClick:vt,style:{marginLeft:8},disabled:fe.columnFilterMap&&fe.searchQuery?Object.keys(fe.columnFilterMap).length+fe.searchQuery.length===0:!1,children:P("clearFilters")}):null,D?Ke.jsx("button",{onClick:wt,style:{marginLeft:8},disabled:!Be&&!He,children:P("clearSettings")}):null]}),Ke.jsxs("div",{className:"mig-schema-table__column_resize_container",children:[Ke.jsx(n,{height:50,itemCount:at,itemSize:Ze,layout:"horizontal",width:Ft,sortAsc:fe.sortAsc,setFilterSortColumn:Lt,sortColumn:fe.sortColumn,sortedRenderData:Xe,className:"mig-schema-table__th-row",children:h6},`thead_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${Ae.join(" ")}`),Me,y?Ke.jsx(_8e,{columnWidths:Ae,resizeColumnIndex:K,setResizeColumnIndex:O,tableBodyHeight:dt}):null]}),Zr.createPortal(Q?Ke.jsx(w8e,{isFilterable:p&&((Ee=Q.propConfig)==null?void 0:Ee.isFilterable)!==!1,isSortable:d6(!!M,X.properties[Q.propName],Q.propConfig),onChange:Xt,onClose:Wt,onInputKeyDown:kt,propConfig:Q.propConfig,propIsRequired:Q.propIsRequired,propName:Q.propName,propSchema:X.properties[Q.propName],referenceElement:Q.referenceElement,setFilterSortColumn:Lt,translate:P,value:fe.columnFilterMap?fe.columnFilterMap[Q.propName]:null}):null,document.body)]})})},F8e=le.memo(E8e),O8e=le.memo(({refresh:n,period:s=60})=>{const[e,t]=le.useState(new Date),[a,d]=le.useState(new Date),i=le.useCallback(()=>{d(new Date),n()},[n]),u=le.useMemo(()=>Mi(e,a),[e,a]);le.useEffect(()=>{u>s&&i()},[u,e,a,s,i]),le.useEffect(()=>{const l=setInterval(()=>{t(new Date)},1e3);return()=>{clearInterval(l)}},[]);const o=s-u;return Ke.jsxs("div",{className:"mx-auto",title:`Refresh ${o>0?`in ${o} seconds`:"NOW"}`,children:["Last update ",Tf(a,"HH:mm")]})});function bh(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gP={exports:{}};/*! ExcelJS 19-10-2023 */(function(n,s){(function(e){n.exports=e()})(function(){return function e(t,a,d){function i(r,l){if(!a[r]){if(!t[r]){var f=typeof bh=="function"&&bh;if(!l&&f)return f(r,!0);if(u)return u(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var h=a[r]={exports:{}};t[r][0].call(h.exports,function(g){return i(t[r][1][g]||g)},h,h.exports,e,t,a,d)}return a[r].exports}for(var u=typeof bh=="function"&&bh,o=0;o<d.length;o++)i(d[o]);return i}({1:[function(e,t,a){const d=e("fs"),i=e("fast-csv"),u=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),r=e("dayjs").extend(u).extend(o),l=e("../utils/stream-buf"),{fs:{exists:f}}=e("../utils/utils"),c={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(h){this.workbook=h,this.worksheet=null}async readFile(h,g){if(g=g||{},!await f(h))throw new Error("File not found: "+h);const p=d.createReadStream(h),m=await this.read(p,g);return p.close(),m}read(h,g){return g=g||{},new Promise((p,m)=>{const y=this.workbook.addWorksheet(g.sheetName),b=g.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],M=g.map||function(C){if(C==="")return null;const N=Number(C);if(!Number.isNaN(N)&&N!==1/0)return N;const H=b.reduce((z,B)=>{if(z)return z;const X=r(C,B,!0);return X.isValid()?X:null},null);if(H)return new Date(H.valueOf());const L=c[C];return L!==void 0?L:C},S=i.parse(g.parserOptions).on("data",C=>{y.addRow(C.map(M))}).on("end",()=>{S.emit("worksheet",y)});S.on("worksheet",p).on("error",m),h.pipe(S)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(h,g){return new Promise((p,m)=>{g=g||{};const y=this.workbook.getWorksheet(g.sheetName||g.sheetId),b=i.format(g.formatterOptions);h.on("finish",()=>{p()}),b.on("error",m),b.pipe(h);const{dateFormat:M,dateUTC:S}=g,C=g.map||(L=>{if(L){if(L.text||L.hyperlink)return L.hyperlink||L.text||"";if(L.formula||L.result)return L.result||"";if(L instanceof Date)return M?S?r.utc(L).format(M):r(L).format(M):S?r.utc(L).format():r(L).format();if(L.error)return L.error;if(typeof L=="object")return JSON.stringify(L)}return L}),N=g.includeEmptyRows===void 0||g.includeEmptyRows;let H=1;y&&y.eachRow((L,z)=>{if(N)for(;H++<z-1;)b.write([]);const{values:B}=L;B.shift(),b.write(B.map(C)),H=z}),b.end()})}writeFile(h,g){const p={encoding:(g=g||{}).encoding||"utf8"},m=d.createWriteStream(h,p);return this.write(m,g)}async writeBuffer(h){const g=new l;return await this.write(g,h),g.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(o,r){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=o,r)if(typeof r=="string"){const f=d.decodeAddress(r);this.nativeCol=f.col+l,this.nativeColOff=0,this.nativeRow=f.row+l,this.nativeRowOff=0}else r.nativeCol!==void 0?(this.nativeCol=r.nativeCol||0,this.nativeColOff=r.nativeColOff||0,this.nativeRow=r.nativeRow||0,this.nativeRowOff=r.nativeRowOff||0):r.col!==void 0?(this.col=r.col+l,this.row=r.row+l):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(o){return o instanceof i||o==null?o:new i(o)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(o){this.nativeCol=Math.floor(o),this.nativeColOff=Math.floor((o-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(o){this.nativeRow=Math.floor(o),this.nativeRowOff=Math.floor((o-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(o){this.nativeCol=o.nativeCol,this.nativeColOff=o.nativeColOff,this.nativeRow=o.nativeRow,this.nativeRowOff=o.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,a){const d=e("../utils/col-cache"),i=e("../utils/under-dash"),u=e("./enums"),{slideFormula:o}=e("../utils/shared-formula"),r=e("./note");class l{constructor(h,g,p){if(!h||!g)throw new Error("A Cell needs a Row");this._row=h,this._column=g,d.validateAddress(p),this._address=p,this._value=f.create(l.Types.Null,this),this.style=this._mergeStyle(h.style,g.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(h){this.style.numFmt=h}get font(){return this.style.font}set font(h){this.style.font=h}get alignment(){return this.style.alignment}set alignment(h){this.style.alignment=h}get border(){return this.style.border}set border(h){this.style.border=h}get fill(){return this.style.fill}set fill(h){this.style.fill=h}get protection(){return this.style.protection}set protection(h){this.style.protection=h}_mergeStyle(h,g,p){const m=h&&h.numFmt||g&&g.numFmt;m&&(p.numFmt=m);const y=h&&h.font||g&&g.font;y&&(p.font=y);const b=h&&h.alignment||g&&g.alignment;b&&(p.alignment=b);const M=h&&h.border||g&&g.border;M&&(p.border=M);const S=h&&h.fill||g&&g.fill;S&&(p.fill=S);const C=h&&h.protection||g&&g.protection;return C&&(p.protection=C),p}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(h,g){this._value.release(),this._value=f.create(l.Types.Merge,this,h),g||(this.style=h.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=f.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(h){return this._value.type===l.Types.Merge&&this._value.isMergedTo(h)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(h){this.type!==l.Types.Merge?(this._value.release(),this._value=f.create(f.getType(h),this,h)):this._value.master.value=h}get note(){return this._comment&&this._comment.note}set note(h){this._comment=new r(h)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(h){this.type===l.Types.String&&(this._value=f.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:h}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:h}=this._row;return{sheetName:h.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(h){this.names=[h]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(h){const{definedNames:g}=this.workbook;g.removeAllNames(this.fullAddress),h.forEach(p=>{g.addEx(this.fullAddress,p)})}addName(h){this.workbook.definedNames.addEx(this.fullAddress,h)}removeName(h){this.workbook.definedNames.removeEx(this.fullAddress,h)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(h){this._dataValidations.add(this.address,h)}get model(){const{model:h}=this._value;return h.style=this.style,this._comment&&(h.comment=this._comment.model),h}set model(h){if(this._value.release(),this._value=f.create(h.type,this),this._value.model=h,h.comment)switch(h.comment.type){case"note":this._comment=r.fromModel(h.comment)}h.style?this.style=h.style:this.style={}}}l.Types=u.ValueType;const f={getType:c=>c==null?l.Types.Null:c instanceof String||typeof c=="string"?l.Types.String:typeof c=="number"?l.Types.Number:typeof c=="boolean"?l.Types.Boolean:c instanceof Date?l.Types.Date:c.text&&c.hyperlink?l.Types.Hyperlink:c.formula||c.sharedFormula?l.Types.Formula:c.richText?l.Types.RichText:c.sharedString?l.Types.SharedString:c.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(c){this.model={address:c.address,type:l.Types.Null}}get value(){return null}set value(c){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Number,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Date,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Hyperlink,text:h?h.text:void 0,hyperlink:h?h.hyperlink:void 0},h&&h.tooltip&&(this.model.tooltip=h.tooltip)}get value(){const c={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(c.tooltip=this.model.tooltip),c}set value(c){this.model={text:c.text,hyperlink:c.hyperlink},c.tooltip&&(this.model.tooltip=c.tooltip)}get text(){return this.model.text}set text(c){this.model.text=c}get hyperlink(){return this.model.hyperlink}set hyperlink(c){this.model.hyperlink=c}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(c,h){this.cell=c,this.model={address:c.address,type:l.Types.Formula,shareType:h?h.shareType:void 0,ref:h?h.ref:void 0,formula:h?h.formula:void 0,sharedFormula:h?h.sharedFormula:void 0,result:h?h.result:void 0}}_copyModel(c){const h={},g=p=>{const m=c[p];m&&(h[p]=m)};return g("formula"),g("result"),g("ref"),g("shareType"),g("sharedFormula"),h}get value(){return this._copyModel(this.model)}set value(c){this.model=this._copyModel(c)}validate(c){switch(f.getType(c)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(c){this.model.formula=c}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(c){this.model.result=c}get type(){return l.Types.Formula}get effectiveType(){const c=this.model.result;return c==null?u.ValueType.Null:c instanceof String||typeof c=="string"?u.ValueType.String:typeof c=="number"?u.ValueType.Number:c instanceof Date?u.ValueType.Date:c.text&&c.hyperlink?u.ValueType.Hyperlink:c.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(c){this.model.address=c}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:c}=this.cell,h=c.findCell(this.model.sharedFormula);this._translatedFormula=h&&o(h.formula,h.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Merge,master:h?h.address:void 0},this._master=h,h&&h.addMergeRef()}get value(){return this._master.value}set value(c){c instanceof l?(this._master&&this._master.releaseMergeRef(),c.addMergeRef(),this._master=c):this._master.value=c}isMergedTo(c){return c===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:JSON.stringify(h),rawValue:h}}get value(){return this.model.rawValue}set value(c){this.model.rawValue=c,this.model.value=JSON.stringify(c)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.SharedString,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}toString(){return this.model.value.richText.map(c=>c.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Boolean,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Error,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((c,h)=>(c[h.t]=h.f,c),[]),create(c,h,g){const p=this.types[c];if(!p)throw new Error("Could not create Value of type "+c);return new p(h,g)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,a){const d=e("../utils/under-dash"),i=e("./enums"),u=e("../utils/col-cache");class o{constructor(l,f,c){this._worksheet=l,this._number=f,c!==!1&&(this.defn=c)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:9,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((f,c)=>{this._worksheet.getCell(c+1,this.number).value=f})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&d.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}get headerCount(){return this.headers.length}eachCell(l,f){const c=this.number;f||(f=l,l=null),this._worksheet.eachRow(l,(h,g)=>{f(h.getCell(c),g)})}get values(){const l=[];return this.eachCell((f,c)=>{f&&f.type!==i.ValueType.Null&&(l[c]=f.value)}),l}set values(l){if(!l)return;const f=this.number;let c=0;l.hasOwnProperty("0")&&(c=1),l.forEach((h,g)=>{this._worksheet.getCell(g+c,f).value=h})}_applyStyle(l,f){return this.style[l]=f,this.eachCell(c=>{c[l]=f}),f}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){const f=[];let c=null;return l&&l.forEach((h,g)=>{h.isDefault?c&&(c=null):c&&h.equivalentTo(c)?c.max=g+1:(c={min:g+1,max:g+1,width:h.width!==void 0?h.width:9,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},f.push(c))}),f.length?f:void 0}static fromModel(l,f){const c=[];let h=1,g=0;for(f=(f=f||[]).sort(function(p,m){return p.min-m.min});g<f.length;){const p=f[g++];for(;h<p.min;)c.push(new o(l,h++));for(;h<=p.max;)c.push(new o(l,h++,p))}return c.length?c:null}}t.exports=o},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,a){t.exports=class{constructor(d){this.model=d||{}}add(d,i){return this.model[d]=i}find(d){return this.model[d]}remove(d){this.model[d]=void 0}}},{}],6:[function(e,t,a){const d=e("../utils/under-dash"),i=e("../utils/col-cache"),u=e("../utils/cell-matrix"),o=e("./range"),r=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(l){return this.matrixMap[l]||(this.matrixMap[l]=new u)}add(l,f){const c=i.decodeEx(l);this.addEx(c,f)}addEx(l,f){const c=this.getMatrix(f);if(l.top)for(let h=l.left;h<=l.right;h++)for(let g=l.top;g<=l.bottom;g++){const p={sheetName:l.sheetName,address:i.n2l(h)+g,row:g,col:h};c.addCellEx(p)}else c.addCellEx(l)}remove(l,f){const c=i.decodeEx(l);this.removeEx(c,f)}removeEx(l,f){this.getMatrix(f).removeCellEx(l)}removeAllNames(l){d.each(this.matrixMap,f=>{f.removeCellEx(l)})}forEach(l){d.each(this.matrixMap,(f,c)=>{f.forEach(h=>{l(c,h)})})}getNames(l){return this.getNamesEx(i.decodeEx(l))}getNamesEx(l){return d.map(this.matrixMap,(f,c)=>f.findCellEx(l)&&c).filter(Boolean)}_explore(l,f){f.mark=!1;const{sheetName:c}=f,h=new o(f.row,f.col,f.row,f.col,c);let g,p;function m(b,M){const S=l.findCellAt(c,b,f.col);return!(!S||!S.mark)&&(h[M]=b,S.mark=!1,!0)}for(p=f.row-1;m(p,"top");p--);for(p=f.row+1;m(p,"bottom");p++);function y(b,M){const S=[];for(p=h.top;p<=h.bottom;p++){const C=l.findCellAt(c,p,b);if(!C||!C.mark)return!1;S.push(C)}h[M]=b;for(let C=0;C<S.length;C++)S[C].mark=!1;return!0}for(g=f.col-1;y(g,"left");g--);for(g=f.col+1;y(g,"right");g++);return h}getRanges(l,f){return(f=f||this.matrixMap[l])?(f.forEach(c=>{c.mark=!0}),{name:l,ranges:f.map(c=>c.mark&&this._explore(f,c)).filter(Boolean).map(c=>c.$shortRange)}):{name:l,ranges:[]}}normaliseMatrix(l,f){l.forEachInSheet(f,(c,h,g)=>{c&&(c.row===h&&c.col===g||(c.row=h,c.col=g,c.address=i.n2l(g)+h))})}spliceRows(l,f,c,h){d.each(this.matrixMap,g=>{g.spliceRows(l,f,c,h),this.normaliseMatrix(g,l)})}spliceColumns(l,f,c,h){d.each(this.matrixMap,g=>{g.spliceColumns(l,f,c,h),this.normaliseMatrix(g,l)})}get model(){return d.map(this.matrixMap,(l,f)=>this.getRanges(f,l)).filter(l=>l.ranges.length)}set model(l){const f=this.matrixMap={};l.forEach(c=>{const h=f[c.name]=new u;c.ranges.forEach(g=>{r.test(g.split("!").pop()||"")&&h.addCell(g)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,a){t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,a){const d=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(u,o){this.worksheet=u,this.model=o}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(u){let{type:o,imageId:r,range:l,hyperlinks:f}=u;if(this.type=o,this.imageId=r,o==="image")if(typeof l=="string"){const c=d.decode(l);this.range={tl:new i(this.worksheet,{col:c.left,row:c.top},-1),br:new i(this.worksheet,{col:c.right,row:c.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,l.tl,0),br:l.br&&new i(this.worksheet,l.br,0),ext:l.ext,editAs:l.editAs,hyperlinks:f||l.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,a){const d=e("../utils/under-dash");class i{constructor(o){this.note=o}get model(){let o=null;switch(typeof this.note){case"string":o={type:"note",note:{texts:[{text:this.note}]}};break;default:o={type:"note",note:this.note}}return d.deepMerge({},i.DEFAULT_CONFIGS,o)}set model(o){const{note:r}=o,{texts:l}=r;l.length===1&&Object.keys(l[0]).length===1?this.note=l[0].text:this.note=r}static fromModel(o){const r=new i;return r.model=o,r}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(o,r,l,f,c){if(arguments.length<4){const h=d.decodeAddress(o),g=d.decodeAddress(r);this.model={top:Math.min(h.row,g.row),left:Math.min(h.col,g.col),bottom:Math.max(h.row,g.row),right:Math.max(h.col,g.col),sheetName:l},this.setTLBR(h.row,h.col,g.row,g.col,c)}else this.model={top:Math.min(o,l),left:Math.min(r,f),bottom:Math.max(o,l),right:Math.max(r,f),sheetName:c}}decode(o){switch(o.length){case 5:this.setTLBR(o[0],o[1],o[2],o[3],o[4]);break;case 4:this.setTLBR(o[0],o[1],o[2],o[3]);break;case 3:this.setTLBR(o[0],o[1],o[2]);break;case 2:this.setTLBR(o[0],o[1]);break;case 1:{const r=o[0];if(r instanceof i)this.model={top:r.model.top,left:r.model.left,bottom:r.model.bottom,right:r.model.right,sheetName:r.sheetName};else if(r instanceof Array)this.decode(r);else if(r.top&&r.left&&r.bottom&&r.right)this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName};else{const l=d.decodeEx(r);l.top?this.model={top:l.top,left:l.left,bottom:l.bottom,right:l.right,sheetName:l.sheetName}:this.model={top:l.row,left:l.col,bottom:l.row,right:l.col,sheetName:l.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+o.length)}}get top(){return this.model.top||1}set top(o){this.model.top=o}get left(){return this.model.left||1}set left(o){this.model.left=o}get bottom(){return this.model.bottom||1}set bottom(o){this.model.bottom=o}get right(){return this.model.right||1}set right(o){this.model.right=o}get sheetName(){return this.model.sheetName}set sheetName(o){this.model.sheetName=o}get _serialisedSheetName(){const{sheetName:o}=this.model;return o?/^[a-zA-Z0-9]*$/.test(o)?o+"!":`'${o}'!`:""}expand(o,r,l,f){(!this.model.top||o<this.top)&&(this.top=o),(!this.model.left||r<this.left)&&(this.left=r),(!this.model.bottom||l>this.bottom)&&(this.bottom=l),(!this.model.right||f>this.right)&&(this.right=f)}expandRow(o){if(o){const{dimensions:r,number:l}=o;r&&this.expand(l,r.min,l,r.max)}}expandToAddress(o){const r=d.decodeEx(o);this.expand(r.row,r.col,r.row,r.col)}get tl(){return d.n2l(this.left)+this.top}get $t$l(){return`$${d.n2l(this.left)}$${this.top}`}get br(){return d.n2l(this.right)+this.bottom}get $b$r(){return`$${d.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(o){return(!o.sheetName||!this.sheetName||o.sheetName===this.sheetName)&&!(o.bottom<this.top)&&!(o.top>this.bottom)&&!(o.right<this.left)&&!(o.left>this.right)}contains(o){const r=d.decodeEx(o);return this.containsEx(r)}containsEx(o){return(!o.sheetName||!this.sheetName||o.sheetName===this.sheetName)&&o.row>=this.top&&o.row<=this.bottom&&o.col>=this.left&&o.col<=this.right}forEachAddress(o){for(let r=this.left;r<=this.right;r++)for(let l=this.top;l<=this.bottom;l++)o(d.encodeAddress(l,r),l,r)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,a){const d=e("../utils/under-dash"),i=e("./enums"),u=e("../utils/col-cache"),o=e("./cell");t.exports=class{constructor(r,l){this._worksheet=r,this._number=l,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(r){return this._cells[r-1]}getCellEx(r){let l=this._cells[r.col-1];if(!l){const f=this._worksheet.getColumn(r.col);l=new o(this,f,r.address),this._cells[r.col-1]=l}return l}getCell(r){if(typeof r=="string"){const l=this._worksheet.getColumnKey(r);r=l?l.number:u.l2n(r)}return this._cells[r-1]||this.getCellEx({address:u.encodeAddress(this._number,r),row:this._number,col:r})}splice(r,l){const f=r+l;for(var c=arguments.length,h=new Array(c>2?c-2:0),g=2;g<c;g++)h[g-2]=arguments[g];const p=h.length-l,m=this._cells.length;let y,b,M;if(p<0)for(y=r+h.length;y<=m;y++)M=this._cells[y-1],b=this._cells[y-p-1],b?(M=this.getCell(y),M.value=b.value,M.style=b.style,M._comment=b._comment):M&&(M.value=null,M.style={},M._comment=void 0);else if(p>0)for(y=m;y>=f;y--)b=this._cells[y-1],b?(M=this.getCell(y+p),M.value=b.value,M.style=b.style,M._comment=b._comment):this._cells[y+p-1]=void 0;for(y=0;y<h.length;y++)M=this.getCell(r+y),M.value=h[y],M.style={},M._comment=void 0}eachCell(r,l){if(l||(l=r,r=null),r&&r.includeEmpty){const f=this._cells.length;for(let c=1;c<=f;c++)l(this.getCell(c),c)}else this._cells.forEach((f,c)=>{f&&f.type!==i.ValueType.Null&&l(f,c+1)})}addPageBreak(r,l){const f=this._worksheet,c=Math.max(0,r-1)||0,h=Math.max(0,l-1)||16838,g={id:this._number,max:h,man:1};c&&(g.min=c),f.rowBreaks.push(g)}get values(){const r=[];return this._cells.forEach(l=>{l&&l.type!==i.ValueType.Null&&(r[l.col]=l.value)}),r}set values(r){if(this._cells=[],r)if(r instanceof Array){let l=0;r.hasOwnProperty("0")&&(l=1),r.forEach((f,c)=>{f!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,c+l),row:this._number,col:c+l}).value=f)})}else this._worksheet.eachColumnKey((l,f)=>{r[f]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,l.number),row:this._number,col:l.number}).value=r[f])})}get hasValues(){return d.some(this._cells,r=>r&&r.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let r=0;return this.eachCell(()=>{r++}),r}get dimensions(){let r=0,l=0;return this._cells.forEach(f=>{f&&f.type!==i.ValueType.Null&&((!r||r>f.col)&&(r=f.col),l<f.col&&(l=f.col))}),r>0?{min:r,max:l}:null}_applyStyle(r,l){return this.style[r]=l,this._cells.forEach(f=>{f&&(f[r]=l)}),l}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const r=[];let l=0,f=0;return this._cells.forEach(c=>{if(c){const h=c.model;h&&((!l||l>c.col)&&(l=c.col),f<c.col&&(f=c.col),r.push(h))}}),this.height||r.length?{cells:r,number:this.number,min:l,max:f,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(r){if(r.number!==this._number)throw new Error("Invalid row number in model");let l;this._cells=[],r.cells.forEach(f=>{switch(f.type){case o.Types.Merge:break;default:{let c;if(f.address)c=u.decodeAddress(f.address);else if(l){const{row:h}=l,g=l.col+1;c={row:h,col:g,address:u.encodeAddress(h,g),$col$row:`$${u.n2l(g)}$${h}`}}l=c,this.getCellEx(c).model=f;break}}}),r.height?this.height=r.height:delete this.height,this.hidden=r.hidden,this.outlineLevel=r.outlineLevel||0,this.style=r.style&&JSON.parse(JSON.stringify(r.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(o,r,l){this.table=o,this.column=r,this.index=l}_set(o,r){this.table.cacheState(),this.column[o]=r}get name(){return this.column.name}set name(o){this._set("name",o)}get filterButton(){return this.column.filterButton}set filterButton(o){this.column.filterButton=o}get style(){return this.column.style}set style(o){this.column.style=o}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(o){this._set("totalsRowLabel",o)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(o){this._set("totalsRowFunction",o)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(o){this._set("totalsRowResult",o)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(o){this._set("totalsRowFormula",o)}}t.exports=class{constructor(u,o){this.worksheet=u,o&&(this.table=o,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case"custom":return u.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,o=(p,m,y)=>{p[m]===void 0&&(p[m]=y)};o(u,"headerRow",!0),o(u,"totalsRow",!1),o(u,"style",{}),o(u.style,"theme","TableStyleMedium2"),o(u.style,"showFirstColumn",!1),o(u.style,"showLastColumn",!1),o(u.style,"showRowStripes",!1),o(u.style,"showColumnStripes",!1);const r=(p,m)=>{if(!p)throw new Error(m)};r(u.ref,"Table must have ref"),r(u.columns,"Table must have column definitions"),r(u.rows,"Table must have row definitions"),u.tl=d.decodeAddress(u.ref);const{row:l,col:f}=u.tl;r(l>0,"Table must be on valid row"),r(f>0,"Table must be on valid col");const{width:c,filterHeight:h,tableHeight:g}=this;u.autoFilterRef=d.encode(l,f,l+h-1,f+c-1),u.tableRef=d.encode(l,f,l+g-1,f+c-1),u.columns.forEach((p,m)=>{r(p.name,`Column ${m} must have a name`),m===0?o(p,"totalsRowLabel","Total"):(o(p,"totalsRowFunction","none"),p.totalsRowFormula=this.getFormula(p))})}store(){const u=(h,g)=>{g&&Object.keys(g).forEach(p=>{h[p]=g[p]})},{worksheet:o,table:r}=this,{row:l,col:f}=r.tl;let c=0;if(r.headerRow){const h=o.getRow(l+c++);r.columns.forEach((g,p)=>{const{style:m,name:y}=g,b=h.getCell(f+p);b.value=y,u(b,m)})}if(r.rows.forEach(h=>{const g=o.getRow(l+c++);h.forEach((p,m)=>{const y=g.getCell(f+m);y.value=p,u(y,r.columns[m].style)})}),r.totalsRow){const h=o.getRow(l+c++);r.columns.forEach((g,p)=>{const m=h.getCell(f+p);if(p===0)m.value=g.totalsRowLabel;else{const y=this.getFormula(g);m.value=y?{formula:g.totalsRowFormula,result:g.totalsRowResult}:null}u(m,g.style)})}}load(u){const{table:o}=this,{row:r,col:l}=o.tl;let f=0;if(o.headerRow){const c=u.getRow(r+f++);o.columns.forEach((h,g)=>{c.getCell(l+g).value=h.name})}if(o.rows.forEach(c=>{const h=u.getRow(r+f++);c.forEach((g,p)=>{h.getCell(l+p).value=g})}),o.totalsRow){const c=u.getRow(r+f++);o.columns.forEach((h,g)=>{const p=c.getCell(l+g);g===0?p.value=h.totalsRowLabel:this.getFormula(h)&&(p.value={formula:h.totalsRowFormula,result:h.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=d.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let o=0;o<this._cache.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=0;l<this._cache.width;l++)r.getCell(u.col+l).value=null}else{for(let o=this.tableHeight;o<this._cache.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=0;l<this._cache.width;l++)r.getCell(u.col+l).value=null}for(let o=0;o<this.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=this.width;l<this._cache.width;l++)r.getCell(u.col+l).value=null}}this.store()}addRow(u,o){this.cacheState(),o===void 0?this.table.rows.push(u):this.table.rows.splice(o,0,u)}removeRows(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,o)}getColumn(u){const o=this.table.columns[u];return new i(this,o,u)}addColumn(u,o,r){this.cacheState(),r===void 0?(this.table.columns.push(u),this.table.rows.forEach((l,f)=>{l.push(o[f])})):(this.table.columns.splice(r,0,u),this.table.rows.forEach((l,f)=>{l.splice(r,0,o[f])}))}removeColumns(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,o),this.table.rows.forEach(r=>{r.splice(u,o)})}_assign(u,o,r){this.cacheState(),u[o]=r}get ref(){return this.table.ref}set ref(u){this._assign(this.table,"ref",u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,"headerRow",u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,"totalsRow",u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{"../utils/col-cache":19}],13:[function(e,t,a){const d=e("./worksheet"),i=e("./defined-names"),u=e("../xlsx/xlsx"),o=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new o(this)),this._csv}get nextId(){for(let r=1;r<this._worksheets.length;r++)if(!this._worksheets[r])return r;return this._worksheets.length||1}addWorksheet(r,l){const f=this.nextId;l&&(typeof l=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),l={properties:{tabColor:{argb:l}}}):(l.argb||l.theme||l.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),l={properties:{tabColor:l}}));const c=this._worksheets.reduce((p,m)=>(m&&m.orderNo)>p?m.orderNo:p,0),h=Object.assign({},l,{id:f,name:r,orderNo:c+1,workbook:this}),g=new d(h);return this._worksheets[f]=g,g}removeWorksheetEx(r){delete this._worksheets[r.id]}removeWorksheet(r){const l=this.getWorksheet(r);l&&l.destroy()}getWorksheet(r){return r===void 0?this._worksheets.find(Boolean):typeof r=="number"?this._worksheets[r]:typeof r=="string"?this._worksheets.find(l=>l&&l.name===r):void 0}get worksheets(){return this._worksheets.slice(1).sort((r,l)=>r.orderNo-l.orderNo).filter(Boolean)}eachSheet(r){this.worksheets.forEach(l=>{r(l,l.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(r){const l=this.media.length;return this.media.push(Object.assign({},r,{type:"image"})),l}getImage(r){return this.media[r]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(r=>r.model),sheets:this.worksheets.map(r=>r.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(r){this.creator=r.creator,this.lastModifiedBy=r.lastModifiedBy,this.lastPrinted=r.lastPrinted,this.created=r.created,this.modified=r.modified,this.company=r.company,this.manager=r.manager,this.title=r.title,this.subject=r.subject,this.keywords=r.keywords,this.category=r.category,this.description=r.description,this.language=r.language,this.revision=r.revision,this.contentStatus=r.contentStatus,this.properties=r.properties,this.calcProperties=r.calcProperties,this._worksheets=[],r.worksheets.forEach(l=>{const{id:f,name:c,state:h}=l,g=r.sheets&&r.sheets.findIndex(p=>p.id===f);(this._worksheets[f]=new d({id:f,name:c,orderNo:g,state:h,workbook:this})).model=l}),this._definedNames.model=r.definedNames,this.views=r.views,this._themes=r.themes,this.media=r.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,a){const d=e("../utils/under-dash"),i=e("../utils/col-cache"),u=e("./range"),o=e("./row"),r=e("./column"),l=e("./enums"),f=e("./image"),c=e("./table"),h=e("./data-validations"),g=e("../utils/encryptor"),{copyStyle:p}=e("../utils/copy-style");t.exports=class{constructor(m){m=m||{},this._workbook=m.workbook,this.id=m.id,this.orderNo=m.orderNo,this.name=m.name,this.state=m.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},m.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!m.pageSetup||!m.pageSetup.fitToWidth&&!m.pageSetup.fitToHeight||m.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},m.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},m.headerFooter),this.dataValidations=new h,this.views=m.views||[],this.autoFilter=m.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(m){if(m===void 0&&(m="sheet"+this.id),this._name!==m){if(typeof m!="string")throw new Error("The name has to be a string.");if(m==="")throw new Error("The name can't be empty.");if(m==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(m))throw new Error(`Worksheet name ${m} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(m))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+m);if(m&&m.length>31&&(console.warn(`Worksheet name ${m} exceeds 31 chars. This will be truncated`),m=m.substring(0,31)),this._workbook._worksheets.find(y=>y&&y.name.toLowerCase()===m.toLowerCase()))throw new Error("Worksheet name already exists: "+m);this._name=m}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const m=new u;return this._rows.forEach(y=>{if(y){const b=y.dimensions;b&&m.expand(y.number,b.min,y.number,b.max)}}),m}get columns(){return this._columns}set columns(m){this._headerRowCount=m.reduce((M,S)=>{const C=(S.header?1:S.headers&&S.headers.length)||0;return Math.max(M,C)},0);let y=1;const b=this._columns=[];m.forEach(M=>{const S=new r(this,y++,!1);b.push(S),S.defn=M})}getColumnKey(m){return this._keys[m]}setColumnKey(m,y){this._keys[m]=y}deleteColumnKey(m){delete this._keys[m]}eachColumnKey(m){d.each(this._keys,m)}getColumn(m){if(typeof m=="string"){const y=this._keys[m];if(y)return y;m=i.l2n(m)}if(this._columns||(this._columns=[]),m>this._columns.length){let y=this._columns.length+1;for(;y<=m;)this._columns.push(new r(this,y++))}return this._columns[m-1]}spliceColumns(m,y){const b=this._rows.length;for(var M=arguments.length,S=new Array(M>2?M-2:0),C=2;C<M;C++)S[C-2]=arguments[C];if(S.length>0)for(let z=0;z<b;z++){const B=[m,y];S.forEach(V=>{B.push(V[z]||null)});const X=this.getRow(z+1);X.splice.apply(X,B)}else this._rows.forEach(z=>{z&&z.splice(m,y)});const N=S.length-y,H=m+y,L=this._columns.length;if(N<0)for(let z=m+S.length;z<=L;z++)this.getColumn(z).defn=this.getColumn(z-N).defn;else if(N>0)for(let z=L;z>=H;z--)this.getColumn(z+N).defn=this.getColumn(z).defn;for(let z=m;z<m+S.length;z++)this.getColumn(z).defn=null;this.workbook.definedNames.spliceColumns(this.name,m,y,S.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let m=0;return this.eachRow(y=>{m=Math.max(m,y.cellCount)}),m}get actualColumnCount(){const m=[];let y=0;return this.eachRow(b=>{b.eachCell(M=>{let{col:S}=M;m[S]||(m[S]=!0,y++)})}),y}_commitRow(){}get _lastRowNumber(){const m=this._rows;let y=m.length;for(;y>0&&m[y-1]===void 0;)y--;return y}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(m){return this._rows[m-1]}findRows(m,y){return this._rows.slice(m-1,m-1+y)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let m=0;return this.eachRow(()=>{m++}),m}getRow(m){let y=this._rows[m-1];return y||(y=this._rows[m-1]=new o(this,m)),y}getRows(m,y){if(y<1)return;const b=[];for(let M=m;M<m+y;M++)b.push(this.getRow(M));return b}addRow(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=this._nextRow,M=this.getRow(b);return M.values=m,this._setStyleOption(b,y[0]==="i"?y:"n"),M}addRows(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=[];return m.forEach(M=>{b.push(this.addRow(M,y))}),b}insertRow(m,y){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(m,0,y),this._setStyleOption(m,b),this.getRow(m)}insertRows(m,y){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(m,0,...y),b!=="n")for(let M=0;M<y.length;M++)b[0]==="o"&&this.findRow(y.length+m+M)!==void 0?this._copyStyle(y.length+m+M,m+M,b[1]==="+"):b[0]==="i"&&this.findRow(m-1)!==void 0&&this._copyStyle(m-1,m+M,b[1]==="+");return this.getRows(m,y.length)}_setStyleOption(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";y[0]==="o"&&this.findRow(m+1)!==void 0?this._copyStyle(m+1,m,y[1]==="+"):y[0]==="i"&&this.findRow(m-1)!==void 0&&this._copyStyle(m-1,m,y[1]==="+")}_copyStyle(m,y){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const M=this.getRow(m),S=this.getRow(y);S.style=p(M.style),M.eachCell({includeEmpty:b},(C,N)=>{S.getCell(N).style=p(C.style)}),S.height=M.height}duplicateRow(m,y){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const M=this._rows[m-1],S=new Array(y).fill(M.values);this.spliceRows(m+1,b?0:y,...S);for(let C=0;C<y;C++){const N=this._rows[m+C];N.style=M.style,N.height=M.height,M.eachCell({includeEmpty:!0},(H,L)=>{N.getCell(L).style=H.style})}}spliceRows(m,y){const b=m+y;for(var M=arguments.length,S=new Array(M>2?M-2:0),C=2;C<M;C++)S[C-2]=arguments[C];const N=S.length,H=N-y,L=this._rows.length;let z,B;if(H<0)for(m===L&&(this._rows[L-1]=void 0),z=b;z<=L;z++)if(B=this._rows[z-1],B){const X=this.getRow(z+H);X.values=B.values,X.style=B.style,X.height=B.height,B.eachCell({includeEmpty:!0},(V,D)=>{X.getCell(D).style=V.style}),this._rows[z-1]=void 0}else this._rows[z+H-1]=void 0;else if(H>0)for(z=L;z>=b;z--)if(B=this._rows[z-1],B){const X=this.getRow(z+H);X.values=B.values,X.style=B.style,X.height=B.height,B.eachCell({includeEmpty:!0},(V,D)=>{if(X.getCell(D).style=V.style,V._value.constructor.name==="MergeValue"){const E=this.getRow(V._row._number+N).getCell(D),P=V._value._master,w=this.getRow(P._row._number+N).getCell(P._column._number);E.merge(w)}})}else this._rows[z+H-1]=void 0;for(z=0;z<N;z++){const X=this.getRow(m+z);X.style={},X.values=S[z]}this.workbook.definedNames.spliceRows(this.name,m,y,N)}eachRow(m,y){if(y||(y=m,m=void 0),m&&m.includeEmpty){const b=this._rows.length;for(let M=1;M<=b;M++)y(this.getRow(M),M)}else this._rows.forEach(b=>{b&&b.hasValues&&y(b,b.number)})}getSheetValues(){const m=[];return this._rows.forEach(y=>{y&&(m[y.number]=y.values)}),m}findCell(m,y){const b=i.getAddress(m,y),M=this._rows[b.row-1];return M?M.findCell(b.col):void 0}getCell(m,y){const b=i.getAddress(m,y);return this.getRow(b.row).getCellEx(b)}mergeCells(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);this._mergeCellsInternal(M)}mergeCellsWithoutStyle(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);this._mergeCellsInternal(M,!0)}_mergeCellsInternal(m,y){d.each(this._merges,M=>{if(M.intersects(m))throw new Error("Cannot merge already merged cells")});const b=this.getCell(m.top,m.left);for(let M=m.top;M<=m.bottom;M++)for(let S=m.left;S<=m.right;S++)(M>m.top||S>m.left)&&this.getCell(M,S).merge(b,y);this._merges[b.address]=m}_unMergeMaster(m){const y=this._merges[m.address];if(y){for(let b=y.top;b<=y.bottom;b++)for(let M=y.left;M<=y.right;M++)this.getCell(b,M).unmerge();delete this._merges[m.address]}}get hasMerges(){return d.some(this._merges,Boolean)}unMergeCells(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);for(let S=M.top;S<=M.bottom;S++)for(let C=M.left;C<=M.right;C++){const N=this.findCell(S,C);N&&(N.type===l.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(m,y,b){let M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const S=i.decode(m),{top:C,left:N,bottom:H,right:L}=S,z=L-N+1,B=i.encodeAddress(C,N),X=M==="shared";let V;V=typeof b=="function"?b:Array.isArray(b)?Array.isArray(b[0])?(E,P)=>b[E-C][P-N]:(E,P)=>b[(E-C)*z+(P-N)]:()=>{};let D=!0;for(let E=C;E<=H;E++)for(let P=N;P<=L;P++)D?(this.getCell(E,P).value={shareType:M,formula:y,ref:m,result:V(E,P)},D=!1):this.getCell(E,P).value=X?{sharedFormula:B,result:V(E,P)}:V(E,P)}addImage(m,y){const b={type:"image",imageId:m,range:y};this._media.push(new f(this,b))}getImages(){return this._media.filter(m=>m.type==="image")}addBackgroundImage(m){const y={type:"background",imageId:m};this._media.push(new f(this,y))}getBackgroundImageId(){const m=this._media.find(y=>y.type==="background");return m&&m.imageId}protect(m,y){return new Promise(b=>{this.sheetProtection={sheet:!0},y&&"spinCount"in y&&(y.spinCount=Number.isFinite(y.spinCount)?Math.round(Math.max(0,y.spinCount)):1e5),m&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=g.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=y&&"spinCount"in y?y.spinCount:1e5,this.sheetProtection.hashValue=g.convertPasswordToHash(m,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),y&&(this.sheetProtection=Object.assign(this.sheetProtection,y),!m&&"spinCount"in y&&delete this.sheetProtection.spinCount),b()})}unprotect(){this.sheetProtection=null}addTable(m){const y=new c(this,m);return this.tables[m.name]=y,y}getTable(m){return this.tables[m]}removeTable(m){delete this.tables[m]}getTables(){return Object.values(this.tables)}addConditionalFormatting(m){this.conditionalFormattings.push(m)}removeConditionalFormatting(m){typeof m=="number"?this.conditionalFormattings.splice(m,1):this.conditionalFormattings=m instanceof Function?this.conditionalFormattings.filter(m):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(m){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=m}get model(){const m={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(M=>M.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(M=>M.model),conditionalFormattings:this.conditionalFormattings};m.cols=r.toModel(this.columns);const y=m.rows=[],b=m.dimensions=new u;return this._rows.forEach(M=>{const S=M&&M.model;S&&(b.expand(S.number,S.min,S.number,S.max),y.push(S))}),m.merges=[],d.each(this._merges,M=>{m.merges.push(M.range)}),m}_parseRows(m){this._rows=[],m.rows.forEach(y=>{const b=new o(this,y.number);this._rows[b.number-1]=b,b.model=y})}_parseMergeCells(m){d.each(m.mergeCells,y=>{this.mergeCellsWithoutStyle(y)})}set model(m){this.name=m.name,this._columns=r.fromModel(this,m.cols),this._parseRows(m),this._parseMergeCells(m),this.dataValidations=new h(m.dataValidations),this.properties=m.properties,this.pageSetup=m.pageSetup,this.headerFooter=m.headerFooter,this.views=m.views,this.autoFilter=m.autoFilter,this._media=m.media.map(y=>new f(this,y)),this.sheetProtection=m.sheetProtection,this.tables=m.tables.reduce((y,b)=>{const M=new c;return M.model=b,y[b.name]=M,y},{}),this.conditionalFormattings=m.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,a){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const d={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(u=>{d[u]=i[u]}),t.exports=d},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,a){const d=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");a.bufferToString=function(i){return typeof i=="string"?i:d?d.decode(i):i.toString()}},{}],17:[function(e,t,a){const d=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");a.stringToBuffer=function(u){return typeof u!="string"?u:d?i.from(d.encode(u).buffer):i.from(u)}},{buffer:220}],18:[function(e,t,a){const d=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(i.decodeEx(u))}getCell(u){return this.findCellEx(i.decodeEx(u),!0)}findCell(u){return this.findCellEx(i.decodeEx(u),!1)}findCellAt(u,o,r){const l=this.sheets[u],f=l&&l[o];return f&&f[r]}addCellEx(u){if(u.top)for(let o=u.top;o<=u.bottom;o++)for(let r=u.left;r<=u.right;r++)this.getCellAt(u.sheetName,o,r);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,o){const r=this.findSheet(u,o),l=this.findSheetRow(r,u,o);return this.findRowCell(l,u,o)}getCellAt(u,o,r){const l=this.sheets[u]||(this.sheets[u]=[]),f=l[o]||(l[o]=[]);return f[r]||(f[r]={sheetName:u,address:i.n2l(r)+o,row:o,col:r})}removeCellEx(u){const o=this.findSheet(u);if(!o)return;const r=this.findSheetRow(o,u);r&&delete r[u.col]}forEachInSheet(u,o){const r=this.sheets[u];r&&r.forEach((l,f)=>{l&&l.forEach((c,h)=>{c&&o(c,f,h)})})}forEach(u){d.each(this.sheets,(o,r)=>{this.forEachInSheet(r,u)})}map(u){const o=[];return this.forEach(r=>{o.push(u(r))}),o}findSheet(u,o){const r=u.sheetName;return this.sheets[r]?this.sheets[r]:o?this.sheets[r]=[]:void 0}findSheetRow(u,o,r){const{row:l}=o;return u&&u[l]?u[l]:r?u[l]=[]:void 0}findRowCell(u,o,r){const{col:l}=o;return u&&u[l]?u[l]:r?u[l]=this.template?Object.assign(o,JSON.parse(JSON.stringify(this.template))):o:void 0}spliceRows(u,o,r,l){const f=this.sheets[u];if(f){const c=[];for(let h=0;h<l;h++)c.push([]);f.splice(o,r,...c)}}spliceColumns(u,o,r,l){const f=this.sheets[u];if(f){const c=[];for(let h=0;h<l;h++)c.push(null);d.each(f,h=>{h.splice(o,r,...c)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,a){const d=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:u=>u<=26?1:u<=676?2:3,_fill(u){let o,r,l,f,c,h=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;h<=26;)o=this._dictionary[h-1],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(h=27;h<=702;)r=h-27,l=r%26,f=Math.floor(r/26),o=this._dictionary[f]+this._dictionary[l],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(h=703;h<=16384;)r=h-703,l=r%26,f=Math.floor(r/26)%26,c=Math.floor(r/676),o=this._dictionary[c]+this._dictionary[f]+this._dictionary[l],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error("Out of bounds. Invalid column letter: "+u);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(u+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!d.test(u))throw new Error("Invalid Address: "+u);return!0},decodeAddress(u){const o=u.length<5&&this._hash[u];if(o)return o;let r=!1,l="",f=0,c=!1,h="",g=0;for(let m,y=0;y<u.length;y++)if(m=u.charCodeAt(y),!c&&m>=65&&m<=90)r=!0,l+=u[y],f=26*f+m-64;else if(m>=48&&m<=57)c=!0,h+=u[y],g=10*g+m-48;else if(c&&r&&m!==36)break;if(r){if(f>16384)throw new Error("Out of bounds. Invalid column letter: "+l)}else f=void 0;c||(g=void 0);const p={address:u=l+h,col:f,row:g,$col$row:`$${l}$${h}`};return f<=100&&g<=100&&(this._hash[u]=p,this._hash[p.$col$row]=p),p},getAddress(u,o){if(o){const r=this.n2l(o)+u;return this.decodeAddress(r)}return this.decodeAddress(u)},decode(u){const o=u.split(":");if(o.length===2){const r=this.decodeAddress(o[0]),l=this.decodeAddress(o[1]),f={top:Math.min(r.row,l.row),left:Math.min(r.col,l.col),bottom:Math.max(r.row,l.row),right:Math.max(r.col,l.col)};return f.tl=this.n2l(f.left)+f.top,f.br=this.n2l(f.right)+f.bottom,f.dimensions=`${f.tl}:${f.br}`,f}return this.decodeAddress(u)},decodeEx(u){const o=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=o[1]||o[2],l=o[3],f=l.split(":");if(f.length>1){let h=this.decodeAddress(f[0]),g=this.decodeAddress(f[1]);const p=Math.min(h.row,g.row),m=Math.min(h.col,g.col),y=Math.max(h.row,g.row),b=Math.max(h.col,g.col);return h=this.n2l(m)+p,g=this.n2l(b)+y,{top:p,left:m,bottom:y,right:b,sheetName:r,tl:{address:h,col:m,row:p,$col$row:`$${this.n2l(m)}$${p}`,sheetName:r},br:{address:g,col:b,row:y,$col$row:`$${this.n2l(b)}$${y}`,sheetName:r},dimensions:`${h}:${g}`}}if(l.startsWith("#"))return r?{sheetName:r,error:l}:{error:l};const c=this.decodeAddress(l);return r?{sheetName:r,...c}:c},encodeAddress:(u,o)=>i.n2l(o)+u,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,o){const[r,l,,f,c]=u,[h,g]=o;return h>=r&&h<=f&&g>=l&&g<=c}};t.exports=i},{}],20:[function(e,t,a){const d=(u,o)=>({...u,...o.reduce((r,l)=>(u[l]&&(r[l]={...u[l]}),r),{})}),i=function(u,o,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];u[r]&&(o[r]=d(u[r],l))};a.copyStyle=u=>{if(!u)return u;if(o=u,Object.keys(o).length===0)return{};var o;const r={...u};return i(u,r,"font",["color"]),i(u,r,"alignment"),i(u,r,"protection"),u.border&&(i(u,r,"border"),i(u.border,r.border,"top",["color"]),i(u.border,r.border,"left",["color"]),i(u.border,r.border,"bottom",["color"]),i(u.border,r.border,"right",["color"]),i(u.border,r.border,"diagonal",["color"])),u.fill&&(i(u,r,"fill",["fgColor","bgColor","center"]),u.fill.stops&&(r.fill.stops=u.fill.stops.map(l=>d(l,["color"])))),r}},{}],21:[function(e,t,a){(function(d){(function(){const i=e("crypto"),u={hash(o){const r=i.createHash(o);for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return r.update(d.concat(f)),r.digest()},convertPasswordToHash(o,r,l,f){if(r=r.toLowerCase(),i.getHashes().indexOf(r)<0)throw new Error(`Hash algorithm '${r}' not supported!`);const c=d.from(o,"utf16le");let h=this.hash(r,d.from(l,"base64"),c);for(let g=0;g<f;g++){const p=d.alloc(4);p.writeUInt32LE(g,0),h=this.hash(r,h,p)}return h.toString("base64")},randomBytes:o=>i.randomBytes(o)};t.exports=u}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,a){const{SaxesParser:d}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:u}=e("./browser-buffer-decode");t.exports=async function*(o){o.pipe&&!o[Symbol.asyncIterator]&&(o=o.pipe(new i));const r=new d;let l;r.on("error",c=>{l=c});let f=[];r.on("opentag",c=>f.push({eventType:"opentag",value:c})),r.on("text",c=>f.push({eventType:"text",value:c})),r.on("closetag",c=>f.push({eventType:"closetag",value:c}));for await(const c of o){if(r.write(u(c)),l)throw l;yield f,f=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,a){const d=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(o,r,l){const f=d.decode(r),c=d.decode(l);return o.replace(i,(h,g,p,m,y)=>{if(y)return h;const b=u.exec(m);if(b){const M=b[1],S=b[2].toUpperCase(),C=b[3],N=b[4];if(S.length>3||S.length===3&&S>"XFD")return h;let H=d.l2n(S),L=parseInt(N,10);return M||(H+=c.col-f.col),C||(L+=c.row-f.row),(g||"")+(M||"")+d.n2l(H)+(C||"")+L}return h})}}},{"./col-cache":19}],24:[function(e,t,a){(function(d,i){(function(){const u=e("readable-stream"),o=e("./utils"),r=e("./string-buf");class l{constructor(m,y){this._data=m,this._encoding=y}get length(){return this.toBuffer().length}copy(m,y,b,M){return this.toBuffer().copy(m,y,b,M)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class f{constructor(m){this._data=m}get length(){return this._data.length}copy(m,y,b,M){return this._data._buf.copy(m,y,b,M)}toBuffer(){return this._data.toBuffer()}}class c{constructor(m){this._data=m}get length(){return this._data.length}copy(m,y,b,M){this._data.copy(m,y,b,M)}toBuffer(){return this._data}}class h{constructor(m){this.size=m,this.buffer=i.alloc(m),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const m=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(m,0,this.iRead,this.iWrite),m}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(m){let y;return m===0?null:m===void 0||m>=this.length?(y=this.toBuffer(),this.iRead=this.iWrite,y):(y=i.alloc(m),this.buffer.copy(y,0,this.iRead,m),this.iRead+=m,y)}write(m,y,b){const M=Math.min(b,this.size-this.iWrite);return m.copy(this.buffer,this.iWrite,y,y+M),this.iWrite+=M,M}}const g=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};o.inherits(g,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(p=>p.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const m=this.buffers[this.buffers.length-1];if(!m.full)return m}const p=new h(this.bufSize);return this.buffers.push(p),p},async _pipe(p){await Promise.all(this.pipes.map(function(m){return new Promise(y=>{m.write(p.toBuffer(),()=>{y()})})}))},_writeToBuffers(p){let m=0;const y=p.length;for(;m<y;)m+=this._getWritableBuffer().write(p,m,y-m)},async write(p,m,y){let b;if(m instanceof Function&&(y=m,m="utf8"),y=y||o.nop,p instanceof r)b=new f(p);else if(p instanceof i)b=new c(p);else{if(!(typeof p=="string"||p instanceof String||p instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");b=new l(p,m)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(b);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(b),d.nextTick(y)):(await this._pipe(b),y());else this.paused||this.emit("data",b.toBuffer()),this._writeToBuffers(b),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(p,m,y){const b=M=>{M?y(M):(this._flush(),this.pipes.forEach(S=>{S.end()}),this.emit("finish"))};p?this.write(p,m,b):b()},read(p){let m;if(p){for(m=[];p&&this.buffers.length&&!this.buffers[0].eod;){const y=this.buffers[0],b=y.read(p);p-=b.length,m.push(b),y.eod&&y.full&&this.buffers.shift()}return i.concat(m)}return m=this.buffers.map(y=>y.toBuffer()).filter(Boolean),this.buffers=[],i.concat(m)},setEncoding(p){this.encoding=p},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe(p){this.pipes=this.pipes.filter(m=>m!==p)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=g}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,a){(function(d){(function(){t.exports=class{constructor(i){this._buf=d.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=d.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let u=2*this._buf.length;for(;u<i;)u*=2;const o=d.alloc(u);this._buf.copy(o,0),this._buf=o}addText(i){this._buffer=void 0;let u=this._inPos+this._buf.write(i,this._inPos,this._encoding);for(;u>=this._buf.length-4;)this._grow(this._inPos+i.length),u=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=u}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,a){const{toString:d}=Object.prototype,i=/["&<>]/,u={each:function(o,r){o&&(Array.isArray(o)?o.forEach(r):Object.keys(o).forEach(l=>{r(o[l],l)}))},some:function(o,r){return!!o&&(Array.isArray(o)?o.some(r):Object.keys(o).some(l=>r(o[l],l)))},every:function(o,r){return!o||(Array.isArray(o)?o.every(r):Object.keys(o).every(l=>r(o[l],l)))},map:function(o,r){return o?Array.isArray(o)?o.map(r):Object.keys(o).map(l=>r(o[l],l)):[]},keyBy:(o,r)=>o.reduce((l,f)=>(l[f[r]]=f,l),{}),isEqual:function(o,r){const l=typeof o,f=typeof r,c=Array.isArray(o),h=Array.isArray(r);let g;if(l!==f)return!1;switch(typeof o){case"object":if(c||h)return!(!c||!h)&&o.length===r.length&&o.every((p,m)=>{const y=r[m];return u.isEqual(p,y)});if(o===null||r===null)return o===r;if(g=Object.keys(o),Object.keys(r).length!==g.length)return!1;for(const p of g)if(!r.hasOwnProperty(p))return!1;return u.every(o,(p,m)=>{const y=r[m];return u.isEqual(p,y)});default:return o===r}},escapeHtml(o){const r=i.exec(o);if(!r)return o;let l="",f="",c=0,h=r.index;for(;h<o.length;h++){switch(o.charAt(h)){case'"':f="&quot;";break;case"&":f="&amp;";break;case"'":f="&apos;";break;case"<":f="&lt;";break;case">":f="&gt;";break;default:continue}c!==h&&(l+=o.substring(c,h)),c=h+1,l+=f}return c!==h?l+o.substring(c,h):l},strcmp:(o,r)=>o<r?-1:o>r?1:0,isUndefined:o=>d.call(o)==="[object Undefined]",isObject:o=>d.call(o)==="[object Object]",deepMerge(){const o=arguments[0]||{},{length:r}=arguments;let l,f,c;function h(g,p){l=o[p],c=Array.isArray(g),u.isObject(g)||c?(c?(c=!1,f=l&&Array.isArray(l)?l:[]):f=l&&u.isObject(l)?l:{},o[p]=u.deepMerge(f,g)):u.isUndefined(g)||(o[p]=g)}for(let g=0;g<r;g++)u.each(arguments[g],h);return o}};t.exports=u},{}],27:[function(e,t,a){(function(d,i){(function(){const u=e("fs"),o=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,r={nop(){},promiseImmediate:l=>new Promise(f=>{d.setImmediate?i(()=>{f(l)}):setTimeout(()=>{f(l)},1)}),inherits:function(l,f,c,h){l.super_=f,h||(h=c,c=null),c&&Object.keys(c).forEach(p=>{Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(c,p))});const g={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};h&&Object.keys(h).forEach(p=>{g[p]=Object.getOwnPropertyDescriptor(h,p)}),l.prototype=Object.create(f.prototype,g)},dateToExcel:(l,f)=>25569+l.getTime()/864e5-(f?1462:0),excelToDate(l,f){const c=Math.round(24*(l-25569+(f?1462:0))*3600*1e3);return new Date(c)},parsePath(l){const f=l.lastIndexOf("/");return{path:l.substring(0,f),name:l.substring(f+1)}},getRelsPath(l){const f=r.parsePath(l);return`${f.path}/_rels/${f.name}.rels`},xmlEncode(l){const f=o.exec(l);if(!f)return l;let c="",h="",g=0,p=f.index;for(;p<l.length;p++){const m=l.charCodeAt(p);switch(m){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&apos;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;case 127:h="";break;default:if(m<=31&&(m<=8||m>=11&&m!==13)){h="";break}continue}g!==p&&(c+=l.substring(g,p)),g=p+1,h&&(c+=h)}return g!==p?c+l.substring(g,p):c},xmlDecode:l=>l.replace(/&([a-z]*);/g,f=>{switch(f){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return f}}),validInt(l){const f=parseInt(l,10);return Number.isNaN(f)?0:f},isDateFmt(l){return l?(l=(l=l.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:l=>new Promise(f=>{u.access(l,u.constants.F_OK,c=>{f(!c)})})},toIsoDateString:l=>l.toIsoString().subsstr(0,10),parseBoolean:l=>l===!0||l==="true"||l===1||l==="1"};t.exports=r}).call(this)}).call(this,typeof jt<"u"?jt:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,a){const d=e("./under-dash"),i=e("./utils");function u(l,f,c){l.push(` ${f}="${i.xmlEncode(c.toString())}"`)}function o(l,f){if(f){const c=[];d.each(f,(h,g)=>{h!==void 0&&u(c,g,h)}),l.push(c.join(""))}}class r{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(f){const c=this._xml;c.push("<?xml"),o(c,f),c.push(`?>
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dd=12,v5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function cn(n){var s=n?typeof n=="string"||n instanceof String?p4(n):xe(n):new Date;return ri(s)?s:null}function y5e(n,s,e,t,a){var d=null,i=oi(e)||oi(ji()),u=!0;return Array.isArray(s)?(s.forEach(function(o){var r=Yo(n,o,new Date,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});t&&(u=ri(r,a)&&n===gn(r,o,e)),ri(r,a)&&u&&(d=r)}),d):(d=Yo(n,s,new Date,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),t?u=ri(d)&&n===gn(d,s,e):ri(d)||(s=s.match(v5e).map(function(o){var r=o[0];if(r==="p"||r==="P"){var l=pd.longFormatters[r];return i?l(o,i.formatLong):r}return o}).join(""),n.length>0&&(d=Yo(n,s.slice(0,n.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),ri(d)||(d=new Date(n))),ri(d)&&u?d:null)}function ri(n,s){return s=s||new Date("1/1/1000"),vr(n)&&!Ya(n,s)}function gn(n,s,e){if(e==="en")return pd.format(n,s,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var t=oi(e);return e&&!t&&console.warn('A locale object was not found for the provided string ["'.concat(e,'"].')),!t&&ji()&&oi(ji())&&(t=oi(ji())),pd.format(n,s,{locale:t||null,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Cr(n,s){var e=s.dateFormat,t=s.locale;return n&&gn(n,Array.isArray(e)?e[0]:e,t)||""}function w5e(n,s,e){if(!n)return"";var t=Cr(n,e),a=s?Cr(s,e):"";return"".concat(t," - ").concat(a)}function _5e(n,s){if(!(n!=null&&n.length))return"";var e=Cr(n[0],s);if(n.length===1)return e;if(n.length===2){var t=Cr(n[1],s);return"".concat(e,", ").concat(t)}var a=n.length-1;return"".concat(e," (+").concat(a,")")}function B3(n,s){var e=s.hour,t=e===void 0?0:e,a=s.minute,d=a===void 0?0:a,i=s.second,u=i===void 0?0:i;return Uo(Go(Ko(n,u),d),t)}function x5e(n,s){return ji()&&oi(ji()),vc(n)}function M5e(n,s){return gn(n,"ddd",s)}function k5e(n){return Dr(n)}function ai(n,s,e){var t=oi(s||ji());return On(n,{locale:t,weekStartsOn:e})}function ii(n){return Ji(n)}function Td(n){return eo(n)}function z6(n){return Va(n)}function H6(){return Dr(cn())}function P5e(n){return mf(n)}function ca(n,s){return n&&s?kf(n,s):!n&&!s}function _r(n,s){return n&&s?_f(n,s):!n&&!s}function lh(n,s){return n&&s?xf(n,s):!n&&!s}function un(n,s){return n&&s?Zi(n,s):!n&&!s}function Oi(n,s){return n&&s?e4(n,s):!n&&!s}function Cd(n,s,e){var t,a=Dr(s),d=xi(e);try{t=ao(n,{start:a,end:d})}catch{t=!1}return t}function ji(){var n=typeof window<"u"?window:globalThis;return n.__localeId__}function oi(n){if(typeof n=="string"){var s=typeof window<"u"?window:globalThis;return s.__localeData__?s.__localeData__[n]:null}else return n}function $5e(n,s,e){return s(gn(n,"EEEE",e))}function S5e(n,s){return gn(n,"EEEEEE",s)}function D5e(n,s){return gn(n,"EEE",s)}function V3(n,s){return gn(Yn(cn(),n),"LLLL",s)}function B6(n,s){return gn(Yn(cn(),n),"LLL",s)}function T5e(n,s){return gn(Pi(cn(),n),"QQQ",s)}function dh(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.excludeDateIntervals,i=s.includeDates,u=s.includeDateIntervals,o=s.filterDate;return ph(n,{minDate:e,maxDate:t})||a&&a.some(function(r){return un(n,r.date?r.date:r)})||d&&d.some(function(r){var l=r.start,f=r.end;return ao(n,{start:l,end:f})})||i&&!i.some(function(r){return un(n,r)})||u&&!u.some(function(r){var l=r.start,f=r.end;return ao(n,{start:l,end:f})})||o&&!o(cn(n))||!1}function Y3(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.excludeDates,t=s.excludeDateIntervals;return t&&t.length>0?t.some(function(a){var d=a.start,i=a.end;return ao(n,{start:d,end:i})}):e&&e.some(function(a){return un(n,a.date?a.date:a)})||!1}function ch(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate;return ph(n,{minDate:Ji(e),maxDate:mc(t)})||a&&a.some(function(u){return _r(n,u)})||d&&!d.some(function(u){return _r(n,u)})||i&&!i(cn(n))||!1}function hh(n,s,e,t){var a=Ut(n),d=Vn(n),i=Ut(s),u=Vn(s),o=Ut(t);if(a===i&&a===o)return d<=e&&e<=u;if(a<i)return o===a&&d<=e||o===i&&u>=e||o<i&&o>a}function X3(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate;return ph(n,{minDate:e,maxDate:t})||a&&a.some(function(u){return lh(n,u)})||d&&!d.some(function(u){return lh(n,u)})||i&&!i(cn(n))||!1}function fh(n,s,e){if(!vr(s)||!vr(e))return!1;var t=Ut(s),a=Ut(e);return t<=n&&a>=n}function V6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate,a=s.excludeDates,d=s.includeDates,i=s.filterDate,u=new Date(n,0,1);return ph(u,{minDate:eo(e),maxDate:bc(t)})||a&&a.some(function(o){return ca(u,o)})||d&&!d.some(function(o){return ca(u,o)})||i&&!i(cn(u))||!1}function mh(n,s,e,t){var a=Ut(n),d=za(n),i=Ut(s),u=za(s),o=Ut(t);if(a===i&&a===o)return d<=e&&e<=u;if(a<i)return o===a&&d<=e||o===i&&u>=e||o<i&&o>a}function ph(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.maxDate;return e&&lr(n,e)<0||t&&lr(n,t)>0}function Y6(n,s){return s.some(function(e){return zr(e)===zr(n)&&Hr(e)===Hr(n)&&aa(e)===aa(n)})}function X6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.excludeTimes,t=s.includeTimes,a=s.filterTime;return e&&Y6(n,e)||t&&!Y6(n,t)||a&&!a(n)||!1}function q6(n,s){var e=s.minTime,t=s.maxTime;if(!e||!t)throw new Error("Both minTime and maxTime props required");var a=cn();a=Uo(a,zr(n)),a=Go(a,Hr(n)),a=Ko(a,aa(n));var d=cn();d=Uo(d,zr(e)),d=Go(d,Hr(e)),d=Ko(d,aa(e));var i=cn();i=Uo(i,zr(t)),i=Go(i,Hr(t)),i=Ko(i,aa(t));var u;try{u=!ao(a,{start:d,end:i})}catch{u=!1}return u}function U6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=Ua(n,1);return e&&Ra(e,a)>0||t&&t.every(function(d){return Ra(d,a)>0})||!1}function G6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=br(n,1);return e&&Ra(a,e)>0||t&&t.every(function(d){return Ra(a,d)>0})||!1}function C5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=eo(n),d=$f(a,1);return e&&Ha(e,d)>0||t&&t.every(function(i){return Ha(i,d)>0})||!1}function E5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=bc(n),d=Bo(a,1);return e&&Ha(d,e)>0||t&&t.every(function(i){return Ha(d,i)>0})||!1}function K6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.includeDates,a=$i(n,1);return e&&ya(e,a)>0||t&&t.every(function(d){return ya(d,a)>0})||!1}function F5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.minDate,t=s.yearItemNumber,a=t===void 0?Dd:t,d=Td($i(n,a)),i=si(d,a),u=i.endPeriod,o=e&&Ut(e);return o&&o>u||!1}function Q6(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.includeDates,a=Jr(n,1);return e&&ya(a,e)>0||t&&t.every(function(d){return ya(a,d)>0})||!1}function O5e(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=s.maxDate,t=s.yearItemNumber,a=t===void 0?Dd:t,d=Jr(n,a),i=si(d,a),u=i.startPeriod,o=e&&Ut(e);return o&&o<u||!1}function Z6(n){var s=n.minDate,e=n.includeDates;if(e&&s){var t=e.filter(function(a){return lr(a,s)>=0});return lc(t)}else return e?lc(e):s}function J6(n){var s=n.maxDate,e=n.includeDates;if(e&&s){var t=e.filter(function(a){return lr(a,s)<=0});return uc(t)}else return e?uc(e):s}function eP(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",e=new Map,t=0,a=n.length;t<a;t++){var d=n[t];if(Aa(d)){var i=gn(d,"MM.dd.yyyy"),u=e.get(i)||[];u.includes(s)||(u.push(s),e.set(i,u))}else if(R3(d)==="object"){var o=Object.keys(d),r=o[0],l=d[o[0]];if(typeof r=="string"&&l.constructor===Array)for(var f=0,c=l.length;f<c;f++){var h=gn(l[f],"MM.dd.yyyy"),g=e.get(h)||[];g.includes(r)||(g.push(r),e.set(h,g))}}}return e}function j5e(n,s){return n.length!==s.length?!1:n.every(function(e,t){return e===s[t]})}function W5e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",e=new Map;return n.forEach(function(t){var a=t.date,d=t.holidayName;if(Aa(a)){var i=gn(a,"MM.dd.yyyy"),u=e.get(i)||{};if(!("className"in u&&u.className===s&&j5e(u.holidayNames,[d]))){u.className=s;var o=u.holidayNames;u.holidayNames=o?[].concat(ni(o),[d]):[d],e.set(i,u)}}}),e}function L5e(n,s,e,t,a){for(var d=a.length,i=[],u=0;u<d;u++){var o=n;o=sc(o,zr(a[u])),o=Qi(o,Hr(a[u])),o=cf(o,aa(a[u]));var r=Qi(n,(e+1)*t);wa(o,s)&&Ya(o,r)&&i.push(a[u])}return i}function tP(n){return n<10?"0".concat(n):"".concat(n)}function si(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dd,e=Math.ceil(Ut(n)/s)*s,t=e-(s-1);return{startPeriod:t,endPeriod:e}}function N5e(n){var s=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+e-+s)/36e5)}function nP(n){var s=n.getSeconds(),e=n.getMilliseconds();return xe(n.getTime()-s*1e3-e)}function I5e(n,s){return nP(n).getTime()===nP(s).getTime()}function rP(n){if(!Aa(n))throw new Error("Invalid date");var s=new Date(n);return s.setHours(0,0,0,0),s}function aP(n,s){if(!Aa(n)||!Aa(s))throw new Error("Invalid date received");var e=rP(n),t=rP(s);return Ya(e,t)}function iP(n){var s=" ";return n.key===s}function A5e(n,s,e,t){for(var a=[],d=0;d<2*s+1;d++){var i=n+s-d,u=!0;e&&(u=Ut(e)<=i),t&&u&&(u=Ut(t)>=i),u&&a.push(i)}return a}var R5e=function(n){function s(e){var t;Wn(this,s),t=jn(this,s,[e]),ue(t,"renderOptions",function(){var u=t.props.year,o=t.state.yearsList.map(function(f){return le.createElement("div",{className:u===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:t.onChange.bind(t,f),"aria-selected":u===f?"true":void 0},u===f?le.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),r=t.props.minDate?Ut(t.props.minDate):null,l=t.props.maxDate?Ut(t.props.maxDate):null;return(!l||!t.state.yearsList.find(function(f){return f===l}))&&o.unshift(le.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:t.incrementYears},le.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!r||!t.state.yearsList.find(function(f){return f===r}))&&o.push(le.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:t.decrementYears},le.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),o}),ue(t,"onChange",function(u){t.props.onChange(u)}),ue(t,"handleClickOutside",function(){t.props.onCancel()}),ue(t,"shiftYears",function(u){var o=t.state.yearsList.map(function(r){return r+u});t.setState({yearsList:o})}),ue(t,"incrementYears",function(){return t.shiftYears(1)}),ue(t,"decrementYears",function(){return t.shiftYears(-1)});var a=e.yearDropdownItemNumber,d=e.scrollableYearDropdown,i=a||(d?10:5);return t.state={yearsList:A5e(t.props.year,i,t.props.minDate,t.props.maxDate)},t.dropdownRef=le.createRef(),t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){var t=this.dropdownRef.current;if(t){var a=t.children?Array.from(t.children):null,d=a?a.find(function(i){return i.ariaSelected}):null;t.scrollTop=d?d.offsetTop+(d.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}}},{key:"render",value:function(){var t=An({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return le.createElement("div",{className:t,ref:this.dropdownRef},this.renderOptions())}}])}(le.Component),z5e=Jc(R5e),H5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(){for(var i=e.props.minDate?Ut(e.props.minDate):1900,u=e.props.maxDate?Ut(e.props.maxDate):2100,o=[],r=i;r<=u;r++)o.push(le.createElement("option",{key:r,value:r},r));return o}),ue(e,"onSelectChange",function(i){e.onChange(i.target.value)}),ue(e,"renderSelectMode",function(){return le.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),ue(e,"renderReadView",function(i){return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return e.toggleDropdown(o)}},le.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))}),ue(e,"renderDropdown",function(){return le.createElement(z5e,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),ue(e,"renderScrollMode",function(){var i=e.state.dropdownVisible,u=[e.renderReadView(!i)];return i&&u.unshift(e.renderDropdown()),u}),ue(e,"onChange",function(i){e.toggleDropdown(),i!==e.props.year&&e.props.onChange(i)}),ue(e,"toggleDropdown",function(i){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,i)})}),ue(e,"handleYearChange",function(i,u){e.onSelect(i,u),e.setOpen()}),ue(e,"onSelect",function(i,u){e.props.onSelect&&e.props.onSelect(i,u)}),ue(e,"setOpen",function(){e.props.setOpen&&e.props.setOpen(!0)}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return le.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)}}])}(le.Component),B5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"isSelectedMonth",function(i){return e.props.month===i}),ue(e,"renderOptions",function(){return e.props.monthNames.map(function(i,u){return le.createElement("div",{className:e.isSelectedMonth(u)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:i,onClick:e.onChange.bind(e,u),"aria-selected":e.isSelectedMonth(u)?"true":void 0},e.isSelectedMonth(u)?le.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",i)})}),ue(e,"onChange",function(i){return e.props.onChange(i)}),ue(e,"handleClickOutside",function(){return e.props.onCancel()}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){return le.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}])}(le.Component),V5e=Jc(B5e),Y5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(i){return i.map(function(u,o){return le.createElement("option",{key:o,value:o},u)})}),ue(e,"renderSelectMode",function(i){return le.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(o){return e.onChange(o.target.value)}},e.renderSelectOptions(i))}),ue(e,"renderReadView",function(i,u){return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},le.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},u[e.props.month]))}),ue(e,"renderDropdown",function(i){return le.createElement(V5e,{key:"dropdown",month:e.props.month,monthNames:i,onChange:e.onChange,onCancel:e.toggleDropdown})}),ue(e,"renderScrollMode",function(i){var u=e.state.dropdownVisible,o=[e.renderReadView(!u,i)];return u&&o.unshift(e.renderDropdown(i)),o}),ue(e,"onChange",function(i){e.toggleDropdown(),i!==e.props.month&&e.props.onChange(i)}),ue(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this,a=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return B6(i,t.props.locale)}:function(i){return V3(i,t.props.locale)}),d;switch(this.props.dropdownMode){case"scroll":d=this.renderScrollMode(a);break;case"select":d=this.renderSelectMode(a);break}return le.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},d)}}])}(le.Component);function X5e(n,s){for(var e=[],t=ii(n),a=ii(s);!wa(t,a);)e.push(cn(t)),t=br(t,1);return e}var q5e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"renderOptions",function(){return t.state.monthYearsList.map(function(a){var d=kc(a),i=ca(t.props.date,a)&&_r(t.props.date,a);return le.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:d,onClick:t.onChange.bind(t,d),"aria-selected":i?"true":void 0},i?le.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",gn(a,t.props.dateFormat,t.props.locale))})}),ue(t,"onChange",function(a){return t.props.onChange(a)}),ue(t,"handleClickOutside",function(){t.props.onCancel()}),t.state={monthYearsList:X5e(t.props.minDate,t.props.maxDate)},t}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=An({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return le.createElement("div",{className:t},this.renderOptions())}}])}(le.Component),U5e=Jc(q5e),G5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{dropdownVisible:!1}),ue(e,"renderSelectOptions",function(){for(var i=ii(e.props.minDate),u=ii(e.props.maxDate),o=[];!wa(i,u);){var r=kc(i);o.push(le.createElement("option",{key:r,value:r},gn(i,e.props.dateFormat,e.props.locale))),i=br(i,1)}return o}),ue(e,"onSelectChange",function(i){e.onChange(i.target.value)}),ue(e,"renderSelectMode",function(){return le.createElement("select",{value:kc(ii(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),ue(e,"renderReadView",function(i){var u=gn(e.props.date,e.props.dateFormat,e.props.locale);return le.createElement("div",{key:"read",style:{visibility:i?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(r){return e.toggleDropdown(r)}},le.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),le.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},u))}),ue(e,"renderDropdown",function(){return le.createElement(U5e,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})}),ue(e,"renderScrollMode",function(){var i=e.state.dropdownVisible,u=[e.renderReadView(!i)];return i&&u.unshift(e.renderDropdown()),u}),ue(e,"onChange",function(i){e.toggleDropdown();var u=cn(parseInt(i));ca(e.props.date,u)&&_r(e.props.date,u)||e.props.onChange(u)}),ue(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return le.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)}}])}(le.Component),K5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"dayEl",le.createRef()),ue(e,"handleClick",function(i){!e.isDisabled()&&e.props.onClick&&e.props.onClick(i)}),ue(e,"handleMouseEnter",function(i){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(i)}),ue(e,"handleOnKeyDown",function(i){var u=i.key;u===" "&&(i.preventDefault(),i.key="Enter"),e.props.handleOnKeyDown(i)}),ue(e,"isSameDay",function(i){return un(e.props.day,i)}),ue(e,"isKeyboardSelected",function(){var i;if(e.props.disabledKeyboardNavigation)return!1;var u=e.props.selectsMultiple?(i=e.props.selectedDates)===null||i===void 0?void 0:i.some(function(o){return e.isSameDayOrWeek(o)}):e.isSameDayOrWeek(e.props.selected);return!u&&e.isSameDayOrWeek(e.props.preSelection)}),ue(e,"isDisabled",function(){return dh(e.props.day,e.props)}),ue(e,"isExcluded",function(){return Y3(e.props.day,e.props)}),ue(e,"isStartOfWeek",function(){return un(e.props.day,ai(e.props.day,e.props.locale,e.props.calendarStartDay))}),ue(e,"isSameWeek",function(i){return e.props.showWeekPicker&&un(i,ai(e.props.day,e.props.locale,e.props.calendarStartDay))}),ue(e,"isSameDayOrWeek",function(i){return e.isSameDay(i)||e.isSameWeek(i)}),ue(e,"getHighLightedClass",function(){var i=e.props,u=i.day,o=i.highlightDates;if(!o)return!1;var r=gn(u,"MM.dd.yyyy");return o.get(r)}),ue(e,"getHolidaysClass",function(){var i=e.props,u=i.day,o=i.holidays;if(!o)return!1;var r=gn(u,"MM.dd.yyyy");if(o.has(r))return[o.get(r).className]}),ue(e,"isInRange",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:Cd(u,o,r)}),ue(e,"isInSelectingRange",function(){var i,u=e.props,o=u.day,r=u.selectsStart,l=u.selectsEnd,f=u.selectsRange,c=u.selectsDisabledDaysInRange,h=u.startDate,g=u.endDate,p=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return!(r||l||f)||!p||!c&&e.isDisabled()?!1:r&&g&&(Ya(p,g)||Oi(p,g))?Cd(o,p,g):l&&h&&(wa(p,h)||Oi(p,h))||f&&h&&!g&&(wa(p,h)||Oi(p,h))?Cd(o,h,p):!1}),ue(e,"isSelectingRangeStart",function(){var i;if(!e.isInSelectingRange())return!1;var u=e.props,o=u.day,r=u.startDate,l=u.selectsStart,f=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return l?un(o,f):un(o,r)}),ue(e,"isSelectingRangeEnd",function(){var i;if(!e.isInSelectingRange())return!1;var u=e.props,o=u.day,r=u.endDate,l=u.selectsEnd,f=u.selectsRange,c=(i=e.props.selectingDate)!==null&&i!==void 0?i:e.props.preSelection;return l||f?un(o,c):un(o,r)}),ue(e,"isRangeStart",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:un(o,u)}),ue(e,"isRangeEnd",function(){var i=e.props,u=i.day,o=i.startDate,r=i.endDate;return!o||!r?!1:un(r,u)}),ue(e,"isWeekend",function(){var i=Vo(e.props.day);return i===0||i===6}),ue(e,"isAfterMonth",function(){return e.props.month!==void 0&&(e.props.month+1)%12===Vn(e.props.day)}),ue(e,"isBeforeMonth",function(){return e.props.month!==void 0&&(Vn(e.props.day)+1)%12===e.props.month}),ue(e,"isCurrentDay",function(){return e.isSameDay(cn())}),ue(e,"isSelected",function(){if(e.props.selectsMultiple){var i;return(i=e.props.selectedDates)===null||i===void 0?void 0:i.some(function(u){return e.isSameDayOrWeek(u)})}return e.isSameDayOrWeek(e.props.selected)}),ue(e,"getClassNames",function(i){var u=e.props.dayClassName?e.props.dayClassName(i):void 0;return An("react-datepicker__day",u,"react-datepicker__day--"+M5e(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())}),ue(e,"getAriaLabel",function(){var i=e.props,u=i.day,o=i.ariaLabelPrefixWhenEnabled,r=o===void 0?"Choose":o,l=i.ariaLabelPrefixWhenDisabled,f=l===void 0?"Not available":l,c=e.isDisabled()||e.isExcluded()?f:r;return"".concat(c," ").concat(gn(u,"PPPP",e.props.locale))}),ue(e,"getTitle",function(){var i=e.props,u=i.day,o=i.holidays,r=o===void 0?new Map:o,l=i.excludeDates,f=gn(u,"MM.dd.yyyy"),c=[];return r.has(f)&&c.push.apply(c,ni(r.get(f).holidayNames)),e.isExcluded()&&c.push(l==null?void 0:l.filter(function(h){return un(h.date?h.date:h,u)}).map(function(h){return h.message})),c.join(", ")}),ue(e,"getTabIndex",function(i,u){var o=i||e.props.selected,r=u||e.props.preSelection,l=!(e.props.showWeekPicker&&(e.props.showWeekNumber||!e.isStartOfWeek()))&&(e.isKeyboardSelected()||e.isSameDay(o)&&un(r,o))?0:-1;return l}),ue(e,"handleFocusDay",function(){var i,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=!1;e.getTabIndex()===0&&!u.isInputFocused&&e.isSameDay(e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(o=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(o=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(o=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(o=!1)),o&&((i=e.dayEl.current)===null||i===void 0||i.focus({preventScroll:!0}))}),ue(e,"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Mc(e.props.day),e.props.day):Mc(e.props.day)}),ue(e,"render",function(){return le.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),e.getTitle()!==""&&le.createElement("span",{className:"overlay"},e.getTitle()))}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(t){this.handleFocusDay(t)}}])}(le.Component),Q5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"weekNumberEl",le.createRef()),ue(e,"handleClick",function(i){e.props.onClick&&e.props.onClick(i)}),ue(e,"handleOnKeyDown",function(i){var u=i.key;u===" "&&(i.preventDefault(),i.key="Enter"),e.props.handleOnKeyDown(i)}),ue(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!un(e.props.date,e.props.selected)&&un(e.props.date,e.props.preSelection)}),ue(e,"getTabIndex",function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||un(e.props.date,e.props.selected)&&un(e.props.preSelection,e.props.selected))?0:-1}),ue(e,"handleFocusWeekNumber",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;e.getTabIndex()===0&&!i.isInputFocused&&un(e.props.date,e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(u=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(u=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(u=!0)),u&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(t){this.handleFocusWeekNumber(t)}},{key:"render",value:function(){var t=this.props,a=t.weekNumber,d=t.ariaLabelPrefix,i=d===void 0?"week ":d,u=t.onClick,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!u,"react-datepicker__week-number--selected":!!u&&un(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return le.createElement("div",{ref:this.weekNumberEl,className:An(o),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},a)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}])}(le.Component),Z5e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"handleDayClick",function(i,u){e.props.onDayClick&&e.props.onDayClick(i,u)}),ue(e,"handleDayMouseEnter",function(i){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(i)}),ue(e,"handleWeekClick",function(i,u,o){typeof e.props.onWeekSelect=="function"&&e.props.onWeekSelect(i,u,o),e.props.showWeekPicker&&e.handleDayClick(i,o),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)}),ue(e,"formatWeekNumber",function(i){return e.props.formatWeekNumber?e.props.formatWeekNumber(i):x5e(i)}),ue(e,"renderDays",function(){var i=e.startOfWeek(),u=[],o=e.formatWeekNumber(i);if(e.props.showWeekNumber){var r=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(e,i,o):void 0;u.push(le.createElement(Q5e,{key:"W",weekNumber:o,date:i,onClick:r,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return u.concat([0,1,2,3,4,5,6].map(function(l){var f=sr(i,l);return le.createElement(K5e,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,month:e.props.month,onClick:e.handleDayClick.bind(e,f),usePointerEvent:e.props.usePointerEvent,onMouseEnter:e.handleDayMouseEnter.bind(e,f),minDate:e.props.minDate,maxDate:e.props.maxDate,calendarStartDay:e.props.calendarStartDay,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})}))}),ue(e,"startOfWeek",function(){return ai(e.props.day,e.props.locale,e.props.calendarStartDay)}),ue(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!un(e.startOfWeek(),e.props.selected)&&un(e.startOfWeek(),e.props.preSelection)}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":un(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return le.createElement("div",{className:An(t)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}])}(le.Component),J5e=6,wo={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},q3=ue(ue(ue({},wo.TWO_COLUMNS,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),wo.THREE_COLUMNS,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),wo.FOUR_COLUMNS,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4}),gh=1;function oP(n,s){return n?wo.FOUR_COLUMNS:s?wo.TWO_COLUMNS:wo.THREE_COLUMNS}var e8e=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"MONTH_REFS",ni(Array(12)).map(function(){return le.createRef()})),ue(e,"QUARTER_REFS",ni(Array(4)).map(function(){return le.createRef()})),ue(e,"isDisabled",function(i){return dh(i,e.props)}),ue(e,"isExcluded",function(i){return Y3(i,e.props)}),ue(e,"handleDayClick",function(i,u){e.props.onDayClick&&e.props.onDayClick(i,u,e.props.orderInDisplay)}),ue(e,"handleDayMouseEnter",function(i){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(i)}),ue(e,"handleMouseLeave",function(){e.props.onMouseLeave&&e.props.onMouseLeave()}),ue(e,"isRangeStartMonth",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:_r(Yn(o,i),r)}),ue(e,"isRangeStartQuarter",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:lh(Pi(o,i),r)}),ue(e,"isRangeEndMonth",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:_r(Yn(o,i),l)}),ue(e,"isRangeEndQuarter",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate;return!r||!l?!1:lh(Pi(o,i),l)}),ue(e,"isInSelectingRangeMonth",function(i){var u,o=e.props,r=o.day,l=o.selectsStart,f=o.selectsEnd,c=o.selectsRange,h=o.startDate,g=o.endDate,p=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return!(l||f||c)||!p?!1:l&&g?hh(p,g,i,r):f&&h||c&&h&&!g?hh(h,p,i,r):!1}),ue(e,"isSelectingMonthRangeStart",function(i){var u;if(!e.isInSelectingRangeMonth(i))return!1;var o=e.props,r=o.day,l=o.startDate,f=o.selectsStart,c=Yn(r,i),h=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return f?_r(c,h):_r(c,l)}),ue(e,"isSelectingMonthRangeEnd",function(i){var u;if(!e.isInSelectingRangeMonth(i))return!1;var o=e.props,r=o.day,l=o.endDate,f=o.selectsEnd,c=o.selectsRange,h=Yn(r,i),g=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return f||c?_r(h,g):_r(h,l)}),ue(e,"isInSelectingRangeQuarter",function(i){var u,o=e.props,r=o.day,l=o.selectsStart,f=o.selectsEnd,c=o.selectsRange,h=o.startDate,g=o.endDate,p=(u=e.props.selectingDate)!==null&&u!==void 0?u:e.props.preSelection;return!(l||f||c)||!p?!1:l&&g?mh(p,g,i,r):f&&h||c&&h&&!g?mh(h,p,i,r):!1}),ue(e,"isWeekInMonth",function(i){var u=e.props.day,o=sr(i,6);return _r(i,u)||_r(o,u)}),ue(e,"isCurrentMonth",function(i,u){return Ut(i)===Ut(cn())&&u===Vn(cn())}),ue(e,"isCurrentQuarter",function(i,u){return Ut(i)===Ut(cn())&&u===za(cn())}),ue(e,"isSelectedMonth",function(i,u,o){return Vn(o)===u&&Ut(i)===Ut(o)}),ue(e,"isSelectedQuarter",function(i,u,o){return za(i)===u&&Ut(i)===Ut(o)}),ue(e,"renderWeeks",function(){for(var i=[],u=e.props.fixedHeight,o=0,r=!1,l=ai(ii(e.props.day),e.props.locale,e.props.calendarStartDay),f=e.props.showWeekPicker?ai(e.props.selected,e.props.locale,e.props.calendarStartDay):e.props.selected,c=e.props.showWeekPicker?ai(e.props.preSelection,e.props.locale,e.props.calendarStartDay):e.props.preSelection;i.push(le.createElement(Z5e,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:o,day:l,month:Vn(e.props.day),onDayClick:e.handleDayClick,usePointerEvent:e.props.usePointerEvent,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:c,selected:f,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!r;){o++,l=_i(l,1);var h=u&&o>=J5e,g=!u&&!e.isWeekInMonth(l);if(h||g)if(e.props.peekNextMonth)r=!0;else break}return i}),ue(e,"onMonthClick",function(i,u){var o=Yn(e.props.day,u);ch(o,e.props)||e.handleDayClick(ii(o),i)}),ue(e,"onMonthMouseEnter",function(i){var u=Yn(e.props.day,i);ch(u,e.props)||e.handleDayMouseEnter(ii(u))}),ue(e,"handleMonthNavigation",function(i,u){e.isDisabled(u)||e.isExcluded(u)||(e.props.setPreSelection(u),e.MONTH_REFS[i].current&&e.MONTH_REFS[i].current.focus())}),ue(e,"onMonthKeyDown",function(i,u){var o=e.props,r=o.selected,l=o.preSelection,f=o.disabledKeyboardNavigation,c=o.showTwoColumnMonthYearPicker,h=o.showFourColumnMonthYearPicker,g=o.setPreSelection,p=o.handleOnMonthKeyDown,m=i.key;if(m!=="Tab"&&i.preventDefault(),!f){var y=oP(h,c),b=q3[y].verticalNavigationOffset,M=q3[y].grid;switch(m){case"Enter":e.onMonthClick(i,u),g(r);break;case"ArrowRight":e.handleMonthNavigation(u===11?0:u+gh,br(l,gh));break;case"ArrowLeft":e.handleMonthNavigation(u===0?11:u-gh,Ua(l,gh));break;case"ArrowUp":e.handleMonthNavigation(M[0].includes(u)?u+12-b:u-b,Ua(l,b));break;case"ArrowDown":e.handleMonthNavigation(M[M.length-1].includes(u)?u-12+b:u+b,br(l,b));break}}p&&p(i)}),ue(e,"onQuarterClick",function(i,u){var o=Pi(e.props.day,u);X3(o,e.props)||e.handleDayClick(z6(o),i)}),ue(e,"onQuarterMouseEnter",function(i){var u=Pi(e.props.day,i);X3(u,e.props)||e.handleDayMouseEnter(z6(u))}),ue(e,"handleQuarterNavigation",function(i,u){e.isDisabled(u)||e.isExcluded(u)||(e.props.setPreSelection(u),e.QUARTER_REFS[i-1].current&&e.QUARTER_REFS[i-1].current.focus())}),ue(e,"onQuarterKeyDown",function(i,u){var o=i.key;if(!e.props.disabledKeyboardNavigation)switch(o){case"Enter":e.onQuarterClick(i,u),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(u===4?1:u+1,Bo(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(u===1?4:u-1,$f(e.props.preSelection,1));break}}),ue(e,"isMonthDisabled",function(i){var u=e.props,o=u.day,r=u.minDate,l=u.maxDate,f=u.excludeDates,c=u.includeDates,h=Yn(o,i);return(r||l||f||c)&&ch(h,e.props)}),ue(e,"getMonthClassNames",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate,f=u.selected,c=u.preSelection,h=u.monthClassName,g=h?h(Yn(o,i)):void 0;return An("react-datepicker__month-text","react-datepicker__month-".concat(i),g,{"react-datepicker__month-text--disabled":e.isMonthDisabled(i),"react-datepicker__month-text--selected":e.isSelectedMonth(o,i,f),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&e.isSelectedMonth(o,i,c),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(i),"react-datepicker__month-text--in-range":hh(r,l,i,o),"react-datepicker__month-text--range-start":e.isRangeStartMonth(i),"react-datepicker__month-text--range-end":e.isRangeEndMonth(i),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(i),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(i),"react-datepicker__month-text--today":e.isCurrentMonth(o,i)})}),ue(e,"getTabIndex",function(i){var u=Vn(e.props.preSelection),o=!e.props.disabledKeyboardNavigation&&i===u?"0":"-1";return o}),ue(e,"getQuarterTabIndex",function(i){var u=za(e.props.preSelection),o=!e.props.disabledKeyboardNavigation&&i===u?"0":"-1";return o}),ue(e,"getAriaLabel",function(i){var u=e.props,o=u.chooseDayAriaLabelPrefix,r=o===void 0?"Choose":o,l=u.disabledDayAriaLabelPrefix,f=l===void 0?"Not available":l,c=u.day,h=u.locale,g=Yn(c,i),p=e.isDisabled(g)||e.isExcluded(g)?f:r;return"".concat(p," ").concat(gn(g,"MMMM yyyy",h))}),ue(e,"getQuarterClassNames",function(i){var u=e.props,o=u.day,r=u.startDate,l=u.endDate,f=u.selected,c=u.minDate,h=u.maxDate,g=u.preSelection,p=u.disabledKeyboardNavigation;return An("react-datepicker__quarter-text","react-datepicker__quarter-".concat(i),{"react-datepicker__quarter-text--disabled":(c||h)&&X3(Pi(o,i),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(o,i,f),"react-datepicker__quarter-text--keyboard-selected":!p&&e.isSelectedQuarter(o,i,g),"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(i),"react-datepicker__quarter-text--in-range":mh(r,l,i,o),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(i),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(i)})}),ue(e,"getMonthContent",function(i){var u=e.props,o=u.showFullMonthYearPicker,r=u.renderMonthContent,l=u.locale,f=u.day,c=B6(i,l),h=V3(i,l);return r?r(i,c,h,f):o?h:c}),ue(e,"getQuarterContent",function(i){var u=e.props,o=u.renderQuarterContent,r=u.locale,l=T5e(i,r);return o?o(i,l):l}),ue(e,"renderMonths",function(){var i=e.props,u=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,r=i.day,l=i.selected,f=q3[oP(o,u)].grid;return f.map(function(c,h){return le.createElement("div",{className:"react-datepicker__month-wrapper",key:h},c.map(function(g,p){return le.createElement("div",{ref:e.MONTH_REFS[g],key:p,onClick:function(y){e.onMonthClick(y,g)},onKeyDown:function(y){iP(y)&&(y.preventDefault(),y.key="Enter"),e.onMonthKeyDown(y,g)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(g)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(g)}:void 0,tabIndex:e.getTabIndex(g),className:e.getMonthClassNames(g),"aria-disabled":e.isMonthDisabled(g),role:"option","aria-label":e.getAriaLabel(g),"aria-current":e.isCurrentMonth(r,g)?"date":void 0,"aria-selected":e.isSelectedMonth(r,g,l)},e.getMonthContent(g))}))})}),ue(e,"renderQuarters",function(){var i=e.props,u=i.day,o=i.selected,r=[1,2,3,4];return le.createElement("div",{className:"react-datepicker__quarter-wrapper"},r.map(function(l,f){return le.createElement("div",{key:f,ref:e.QUARTER_REFS[f],role:"option",onClick:function(h){e.onQuarterClick(h,l)},onKeyDown:function(h){e.onQuarterKeyDown(h,l)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(l)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(l)}:void 0,className:e.getQuarterClassNames(l),"aria-selected":e.isSelectedQuarter(u,l,o),tabIndex:e.getQuarterTabIndex(l),"aria-current":e.isCurrentQuarter(u,l)?"date":void 0},e.getQuarterContent(l))}))}),ue(e,"getClassNames",function(){var i=e.props,u=i.selectingDate,o=i.selectsStart,r=i.selectsEnd,l=i.showMonthYearPicker,f=i.showQuarterYearPicker,c=i.showWeekPicker;return An("react-datepicker__month",{"react-datepicker__month--selecting-range":u&&(o||r)},{"react-datepicker__monthPicker":l},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":c})}),e}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this.props,a=t.showMonthYearPicker,d=t.showQuarterYearPicker,i=t.day,u=t.ariaLabelPrefix,o=u===void 0?"Month ":u,r=o?o.trim()+" ":"";return le.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(r).concat(gn(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},a?this.renderMonths():d?this.renderQuarters():this.renderWeeks())}}])}(le.Component),sP=function(n){function s(){var e;Wn(this,s);for(var t=arguments.length,a=new Array(t),d=0;d<t;d++)a[d]=arguments[d];return e=jn(this,s,[].concat(a)),ue(e,"state",{height:null}),ue(e,"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){e.list&&(e.list.scrollTop=e.centerLi&&s.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))})}),ue(e,"handleClick",function(i){(e.props.minTime||e.props.maxTime)&&q6(i,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&X6(i,e.props)||e.props.onChange(i)}),ue(e,"isSelectedTime",function(i){return e.props.selected&&I5e(e.props.selected,i)}),ue(e,"isDisabledTime",function(i){return(e.props.minTime||e.props.maxTime)&&q6(i,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&X6(i,e.props)}),ue(e,"liClasses",function(i){var u=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(i):void 0];return e.isSelectedTime(i)&&u.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(i)&&u.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(zr(i)*3600+Hr(i)*60+aa(i))%(e.props.intervals*60)!==0&&u.push("react-datepicker__time-list-item--injected"),u.join(" ")}),ue(e,"handleOnKeyDown",function(i,u){i.key===" "&&(i.preventDefault(),i.key="Enter"),(i.key==="ArrowUp"||i.key==="ArrowLeft")&&i.target.previousSibling&&(i.preventDefault(),i.target.previousSibling.focus()),(i.key==="ArrowDown"||i.key==="ArrowRight")&&i.target.nextSibling&&(i.preventDefault(),i.target.nextSibling.focus()),i.key==="Enter"&&e.handleClick(u),e.props.handleOnKeyDown(i)}),ue(e,"renderTimes",function(){for(var i=[],u=e.props.format?e.props.format:"p",o=e.props.intervals,r=e.props.selected||e.props.openToDate||cn(),l=k5e(r),f=e.props.injectTimes&&e.props.injectTimes.sort(function(b,M){return b-M}),c=60*N5e(r),h=c/o,g=0;g<h;g++){var p=Qi(l,g*o);if(i.push(p),f){var m=L5e(l,p,g,o,f);i=i.concat(m)}}var y=i.reduce(function(b,M){return M.getTime()<=r.getTime()?M:b},i[0]);return i.map(function(b,M){return le.createElement("li",{key:M,onClick:e.handleClick.bind(e,b),className:e.liClasses(b),ref:function(C){b===y&&(e.centerLi=C)},onKeyDown:function(C){e.handleOnKeyDown(C,b)},tabIndex:b===y?0:-1,role:"option","aria-selected":e.isSelectedTime(b)?"true":void 0,"aria-disabled":e.isDisabledTime(b)?"true":void 0},gn(b,u,e.props.locale))})}),e}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var t=this,a=this.state.height;return le.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},le.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){t.header=i}},le.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),le.createElement("div",{className:"react-datepicker__time"},le.createElement("div",{className:"react-datepicker__time-box"},le.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:a?{height:a}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}])}(le.Component);ue(sP,"calcCenterPosition",function(n,s){return s.offsetTop-(n/2-s.clientHeight/2)});var uP=3,t8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"YEAR_REFS",ni(Array(t.props.yearItemNumber)).map(function(){return le.createRef()})),ue(t,"isDisabled",function(a){return dh(a,t.props)}),ue(t,"isExcluded",function(a){return Y3(a,t.props)}),ue(t,"selectingDate",function(){var a;return(a=t.props.selectingDate)!==null&&a!==void 0?a:t.props.preSelection}),ue(t,"updateFocusOnPaginate",function(a){var d=(function(){this.YEAR_REFS[a].current.focus()}).bind(t);window.requestAnimationFrame(d)}),ue(t,"handleYearClick",function(a,d){t.props.onDayClick&&t.props.onDayClick(a,d)}),ue(t,"handleYearNavigation",function(a,d){var i=t.props,u=i.date,o=i.yearItemNumber,r=si(u,o),l=r.startPeriod;t.isDisabled(d)||t.isExcluded(d)||(t.props.setPreSelection(d),a-l<0?t.updateFocusOnPaginate(o-(l-a)):a-l>=o?t.updateFocusOnPaginate(Math.abs(o-(a-l))):t.YEAR_REFS[a-l].current.focus())}),ue(t,"isSameDay",function(a,d){return un(a,d)}),ue(t,"isCurrentYear",function(a){return a===Ut(cn())}),ue(t,"isRangeStart",function(a){return t.props.startDate&&t.props.endDate&&ca(Br(cn(),a),t.props.startDate)}),ue(t,"isRangeEnd",function(a){return t.props.startDate&&t.props.endDate&&ca(Br(cn(),a),t.props.endDate)}),ue(t,"isInRange",function(a){return fh(a,t.props.startDate,t.props.endDate)}),ue(t,"isInSelectingRange",function(a){var d=t.props,i=d.selectsStart,u=d.selectsEnd,o=d.selectsRange,r=d.startDate,l=d.endDate;return!(i||u||o)||!t.selectingDate()?!1:i&&l?fh(a,t.selectingDate(),l):u&&r||o&&r&&!l?fh(a,r,t.selectingDate()):!1}),ue(t,"isSelectingRangeStart",function(a){if(!t.isInSelectingRange(a))return!1;var d=t.props,i=d.startDate,u=d.selectsStart,o=Br(cn(),a);return u?ca(o,t.selectingDate()):ca(o,i)}),ue(t,"isSelectingRangeEnd",function(a){if(!t.isInSelectingRange(a))return!1;var d=t.props,i=d.endDate,u=d.selectsEnd,o=d.selectsRange,r=Br(cn(),a);return u||o?ca(r,t.selectingDate()):ca(r,i)}),ue(t,"isKeyboardSelected",function(a){var d=Td(Br(t.props.date,a));return!t.props.disabledKeyboardNavigation&&!t.props.inline&&!un(d,Td(t.props.selected))&&un(d,Td(t.props.preSelection))}),ue(t,"onYearClick",function(a,d){var i=t.props.date;t.handleYearClick(Td(Br(i,d)),a)}),ue(t,"onYearKeyDown",function(a,d){var i=a.key,u=t.props,o=u.date,r=u.yearItemNumber,l=u.handleOnKeyDown;if(i!=="Tab"&&a.preventDefault(),!t.props.disabledKeyboardNavigation)switch(i){case"Enter":t.onYearClick(a,d),t.props.setPreSelection(t.props.selected);break;case"ArrowRight":t.handleYearNavigation(d+1,Jr(t.props.preSelection,1));break;case"ArrowLeft":t.handleYearNavigation(d-1,$i(t.props.preSelection,1));break;case"ArrowUp":{var f=si(o,r),c=f.startPeriod,h=uP,g=d-h;if(g<c){var p=r%h;d>=c&&d<c+p?h=p:h+=p,g=d-h}t.handleYearNavigation(g,$i(t.props.preSelection,h));break}case"ArrowDown":{var m=si(o,r),y=m.endPeriod,b=uP,M=d+b;if(M>y){var S=r%b;d<=y&&d>y-S?b=S:b+=S,M=d+b}t.handleYearNavigation(M,Jr(t.props.preSelection,b));break}}l&&l(a)}),ue(t,"getYearClassNames",function(a){var d=t.props,i=d.date,u=d.minDate,o=d.maxDate,r=d.selected,l=d.excludeDates,f=d.includeDates,c=d.filterDate,h=d.yearClassName;return An("react-datepicker__year-text","react-datepicker__year-".concat(a),h?h(Br(i,a)):void 0,{"react-datepicker__year-text--selected":a===Ut(r),"react-datepicker__year-text--disabled":(u||o||l||f||c)&&V6(a,t.props),"react-datepicker__year-text--keyboard-selected":t.isKeyboardSelected(a),"react-datepicker__year-text--range-start":t.isRangeStart(a),"react-datepicker__year-text--range-end":t.isRangeEnd(a),"react-datepicker__year-text--in-range":t.isInRange(a),"react-datepicker__year-text--in-selecting-range":t.isInSelectingRange(a),"react-datepicker__year-text--selecting-range-start":t.isSelectingRangeStart(a),"react-datepicker__year-text--selecting-range-end":t.isSelectingRangeEnd(a),"react-datepicker__year-text--today":t.isCurrentYear(a)})}),ue(t,"getYearTabIndex",function(a){if(t.props.disabledKeyboardNavigation)return"-1";var d=Ut(t.props.preSelection);return a===d?"0":"-1"}),ue(t,"getYearContainerClassNames",function(){var a=t.props,d=a.selectingDate,i=a.selectsStart,u=a.selectsEnd,o=a.selectsRange;return An("react-datepicker__year",{"react-datepicker__year--selecting-range":d&&(i||u||o)})}),ue(t,"getYearContent",function(a){return t.props.renderYearContent?t.props.renderYearContent(a):a}),t}return Nn(s,n),Ln(s,[{key:"render",value:function(){for(var t=this,a=[],d=this.props,i=d.date,u=d.yearItemNumber,o=d.onYearMouseEnter,r=d.onYearMouseLeave,l=si(i,u),f=l.startPeriod,c=l.endPeriod,h=function(m){a.push(le.createElement("div",{ref:t.YEAR_REFS[m-f],onClick:function(b){t.onYearClick(b,m)},onKeyDown:function(b){iP(b)&&(b.preventDefault(),b.key="Enter"),t.onYearKeyDown(b,m)},tabIndex:t.getYearTabIndex(m),className:t.getYearClassNames(m),onMouseEnter:t.props.usePointerEvent?void 0:function(y){return o(y,m)},onPointerEnter:t.props.usePointerEvent?function(y){return o(y,m)}:void 0,onMouseLeave:t.props.usePointerEvent?void 0:function(y){return r(y,m)},onPointerLeave:t.props.usePointerEvent?function(y){return r(y,m)}:void 0,key:m,"aria-current":t.isCurrentYear(m)?"date":void 0},t.getYearContent(m)))},g=f;g<=c;g++)h(g);return le.createElement("div",{className:this.getYearContainerClassNames()},le.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},a))}}])}(le.Component),n8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"onTimeChange",function(a){t.setState({time:a});var d=t.props.date,i=d instanceof Date&&!isNaN(d),u=i?d:new Date;u.setHours(a.split(":")[0]),u.setMinutes(a.split(":")[1]),t.props.onChange(u)}),ue(t,"renderTimeInput",function(){var a=t.state.time,d=t.props,i=d.date,u=d.timeString,o=d.customTimeInput;return o?le.cloneElement(o,{date:i,value:a,onChange:t.onTimeChange}):le.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:a,onChange:function(l){t.onTimeChange(l.target.value||u)}})}),t.state={time:t.props.timeString},t}return Nn(s,n),Ln(s,[{key:"render",value:function(){return le.createElement("div",{className:"react-datepicker__input-time-container"},le.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),le.createElement("div",{className:"react-datepicker-time__input-container"},le.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(t,a){return t.timeString!==a.time?{time:t.timeString}:null}}])}(le.Component);function r8e(n){var s=n.showTimeSelectOnly,e=s===void 0?!1:s,t=n.showTime,a=t===void 0?!1:t,d=n.className,i=n.children,u=e?"Choose Time":"Choose Date".concat(a?" and Time":"");return le.createElement("div",{className:d,role:"dialog","aria-label":u,"aria-modal":"true"},i)}var a8e=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],i8e=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=(s.className||"").split(/\s+/);return a8e.some(function(t){return e.indexOf(t)>=0})},o8e=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"handleClickOutside",function(a){t.props.onClickOutside(a)}),ue(t,"setClickOutsideRef",function(){return t.containerRef.current}),ue(t,"handleDropdownFocus",function(a){i8e(a.target)&&t.props.onDropdownFocus()}),ue(t,"getDateInView",function(){var a=t.props,d=a.preSelection,i=a.selected,u=a.openToDate,o=Z6(t.props),r=J6(t.props),l=cn(),f=u||i||d;return f||(o&&Ya(l,o)?o:r&&wa(l,r)?r:l)}),ue(t,"increaseMonth",function(){t.setState(function(a){var d=a.date;return{date:br(d,1)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"decreaseMonth",function(){t.setState(function(a){var d=a.date;return{date:Ua(d,1)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"handleDayClick",function(a,d,i){t.props.onSelect(a,d,i),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleDayMouseEnter",function(a){t.setState({selectingDate:a}),t.props.onDayMouseEnter&&t.props.onDayMouseEnter(a)}),ue(t,"handleMonthMouseLeave",function(){t.setState({selectingDate:null}),t.props.onMonthMouseLeave&&t.props.onMonthMouseLeave()}),ue(t,"handleYearMouseEnter",function(a,d){t.setState({selectingDate:Br(cn(),d)}),t.props.onYearMouseEnter&&t.props.onYearMouseEnter(a,d)}),ue(t,"handleYearMouseLeave",function(a,d){t.props.onYearMouseLeave&&t.props.onYearMouseLeave(a,d)}),ue(t,"handleYearChange",function(a){t.props.onYearChange&&(t.props.onYearChange(a),t.setState({isRenderAriaLiveMessage:!0})),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(a),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleMonthChange",function(a){t.handleCustomMonthChange(a),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(a),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(a)}),ue(t,"handleCustomMonthChange",function(a){t.props.onMonthChange&&(t.props.onMonthChange(a),t.setState({isRenderAriaLiveMessage:!0}))}),ue(t,"handleMonthYearChange",function(a){t.handleYearChange(a),t.handleMonthChange(a)}),ue(t,"changeYear",function(a){t.setState(function(d){var i=d.date;return{date:Br(i,a)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"changeMonth",function(a){t.setState(function(d){var i=d.date;return{date:Yn(i,a)}},function(){return t.handleMonthChange(t.state.date)})}),ue(t,"changeMonthYear",function(a){t.setState(function(d){var i=d.date;return{date:Br(Yn(i,Vn(a)),Ut(a))}},function(){return t.handleMonthYearChange(t.state.date)})}),ue(t,"header",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.state.date,d=ai(a,t.props.locale,t.props.calendarStartDay),i=[];return t.props.showWeekNumbers&&i.push(le.createElement("div",{key:"W",className:"react-datepicker__day-name"},t.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(u){var o=sr(d,u),r=t.formatWeekday(o,t.props.locale),l=t.props.weekDayClassName?t.props.weekDayClassName(o):void 0;return le.createElement("div",{key:u,"aria-label":gn(o,"EEEE",t.props.locale),className:An("react-datepicker__day-name",l)},r)}))}),ue(t,"formatWeekday",function(a,d){return t.props.formatWeekDay?$5e(a,t.props.formatWeekDay,d):t.props.useWeekdaysShort?D5e(a,d):S5e(a,d)}),ue(t,"decreaseYear",function(){t.setState(function(a){var d=a.date;return{date:$i(d,t.props.showYearPicker?t.props.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"clearSelectingDate",function(){t.setState({selectingDate:null})}),ue(t,"renderPreviousButton",function(){if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=K6(t.state.date,t.props);break;case t.props.showYearPicker:a=F5e(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=C5e(t.state.date,t.props);break;default:a=U6(t.state.date,t.props);break}if(!(!t.props.forceShowMonthNavigation&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var d=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],i=["react-datepicker__navigation","react-datepicker__navigation--previous"],u=t.decreaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(u=t.decreaseYear),a&&t.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--previous--disabled"),u=null);var o=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,r=t.props,l=r.previousMonthButtonLabel,f=r.previousYearButtonLabel,c=t.props,h=c.previousMonthAriaLabel,g=h===void 0?typeof l=="string"?l:"Previous Month":h,p=c.previousYearAriaLabel,m=p===void 0?typeof f=="string"?f:"Previous Year":p;return le.createElement("button",{type:"button",className:i.join(" "),onClick:u,onKeyDown:t.props.handleOnKeyDown,"aria-label":o?m:g},le.createElement("span",{className:d.join(" ")},o?t.props.previousYearButtonLabel:t.props.previousMonthButtonLabel))}}}),ue(t,"increaseYear",function(){t.setState(function(a){var d=a.date;return{date:Jr(d,t.props.showYearPicker?t.props.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})}),ue(t,"renderNextButton",function(){if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=Q6(t.state.date,t.props);break;case t.props.showYearPicker:a=O5e(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=E5e(t.state.date,t.props);break;default:a=G6(t.state.date,t.props);break}if(!(!t.props.forceShowMonthNavigation&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var d=["react-datepicker__navigation","react-datepicker__navigation--next"],i=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];t.props.showTimeSelect&&d.push("react-datepicker__navigation--next--with-time"),t.props.todayButton&&d.push("react-datepicker__navigation--next--with-today-button");var u=t.increaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(u=t.increaseYear),a&&t.props.showDisabledMonthNavigation&&(d.push("react-datepicker__navigation--next--disabled"),u=null);var o=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,r=t.props,l=r.nextMonthButtonLabel,f=r.nextYearButtonLabel,c=t.props,h=c.nextMonthAriaLabel,g=h===void 0?typeof l=="string"?l:"Next Month":h,p=c.nextYearAriaLabel,m=p===void 0?typeof f=="string"?f:"Next Year":p;return le.createElement("button",{type:"button",className:d.join(" "),onClick:u,onKeyDown:t.props.handleOnKeyDown,"aria-label":o?m:g},le.createElement("span",{className:i.join(" ")},o?t.props.nextYearButtonLabel:t.props.nextMonthButtonLabel))}}}),ue(t,"renderCurrentMonth",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.state.date,d=["react-datepicker__current-month"];return t.props.showYearDropdown&&d.push("react-datepicker__current-month--hasYearDropdown"),t.props.showMonthDropdown&&d.push("react-datepicker__current-month--hasMonthDropdown"),t.props.showMonthYearDropdown&&d.push("react-datepicker__current-month--hasMonthYearDropdown"),le.createElement("div",{className:d.join(" ")},gn(a,t.props.dateFormat,t.props.locale))}),ue(t,"renderYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showYearDropdown||a))return le.createElement(H5e,{adjustDateOnChange:t.props.adjustDateOnChange,date:t.state.date,onSelect:t.props.onSelect,setOpen:t.props.setOpen,dropdownMode:t.props.dropdownMode,onChange:t.changeYear,minDate:t.props.minDate,maxDate:t.props.maxDate,year:Ut(t.state.date),scrollableYearDropdown:t.props.scrollableYearDropdown,yearDropdownItemNumber:t.props.yearDropdownItemNumber})}),ue(t,"renderMonthDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showMonthDropdown||a))return le.createElement(Y5e,{dropdownMode:t.props.dropdownMode,locale:t.props.locale,onChange:t.changeMonth,month:Vn(t.state.date),useShortMonthInDropdown:t.props.useShortMonthInDropdown})}),ue(t,"renderMonthYearDropdown",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t.props.showMonthYearDropdown||a))return le.createElement(G5e,{dropdownMode:t.props.dropdownMode,locale:t.props.locale,dateFormat:t.props.dateFormat,onChange:t.changeMonthYear,minDate:t.props.minDate,maxDate:t.props.maxDate,date:t.state.date,scrollableMonthYearDropdown:t.props.scrollableMonthYearDropdown})}),ue(t,"handleTodayButtonClick",function(a){t.props.onSelect(H6(),a),t.props.setPreSelection&&t.props.setPreSelection(H6())}),ue(t,"renderTodayButton",function(){if(!(!t.props.todayButton||t.props.showTimeSelectOnly))return le.createElement("div",{className:"react-datepicker__today-button",onClick:function(d){return t.handleTodayButtonClick(d)}},t.props.todayButton)}),ue(t,"renderDefaultHeader",function(a){var d=a.monthDate,i=a.i;return le.createElement("div",{className:"react-datepicker__header ".concat(t.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},t.renderCurrentMonth(d),le.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(t.props.dropdownMode),onFocus:t.handleDropdownFocus},t.renderMonthDropdown(i!==0),t.renderMonthYearDropdown(i!==0),t.renderYearDropdown(i!==0)),le.createElement("div",{className:"react-datepicker__day-names"},t.header(d)))}),ue(t,"renderCustomHeader",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=a.monthDate,i=a.i;if(t.props.showTimeSelect&&!t.state.monthContainer||t.props.showTimeSelectOnly)return null;var u=U6(t.state.date,t.props),o=G6(t.state.date,t.props),r=K6(t.state.date,t.props),l=Q6(t.state.date,t.props),f=!t.props.showMonthYearPicker&&!t.props.showQuarterYearPicker&&!t.props.showYearPicker;return le.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:t.props.onDropdownFocus},t.props.renderCustomHeader(ka(ka({},t.state),{},{customHeaderCount:i,monthDate:d,changeMonth:t.changeMonth,changeYear:t.changeYear,decreaseMonth:t.decreaseMonth,increaseMonth:t.increaseMonth,decreaseYear:t.decreaseYear,increaseYear:t.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:o,prevYearButtonDisabled:r,nextYearButtonDisabled:l})),f&&le.createElement("div",{className:"react-datepicker__day-names"},t.header(d)))}),ue(t,"renderYearHeader",function(a){var d=a.monthDate,i=t.props,u=i.showYearPicker,o=i.yearItemNumber,r=si(d,o),l=r.startPeriod,f=r.endPeriod;return le.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},u?"".concat(l," - ").concat(f):Ut(d))}),ue(t,"renderHeader",function(a){switch(!0){case t.props.renderCustomHeader!==void 0:return t.renderCustomHeader(a);case(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker):return t.renderYearHeader(a);default:return t.renderDefaultHeader(a)}}),ue(t,"renderMonths",function(){var a;if(!(t.props.showTimeSelectOnly||t.props.showYearPicker)){for(var d=[],i=t.props.showPreviousMonths?t.props.monthsShown-1:0,u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?Jr(t.state.date,i):Ua(t.state.date,i),o=(a=t.props.monthSelectedIn)!==null&&a!==void 0?a:i,r=0;r<t.props.monthsShown;++r){var l=r-o+i,f=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?Jr(u,l):br(u,l),c="month-".concat(r),h=r<t.props.monthsShown-1,g=r>0;d.push(le.createElement("div",{key:c,ref:function(m){t.monthContainer=m},className:"react-datepicker__month-container"},t.renderHeader({monthDate:f,i:r}),le.createElement(e8e,{chooseDayAriaLabelPrefix:t.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:t.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:t.props.weekAriaLabelPrefix,ariaLabelPrefix:t.props.monthAriaLabelPrefix,onChange:t.changeMonthYear,day:f,dayClassName:t.props.dayClassName,calendarStartDay:t.props.calendarStartDay,monthClassName:t.props.monthClassName,onDayClick:t.handleDayClick,handleOnKeyDown:t.props.handleOnDayKeyDown,handleOnMonthKeyDown:t.props.handleOnKeyDown,usePointerEvent:t.props.usePointerEvent,onDayMouseEnter:t.handleDayMouseEnter,onMouseLeave:t.handleMonthMouseLeave,onWeekSelect:t.props.onWeekSelect,orderInDisplay:r,formatWeekNumber:t.props.formatWeekNumber,locale:t.props.locale,minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,highlightDates:t.props.highlightDates,holidays:t.props.holidays,selectingDate:t.state.selectingDate,includeDates:t.props.includeDates,includeDateIntervals:t.props.includeDateIntervals,inline:t.props.inline,shouldFocusDayInline:t.props.shouldFocusDayInline,fixedHeight:t.props.fixedHeight,filterDate:t.props.filterDate,preSelection:t.props.preSelection,setPreSelection:t.props.setPreSelection,selected:t.props.selected,selectsStart:t.props.selectsStart,selectsEnd:t.props.selectsEnd,selectsRange:t.props.selectsRange,selectsDisabledDaysInRange:t.props.selectsDisabledDaysInRange,selectsMultiple:t.props.selectsMultiple,selectedDates:t.props.selectedDates,showWeekNumbers:t.props.showWeekNumbers,startDate:t.props.startDate,endDate:t.props.endDate,peekNextMonth:t.props.peekNextMonth,setOpen:t.props.setOpen,shouldCloseOnSelect:t.props.shouldCloseOnSelect,renderDayContents:t.props.renderDayContents,renderMonthContent:t.props.renderMonthContent,renderQuarterContent:t.props.renderQuarterContent,renderYearContent:t.props.renderYearContent,disabledKeyboardNavigation:t.props.disabledKeyboardNavigation,showMonthYearPicker:t.props.showMonthYearPicker,showFullMonthYearPicker:t.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:t.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:t.props.showFourColumnMonthYearPicker,showYearPicker:t.props.showYearPicker,showQuarterYearPicker:t.props.showQuarterYearPicker,showWeekPicker:t.props.showWeekPicker,isInputFocused:t.props.isInputFocused,containerRef:t.containerRef,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:g})))}return d}}),ue(t,"renderYears",function(){if(!t.props.showTimeSelectOnly&&t.props.showYearPicker)return le.createElement("div",{className:"react-datepicker__year--container"},t.renderHeader({monthDate:t.state.date}),le.createElement(t8e,Sd({onDayClick:t.handleDayClick,selectingDate:t.state.selectingDate,clearSelectingDate:t.clearSelectingDate,date:t.state.date},t.props,{onYearMouseEnter:t.handleYearMouseEnter,onYearMouseLeave:t.handleYearMouseLeave})))}),ue(t,"renderTimeSection",function(){if(t.props.showTimeSelect&&(t.state.monthContainer||t.props.showTimeSelectOnly))return le.createElement(sP,{selected:t.props.selected,openToDate:t.props.openToDate,onChange:t.props.onTimeChange,timeClassName:t.props.timeClassName,format:t.props.timeFormat,includeTimes:t.props.includeTimes,intervals:t.props.timeIntervals,minTime:t.props.minTime,maxTime:t.props.maxTime,excludeTimes:t.props.excludeTimes,filterTime:t.props.filterTime,timeCaption:t.props.timeCaption,todayButton:t.props.todayButton,showMonthDropdown:t.props.showMonthDropdown,showMonthYearDropdown:t.props.showMonthYearDropdown,showYearDropdown:t.props.showYearDropdown,withPortal:t.props.withPortal,monthRef:t.state.monthContainer,injectTimes:t.props.injectTimes,locale:t.props.locale,handleOnKeyDown:t.props.handleOnKeyDown,showTimeSelectOnly:t.props.showTimeSelectOnly})}),ue(t,"renderInputTimeSection",function(){var a=new Date(t.props.selected),d=ri(a)&&!!t.props.selected,i=d?"".concat(tP(a.getHours()),":").concat(tP(a.getMinutes())):"";if(t.props.showTimeInput)return le.createElement(n8e,{date:a,timeString:i,timeInputLabel:t.props.timeInputLabel,onChange:t.props.onTimeChange,customTimeInput:t.props.customTimeInput})}),ue(t,"renderAriaLiveRegion",function(){var a=si(t.state.date,t.props.yearItemNumber),d=a.startPeriod,i=a.endPeriod,u;return t.props.showYearPicker?u="".concat(d," - ").concat(i):t.props.showMonthYearPicker||t.props.showQuarterYearPicker?u=Ut(t.state.date):u="".concat(V3(Vn(t.state.date),t.props.locale)," ").concat(Ut(t.state.date)),le.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},t.state.isRenderAriaLiveMessage&&u)}),ue(t,"renderChildren",function(){if(t.props.children)return le.createElement("div",{className:"react-datepicker__children-container"},t.props.children)}),t.containerRef=le.createRef(),t.state={date:t.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){t.setState({monthContainer:t.monthContainer})}())}},{key:"componentDidUpdate",value:function(t){var a=this;if(this.props.preSelection&&(!un(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var d=!_r(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return d&&a.handleCustomMonthChange(a.state.date)})}else this.props.openToDate&&!un(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var t=this.props.container||r8e;return le.createElement("div",{style:{display:"contents"},ref:this.containerRef},le.createElement(t,{className:An("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Dd}}}])}(le.Component),s8e=function(s){var e=s.icon,t=s.className,a=t===void 0?"":t,d=s.onClick,i="react-datepicker__calendar-icon";return le.isValidElement(e)?le.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(i," ").concat(a),onClick:function(o){typeof e.props.onClick=="function"&&e.props.onClick(o),typeof d=="function"&&d(o)}}):typeof e=="string"?le.createElement("i",{className:"".concat(i," ").concat(e," ").concat(a),"aria-hidden":"true",onClick:d}):le.createElement("svg",{className:"".concat(i," ").concat(a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:d},le.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},u8e=s8e,lP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),t.el=document.createElement("div"),t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Zr.createPortal(this.props.children,this.el)}}])}(le.Component),l8e="[tabindex], a, button, input, select, textarea",d8e=function(s){return!s.disabled&&s.tabIndex!==-1},dP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"getTabChildren",function(){return Array.prototype.slice.call(t.tabLoopRef.current.querySelectorAll(l8e),1,-1).filter(d8e)}),ue(t,"handleFocusStart",function(){var a=t.getTabChildren();a&&a.length>1&&a[a.length-1].focus()}),ue(t,"handleFocusEnd",function(){var a=t.getTabChildren();a&&a.length>1&&a[0].focus()}),t.tabLoopRef=le.createRef(),t}return Nn(s,n),Ln(s,[{key:"render",value:function(){return this.props.enableTabLoop?le.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},le.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,le.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}])}(le.Component);function c8e(n){var s=function(t){var a=ka(ka({},t),{},{popperModifiers:t.popperModifiers||[],popperProps:t.popperProps||{},hidePopper:typeof t.hidePopper=="boolean"?t.hidePopper:!0}),d=le.useRef(),i=d5e(ka({open:!a.hidePopper,whileElementsMounted:VPe,placement:a.popperPlacement,middleware:[N3({padding:15}),GPe(10),KPe({element:d})].concat(ni(a.popperModifiers))},a.popperProps));return le.createElement(n,Sd({},a,{popperProps:ka(ka({},i),{},{arrowRef:d})}))};return s}var h8e=function(n){function s(){return Wn(this,s),jn(this,s,arguments)}return Nn(s,n),Ln(s,[{key:"render",value:function(){var t=this.props,a=t.className,d=t.wrapperClassName,i=t.hidePopper,u=t.popperComponent,o=t.targetComponent,r=t.enableTabLoop,l=t.popperOnKeyDown,f=t.portalId,c=t.portalHost,h=t.popperProps,g=t.showArrow,p;if(!i){var m=An("react-datepicker-popper",a);p=le.createElement(dP,{enableTabLoop:r},le.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:m,"data-placement":h.placement,onKeyDown:l},u,g&&le.createElement(r5e,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(p=le.createElement(this.props.popperContainer,{},p)),f&&!i&&(p=le.createElement(lP,{portalId:f,portalHost:c},p));var y=An("react-datepicker-wrapper",d);return le.createElement(le.Fragment,null,le.createElement("div",{ref:h.refs.setReference,className:y},o),p)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}])}(le.Component),f8e=c8e(h8e),cP="react-datepicker-ignore-onclickoutside",m8e=Jc(o8e);function p8e(n,s){return n&&s?Vn(n)!==Vn(s)||Ut(n)!==Ut(s):n!==s}var U3="Date input not valid.",hP=function(n){function s(e){var t;return Wn(this,s),t=jn(this,s,[e]),ue(t,"getPreSelection",function(){return t.props.openToDate?t.props.openToDate:t.props.selectsEnd&&t.props.startDate?t.props.startDate:t.props.selectsStart&&t.props.endDate?t.props.endDate:cn()}),ue(t,"modifyHolidays",function(){var a;return(a=t.props.holidays)===null||a===void 0?void 0:a.reduce(function(d,i){var u=new Date(i.date);return vr(u)?[].concat(ni(d),[ka(ka({},i),{},{date:u})]):d},[])}),ue(t,"calcInitialState",function(){var a,d=t.getPreSelection(),i=Z6(t.props),u=J6(t.props),o=i&&Ya(d,Dr(i))?i:u&&wa(d,xi(u))?u:d;return{open:t.props.startOpen||!1,preventFocus:!1,preSelection:(a=t.props.selectsRange?t.props.startDate:t.props.selected)!==null&&a!==void 0?a:o,highlightDates:eP(t.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ue(t,"clearPreventFocusTimeout",function(){t.preventFocusTimeout&&clearTimeout(t.preventFocusTimeout)}),ue(t,"setFocus",function(){t.input&&t.input.focus&&t.input.focus({preventScroll:!0})}),ue(t,"setBlur",function(){t.input&&t.input.blur&&t.input.blur(),t.cancelFocusInput()}),ue(t,"setOpen",function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t.setState({open:a,preSelection:a&&t.state.open?t.state.preSelection:t.calcInitialState().preSelection,lastPreSelectChange:G3},function(){a||t.setState(function(i){return{focused:d?i.focused:!1}},function(){!d&&t.setBlur(),t.setState({inputValue:null})})})}),ue(t,"inputOk",function(){return Aa(t.state.preSelection)}),ue(t,"isCalendarOpen",function(){return t.props.open===void 0?t.state.open&&!t.props.disabled&&!t.props.readOnly:t.props.open}),ue(t,"handleFocus",function(a){t.state.preventFocus||(t.props.onFocus(a),!t.props.preventOpenOnFocus&&!t.props.readOnly&&t.setOpen(!0)),t.setState({focused:!0})}),ue(t,"sendFocusBackToInput",function(){t.preventFocusTimeout&&t.clearPreventFocusTimeout(),t.setState({preventFocus:!0},function(){t.preventFocusTimeout=setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})})}),ue(t,"cancelFocusInput",function(){clearTimeout(t.inputFocusTimeout),t.inputFocusTimeout=null}),ue(t,"deferFocusInput",function(){t.cancelFocusInput(),t.inputFocusTimeout=setTimeout(function(){return t.setFocus()},1)}),ue(t,"handleDropdownFocus",function(){t.cancelFocusInput()}),ue(t,"handleBlur",function(a){(!t.state.open||t.props.withPortal||t.props.showTimeInput)&&t.props.onBlur(a),t.setState({focused:!1})}),ue(t,"handleCalendarClickOutside",function(a){t.props.inline||t.setOpen(!1),t.props.onClickOutside(a),t.props.withPortal&&a.preventDefault()}),ue(t,"handleChange",function(){for(var a=arguments.length,d=new Array(a),i=0;i<a;i++)d[i]=arguments[i];var u=d[0];if(!(t.props.onChangeRaw&&(t.props.onChangeRaw.apply(t,d),typeof u.isDefaultPrevented!="function"||u.isDefaultPrevented()))){t.setState({inputValue:u.target.value,lastPreSelectChange:g8e});var o=y5e(u.target.value,t.props.dateFormat,t.props.locale,t.props.strictParsing,t.props.minDate);t.props.showTimeSelectOnly&&t.props.selected&&o&&!un(o,t.props.selected)&&(o=b4(t.props.selected,{hours:zr(o),minutes:Hr(o),seconds:aa(o)})),(o||!u.target.value)&&t.setSelected(o,u,!0)}}),ue(t,"handleSelect",function(a,d,i){if(t.props.shouldCloseOnSelect&&!t.props.showTimeSelect&&t.sendFocusBackToInput(),t.props.onChangeRaw&&t.props.onChangeRaw(d),t.setSelected(a,d,!1,i),t.props.showDateSelect&&t.setState({isRenderAriaLiveMessage:!0}),!t.props.shouldCloseOnSelect||t.props.showTimeSelect)t.setPreSelection(a);else if(!t.props.inline){t.props.selectsRange||t.setOpen(!1);var u=t.props,o=u.startDate,r=u.endDate;o&&!r&&(t.props.swapRange||!aP(a,o))&&t.setOpen(!1)}}),ue(t,"setSelected",function(a,d,i,u){var o=a;if(t.props.showYearPicker){if(o!==null&&V6(Ut(o),t.props))return}else if(t.props.showMonthYearPicker){if(o!==null&&ch(o,t.props))return}else if(o!==null&&dh(o,t.props))return;var r=t.props,l=r.onChange,f=r.selectsRange,c=r.startDate,h=r.endDate,g=r.selectsMultiple,p=r.selectedDates,m=r.minTime,y=r.swapRange;if(!Oi(t.props.selected,o)||t.props.allowSameDay||f||g)if(o!==null&&(t.props.selected&&(!i||!t.props.showTimeSelect&&!t.props.showTimeSelectOnly&&!t.props.showTimeInput)&&(o=B3(o,{hour:zr(t.props.selected),minute:Hr(t.props.selected),second:aa(t.props.selected)})),!i&&(t.props.showTimeSelect||t.props.showTimeSelectOnly)&&m&&(o=B3(o,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),t.props.inline||t.setState({preSelection:o}),t.props.focusSelectedMonth||t.setState({monthSelectedIn:u})),f){var b=!c&&!h,M=c&&!h,S=c&&h;b?l([o,null],d):M&&(o===null?l([null,null],d):aP(o,c)?l(y?[o,c]:[o,null],d):l([c,o],d)),S&&l([o,null],d)}else if(g)if(!(p!=null&&p.length))l([o],d);else{var C=p.some(function(H){return un(H,o)});if(C){var N=p.filter(function(H){return!un(H,o)});l(N,d)}else l([].concat(ni(p),[o]),d)}else l(o,d);i||(t.props.onSelect(o,d),t.setState({inputValue:null}))}),ue(t,"setPreSelection",function(a){var d=typeof t.props.minDate<"u",i=typeof t.props.maxDate<"u",u=!0;if(a){var o=Dr(a);if(d&&i)u=Cd(a,t.props.minDate,t.props.maxDate);else if(d){var r=Dr(t.props.minDate);u=wa(a,r)||Oi(o,r)}else if(i){var l=xi(t.props.maxDate);u=Ya(a,l)||Oi(o,l)}}u&&t.setState({preSelection:a})}),ue(t,"toggleCalendar",function(){t.setOpen(!t.state.open)}),ue(t,"handleTimeChange",function(a){var d=t.props.selected?t.props.selected:t.getPreSelection(),i=t.props.selected?a:B3(d,{hour:zr(a),minute:Hr(a)});t.setState({preSelection:i}),t.props.onChange(i),t.props.shouldCloseOnSelect&&(t.sendFocusBackToInput(),t.setOpen(!1)),t.props.showTimeInput&&t.setOpen(!0),(t.props.showTimeSelectOnly||t.props.showTimeSelect)&&t.setState({isRenderAriaLiveMessage:!0}),t.setState({inputValue:null})}),ue(t,"onInputClick",function(){!t.props.disabled&&!t.props.readOnly&&t.setOpen(!0),t.props.onInputClick()}),ue(t,"onInputKeyDown",function(a){t.props.onKeyDown(a);var d=a.key;if(!t.state.open&&!t.props.inline&&!t.props.preventOpenOnFocus){(d==="ArrowDown"||d==="ArrowUp"||d==="Enter")&&t.onInputClick();return}if(t.state.open){if(d==="ArrowDown"||d==="ArrowUp"){a.preventDefault();var i=t.props.showWeekPicker&&t.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':t.props.showFullMonthYearPicker||t.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=t.calendar.componentNode&&t.calendar.componentNode.querySelector(i);u&&u.focus({preventScroll:!0});return}var o=cn(t.state.preSelection);d==="Enter"?(a.preventDefault(),t.inputOk()&&t.state.lastPreSelectChange===G3?(t.handleSelect(o,a),!t.props.shouldCloseOnSelect&&t.setPreSelection(o)):t.setOpen(!1)):d==="Escape"?(a.preventDefault(),t.sendFocusBackToInput(),t.setOpen(!1)):d==="Tab"&&t.setOpen(!1),t.inputOk()||t.props.onInputError({code:1,msg:U3})}}),ue(t,"onPortalKeyDown",function(a){var d=a.key;d==="Escape"&&(a.preventDefault(),t.setState({preventFocus:!0},function(){t.setOpen(!1),setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})}))}),ue(t,"onDayKeyDown",function(a){t.props.onKeyDown(a);var d=a.key,i=a.shiftKey,u=cn(t.state.preSelection);if(d==="Enter")a.preventDefault(),t.handleSelect(u,a),!t.props.shouldCloseOnSelect&&t.setPreSelection(u);else if(d==="Escape")a.preventDefault(),t.setOpen(!1),t.inputOk()||t.props.onInputError({code:1,msg:U3});else if(!t.props.disabledKeyboardNavigation){var o;switch(d){case"ArrowLeft":t.props.showWeekPicker?o=Sf(u,1):o=Xo(u,1);break;case"ArrowRight":t.props.showWeekPicker?o=_i(u,1):o=sr(u,1);break;case"ArrowUp":o=Sf(u,1);break;case"ArrowDown":o=_i(u,1);break;case"PageUp":o=i?$i(u,1):Ua(u,1);break;case"PageDown":o=i?Jr(u,1):br(u,1);break;case"Home":o=ai(u,t.props.locale,t.props.calendarStartDay);break;case"End":o=P5e(u);break;default:o=null;break}if(!o){t.props.onInputError&&t.props.onInputError({code:1,msg:U3});return}if(a.preventDefault(),t.setState({lastPreSelectChange:G3}),t.props.adjustDateOnChange&&t.setSelected(o),t.setPreSelection(o),t.props.inline){var r=Vn(u),l=Vn(o),f=Ut(u),c=Ut(o);r!==l||f!==c?t.setState({shouldFocusDayInline:!0}):t.setState({shouldFocusDayInline:!1})}}}),ue(t,"onPopperKeyDown",function(a){var d=a.key;d==="Escape"&&(a.preventDefault(),t.sendFocusBackToInput())}),ue(t,"onClearClick",function(a){a&&a.preventDefault&&a.preventDefault(),t.sendFocusBackToInput(),t.props.selectsRange?t.props.onChange([null,null],a):t.props.onChange(null,a),t.setState({inputValue:null})}),ue(t,"clear",function(){t.onClearClick()}),ue(t,"onScroll",function(a){typeof t.props.closeOnScroll=="boolean"&&t.props.closeOnScroll?(a.target===document||a.target===document.documentElement||a.target===document.body)&&t.setOpen(!1):typeof t.props.closeOnScroll=="function"&&t.props.closeOnScroll(a)&&t.setOpen(!1)}),ue(t,"renderCalendar",function(){return!t.props.inline&&!t.isCalendarOpen()?null:le.createElement(m8e,{ref:function(d){t.calendar=d},locale:t.props.locale,calendarStartDay:t.props.calendarStartDay,chooseDayAriaLabelPrefix:t.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:t.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:t.props.weekAriaLabelPrefix,monthAriaLabelPrefix:t.props.monthAriaLabelPrefix,adjustDateOnChange:t.props.adjustDateOnChange,setOpen:t.setOpen,shouldCloseOnSelect:t.props.shouldCloseOnSelect,dateFormat:t.props.dateFormatCalendar,useWeekdaysShort:t.props.useWeekdaysShort,formatWeekDay:t.props.formatWeekDay,dropdownMode:t.props.dropdownMode,selected:t.props.selected,preSelection:t.state.preSelection,onSelect:t.handleSelect,onWeekSelect:t.props.onWeekSelect,openToDate:t.props.openToDate,minDate:t.props.minDate,maxDate:t.props.maxDate,selectsStart:t.props.selectsStart,selectsEnd:t.props.selectsEnd,selectsRange:t.props.selectsRange,selectsMultiple:t.props.selectsMultiple,selectedDates:t.props.selectedDates,startDate:t.props.startDate,endDate:t.props.endDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,filterDate:t.props.filterDate,onClickOutside:t.handleCalendarClickOutside,formatWeekNumber:t.props.formatWeekNumber,highlightDates:t.state.highlightDates,holidays:W5e(t.modifyHolidays()),includeDates:t.props.includeDates,includeDateIntervals:t.props.includeDateIntervals,includeTimes:t.props.includeTimes,injectTimes:t.props.injectTimes,inline:t.props.inline,shouldFocusDayInline:t.state.shouldFocusDayInline,peekNextMonth:t.props.peekNextMonth,showMonthDropdown:t.props.showMonthDropdown,showPreviousMonths:t.props.showPreviousMonths,useShortMonthInDropdown:t.props.useShortMonthInDropdown,showMonthYearDropdown:t.props.showMonthYearDropdown,showWeekNumbers:t.props.showWeekNumbers,showYearDropdown:t.props.showYearDropdown,withPortal:t.props.withPortal,forceShowMonthNavigation:t.props.forceShowMonthNavigation,showDisabledMonthNavigation:t.props.showDisabledMonthNavigation,scrollableYearDropdown:t.props.scrollableYearDropdown,scrollableMonthYearDropdown:t.props.scrollableMonthYearDropdown,todayButton:t.props.todayButton,weekLabel:t.props.weekLabel,outsideClickIgnoreClass:cP,fixedHeight:t.props.fixedHeight,monthsShown:t.props.monthsShown,monthSelectedIn:t.state.monthSelectedIn,onDropdownFocus:t.handleDropdownFocus,onMonthChange:t.props.onMonthChange,onYearChange:t.props.onYearChange,dayClassName:t.props.dayClassName,weekDayClassName:t.props.weekDayClassName,monthClassName:t.props.monthClassName,timeClassName:t.props.timeClassName,showDateSelect:t.props.showDateSelect,showTimeSelect:t.props.showTimeSelect,showTimeSelectOnly:t.props.showTimeSelectOnly,onTimeChange:t.handleTimeChange,timeFormat:t.props.timeFormat,timeIntervals:t.props.timeIntervals,minTime:t.props.minTime,maxTime:t.props.maxTime,excludeTimes:t.props.excludeTimes,filterTime:t.props.filterTime,timeCaption:t.props.timeCaption,className:t.props.calendarClassName,container:t.props.calendarContainer,yearItemNumber:t.props.yearItemNumber,yearDropdownItemNumber:t.props.yearDropdownItemNumber,previousMonthAriaLabel:t.props.previousMonthAriaLabel,previousMonthButtonLabel:t.props.previousMonthButtonLabel,nextMonthAriaLabel:t.props.nextMonthAriaLabel,nextMonthButtonLabel:t.props.nextMonthButtonLabel,previousYearAriaLabel:t.props.previousYearAriaLabel,previousYearButtonLabel:t.props.previousYearButtonLabel,nextYearAriaLabel:t.props.nextYearAriaLabel,nextYearButtonLabel:t.props.nextYearButtonLabel,timeInputLabel:t.props.timeInputLabel,disabledKeyboardNavigation:t.props.disabledKeyboardNavigation,renderCustomHeader:t.props.renderCustomHeader,popperProps:t.props.popperProps,renderDayContents:t.props.renderDayContents,renderMonthContent:t.props.renderMonthContent,renderQuarterContent:t.props.renderQuarterContent,renderYearContent:t.props.renderYearContent,onDayMouseEnter:t.props.onDayMouseEnter,onMonthMouseLeave:t.props.onMonthMouseLeave,onYearMouseEnter:t.props.onYearMouseEnter,onYearMouseLeave:t.props.onYearMouseLeave,selectsDisabledDaysInRange:t.props.selectsDisabledDaysInRange,showTimeInput:t.props.showTimeInput,showMonthYearPicker:t.props.showMonthYearPicker,showFullMonthYearPicker:t.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:t.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:t.props.showFourColumnMonthYearPicker,showYearPicker:t.props.showYearPicker,showQuarterYearPicker:t.props.showQuarterYearPicker,showWeekPicker:t.props.showWeekPicker,excludeScrollbar:t.props.excludeScrollbar,handleOnKeyDown:t.props.onKeyDown,handleOnDayKeyDown:t.onDayKeyDown,isInputFocused:t.state.focused,customTimeInput:t.props.customTimeInput,setPreSelection:t.setPreSelection,usePointerEvent:t.props.usePointerEvent,yearClassName:t.props.yearClassName},t.props.children)}),ue(t,"renderAriaLiveRegion",function(){var a=t.props,d=a.dateFormat,i=a.locale,u=t.props.showTimeInput||t.props.showTimeSelect,o=u?"PPPPp":"PPPP",r;return t.props.selectsRange?r="Selected start date: ".concat(Cr(t.props.startDate,{dateFormat:o,locale:i}),". ").concat(t.props.endDate?"End date: "+Cr(t.props.endDate,{dateFormat:o,locale:i}):""):t.props.showTimeSelectOnly?r="Selected time: ".concat(Cr(t.props.selected,{dateFormat:d,locale:i})):t.props.showYearPicker?r="Selected year: ".concat(Cr(t.props.selected,{dateFormat:"yyyy",locale:i})):t.props.showMonthYearPicker?r="Selected month: ".concat(Cr(t.props.selected,{dateFormat:"MMMM yyyy",locale:i})):t.props.showQuarterYearPicker?r="Selected quarter: ".concat(Cr(t.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):r="Selected date: ".concat(Cr(t.props.selected,{dateFormat:o,locale:i})),le.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r)}),ue(t,"renderDateInput",function(){var a,d=An(t.props.className,ue({},cP,t.state.open)),i=t.props.customInput||le.createElement("input",{type:"text"}),u=t.props.customInputRef||"ref",o=typeof t.props.value=="string"?t.props.value:typeof t.state.inputValue=="string"?t.state.inputValue:t.props.selectsRange?w5e(t.props.startDate,t.props.endDate,t.props):t.props.selectsMultiple?_5e(t.props.selectedDates,t.props):Cr(t.props.selected,t.props);return le.cloneElement(i,(a={},ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(a,u,function(r){t.input=r}),"value",o),"onBlur",t.handleBlur),"onChange",t.handleChange),"onClick",t.onInputClick),"onFocus",t.handleFocus),"onKeyDown",t.onInputKeyDown),"id",t.props.id),"name",t.props.name),"form",t.props.form),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(a,"autoFocus",t.props.autoFocus),"placeholder",t.props.placeholderText),"disabled",t.props.disabled),"autoComplete",t.props.autoComplete),"className",An(i.props.className,d)),"title",t.props.title),"readOnly",t.props.readOnly),"required",t.props.required),"tabIndex",t.props.tabIndex),"aria-describedby",t.props.ariaDescribedBy),ue(ue(ue(a,"aria-invalid",t.props.ariaInvalid),"aria-labelledby",t.props.ariaLabelledBy),"aria-required",t.props.ariaRequired)))}),ue(t,"renderClearButton",function(){var a=t.props,d=a.isClearable,i=a.disabled,u=a.selected,o=a.startDate,r=a.endDate,l=a.clearButtonTitle,f=a.clearButtonClassName,c=f===void 0?"":f,h=a.ariaLabelClose,g=h===void 0?"Close":h,p=a.selectedDates;return d&&(u!=null||o!=null||r!=null||p!=null&&p.length)?le.createElement("button",{type:"button",className:An("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":g,onClick:t.onClearClick,title:l,tabIndex:-1}):null}),t.state=t.calcInitialState(),t.preventFocusTimeout=null,t}return Nn(s,n),Ln(s,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(t,a){t.inline&&p8e(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:eP(this.props.highlightDates)}),!a.focused&&!Oi(t.selected,this.props.selected)&&this.setState({inputValue:null}),a.open!==this.state.open&&(a.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),a.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var t=this.props,a=t.showIcon,d=t.icon,i=t.calendarIconClassname,u=t.toggleCalendarOnIconClick,o=this.state.open;return le.createElement("div",{className:"react-datepicker__input-container".concat(a?" react-datepicker__view-calendar-icon":"")},a&&le.createElement(u8e,Sd({icon:d,className:"".concat(i," ").concat(o&&"react-datepicker-ignore-onclickoutside")},u?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var a=this.state.open?le.createElement(dP,{enableTabLoop:this.props.enableTabLoop},le.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(a=le.createElement(lP,{portalId:this.props.portalId,portalHost:this.props.portalHost},a)),le.createElement("div",null,this.renderInputContainer(),a)}return le.createElement(f8e,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:t,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop,showArrow:this.props.showPopperArrow})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Dd,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}}}])}(le.Component),g8e="input",G3="navigate";const b8e={[xa.GT]:">",[xa.LT]:"<",[xa.EQ]:"="},v8e=le.memo(({columnFilterValue:n,onChange:s,onInputKeyDown:e,propIsRequired:t,propName:a,propSchema:d,translate:i})=>{const{displayTimezone:u}=le.useContext(mo),{type:o,format:r,minimum:l,maximum:f}=d||{},c=n,h=r==="date-time";switch(o){case"number":case"integer":const g=c||{},p=(b,M,S)=>{const C={...g,[b]:M.value===""?void 0:parseInt(M.value)},N=Object.values(C).find(H=>isFinite(H));s(N!==void 0&&(l===void 0||N>=l)?C:void 0,S)};return Ke.jsxs("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:[t?null:Ke.jsxs("li",{style:{padding:8},children:[Ke.jsxs("label",{className:"d-flex",children:[Ke.jsx("input",{type:"checkbox",style:{marginRight:14},checked:!!g.filterEmpty,onChange:()=>{const{filterEmpty:b,...M}=g;b||(M.filterEmpty=!0),s(Object.keys(M).length?M:void 0,!0)}}),"Hide empty values"]}),Ke.jsx("hr",{})]}),Object.keys(xa).map(b=>{const M=g[b];return Ke.jsxs("li",{children:[Ke.jsx("label",{style:{width:40,paddingLeft:16},children:b8e[b]}),Ke.jsx("input",{className:"form-control",style:{width:120},type:"number",value:M!==void 0?M:"","data-prop-name":a,onChange:S=>{p(b,S.currentTarget,!1)},onBlur:S=>{p(b,S.currentTarget,!0)},onKeyDown:e,min:l,max:f})]},b)})]});case"boolean":const m=["✓","✕"];t||m.push("?");let y=c?"✓":"✕";return c===null&&(y="?"),c===void 0&&(y=""),Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsxs("select",{autoFocus:!0,className:"form-select",value:y,"data-prop-name":a,onChange:b=>{switch(b.currentTarget.value){case"✓":s(!0,!0);break;case"✕":s(!1,!0);break;case"?":s(null,!0);break;default:s(void 0,!0)}},children:[Ke.jsx("option",{value:"",children:"All"},"all"),m.map(b=>Ke.jsx("option",{value:b,children:b},`column-filter-select-${b}`))]})})});case"string":if(d!=null&&d.enum)return Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsxs("select",{autoFocus:!0,className:"form-select",value:c,"data-prop-name":a,onChange:b=>{s(b.currentTarget.value||void 0,!0)},children:[Ke.jsx("option",{value:"",children:"All"},"all"),d.enum.map(b=>Ke.jsx("option",{value:b,children:i(b)},`column-filter-select-${b}`))]})})});if(h||r==="date"){const b=h?xd:x3,M=n||{from:void 0,to:void 0,filterEmpty:void 0};return Ke.jsxs("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:[t?null:Ke.jsxs("li",{style:{padding:8},children:[Ke.jsxs("label",{className:"d-flex",children:[Ke.jsx("input",{type:"checkbox",checked:!!M.filterEmpty,onChange:()=>{const{filterEmpty:S,...C}=M;S||(C.filterEmpty=!0),s(Object.keys(C).length?C:void 0,!0)}}),"Hide empty values"]}),Ke.jsx("hr",{})]}),Ke.jsxs("li",{style:{padding:8},children:[Ke.jsx("label",{style:{width:120,paddingLeft:4},children:"After"}),Ke.jsx(hP,{dateFormat:b,"data-prop-name":a,locale:Df,selected:M.from?so.toZonedTime(M.from,u||wn.timeZone):null,onChange:S=>{if(!S&&!M.to){s(void 0,!0);return}if(M.to&&S&&S>M.to)return;const C=S?so.fromZonedTime(S,u||wn.timeZone):void 0;s({...n,from:C},!0)},placeholderText:b,isClearable:!0,selectsStart:!0,showTimeSelect:h,showTimeInput:h,showMonthDropdown:!0,showYearDropdown:!0,timeIntervals:15,shouldCloseOnSelect:!h})]}),Ke.jsxs("li",{style:{padding:8},children:[Ke.jsx("label",{style:{width:120,paddingLeft:4},children:"Before"}),Ke.jsx(hP,{id:"filter-date",dateFormat:b,"data-prop-name":a,locale:Df,selectsEnd:!0,selected:M.to?so.toZonedTime(M.to,u||wn.timeZone):null,showMonthDropdown:!0,showYearDropdown:!0,onChange:S=>{if(!S&&!M.from){s(void 0,!0);return}const C=S?h?so.fromZonedTime(S,u||wn.timeZone):xi(S):void 0;M.from&&C&&C<M.from||s({...n,to:C},!0)},placeholderText:b,isClearable:!0,startDate:M.from,endDate:M.to,showTimeInput:h,showTimeSelect:h,timeIntervals:15,shouldCloseOnSelect:!h})]})]})}default:return Ke.jsx("ol",{className:"mig-schema-table-menu mig-schema-table__th-menu__filter-menu-component",children:Ke.jsx("li",{children:Ke.jsx("input",{autoFocus:!0,type:"search",className:"form-control",placeholder:`Search ${a}`,"aria-label":`Search ${a}`,value:c||"","data-prop-name":a,onChange:b=>{s(b.currentTarget.value||void 0,!1)},onKeyDown:e,onBlur:b=>{s(b.currentTarget.value||void 0,!0)}})})})}}),y8e=({isSortable:n,isFilterable:s,onChange:e,onClose:t,onInputKeyDown:a,propConfig:d,propIsRequired:i,propName:u,propSchema:o,referenceElement:r,setFilterSortColumn:l,translate:f,value:c})=>{const h=L3({placement:"bottom-start",elements:{reference:r},middleware:[N3()]}),g=L3({placement:"right-start",middleware:[N3()]});le.useEffect(()=>{const M=S=>{if(!h.elements.floating)return;let C=S.target;for(;C&&h.elements.floating;){if(C===h.elements.floating||C===g.elements.floating)return;C=C.parentNode===window.document?null:C.parentNode}t(S)};return window.addEventListener("click",M,{capture:!0}),()=>{window.removeEventListener("click",M,{capture:!0})}},[h.elements.floating,t,g.elements.floating]);const p=(d==null?void 0:d.FilterMenu)||v8e,m=le.useCallback(M=>{l(u,!0),t(M)},[t,u,l]),y=le.useCallback(M=>{l(u,!1),t(M)},[t,u,l]),b=le.useCallback(()=>{e(void 0,!0)},[e]);return!n&&!s?null:Ke.jsxs(Ke.Fragment,{children:[Ke.jsx("div",{className:"mig-schema-table mig-schema-table__th-menu",ref:h.refs.setFloating,style:h.floatingStyles,children:Ke.jsxs("ol",{className:"mig-schema-table-menu",children:[n?Ke.jsxs("li",{onClick:m,style:{padding:8},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:"↓"})," ",f("sortAscending")]}):null,n?Ke.jsxs("li",{onClick:y,style:{padding:8},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:"↑"})," ",f("sortDescending")]}):null,s?Ke.jsxs("li",{style:{padding:8},onMouseOver:M=>{g.refs.setReference(M.currentTarget)},children:[Ke.jsx("span",{className:"mig-schema-table__th-menu__icon",children:Ke.jsx("input",{type:"checkbox",id:"mig-schema-table__th-menu__filters",checked:c!==void 0,disabled:c===void 0,onChange:b})}),Ke.jsx("label",{htmlFor:"mig-schema-table__th-menu__filters",children:f("filters")}),Ke.jsx("div",{className:"mig-schema-table__th-menu__sub-menu-indicator"})]}):null]})}),g.elements.reference?Ke.jsx("div",{className:"mig-schema-table mig-schema-table__th-menu__sub-menu",ref:g.refs.setFloating,style:g.floatingStyles,children:Ke.jsx(p,{columnFilterValue:c,onChange:e,onInputKeyDown:a,propIsRequired:i,propName:u,propSchema:o,translate:f})}):null]})},w8e=le.memo(y8e),_8e=({columnWidths:n,resizeColumnIndex:s,setResizeColumnIndex:e,tableBodyHeight:t})=>{const[a,d]=le.useState(0),i=c6(),u=le.useCallback(f=>{const c=n.map((h,g)=>g===s?Math.max(h+f,M3):h);i(c)},[n,s,i]);let o=0;const r=le.useCallback(f=>{e(parseInt(f.currentTarget.dataset.columnIndex)),d(f.clientX)},[e]),l=le.useCallback(f=>{u(f.clientX-a),d(0),e(-1)},[a,u,e]);return Ke.jsx("div",{children:n.map((f,c)=>{o+=f;const h=["mig-schema-table__column_resizer"];return c===s&&h.push("mig-schema-table__column_resizer--dragged"),Ke.jsx("div",{style:{left:o-u6,bottom:t},className:h.join(" "),draggable:"true","data-column-index":c,onDragStart:r,onDragEnd:l},c)})})};function fP(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function x8e(n){var s=n.lastRenderedStartIndex,e=n.lastRenderedStopIndex,t=n.startIndex,a=n.stopIndex;return!(t>e||a<s)}function M8e(n){for(var s=n.isItemLoaded,e=n.itemCount,t=n.minimumBatchSize,a=n.startIndex,d=n.stopIndex,i=[],u=null,o=null,r=a;r<=d;r++){var l=s(r);l?o!==null&&(i.push(u,o),u=o=null):(o=r,u===null&&(u=r))}if(o!==null){for(var f=Math.min(Math.max(o,u+t-1),e-1),c=o+1;c<=f&&!s(c);c++)o=c;i.push(u,o)}if(i.length)for(;i[1]-i[0]+1<t&&i[0]>0;){var h=i[0]-1;if(!s(h))i[0]=h;else break}return i}var k8e=function(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")},P8e=function(){function n(s,e){for(var t=0;t<e.length;t++){var a=e[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,e,t){return e&&n(s.prototype,e),t&&n(s,t),s}}(),$8e=function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)},mP=function(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:n},S8e=function(n){$8e(s,n);function s(){var e,t,a,d;k8e(this,s);for(var i=arguments.length,u=Array(i),o=0;o<i;o++)u[o]=arguments[o];return d=(t=(a=mP(this,(e=s.__proto__||Object.getPrototypeOf(s)).call.apply(e,[this].concat(u))),a),a._lastRenderedStartIndex=-1,a._lastRenderedStopIndex=-1,a._memoizedUnloadedRanges=[],a._onItemsRendered=function(r){var l=r.visibleStartIndex,f=r.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!fP(l)||!fP(f))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof a.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),a._lastRenderedStartIndex=l,a._lastRenderedStopIndex=f,a._ensureRowsLoaded(l,f)},a._setRef=function(r){a._listRef=r},t),mP(a,d)}return P8e(s,[{key:"resetloadMoreItemsCache",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],t&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var t=this.props.children;return t({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(t,a){var d=this.props,i=d.isItemLoaded,u=d.itemCount,o=d.minimumBatchSize,r=o===void 0?10:o,l=d.threshold,f=l===void 0?15:l,c=M8e({isItemLoaded:i,itemCount:u,minimumBatchSize:r,startIndex:Math.max(0,t-f),stopIndex:Math.min(u-1,a+f)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(h,g){return c[g]!==h}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(t){for(var a=this,d=this.props.loadMoreItems||this.props.loadMoreRows,i=function(r){var l=t[r],f=t[r+1],c=d(l,f);c!=null&&c.then(function(){if(x8e({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:l,stopIndex:f})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(l,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},u=0;u<t.length;u+=2)i(u)}}]),s}(le.PureComponent);const pP=new Date("1000-01-01 00:00:00Z"),D8e=new Intl.NumberFormat("nl-NL"),T8e=new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR"});function C8e(n,s){const{TdBody:e,sortByValue:t}=s||{};if(t!==void 0)return t;if(!n)return!1;const{format:a,type:d}=n;return(a==null?void 0:a.startsWith("date"))||d==="boolean"||d==="integer"||d==="number"||!!e}const E8e=({Heading:n=V8,checkedIndexes:s,config:e,CustomElement:t,customElementProps:a,data:d,defaultColumnFilters:i,defaultSortAsc:u=!1,defaultSortColumn:o,disabledCheckedIndexes:r,enableAutoFocus:l=!0,enableRowCounter:f=!0,getRowClassName:c,getRowSelected:h,infiniteLoaderRef:g,isColumnFilterable:p=!0,isExportable:m=!0,isResizable:y=!0,isSearchable:b=!0,isSortable:M=!0,maxHeight:S,setCheckedIndexes:C,onRowClick:N,onRowDoubleClick:H,onSearchEnter:L,onTableDataStateChange:z,rowHeight:B=36,schema:X,searchPlaceholder:V,settingsStorageKey:D,style:E,translate:P=o6,useFilterStateHash:w,width:_,tableRef:x,loadMoreItems:k,itemCount:T,displayTimezone:j,autoRender:A})=>{var Ee;const[q,U]=le.useState(),[ee,R]=le.useState(),[K,O]=le.useState(-1),[F,Y]=le.useState(-1),[Q,ie]=le.useState(),[J,ae]=le.useState(),pe=d instanceof Function,[he,te]=le.useState(pe?void 0:d),[de,ce]=le.useState(),[fe,be]=le.useState({searchQuery:"",columnFilterMap:i||{},sortColumn:o,sortAsc:u}),[we,Se]=le.useState(w?wn.parseLocationHash(window.location.hash):null);le.useEffect(()=>{pe||te(d)},[d,pe]),le.useEffect(()=>{!pe||he!==void 0||d(we&&Object.keys(we).length!==0?{...we,columnFilterMap:we.columnFilterMap||{}}:fe).then(te)},[d,pe,we,he,fe]),le.useEffect(()=>{de||ce(fe)},[fe,de]),le.useEffect(()=>{if(!w)return;const $e=()=>{Se(wn.parseLocationHash(window.location.hash))};return window.addEventListener("hashchange",$e),()=>{window.removeEventListener("hashchange",$e)}},[w]),le.useEffect(()=>{if(!w)return;const{columnFilterMap:$e,searchQuery:Ie,sortAsc:ne,sortColumn:ye}=we||{},I={searchQuery:Ie||"",columnFilterMap:$e||i||{},sortAsc:ne===void 0?u:ne,sortColumn:ye===void 0?o:ye};be(De=>Ja.isEqual(I,De)?De:I)},[we,w,i,u,o]),le.useEffect(()=>{z&&z(fe)},[z,fe]);const Te=le.useMemo(()=>!Ja.isEqual(fe,de)&&pe,[fe,de,pe]),{properties:Oe,required:Qe}=le.useMemo(()=>({properties:{},required:[],...X}),[X]),Be=D?localStorage.getItem(`${D}.columnNames`):null,He=D?localStorage.getItem(`${D}.columnWidths`):null,rt=le.useMemo(()=>{if(q)return q;const $e=Be?JSON.parse(Be):void 0;let Ie=Object.keys(Oe);if(C&&Ie.unshift(Vr),e){Object.keys(e).forEach(ye=>{Ie.includes(ye)||Ie.push(ye)});const ne=Object.entries(e).reduce((ye,[I,De])=>(De.hidden&&ye.push(I),ye),[]);Ie=Ie.filter(ye=>!ne.includes(ye)).sort((ye,I)=>{let De=e[ye]?e[ye].order:void 0;De===void 0&&(De=Object.keys(Oe).findIndex(Ve=>Ve===ye));let We=e[I]?e[I].order:void 0;return We===void 0&&(We=Object.keys(Oe).findIndex(Ve=>Ve===I)),I===Vr||ye===Vr?0:De===-1?1:We===-1?-1:De-We})}return($e==null?void 0:$e.length)===Ie.length?$e:Ie},[e,q,C,Oe,Be]),st=le.useMemo(()=>he&&rt?he.map(($e,Ie)=>rt.reduce((ne,ye)=>{var Ve;const I=Oe[ye],De=e?e[ye]:void 0;if(De!=null&&De.renderData)return ne[ye]=De.renderData($e,Ie),ne;if(!I||ye===Vr)return ne[ye]="",ne;const We=$e?$e[ye]:"";switch(I.type){case"array":return ne[ye]=((Ve=I.items)==null?void 0:Ve.type)==="string"&&We?We.map(Ye=>P(Ye)).join(", "):JSON.stringify(We),ne;case"boolean":return ne[ye]=We===void 0?"?":We?"✓":"✕",ne;case"number":case"integer":return We===void 0?(ne[ye]="",ne):(ne[ye]=I.format==="currency"?T8e.format(We):D8e.format(We),ne);case"string":if(I.format==="date"&&We)return ne[ye]=["2999-12-31","1970-01-01"].includes(We)?"-":Tf(new Date(We),(De==null?void 0:De.dateFormat)||x3),ne;if(I.format==="date-time"&&We)return ne[ye]=j?wn.localeFormatInTimeZone(new Date(We),j,xd):Tf(new Date(We),(De==null?void 0:De.dateFormat)||xd),ne;if(I.enum)return ne[ye]=We?P(We):"",ne;default:return ne[ye]=We?`${We}`:"",ne}},{_index:Ie})):void 0,[he,rt,Oe,e,P,j]),at=rt?rt.length:0,{dynamicWidthColumnCount:ut,fixedWidthColumnsWidth:Ge}=le.useMemo(()=>{let $e=0,Ie=0;return(rt||[]).forEach(ne=>{if(ne===Vr){$e+=s6;return}const ye=e?e[ne]:void 0;ye!=null&&ye.width?$e+=ye.width:Ie+=1},0),{dynamicWidthColumnCount:Ie,fixedWidthColumnsWidth:$e}},[rt,e]),Ae=le.useMemo(()=>{if(ee)return ee;const $e=He?JSON.parse(He):void 0,Ie=Math.max(Math.floor((_-Ge)/ut),M3);let ne=(_-Ge)%ut;const ye=rt.map(I=>{if(I===Vr)return s6;const De=e?e[I]:void 0;return De!=null&&De.width?De==null?void 0:De.width:ne?(ne-=1,Ie+1):Ie});return($e==null?void 0:$e.length)===ye.length?$e:ye},[rt,e,ee,ut,Ge,He,_]),Ze=le.useCallback($e=>Ae?Ae[$e]:1,[Ae]),it=le.useMemo(()=>!st||!p&&!b||pe?st:st.filter($e=>{var ye;const Ie=((ye=fe.searchQuery)==null?void 0:ye.toLowerCase())||"";if(fe.searchQuery&&rt&&!rt.find(I=>`${$e[I]}`.toLowerCase().includes(Ie)))return!1;let ne=!0;return fe.columnFilterMap?(Object.entries(fe.columnFilterMap).forEach(([I,De])=>{var lt;if(!ne||De===void 0)return;const We=e?e[I]:void 0;if(he&&(We!=null&&We.filter)){ne=We.filter(he[$e._index],De);return}const Ve=Oe[I],Ye=(lt=he[$e._index])==null?void 0:lt[I];switch(Ve==null?void 0:Ve.type){case"boolean":case"number":case"integer":if(De&&typeof De=="object"){De.filterEmpty&&Ye===void 0&&(ne=!1);for(const pt of Object.keys(xa)){const gt=De[pt];if(ne&&Ja.isFinite(gt))switch(pt){case xa.EQ:Ye!==gt&&(ne=!1);break;case xa.GT:Ye<=gt&&(ne=!1);break;case xa.LT:Ye>=gt&&(ne=!1);break}}}else{if(Ye===void 0&&De===null)return!0;ne=Ye===De}break;case"string":if(typeof De=="object"&&(Ve.format==="date"||Ve.format==="date-time")){const{from:pt,to:gt,filterEmpty:Nt}=De;if(!Ye)ne=!Nt;else{const Zt=Ye?new Date(Ye):void 0;(Nt===!1||pt&&(!Zt||Zt<pt)||gt&&(!Zt||Zt>gt))&&(ne=!1)}return}default:if(Ve!=null&&Ve.enum){ne=Ye===De;return}ne=`${$e[I]}`.toLowerCase().includes(`${De}`.toLowerCase())}}),ne):!1}),[st,p,b,pe,fe.searchQuery,fe.columnFilterMap,rt,e,he,Oe]),Xe=le.useMemo(()=>{var Ve;const{sortAsc:$e,sortColumn:Ie}=fe;if(!Ie||!it||!he||pe)return it;const ne=Oe[Ie],ye=e?e[Ie]:void 0,I=ye==null?void 0:ye.sort;if(I)return it.sort((Ye,lt)=>{const pt=he[Ye._index],gt=he[lt._index];return pt?gt?I(pt,gt,$e||u):-1:1});const De=ne&&((Ve=ne.format)==null?void 0:Ve.startsWith("date")),We=C8e(ne,ye);return it.sort((Ye,lt)=>{let pt=We&&he[Ye._index]?he[Ye._index][Ie]:Ye[Ie].toLowerCase(),gt=We&&he[lt._index]?he[lt._index][Ie]:lt[Ie].toLowerCase();return We&&De&&(pt=new Date(pt),isNaN(pt.getTime())&&(pt=pP),gt=new Date(gt),isNaN(gt.getTime())&&(gt=pP)),pt===gt?0:pt?gt?(pt<gt?1:-1)*($e?-1:1):$e?1:-1:$e?-1:1})},[e,u,it,pe,Oe,he,fe]),Ct=le.useCallback($e=>{const Ie={...fe.columnFilterMap};delete Ie[$e],be({...fe,columnFilterMap:Ie})},[fe]),Lt=le.useCallback(($e,Ie)=>{if(w){window.location.hash=wn.serializeLocationHash({...we,sortColumn:$e,sortAsc:Ie});return}be({...fe,sortColumn:$e,sortAsc:Ie})},[fe,we,w]),ft=le.useCallback($e=>{be({...fe,searchQuery:$e.currentTarget.value})},[fe]),Mt=le.useCallback(()=>{ce(fe),te(void 0)},[fe]);le.useEffect(()=>{if(!A||!we||!de||!w)return;const $e=Object.keys(we);let Ie=!1;for(const ne of $e){const ye=we[ne],I=de[ne];if(typeof ye=="string"&&ye!==I){Ie=!0;break}if(typeof ye=="object"&&!Ja.isEqual(ye,I)){Ie=!0;break}}Ie&&Mt()},[A,we,de,Mt,w]);const kt=le.useCallback($e=>{$e.key==="Enter"&&(ie(void 0),Te&&Mt(),L&&$e.currentTarget.className==="mig-schema-table__search"&&L(fe.searchQuery||""))},[Te,fe.searchQuery,L,Mt]),bt=le.useCallback(()=>B,[B]),Ft=le.useMemo(()=>Ja.sum(Ae),[Ae]),Ot=le.useMemo(()=>Xe?Xe.length:0,[Xe]),dt=le.useMemo(()=>{const $e=B*Ot,Ie=S?S-(b?50:0):0;return Ie&&Ie<$e?Ie:$e},[S,b,Ot,B]),Wt=le.useCallback($e=>{ie(void 0),$e.preventDefault(),$e.stopPropagation()},[]),Xt=le.useCallback(($e,Ie)=>{if(!Q)return;if(w&&Ie!==!1){window.location.hash=wn.serializeLocationHash({...we,columnFilterMap:{...fe.columnFilterMap,[Q.propName]:$e}});return}if($e===void 0){Ct(Q.propName);return}const ne={...fe.columnFilterMap,[Q.propName]:$e};be({...fe,columnFilterMap:ne})},[Ct,fe,we,Q,w]),vt=le.useCallback(()=>{const $e={searchQuery:"",columnFilterMap:{},sortColumn:o,sortAsc:u};w&&(window.location.hash=wn.serializeLocationHash($e)),ce($e),be($e)},[w,u,o]),Ht=le.useCallback(()=>{const $e=(we==null?void 0:we.searchQuery)||"";w&&(fe.searchQuery||$e)&&fe.searchQuery!==$e&&(window.location.hash=wn.serializeLocationHash({...we,searchQuery:fe.searchQuery}))},[we,fe.searchQuery,w]),Vt=le.useCallback(async $e=>{if($e.preventDefault(),$e.stopPropagation(),!Xe)return;const{renderDataToExcel:Ie}=await Promise.resolve().then(()=>L8e);Ie(Xe)},[Xe]),wt=le.useCallback(()=>{D&&(localStorage.removeItem(`${D}.columnNames`),localStorage.removeItem(`${D}.columnWidths`),U(void 0),R(void 0))},[D]),ge=le.useCallback($e=>!Xe||!he||!k||!T?!0:he[Xe[$e]._index]!==void 0,[T,k,Xe,he]),Me=le.useMemo(()=>!(he&&!Te)&&!k?Ke.jsx("div",{style:{width:Ft,height:Math.max(50,dt),border:"1px solid #BBB",textAlign:"center",display:"flex",backgroundColor:"#CCC",alignItems:"center",justifyContent:"center"},children:Te?Ke.jsx("button",{onClick:Mt,className:"btn border",children:"Refresh data"}):Ke.jsx("div",{children:"⌛ Loading..."})}):k&&T?Ke.jsx(S8e,{ref:g,isItemLoaded:ge,itemCount:T,loadMoreItems:k,children:({onItemsRendered:Ie,ref:ne})=>Ke.jsx(pM,{className:"mig-schema-table__tbody",estimatedRowHeight:B,height:dt,width:Ft,columnWidth:Ze,rowHeight:bt,columnCount:at,rowCount:Ot,ref:ne,onItemsRendered:({overscanRowStartIndex:ye,overscanRowStopIndex:I,visibleRowStartIndex:De,visibleRowStopIndex:We})=>Ie({overscanStartIndex:ye,overscanStopIndex:I,visibleStartIndex:De,visibleStopIndex:We}),children:l6},`tbody_${dt}_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${at}_${Ae.join(" ")}`)}):Ke.jsx(pM,{className:"mig-schema-table__tbody",estimatedRowHeight:B,height:dt,width:Ft,columnWidth:Ze,rowHeight:bt,columnCount:at,rowCount:Ot,ref:x,children:l6},`tbody_${dt}_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${at}_${Ae.join(" ")}`),[at,Ae,Ze,bt,g,Te,ge,T,k,Mt,Ot,B,Ft,fe.searchQuery,fe.sortAsc,fe.sortColumn,he,dt,x]);return Ke.jsx(mo.Provider,{value:{checkedIndexes:s,columnNames:rt,columnWidths:Ae,config:e,disabledCheckedIndexes:r,displayTimezone:j,dropTargetIndex:F,getRowClassName:c,getRowSelected:h,isColumnFilterable:p,isItemLoaded:ge,isSortable:M,lastCheckChangedRowIndex:J,onRowClick:N,onRowDoubleClick:H,properties:Oe,required:Qe,setCheckedIndexes:C,setCustomColumnNames:U,setCustomColumnWidths:R,setDropTargetIndex:Y,setFilterSortColumn:Lt,setLastCheckChangedRowIndex:ae,setMenuConfig:ie,settingsStorageKey:D,sortedRenderData:Xe,sourceData:he,tableDataState:fe,translate:P||o6},children:Ke.jsxs("div",{className:`mig-schema-table${N?" mig-schema-table--clickable-rows":""}`,style:{...E,width:Math.min(Ft,_)},role:"table",children:[Ke.jsxs("div",{className:"mig-schema-table__action-container",children:[Ke.jsx("div",{children:b?Ke.jsx("input",{className:"mig-schema-table__search",type:"search",name:"search",autoComplete:"off",placeholder:V||P("search..."),value:fe.searchQuery,onChange:ft,onKeyDown:kt,autoFocus:l,onBlur:Ht}):null}),t?Ke.jsx(t,{...a,renderData:Xe}):Ke.jsx("div",{className:"mig-schema-table__custom_element_placeholder"}),f&&Array.isArray(d)?Ke.jsx("span",{className:"mig-schema-table__row_counter",children:P("showingFilteredCountOfTotalCount",(Xe==null?void 0:Xe.length)||0,d.length)}):null,m?Ke.jsx("button",{onClick:Vt,style:{marginLeft:8},disabled:!(Xe!=null&&Xe.length),children:P("exportData")}):null,b||p?Ke.jsx("button",{onClick:vt,style:{marginLeft:8},disabled:fe.columnFilterMap&&fe.searchQuery?Object.keys(fe.columnFilterMap).length+fe.searchQuery.length===0:!1,children:P("clearFilters")}):null,D?Ke.jsx("button",{onClick:wt,style:{marginLeft:8},disabled:!Be&&!He,children:P("clearSettings")}):null]}),Ke.jsxs("div",{className:"mig-schema-table__column_resize_container",children:[Ke.jsx(n,{height:50,itemCount:at,itemSize:Ze,layout:"horizontal",width:Ft,sortAsc:fe.sortAsc,setFilterSortColumn:Lt,sortColumn:fe.sortColumn,sortedRenderData:Xe,className:"mig-schema-table__th-row",children:h6},`thead_${Ft}_${fe.sortColumn}_${fe.sortAsc}_${fe.searchQuery}_${Ae.join(" ")}`),Me,y?Ke.jsx(_8e,{columnWidths:Ae,resizeColumnIndex:K,setResizeColumnIndex:O,tableBodyHeight:dt}):null]}),Zr.createPortal(Q?Ke.jsx(w8e,{isFilterable:p&&((Ee=Q.propConfig)==null?void 0:Ee.isFilterable)!==!1,isSortable:d6(!!M,X.properties[Q.propName],Q.propConfig),onChange:Xt,onClose:Wt,onInputKeyDown:kt,propConfig:Q.propConfig,propIsRequired:Q.propIsRequired,propName:Q.propName,propSchema:X.properties[Q.propName],referenceElement:Q.referenceElement,setFilterSortColumn:Lt,translate:P,value:fe.columnFilterMap?fe.columnFilterMap[Q.propName]:null}):null,document.body)]})})},F8e=le.memo(E8e),O8e=le.memo(({refresh:n,period:s=60})=>{const[e,t]=le.useState(new Date),[a,d]=le.useState(new Date),i=le.useCallback(()=>{d(new Date),n()},[n]),u=le.useMemo(()=>Mi(e,a),[e,a]);le.useEffect(()=>{u>s&&i()},[u,e,a,s,i]),le.useEffect(()=>{const l=setInterval(()=>{t(new Date)},1e3);return()=>{clearInterval(l)}},[]);const o=s-u;return Ke.jsxs("div",{className:"mx-auto",title:`Refresh ${o>0?`in ${o} seconds`:"NOW"}`,children:["Last update ",Tf(a,"HH:mm")]})});function bh(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gP={exports:{}};/*! ExcelJS 19-10-2023 */(function(n,s){(function(e){n.exports=e()})(function(){return function e(t,a,d){function i(r,l){if(!a[r]){if(!t[r]){var f=typeof bh=="function"&&bh;if(!l&&f)return f(r,!0);if(u)return u(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var h=a[r]={exports:{}};t[r][0].call(h.exports,function(g){return i(t[r][1][g]||g)},h,h.exports,e,t,a,d)}return a[r].exports}for(var u=typeof bh=="function"&&bh,o=0;o<d.length;o++)i(d[o]);return i}({1:[function(e,t,a){const d=e("fs"),i=e("fast-csv"),u=e("dayjs/plugin/customParseFormat"),o=e("dayjs/plugin/utc"),r=e("dayjs").extend(u).extend(o),l=e("../utils/stream-buf"),{fs:{exists:f}}=e("../utils/utils"),c={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(h){this.workbook=h,this.worksheet=null}async readFile(h,g){if(g=g||{},!await f(h))throw new Error("File not found: "+h);const p=d.createReadStream(h),m=await this.read(p,g);return p.close(),m}read(h,g){return g=g||{},new Promise((p,m)=>{const y=this.workbook.addWorksheet(g.sheetName),b=g.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],M=g.map||function(C){if(C==="")return null;const N=Number(C);if(!Number.isNaN(N)&&N!==1/0)return N;const H=b.reduce((z,B)=>{if(z)return z;const X=r(C,B,!0);return X.isValid()?X:null},null);if(H)return new Date(H.valueOf());const L=c[C];return L!==void 0?L:C},S=i.parse(g.parserOptions).on("data",C=>{y.addRow(C.map(M))}).on("end",()=>{S.emit("worksheet",y)});S.on("worksheet",p).on("error",m),h.pipe(S)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(h,g){return new Promise((p,m)=>{g=g||{};const y=this.workbook.getWorksheet(g.sheetName||g.sheetId),b=i.format(g.formatterOptions);h.on("finish",()=>{p()}),b.on("error",m),b.pipe(h);const{dateFormat:M,dateUTC:S}=g,C=g.map||(L=>{if(L){if(L.text||L.hyperlink)return L.hyperlink||L.text||"";if(L.formula||L.result)return L.result||"";if(L instanceof Date)return M?S?r.utc(L).format(M):r(L).format(M):S?r.utc(L).format():r(L).format();if(L.error)return L.error;if(typeof L=="object")return JSON.stringify(L)}return L}),N=g.includeEmptyRows===void 0||g.includeEmptyRows;let H=1;y&&y.eachRow((L,z)=>{if(N)for(;H++<z-1;)b.write([]);const{values:B}=L;B.shift(),b.write(B.map(C)),H=z}),b.end()})}writeFile(h,g){const p={encoding:(g=g||{}).encoding||"utf8"},m=d.createWriteStream(h,p);return this.write(m,g)}async writeBuffer(h){const g=new l;return await this.write(g,h),g.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(o,r){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=o,r)if(typeof r=="string"){const f=d.decodeAddress(r);this.nativeCol=f.col+l,this.nativeColOff=0,this.nativeRow=f.row+l,this.nativeRowOff=0}else r.nativeCol!==void 0?(this.nativeCol=r.nativeCol||0,this.nativeColOff=r.nativeColOff||0,this.nativeRow=r.nativeRow||0,this.nativeRowOff=r.nativeRowOff||0):r.col!==void 0?(this.col=r.col+l,this.row=r.row+l):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(o){return o instanceof i||o==null?o:new i(o)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(o){this.nativeCol=Math.floor(o),this.nativeColOff=Math.floor((o-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(o){this.nativeRow=Math.floor(o),this.nativeRowOff=Math.floor((o-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(o){this.nativeCol=o.nativeCol,this.nativeColOff=o.nativeColOff,this.nativeRow=o.nativeRow,this.nativeRowOff=o.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,a){const d=e("../utils/col-cache"),i=e("../utils/under-dash"),u=e("./enums"),{slideFormula:o}=e("../utils/shared-formula"),r=e("./note");class l{constructor(h,g,p){if(!h||!g)throw new Error("A Cell needs a Row");this._row=h,this._column=g,d.validateAddress(p),this._address=p,this._value=f.create(l.Types.Null,this),this.style=this._mergeStyle(h.style,g.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(h){this.style.numFmt=h}get font(){return this.style.font}set font(h){this.style.font=h}get alignment(){return this.style.alignment}set alignment(h){this.style.alignment=h}get border(){return this.style.border}set border(h){this.style.border=h}get fill(){return this.style.fill}set fill(h){this.style.fill=h}get protection(){return this.style.protection}set protection(h){this.style.protection=h}_mergeStyle(h,g,p){const m=h&&h.numFmt||g&&g.numFmt;m&&(p.numFmt=m);const y=h&&h.font||g&&g.font;y&&(p.font=y);const b=h&&h.alignment||g&&g.alignment;b&&(p.alignment=b);const M=h&&h.border||g&&g.border;M&&(p.border=M);const S=h&&h.fill||g&&g.fill;S&&(p.fill=S);const C=h&&h.protection||g&&g.protection;return C&&(p.protection=C),p}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(h,g){this._value.release(),this._value=f.create(l.Types.Merge,this,h),g||(this.style=h.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=f.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(h){return this._value.type===l.Types.Merge&&this._value.isMergedTo(h)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(h){this.type!==l.Types.Merge?(this._value.release(),this._value=f.create(f.getType(h),this,h)):this._value.master.value=h}get note(){return this._comment&&this._comment.note}set note(h){this._comment=new r(h)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(h){this.type===l.Types.String&&(this._value=f.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:h}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:h}=this._row;return{sheetName:h.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(h){this.names=[h]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(h){const{definedNames:g}=this.workbook;g.removeAllNames(this.fullAddress),h.forEach(p=>{g.addEx(this.fullAddress,p)})}addName(h){this.workbook.definedNames.addEx(this.fullAddress,h)}removeName(h){this.workbook.definedNames.removeEx(this.fullAddress,h)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(h){this._dataValidations.add(this.address,h)}get model(){const{model:h}=this._value;return h.style=this.style,this._comment&&(h.comment=this._comment.model),h}set model(h){if(this._value.release(),this._value=f.create(h.type,this),this._value.model=h,h.comment)switch(h.comment.type){case"note":this._comment=r.fromModel(h.comment)}h.style?this.style=h.style:this.style={}}}l.Types=u.ValueType;const f={getType:c=>c==null?l.Types.Null:c instanceof String||typeof c=="string"?l.Types.String:typeof c=="number"?l.Types.Number:typeof c=="boolean"?l.Types.Boolean:c instanceof Date?l.Types.Date:c.text&&c.hyperlink?l.Types.Hyperlink:c.formula||c.sharedFormula?l.Types.Formula:c.richText?l.Types.RichText:c.sharedString?l.Types.SharedString:c.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(c){this.model={address:c.address,type:l.Types.Null}}get value(){return null}set value(c){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Number,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Date,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Hyperlink,text:h?h.text:void 0,hyperlink:h?h.hyperlink:void 0},h&&h.tooltip&&(this.model.tooltip=h.tooltip)}get value(){const c={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(c.tooltip=this.model.tooltip),c}set value(c){this.model={text:c.text,hyperlink:c.hyperlink},c.tooltip&&(this.model.tooltip=c.tooltip)}get text(){return this.model.text}set text(c){this.model.text=c}get hyperlink(){return this.model.hyperlink}set hyperlink(c){this.model.hyperlink=c}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(c,h){this.cell=c,this.model={address:c.address,type:l.Types.Formula,shareType:h?h.shareType:void 0,ref:h?h.ref:void 0,formula:h?h.formula:void 0,sharedFormula:h?h.sharedFormula:void 0,result:h?h.result:void 0}}_copyModel(c){const h={},g=p=>{const m=c[p];m&&(h[p]=m)};return g("formula"),g("result"),g("ref"),g("shareType"),g("sharedFormula"),h}get value(){return this._copyModel(this.model)}set value(c){this.model=this._copyModel(c)}validate(c){switch(f.getType(c)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(c){this.model.formula=c}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(c){this.model.result=c}get type(){return l.Types.Formula}get effectiveType(){const c=this.model.result;return c==null?u.ValueType.Null:c instanceof String||typeof c=="string"?u.ValueType.String:typeof c=="number"?u.ValueType.Number:c instanceof Date?u.ValueType.Date:c.text&&c.hyperlink?u.ValueType.Hyperlink:c.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(c){this.model.address=c}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:c}=this.cell,h=c.findCell(this.model.sharedFormula);this._translatedFormula=h&&o(h.formula,h.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Merge,master:h?h.address:void 0},this._master=h,h&&h.addMergeRef()}get value(){return this._master.value}set value(c){c instanceof l?(this._master&&this._master.releaseMergeRef(),c.addMergeRef(),this._master=c):this._master.value=c}isMergedTo(c){return c===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:JSON.stringify(h),rawValue:h}}get value(){return this.model.rawValue}set value(c){this.model.rawValue=c,this.model.value=JSON.stringify(c)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.SharedString,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.String,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}toString(){return this.model.value.richText.map(c=>c.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Boolean,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(c,h){this.model={address:c.address,type:l.Types.Error,value:h}}get value(){return this.model.value}set value(c){this.model.value=c}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(c){this.model.address=c}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((c,h)=>(c[h.t]=h.f,c),[]),create(c,h,g){const p=this.types[c];if(!p)throw new Error("Could not create Value of type "+c);return new p(h,g)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,a){const d=e("../utils/under-dash"),i=e("./enums"),u=e("../utils/col-cache");class o{constructor(l,f,c){this._worksheet=l,this._number=f,c!==!1&&(this.defn=c)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:9,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((f,c)=>{this._worksheet.getCell(c+1,this.number).value=f})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&d.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}get headerCount(){return this.headers.length}eachCell(l,f){const c=this.number;f||(f=l,l=null),this._worksheet.eachRow(l,(h,g)=>{f(h.getCell(c),g)})}get values(){const l=[];return this.eachCell((f,c)=>{f&&f.type!==i.ValueType.Null&&(l[c]=f.value)}),l}set values(l){if(!l)return;const f=this.number;let c=0;l.hasOwnProperty("0")&&(c=1),l.forEach((h,g)=>{this._worksheet.getCell(g+c,f).value=h})}_applyStyle(l,f){return this.style[l]=f,this.eachCell(c=>{c[l]=f}),f}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){const f=[];let c=null;return l&&l.forEach((h,g)=>{h.isDefault?c&&(c=null):c&&h.equivalentTo(c)?c.max=g+1:(c={min:g+1,max:g+1,width:h.width!==void 0?h.width:9,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},f.push(c))}),f.length?f:void 0}static fromModel(l,f){const c=[];let h=1,g=0;for(f=(f=f||[]).sort(function(p,m){return p.min-m.min});g<f.length;){const p=f[g++];for(;h<p.min;)c.push(new o(l,h++));for(;h<=p.max;)c.push(new o(l,h++,p))}return c.length?c:null}}t.exports=o},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,a){t.exports=class{constructor(d){this.model=d||{}}add(d,i){return this.model[d]=i}find(d){return this.model[d]}remove(d){this.model[d]=void 0}}},{}],6:[function(e,t,a){const d=e("../utils/under-dash"),i=e("../utils/col-cache"),u=e("../utils/cell-matrix"),o=e("./range"),r=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(l){return this.matrixMap[l]||(this.matrixMap[l]=new u)}add(l,f){const c=i.decodeEx(l);this.addEx(c,f)}addEx(l,f){const c=this.getMatrix(f);if(l.top)for(let h=l.left;h<=l.right;h++)for(let g=l.top;g<=l.bottom;g++){const p={sheetName:l.sheetName,address:i.n2l(h)+g,row:g,col:h};c.addCellEx(p)}else c.addCellEx(l)}remove(l,f){const c=i.decodeEx(l);this.removeEx(c,f)}removeEx(l,f){this.getMatrix(f).removeCellEx(l)}removeAllNames(l){d.each(this.matrixMap,f=>{f.removeCellEx(l)})}forEach(l){d.each(this.matrixMap,(f,c)=>{f.forEach(h=>{l(c,h)})})}getNames(l){return this.getNamesEx(i.decodeEx(l))}getNamesEx(l){return d.map(this.matrixMap,(f,c)=>f.findCellEx(l)&&c).filter(Boolean)}_explore(l,f){f.mark=!1;const{sheetName:c}=f,h=new o(f.row,f.col,f.row,f.col,c);let g,p;function m(b,M){const S=l.findCellAt(c,b,f.col);return!(!S||!S.mark)&&(h[M]=b,S.mark=!1,!0)}for(p=f.row-1;m(p,"top");p--);for(p=f.row+1;m(p,"bottom");p++);function y(b,M){const S=[];for(p=h.top;p<=h.bottom;p++){const C=l.findCellAt(c,p,b);if(!C||!C.mark)return!1;S.push(C)}h[M]=b;for(let C=0;C<S.length;C++)S[C].mark=!1;return!0}for(g=f.col-1;y(g,"left");g--);for(g=f.col+1;y(g,"right");g++);return h}getRanges(l,f){return(f=f||this.matrixMap[l])?(f.forEach(c=>{c.mark=!0}),{name:l,ranges:f.map(c=>c.mark&&this._explore(f,c)).filter(Boolean).map(c=>c.$shortRange)}):{name:l,ranges:[]}}normaliseMatrix(l,f){l.forEachInSheet(f,(c,h,g)=>{c&&(c.row===h&&c.col===g||(c.row=h,c.col=g,c.address=i.n2l(g)+h))})}spliceRows(l,f,c,h){d.each(this.matrixMap,g=>{g.spliceRows(l,f,c,h),this.normaliseMatrix(g,l)})}spliceColumns(l,f,c,h){d.each(this.matrixMap,g=>{g.spliceColumns(l,f,c,h),this.normaliseMatrix(g,l)})}get model(){return d.map(this.matrixMap,(l,f)=>this.getRanges(f,l)).filter(l=>l.ranges.length)}set model(l){const f=this.matrixMap={};l.forEach(c=>{const h=f[c.name]=new u;c.ranges.forEach(g=>{r.test(g.split("!").pop()||"")&&h.addCell(g)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,a){t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,a){const d=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(u,o){this.worksheet=u,this.model=o}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(u){let{type:o,imageId:r,range:l,hyperlinks:f}=u;if(this.type=o,this.imageId=r,o==="image")if(typeof l=="string"){const c=d.decode(l);this.range={tl:new i(this.worksheet,{col:c.left,row:c.top},-1),br:new i(this.worksheet,{col:c.right,row:c.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,l.tl,0),br:l.br&&new i(this.worksheet,l.br,0),ext:l.ext,editAs:l.editAs,hyperlinks:f||l.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,a){const d=e("../utils/under-dash");class i{constructor(o){this.note=o}get model(){let o=null;switch(typeof this.note){case"string":o={type:"note",note:{texts:[{text:this.note}]}};break;default:o={type:"note",note:this.note}}return d.deepMerge({},i.DEFAULT_CONFIGS,o)}set model(o){const{note:r}=o,{texts:l}=r;l.length===1&&Object.keys(l[0]).length===1?this.note=l[0].text:this.note=r}static fromModel(o){const r=new i;return r.model=o,r}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(o,r,l,f,c){if(arguments.length<4){const h=d.decodeAddress(o),g=d.decodeAddress(r);this.model={top:Math.min(h.row,g.row),left:Math.min(h.col,g.col),bottom:Math.max(h.row,g.row),right:Math.max(h.col,g.col),sheetName:l},this.setTLBR(h.row,h.col,g.row,g.col,c)}else this.model={top:Math.min(o,l),left:Math.min(r,f),bottom:Math.max(o,l),right:Math.max(r,f),sheetName:c}}decode(o){switch(o.length){case 5:this.setTLBR(o[0],o[1],o[2],o[3],o[4]);break;case 4:this.setTLBR(o[0],o[1],o[2],o[3]);break;case 3:this.setTLBR(o[0],o[1],o[2]);break;case 2:this.setTLBR(o[0],o[1]);break;case 1:{const r=o[0];if(r instanceof i)this.model={top:r.model.top,left:r.model.left,bottom:r.model.bottom,right:r.model.right,sheetName:r.sheetName};else if(r instanceof Array)this.decode(r);else if(r.top&&r.left&&r.bottom&&r.right)this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName};else{const l=d.decodeEx(r);l.top?this.model={top:l.top,left:l.left,bottom:l.bottom,right:l.right,sheetName:l.sheetName}:this.model={top:l.row,left:l.col,bottom:l.row,right:l.col,sheetName:l.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+o.length)}}get top(){return this.model.top||1}set top(o){this.model.top=o}get left(){return this.model.left||1}set left(o){this.model.left=o}get bottom(){return this.model.bottom||1}set bottom(o){this.model.bottom=o}get right(){return this.model.right||1}set right(o){this.model.right=o}get sheetName(){return this.model.sheetName}set sheetName(o){this.model.sheetName=o}get _serialisedSheetName(){const{sheetName:o}=this.model;return o?/^[a-zA-Z0-9]*$/.test(o)?o+"!":`'${o}'!`:""}expand(o,r,l,f){(!this.model.top||o<this.top)&&(this.top=o),(!this.model.left||r<this.left)&&(this.left=r),(!this.model.bottom||l>this.bottom)&&(this.bottom=l),(!this.model.right||f>this.right)&&(this.right=f)}expandRow(o){if(o){const{dimensions:r,number:l}=o;r&&this.expand(l,r.min,l,r.max)}}expandToAddress(o){const r=d.decodeEx(o);this.expand(r.row,r.col,r.row,r.col)}get tl(){return d.n2l(this.left)+this.top}get $t$l(){return`$${d.n2l(this.left)}$${this.top}`}get br(){return d.n2l(this.right)+this.bottom}get $b$r(){return`$${d.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(o){return(!o.sheetName||!this.sheetName||o.sheetName===this.sheetName)&&!(o.bottom<this.top)&&!(o.top>this.bottom)&&!(o.right<this.left)&&!(o.left>this.right)}contains(o){const r=d.decodeEx(o);return this.containsEx(r)}containsEx(o){return(!o.sheetName||!this.sheetName||o.sheetName===this.sheetName)&&o.row>=this.top&&o.row<=this.bottom&&o.col>=this.left&&o.col<=this.right}forEachAddress(o){for(let r=this.left;r<=this.right;r++)for(let l=this.top;l<=this.bottom;l++)o(d.encodeAddress(l,r),l,r)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,a){const d=e("../utils/under-dash"),i=e("./enums"),u=e("../utils/col-cache"),o=e("./cell");t.exports=class{constructor(r,l){this._worksheet=r,this._number=l,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(r){return this._cells[r-1]}getCellEx(r){let l=this._cells[r.col-1];if(!l){const f=this._worksheet.getColumn(r.col);l=new o(this,f,r.address),this._cells[r.col-1]=l}return l}getCell(r){if(typeof r=="string"){const l=this._worksheet.getColumnKey(r);r=l?l.number:u.l2n(r)}return this._cells[r-1]||this.getCellEx({address:u.encodeAddress(this._number,r),row:this._number,col:r})}splice(r,l){const f=r+l;for(var c=arguments.length,h=new Array(c>2?c-2:0),g=2;g<c;g++)h[g-2]=arguments[g];const p=h.length-l,m=this._cells.length;let y,b,M;if(p<0)for(y=r+h.length;y<=m;y++)M=this._cells[y-1],b=this._cells[y-p-1],b?(M=this.getCell(y),M.value=b.value,M.style=b.style,M._comment=b._comment):M&&(M.value=null,M.style={},M._comment=void 0);else if(p>0)for(y=m;y>=f;y--)b=this._cells[y-1],b?(M=this.getCell(y+p),M.value=b.value,M.style=b.style,M._comment=b._comment):this._cells[y+p-1]=void 0;for(y=0;y<h.length;y++)M=this.getCell(r+y),M.value=h[y],M.style={},M._comment=void 0}eachCell(r,l){if(l||(l=r,r=null),r&&r.includeEmpty){const f=this._cells.length;for(let c=1;c<=f;c++)l(this.getCell(c),c)}else this._cells.forEach((f,c)=>{f&&f.type!==i.ValueType.Null&&l(f,c+1)})}addPageBreak(r,l){const f=this._worksheet,c=Math.max(0,r-1)||0,h=Math.max(0,l-1)||16838,g={id:this._number,max:h,man:1};c&&(g.min=c),f.rowBreaks.push(g)}get values(){const r=[];return this._cells.forEach(l=>{l&&l.type!==i.ValueType.Null&&(r[l.col]=l.value)}),r}set values(r){if(this._cells=[],r)if(r instanceof Array){let l=0;r.hasOwnProperty("0")&&(l=1),r.forEach((f,c)=>{f!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,c+l),row:this._number,col:c+l}).value=f)})}else this._worksheet.eachColumnKey((l,f)=>{r[f]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,l.number),row:this._number,col:l.number}).value=r[f])})}get hasValues(){return d.some(this._cells,r=>r&&r.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let r=0;return this.eachCell(()=>{r++}),r}get dimensions(){let r=0,l=0;return this._cells.forEach(f=>{f&&f.type!==i.ValueType.Null&&((!r||r>f.col)&&(r=f.col),l<f.col&&(l=f.col))}),r>0?{min:r,max:l}:null}_applyStyle(r,l){return this.style[r]=l,this._cells.forEach(f=>{f&&(f[r]=l)}),l}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const r=[];let l=0,f=0;return this._cells.forEach(c=>{if(c){const h=c.model;h&&((!l||l>c.col)&&(l=c.col),f<c.col&&(f=c.col),r.push(h))}}),this.height||r.length?{cells:r,number:this.number,min:l,max:f,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(r){if(r.number!==this._number)throw new Error("Invalid row number in model");let l;this._cells=[],r.cells.forEach(f=>{switch(f.type){case o.Types.Merge:break;default:{let c;if(f.address)c=u.decodeAddress(f.address);else if(l){const{row:h}=l,g=l.col+1;c={row:h,col:g,address:u.encodeAddress(h,g),$col$row:`$${u.n2l(g)}$${h}`}}l=c,this.getCellEx(c).model=f;break}}}),r.height?this.height=r.height:delete this.height,this.hidden=r.hidden,this.outlineLevel=r.outlineLevel||0,this.style=r.style&&JSON.parse(JSON.stringify(r.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,a){const d=e("../utils/col-cache");class i{constructor(o,r,l){this.table=o,this.column=r,this.index=l}_set(o,r){this.table.cacheState(),this.column[o]=r}get name(){return this.column.name}set name(o){this._set("name",o)}get filterButton(){return this.column.filterButton}set filterButton(o){this.column.filterButton=o}get style(){return this.column.style}set style(o){this.column.style=o}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(o){this._set("totalsRowLabel",o)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(o){this._set("totalsRowFunction",o)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(o){this._set("totalsRowResult",o)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(o){this._set("totalsRowFormula",o)}}t.exports=class{constructor(u,o){this.worksheet=u,o&&(this.table=o,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case"custom":return u.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,o=(p,m,y)=>{p[m]===void 0&&(p[m]=y)};o(u,"headerRow",!0),o(u,"totalsRow",!1),o(u,"style",{}),o(u.style,"theme","TableStyleMedium2"),o(u.style,"showFirstColumn",!1),o(u.style,"showLastColumn",!1),o(u.style,"showRowStripes",!1),o(u.style,"showColumnStripes",!1);const r=(p,m)=>{if(!p)throw new Error(m)};r(u.ref,"Table must have ref"),r(u.columns,"Table must have column definitions"),r(u.rows,"Table must have row definitions"),u.tl=d.decodeAddress(u.ref);const{row:l,col:f}=u.tl;r(l>0,"Table must be on valid row"),r(f>0,"Table must be on valid col");const{width:c,filterHeight:h,tableHeight:g}=this;u.autoFilterRef=d.encode(l,f,l+h-1,f+c-1),u.tableRef=d.encode(l,f,l+g-1,f+c-1),u.columns.forEach((p,m)=>{r(p.name,`Column ${m} must have a name`),m===0?o(p,"totalsRowLabel","Total"):(o(p,"totalsRowFunction","none"),p.totalsRowFormula=this.getFormula(p))})}store(){const u=(h,g)=>{g&&Object.keys(g).forEach(p=>{h[p]=g[p]})},{worksheet:o,table:r}=this,{row:l,col:f}=r.tl;let c=0;if(r.headerRow){const h=o.getRow(l+c++);r.columns.forEach((g,p)=>{const{style:m,name:y}=g,b=h.getCell(f+p);b.value=y,u(b,m)})}if(r.rows.forEach(h=>{const g=o.getRow(l+c++);h.forEach((p,m)=>{const y=g.getCell(f+m);y.value=p,u(y,r.columns[m].style)})}),r.totalsRow){const h=o.getRow(l+c++);r.columns.forEach((g,p)=>{const m=h.getCell(f+p);if(p===0)m.value=g.totalsRowLabel;else{const y=this.getFormula(g);m.value=y?{formula:g.totalsRowFormula,result:g.totalsRowResult}:null}u(m,g.style)})}}load(u){const{table:o}=this,{row:r,col:l}=o.tl;let f=0;if(o.headerRow){const c=u.getRow(r+f++);o.columns.forEach((h,g)=>{c.getCell(l+g).value=h.name})}if(o.rows.forEach(c=>{const h=u.getRow(r+f++);c.forEach((g,p)=>{h.getCell(l+p).value=g})}),o.totalsRow){const c=u.getRow(r+f++);o.columns.forEach((h,g)=>{const p=c.getCell(l+g);g===0?p.value=h.totalsRowLabel:this.getFormula(h)&&(p.value={formula:h.totalsRowFormula,result:h.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=d.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let o=0;o<this._cache.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=0;l<this._cache.width;l++)r.getCell(u.col+l).value=null}else{for(let o=this.tableHeight;o<this._cache.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=0;l<this._cache.width;l++)r.getCell(u.col+l).value=null}for(let o=0;o<this.tableHeight;o++){const r=this.worksheet.getRow(u.row+o);for(let l=this.width;l<this._cache.width;l++)r.getCell(u.col+l).value=null}}this.store()}addRow(u,o){this.cacheState(),o===void 0?this.table.rows.push(u):this.table.rows.splice(o,0,u)}removeRows(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,o)}getColumn(u){const o=this.table.columns[u];return new i(this,o,u)}addColumn(u,o,r){this.cacheState(),r===void 0?(this.table.columns.push(u),this.table.rows.forEach((l,f)=>{l.push(o[f])})):(this.table.columns.splice(r,0,u),this.table.rows.forEach((l,f)=>{l.splice(r,0,o[f])}))}removeColumns(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,o),this.table.rows.forEach(r=>{r.splice(u,o)})}_assign(u,o,r){this.cacheState(),u[o]=r}get ref(){return this.table.ref}set ref(u){this._assign(this.table,"ref",u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,"headerRow",u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,"totalsRow",u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{"../utils/col-cache":19}],13:[function(e,t,a){const d=e("./worksheet"),i=e("./defined-names"),u=e("../xlsx/xlsx"),o=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new o(this)),this._csv}get nextId(){for(let r=1;r<this._worksheets.length;r++)if(!this._worksheets[r])return r;return this._worksheets.length||1}addWorksheet(r,l){const f=this.nextId;l&&(typeof l=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),l={properties:{tabColor:{argb:l}}}):(l.argb||l.theme||l.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),l={properties:{tabColor:l}}));const c=this._worksheets.reduce((p,m)=>(m&&m.orderNo)>p?m.orderNo:p,0),h=Object.assign({},l,{id:f,name:r,orderNo:c+1,workbook:this}),g=new d(h);return this._worksheets[f]=g,g}removeWorksheetEx(r){delete this._worksheets[r.id]}removeWorksheet(r){const l=this.getWorksheet(r);l&&l.destroy()}getWorksheet(r){return r===void 0?this._worksheets.find(Boolean):typeof r=="number"?this._worksheets[r]:typeof r=="string"?this._worksheets.find(l=>l&&l.name===r):void 0}get worksheets(){return this._worksheets.slice(1).sort((r,l)=>r.orderNo-l.orderNo).filter(Boolean)}eachSheet(r){this.worksheets.forEach(l=>{r(l,l.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(r){const l=this.media.length;return this.media.push(Object.assign({},r,{type:"image"})),l}getImage(r){return this.media[r]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(r=>r.model),sheets:this.worksheets.map(r=>r.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(r){this.creator=r.creator,this.lastModifiedBy=r.lastModifiedBy,this.lastPrinted=r.lastPrinted,this.created=r.created,this.modified=r.modified,this.company=r.company,this.manager=r.manager,this.title=r.title,this.subject=r.subject,this.keywords=r.keywords,this.category=r.category,this.description=r.description,this.language=r.language,this.revision=r.revision,this.contentStatus=r.contentStatus,this.properties=r.properties,this.calcProperties=r.calcProperties,this._worksheets=[],r.worksheets.forEach(l=>{const{id:f,name:c,state:h}=l,g=r.sheets&&r.sheets.findIndex(p=>p.id===f);(this._worksheets[f]=new d({id:f,name:c,orderNo:g,state:h,workbook:this})).model=l}),this._definedNames.model=r.definedNames,this.views=r.views,this._themes=r.themes,this.media=r.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,a){const d=e("../utils/under-dash"),i=e("../utils/col-cache"),u=e("./range"),o=e("./row"),r=e("./column"),l=e("./enums"),f=e("./image"),c=e("./table"),h=e("./data-validations"),g=e("../utils/encryptor"),{copyStyle:p}=e("../utils/copy-style");t.exports=class{constructor(m){m=m||{},this._workbook=m.workbook,this.id=m.id,this.orderNo=m.orderNo,this.name=m.name,this.state=m.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},m.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!m.pageSetup||!m.pageSetup.fitToWidth&&!m.pageSetup.fitToHeight||m.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},m.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},m.headerFooter),this.dataValidations=new h,this.views=m.views||[],this.autoFilter=m.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(m){if(m===void 0&&(m="sheet"+this.id),this._name!==m){if(typeof m!="string")throw new Error("The name has to be a string.");if(m==="")throw new Error("The name can't be empty.");if(m==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(m))throw new Error(`Worksheet name ${m} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(m))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+m);if(m&&m.length>31&&(console.warn(`Worksheet name ${m} exceeds 31 chars. This will be truncated`),m=m.substring(0,31)),this._workbook._worksheets.find(y=>y&&y.name.toLowerCase()===m.toLowerCase()))throw new Error("Worksheet name already exists: "+m);this._name=m}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const m=new u;return this._rows.forEach(y=>{if(y){const b=y.dimensions;b&&m.expand(y.number,b.min,y.number,b.max)}}),m}get columns(){return this._columns}set columns(m){this._headerRowCount=m.reduce((M,S)=>{const C=(S.header?1:S.headers&&S.headers.length)||0;return Math.max(M,C)},0);let y=1;const b=this._columns=[];m.forEach(M=>{const S=new r(this,y++,!1);b.push(S),S.defn=M})}getColumnKey(m){return this._keys[m]}setColumnKey(m,y){this._keys[m]=y}deleteColumnKey(m){delete this._keys[m]}eachColumnKey(m){d.each(this._keys,m)}getColumn(m){if(typeof m=="string"){const y=this._keys[m];if(y)return y;m=i.l2n(m)}if(this._columns||(this._columns=[]),m>this._columns.length){let y=this._columns.length+1;for(;y<=m;)this._columns.push(new r(this,y++))}return this._columns[m-1]}spliceColumns(m,y){const b=this._rows.length;for(var M=arguments.length,S=new Array(M>2?M-2:0),C=2;C<M;C++)S[C-2]=arguments[C];if(S.length>0)for(let z=0;z<b;z++){const B=[m,y];S.forEach(V=>{B.push(V[z]||null)});const X=this.getRow(z+1);X.splice.apply(X,B)}else this._rows.forEach(z=>{z&&z.splice(m,y)});const N=S.length-y,H=m+y,L=this._columns.length;if(N<0)for(let z=m+S.length;z<=L;z++)this.getColumn(z).defn=this.getColumn(z-N).defn;else if(N>0)for(let z=L;z>=H;z--)this.getColumn(z+N).defn=this.getColumn(z).defn;for(let z=m;z<m+S.length;z++)this.getColumn(z).defn=null;this.workbook.definedNames.spliceColumns(this.name,m,y,S.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let m=0;return this.eachRow(y=>{m=Math.max(m,y.cellCount)}),m}get actualColumnCount(){const m=[];let y=0;return this.eachRow(b=>{b.eachCell(M=>{let{col:S}=M;m[S]||(m[S]=!0,y++)})}),y}_commitRow(){}get _lastRowNumber(){const m=this._rows;let y=m.length;for(;y>0&&m[y-1]===void 0;)y--;return y}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(m){return this._rows[m-1]}findRows(m,y){return this._rows.slice(m-1,m-1+y)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let m=0;return this.eachRow(()=>{m++}),m}getRow(m){let y=this._rows[m-1];return y||(y=this._rows[m-1]=new o(this,m)),y}getRows(m,y){if(y<1)return;const b=[];for(let M=m;M<m+y;M++)b.push(this.getRow(M));return b}addRow(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=this._nextRow,M=this.getRow(b);return M.values=m,this._setStyleOption(b,y[0]==="i"?y:"n"),M}addRows(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=[];return m.forEach(M=>{b.push(this.addRow(M,y))}),b}insertRow(m,y){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(m,0,y),this._setStyleOption(m,b),this.getRow(m)}insertRows(m,y){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(m,0,...y),b!=="n")for(let M=0;M<y.length;M++)b[0]==="o"&&this.findRow(y.length+m+M)!==void 0?this._copyStyle(y.length+m+M,m+M,b[1]==="+"):b[0]==="i"&&this.findRow(m-1)!==void 0&&this._copyStyle(m-1,m+M,b[1]==="+");return this.getRows(m,y.length)}_setStyleOption(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";y[0]==="o"&&this.findRow(m+1)!==void 0?this._copyStyle(m+1,m,y[1]==="+"):y[0]==="i"&&this.findRow(m-1)!==void 0&&this._copyStyle(m-1,m,y[1]==="+")}_copyStyle(m,y){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const M=this.getRow(m),S=this.getRow(y);S.style=p(M.style),M.eachCell({includeEmpty:b},(C,N)=>{S.getCell(N).style=p(C.style)}),S.height=M.height}duplicateRow(m,y){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const M=this._rows[m-1],S=new Array(y).fill(M.values);this.spliceRows(m+1,b?0:y,...S);for(let C=0;C<y;C++){const N=this._rows[m+C];N.style=M.style,N.height=M.height,M.eachCell({includeEmpty:!0},(H,L)=>{N.getCell(L).style=H.style})}}spliceRows(m,y){const b=m+y;for(var M=arguments.length,S=new Array(M>2?M-2:0),C=2;C<M;C++)S[C-2]=arguments[C];const N=S.length,H=N-y,L=this._rows.length;let z,B;if(H<0)for(m===L&&(this._rows[L-1]=void 0),z=b;z<=L;z++)if(B=this._rows[z-1],B){const X=this.getRow(z+H);X.values=B.values,X.style=B.style,X.height=B.height,B.eachCell({includeEmpty:!0},(V,D)=>{X.getCell(D).style=V.style}),this._rows[z-1]=void 0}else this._rows[z+H-1]=void 0;else if(H>0)for(z=L;z>=b;z--)if(B=this._rows[z-1],B){const X=this.getRow(z+H);X.values=B.values,X.style=B.style,X.height=B.height,B.eachCell({includeEmpty:!0},(V,D)=>{if(X.getCell(D).style=V.style,V._value.constructor.name==="MergeValue"){const E=this.getRow(V._row._number+N).getCell(D),P=V._value._master,w=this.getRow(P._row._number+N).getCell(P._column._number);E.merge(w)}})}else this._rows[z+H-1]=void 0;for(z=0;z<N;z++){const X=this.getRow(m+z);X.style={},X.values=S[z]}this.workbook.definedNames.spliceRows(this.name,m,y,N)}eachRow(m,y){if(y||(y=m,m=void 0),m&&m.includeEmpty){const b=this._rows.length;for(let M=1;M<=b;M++)y(this.getRow(M),M)}else this._rows.forEach(b=>{b&&b.hasValues&&y(b,b.number)})}getSheetValues(){const m=[];return this._rows.forEach(y=>{y&&(m[y.number]=y.values)}),m}findCell(m,y){const b=i.getAddress(m,y),M=this._rows[b.row-1];return M?M.findCell(b.col):void 0}getCell(m,y){const b=i.getAddress(m,y);return this.getRow(b.row).getCellEx(b)}mergeCells(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);this._mergeCellsInternal(M)}mergeCellsWithoutStyle(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);this._mergeCellsInternal(M,!0)}_mergeCellsInternal(m,y){d.each(this._merges,M=>{if(M.intersects(m))throw new Error("Cannot merge already merged cells")});const b=this.getCell(m.top,m.left);for(let M=m.top;M<=m.bottom;M++)for(let S=m.left;S<=m.right;S++)(M>m.top||S>m.left)&&this.getCell(M,S).merge(b,y);this._merges[b.address]=m}_unMergeMaster(m){const y=this._merges[m.address];if(y){for(let b=y.top;b<=y.bottom;b++)for(let M=y.left;M<=y.right;M++)this.getCell(b,M).unmerge();delete this._merges[m.address]}}get hasMerges(){return d.some(this._merges,Boolean)}unMergeCells(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];const M=new u(y);for(let S=M.top;S<=M.bottom;S++)for(let C=M.left;C<=M.right;C++){const N=this.findCell(S,C);N&&(N.type===l.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(m,y,b){let M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const S=i.decode(m),{top:C,left:N,bottom:H,right:L}=S,z=L-N+1,B=i.encodeAddress(C,N),X=M==="shared";let V;V=typeof b=="function"?b:Array.isArray(b)?Array.isArray(b[0])?(E,P)=>b[E-C][P-N]:(E,P)=>b[(E-C)*z+(P-N)]:()=>{};let D=!0;for(let E=C;E<=H;E++)for(let P=N;P<=L;P++)D?(this.getCell(E,P).value={shareType:M,formula:y,ref:m,result:V(E,P)},D=!1):this.getCell(E,P).value=X?{sharedFormula:B,result:V(E,P)}:V(E,P)}addImage(m,y){const b={type:"image",imageId:m,range:y};this._media.push(new f(this,b))}getImages(){return this._media.filter(m=>m.type==="image")}addBackgroundImage(m){const y={type:"background",imageId:m};this._media.push(new f(this,y))}getBackgroundImageId(){const m=this._media.find(y=>y.type==="background");return m&&m.imageId}protect(m,y){return new Promise(b=>{this.sheetProtection={sheet:!0},y&&"spinCount"in y&&(y.spinCount=Number.isFinite(y.spinCount)?Math.round(Math.max(0,y.spinCount)):1e5),m&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=g.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=y&&"spinCount"in y?y.spinCount:1e5,this.sheetProtection.hashValue=g.convertPasswordToHash(m,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),y&&(this.sheetProtection=Object.assign(this.sheetProtection,y),!m&&"spinCount"in y&&delete this.sheetProtection.spinCount),b()})}unprotect(){this.sheetProtection=null}addTable(m){const y=new c(this,m);return this.tables[m.name]=y,y}getTable(m){return this.tables[m]}removeTable(m){delete this.tables[m]}getTables(){return Object.values(this.tables)}addConditionalFormatting(m){this.conditionalFormattings.push(m)}removeConditionalFormatting(m){typeof m=="number"?this.conditionalFormattings.splice(m,1):this.conditionalFormattings=m instanceof Function?this.conditionalFormattings.filter(m):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(m){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=m}get model(){const m={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(M=>M.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(M=>M.model),conditionalFormattings:this.conditionalFormattings};m.cols=r.toModel(this.columns);const y=m.rows=[],b=m.dimensions=new u;return this._rows.forEach(M=>{const S=M&&M.model;S&&(b.expand(S.number,S.min,S.number,S.max),y.push(S))}),m.merges=[],d.each(this._merges,M=>{m.merges.push(M.range)}),m}_parseRows(m){this._rows=[],m.rows.forEach(y=>{const b=new o(this,y.number);this._rows[b.number-1]=b,b.model=y})}_parseMergeCells(m){d.each(m.mergeCells,y=>{this.mergeCellsWithoutStyle(y)})}set model(m){this.name=m.name,this._columns=r.fromModel(this,m.cols),this._parseRows(m),this._parseMergeCells(m),this.dataValidations=new h(m.dataValidations),this.properties=m.properties,this.pageSetup=m.pageSetup,this.headerFooter=m.headerFooter,this.views=m.views,this.autoFilter=m.autoFilter,this._media=m.media.map(y=>new f(this,y)),this.sheetProtection=m.sheetProtection,this.tables=m.tables.reduce((y,b)=>{const M=new c;return M.model=b,y[b.name]=M,y},{}),this.conditionalFormattings=m.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,a){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const d={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(u=>{d[u]=i[u]}),t.exports=d},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,a){const d=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");a.bufferToString=function(i){return typeof i=="string"?i:d?d.decode(i):i.toString()}},{}],17:[function(e,t,a){const d=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");a.stringToBuffer=function(u){return typeof u!="string"?u:d?i.from(d.encode(u).buffer):i.from(u)}},{buffer:220}],18:[function(e,t,a){const d=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(i.decodeEx(u))}getCell(u){return this.findCellEx(i.decodeEx(u),!0)}findCell(u){return this.findCellEx(i.decodeEx(u),!1)}findCellAt(u,o,r){const l=this.sheets[u],f=l&&l[o];return f&&f[r]}addCellEx(u){if(u.top)for(let o=u.top;o<=u.bottom;o++)for(let r=u.left;r<=u.right;r++)this.getCellAt(u.sheetName,o,r);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,o){const r=this.findSheet(u,o),l=this.findSheetRow(r,u,o);return this.findRowCell(l,u,o)}getCellAt(u,o,r){const l=this.sheets[u]||(this.sheets[u]=[]),f=l[o]||(l[o]=[]);return f[r]||(f[r]={sheetName:u,address:i.n2l(r)+o,row:o,col:r})}removeCellEx(u){const o=this.findSheet(u);if(!o)return;const r=this.findSheetRow(o,u);r&&delete r[u.col]}forEachInSheet(u,o){const r=this.sheets[u];r&&r.forEach((l,f)=>{l&&l.forEach((c,h)=>{c&&o(c,f,h)})})}forEach(u){d.each(this.sheets,(o,r)=>{this.forEachInSheet(r,u)})}map(u){const o=[];return this.forEach(r=>{o.push(u(r))}),o}findSheet(u,o){const r=u.sheetName;return this.sheets[r]?this.sheets[r]:o?this.sheets[r]=[]:void 0}findSheetRow(u,o,r){const{row:l}=o;return u&&u[l]?u[l]:r?u[l]=[]:void 0}findRowCell(u,o,r){const{col:l}=o;return u&&u[l]?u[l]:r?u[l]=this.template?Object.assign(o,JSON.parse(JSON.stringify(this.template))):o:void 0}spliceRows(u,o,r,l){const f=this.sheets[u];if(f){const c=[];for(let h=0;h<l;h++)c.push([]);f.splice(o,r,...c)}}spliceColumns(u,o,r,l){const f=this.sheets[u];if(f){const c=[];for(let h=0;h<l;h++)c.push(null);d.each(f,h=>{h.splice(o,r,...c)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,a){const d=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:u=>u<=26?1:u<=676?2:3,_fill(u){let o,r,l,f,c,h=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;h<=26;)o=this._dictionary[h-1],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(h=27;h<=702;)r=h-27,l=r%26,f=Math.floor(r/26),o=this._dictionary[f]+this._dictionary[l],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(h=703;h<=16384;)r=h-703,l=r%26,f=Math.floor(r/26)%26,c=Math.floor(r/676),o=this._dictionary[c]+this._dictionary[f]+this._dictionary[l],this._n2l[h]=o,this._l2n[o]=h,h++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error("Out of bounds. Invalid column letter: "+u);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(u+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!d.test(u))throw new Error("Invalid Address: "+u);return!0},decodeAddress(u){const o=u.length<5&&this._hash[u];if(o)return o;let r=!1,l="",f=0,c=!1,h="",g=0;for(let m,y=0;y<u.length;y++)if(m=u.charCodeAt(y),!c&&m>=65&&m<=90)r=!0,l+=u[y],f=26*f+m-64;else if(m>=48&&m<=57)c=!0,h+=u[y],g=10*g+m-48;else if(c&&r&&m!==36)break;if(r){if(f>16384)throw new Error("Out of bounds. Invalid column letter: "+l)}else f=void 0;c||(g=void 0);const p={address:u=l+h,col:f,row:g,$col$row:`$${l}$${h}`};return f<=100&&g<=100&&(this._hash[u]=p,this._hash[p.$col$row]=p),p},getAddress(u,o){if(o){const r=this.n2l(o)+u;return this.decodeAddress(r)}return this.decodeAddress(u)},decode(u){const o=u.split(":");if(o.length===2){const r=this.decodeAddress(o[0]),l=this.decodeAddress(o[1]),f={top:Math.min(r.row,l.row),left:Math.min(r.col,l.col),bottom:Math.max(r.row,l.row),right:Math.max(r.col,l.col)};return f.tl=this.n2l(f.left)+f.top,f.br=this.n2l(f.right)+f.bottom,f.dimensions=`${f.tl}:${f.br}`,f}return this.decodeAddress(u)},decodeEx(u){const o=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=o[1]||o[2],l=o[3],f=l.split(":");if(f.length>1){let h=this.decodeAddress(f[0]),g=this.decodeAddress(f[1]);const p=Math.min(h.row,g.row),m=Math.min(h.col,g.col),y=Math.max(h.row,g.row),b=Math.max(h.col,g.col);return h=this.n2l(m)+p,g=this.n2l(b)+y,{top:p,left:m,bottom:y,right:b,sheetName:r,tl:{address:h,col:m,row:p,$col$row:`$${this.n2l(m)}$${p}`,sheetName:r},br:{address:g,col:b,row:y,$col$row:`$${this.n2l(b)}$${y}`,sheetName:r},dimensions:`${h}:${g}`}}if(l.startsWith("#"))return r?{sheetName:r,error:l}:{error:l};const c=this.decodeAddress(l);return r?{sheetName:r,...c}:c},encodeAddress:(u,o)=>i.n2l(o)+u,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,o){const[r,l,,f,c]=u,[h,g]=o;return h>=r&&h<=f&&g>=l&&g<=c}};t.exports=i},{}],20:[function(e,t,a){const d=(u,o)=>({...u,...o.reduce((r,l)=>(u[l]&&(r[l]={...u[l]}),r),{})}),i=function(u,o,r){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];u[r]&&(o[r]=d(u[r],l))};a.copyStyle=u=>{if(!u)return u;if(o=u,Object.keys(o).length===0)return{};var o;const r={...u};return i(u,r,"font",["color"]),i(u,r,"alignment"),i(u,r,"protection"),u.border&&(i(u,r,"border"),i(u.border,r.border,"top",["color"]),i(u.border,r.border,"left",["color"]),i(u.border,r.border,"bottom",["color"]),i(u.border,r.border,"right",["color"]),i(u.border,r.border,"diagonal",["color"])),u.fill&&(i(u,r,"fill",["fgColor","bgColor","center"]),u.fill.stops&&(r.fill.stops=u.fill.stops.map(l=>d(l,["color"])))),r}},{}],21:[function(e,t,a){(function(d){(function(){const i=e("crypto"),u={hash(o){const r=i.createHash(o);for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return r.update(d.concat(f)),r.digest()},convertPasswordToHash(o,r,l,f){if(r=r.toLowerCase(),i.getHashes().indexOf(r)<0)throw new Error(`Hash algorithm '${r}' not supported!`);const c=d.from(o,"utf16le");let h=this.hash(r,d.from(l,"base64"),c);for(let g=0;g<f;g++){const p=d.alloc(4);p.writeUInt32LE(g,0),h=this.hash(r,h,p)}return h.toString("base64")},randomBytes:o=>i.randomBytes(o)};t.exports=u}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,a){const{SaxesParser:d}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:u}=e("./browser-buffer-decode");t.exports=async function*(o){o.pipe&&!o[Symbol.asyncIterator]&&(o=o.pipe(new i));const r=new d;let l;r.on("error",c=>{l=c});let f=[];r.on("opentag",c=>f.push({eventType:"opentag",value:c})),r.on("text",c=>f.push({eventType:"text",value:c})),r.on("closetag",c=>f.push({eventType:"closetag",value:c}));for await(const c of o){if(r.write(u(c)),l)throw l;yield f,f=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,a){const d=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(o,r,l){const f=d.decode(r),c=d.decode(l);return o.replace(i,(h,g,p,m,y)=>{if(y)return h;const b=u.exec(m);if(b){const M=b[1],S=b[2].toUpperCase(),C=b[3],N=b[4];if(S.length>3||S.length===3&&S>"XFD")return h;let H=d.l2n(S),L=parseInt(N,10);return M||(H+=c.col-f.col),C||(L+=c.row-f.row),(g||"")+(M||"")+d.n2l(H)+(C||"")+L}return h})}}},{"./col-cache":19}],24:[function(e,t,a){(function(d,i){(function(){const u=e("readable-stream"),o=e("./utils"),r=e("./string-buf");class l{constructor(m,y){this._data=m,this._encoding=y}get length(){return this.toBuffer().length}copy(m,y,b,M){return this.toBuffer().copy(m,y,b,M)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class f{constructor(m){this._data=m}get length(){return this._data.length}copy(m,y,b,M){return this._data._buf.copy(m,y,b,M)}toBuffer(){return this._data.toBuffer()}}class c{constructor(m){this._data=m}get length(){return this._data.length}copy(m,y,b,M){this._data.copy(m,y,b,M)}toBuffer(){return this._data}}class h{constructor(m){this.size=m,this.buffer=i.alloc(m),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const m=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(m,0,this.iRead,this.iWrite),m}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(m){let y;return m===0?null:m===void 0||m>=this.length?(y=this.toBuffer(),this.iRead=this.iWrite,y):(y=i.alloc(m),this.buffer.copy(y,0,this.iRead,m),this.iRead+=m,y)}write(m,y,b){const M=Math.min(b,this.size-this.iWrite);return m.copy(this.buffer,this.iWrite,y,y+M),this.iWrite+=M,M}}const g=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};o.inherits(g,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(p=>p.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const m=this.buffers[this.buffers.length-1];if(!m.full)return m}const p=new h(this.bufSize);return this.buffers.push(p),p},async _pipe(p){await Promise.all(this.pipes.map(function(m){return new Promise(y=>{m.write(p.toBuffer(),()=>{y()})})}))},_writeToBuffers(p){let m=0;const y=p.length;for(;m<y;)m+=this._getWritableBuffer().write(p,m,y-m)},async write(p,m,y){let b;if(m instanceof Function&&(y=m,m="utf8"),y=y||o.nop,p instanceof r)b=new f(p);else if(p instanceof i)b=new c(p);else{if(!(typeof p=="string"||p instanceof String||p instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");b=new l(p,m)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(b);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(b),d.nextTick(y)):(await this._pipe(b),y());else this.paused||this.emit("data",b.toBuffer()),this._writeToBuffers(b),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(p,m,y){const b=M=>{M?y(M):(this._flush(),this.pipes.forEach(S=>{S.end()}),this.emit("finish"))};p?this.write(p,m,b):b()},read(p){let m;if(p){for(m=[];p&&this.buffers.length&&!this.buffers[0].eod;){const y=this.buffers[0],b=y.read(p);p-=b.length,m.push(b),y.eod&&y.full&&this.buffers.shift()}return i.concat(m)}return m=this.buffers.map(y=>y.toBuffer()).filter(Boolean),this.buffers=[],i.concat(m)},setEncoding(p){this.encoding=p},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe(p){this.pipes=this.pipes.filter(m=>m!==p)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=g}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,a){(function(d){(function(){t.exports=class{constructor(i){this._buf=d.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=d.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let u=2*this._buf.length;for(;u<i;)u*=2;const o=d.alloc(u);this._buf.copy(o,0),this._buf=o}addText(i){this._buffer=void 0;let u=this._inPos+this._buf.write(i,this._inPos,this._encoding);for(;u>=this._buf.length-4;)this._grow(this._inPos+i.length),u=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=u}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,a){const{toString:d}=Object.prototype,i=/["&<>]/,u={each:function(o,r){o&&(Array.isArray(o)?o.forEach(r):Object.keys(o).forEach(l=>{r(o[l],l)}))},some:function(o,r){return!!o&&(Array.isArray(o)?o.some(r):Object.keys(o).some(l=>r(o[l],l)))},every:function(o,r){return!o||(Array.isArray(o)?o.every(r):Object.keys(o).every(l=>r(o[l],l)))},map:function(o,r){return o?Array.isArray(o)?o.map(r):Object.keys(o).map(l=>r(o[l],l)):[]},keyBy:(o,r)=>o.reduce((l,f)=>(l[f[r]]=f,l),{}),isEqual:function(o,r){const l=typeof o,f=typeof r,c=Array.isArray(o),h=Array.isArray(r);let g;if(l!==f)return!1;switch(typeof o){case"object":if(c||h)return!(!c||!h)&&o.length===r.length&&o.every((p,m)=>{const y=r[m];return u.isEqual(p,y)});if(o===null||r===null)return o===r;if(g=Object.keys(o),Object.keys(r).length!==g.length)return!1;for(const p of g)if(!r.hasOwnProperty(p))return!1;return u.every(o,(p,m)=>{const y=r[m];return u.isEqual(p,y)});default:return o===r}},escapeHtml(o){const r=i.exec(o);if(!r)return o;let l="",f="",c=0,h=r.index;for(;h<o.length;h++){switch(o.charAt(h)){case'"':f="&quot;";break;case"&":f="&amp;";break;case"'":f="&apos;";break;case"<":f="&lt;";break;case">":f="&gt;";break;default:continue}c!==h&&(l+=o.substring(c,h)),c=h+1,l+=f}return c!==h?l+o.substring(c,h):l},strcmp:(o,r)=>o<r?-1:o>r?1:0,isUndefined:o=>d.call(o)==="[object Undefined]",isObject:o=>d.call(o)==="[object Object]",deepMerge(){const o=arguments[0]||{},{length:r}=arguments;let l,f,c;function h(g,p){l=o[p],c=Array.isArray(g),u.isObject(g)||c?(c?(c=!1,f=l&&Array.isArray(l)?l:[]):f=l&&u.isObject(l)?l:{},o[p]=u.deepMerge(f,g)):u.isUndefined(g)||(o[p]=g)}for(let g=0;g<r;g++)u.each(arguments[g],h);return o}};t.exports=u},{}],27:[function(e,t,a){(function(d,i){(function(){const u=e("fs"),o=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,r={nop(){},promiseImmediate:l=>new Promise(f=>{d.setImmediate?i(()=>{f(l)}):setTimeout(()=>{f(l)},1)}),inherits:function(l,f,c,h){l.super_=f,h||(h=c,c=null),c&&Object.keys(c).forEach(p=>{Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(c,p))});const g={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};h&&Object.keys(h).forEach(p=>{g[p]=Object.getOwnPropertyDescriptor(h,p)}),l.prototype=Object.create(f.prototype,g)},dateToExcel:(l,f)=>25569+l.getTime()/864e5-(f?1462:0),excelToDate(l,f){const c=Math.round(24*(l-25569+(f?1462:0))*3600*1e3);return new Date(c)},parsePath(l){const f=l.lastIndexOf("/");return{path:l.substring(0,f),name:l.substring(f+1)}},getRelsPath(l){const f=r.parsePath(l);return`${f.path}/_rels/${f.name}.rels`},xmlEncode(l){const f=o.exec(l);if(!f)return l;let c="",h="",g=0,p=f.index;for(;p<l.length;p++){const m=l.charCodeAt(p);switch(m){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&apos;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;case 127:h="";break;default:if(m<=31&&(m<=8||m>=11&&m!==13)){h="";break}continue}g!==p&&(c+=l.substring(g,p)),g=p+1,h&&(c+=h)}return g!==p?c+l.substring(g,p):c},xmlDecode:l=>l.replace(/&([a-z]*);/g,f=>{switch(f){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return f}}),validInt(l){const f=parseInt(l,10);return Number.isNaN(f)?0:f},isDateFmt(l){return l?(l=(l=l.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:l=>new Promise(f=>{u.access(l,u.constants.F_OK,c=>{f(!c)})})},toIsoDateString:l=>l.toIsoString().subsstr(0,10),parseBoolean:l=>l===!0||l==="true"||l===1||l==="1"};t.exports=r}).call(this)}).call(this,typeof jt<"u"?jt:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,a){const d=e("./under-dash"),i=e("./utils");function u(l,f,c){l.push(` ${f}="${i.xmlEncode(c.toString())}"`)}function o(l,f){if(f){const c=[];d.each(f,(h,g)=>{h!==void 0&&u(c,g,h)}),l.push(c.join(""))}}class r{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(f){const c=this._xml;c.push("<?xml"),o(c,f),c.push(`?>
62
62
  `)}openNode(f,c){const h=this.tos,g=this._xml;h&&this.open&&g.push(">"),this._stack.push(f),g.push("<"),g.push(f),o(g,c),this.leaf=!0,this.open=!0}addAttribute(f,c){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");c!==void 0&&u(this._xml,f,c)}addAttributes(f){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o(this._xml,f)}writeText(f){const c=this._xml;this.open&&(c.push(">"),this.open=!1),this.leaf=!1,c.push(i.xmlEncode(f.toString()))}writeXml(f){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(f)}closeNode(){const f=this._stack.pop(),c=this._xml;this.leaf?c.push("/>"):(c.push("</"),c.push(f),c.push(">")),this.open=!1,this.leaf=!1}leafNode(f,c,h){this.openNode(f,c),h!==void 0&&this.writeText(h),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const f=this._rollbacks.pop();this._xml.length>f.xml&&this._xml.splice(f.xml,this._xml.length-f.xml),this._stack.length>f.stack&&this._stack.splice(f.stack,this._stack.length-f.stack),this.leaf=f.leaf,this.open=f.open}get xml(){return this.closeAll(),this._xml.join("")}}r.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=r},{"./under-dash":26,"./utils":27}],29:[function(e,t,a){(function(d){(function(){const i=e("events"),u=e("jszip"),o=e("./stream-buf"),{stringToBuffer:r}=e("./browser-buffer-encode");class l extends i.EventEmitter{constructor(c){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},c),this.zip=new u,this.stream=new o}append(c,h){h.hasOwnProperty("base64")&&h.base64?this.zip.file(h.name,c,{base64:!0}):(d.browser&&typeof c=="string"&&(c=r(c)),this.zip.file(h.name,c))}async finalize(){const c=await this.zip.generateAsync(this.options);this.stream.end(c),this.emit("finish")}read(c){return this.stream.read(c)}setEncoding(c){return this.stream.setEncoding(c)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(c,h){return this.stream.pipe(c,h)}unpipe(c){return this.stream.unpipe(c)}unshift(c){return this.stream.unshift(c)}wrap(c){return this.stream.wrap(c)}}t.exports={ZipWriter:l}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,a){t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,a){t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,a){const d=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class u{prepare(){}render(){}parseOpen(r){}parseText(r){}parseClose(r){}reconcile(r,l){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(r=>{r instanceof u?r.reset():r.xform&&r.xform.reset()})}mergeModel(r){this.model=Object.assign(this.model||{},r)}async parse(r){for await(const l of r)for(const{eventType:f,value:c}of l)if(f==="opentag")this.parseOpen(c);else if(f==="text")this.parseText(c);else if(f==="closetag"&&!this.parseClose(c.name))return this.model;return this.model}async parseStream(r){return this.parse(d(r))}get xml(){return this.toXml(this.model)}toXml(r){const l=new i;return this.render(l,r),l.xml}static toAttribute(r,l){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(r===void 0){if(f)return l}else if(f||r!==l)return r.toString()}static toStringAttribute(r,l){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(r,l,f)}static toStringValue(r,l){return r===void 0?l:r}static toBoolAttribute(r,l){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(r===void 0){if(f)return l}else if(f||r!==l)return r?"1":"0"}static toBoolValue(r,l){return r===void 0?l:r==="1"}static toIntAttribute(r,l){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(r,l,f)}static toIntValue(r,l){return r===void 0?l:parseInt(r,10)}static toFloatAttribute(r,l){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(r,l,f)}static toFloatValue(r,l){return r===void 0?l:parseFloat(r)}}t.exports=u},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,a){const d=e("../base-xform"),i=e("../../../utils/col-cache");function u(r){try{return i.decodeEx(r),!0}catch{return!1}}function o(r){const l=[];let f=!1,c="";return r.split(",").forEach(h=>{if(!h)return;const g=(h.match(/'/g)||[]).length;if(!g)return void(f?c+=h+",":u(h)&&l.push(h));const p=g%2==0;!f&&p&&u(h)?l.push(h):f&&!p?(f=!1,u(c+h)&&l.push(c+h),c=""):(f=!0,c+=h+",")}),l}t.exports=class extends d{render(r,l){r.openNode("definedName",{name:l.name,localSheetId:l.localSheetId}),r.writeText(l.ranges.join(",")),r.closeNode()}parseOpen(r){switch(r.name){case"definedName":return this._parsedName=r.attributes.name,this._parsedLocalSheetId=r.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(r){this._parsedText.push(r)}parseClose(){return this.model={name:this._parsedName,ranges:o(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,a){const d=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{render(u,o){u.leafNode("sheet",{sheetId:o.id,name:o.name,state:o.state,"r:id":o.rId})}parseOpen(u){return u.name==="sheet"&&(this.model={name:d.xmlDecode(u.attributes.name),id:parseInt(u.attributes.sheetId,10),state:u.attributes.state,rId:u.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){i.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:u.fullCalcOnLoad?1:void 0})}parseOpen(i){return i.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){i.leafNode("workbookPr",{date1904:u.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(i){return i.name==="workbookPr"&&(this.model={date1904:i.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){const o={xWindow:u.x||0,yWindow:u.y||0,windowWidth:u.width||12e3,windowHeight:u.height||24e3,firstSheet:u.firstSheet,activeTab:u.activeTab};u.visibility&&u.visibility!=="visible"&&(o.visibility=u.visibility),i.leafNode("workbookView",o)}parseOpen(i){if(i.name==="workbookView"){const u=this.model={},o=function(l,f,c){const h=f!==void 0?u[l]=f:c;h!==void 0&&(u[l]=h)},r=function(l,f,c){const h=f!==void 0?u[l]=parseInt(f,10):c;h!==void 0&&(u[l]=h)};return r("x",i.attributes.xWindow,0),r("y",i.attributes.yWindow,0),r("width",i.attributes.windowWidth,25e3),r("height",i.attributes.windowHeight,1e4),o("visibility",i.attributes.visibility,"visible"),r("activeTab",i.attributes.activeTab,void 0),r("firstSheet",i.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),u=e("../../../utils/xml-stream"),o=e("../base-xform"),r=e("../static-xform"),l=e("../list-xform"),f=e("./defined-name-xform"),c=e("./sheet-xform"),h=e("./workbook-view-xform"),g=e("./workbook-properties-xform"),p=e("./workbook-calc-properties-xform");class m extends o{constructor(){super(),this.map={fileVersion:m.STATIC_XFORMS.fileVersion,workbookPr:new g,bookViews:new l({tag:"bookViews",count:!1,childXform:new h}),sheets:new l({tag:"sheets",count:!1,childXform:new c}),definedNames:new l({tag:"definedNames",count:!1,childXform:new f}),calcPr:new p}}prepare(b){b.sheets=b.worksheets;const M=[];let S=0;b.sheets.forEach(C=>{if(C.pageSetup&&C.pageSetup.printArea&&C.pageSetup.printArea.split("&&").forEach(N=>{const H=N.split(":"),L={name:"_xlnm.Print_Area",ranges:[`'${C.name}'!$${H[0]}:$${H[1]}`],localSheetId:S};M.push(L)}),C.pageSetup&&(C.pageSetup.printTitlesRow||C.pageSetup.printTitlesColumn)){const N=[];if(C.pageSetup.printTitlesColumn){const L=C.pageSetup.printTitlesColumn.split(":");N.push(`'${C.name}'!$${L[0]}:$${L[1]}`)}if(C.pageSetup.printTitlesRow){const L=C.pageSetup.printTitlesRow.split(":");N.push(`'${C.name}'!$${L[0]}:$${L[1]}`)}const H={name:"_xlnm.Print_Titles",ranges:N,localSheetId:S};M.push(H)}S++}),M.length&&(b.definedNames=b.definedNames.concat(M)),(b.media||[]).forEach((C,N)=>{C.name=C.type+(N+1)})}render(b,M){b.openXml(u.StdDocAttributes),b.openNode("workbook",m.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(b),this.map.workbookPr.render(b,M.properties),this.map.bookViews.render(b,M.views),this.map.sheets.render(b,M.sheets),this.map.definedNames.render(b,M.definedNames),this.map.calcPr.render(b,M.calcProperties),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"workbook":return!0;default:return this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(b){const M=(b.workbookRels||[]).reduce((L,z)=>(L[z.Id]=z,L),{}),S=[];let C,N=0;(b.sheets||[]).forEach(L=>{const z=M[L.rId];z&&(C=b.worksheetHash["xl/"+z.Target.replace(/^(\s|\/xl\/)+/,"")],C&&(C.name=L.name,C.id=L.id,C.state=L.state,S[N++]=C))});const H=[];d.each(b.definedNames,L=>{if(L.name==="_xlnm.Print_Area"){if(C=S[L.localSheetId],C){C.pageSetup||(C.pageSetup={});const z=i.decodeEx(L.ranges[0]);C.pageSetup.printArea=C.pageSetup.printArea?`${C.pageSetup.printArea}&&${z.dimensions}`:z.dimensions}}else if(L.name==="_xlnm.Print_Titles"){if(C=S[L.localSheetId],C){C.pageSetup||(C.pageSetup={});const z=L.ranges.join(","),B=/\$/g,X=/\$\d+:\$\d+/,V=z.match(X);if(V&&V.length){const P=V[0];C.pageSetup.printTitlesRow=P.replace(B,"")}const D=/\$[A-Z]+:\$[A-Z]+/,E=z.match(D);if(E&&E.length){const P=E[0];C.pageSetup.printTitlesColumn=P.replace(B,"")}}}else H.push(L)}),b.definedNames=H,b.media.forEach((L,z)=>{L.index=z})}}m.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},m.STATIC_XFORMS={fileVersion:new r({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=m},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,a){const d=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),u=e("../base-xform"),o=t.exports=function(r){this.model=r};i.inherits(o,u,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new d),this._richTextXform},render(r,l){l=l||this.model,r.openNode("comment",{ref:l.ref,authorId:0}),r.openNode("text"),l&&l.note&&l.note.texts&&l.note.texts.forEach(f=>{this.richTextXform.render(r,f)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"comment":return this.model={type:"note",note:{texts:[]},...r.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),u=e("../base-xform"),o=e("./comment-xform"),r=t.exports=function(){this.map={comment:new o}};i.inherits(r,u,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(l,f){f=f||this.model,l.openXml(d.StdDocAttributes),l.openNode("comments",r.COMMENTS_ATTRIBUTES),l.openNode("authors"),l.leafNode("author",null,"Author"),l.closeNode(),l.openNode("commentList"),f.comments.forEach(c=>{this.map.comment.render(l,c)}),l.closeNode(),l.closeNode()},parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(l),!0;default:return!1}},parseText(l){this.parser&&this.parser.parseText(l)},parseClose(l){switch(l){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,u,o){(u===o[2]||this.tag==="x:SizeWithCells"&&u===o[1])&&i.leafNode(this.tag)}parseOpen(i){switch(i.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,u){i.leafNode(this.tag,null,u)}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"x:Anchor"}getAnchorRect(i){const u=Math.floor(i.left),o=Math.floor(68*(i.left-u)),r=Math.floor(i.top),l=Math.floor(18*(i.top-r)),f=Math.floor(i.right),c=Math.floor(68*(i.right-f)),h=Math.floor(i.bottom);return[u,o,r,l,f,c,h,Math.floor(18*(i.bottom-h))]}getDefaultRect(i){const u=i.col,o=Math.max(i.row-2,0);return[u,6,o,14,u+2,2,o+4,16]}render(i,u){const o=u.anchor?this.getAnchorRect(u.anchor):this.getDefaultRect(u.refAddress);i.leafNode("x:Anchor",null,o.join(", "))}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,a){const d=e("../base-xform"),i=e("./vml-anchor-xform"),u=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),r=["twoCells","oneCells","absolute"];t.exports=class extends d{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new u({tag:"x:Locked"}),"x:LockText":new u({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(l,f){const{protection:c,editAs:h}=f.note;l.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(l,h,r),this.map["x:SizeWithCells"].render(l,h,r),this.map["x:Anchor"].render(l,f),this.map["x:Locked"].render(l,c.locked),l.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(l,c.lockText),l.leafNode("x:Row",null,f.refAddress.row-1),l.leafNode("x:Column",null,f.refAddress.col-1),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const l=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),f=Object.keys(l).length;this.model.editAs=r[f],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("./vml-shape-xform");class o extends i{constructor(){super(),this.map={"v:shape":new u}}get tag(){return"xml"}render(l,f){l.openXml(d.StdDocAttributes),l.openNode(this.tag,o.DRAWING_ATTRIBUTES),l.openNode("o:shapelayout",{"v:ext":"edit"}),l.leafNode("o:idmap",{"v:ext":"edit",data:1}),l.closeNode(),l.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),l.leafNode("v:stroke",{joinstyle:"miter"}),l.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),l.closeNode(),f.comments.forEach((c,h)=>{this.map["v:shape"].render(l,c,h)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}reconcile(l,f){l.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,f):this.map["xdr:oneCellAnchor"].reconcile(c,f)})}}o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,a){const d=e("../base-xform"),i=e("./vml-textbox-xform"),u=e("./vml-client-data-xform");class o extends d{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new u}}get tag(){return"v:shape"}render(l,f,c){l.openNode("v:shape",o.V_SHAPE_ATTRIBUTES(f,c)),l.leafNode("v:fill",{color2:"infoBackground [80]"}),l.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),l.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(l,f),this.map["x:ClientData"].render(l,f),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={margins:{insetmode:l.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}o.V_SHAPE_ATTRIBUTES=(r,l)=>({id:"_x0000_s"+(1025+l),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":r.note.margins&&r.note.margins.insetmode}),t.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"v:textbox"}conversionUnit(i,u,o){return`${parseFloat(i)*u.toFixed(2)}${o}`}reverseConversionUnit(i){return(i||"").split(",").map(u=>Number(parseFloat(this.conversionUnit(parseFloat(u),.1,"")).toFixed(2)))}render(i,u){const o={style:"mso-direction-alt:auto"};if(u&&u.note){let{inset:r}=u.note&&u.note.margins;Array.isArray(r)&&(r=r.map(l=>this.conversionUnit(l,10,"mm")).join(",")),r&&(o.inset=r)}i.openNode("v:textbox",o),i.leafNode("div",{style:"text-align:left"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:return this.model={inset:this.reverseConversionUnit(i.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,t,a){const d=e("./base-xform");t.exports=class extends d{createNewModel(i){return{}}parseOpen(i){return this.parser=this.parser||this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag&&(this.model=this.createNewModel(i),!0)}parseText(i){this.parser&&this.parser.parseText(i)}onParserClose(i,u){this.model[i]=u.model}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.onParserClose(i,this.parser),this.parser=void 0),!0):i!==this.tag}}},{"./base-xform":32}],49:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){i.openNode("HeadingPairs"),i.openNode("vt:vector",{size:2,baseType:"variant"}),i.openNode("vt:variant"),i.leafNode("vt:lpstr",void 0,"Worksheets"),i.closeNode(),i.openNode("vt:variant"),i.leafNode("vt:i4",void 0,u.length),i.closeNode(),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="HeadingPairs"}parseText(){}parseClose(i){return i!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){i.openNode("TitlesOfParts"),i.openNode("vt:vector",{size:u.length,baseType:"lpstr"}),u.forEach(o=>{i.leafNode("vt:lpstr",void 0,o.name)}),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="TitlesOfParts"}parseText(){}parseClose(i){return i!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),r=e("./app-titles-of-parts-xform");class l extends i{constructor(){super(),this.map={Company:new u({tag:"Company"}),Manager:new u({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new r}}render(c,h){c.openXml(d.StdDocAttributes),c.openNode("Properties",l.PROPERTY_ATTRIBUTES),c.leafNode("Application",void 0,"Microsoft Excel"),c.leafNode("DocSecurity",void 0,"0"),c.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(c,h.worksheets),this.map.TitleOfParts.render(c,h.worksheets),this.map.Company.render(c,h.company||""),this.map.Manager.render(c,h.manager),c.leafNode("LinksUpToDate",void 0,"false"),c.leafNode("SharedDoc",void 0,"false"),c.leafNode("HyperlinksChanged",void 0,"false"),c.leafNode("AppVersion",void 0,"16.0300"),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"Properties":return!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}l.DateFormat=function(f){return f.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform");class u extends i{render(r,l){r.openXml(d.StdDocAttributes),r.openNode("Types",u.PROPERTY_ATTRIBUTES);const f={};(l.media||[]).forEach(c=>{if(c.type==="image"){const h=c.extension;f[h]||(f[h]=!0,r.leafNode("Default",{Extension:h,ContentType:"image/"+h}))}}),r.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),r.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),r.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),l.worksheets.forEach(c=>{const h=`/xl/worksheets/sheet${c.id}.xml`;r.leafNode("Override",{PartName:h,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),r.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),r.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),l.sharedStrings&&l.sharedStrings.count&&r.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),l.tables&&l.tables.forEach(c=>{r.leafNode("Override",{PartName:"/xl/tables/"+c.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),l.drawings&&l.drawings.forEach(c=>{r.leafNode("Override",{PartName:`/xl/drawings/${c.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),l.commentRefs&&(r.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),l.commentRefs.forEach(c=>{let{commentName:h}=c;r.leafNode("Override",{PartName:`/xl/${h}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),r.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),r.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),r.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("../simple/date-xform"),o=e("../simple/string-xform"),r=e("../simple/integer-xform");class l extends i{constructor(){super(),this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new u({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new r({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new u({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new u({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(c,h){c.openXml(d.StdDocAttributes),c.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(c,h.creator),this.map["dc:title"].render(c,h.title),this.map["dc:subject"].render(c,h.subject),this.map["dc:description"].render(c,h.description),this.map["dc:identifier"].render(c,h.identifier),this.map["dc:language"].render(c,h.language),this.map["cp:keywords"].render(c,h.keywords),this.map["cp:category"].render(c,h.category),this.map["cp:lastModifiedBy"].render(c,h.lastModifiedBy),this.map["cp:lastPrinted"].render(c,h.lastPrinted),this.map["cp:revision"].render(c,h.revision),this.map["cp:version"].render(c,h.version),this.map["cp:contentStatus"].render(c,h.contentStatus),this.map["cp:contentType"].render(c,h.contentType),this.map["dcterms:created"].render(c,h.created),this.map["dcterms:modified"].render(c,h.modified),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[c.name],this.parser)return this.parser.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(c))}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+c)}}}l.DateFormat=function(f){return f.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{render(i,u){i.leafNode("Relationship",u)}parseOpen(i){switch(i.name){case"Relationship":return this.model=i.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("./relationship-xform");class o extends i{constructor(){super(),this.map={Relationship:new u}}render(l,f){f=f||this._values,l.openXml(d.StdDocAttributes),l.openNode("Relationships",o.RELATIONSHIPS_ATTRIBUTES),f.forEach(c=>{this.map.Relationship.render(l,c)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[l.name],this.parser)return this.parser.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(l){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={range:{editAs:i.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}reconcilePicture(i,u){if(i&&i.rId){const o=u.rels[i.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(o){const r=o[1],l=u.mediaIndex[r];return u.media[l]}}}}},{"../base-xform":32}],57:[function(e,t,a){const d=e("../base-xform"),i=e("./blip-xform");t.exports=class extends d{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(u,o){u.openNode(this.tag),this.map["a:blip"].render(u,o),u.openNode("a:stretch"),u.leafNode("a:fillRect"),u.closeNode(),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"a:blip"}render(i,u){i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":u.rId,cstate:"print"})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"xdr:cNvPicPr"}render(i){i.openNode(this.tag),i.leafNode("a:picLocks",{noChangeAspect:"1"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,t,a){const d=e("../base-xform"),i=e("./hlink-click-xform"),u=e("./ext-lst-xform");t.exports=class extends d{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new u}}get tag(){return"xdr:cNvPr"}render(o,r){o.openNode(this.tag,{id:r.index,name:"Picture "+r.index}),this.map["a:hlinkClick"].render(o,r),this.map["a:extLst"].render(o,r),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,a){const d=e("../base-xform"),i=e("../simple/integer-xform");t.exports=class extends d{constructor(u){super(),this.tag=u.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(u,o){u.openNode(this.tag),this.map["xdr:col"].render(u,o.nativeCol),this.map["xdr:colOff"].render(u,o.nativeColOff),this.map["xdr:row"].render(u,o.nativeRow),this.map["xdr:rowOff"].render(u,o.nativeRowOff),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,a){const d=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),u=e("../base-xform"),o=e("./two-cell-anchor-xform"),r=e("./one-cell-anchor-xform");class l extends u{constructor(){super(),this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new r}}prepare(c){c.anchors.forEach((h,g)=>{h.anchorType=function(p){return(typeof p.range=="string"?d.decode(p.range):p.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(h),this.map[h.anchorType].prepare(h,{index:g})})}get tag(){return"xdr:wsDr"}render(c,h){c.openXml(i.StdDocAttributes),c.openNode(this.tag,l.DRAWING_ATTRIBUTES),h.anchors.forEach(g=>{this.map[g.anchorType].render(c,g)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(c){case this.tag:return!1;default:return!0}}reconcile(c,h){c.anchors.forEach(g=>{g.br?this.map["xdr:twoCellAnchor"].reconcile(g,h):this.map["xdr:oneCellAnchor"].reconcile(g,h)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"a:extLst"}render(i){i.openNode(this.tag),i.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),i.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),i.closeNode(),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.map={}}render(i,u){i.openNode(this.tag);const o=Math.floor(9525*u.width),r=Math.floor(9525*u.height);i.addAttribute("cx",o),i.addAttribute("cy",r),i.closeNode()}parseOpen(i){return i.name===this.tag&&(this.model={width:parseInt(i.attributes.cx||"0",10)/9525,height:parseInt(i.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"a:hlinkClick"}render(i,u){u.hyperlinks&&u.hyperlinks.rId&&i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":u.hyperlinks.rId,tooltip:u.hyperlinks.tooltip})}parseOpen(i){switch(i.name){case this.tag:return this.model={hyperlinks:{rId:i.attributes["r:id"],tooltip:i.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,a){const d=e("../base-xform"),i=e("./c-nv-pr-xform"),u=e("./c-nv-pic-pr-xform");t.exports=class extends d{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new u}}get tag(){return"xdr:nvPicPr"}render(o,r){o.openNode(this.tag),this.map["xdr:cNvPr"].render(o,r),this.map["xdr:cNvPicPr"].render(o,r),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,a){const d=e("./base-cell-anchor-xform"),i=e("../static-xform"),u=e("./cell-position-xform"),o=e("./ext-xform"),r=e("./pic-xform");t.exports=class extends d{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new r,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(l,f){this.map["xdr:pic"].prepare(l.picture,f)}render(l,f){l.openNode(this.tag,{editAs:f.range.editAs||"oneCell"}),this.map["xdr:from"].render(l,f.range.tl),this.map["xdr:ext"].render(l,f.range.ext),this.map["xdr:pic"].render(l,f.picture),this.map["xdr:clientData"].render(l,{}),l.closeNode()}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(l,f){l.medium=this.reconcilePicture(l.picture,f)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,a){const d=e("../base-xform"),i=e("../static-xform"),u=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),r=e("./sp-pr");t.exports=class extends d{constructor(){super(),this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new u,"xdr:spPr":new i(r)}}get tag(){return"xdr:pic"}prepare(l,f){l.index=f.index+1}render(l,f){l.openNode(this.tag),this.map["xdr:nvPicPr"].render(l,f),this.map["xdr:blipFill"].render(l,f),this.map["xdr:spPr"].render(l,f),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,a){t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,a){const d=e("./base-cell-anchor-xform"),i=e("../static-xform"),u=e("./cell-position-xform"),o=e("./pic-xform");t.exports=class extends d{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:to":new u({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(r,l){this.map["xdr:pic"].prepare(r.picture,l)}render(r,l){r.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,l.range.tl),this.map["xdr:to"].render(r,l.range.br),this.map["xdr:pic"].render(r,l.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(r,l){r.medium=this.reconcilePicture(r.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,a){const d=e("./base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.always=!!i.always,this.count=i.count,this.empty=i.empty,this.$count=i.$count||"count",this.$=i.$,this.childXform=i.childXform,this.maxItems=i.maxItems}prepare(i,u){const{childXform:o}=this;i&&i.forEach((r,l)=>{u.index=l,o.prepare(r,u)})}render(i,u){if(this.always||u&&u.length){i.openNode(this.tag,this.$),this.count&&i.addAttribute(this.$count,u&&u.length||0);const{childXform:o}=this;(u||[]).forEach((r,l)=>{o.render(i,r,l)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(i)&&(this.parser=this.childXform,!0)}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser){if(!this.parser.parseClose(i)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(i,u){if(i){const{childXform:o}=this;i.forEach(r=>{o.reconcile(r,u)})}}}},{"./base-xform":32}],72:[function(e,t,a){const d=e("../../../utils/col-cache"),i=e("../base-xform");t.exports=class extends i{get tag(){return"autoFilter"}render(u,o){if(o)if(typeof o=="string")u.leafNode("autoFilter",{ref:o});else{const r=function(c){return typeof c=="string"?c:d.getAddress(c.row,c.column).address},l=r(o.from),f=r(o.to);l&&f&&u.leafNode("autoFilter",{ref:`${l}:${f}`})}}parseOpen(u){u.name==="autoFilter"&&(this.model=u.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,a){const d=e("../../../utils/utils"),i=e("../base-xform"),u=e("../../../doc/range"),o=e("../../../doc/enums"),r=e("../strings/rich-text-xform");function l(f){if(f==null)return o.ValueType.Null;if(f instanceof String||typeof f=="string")return o.ValueType.String;if(typeof f=="number")return o.ValueType.Number;if(typeof f=="boolean")return o.ValueType.Boolean;if(f instanceof Date)return o.ValueType.Date;if(f.text&&f.hyperlink)return o.ValueType.Hyperlink;if(f.formula)return o.ValueType.Formula;if(f.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends i{constructor(){super(),this.richTextXForm=new r}get tag(){return"c"}prepare(f,c){const h=c.styles.addStyleModel(f.style||{},function(g){switch(g.type){case o.ValueType.Formula:return l(g.result);default:return g.type}}(f));switch(h&&(f.styleId=h),f.comment&&c.comments.push({...f.comment,ref:f.address}),f.type){case o.ValueType.String:case o.ValueType.RichText:c.sharedStrings&&(f.ssId=c.sharedStrings.add(f.value));break;case o.ValueType.Date:c.date1904&&(f.date1904=!0);break;case o.ValueType.Hyperlink:c.sharedStrings&&f.text!==void 0&&f.text!==null&&(f.ssId=c.sharedStrings.add(f.text)),c.hyperlinks.push({address:f.address,target:f.hyperlink,tooltip:f.tooltip});break;case o.ValueType.Merge:c.merges.add(f);break;case o.ValueType.Formula:if(c.date1904&&(f.date1904=!0),f.shareType==="shared"&&(f.si=c.siFormulae++),f.formula)c.formulae[f.address]=f;else if(f.sharedFormula){const g=c.formulae[f.sharedFormula];if(!g)throw new Error("Shared Formula master must exist above and or left of clone for cell "+f.address);g.si===void 0?(g.shareType="shared",g.si=c.siFormulae++,g.range=new u(g.address,f.address)):g.range&&g.range.expandToAddress(f.address),f.si=g.si}}}renderFormula(f,c){let h=null;switch(c.shareType){case"shared":h={t:"shared",ref:c.ref||c.range.range,si:c.si};break;case"array":h={t:"array",ref:c.ref};break;default:c.si!==void 0&&(h={t:"shared",si:c.si})}switch(l(c.result)){case o.ValueType.Null:f.leafNode("f",h,c.formula);break;case o.ValueType.String:f.addAttribute("t","str"),f.leafNode("f",h,c.formula),f.leafNode("v",null,c.result);break;case o.ValueType.Number:f.leafNode("f",h,c.formula),f.leafNode("v",null,c.result);break;case o.ValueType.Boolean:f.addAttribute("t","b"),f.leafNode("f",h,c.formula),f.leafNode("v",null,c.result?1:0);break;case o.ValueType.Error:f.addAttribute("t","e"),f.leafNode("f",h,c.formula),f.leafNode("v",null,c.result.error);break;case o.ValueType.Date:f.leafNode("f",h,c.formula),f.leafNode("v",null,d.dateToExcel(c.result,c.date1904));break;default:throw new Error("I could not understand type of value")}}render(f,c){if(c.type!==o.ValueType.Null||c.styleId){switch(f.openNode("c"),f.addAttribute("r",c.address),c.styleId&&f.addAttribute("s",c.styleId),c.type){case o.ValueType.Null:break;case o.ValueType.Number:f.leafNode("v",null,c.value);break;case o.ValueType.Boolean:f.addAttribute("t","b"),f.leafNode("v",null,c.value?"1":"0");break;case o.ValueType.Error:f.addAttribute("t","e"),f.leafNode("v",null,c.value.error);break;case o.ValueType.String:case o.ValueType.RichText:c.ssId!==void 0?(f.addAttribute("t","s"),f.leafNode("v",null,c.ssId)):c.value&&c.value.richText?(f.addAttribute("t","inlineStr"),f.openNode("is"),c.value.richText.forEach(h=>{this.richTextXForm.render(f,h)}),f.closeNode("is")):(f.addAttribute("t","str"),f.leafNode("v",null,c.value));break;case o.ValueType.Date:f.leafNode("v",null,d.dateToExcel(c.value,c.date1904));break;case o.ValueType.Hyperlink:c.ssId!==void 0?(f.addAttribute("t","s"),f.leafNode("v",null,c.ssId)):(f.addAttribute("t","str"),f.leafNode("v",null,c.text));break;case o.ValueType.Formula:this.renderFormula(f,c);break;case o.ValueType.Merge:}f.closeNode()}}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"c":return this.model={address:f.attributes.r},this.t=f.attributes.t,f.attributes.s&&(this.model.styleId=parseInt(f.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=f.attributes.si,this.model.shareType=f.attributes.t,this.model.ref=f.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){if(this.parser)this.parser.parseText(f);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+f:f;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+f:f:this.model.value=this.model.value?this.model.value+f:f}}parseClose(f){switch(f){case"c":{const{model:c}=this;if(c.formula||c.shareType)c.type=o.ValueType.Formula,c.value&&(this.t==="str"?c.result=d.xmlDecode(c.value):this.t==="b"?c.result=parseInt(c.value,10)!==0:this.t==="e"?c.result={error:c.value}:c.result=parseFloat(c.value),c.value=void 0);else if(c.value!==void 0)switch(this.t){case"s":c.type=o.ValueType.String,c.value=parseInt(c.value,10);break;case"str":c.type=o.ValueType.String,c.value=d.xmlDecode(c.value);break;case"inlineStr":c.type=o.ValueType.String;break;case"b":c.type=o.ValueType.Boolean,c.value=parseInt(c.value,10)!==0;break;case"e":c.type=o.ValueType.Error,c.value={error:c.value};break;default:c.type=o.ValueType.Number,c.value=parseFloat(c.value)}else c.styleId?c.type=o.ValueType.Null:c.type=o.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(f),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(f),!0)}}reconcile(f,c){const h=f.styleId&&c.styles&&c.styles.getStyleModel(f.styleId);switch(h&&(f.style=h),f.styleId!==void 0&&(f.styleId=void 0),f.type){case o.ValueType.String:typeof f.value=="number"&&c.sharedStrings&&(f.value=c.sharedStrings.getString(f.value)),f.value.richText&&(f.type=o.ValueType.RichText);break;case o.ValueType.Number:h&&d.isDateFmt(h.numFmt)&&(f.type=o.ValueType.Date,f.value=d.excelToDate(f.value,c.date1904));break;case o.ValueType.Formula:f.result!==void 0&&h&&d.isDateFmt(h.numFmt)&&(f.result=d.excelToDate(f.result,c.date1904)),f.shareType==="shared"&&(f.ref?c.formulae[f.si]=f.address:(f.sharedFormula=c.formulae[f.si],delete f.shareType),delete f.si)}const g=c.hyperlinkMap[f.address];g&&(f.type===o.ValueType.Formula?(f.text=f.result,f.result=void 0):(f.text=f.value,f.value=void 0),f.type=o.ValueType.Hyperlink,f.hyperlink=g);const p=c.commentsMap&&c.commentsMap[f.address];p&&(f.comment=p)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{get tag(){return"x14:cfIcon"}render(i,u){i.leafNode(this.tag,{iconSet:u.iconSet,iconId:u.iconId})}parseOpen(i){let{attributes:u}=i;this.model={iconSet:u.iconSet,iconId:d.toIntValue(u.iconId)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,a){const{v4:d}=e("uuid"),i=e("../../base-xform"),u=e("../../composite-xform"),o=e("./databar-ext-xform"),r=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class f extends u{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new r}}get tag(){return"x14:cfRule"}static isExt(h){return h.type==="dataBar"?o.isExt(h):!(h.type!=="iconSet"||!h.custom&&!l[h.iconSet])}prepare(h){f.isExt(h)&&(h.x14Id=`{${d()}}`.toUpperCase())}render(h,g){if(f.isExt(g))switch(g.type){case"dataBar":this.renderDataBar(h,g);break;case"iconSet":this.renderIconSet(h,g)}}renderDataBar(h,g){h.openNode(this.tag,{type:"dataBar",id:g.x14Id}),this.databarXform.render(h,g),h.closeNode()}renderIconSet(h,g){h.openNode(this.tag,{type:"iconSet",priority:g.priority,id:g.x14Id||`{${d()}}`}),this.iconSetXform.render(h,g),h.closeNode()}createNewModel(h){let{attributes:g}=h;return{type:g.type,x14Id:g.id,priority:i.toIntValue(g.priority)}}onParserClose(h,g){Object.assign(this.model,g.model)}}t.exports=f},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,a){const d=e("../../composite-xform"),i=e("./f-ext-xform");t.exports=class extends d{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(u,o){u.openNode(this.tag,{type:o.type}),o.value!==void 0&&this.fExtXform.render(u,o.value),u.closeNode()}createNewModel(u){return{type:u.attributes.type}}onParserClose(u,o){switch(u){case"xm:f":this.model.value=o.model?parseFloat(o.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,a){const d=e("../../composite-xform"),i=e("./sqref-ext-xform"),u=e("./cf-rule-ext-xform");t.exports=class extends d{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new u}}get tag(){return"x14:conditionalFormatting"}prepare(o,r){o.rules.forEach(l=>{this.cfRule.prepare(l,r)})}render(o,r){r.rules.some(u.isExt)&&(o.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),r.rules.filter(u.isExt).forEach(l=>this.cfRule.render(o,l)),this.sqRef.render(o,r.ref),o.closeNode())}createNewModel(){return{rules:[]}}onParserClose(o,r){switch(o){case"xm:sqref":this.model.ref=r.model;break;case"x14:cfRule":this.model.rules.push(r.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,a){const d=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),u=e("./conditional-formatting-ext-xform");t.exports=class extends d{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new u}}get tag(){return"x14:conditionalFormattings"}hasContent(o){return o.hasExtContent===void 0&&(o.hasExtContent=o.some(r=>r.rules.some(i.isExt))),o.hasExtContent}prepare(o,r){o.forEach(l=>{this.cfXform.prepare(l,r)})}render(o,r){this.hasContent(r)&&(o.openNode(this.tag),r.forEach(l=>this.cfXform.render(o,l)),o.closeNode())}createNewModel(){return[]}onParserClose(o,r){this.model.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,a){const d=e("../../base-xform"),i=e("../../composite-xform"),u=e("../../style/color-xform"),o=e("./cfvo-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new u("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new u("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new u("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new u("x14:axisColor")}}static isExt(r){return!r.gradient}get tag(){return"x14:dataBar"}render(r,l){r.openNode(this.tag,{minLength:d.toIntAttribute(l.minLength,0,!0),maxLength:d.toIntAttribute(l.maxLength,100,!0),border:d.toBoolAttribute(l.border,!1),gradient:d.toBoolAttribute(l.gradient,!0),negativeBarColorSameAsPositive:d.toBoolAttribute(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolAttribute(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toAttribute(l.axisPosition,"auto"),direction:d.toAttribute(l.direction,"leftToRight")}),l.cfvo.forEach(f=>{this.cfvoXform.render(r,f)}),this.borderColorXform.render(r,l.borderColor),this.negativeBorderColorXform.render(r,l.negativeBorderColor),this.negativeFillColorXform.render(r,l.negativeFillColor),this.axisColorXform.render(r,l.axisColor),r.closeNode()}createNewModel(r){let{attributes:l}=r;return{cfvo:[],minLength:d.toIntValue(l.minLength,0),maxLength:d.toIntValue(l.maxLength,100),border:d.toBoolValue(l.border,!1),gradient:d.toBoolValue(l.gradient,!0),negativeBarColorSameAsPositive:d.toBoolValue(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolValue(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toStringValue(l.axisPosition,"auto"),direction:d.toStringValue(l.direction,"leftToRight")}}onParserClose(r,l){const[,f]=r.split(":");switch(f){case"cfvo":this.model.cfvo.push(l.model);break;default:this.model[f]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{get tag(){return"xm:f"}render(i,u){i.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,a){const d=e("../../base-xform"),i=e("../../composite-xform"),u=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new u,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(r,l){r.openNode(this.tag,{iconSet:d.toStringAttribute(l.iconSet),reverse:d.toBoolAttribute(l.reverse,!1),showValue:d.toBoolAttribute(l.showValue,!0),custom:d.toBoolAttribute(l.icons,!1)}),l.cfvo.forEach(f=>{this.cfvoXform.render(r,f)}),l.icons&&l.icons.forEach((f,c)=>{f.iconId=c,this.cfIconXform.render(r,f)}),r.closeNode()}createNewModel(r){let{attributes:l}=r;return{cfvo:[],iconSet:d.toStringValue(l.iconSet,"3TrafficLights"),reverse:d.toBoolValue(l.reverse,!1),showValue:d.toBoolValue(l.showValue,!0)}}onParserClose(r,l){const[,f]=r.split(":");switch(f){case"cfvo":this.model.cfvo.push(l.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(l.model);break;default:this.model[f]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{get tag(){return"xm:sqref"}render(i,u){i.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,a){const d=e("../../base-xform"),i=e("../../composite-xform"),u=e("../../../../doc/range"),o=e("./databar-xform"),r=e("./ext-lst-ref-xform"),l=e("./formula-xform"),f=e("./color-scale-xform"),c=e("./icon-set-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},g=m=>{const{type:y,operator:b}=m;switch(y){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:y};default:return{type:y,operator:b}}};class p extends i{constructor(){super(),this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new r,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new f,iconSet:this.iconSetXform=new c}}get tag(){return"cfRule"}static isPrimitive(y){return y.type!=="iconSet"||!y.custom&&!h[y.iconSet]}render(y,b){switch(b.type){case"expression":this.renderExpression(y,b);break;case"cellIs":this.renderCellIs(y,b);break;case"top10":this.renderTop10(y,b);break;case"aboveAverage":this.renderAboveAverage(y,b);break;case"dataBar":this.renderDataBar(y,b);break;case"colorScale":this.renderColorScale(y,b);break;case"iconSet":this.renderIconSet(y,b);break;case"containsText":this.renderText(y,b);break;case"timePeriod":this.renderTimePeriod(y,b)}}renderExpression(y,b){y.openNode(this.tag,{type:"expression",dxfId:b.dxfId,priority:b.priority}),this.formulaXform.render(y,b.formulae[0]),y.closeNode()}renderCellIs(y,b){y.openNode(this.tag,{type:"cellIs",dxfId:b.dxfId,priority:b.priority,operator:b.operator}),b.formulae.forEach(M=>{this.formulaXform.render(y,M)}),y.closeNode()}renderTop10(y,b){y.leafNode(this.tag,{type:"top10",dxfId:b.dxfId,priority:b.priority,percent:d.toBoolAttribute(b.percent,!1),bottom:d.toBoolAttribute(b.bottom,!1),rank:d.toIntValue(b.rank,10,!0)})}renderAboveAverage(y,b){y.leafNode(this.tag,{type:"aboveAverage",dxfId:b.dxfId,priority:b.priority,aboveAverage:d.toBoolAttribute(b.aboveAverage,!0)})}renderDataBar(y,b){y.openNode(this.tag,{type:"dataBar",priority:b.priority}),this.databarXform.render(y,b),this.extLstRefXform.render(y,b),y.closeNode()}renderColorScale(y,b){y.openNode(this.tag,{type:"colorScale",priority:b.priority}),this.colorScaleXform.render(y,b),y.closeNode()}renderIconSet(y,b){p.isPrimitive(b)&&(y.openNode(this.tag,{type:"iconSet",priority:b.priority}),this.iconSetXform.render(y,b),y.closeNode())}renderText(y,b){y.openNode(this.tag,{type:b.operator,dxfId:b.dxfId,priority:b.priority,operator:d.toStringAttribute(b.operator,"containsText")});const M=(S=>{if(S.formulae&&S.formulae[0])return S.formulae[0];const C=new u(S.ref),{tl:N}=C;switch(S.operator){case"containsText":return`NOT(ISERROR(SEARCH("${S.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(b);M&&this.formulaXform.render(y,M),y.closeNode()}renderTimePeriod(y,b){y.openNode(this.tag,{type:"timePeriod",dxfId:b.dxfId,priority:b.priority,timePeriod:b.timePeriod});const M=(S=>{if(S.formulae&&S.formulae[0])return S.formulae[0];const C=new u(S.ref),{tl:N}=C;switch(S.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(b);M&&this.formulaXform.render(y,M),y.closeNode()}createNewModel(y){let{attributes:b}=y;return{...g(b),dxfId:d.toIntValue(b.dxfId),priority:d.toIntValue(b.priority),timePeriod:b.timePeriod,percent:d.toBoolValue(b.percent),bottom:d.toBoolValue(b.bottom),rank:d.toIntValue(b.rank),aboveAverage:d.toBoolValue(b.aboveAverage)}}onParserClose(y,b){switch(y){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,b.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(b.model)}}}t.exports=p},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{get tag(){return"cfvo"}render(i,u){i.leafNode(this.tag,{type:u.type,val:u.value})}parseOpen(i){this.model={type:i.attributes.type,value:d.toFloatValue(i.attributes.val)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,a){const d=e("../../composite-xform"),i=e("../../style/color-xform"),u=e("./cfvo-xform");t.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new i}}get tag(){return"colorScale"}render(o,r){o.openNode(this.tag),r.cfvo.forEach(l=>{this.cfvoXform.render(o,l)}),r.color.forEach(l=>{this.colorXform.render(o,l)}),o.closeNode()}createNewModel(o){return{cfvo:[],color:[]}}onParserClose(o,r){this.model[o].push(r.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,a){const d=e("../../composite-xform"),i=e("./cf-rule-xform");t.exports=class extends d{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(u,o){o.rules.some(i.isPrimitive)&&(u.openNode(this.tag,{sqref:o.ref}),o.rules.forEach(r=>{i.isPrimitive(r)&&(r.ref=o.ref,this.map.cfRule.render(u,r))}),u.closeNode())}createNewModel(u){let{attributes:o}=u;return{ref:o.sqref,rules:[]}}onParserClose(u,o){this.model.rules.push(o.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,a){const d=e("../../base-xform"),i=e("./conditional-formatting-xform");t.exports=class extends d{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(u,o){let r=u.reduce((l,f)=>Math.max(l,...f.rules.map(c=>c.priority||0)),1);u.forEach(l=>{l.rules.forEach(f=>{f.priority||(f.priority=r++),f.style&&(f.dxfId=o.styles.addDxfStyle(f.style))})})}render(u,o){o.forEach(r=>{this.cfXform.render(u,r)})}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(!!this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(u,o){u.forEach(r=>{r.rules.forEach(l=>{l.dxfId!==void 0&&(l.style=o.styles.getDxfStyle(l.dxfId),delete l.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,a){const d=e("../../composite-xform"),i=e("../../style/color-xform"),u=e("./cfvo-xform");t.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new i}}get tag(){return"dataBar"}render(o,r){o.openNode(this.tag),r.cfvo.forEach(l=>{this.cfvoXform.render(o,l)}),this.colorXform.render(o,r.color),o.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(o,r){switch(o){case"cfvo":this.model.cfvo.push(r.model);break;case"color":this.model.color=r.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,a){const d=e("../../base-xform"),i=e("../../composite-xform");class u extends d{get tag(){return"x14:id"}render(l,f){l.leafNode(this.tag,null,f)}parseOpen(){this.model=""}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}class o extends i{constructor(){super(),this.map={"x14:id":this.idXform=new u}}get tag(){return"ext"}render(l,f){l.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(l,f.x14Id),l.closeNode()}createNewModel(){return{}}onParserClose(l,f){this.model.x14Id=f.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new o}}get tag(){return"extLst"}render(r,l){r.openNode(this.tag),this.map.ext.render(r,l),r.closeNode()}createNewModel(){return{}}onParserClose(r,l){Object.assign(this.model,l.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,a){const d=e("../../base-xform");t.exports=class extends d{get tag(){return"formula"}render(i,u){i.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,a){const d=e("../../base-xform"),i=e("../../composite-xform"),u=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new u}}get tag(){return"iconSet"}render(o,r){o.openNode(this.tag,{iconSet:d.toStringAttribute(r.iconSet,"3TrafficLights"),reverse:d.toBoolAttribute(r.reverse,!1),showValue:d.toBoolAttribute(r.showValue,!0)}),r.cfvo.forEach(l=>{this.cfvoXform.render(o,l)}),o.closeNode()}createNewModel(o){let{attributes:r}=o;return{iconSet:d.toStringValue(r.iconSet,"3TrafficLights"),reverse:d.toBoolValue(r.reverse),showValue:d.toBoolValue(r.showValue),cfvo:[]}}onParserClose(o,r){this.model[o].push(r.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,a){const d=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{get tag(){return"col"}prepare(u,o){const r=o.styles.addStyleModel(u.style||{});r&&(u.styleId=r)}render(u,o){u.openNode("col"),u.addAttribute("min",o.min),u.addAttribute("max",o.max),o.width&&u.addAttribute("width",o.width),o.styleId&&u.addAttribute("style",o.styleId),o.hidden&&u.addAttribute("hidden","1"),o.bestFit&&u.addAttribute("bestFit","1"),o.outlineLevel&&u.addAttribute("outlineLevel",o.outlineLevel),o.collapsed&&u.addAttribute("collapsed","1"),u.addAttribute("customWidth","1"),u.closeNode()}parseOpen(u){if(u.name==="col"){const o=this.model={min:parseInt(u.attributes.min||"0",10),max:parseInt(u.attributes.max||"0",10),width:u.attributes.width===void 0?void 0:parseFloat(u.attributes.width||"0")};return u.attributes.style&&(o.styleId=parseInt(u.attributes.style,10)),d.parseBoolean(u.attributes.hidden)&&(o.hidden=!0),d.parseBoolean(u.attributes.bestFit)&&(o.bestFit=!0),u.attributes.outlineLevel&&(o.outlineLevel=parseInt(u.attributes.outlineLevel,10)),d.parseBoolean(u.attributes.collapsed)&&(o.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(u,o){u.styleId&&(u.style=o.styles.getStyleModel(u.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../../../utils/utils"),u=e("../../../utils/col-cache"),o=e("../base-xform"),r=e("../../../doc/range");function l(c,h,g,p){const m=h[g];m!==void 0?c[g]=m:p!==void 0&&(c[g]=p)}function f(c,h,g,p){const m=h[g];m!==void 0&&(c[g]=i.parseBoolean(m))}t.exports=class extends o{get tag(){return"dataValidations"}render(c,h){const g=function(p){const m=d.map(p,(M,S)=>({address:S,dataValidation:M,marked:!1})).sort((M,S)=>d.strcmp(M.address,S.address)),y=d.keyBy(m,"address"),b=(M,S,C)=>{for(let N=0;N<S;N++){const H=u.encodeAddress(M.row+N,C);if(!p[H]||!d.isEqual(p[M.address],p[H]))return!1}return!0};return m.map(M=>{if(!M.marked){const S=u.decodeEx(M.address);if(S.dimensions)return y[S.dimensions].marked=!0,{...M.dataValidation,sqref:M.address};let C=1,N=u.encodeAddress(S.row+C,S.col);for(;p[N]&&d.isEqual(M.dataValidation,p[N]);)C++,N=u.encodeAddress(S.row+C,S.col);let H=1;for(;b(S,C,S.col+H);)H++;for(let L=0;L<C;L++)for(let z=0;z<H;z++)N=u.encodeAddress(S.row+L,S.col+z),y[N].marked=!0;if(C>1||H>1){const L=S.row+(C-1),z=S.col+(H-1);return{...M.dataValidation,sqref:`${M.address}:${u.encodeAddress(L,z)}`}}return{...M.dataValidation,sqref:M.address}}return null}).filter(Boolean)}(h);g.length&&(c.openNode("dataValidations",{count:g.length}),g.forEach(p=>{c.openNode("dataValidation"),p.type!=="any"&&(c.addAttribute("type",p.type),p.operator&&p.type!=="list"&&p.operator!=="between"&&c.addAttribute("operator",p.operator),p.allowBlank&&c.addAttribute("allowBlank","1")),p.showInputMessage&&c.addAttribute("showInputMessage","1"),p.promptTitle&&c.addAttribute("promptTitle",p.promptTitle),p.prompt&&c.addAttribute("prompt",p.prompt),p.showErrorMessage&&c.addAttribute("showErrorMessage","1"),p.errorStyle&&c.addAttribute("errorStyle",p.errorStyle),p.errorTitle&&c.addAttribute("errorTitle",p.errorTitle),p.error&&c.addAttribute("error",p.error),c.addAttribute("sqref",p.sqref),(p.formulae||[]).forEach((m,y)=>{c.openNode("formula"+(y+1)),p.type==="date"?c.writeText(i.dateToExcel(new Date(m))):c.writeText(m),c.closeNode()}),c.closeNode()}),c.closeNode())}parseOpen(c){switch(c.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=c.attributes.sqref;const h={type:c.attributes.type||"any",formulae:[]};switch(c.attributes.type&&f(h,c.attributes,"allowBlank"),f(h,c.attributes,"showInputMessage"),f(h,c.attributes,"showErrorMessage"),h.type){case"any":case"list":case"custom":break;default:l(h,c.attributes,"operator","between")}return l(h,c.attributes,"promptTitle"),l(h,c.attributes,"prompt"),l(h,c.attributes,"errorStyle"),l(h,c.attributes,"errorTitle"),l(h,c.attributes,"error"),this._dataValidation=h,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(c){this._formula&&this._formula.push(c)}parseClose(c){switch(c){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(h=>{h.includes(":")?new r(h).forEachAddress(g=>{this.model[g]=this._dataValidation}):this.model[h]=this._dataValidation}),!0;case"formula1":case"formula2":{let h=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":h=parseInt(h,10);break;case"decimal":h=parseFloat(h);break;case"date":h=i.excelToDate(parseFloat(h))}return this._dataValidation.formulae.push(h),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"dimension"}render(i,u){u&&i.leafNode("dimension",{ref:u})}parseOpen(i){return i.name==="dimension"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"drawing"}render(i,u){u&&i.leafNode(this.tag,{"r:id":u.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,a){const d=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class u extends d{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(r){return this.conditionalFormattings.hasContent(r.conditionalFormattings)}prepare(r,l){this.conditionalFormattings.prepare(r.conditionalFormattings,l)}render(r,l){r.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(r,l.conditionalFormattings),r.closeNode()}createNewModel(){return{}}onParserClose(r,l){this.model[r]=l.model}}t.exports=class extends d{constructor(){super(),this.map={ext:this.ext=new u}}get tag(){return"extLst"}prepare(o,r){this.ext.prepare(o,r)}hasContent(o){return this.ext.hasContent(o)}render(o,r){this.hasContent(r)&&(o.openNode("extLst"),this.ext.render(o,r),o.closeNode())}createNewModel(){return{}}onParserClose(o,r){Object.assign(this.model,r.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"headerFooter"}render(i,u){if(u){i.addRollback();let o=!1;i.openNode("headerFooter"),u.differentFirst&&(i.addAttribute("differentFirst","1"),o=!0),u.differentOddEven&&(i.addAttribute("differentOddEven","1"),o=!0),u.oddHeader&&typeof u.oddHeader=="string"&&(i.leafNode("oddHeader",null,u.oddHeader),o=!0),u.oddFooter&&typeof u.oddFooter=="string"&&(i.leafNode("oddFooter",null,u.oddFooter),o=!0),u.evenHeader&&typeof u.evenHeader=="string"&&(i.leafNode("evenHeader",null,u.evenHeader),o=!0),u.evenFooter&&typeof u.evenFooter=="string"&&(i.leafNode("evenFooter",null,u.evenFooter),o=!0),u.firstHeader&&typeof u.firstHeader=="string"&&(i.leafNode("firstHeader",null,u.firstHeader),o=!0),u.firstFooter&&typeof u.firstFooter=="string"&&(i.leafNode("firstFooter",null,u.firstFooter),o=!0),o?(i.closeNode(),i.commit()):i.rollback()}}parseOpen(i){switch(i.name){case"headerFooter":return this.model={},i.attributes.differentFirst&&(this.model.differentFirst=parseInt(i.attributes.differentFirst,0)===1),i.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(i.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(i){switch(this.currentNode){case"oddHeader":this.model.oddHeader=i;break;case"oddFooter":this.model.oddFooter=i;break;case"evenHeader":this.model.evenHeader=i;break;case"evenFooter":this.model.evenFooter=i;break;case"firstHeader":this.model.firstHeader=i;break;case"firstFooter":this.model.firstFooter=i}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"hyperlink"}render(i,u){this.isInternalLink(u)?i.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip,location:u.target}):i.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip})}parseOpen(i){return i.name==="hyperlink"&&(this.model={address:i.attributes.ref,rId:i.attributes["r:id"],tooltip:i.attributes.tooltip},i.attributes.location&&(this.model.target=i.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(i){return i.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(i.target)}}},{"../base-xform":32}],99:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"mergeCell"}render(i,u){i.leafNode("mergeCell",{ref:u})}parseOpen(i){return i.name==="mergeCell"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../../../doc/range"),u=e("../../../utils/col-cache"),o=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(r){if(this.merges[r.master])this.merges[r.master].expandToAddress(r.address);else{const l=`${r.master}:${r.address}`;this.merges[r.master]=new i(l)}}get mergeCells(){return d.map(this.merges,r=>r.range)}reconcile(r,l){d.each(r,f=>{const c=u.decode(f);for(let h=c.top;h<=c.bottom;h++){const g=l[h-1];for(let p=c.left;p<=c.right;p++){const m=g.cells[p-1];m?m.type===o.ValueType.Merge&&(m.master=c.tl):g.cells[p]={type:o.ValueType.Null,address:u.encodeAddress(h,p)}}}})}getMasterAddress(r){const l=this.hash[r];return l&&l.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,a){const d=e("../base-xform"),i=u=>u!==void 0;t.exports=class extends d{get tag(){return"outlinePr"}render(u,o){return!(!o||!i(o.summaryBelow)&&!i(o.summaryRight))&&(u.leafNode(this.tag,{summaryBelow:i(o.summaryBelow)?Number(o.summaryBelow):void 0,summaryRight:i(o.summaryRight)?Number(o.summaryRight):void 0}),!0)}parseOpen(u){return u.name===this.tag&&(this.model={summaryBelow:i(u.attributes.summaryBelow)?!!Number(u.attributes.summaryBelow):void 0,summaryRight:i(u.attributes.summaryRight)?!!Number(u.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"brk"}render(i,u){i.leafNode("brk",u)}parseOpen(i){return i.name==="brk"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"pageMargins"}render(u,o){if(o){const r={left:o.left,right:o.right,top:o.top,bottom:o.bottom,header:o.header,footer:o.footer};d.some(r,l=>l!==void 0)&&u.leafNode(this.tag,r)}}parseOpen(u){switch(u.name){case this.tag:return this.model={left:parseFloat(u.attributes.left||.7),right:parseFloat(u.attributes.right||.7),top:parseFloat(u.attributes.top||.75),bottom:parseFloat(u.attributes.bottom||.75),header:parseFloat(u.attributes.header||.3),footer:parseFloat(u.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"pageSetUpPr"}render(i,u){return!(!u||!u.fitToPage)&&(i.leafNode(this.tag,{fitToPage:u.fitToPage?"1":void 0}),!0)}parseOpen(i){return i.name===this.tag&&(this.model={fitToPage:i.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../base-xform");function u(f){return f?"1":void 0}function o(f){switch(f){case"overThenDown":return f;default:return}}function r(f){switch(f){case"atEnd":case"asDisplyed":return f;default:return}}function l(f){switch(f){case"dash":case"blank":case"NA":return f;default:return}}t.exports=class extends i{get tag(){return"pageSetup"}render(f,c){if(c){const h={paperSize:c.paperSize,orientation:c.orientation,horizontalDpi:c.horizontalDpi,verticalDpi:c.verticalDpi,pageOrder:o(c.pageOrder),blackAndWhite:u(c.blackAndWhite),draft:u(c.draft),cellComments:r(c.cellComments),errors:l(c.errors),scale:c.scale,fitToWidth:c.fitToWidth,fitToHeight:c.fitToHeight,firstPageNumber:c.firstPageNumber,useFirstPageNumber:u(c.firstPageNumber),usePrinterDefaults:u(c.usePrinterDefaults),copies:c.copies};d.some(h,g=>g!==void 0)&&f.leafNode(this.tag,h)}}parseOpen(f){switch(f.name){case this.tag:return this.model={paperSize:(c=f.attributes.paperSize,c!==void 0?parseInt(c,10):void 0),orientation:f.attributes.orientation||"portrait",horizontalDpi:parseInt(f.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(f.attributes.verticalDpi||"4294967295",10),pageOrder:f.attributes.pageOrder||"downThenOver",blackAndWhite:f.attributes.blackAndWhite==="1",draft:f.attributes.draft==="1",cellComments:f.attributes.cellComments||"None",errors:f.attributes.errors||"displayed",scale:parseInt(f.attributes.scale||"100",10),fitToWidth:parseInt(f.attributes.fitToWidth||"1",10),fitToHeight:parseInt(f.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(f.attributes.firstPageNumber||"1",10),useFirstPageNumber:f.attributes.useFirstPageNumber==="1",usePrinterDefaults:f.attributes.usePrinterDefaults==="1",copies:parseInt(f.attributes.copies||"1",10)},!0;default:return!1}var c}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"picture"}render(i,u){u&&i.leafNode(this.tag,{"r:id":u.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../base-xform");function u(o){return o?"1":void 0}t.exports=class extends i{get tag(){return"printOptions"}render(o,r){if(r){const l={headings:u(r.showRowColHeaders),gridLines:u(r.showGridLines),horizontalCentered:u(r.horizontalCentered),verticalCentered:u(r.verticalCentered)};d.some(l,f=>f!==void 0)&&o.leafNode(this.tag,l)}}parseOpen(o){switch(o.name){case this.tag:return this.model={showRowColHeaders:o.attributes.headings==="1",showGridLines:o.attributes.gridLines==="1",horizontalCentered:o.attributes.horizontalCentered==="1",verticalCentered:o.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,a){const d=e("./page-breaks-xform"),i=e("../list-xform");t.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new d})}render(u,o){if(o&&o.length){u.openNode(this.tag,this.$),this.count&&(u.addAttribute(this.$count,o.length),u.addAttribute("manualBreakCount",o.length));const{childXform:r}=this;o.forEach(l=>{r.render(u,l)}),u.closeNode()}else this.empty&&u.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,a){const d=e("../base-xform"),i=e("../../../utils/utils"),u=e("./cell-xform");t.exports=class extends d{constructor(o){super(),this.maxItems=o&&o.maxItems,this.map={c:new u}}get tag(){return"row"}prepare(o,r){const l=r.styles.addStyleModel(o.style);l&&(o.styleId=l);const f=this.map.c;o.cells.forEach(c=>{f.prepare(c,r)})}render(o,r,l){o.openNode("row"),o.addAttribute("r",r.number),r.height&&(o.addAttribute("ht",r.height),o.addAttribute("customHeight","1")),r.hidden&&o.addAttribute("hidden","1"),r.min>0&&r.max>0&&r.min<=r.max&&o.addAttribute("spans",`${r.min}:${r.max}`),r.styleId&&(o.addAttribute("s",r.styleId),o.addAttribute("customFormat","1")),o.addAttribute("x14ac:dyDescent","0.25"),r.outlineLevel&&o.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&o.addAttribute("collapsed","1");const f=this.map.c;r.cells.forEach(c=>{f.render(o,c,l)}),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;if(o.name==="row"){this.numRowsSeen+=1;const r=o.attributes.spans?o.attributes.spans.split(":").map(f=>parseInt(f,10)):[void 0,void 0],l=this.model={number:parseInt(o.attributes.r,10),min:r[0],max:r[1],cells:[]};return o.attributes.s&&(l.styleId=parseInt(o.attributes.s,10)),i.parseBoolean(o.attributes.hidden)&&(l.hidden=!0),i.parseBoolean(o.attributes.bestFit)&&(l.bestFit=!0),o.attributes.ht&&(l.height=parseFloat(o.attributes.ht)),o.attributes.outlineLevel&&(l.outlineLevel=parseInt(o.attributes.outlineLevel,10)),i.parseBoolean(o.attributes.collapsed)&&(l.collapsed=!0),!0}return this.parser=this.map[o.name],!!this.parser&&(this.parser.parseOpen(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(o,r){o.style=o.styleId?r.styles.getStyleModel(o.styleId):{},o.styleId!==void 0&&(o.styleId=void 0);const l=this.map.c;o.cells.forEach(f=>{l.reconcile(f,r)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"sheetFormatPr"}render(u,o){if(o){const r={defaultRowHeight:o.defaultRowHeight,outlineLevelRow:o.outlineLevelRow,outlineLevelCol:o.outlineLevelCol,"x14ac:dyDescent":o.dyDescent};o.defaultColWidth&&(r.defaultColWidth=o.defaultColWidth),o.defaultRowHeight&&o.defaultRowHeight===15||(r.customHeight="1"),d.some(r,l=>l!==void 0)&&u.leafNode("sheetFormatPr",r)}}parseOpen(u){return u.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(u.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(u.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(u.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(u.attributes.outlineLevelCol||"0",10)},u.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(u.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,a){const d=e("../base-xform"),i=e("../style/color-xform"),u=e("./page-setup-properties-xform"),o=e("./outline-properties-xform");t.exports=class extends d{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new u,outlinePr:new o}}get tag(){return"sheetPr"}render(r,l){if(l){r.addRollback(),r.openNode("sheetPr");let f=!1;f=this.map.tabColor.render(r,l.tabColor)||f,f=this.map.pageSetUpPr.render(r,l.pageSetup)||f,f=this.map.outlinePr.render(r,l.outlineProperties)||f,f?(r.closeNode(),r.commit()):r.rollback()}}parseOpen(r){return this.parser?(this.parser.parseOpen(r),!0):r.name===this.tag?(this.reset(),!0):!!this.map[r.name]&&(this.parser=this.map[r.name],this.parser.parseOpen(r),!0)}parseText(r){return!!this.parser&&(this.parser.parseText(r),!0)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../base-xform");function u(r,l){return r?l:void 0}function o(r,l){return r===l||void 0}t.exports=class extends i{get tag(){return"sheetProtection"}render(r,l){if(l){const f={sheet:u(l.sheet,"1"),selectLockedCells:l.selectLockedCells===!1?"1":void 0,selectUnlockedCells:l.selectUnlockedCells===!1?"1":void 0,formatCells:u(l.formatCells,"0"),formatColumns:u(l.formatColumns,"0"),formatRows:u(l.formatRows,"0"),insertColumns:u(l.insertColumns,"0"),insertRows:u(l.insertRows,"0"),insertHyperlinks:u(l.insertHyperlinks,"0"),deleteColumns:u(l.deleteColumns,"0"),deleteRows:u(l.deleteRows,"0"),sort:u(l.sort,"0"),autoFilter:u(l.autoFilter,"0"),pivotTables:u(l.pivotTables,"0")};l.sheet&&(f.algorithmName=l.algorithmName,f.hashValue=l.hashValue,f.saltValue=l.saltValue,f.spinCount=l.spinCount,f.objects=u(l.objects===!1,"1"),f.scenarios=u(l.scenarios===!1,"1")),d.some(f,c=>c!==void 0)&&r.leafNode(this.tag,f)}}parseOpen(r){switch(r.name){case this.tag:return this.model={sheet:o(r.attributes.sheet,"1"),objects:r.attributes.objects!=="1"&&void 0,scenarios:r.attributes.scenarios!=="1"&&void 0,selectLockedCells:r.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:r.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:o(r.attributes.formatCells,"0"),formatColumns:o(r.attributes.formatColumns,"0"),formatRows:o(r.attributes.formatRows,"0"),insertColumns:o(r.attributes.insertColumns,"0"),insertRows:o(r.attributes.insertRows,"0"),insertHyperlinks:o(r.attributes.insertHyperlinks,"0"),deleteColumns:o(r.attributes.deleteColumns,"0"),deleteRows:o(r.attributes.deleteRows,"0"),sort:o(r.attributes.sort,"0"),autoFilter:o(r.attributes.autoFilter,"0"),pivotTables:o(r.attributes.pivotTables,"0")},r.attributes.algorithmName&&(this.model.algorithmName=r.attributes.algorithmName,this.model.hashValue=r.attributes.hashValue,this.model.saltValue=r.attributes.saltValue,this.model.spinCount=parseInt(r.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,a){const d=e("../../../utils/col-cache"),i=e("../base-xform"),u={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends i{get tag(){return"sheetView"}prepare(o){switch(o.state){case"frozen":case"split":break;default:o.state="normal"}}render(o,r){o.openNode("sheetView",{workbookViewId:r.workbookViewId||0});const l=function(p,m,y){y&&o.addAttribute(p,m)};let f,c,h,g;switch(l("rightToLeft","1",r.rightToLeft===!0),l("tabSelected","1",r.tabSelected),l("showRuler","0",r.showRuler===!1),l("showRowColHeaders","0",r.showRowColHeaders===!1),l("showGridLines","0",r.showGridLines===!1),l("zoomScale",r.zoomScale,r.zoomScale),l("zoomScaleNormal",r.zoomScaleNormal,r.zoomScaleNormal),l("view",r.style,r.style),r.state){case"frozen":c=r.xSplit||0,h=r.ySplit||0,f=r.topLeftCell||d.getAddress(h+1,c+1).address,g=(r.xSplit&&r.ySplit?"bottomRight":r.xSplit&&"topRight")||"bottomLeft",o.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:f,activePane:g,state:"frozen"}),o.leafNode("selection",{pane:g,activeCell:r.activeCell,sqref:r.activeCell});break;case"split":r.activePane==="topLeft"&&(r.activePane=void 0),o.leafNode("pane",{xSplit:r.xSplit||void 0,ySplit:r.ySplit||void 0,topLeftCell:r.topLeftCell,activePane:r.activePane}),o.leafNode("selection",{pane:r.activePane,activeCell:r.activeCell,sqref:r.activeCell});break;case"normal":r.activeCell&&o.leafNode("selection",{activeCell:r.activeCell,sqref:r.activeCell})}o.closeNode()}parseOpen(o){switch(o.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(o.attributes.workbookViewId,10),rightToLeft:o.attributes.rightToLeft==="1",tabSelected:o.attributes.tabSelected==="1",showRuler:o.attributes.showRuler!=="0",showRowColHeaders:o.attributes.showRowColHeaders!=="0",showGridLines:o.attributes.showGridLines!=="0",zoomScale:parseInt(o.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(o.attributes.zoomScaleNormal||"100",10),style:o.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(o.attributes.xSplit||"0",10),ySplit:parseInt(o.attributes.ySplit||"0",10),topLeftCell:o.attributes.topLeftCell,activePane:o.attributes.activePane||"topLeft",state:o.attributes.state},!0;case"selection":{const r=o.attributes.pane||"topLeft";return this.selections[r]={pane:r,activeCell:o.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(o){let r,l;switch(o){case"sheetView":return this.sheetView&&this.pane?(r=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:u[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(r.activePane=this.pane.activePane),l=this.selections[this.pane.activePane],l&&l.activeCell&&(r.activeCell=l.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)):(r=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},l=this.selections.topLeft,l&&l.activeCell&&(r.activeCell=l.activeCell),this.sheetView.style&&(r.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"tablePart"}render(i,u){u&&i.leafNode(this.tag,{"r:id":u.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),u=e("../../../utils/xml-stream"),o=e("../../rel-type"),r=e("./merges"),l=e("../base-xform"),f=e("../list-xform"),c=e("./row-xform"),h=e("./col-xform"),g=e("./dimension-xform"),p=e("./hyperlink-xform"),m=e("./merge-cell-xform"),y=e("./data-validations-xform"),b=e("./sheet-properties-xform"),M=e("./sheet-format-properties-xform"),S=e("./sheet-view-xform"),C=e("./sheet-protection-xform"),N=e("./page-margins-xform"),H=e("./page-setup-xform"),L=e("./print-options-xform"),z=e("./auto-filter-xform"),B=e("./picture-xform"),X=e("./drawing-xform"),V=e("./table-part-xform"),D=e("./row-breaks-xform"),E=e("./header-footer-xform"),P=e("./cf/conditional-formattings-xform"),w=e("./ext-lst-xform"),_=(k,T)=>{if(!T||!T.length)return k;if(!k||!k.length)return T;const j={},A={};return k.forEach(q=>{j[q.ref]=q,q.rules.forEach(U=>{const{x14Id:ee}=U;ee&&(A[ee]=U)})}),T.forEach(q=>{q.rules.forEach(U=>{const ee=A[U.x14Id];ee?((R,K)=>{Object.keys(K).forEach(O=>{const F=R[O],Y=K[O];F===void 0&&Y!==void 0&&(R[O]=Y)})})(ee,U):j[q.ref]?j[q.ref].rules.push(U):k.push({ref:q.ref,rules:[U]})})}),k};class x extends l{constructor(T){super();const{maxRows:j,maxCols:A,ignoreNodes:q}=T||{};this.ignoreNodes=q||[],this.map={sheetPr:new b,dimension:new g,sheetViews:new f({tag:"sheetViews",count:!1,childXform:new S}),sheetFormatPr:new M,cols:new f({tag:"cols",count:!1,childXform:new h}),sheetData:new f({tag:"sheetData",count:!1,empty:!0,childXform:new c({maxItems:A}),maxItems:j}),autoFilter:new z,mergeCells:new f({tag:"mergeCells",count:!0,childXform:new m}),rowBreaks:new D,hyperlinks:new f({tag:"hyperlinks",count:!1,childXform:new p}),pageMargins:new N,dataValidations:new y,pageSetup:new H,headerFooter:new E,printOptions:new L,picture:new B,drawing:new X,sheetProtection:new C,tableParts:new f({tag:"tableParts",count:!0,childXform:new V}),conditionalFormatting:new P,extLst:new w}}prepare(T,j){j.merges=new r,T.hyperlinks=j.hyperlinks=[],T.comments=j.comments=[],j.formulae={},j.siFormulae=0,this.map.cols.prepare(T.cols,j),this.map.sheetData.prepare(T.rows,j),this.map.conditionalFormatting.prepare(T.conditionalFormattings,j),T.mergeCells=j.merges.mergeCells;const A=T.rels=[];function q(R){return"rId"+(R.length+1)}if(T.hyperlinks.forEach(R=>{const K=q(A);R.rId=K,A.push({Id:K,Type:o.Hyperlink,Target:R.target,TargetMode:"External"})}),T.comments.length>0){const R={Id:q(A),Type:o.Comments,Target:`../comments${T.id}.xml`};A.push(R);const K={Id:q(A),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${T.id}.vml`};A.push(K),T.comments.forEach(O=>{O.refAddress=i.decodeAddress(O.ref)}),j.commentRefs.push({commentName:"comments"+T.id,vmlDrawing:"vmlDrawing"+T.id})}const U=[];let ee;T.media.forEach(R=>{if(R.type==="background"){const K=q(A);ee=j.media[R.imageId],A.push({Id:K,Type:o.Image,Target:`../media/${ee.name}.${ee.extension}`}),T.background={rId:K},T.image=j.media[R.imageId]}else if(R.type==="image"){let{drawing:K}=T;ee=j.media[R.imageId],K||(K=T.drawing={rId:q(A),name:"drawing"+ ++j.drawingsCount,anchors:[],rels:[]},j.drawings.push(K),A.push({Id:K.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${K.name}.xml`}));let O=this.preImageId===R.imageId?U[R.imageId]:U[K.rels.length];O||(O=q(K.rels),U[K.rels.length]=O,K.rels.push({Id:O,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${ee.name}.${ee.extension}`}));const F={picture:{rId:O},range:R.range};if(R.hyperlinks&&R.hyperlinks.hyperlink){const Y=q(K.rels);U[K.rels.length]=Y,F.picture.hyperlinks={tooltip:R.hyperlinks.tooltip,rId:Y},K.rels.push({Id:Y,Type:o.Hyperlink,Target:R.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=R.imageId,K.anchors.push(F)}}),T.tables.forEach(R=>{const K=q(A);R.rId=K,A.push({Id:K,Type:o.Table,Target:"../tables/"+R.target}),R.columns.forEach(O=>{const{style:F}=O;F&&(O.dxfId=j.styles.addDxfStyle(F))})}),this.map.extLst.prepare(T,j)}render(T,j){T.openXml(u.StdDocAttributes),T.openNode("worksheet",x.WORKSHEET_ATTRIBUTES);const A=j.properties?{defaultRowHeight:j.properties.defaultRowHeight,dyDescent:j.properties.dyDescent,outlineLevelCol:j.properties.outlineLevelCol,outlineLevelRow:j.properties.outlineLevelRow}:void 0;j.properties&&j.properties.defaultColWidth&&(A.defaultColWidth=j.properties.defaultColWidth);const q={outlineProperties:j.properties&&j.properties.outlineProperties,tabColor:j.properties&&j.properties.tabColor,pageSetup:j.pageSetup&&j.pageSetup.fitToPage?{fitToPage:j.pageSetup.fitToPage}:void 0},U=j.pageSetup&&j.pageSetup.margins,ee={showRowColHeaders:j.pageSetup&&j.pageSetup.showRowColHeaders,showGridLines:j.pageSetup&&j.pageSetup.showGridLines,horizontalCentered:j.pageSetup&&j.pageSetup.horizontalCentered,verticalCentered:j.pageSetup&&j.pageSetup.verticalCentered},R=j.sheetProtection;this.map.sheetPr.render(T,q),this.map.dimension.render(T,j.dimensions),this.map.sheetViews.render(T,j.views),this.map.sheetFormatPr.render(T,A),this.map.cols.render(T,j.cols),this.map.sheetData.render(T,j.rows),this.map.sheetProtection.render(T,R),this.map.autoFilter.render(T,j.autoFilter),this.map.mergeCells.render(T,j.mergeCells),this.map.conditionalFormatting.render(T,j.conditionalFormattings),this.map.dataValidations.render(T,j.dataValidations),this.map.hyperlinks.render(T,j.hyperlinks),this.map.printOptions.render(T,ee),this.map.pageMargins.render(T,U),this.map.pageSetup.render(T,j.pageSetup),this.map.headerFooter.render(T,j.headerFooter),this.map.rowBreaks.render(T,j.rowBreaks),this.map.drawing.render(T,j.drawing),this.map.picture.render(T,j.background),this.map.tableParts.render(T,j.tables),this.map.extLst.render(T,j),j.rels&&j.rels.forEach(K=>{K.Type===o.VmlDrawing&&T.leafNode("legacyDrawing",{"r:id":K.Id})}),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):T.name==="worksheet"?(d.each(this.map,j=>{j.reset()}),!0):(this.map[T.name]&&!this.ignoreNodes.includes(T.name)&&(this.parser=this.map[T.name],this.parser.parseOpen(T)),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;switch(T){case"worksheet":{const j=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(j.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(j.outlineProperties=this.map.sheetPr.model.outlineProperties);const A={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},q=Object.assign(A,this.map.pageSetup.model,this.map.printOptions.model),U=_(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:j,views:this.map.sheetViews.model,pageSetup:q,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:U},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(T,j){const A=(T.relationships||[]).reduce((U,ee)=>{if(U[ee.Id]=ee,ee.Type===o.Comments&&(T.comments=j.comments[ee.Target].comments),ee.Type===o.VmlDrawing&&T.comments&&T.comments.length){const R=j.vmlDrawings[ee.Target].comments;T.comments.forEach((K,O)=>{K.note=Object.assign({},K.note,R[O])})}return U},{});if(j.commentsMap=(T.comments||[]).reduce((U,ee)=>(ee.ref&&(U[ee.ref]=ee),U),{}),j.hyperlinkMap=(T.hyperlinks||[]).reduce((U,ee)=>(ee.rId&&(U[ee.address]=A[ee.rId].Target),U),{}),j.formulae={},T.rows=T.rows&&T.rows.filter(Boolean)||[],T.rows.forEach(U=>{U.cells=U.cells&&U.cells.filter(Boolean)||[]}),this.map.cols.reconcile(T.cols,j),this.map.sheetData.reconcile(T.rows,j),this.map.conditionalFormatting.reconcile(T.conditionalFormattings,j),T.media=[],T.drawing){const U=A[T.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(U){const ee=U[1];j.drawings[ee].anchors.forEach(R=>{if(R.medium){const K={type:"image",imageId:R.medium.index,range:R.range,hyperlinks:R.picture.hyperlinks};T.media.push(K)}})}}const q=T.background&&A[T.background.rId];if(q){const U=q.Target.split("/media/")[1],ee=j.mediaIndex&&j.mediaIndex[U];ee!==void 0&&T.media.push({type:"background",imageId:ee})}T.tables=(T.tables||[]).map(U=>{const ee=A[U.rId];return j.tables[ee.Target]}),delete T.relationships,delete T.hyperlinks,delete T.comments}}x.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=x},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.attr=i.attr}render(i,u){u&&(i.openNode(this.tag),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this._format=i.format||function(u){try{return Number.isNaN(u.getTime())?"":u.toISOString()}catch{return""}},this._parse=i.parse||function(u){return new Date(u)}}render(i,u){u&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,this._format(u)):i.writeText(this._format(u)),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=this._parse(i.attributes[this.attr]):this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this.zero=i.zero}render(i,u){(u||this.zero)&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,u):i.writeText(u),i.closeNode())}parseOpen(i){return i.name===this.tag&&(this.attr?this.model=parseInt(i.attributes[this.attr],10):this.text=[],!0)}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs}render(i,u){u!==void 0&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,u):i.writeText(u),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=i.attributes[this.attr]:this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,a){const d=e("./base-xform"),i=e("../../utils/xml-stream");t.exports=class extends d{constructor(u){super(),this._model=u}render(u){if(!this._xml){const o=new i;(function r(l,f){l.openNode(f.tag,f.$),f.c&&f.c.forEach(c=>{r(l,c)}),f.t&&l.writeText(f.t),l.closeNode()})(o,this._model),this._xml=o.xml}u.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(u){switch(u){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,a){const d=e("./text-xform"),i=e("./rich-text-xform"),u=e("../base-xform");t.exports=class extends u{constructor(){super(),this.map={r:new i,t:new d}}get tag(){return"rPh"}render(o,r){if(o.openNode(this.tag,{sb:r.sb||0,eb:r.eb||0}),r&&r.hasOwnProperty("richText")&&r.richText){const{r:l}=this.map;r.richText.forEach(f=>{l.render(o,f)})}else r&&this.map.t.render(o,r.text);o.closeNode()}parseOpen(o){const{name:r}=o;return this.parser?(this.parser.parseOpen(o),!0):r===this.tag?(this.model={sb:parseInt(o.attributes.sb,10),eb:parseInt(o.attributes.eb,10)},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(o),!0))}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)){switch(o){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,a){const d=e("./text-xform"),i=e("../style/font-xform"),u=e("../base-xform");class o extends u{constructor(l){super(),this.model=l}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new d)}get fontXform(){return this._fontXform||(this._fontXform=new i(o.FONT_OPTIONS))}render(l,f){f=f||this.model,l.openNode("r"),f.font&&this.fontXform.render(l,f.font),this.textXform.render(l,f.text),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(l),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){switch(l){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}}o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,a){const d=e("./text-xform"),i=e("./rich-text-xform"),u=e("./phonetic-text-xform"),o=e("../base-xform");t.exports=class extends o{constructor(r){super(),this.model=r,this.map={r:new i,t:new d,rPh:new u}}get tag(){return"si"}render(r,l){r.openNode(this.tag),l&&l.hasOwnProperty("richText")&&l.richText?l.richText.length?l.richText.forEach(f=>{this.map.r.render(r,f)}):this.map.t.render(r,""):l!=null&&this.map.t.render(r,l),r.closeNode()}parseOpen(r){const{name:l}=r;return this.parser?(this.parser.parseOpen(r),!0):l===this.tag?(this.model={},!0):(this.parser=this.map[l],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("./shared-string-xform");t.exports=class extends i{constructor(o){super(),this.model=o||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new u)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(o){return this.model.values[o]}add(o){return o.richText?this.addRichText(o):this.addText(o)}addText(o){let r=this.hash[o];return r===void 0&&(r=this.hash[o]=this.model.values.length,this.model.values.push(o)),this.model.count++,r}addRichText(o){const r=this.sharedStringXform.toXml(o);let l=this.rich[r];return l===void 0&&(l=this.rich[r]=this.model.values.length,this.model.values.push(o)),this.model.count++,l}render(o,r){r=r||this._values,o.openXml(d.StdDocAttributes),o.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:r.count,uniqueCount:r.values.length});const l=this.sharedStringXform;r.values.forEach(f=>{l.render(o,f)}),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(o),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(o){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"t"}render(i,u){i.openNode("t"),/^\s|\n|\s$/.test(u)&&i.addAttribute("xml:space","preserve"),i.writeText(u),i.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(i,u)=>String.fromCharCode(parseInt(u,16)))}parseOpen(i){switch(i.name){case"t":return this._text=[],!0;default:return!1}}parseText(i){this._text.push(i)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,a){const d=e("../../../doc/enums"),i=e("../../../utils/utils"),u=e("../base-xform"),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((l,f)=>(l[f]=!0,l),{}),horizontal(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((l,f)=>(l[f]=!0,l),{}),vertical(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:l=>!!l||void 0,shrinkToFit:l=>!!l||void 0,textRotation(l){switch(l){case"vertical":return l;default:return(l=i.validInt(l))>=-90&&l<=90?l:void 0}},indent:l=>(l=i.validInt(l),Math.max(0,l)),readingOrder(l){switch(l){case"ltr":return d.ReadingOrder.LeftToRight;case"rtl":return d.ReadingOrder.RightToLeft;default:return}}},r={toXml(l){if(l=o.textRotation(l)){if(l==="vertical")return 255;const f=Math.round(l);if(f>=0&&f<=90)return f;if(f<0&&f>=-90)return 90-f}},toModel(l){const f=i.validInt(l);if(f!==void 0){if(f===255)return"vertical";if(f>=0&&f<=90)return f;if(f>90&&f<=180)return 90-f}}};t.exports=class extends u{get tag(){return"alignment"}render(l,f){l.addRollback(),l.openNode("alignment");let c=!1;function h(g,p){p&&(l.addAttribute(g,p),c=!0)}h("horizontal",o.horizontal(f.horizontal)),h("vertical",o.vertical(f.vertical)),h("wrapText",!!o.wrapText(f.wrapText)&&"1"),h("shrinkToFit",!!o.shrinkToFit(f.shrinkToFit)&&"1"),h("indent",o.indent(f.indent)),h("textRotation",r.toXml(f.textRotation)),h("readingOrder",o.readingOrder(f.readingOrder)),l.closeNode(),c?l.commit():l.rollback()}parseOpen(l){const f={};let c=!1;function h(g,p,m){g&&(f[p]=m,c=!0)}h(l.attributes.horizontal,"horizontal",l.attributes.horizontal),h(l.attributes.vertical,"vertical",l.attributes.vertical==="center"?"middle":l.attributes.vertical),h(l.attributes.wrapText,"wrapText",i.parseBoolean(l.attributes.wrapText)),h(l.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(l.attributes.shrinkToFit)),h(l.attributes.indent,"indent",parseInt(l.attributes.indent,10)),h(l.attributes.textRotation,"textRotation",r.toModel(l.attributes.textRotation)),h(l.attributes.readingOrder,"readingOrder",l.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=c?f:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,a){const d=e("../base-xform"),i=e("../../../utils/utils"),u=e("./color-xform");class o extends d{constructor(l){super(),this.name=l,this.map={color:new u}}get tag(){return this.name}render(l,f,c){const h=f&&f.color||c||this.defaultColor;l.openNode(this.name),f&&f.style&&(l.addAttribute("style",f.style),h&&this.map.color.render(l,h)),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.name:{const{style:f}=l.attributes;return this.model=f?{style:f}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):(l===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(l){return o.validStyleValues[l]}}o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((r,l)=>(r[l]=!0,r),{}),t.exports=class extends d{constructor(){super(),this.map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")}}render(r,l){const{color:f}=l;function c(h,g){h&&!h.color&&l.color&&(h={...h,color:l.color}),g.render(r,h,f)}r.openNode("border"),l.diagonal&&l.diagonal.style&&(l.diagonal.up&&r.addAttribute("diagonalUp","1"),l.diagonal.down&&r.addAttribute("diagonalDown","1")),c(l.left,this.map.left),c(l.right,this.map.right),c(l.top,this.map.top),c(l.bottom,this.map.bottom),c(l.diagonal,this.map.diagonal),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"border":return this.reset(),this.diagonalUp=i.parseBoolean(r.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(r.attributes.diagonalDown),!0;default:return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;if(r==="border"){const l=this.model={},f=function(c,h,g){h&&(g&&Object.assign(h,g),l[c]=h)};f("left",this.map.left.model),f("right",this.map.right.model),f("top",this.map.top.model),f("bottom",this.map.bottom.model),f("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{constructor(i){super(),this.name=i||"color"}get tag(){return this.name}render(i,u){return!!u&&(i.openNode(this.name),u.argb?i.addAttribute("rgb",u.argb):u.theme!==void 0?(i.addAttribute("theme",u.theme),u.tint!==void 0&&i.addAttribute("tint",u.tint)):u.indexed!==void 0?i.addAttribute("indexed",u.indexed):i.addAttribute("auto","1"),i.closeNode(),!0)}parseOpen(i){return i.name===this.name&&(i.attributes.rgb?this.model={argb:i.attributes.rgb}:i.attributes.theme?(this.model={theme:parseInt(i.attributes.theme,10)},i.attributes.tint&&(this.model.tint=parseFloat(i.attributes.tint))):i.attributes.indexed?this.model={indexed:parseInt(i.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,a){const d=e("../base-xform"),i=e("./alignment-xform"),u=e("./border-xform"),o=e("./fill-xform"),r=e("./font-xform"),l=e("./numfmt-xform"),f=e("./protection-xform");t.exports=class extends d{constructor(){super(),this.map={alignment:new i,border:new u,fill:new o,font:new r,numFmt:new l,protection:new f}}get tag(){return"dxf"}render(c,h){if(c.openNode(this.tag),h.font&&this.map.font.render(c,h.font),h.numFmt&&h.numFmtId){const g={id:h.numFmtId,formatCode:h.numFmt};this.map.numFmt.render(c,g)}h.fill&&this.map.fill.render(c,h.fill),h.alignment&&this.map.alignment.render(c,h.alignment),h.border&&this.map.border.render(c,h.border),h.protection&&this.map.protection.render(c,h.protection),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c),!0}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,a){const d=e("../base-xform"),i=e("./color-xform");class u extends d{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(c,h){c.openNode("stop"),c.addAttribute("position",h.position),this.map.color.render(c,h.color),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"stop":return this.model={position:parseFloat(c.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(c),!0;default:return!1}}parseText(){}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class o extends d{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(c,h){c.openNode("patternFill"),c.addAttribute("patternType",h.pattern),h.fgColor&&this.map.fgColor.render(c,h.fgColor),h.bgColor&&this.map.bgColor.render(c,h.bgColor),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"patternFill":return this.model={type:"pattern",pattern:c.attributes.patternType},!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.parser.model&&(this.model[c]=this.parser.model),this.parser=void 0),!0)}}class r extends d{constructor(){super(),this.map={stop:new u}}get name(){return"gradient"}get tag(){return"gradientFill"}render(c,h){switch(c.openNode("gradientFill"),h.gradient){case"angle":c.addAttribute("degree",h.degree);break;case"path":c.addAttribute("type","path"),h.center.left&&(c.addAttribute("left",h.center.left),h.center.right===void 0&&c.addAttribute("right",h.center.left)),h.center.right&&c.addAttribute("right",h.center.right),h.center.top&&(c.addAttribute("top",h.center.top),h.center.bottom===void 0&&c.addAttribute("bottom",h.center.top)),h.center.bottom&&c.addAttribute("bottom",h.center.bottom)}const g=this.map.stop;h.stops.forEach(p=>{g.render(c,p)}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"gradientFill":{const h=this.model={stops:[]};return c.attributes.degree?(h.gradient="angle",h.degree=parseInt(c.attributes.degree,10)):c.attributes.type==="path"&&(h.gradient="path",h.center={left:c.attributes.left?parseFloat(c.attributes.left):0,top:c.attributes.top?parseFloat(c.attributes.top):0},c.attributes.right!==c.attributes.left&&(h.center.right=c.attributes.right?parseFloat(c.attributes.right):0),c.attributes.bottom!==c.attributes.top&&(h.center.bottom=c.attributes.bottom?parseFloat(c.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(c),!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends d{constructor(){super(),this.map={patternFill:new o,gradientFill:new r}}get tag(){return"fill"}render(c,h){switch(c.addRollback(),c.openNode("fill"),h.type){case"pattern":this.map.patternFill.render(c,h);break;case"gradient":this.map.gradientFill.render(c,h);break;default:return void c.rollback()}c.closeNode(),c.commit()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"fill":return this.model={},!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(c){return l.validPatternValues[c]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((f,c)=>(f[c]=!0,f),{}),l.StopXform=u,l.PatternFillXform=o,l.GradientFillXform=r,t.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,a){const d=e("./color-xform"),i=e("../simple/boolean-xform"),u=e("../simple/integer-xform"),o=e("../simple/string-xform"),r=e("./underline-xform"),l=e("../../../utils/under-dash"),f=e("../base-xform");class c extends f{constructor(g){super(),this.options=g||c.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new r},charset:{prop:"charset",xform:new u({tag:"charset",attr:"val"})},color:{prop:"color",xform:new d},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new u({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new u({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(g,p){const{map:m}=this;g.openNode(this.options.tagName),l.each(this.map,(y,b)=>{m[b].xform.render(g,p[y.prop])}),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;if(this.map[g.name])return this.parser=this.map[g.name].xform,this.parser.parseOpen(g);switch(g.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser&&!this.parser.parseClose(g)){const p=this.map[g];return this.parser.model&&(this.model[p.prop]=this.parser.model),this.parser=void 0,!0}switch(g){case this.options.tagName:return!1;default:return!0}}}c.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=c},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,a){const d=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),u=e("../base-xform"),o=function(){const l={};return d.each(i,(f,c)=>{f.f&&(l[f.f]=parseInt(c,10))}),l}();class r extends u{constructor(f,c){super(),this.id=f,this.formatCode=c}get tag(){return"numFmt"}render(f,c){f.leafNode("numFmt",{numFmtId:c.id,formatCode:c.formatCode})}parseOpen(f){switch(f.name){case"numFmt":return this.model={id:parseInt(f.attributes.numFmtId,10),formatCode:f.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}r.getDefaultFmtId=function(l){return o[l]},r.getDefaultFmtCode=function(l){return i[l]&&i[l].f},t.exports=r},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,a){const d=e("../base-xform"),i={boolean:(u,o)=>u===void 0?o:u};t.exports=class extends d{get tag(){return"protection"}render(u,o){u.addRollback(),u.openNode("protection");let r=!1;function l(f,c){c!==void 0&&(u.addAttribute(f,c),r=!0)}l("locked",i.boolean(o.locked,!0)?void 0:"0"),l("hidden",i.boolean(o.hidden,!1)?"1":void 0),u.closeNode(),r?u.commit():u.rollback()}parseOpen(u){const o={locked:u.attributes.locked!=="0",hidden:u.attributes.hidden==="1"},r=!o.locked||o.hidden;this.model=r?o:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,a){const d=e("../base-xform"),i=e("./alignment-xform"),u=e("./protection-xform");t.exports=class extends d{constructor(o){super(),this.xfId=!(!o||!o.xfId),this.map={alignment:new i,protection:new u}}get tag(){return"xf"}render(o,r){o.openNode("xf",{numFmtId:r.numFmtId||0,fontId:r.fontId||0,fillId:r.fillId||0,borderId:r.borderId||0}),this.xfId&&o.addAttribute("xfId",r.xfId||0),r.numFmtId&&o.addAttribute("applyNumberFormat","1"),r.fontId&&o.addAttribute("applyFont","1"),r.fillId&&o.addAttribute("applyFill","1"),r.borderId&&o.addAttribute("applyBorder","1"),r.alignment&&o.addAttribute("applyAlignment","1"),r.protection&&o.addAttribute("applyProtection","1"),r.alignment&&this.map.alignment.render(o,r.alignment),r.protection&&this.map.protection.render(o,r.protection),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"xf":return this.model={numFmtId:parseInt(o.attributes.numFmtId,10),fontId:parseInt(o.attributes.fontId,10),fillId:parseInt(o.attributes.fillId,10),borderId:parseInt(o.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(o.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(o),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(o),!0;default:return!1}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):o!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,a){const d=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),u=e("../base-xform"),o=e("../static-xform"),r=e("../list-xform"),l=e("./font-xform"),f=e("./fill-xform"),c=e("./border-xform"),h=e("./numfmt-xform"),g=e("./style-xform"),p=e("./dxf-xform");class m extends u{constructor(b){super(),this.map={numFmts:new r({tag:"numFmts",count:!0,childXform:new h}),fonts:new r({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new r({tag:"fills",count:!0,childXform:new f}),borders:new r({tag:"borders",count:!0,childXform:new c}),cellStyleXfs:new r({tag:"cellStyleXfs",count:!0,childXform:new g}),cellXfs:new r({tag:"cellXfs",count:!0,childXform:new g({xfId:!0})}),dxfs:new r({tag:"dxfs",always:!0,count:!0,childXform:new p}),numFmt:new h,font:new l,fill:new f,border:new c,style:new g({xfId:!0}),cellStyles:m.STATIC_XFORMS.cellStyles,tableStyles:m.STATIC_XFORMS.tableStyles,extLst:m.STATIC_XFORMS.extLst},b&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(b,M){M=M||this.model,b.openXml(i.StdDocAttributes),b.openNode("styleSheet",m.STYLESHEET_ATTRIBUTES),this.index?(M.numFmts&&M.numFmts.length&&(b.openNode("numFmts",{count:M.numFmts.length}),M.numFmts.forEach(S=>{b.writeXml(S)}),b.closeNode()),M.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),b.openNode("fonts",{count:M.fonts.length,"x14ac:knownFonts":1}),M.fonts.forEach(S=>{b.writeXml(S)}),b.closeNode(),b.openNode("fills",{count:M.fills.length}),M.fills.forEach(S=>{b.writeXml(S)}),b.closeNode(),b.openNode("borders",{count:M.borders.length}),M.borders.forEach(S=>{b.writeXml(S)}),b.closeNode(),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),b.openNode("cellXfs",{count:M.styles.length}),M.styles.forEach(S=>{b.writeXml(S)}),b.closeNode()):(this.map.numFmts.render(b,M.numFmts),this.map.fonts.render(b,M.fonts),this.map.fills.render(b,M.fills),this.map.borders.render(b,M.borders),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(b,M.styles)),m.STATIC_XFORMS.cellStyles.render(b),this.map.dxfs.render(b,M.dxfs),m.STATIC_XFORMS.tableStyles.render(b),m.STATIC_XFORMS.extLst.render(b),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"styleSheet":{this.model={};const M=(S,C)=>{C.model&&C.model.length&&(this.model[S]=C.model)};if(M("numFmts",this.map.numFmts),M("fonts",this.map.fonts),M("fills",this.map.fills),M("borders",this.map.borders),M("styles",this.map.cellXfs),M("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const S=this.index.numFmt;this.model.numFmts.forEach(C=>{S[C.id]=C.formatCode})}return!1}default:return!0}}addStyleModel(b,M){if(!b)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(b))return this.weakMap.get(b);const S={};if(M=M||d.ValueType.Number,b.numFmt)S.numFmtId=this._addNumFmtStr(b.numFmt);else switch(M){case d.ValueType.Number:S.numFmtId=this._addNumFmtStr("General");break;case d.ValueType.Date:S.numFmtId=this._addNumFmtStr("mm-dd-yy")}b.font&&(S.fontId=this._addFont(b.font)),b.border&&(S.borderId=this._addBorder(b.border)),b.fill&&(S.fillId=this._addFill(b.fill)),b.alignment&&(S.alignment=b.alignment),b.protection&&(S.protection=b.protection);const C=this._addStyle(S);return this.weakMap&&this.weakMap.set(b,C),C}getStyleModel(b){const M=this.model.styles[b];if(!M)return null;let S=this.index.model[b];if(S)return S;if(S=this.index.model[b]={},M.numFmtId){const N=this.index.numFmt[M.numFmtId]||h.getDefaultFmtCode(M.numFmtId);N&&(S.numFmt=N)}function C(N,H,L){if(L||L===0){const z=H[L];z&&(S[N]=z)}}return C("font",this.model.fonts,M.fontId),C("border",this.model.borders,M.borderId),C("fill",this.model.fills,M.fillId),M.alignment&&(S.alignment=M.alignment),M.protection&&(S.protection=M.protection),S}addDxfStyle(b){return b.numFmt&&(b.numFmtId=this._addNumFmtStr(b.numFmt)),this.model.dxfs.push(b),this.model.dxfs.length-1}getDxfStyle(b){return this.model.dxfs[b]}_addStyle(b){const M=this.map.style.toXml(b);let S=this.index.style[M];return S===void 0&&(S=this.index.style[M]=this.model.styles.length,this.model.styles.push(M)),S}_addNumFmtStr(b){let M=h.getDefaultFmtId(b);if(M!==void 0||(M=this.index.numFmt[b],M!==void 0))return M;M=this.index.numFmt[b]=164+this.model.numFmts.length;const S=this.map.numFmt.toXml({id:M,formatCode:b});return this.model.numFmts.push(S),M}_addFont(b){const M=this.map.font.toXml(b);let S=this.index.font[M];return S===void 0&&(S=this.index.font[M]=this.model.fonts.length,this.model.fonts.push(M)),S}_addBorder(b){const M=this.map.border.toXml(b);let S=this.index.border[M];return S===void 0&&(S=this.index.border[M]=this.model.borders.length,this.model.borders.push(M)),S}_addFill(b){const M=this.map.fill.toXml(b);let S=this.index.fill[M];return S===void 0&&(S=this.index.fill[M]=this.model.fills.length,this.model.fills.push(M)),S}}m.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},m.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},m.Mock=class extends m{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(y){return y.autodrain(),Promise.resolve()}addStyleModel(y,b){switch(b){case d.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const y={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}return this._dateStyleId}getStyleModel(){return{}}},t.exports=m},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,a){const d=e("../base-xform");class i extends d{constructor(o){super(),this.model=o}get tag(){return"u"}render(o,r){if((r=r||this.model)===!0)o.leafNode("u");else{const l=i.Attributes[r];l&&o.leafNode("u",l)}}parseOpen(o){o.name==="u"&&(this.model=o.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,a){const d=e("../base-xform"),i=e("./filter-column-xform");t.exports=class extends d{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(u){u.columns.forEach((o,r)=>{this.map.filterColumn.prepare(o,{index:r})})}render(u,o){return u.openNode(this.tag,{ref:o.autoFilterRef}),o.columns.forEach(r=>{this.map.filterColumn.render(u,r)}),u.closeNode(),!0}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:return this.model={autoFilterRef:u.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(u){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+u)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"customFilter"}render(i,u){i.leafNode(this.tag,{val:u.val,operator:u.operator})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val,operator:i.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,a){const d=e("../base-xform"),i=e("../list-xform"),u=e("./custom-filter-xform"),o=e("./filter-xform");t.exports=class extends d{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new u}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new o})}}get tag(){return"filterColumn"}prepare(r,l){r.colId=l.index.toString()}render(r,l){return l.customFilters?(r.openNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),this.map.customFilters.render(r,l.customFilters),r.closeNode(),!0):(r.leafNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),!0)}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;const{attributes:l}=r;switch(r.name){case this.tag:return this.model={filterButton:l.hiddenButton==="0"},!0;default:if(this.parser=this.map[r.name],this.parser)return this.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"filter"}render(i,u){i.leafNode(this.tag,{val:u.val})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"tableColumn"}prepare(i,u){i.id=u.index+1}render(i,u){return i.leafNode(this.tag,{id:u.id.toString(),name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:u}=i;return this.model={name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,a){const d=e("../base-xform");t.exports=class extends d{get tag(){return"tableStyleInfo"}render(i,u){return i.leafNode(this.tag,{name:u.theme?u.theme:void 0,showFirstColumn:u.showFirstColumn?"1":"0",showLastColumn:u.showLastColumn?"1":"0",showRowStripes:u.showRowStripes?"1":"0",showColumnStripes:u.showColumnStripes?"1":"0"}),!0}parseOpen(i){if(i.name===this.tag){const{attributes:u}=i;return this.model={theme:u.name?u.name:null,showFirstColumn:u.showFirstColumn==="1",showLastColumn:u.showLastColumn==="1",showRowStripes:u.showRowStripes==="1",showColumnStripes:u.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,a){const d=e("../../../utils/xml-stream"),i=e("../base-xform"),u=e("../list-xform"),o=e("./auto-filter-xform"),r=e("./table-column-xform"),l=e("./table-style-info-xform");class f extends i{constructor(){super(),this.map={autoFilter:new o,tableColumns:new u({tag:"tableColumns",count:!0,empty:!0,childXform:new r}),tableStyleInfo:new l}}prepare(h,g){this.map.autoFilter.prepare(h),this.map.tableColumns.prepare(h.columns,g)}get tag(){return"table"}render(h,g){h.openXml(d.StdDocAttributes),h.openNode(this.tag,{...f.TABLE_ATTRIBUTES,id:g.id,name:g.name,displayName:g.displayName||g.name,ref:g.tableRef,totalsRowCount:g.totalsRow?"1":void 0,totalsRowShown:g.totalsRow?void 0:"1",headerRowCount:g.headerRow?"1":"0"}),this.map.autoFilter.render(h,g),this.map.tableColumns.render(h,g.columns),this.map.tableStyleInfo.render(h,g.style),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;const{name:g,attributes:p}=h;switch(g){case this.tag:this.reset(),this.model={name:p.name,displayName:p.displayName||p.name,tableRef:p.ref,totalsRow:p.totalsRowCount==="1",headerRow:p.headerRowCount==="1"};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((g,p)=>{this.model.columns[p].filterButton=g.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(h,g){h.columns.forEach(p=>{p.dxfId!==void 0&&(p.style=g.styles.getDxfStyle(p.dxfId))})}}f.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,a){(function(d,i){(function(){const u=e("fs"),o=e("jszip"),{PassThrough:r}=e("readable-stream"),l=e("../utils/zip-stream"),f=e("../utils/stream-buf"),c=e("../utils/utils"),h=e("../utils/xml-stream"),{bufferToString:g}=e("../utils/browser-buffer-decode"),p=e("./xform/style/styles-xform"),m=e("./xform/core/core-xform"),y=e("./xform/strings/shared-strings-xform"),b=e("./xform/core/relationships-xform"),M=e("./xform/core/content-types-xform"),S=e("./xform/core/app-xform"),C=e("./xform/book/workbook-xform"),N=e("./xform/sheet/worksheet-xform"),H=e("./xform/drawing/drawing-xform"),L=e("./xform/table/table-xform"),z=e("./xform/comment/comments-xform"),B=e("./xform/comment/vml-notes-xform"),X=e("./xml/theme1");class V{constructor(E){this.workbook=E}async readFile(E,P){if(!await c.fs.exists(E))throw new Error("File not found: "+E);const w=u.createReadStream(E);try{const _=await this.read(w,P);return w.close(),_}catch(_){throw w.close(),_}}parseRels(E){return new b().parseStream(E)}parseWorkbook(E){return new C().parseStream(E)}parseSharedStrings(E){return new y().parseStream(E)}reconcile(E,P){const w=new C,_=new N(P),x=new H,k=new L;w.reconcile(E);const T={media:E.media,mediaIndex:E.mediaIndex};Object.keys(E.drawings).forEach(q=>{const U=E.drawings[q],ee=E.drawingRels[q];ee&&(T.rels=ee.reduce((R,K)=>(R[K.Id]=K,R),{}),(U.anchors||[]).forEach(R=>{const K=R.picture&&R.picture.hyperlinks;K&&T.rels[K.rId]&&(K.hyperlink=T.rels[K.rId].Target,delete K.rId)}),x.reconcile(U,T))});const j={styles:E.styles};Object.values(E.tables).forEach(q=>{k.reconcile(q,j)});const A={styles:E.styles,sharedStrings:E.sharedStrings,media:E.media,mediaIndex:E.mediaIndex,date1904:E.properties&&E.properties.date1904,drawings:E.drawings,comments:E.comments,tables:E.tables,vmlDrawings:E.vmlDrawings};E.worksheets.forEach(q=>{q.relationships=E.worksheetRels[q.sheetNo],_.reconcile(q,A)}),delete E.worksheetHash,delete E.worksheetRels,delete E.globalRels,delete E.sharedStrings,delete E.workbookRels,delete E.sheetDefs,delete E.styles,delete E.mediaIndex,delete E.drawings,delete E.drawingRels,delete E.vmlDrawings}async _processWorksheetEntry(E,P,w,_,x){const k=new N(_),T=await k.parseStream(E);T.sheetNo=w,P.worksheetHash[x]=T,P.worksheets.push(T)}async _processCommentEntry(E,P,w){const _=new z,x=await _.parseStream(E);P.comments[`../${w}.xml`]=x}async _processTableEntry(E,P,w){const _=new L,x=await _.parseStream(E);P.tables[`../tables/${w}.xml`]=x}async _processWorksheetRelsEntry(E,P,w){const _=new b,x=await _.parseStream(E);P.worksheetRels[w]=x}async _processMediaEntry(E,P,w){const _=w.lastIndexOf(".");if(_>=1){const x=w.substr(_+1),k=w.substr(0,_);await new Promise((T,j)=>{const A=new f;A.on("finish",()=>{P.mediaIndex[w]=P.media.length,P.mediaIndex[k]=P.media.length;const q={type:"image",name:k,extension:x,buffer:A.toBuffer()};P.media.push(q),T()}),E.on("error",q=>{j(q)}),E.pipe(A)})}}async _processDrawingEntry(E,P,w){const _=new H,x=await _.parseStream(E);P.drawings[w]=x}async _processDrawingRelsEntry(E,P,w){const _=new b,x=await _.parseStream(E);P.drawingRels[w]=x}async _processVmlDrawingEntry(E,P,w){const _=new B,x=await _.parseStream(E);P.vmlDrawings[`../drawings/${w}.vml`]=x}async _processThemeEntry(E,P,w){await new Promise((_,x)=>{const k=new f;E.on("error",x),k.on("error",x),k.on("finish",()=>{P.themes[w]=k.read().toString(),_()}),E.pipe(k)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(E,P){!E[Symbol.asyncIterator]&&E.pipe&&(E=E.pipe(new r));const w=[];for await(const _ of E)w.push(_);return this.load(i.concat(w),P)}async load(E,P){let w;w=P&&P.base64?i.from(E.toString(),"base64"):E;const _={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},x=await o.loadAsync(w);for(const k of Object.values(x.files))if(!k.dir){let T,j=k.name;if(j[0]==="/"&&(j=j.substr(1)),j.match(/xl\/media\//)||j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))T=new r,T.write(await k.async("nodebuffer"));else{let A;T=new r({writableObjectMode:!0,readableObjectMode:!0}),A=d.browser?g(await k.async("nodebuffer")):await k.async("string");const q=16384;for(let U=0;U<A.length;U+=q)T.write(A.substring(U,U+q))}switch(T.end(),j){case"_rels/.rels":_.globalRels=await this.parseRels(T);break;case"xl/workbook.xml":{const A=await this.parseWorkbook(T);_.sheets=A.sheets,_.definedNames=A.definedNames,_.views=A.views,_.properties=A.properties,_.calcProperties=A.calcProperties;break}case"xl/_rels/workbook.xml.rels":_.workbookRels=await this.parseRels(T);break;case"xl/sharedStrings.xml":_.sharedStrings=new y,await _.sharedStrings.parseStream(T);break;case"xl/styles.xml":_.styles=new p,await _.styles.parseStream(T);break;case"docProps/app.xml":{const A=new S,q=await A.parseStream(T);_.company=q.company,_.manager=q.manager;break}case"docProps/core.xml":{const A=new m,q=await A.parseStream(T);Object.assign(_,q);break}default:{let A=j.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(A){await this._processWorksheetEntry(T,_,A[1],P,j);break}if(A=j.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),A){await this._processWorksheetRelsEntry(T,_,A[1]);break}if(A=j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),A){await this._processThemeEntry(T,_,A[1]);break}if(A=j.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),A){await this._processMediaEntry(T,_,A[1]);break}if(A=j.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),A){await this._processDrawingEntry(T,_,A[1]);break}if(A=j.match(/xl\/(comments\d+)[.]xml/),A){await this._processCommentEntry(T,_,A[1]);break}if(A=j.match(/xl\/tables\/(table\d+)[.]xml/),A){await this._processTableEntry(T,_,A[1]);break}if(A=j.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),A){await this._processDrawingRelsEntry(T,_,A[1]);break}if(A=j.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),A){await this._processVmlDrawingEntry(T,_,A[1]);break}}}}return this.reconcile(_,P),this.workbook.model=_,this.workbook}async addMedia(E,P){await Promise.all(P.media.map(async w=>{if(w.type==="image"){const _=`xl/media/${w.name}.${w.extension}`;if(w.filename){const x=await function(k,T){return new Promise((j,A)=>{u.readFile(k,T,(q,U)=>{q?A(q):j(U)})})}(w.filename);return E.append(x,{name:_})}if(w.buffer)return E.append(w.buffer,{name:_});if(w.base64){const x=w.base64,k=x.substring(x.indexOf(",")+1);return E.append(k,{name:_,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(E,P){const w=new H,_=new b;P.worksheets.forEach(x=>{const{drawing:k}=x;if(k){w.prepare(k,{});let T=w.toXml(k);E.append(T,{name:`xl/drawings/${k.name}.xml`}),T=_.toXml(k.rels),E.append(T,{name:`xl/drawings/_rels/${k.name}.xml.rels`})}})}addTables(E,P){const w=new L;P.worksheets.forEach(_=>{const{tables:x}=_;x.forEach(k=>{w.prepare(k,{});const T=w.toXml(k);E.append(T,{name:"xl/tables/"+k.target})})})}async addContentTypes(E,P){const w=new M().toXml(P);E.append(w,{name:"[Content_Types].xml"})}async addApp(E,P){const w=new S().toXml(P);E.append(w,{name:"docProps/app.xml"})}async addCore(E,P){const w=new m;E.append(w.toXml(P),{name:"docProps/core.xml"})}async addThemes(E,P){const w=P.themes||{theme1:X};Object.keys(w).forEach(_=>{const x=w[_],k=`xl/theme/${_}.xml`;E.append(x,{name:k})})}async addOfficeRels(E){const P=new b().toXml([{Id:"rId1",Type:V.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:V.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:V.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);E.append(P,{name:"_rels/.rels"})}async addWorkbookRels(E,P){let w=1;const _=[{Id:"rId"+w++,Type:V.RelType.Styles,Target:"styles.xml"},{Id:"rId"+w++,Type:V.RelType.Theme,Target:"theme/theme1.xml"}];P.sharedStrings.count&&_.push({Id:"rId"+w++,Type:V.RelType.SharedStrings,Target:"sharedStrings.xml"}),P.worksheets.forEach(k=>{k.rId="rId"+w++,_.push({Id:k.rId,Type:V.RelType.Worksheet,Target:`worksheets/sheet${k.id}.xml`})});const x=new b().toXml(_);E.append(x,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(E,P){P.sharedStrings&&P.sharedStrings.count&&E.append(P.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(E,P){const{xml:w}=P.styles;w&&E.append(w,{name:"xl/styles.xml"})}async addWorkbook(E,P){const w=new C;E.append(w.toXml(P),{name:"xl/workbook.xml"})}async addWorksheets(E,P){const w=new N,_=new b,x=new z,k=new B;P.worksheets.forEach(T=>{let j=new h;w.render(j,T),E.append(j.xml,{name:`xl/worksheets/sheet${T.id}.xml`}),T.rels&&T.rels.length&&(j=new h,_.render(j,T.rels),E.append(j.xml,{name:`xl/worksheets/_rels/sheet${T.id}.xml.rels`})),T.comments.length>0&&(j=new h,x.render(j,T),E.append(j.xml,{name:`xl/comments${T.id}.xml`}),j=new h,k.render(j,T),E.append(j.xml,{name:`xl/drawings/vmlDrawing${T.id}.vml`}))})}_finalize(E){return new Promise((P,w)=>{E.on("finish",()=>{P(this)}),E.on("error",w),E.finalize()})}prepareModel(E,P){E.creator=E.creator||"ExcelJS",E.lastModifiedBy=E.lastModifiedBy||"ExcelJS",E.created=E.created||new Date,E.modified=E.modified||new Date,E.useSharedStrings=P.useSharedStrings===void 0||P.useSharedStrings,E.useStyles=P.useStyles===void 0||P.useStyles,E.sharedStrings=new y,E.styles=E.useStyles?new p(!0):new p.Mock;const w=new C,_=new N;w.prepare(E);const x={sharedStrings:E.sharedStrings,styles:E.styles,date1904:E.properties.date1904,drawingsCount:0,media:E.media};x.drawings=E.drawings=[],x.commentRefs=E.commentRefs=[];let k=0;E.tables=[],E.worksheets.forEach(T=>{T.tables.forEach(j=>{k++,j.target=`table${k}.xml`,j.id=k,E.tables.push(j)}),_.prepare(T,x)})}async write(E,P){P=P||{};const{model:w}=this.workbook,_=new l.ZipWriter(P.zip);return _.pipe(E),this.prepareModel(w,P),await this.addContentTypes(_,w),await this.addOfficeRels(_,w),await this.addWorkbookRels(_,w),await this.addWorksheets(_,w),await this.addSharedStrings(_,w),await this.addDrawings(_,w),await this.addTables(_,w),await Promise.all([this.addThemes(_,w),this.addStyles(_,w)]),await this.addMedia(_,w),await Promise.all([this.addApp(_,w),this.addCore(_,w)]),await this.addWorkbook(_,w),this._finalize(_)}writeFile(E,P){const w=u.createWriteStream(E);return new Promise((_,x)=>{w.on("finish",()=>{_()}),w.on("error",k=>{x(k)}),this.write(w,P).then(()=>{w.end()}).catch(k=>{x(k)})})}async writeBuffer(E){const P=new f;return await this.write(P,E),P.read()}}V.RelType=e("./rel-type"),t.exports=V}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,a){t.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
63
63
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,t,a){(function(d){(function(){Object.defineProperty(a,"__esModule",{value:!0}),a.CsvFormatterStream=void 0;const i=e("stream"),u=e("./formatter");class o extends i.Transform{constructor(l){super({writableObjectMode:l.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=l,this.rowFormatter=new u.RowFormatter(l),this.hasWrittenBOM=!l.writeBOM}transform(l){return this.rowFormatter.rowTransform=l,this}_transform(l,f,c){let h=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(l,(g,p)=>g?(h=!0,c(g)):(p&&p.forEach(m=>{this.push(d.from(m,"utf8"))}),h=!0,c()))}catch(g){if(h)throw g;c(g)}}_flush(l){this.rowFormatter.finish((f,c)=>f?l(f):(c&&c.forEach(h=>{this.push(d.from(h,"utf8"))}),l()))}}a.CsvFormatterStream=o}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.FormatterOptions=void 0,a.FormatterOptions=class{constructor(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
64
64
  `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,d||{}),(d==null?void 0:d.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(d==null?void 0:d.quote)===!0?this.quote='"':(d==null?void 0:d.quote)===!1&&(this.quote=""),typeof(d==null?void 0:d.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((i=d.writeHeaders)===null||i===void 0||i),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,a){var d=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(a,"__esModule",{value:!0}),a.FieldFormatter=void 0;const i=d(e("lodash.isboolean")),u=d(e("lodash.isnil")),o=d(e("lodash.escaperegexp"));a.FieldFormatter=class{constructor(r){this._headers=null,this.formatterOptions=r,r.headers!==null&&(this.headers=r.headers),this.REPLACE_REGEXP=new RegExp(r.quote,"g");const l=`[${r.delimiter}${o.default(r.rowDelimiter)}|\r|