/*! For license information please see main.562dd364.js.LICENSE.txt */
!function(){var e={5318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},8540:function(e,t,n){"use strict";t.__esModule=!0;var r=n(2791),o=(a(r),a(n(2007))),i=a(n(4566));a(n(2391));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=1073741823;t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,r;u(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=s(this,e.call.apply(e,[this].concat(i))),r.emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(r.props.value),s(r,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,r)?(o="function"===typeof t?t(n,r):c,0!==(o|=0)&&this.emitter.set(e.value,o)):o=0}},n.prototype.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[f]=o.default.object.isRequired,n);var p=function(t){function n(){var e,r;u(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=s(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!==((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},s(r,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?c:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?c:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[f]=o.default.object,a),{Provider:d,Consumer:p}},e.exports=t.default},4535:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(2791)),o=i(n(8540));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},4037:function(e,t,n){"use strict";var r=n(497),o=n(9722),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},9722:function(e,t,n){"use strict";var r=n(3350),o=n(497),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=u(r,a,arguments);s&&l&&(s(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var f=function(){return u(r,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},497:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(C){s=null}var l=function(){throw new a},c=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(t){return l}}}():l,f=n(697)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"===typeof Uint8Array?r:d(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},y=function e(t){var n;if("%AsyncFunction%"===t)n=u("async function () {}");else if("%GeneratorFunction%"===t)n=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=u("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return v[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(3350),b=n(8316),w=g.call(Function.call,Array.prototype.concat),x=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,E=function(e,t){var n,r=e;if(b(m,r)&&(r="%"+(n=m[r])[0]+"%"),b(v,r)){var i=v[r];if(i===p&&(i=y(r)),"undefined"===typeof i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');var n=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,O,(function(e,t,n,o){r[r.length]=n?k(o,S,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=E("%"+r+"%",t),u=i.name,l=i.value,c=!1,f=i.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],y=_(h,0,1),m=_(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),b(v,u="%"+(r+="."+h)+"%"))l=v[u];else if(null!=l){if(!(h in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var g=s(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=b(l,h),l=l[h];p&&!c&&(v[u]=l)}}return l}},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4890:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,n,r,o){if(!t.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!t[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var i=t[r][n]*e;return!1!==o?(o=Math.pow(10,parseInt(o)||5),Math.round(i*o)/o):i}},6026:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default},9646:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e},e.exports=t.default},3793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(847)),o=c(n(1223)),i=c(n(9610)),a=c(n(7184)),u=c(n(8395)),s=c(n(8871)),l=c(n(6026));function c(e){return e&&e.__esModule?e:{default:e}}var f="midnight",d="noon",p="morning",h="afternoon",v="evening",y="night";function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+(0,l.default)(i,2)}function g(e,t){return e%60===0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+(0,l.default)(Math.floor(o/60),2)+n+(0,l.default)(o%60,2)}var w={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return r.default.y(e,t)},Y:function(e,t,n,r){var o=(0,s.default)(e,r),i=o>0?o:1-o;if("YY"===t){var a=i%100;return(0,l.default)(a,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.default)(i,t.length)},R:function(e,t){var n=(0,a.default)(e);return(0,l.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,l.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return r.default.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,u.default)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.default)(o,t.length)},I:function(e,t,n){var r=(0,i.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):r.default.d(e,t)},D:function(e,t,n){var r=(0,o.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.default)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.default)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.default)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?d:0===o?f:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?v:o>=12?h:o>=4?p:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return r.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):r.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):r.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):r.default.s(e,t)},S:function(e,t){return r.default.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return g(o);case"XXXX":case"XX":return b(o);default:return b(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(o);case"xxxx":case"xx":return b(o);default:return b(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(o,":");default:return"GMT"+b(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(o,":");default:return"GMT"+b(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,i=Math.floor(o.getTime()/1e3);return(0,l.default)(i,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,l.default)(o,t.length)}};t.default=w,e.exports=t.default},847:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6026))&&r.__esModule?r:{default:r};var i={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,o.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,o.default)(n+1,2)},d:function(e,t){return(0,o.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,o.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,o.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,o.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,o.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,o.default)(i,t.length)}};t.default=i,e.exports=t.default},1535:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/),a=i[1],u=i[2];if(!u)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(u,t))}};t.default=o,e.exports=t.default},9294:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},1223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),u=n-i;return Math.floor(u/a)+1};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},9610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,r.default)(e),n=(0,o.default)(t).getTime()-(0,i.default)(t).getTime();return Math.round(n/s)+1};var r=u(n(969)),o=u(n(3450)),i=u(n(8945)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}var s=6048e5;e.exports=t.default},7184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var u=(0,o.default)(a),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=(0,o.default)(s);return t.getTime()>=u.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1};var r=a(n(969)),o=a(n(3450)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,r.default)(e),u=(0,o.default)(n,t).getTime()-(0,i.default)(n,t).getTime();return Math.round(u/s)+1};var r=u(n(969)),o=u(n(5577)),i=u(n(7774)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}var s=6048e5;e.exports=t.default},8871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,o.default)(e,t),u=n.getUTCFullYear(),s=t||{},l=s.locale,c=l&&l.options&&l.options.firstWeekContainsDate,f=null==c?1:(0,r.default)(c),d=null==s.firstWeekContainsDate?f:(0,r.default)(s.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,d),p.setUTCHours(0,0,0,0);var h=(0,i.default)(p,t),v=new Date(0);v.setUTCFullYear(u,0,d),v.setUTCHours(0,0,0,0);var y=(0,i.default)(v,t);return n.getTime()>=h.getTime()?u+1:n.getTime()>=y.getTime()?u:u-1};var r=u(n(4934)),o=u(n(969)),i=u(n(5577)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2161:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))};var n=["D","DD"],r=["YY","YYYY"]},9670:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},5138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,i.default)(2,arguments);var a=n||{},u=a.locale,s=u&&u.options&&u.options.weekStartsOn,l=null==s?0:(0,r.default)(s),c=null==a.weekStartsOn?l:(0,r.default)(a.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=(0,o.default)(e),d=(0,r.default)(t),p=f.getUTCDay(),h=((d%7+7)%7<c?7:0)+d-p;return f.setUTCDate(f.getUTCDate()+h),f};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);n%7===0&&(n-=7);var a=(0,o.default)(e),u=a.getUTCDay(),s=((n%7+7)%7<1?7:0)+n-u;return a.setUTCDate(a.getUTCDate()+s),a};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,o.default)(e),u=(0,r.default)(t),s=(0,i.default)(n)-u;return n.setUTCDate(n.getUTCDate()-7*s),n};var r=u(n(4934)),o=u(n(969)),i=u(n(9610)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6030:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,a.default)(2,arguments);var u=(0,o.default)(e),s=(0,r.default)(t),l=(0,i.default)(u,n)-s;return u.setUTCDate(u.getUTCDate()-7*l),u};var r=u(n(4934)),o=u(n(969)),i=u(n(8395)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8945:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.default)(n)};var r=a(n(7184)),o=a(n(3450)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.weekStartsOn,s=null==u?0:(0,r.default)(u),l=null==n.weekStartsOn?s:(0,r.default)(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,o.default)(e),f=c.getUTCDay(),d=(f<l?7:0)+f-l;return c.setUTCDate(c.getUTCDate()-d),c.setUTCHours(0,0,0,0),c};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=t||{},u=n.locale,s=u&&u.options&&u.options.firstWeekContainsDate,l=null==s?1:(0,r.default)(s),c=null==n.firstWeekContainsDate?l:(0,r.default)(n.firstWeekContainsDate),f=(0,o.default)(e,t),d=new Date(0);return d.setUTCFullYear(f,0,c),d.setUTCHours(0,0,0,0),(0,i.default)(d,t)};var r=u(n(4934)),o=u(n(8871)),i=u(n(5577)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4934:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},7316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;return n.setDate(n.getDate()+a),n};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,n*u)};var r=a(n(4934)),o=a(n(5189)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}var u=36e5;e.exports=t.default},5189:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e).getTime(),a=(0,r.default)(t);return new Date(n+a)};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,n*u)};var r=a(n(4934)),o=a(n(5189)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}var u=6e4;e.exports=t.default},3440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var u=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+a+1,0);var l=s.getDate();return u>=l?s:(n.setFullYear(s.getFullYear(),s.getMonth(),u),n)};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=7*(0,r.default)(t);return(0,o.default)(e,n)};var r=a(n(4934)),o=a(n(7316)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6356:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,12*n)};var r=a(n(4934)),o=a(n(3440)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,o.default)(t),s=n.getTime()-(0,r.default)(n),l=a.getTime()-(0,r.default)(a);return Math.round((s-l)/u)};var r=a(n(9294)),o=a(n(560)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}var u=864e5;e.exports=t.default},5075:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t),a=n.getFullYear()-i.getFullYear(),u=n.getMonth()-i.getMonth();return 12*a+u};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,i.default)(2,arguments);var a=(0,r.default)(e,n),s=(0,r.default)(t,n),l=a.getTime()-(0,o.default)(a),c=s.getTime()-(0,o.default)(s);return Math.round((l-c)/u)};var r=a(n(6973)),o=a(n(9294)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}var u=6048e5;e.exports=t.default},6238:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()-i.getFullYear()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.weekStartsOn,s=null==u?0:(0,o.default)(u),l=null==n.weekStartsOn?s:(0,o.default)(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=6+(f<l?-7:0)-(f-l);return c.setDate(c.getDate()+d),c.setHours(23,59,59,999),c};var r=a(n(969)),o=a(n(4934)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,d.default)(2,arguments);var p=String(t),b=n||{},w=b.locale||o.default,x=w.options&&w.options.firstWeekContainsDate,k=null==x?1:(0,f.default)(x),_=null==b.firstWeekContainsDate?k:(0,f.default)(b.firstWeekContainsDate);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=w.options&&w.options.weekStartsOn,S=null==O?0:(0,f.default)(O),E=null==b.weekStartsOn?S:(0,f.default)(b.weekStartsOn);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var C=(0,a.default)(e);if(!(0,r.default)(C))throw new RangeError("Invalid time value");var j=(0,l.default)(C),T=(0,i.default)(C,j),P={firstWeekContainsDate:_,weekStartsOn:E,locale:w,_originalDate:C};return p.match(v).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,w.formatLong,P):e})).join("").match(h).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(y)[1].replace(m,"'");var o=u.default[r];if(o)return!b.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)(n)&&(0,c.throwProtectedError)(n,t,e),!b.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)(n)&&(0,c.throwProtectedError)(n,t,e),o(T,n,w.localize,P);if(r.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")};var r=p(n(5464)),o=p(n(609)),i=p(n(8158)),a=p(n(969)),u=p(n(3793)),s=p(n(1535)),l=p(n(9294)),c=n(2161),f=p(n(4934)),d=p(n(9670));function p(e){return e&&e.__esModule?e:{default:e}}var h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y=/^'([^]*?)'?$/,m=/''/g,g=/[a-zA-Z]/;e.exports=t.default},4650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getDate()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getDay()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6475:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=t.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getHours()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,r.default)(e),n=(0,o.default)(t).getTime()-(0,i.default)(t).getTime();return Math.round(n/s)+1};var r=u(n(969)),o=u(n(6423)),i=u(n(1912)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}var s=6048e5;e.exports=t.default},8040:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var u=(0,o.default)(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var l=(0,o.default)(s);return t.getTime()>=u.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1};var r=a(n(969)),o=a(n(6423)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getMinutes()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getMonth()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return Math.floor(t.getMonth()/3)+1};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9048:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getSeconds()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getTime()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e).getFullYear()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()>i.getTime()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()<i.getTime()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var r,o=(r=n(9670))&&r.__esModule?r:{default:r};e.exports=t.default},3554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()};var r=i(n(560)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8023:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1975:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()};var r=i(n(5655)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1176:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()===i.getFullYear()};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return!isNaN(t)};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=t||{},i=(0,r.default)(e).getTime(),a=(0,r.default)(n.start).getTime(),u=(0,r.default)(n.end).getTime();if(!(a<=u))throw new RangeError("Invalid interval");return i>=a&&i<=u};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5063:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}},e.exports=t.default},4028:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var u=e.defaultWidth,s=o.width?String(o.width):e.defaultWidth;r=e.values[s]||e.values[u]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},7758:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r=String(t),o=n||{},i=o.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],u=r.match(a);if(!u)return null;var s,l=u[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(c,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(c,(function(e){return e.test(l)})),s=e.valueCallback?e.valueCallback(s):s,{value:s=o.valueCallback?o.valueCallback(s):s,rest:r.slice(l.length)}}},e.exports=t.default},5568:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r=String(t),o=n||{},i=r.match(e.matchPattern);if(!i)return null;var a=i[0],u=r.match(e.parsePattern);if(!u)return null;var s=e.valueCallback?e.valueCallback(u[0]):u[0];return{value:s=o.valueCallback?o.valueCallback(s):s,rest:r.slice(a.length)}}},e.exports=t.default},2682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var o;r=r||{},o="string"===typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t);if(r.addSuffix)return r.comparison>0?"in "+o:o+" ago";return o};var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};e.exports=t.default},2128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(5063))&&r.__esModule?r:{default:r};var i={date:(0,o.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},2118:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,o){return n[e]};var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};e.exports=t.default},8336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4028))&&r.__esModule?r:{default:r};var i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,o.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,o.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,o.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},8787:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(5568)),o=i(n(7758));function i(e){return e&&e.__esModule?e:{default:e}}var a={ordinalNumber:(0,r.default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,o.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,o.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=a,e.exports=t.default},609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2682)),o=s(n(2128)),i=s(n(2118)),a=s(n(8336)),u=s(n(8787));function s(e){return e&&e.__esModule?e:{default:e}}var l={code:"en-US",formatDistance:r.default,formatLong:o.default,formatRelative:i.default,localize:a.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=l,e.exports=t.default},3213:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var o;r=r||{},o="string"===typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t);if(r.addSuffix)return r.comparison>0?"\xed "+o:o+" s\xed\xf0an";return o};var n={lessThanXSeconds:{one:"minna en 1 sek\xfanda",other:"minna en {{count}} sek\xfandur"},xSeconds:{one:"1 sek\xfanda",other:"{{count}} sek\xfandur"},halfAMinute:"h\xe1lf m\xedn\xfata",lessThanXMinutes:{one:"minna en 1 m\xedn\xfata",other:"minna en {{count}} m\xedn\xfatur"},xMinutes:{one:"1 m\xedn\xfata",other:"{{count}} m\xedn\xfatur"},aboutXHours:{one:"u.\xfe.b. 1 klukkustund",other:"u.\xfe.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.\xfe.b. 1 m\xe1nu\xf0ur",other:"u.\xfe.b. {{count}} m\xe1nu\xf0ir"},xMonths:{one:"1 m\xe1nu\xf0ur",other:"{{count}} m\xe1nu\xf0ir"},aboutXYears:{one:"u.\xfe.b. 1 \xe1r",other:"u.\xfe.b. {{count}} \xe1r"},xYears:{one:"1 \xe1r",other:"{{count}} \xe1r"},overXYears:{one:"meira en 1 \xe1r",other:"meira en {{count}} \xe1r"},almostXYears:{one:"n\xe6stum 1 \xe1r",other:"n\xe6stum {{count}} \xe1r"}};e.exports=t.default},1517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(5063))&&r.__esModule?r:{default:r};var i={date:(0,o.default)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},defaultWidth:"full"}),time:(0,o.default)({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,o.default)({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},5819:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,o){return n[e]};var n={lastWeek:"'s\xed\xf0asta' dddd 'kl.' p",yesterday:"'\xed g\xe6r kl.' p",today:"'\xed dag kl.' p",tomorrow:"'\xe1 morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"L"};e.exports=t.default},456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4028))&&r.__esModule?r:{default:r};var i={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,o.default)({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},defaultWidth:"wide"}),quarter:(0,o.default)({values:{narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fj\xf3r\xf0ungur","2. fj\xf3r\xf0ungur","3. fj\xf3r\xf0ungur","4. fj\xf3r\xf0ungur"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,o.default)({values:{narrow:["J","F","M","A","M","J","J","\xc1","S","\xd3","N","D"],abbreviated:["jan.","feb.","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","sept.","okt.","n\xf3v.","des."],wide:["jan\xfaar","febr\xfaar","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","september","okt\xf3ber","n\xf3vember","desember"]},defaultWidth:"wide"}),day:(0,o.default)({values:{narrow:["S","M","\xde","M","F","F","L"],short:["Su","M\xe1","\xder","Mi","Fi","F\xf6","La"],abbreviated:["sun.","m\xe1n.","\xferi.","mi\xf0.","fim.","f\xf6s.","lau"],wide:["sunnudagur","m\xe1nudagur","\xferi\xf0judagur","mi\xf0vikudagur","fimmtudagur","f\xf6studagur","laugardagur"]},defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:{narrow:{am:"f",pm:"e",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"f",pm:"e",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(5568)),o=i(n(7758));function i(e){return e&&e.__esModule?e:{default:e}}var a={ordinalNumber:(0,r.default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,o.default)({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(f\.Kr\.|e\.Kr\.)/i]},defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234] fj\xf3r\xf0ungur/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,o.default)({matchPatterns:{narrow:/^[jfm\xe1s\xf3nd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apr\xedl\.|ma\xed|j\xfan\xed|j\xfal\xed|\xe1gust|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|februar|mars|apr\xedl|ma\xed|j\xfan\xed|j\xfal\xed|\xe1gust|september|okt\xf3ber|n\xf3vember|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^\xe1/i,/^s/i,/^\xf3/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^ma\xed/i,/^j\xfan/i,/^j\xfal/i,/^\xe1u/i,/^s/i,/^\xf3/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|m\xe1|\xfer|mi|fi|f\xf6|la)/i,abbreviated:/^(sun|m\xe1n|\xferi|mi\xf0|fim|f\xf6s|lau)\.?/i,wide:/^(sunnudagur|m\xe1nudagur|\xferi\xf0judagur|mi\xf0vikudagur|fimmtudagur|f\xf6studagur|laugardagur)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^\xfe/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^m\xe1/i,/^\xfer/i,/^mi/i,/^fi/i,/^f\xf6/i,/^la/i]},defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:{narrow:/^(f|e|s\xed\xf0degis|(\xe1|a\xf0|um) (morgni|kv\xf6ld|n\xf3tt|mi\xf0n\xe6tti))/i,any:/^(fyrir h\xe1degi|eftir h\xe1degi|[ef]\.?h\.?|s\xed\xf0degis|morgunn|(\xe1|a\xf0|um) (morgni|kv\xf6ld|n\xf3tt|mi\xf0n\xe6tti))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^h\xe1/i,morning:/morgunn/i,afternoon:/s\xed\xf0degi/i,evening:/kv\xf6ld/i,night:/n\xf3tt/i}},defaultParseWidth:"any"})};t.default=a,e.exports=t.default},9787:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(3213)),o=s(n(1517)),i=s(n(5819)),a=s(n(456)),u=s(n(423));function s(e){return e&&e.__esModule?e:{default:e}}var l={code:"is",formatDistance:r.default,formatLong:o.default,formatRelative:i.default,localize:a.default,match:u.default,options:{weekStartsOn:1,firstWeekContainsDate:4}};t.default=l,e.exports=t.default},8982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;if((0,o.default)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n<t||isNaN(t))&&(n=t)})),n||new Date(NaN)};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;if((0,o.default)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n>t||isNaN(t))&&(n=t)})),n||new Date(NaN)};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(8871)),o=c(n(5138)),i=c(n(9195)),a=c(n(7499)),u=c(n(6030)),s=c(n(3450)),l=c(n(5577));function c(e){return e&&e.__esModule?e:{default:e}}var f=/^(1[0-2]|0?\d)/,d=/^(3[0-1]|[0-2]?\d)/,p=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,h=/^(5[0-3]|[0-4]?\d)/,v=/^(2[0-3]|[0-1]?\d)/,y=/^(2[0-4]|[0-1]?\d)/,m=/^(1[0-1]|0?\d)/,g=/^(1[0-2]|0?\d)/,b=/^[0-5]?\d/,w=/^[0-5]?\d/,x=/^\d/,k=/^\d{1,2}/,_=/^\d{1,3}/,O=/^\d{1,4}/,S=/^-?\d+/,E=/^-?\d/,C=/^-?\d{1,2}/,j=/^-?\d{1,3}/,T=/^-?\d{1,4}/,P=/^([+-])(\d{2})(\d{2})?|Z/,D=/^([+-])(\d{2})(\d{2})|Z/,M=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,A=/^([+-])(\d{2}):(\d{2})|Z/,N=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function I(e,t,n){var r=t.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:n?n(o):o,rest:t.slice(r[0].length)}}function R(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function F(e,t){return I(S,e,t)}function L(e,t,n){switch(e){case 1:return I(x,t,n);case 2:return I(k,t,n);case 3:return I(_,t,n);case 4:return I(O,t,n);default:return I(new RegExp("^\\d{1,"+e+"}"),t,n)}}function V(e,t,n){switch(e){case 1:return I(E,t,n);case 2:return I(C,t,n);case 3:return I(j,t,n);case 4:return I(T,t,n);default:return I(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function B(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function U(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}var W=[31,28,31,30,31,30,31,31,30,31,30,31],z=[31,29,31,30,31,30,31,31,30,31,30,31];function q(e){return e%400===0||e%4===0&&e%100!==0}var H={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return L(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return L(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var i=U(n.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return L(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return L(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,o){var i=(0,r.default)(e,o);if(n.isTwoDigitYear){var a=U(n.year,i);return e.setUTCFullYear(a,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,l.default)(e,o)}var u="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(u,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,l.default)(e,o)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return V("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),(0,s.default)(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return V("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return L(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return L(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return I(f,e,o);case"MM":return L(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return I(f,e,o);case"LL":return L(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return I(h,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,l.default)((0,u.default)(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return I(h,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,s.default)((0,a.default)(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return I(d,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return L(t.length,e)}},validate:function(e,t,n){var r=q(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=z[o]:t>=1&&t<=W[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return I(p,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return L(t.length,e)}},validate:function(e,t,n){return q(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=(0,o.default)(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return L(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=(0,o.default)(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return L(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=(0,o.default)(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return L(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=(0,i.default)(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(B(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(B(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(B(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return I(g,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return I(v,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return I(m,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return I(y,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return I(b,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return I(w,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return L(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return L(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return R(P,e);case"XX":return R(D,e);case"XXXX":return R(M,e);case"XXXXX":return R(N,e);default:return R(A,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return R(P,e);case"xx":return R(D,e);case"xxxx":return R(M,e);case"xxxxx":return R(N,e);default:return R(A,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return F(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return F(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};t.default=H,e.exports=t.default},6058:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,p){(0,d.default)(3,arguments);var k=String(e),_=String(t),O=p||{},S=O.locale||r.default;if(!S.match)throw new RangeError("locale must contain match property");var E=S.options&&S.options.firstWeekContainsDate,C=null==E?1:(0,c.default)(E),j=null==O.firstWeekContainsDate?C:(0,c.default)(O.firstWeekContainsDate);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=S.options&&S.options.weekStartsOn,P=null==T?0:(0,c.default)(T),D=null==O.weekStartsOn?P:(0,c.default)(O.weekStartsOn);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===_)return""===k?(0,i.default)(n):new Date(NaN);var M,A={firstWeekContainsDate:j,weekStartsOn:D,locale:S},N=[{priority:h,subPriority:-1,set:x,index:0}],I=_.match(y).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,u.default[t])(e,S.formatLong,A):e})).join("").match(v),R=[];for(M=0;M<I.length;M++){var F=I[M];!O.useAdditionalWeekYearTokens&&(0,l.isProtectedWeekYearToken)(F)&&(0,l.throwProtectedError)(F,_,e),!O.useAdditionalDayOfYearTokens&&(0,l.isProtectedDayOfYearToken)(F)&&(0,l.throwProtectedError)(F,_,e);var L=F[0],V=f.default[L];if(V){var B=V.incompatibleTokens;if(Array.isArray(B)){for(var U=void 0,W=0;W<R.length;W++){var z=R[W].token;if(-1!==B.indexOf(z)||z===L){U=R[W];break}}if(U)throw new RangeError("The format string mustn't contain `".concat(U.fullToken,"` and `").concat(F,"` at the same time"))}else if("*"===V.incompatibleTokens&&R.length)throw new RangeError("The format string mustn't contain `".concat(F,"` and any other token at the same time"));R.push({token:L,fullToken:F});var q=V.parse(k,F,S.match,A);if(!q)return new Date(NaN);N.push({priority:V.priority,subPriority:V.subPriority||0,set:V.set,validate:V.validate,value:q.value,index:N.length}),k=q.rest}else{if(L.match(w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if("''"===F?F="'":"'"===L&&(F=F.match(m)[1].replace(g,"'")),0!==k.indexOf(F))return new Date(NaN);k=k.slice(F.length)}}if(k.length>0&&b.test(k))return new Date(NaN);var H=N.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return N.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Y=(0,i.default)(n);if(isNaN(Y))return new Date(NaN);var $=(0,o.default)(Y,(0,s.default)(Y)),K={};for(M=0;M<H.length;M++){var Q=H[M];if(Q.validate&&!Q.validate($,Q.value,A))return new Date(NaN);var G=Q.set($,K,Q.value,A);G[0]?($=G[0],(0,a.default)(K,G[1])):$=G}return $};var r=p(n(609)),o=p(n(8158)),i=p(n(969)),a=p(n(9646)),u=p(n(1535)),s=p(n(9294)),l=n(2161),c=p(n(4934)),f=p(n(8997)),d=p(n(9670));function p(e){return e&&e.__esModule?e:{default:e}}var h=10,v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,b=/\S/,w=/[a-zA-Z]/;function x(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}e.exports=t.default},8603:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var n=t||{},i=null==n.additionalDigits?s:(0,r.default)(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var m,g=function(e){var t,n={},r=e.split(l.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],l.timeZoneDelimiter.test(n.date)&&(n.date=e.split(l.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=l.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(g.date){var b=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var o=r[1]&&parseInt(r[1]),i=r[2]&&parseInt(r[2]);return{year:null==i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,i);m=function(e,t){if(null===t)return null;var n=e.match(c);if(!n)return null;var r=!!n[4],o=p(n[1]),i=p(n[2])-1,a=p(n[3]),u=p(n[4]),s=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,u,s):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(v[t]||(y(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(y(e)?366:365)}(t,o)?(l.setUTCFullYear(t,i,Math.max(o,a)),l):new Date(NaN)}(b.restDateString,b.year)}if(isNaN(m)||!m)return new Date(NaN);var w,x=m.getTime(),k=0;if(g.time&&(k=function(e){var t=e.match(f);if(!t)return null;var n=h(t[1]),r=h(t[2]),o=h(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*a+r*u+1e3*o}(g.time),isNaN(k)||null===k))return new Date(NaN);if(!g.timezone){var _=new Date(x+k),O=new Date(0);return O.setFullYear(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate()),O.setHours(_.getUTCHours(),_.getUTCMinutes(),_.getUTCSeconds(),_.getUTCMilliseconds()),O}if(w=function(e){if("Z"===e)return 0;var t=e.match(d);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*a+o*u)}(g.timezone),isNaN(w))return new Date(NaN);return new Date(x+k+w)};var r=i(n(4934)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}var a=36e5,u=6e4,s=2,l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function y(e){return e%400===0||e%4===0&&e%100}e.exports=t.default},9304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);return n.setHours(a),n};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);return n.setMinutes(a),n};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,o.default)(e),u=(0,r.default)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,u,15),c.setHours(0,0,0,0);var f=(0,i.default)(c);return n.setMonth(u,Math.min(l,f)),n};var r=u(n(4934)),o=u(n(969)),i=u(n(6475)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,o.default)(e),u=(0,r.default)(t),s=Math.floor(n.getMonth()/3)+1,l=u-s;return(0,i.default)(n,n.getMonth()+3*l)};var r=u(n(4934)),o=u(n(969)),i=u(n(3482)),a=u(n(9670));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);return n.setSeconds(a),n};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e),a=(0,r.default)(t);if(isNaN(n))return new Date(NaN);return n.setFullYear(a),n};var r=a(n(4934)),o=a(n(969)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},560:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),(0,r.default)(e,{weekStartsOn:1})};var r=i(n(6973)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1912:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.default)(n)};var r=a(n(8040)),o=a(n(6423)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7090:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(1,arguments);var n=t||{},a=n.locale,u=a&&a.options&&a.options.weekStartsOn,s=null==u?0:(0,o.default)(u),l=null==n.weekStartsOn?s:(0,o.default)(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=(f<l?7:0)+f-l;return c.setDate(c.getDate()-d),c.setHours(0,0,0,0),c};var r=a(n(969)),o=a(n(4934)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5605:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var r=i(n(969)),o=i(n(9670));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(7316)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(7152)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(5189)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1954:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(1145)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(3440)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(9780)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,r.default)(t);return(0,o.default)(e,-n)};var r=a(n(4934)),o=a(n(6356)),i=a(n(9670));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},969:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))};var r,o=(r=n(9670))&&r.__esModule?r:{default:r};e.exports=t.default},4234:function(e,t,n){var r;!function(o){"use strict";var i,a=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",f=l+"Exponent out of range: ",d=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,v=1e7,y=7,m=9007199254740991,g=d(m/y),b={};function w(e,t){var n,r,o,i,a,u,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),s?P(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o){for(i<0?(r=l,i=-i,u=c.length):(r=c,o=a,u=l.length),i>(u=(a=Math.ceil(d/y))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=l.length)-(i=c.length)<0&&(i=u,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/v|0,l[i]%=v;for(n&&(l.unshift(n),++o),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=o,s?P(t,d):t}function x(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function k(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=y-r.length)&&(i+=C(n)),i+=r;a=e[t],(n=y-(r=a+"").length)&&(i+=C(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return i+a}b.absoluteValue=b.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},b.comparedTo=b.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*y;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return _(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return P(_(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return S(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(s=!1,t=_(j(n,a),j(e,a),a),s=!0,P(t,o))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?D(t,e):w(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=_(n,e,0,1).times(e),s=!0,n.minus(t)):P(new r(n),o)},b.naturalExponential=b.exp=function(){return O(this)},b.naturalLogarithm=b.ln=function(){return j(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?w(t,e):D(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=S(o)+1,n=(r=o.d.length-1)*y+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,o,i,a,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(l+"NaN")}for(e=S(u),s=!1,0==(o=Math.sqrt(+u))||o==1/0?(((t=k(u.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(_(u,i,a+2)).times(.5),k(i.d).slice(0,a)===(t=k(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(P(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,P(r,n)},b.times=b.mul=function(e){var t,n,r,o,i,a,u,l,c,f=this,d=f.constructor,p=f.d,h=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,(l=p.length)<(c=h.length)&&(i=p,p=h,h=i,a=l,l=c,c=a),i=[],r=a=l+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)u=i[o]+h[r]*p[o-r-1]+t,i[o--]=u%v|0,t=u/v|0;i[o]=(i[o]+t)%v|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,s?P(e,d.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),P(n,e+S(n)+1,t))},b.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=M(r,!0):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=M(r=P(new o(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?M(o):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=M((r=P(new i(o),e+S(o)+1,t)).abs(),!1,e+S(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return P(new t(e),S(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,o,a,u,c=this,f=c.constructor,p=+(e=new f(e));if(!e.s)return new f(i);if(!(c=new f(c)).s){if(e.s<1)throw Error(l+"Infinity");return c}if(c.eq(i))return c;if(r=f.precision,e.eq(i))return P(c,r);if(u=(t=e.e)>=(n=e.d.length-1),a=c.s,u){if((n=p<0?-p:p)<=m){for(o=new f(i),t=Math.ceil(r/y+4),s=!1;n%2&&A((o=o.times(c)).d,t),0!==(n=d(n/2));)A((c=c.times(c)).d,t);return s=!0,e.s<0?new f(i).div(o):P(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,s=!1,o=e.times(j(c,r+12)),s=!0,(o=O(o)).s=a,o},b.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=M(o,(n=S(o))<=i.toExpNeg||n>=i.toExpPos):(x(e,1,a),void 0===t?t=i.rounding:x(t,0,8),r=M(o=P(new i(o),e,t),e<=(n=S(o))||n<=i.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),P(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=S(e),n=e.constructor;return M(e,t<=n.toExpNeg||t>=n.toExpPos)};var _=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%v|0,r=n/v|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*v+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var u,s,c,f,d,p,h,m,g,b,w,x,k,_,O,E,C,j,T=r.constructor,D=r.s==o.s?1:-1,M=r.d,A=o.d;if(!r.s)return new T(r);if(!o.s)throw Error(l+"Division by zero");for(s=r.e-o.e,C=A.length,O=M.length,m=(h=new T(D)).d=[],c=0;A[c]==(M[c]||0);)++c;if(A[c]>(M[c]||0)&&--s,(x=null==i?i=T.precision:a?i+(S(r)-S(o))+1:i)<0)return new T(0);if(x=x/y+2|0,c=0,1==C)for(f=0,A=A[0],x++;(c<O||f)&&x--;c++)k=f*v+(M[c]||0),m[c]=k/A|0,f=k%A|0;else{for((f=v/(A[0]+1)|0)>1&&(A=e(A,f),M=e(M,f),C=A.length,O=M.length),_=C,b=(g=M.slice(0,C)).length;b<C;)g[b++]=0;(j=A.slice()).unshift(0),E=A[0],A[1]>=v/2&&++E;do{f=0,(u=t(A,g,C,b))<0?(w=g[0],C!=b&&(w=w*v+(g[1]||0)),(f=w/E|0)>1?(f>=v&&(f=v-1),1==(u=t(d=e(A,f),g,p=d.length,b=g.length))&&(f--,n(d,C<p?j:A,p))):(0==f&&(u=f=1),d=A.slice()),(p=d.length)<b&&d.unshift(0),n(g,d,b),-1==u&&(u=t(A,g,C,b=g.length))<1&&(f++,n(g,C<b?j:A,b)),b=g.length):0===u&&(f++,g=[0]),m[c++]=f,u&&g[0]?g[b++]=M[_]||0:(g=[M[_]],b=1)}while((_++<O||void 0!==g[0])&&x--)}return m[0]||m.shift(),h.e=s,P(h,a?i+S(h)+1:i)}}();function O(e,t){var n,r,o,a,u,l=0,c=0,d=e.constructor,h=d.precision;if(S(e)>16)throw Error(f+S(e));if(!e.s)return new d(i);for(null==t?(s=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(u+=Math.log(p(2,c))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=u;;){if(r=P(r.times(e),u),n=n.times(++l),k((a=o.plus(_(r,n,u))).d).slice(0,u)===k(o.d).slice(0,u)){for(;c--;)o=P(o.times(o),u);return d.precision=h,null==t?(s=!0,P(o,h)):o}o=a}}function S(e){for(var t=e.e*y,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return P(new e(e.LN10),t)}function C(e){for(var t="";e--;)t+="0";return t}function j(e,t){var n,r,o,a,u,c,f,d,p,h=1,v=e,y=v.d,m=v.constructor,g=m.precision;if(v.s<1)throw Error(l+(v.s?"NaN":"-Infinity"));if(v.eq(i))return new m(0);if(null==t?(s=!1,d=g):d=t,v.eq(10))return null==t&&(s=!0),E(m,d);if(d+=10,m.precision=d,r=(n=k(y)).charAt(0),a=S(v),!(Math.abs(a)<15e14))return f=E(m,d+2,g).times(a+""),v=j(new m(r+"."+n.slice(1)),d-10).plus(f),m.precision=g,null==t?(s=!0,P(v,g)):v;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=k((v=v.times(e)).d)).charAt(0),h++;for(a=S(v),r>1?(v=new m("0."+n),a++):v=new m(r+"."+n.slice(1)),c=u=v=_(v.minus(i),v.plus(i),d),p=P(v.times(v),d),o=3;;){if(u=P(u.times(p),d),k((f=c.plus(_(u,new m(o),d))).d).slice(0,d)===k(c.d).slice(0,d))return c=c.times(2),0!==a&&(c=c.plus(E(m,d+2,g).times(a+""))),c=_(c,new m(h),d),m.precision=g,null==t?(s=!0,P(c,g)):c;c=f,o+=2}}function T(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/y),e.d=[],r=(n+1)%y,n<0&&(r+=y),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=y;r<o;)e.d.push(+t.slice(r,r+=y));t=t.slice(r),r=y-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>g||e.e<-g))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function P(e,t,n){var r,o,i,a,u,l,c,h,m=e.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=y,o=t,c=m[h=0];else{if((h=Math.ceil((r+1)/y))>=(i=m.length))return e;for(c=i=m[h],a=1;i>=10;i/=10)a++;o=(r%=y)-y+a}if(void 0!==n&&(u=c/(i=p(10,a-o-1))%10|0,l=t<0||void 0!==m[h+1]||c%i,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?o>0?c/p(10,a-o):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return l?(i=S(e),m.length=1,t=t-i-1,m[0]=p(10,(y-t%y)%y),e.e=d(-t/y)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==r?(m.length=h,i=1,h--):(m.length=h+1,i=p(10,y-r),m[h]=o>0?(c/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==h){(m[0]+=i)==v&&(m[0]=1,++e.e);break}if(m[h]+=i,m[h]!=v)break;m[h--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(s&&(e.e>g||e.e<-g))throw Error(f+S(e));return e}function D(e,t){var n,r,o,i,a,u,l,c,f,d,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?P(t,h):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((f=a<0)?(n=l,a=-a,u=d.length):(n=d,r=c,u=l.length),a>(o=Math.max(Math.ceil(h/y),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=l.length)<(u=d.length))&&(u=o),o=0;o<u;o++)if(l[o]!=d[o]){f=l[o]<d[o];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),u=l.length,o=d.length-u;o>0;--o)l[u++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&0===l[--i];)l[i]=v-1;--l[i],l[o]+=v}l[o]-=d[o]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=r,s?P(t,h):t):new p(0)}function M(e,t,n){var r,o=S(e),i=k(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+C(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+C(-o-1)+i,n&&(r=n-a)>0&&(i+=C(r))):o>=a?(i+=C(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+C(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=C(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(d(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}u=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):T(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(c+e);T(t,e)}if(i.prototype=b,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=N,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(u),u.default=u.Decimal=u,i=new u(1),void 0===(r=function(){return u}.call(t,n,t,e))||(e.exports=r)}()},4058:function(e,t,n){var r=n(4892),o=n(5450),i=n(3454),a=n(1146),u=n(7380),s=n(2833),l=Date.prototype.getTime;function c(e,t,n){var p=n||{};return!!(p.strict?i(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?p.strict?i(e,t):e==t:function(e,t,n){var i,p;if(typeof e!==typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var h=a(e),v=a(t);if(h!==v)return!1;if(h||v)return e.source===t.source&&u(e)===u(t);if(s(e)&&s(t))return l.call(e)===l.call(t);var y=d(e),m=d(t);if(y!==m)return!1;if(y||m){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!==typeof t)return!1;try{var g=r(e),b=r(t)}catch(w){return!1}if(g.length!==b.length)return!1;for(g.sort(),b.sort(),i=g.length-1;i>=0;i--)if(g[i]!=b[i])return!1;for(i=g.length-1;i>=0;i--)if(!c(e[p=g[i]],t[p],n))return!1;return!0}(e,t,p))}function f(e){return null===e||void 0===e}function d(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=c},7047:function(e,t,n){"use strict";var r=n(4892),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,s=u&&function(){var e={};try{for(var t in u(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),l=function(e,t,n,r){var o;(!(t in e)||"function"===typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(s?u(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var u=0;u<i.length;u+=1)l(e,i[u],t[i[u]],n[i[u]])};c.supportsDescriptors=!!s,e.exports=c},6145:function(e){"use strict";var t=Object,n=TypeError;e.exports=function(){if(null!=this&&this!==t(this))throw new n("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},7380:function(e,t,n){"use strict";var r=n(7047),o=n(9722),i=n(6145),a=n(7034),u=n(9068),s=o(i);r(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},7034:function(e,t,n){"use strict";var r=n(6145),o=n(7047).supportsDescriptors,i=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!o)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof/a/.dotAll)return e.get}return r}},9068:function(e,t,n){"use strict";var r=n(7047).supportsDescriptors,o=n(7034),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,u=TypeError,s=Object.getPrototypeOf,l=/a/;e.exports=function(){if(!r||!s)throw new u("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=s(l),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},8354:function(e,t,n){"use strict";var r=n(5318);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(3812));e.exports=t.default},3812:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},2910:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},7143:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var u=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},u.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},u.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},u.prototype.emit=function(e,t,r,o,i,a){var u=n?n+e:e;if(!this._events[u])return!1;var s,l,c=this._events[u],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];c.fn.apply(c.context,s)}else{var d,p=c.length;for(l=0;l<p;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,r);break;case 4:c[l].fn.call(c[l].context,t,r,o);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];c[l].fn.apply(c[l].context,s)}}return!0},u.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==t||o&&!u.once||r&&u.context!==r||a(this,i);else{for(var s=0,l=[],c=u.length;s<c;s++)(u[s].fn!==t||o&&!u[s].once||r&&u[s].context!==r)&&l.push(u[s]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u},222:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!==typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),u=[],s=0;s<a;s++)u.push("$"+s);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}},3350:function(e,t,n){"use strict";var r=n(222);e.exports=Function.prototype.bind||r},8446:function(e,t,n){var r=n(5154).parse;function o(e){return e.replace(/[\s,]+/g," ").trim()}var i={},a={};var u=!0;function s(e,t){var n=Object.prototype.toString.call(e);if("[object Array]"===n)return e.map((function(e){return s(e,t)}));if("[object Object]"!==n)throw new Error("Unexpected input.");t&&e.loc&&delete e.loc,e.loc&&(delete e.loc.startToken,delete e.loc.endToken);var r,o,i,a=Object.keys(e);for(r in a)a.hasOwnProperty(r)&&(o=e[a[r]],"[object Object]"!==(i=Object.prototype.toString.call(o))&&"[object Array]"!==i||(e[a[r]]=s(o,!0)));return e}var l=!1;function c(e){var t=o(e);if(i[t])return i[t];var n=r(e,{experimentalFragmentVariables:l});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=s(n=function(e){for(var t,n={},r=[],i=0;i<e.definitions.length;i++){var s=e.definitions[i];if("FragmentDefinition"===s.kind){var l=s.name.value,c=o((t=s.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(l)&&!a[l][c]?(u&&console.warn("Warning: fragment with name "+l+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[l][c]=!0):a.hasOwnProperty(l)||(a[l]={},a[l][c]=!0),n[c]||(n[c]=!0,r.push(s))}else r.push(s)}return e.definitions=r,e}(n),!1),i[t]=n,n}function f(){for(var e=Array.prototype.slice.call(arguments),t=e[0],n="string"===typeof t?t:t[0],r=1;r<e.length;r++)e[r]&&e[r].kind&&"Document"===e[r].kind?n+=e[r].loc.source.body:n+=e[r],n+=t[r];return c(n)}f.default=f,f.resetCaches=function(){i={},a={}},f.disableFragmentWarnings=function(){u=!1},f.enableExperimentalFragmentVariables=function(){l=!0},f.disableExperimentalFragmentVariables=function(){l=!1},e.exports=f},4566:function(e,t,n){"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},697:function(e,t,n){"use strict";var r=n.g.Symbol,o=n(3297);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},3297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},8316:function(e,t,n){"use strict";var r=n(3350);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2110:function(e,t,n){"use strict";var r=n(7441),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=s(t),v=s(n),y=0;y<a.length;++y){var m=a[y];if(!i[m]&&(!r||!r[m])&&(!v||!v[m])&&(!u||!u[m])){var g=d(n,m);try{l(t,m,g)}catch(b){}}}}return t}},5450:function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=n(4037)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},u=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=u?i:a},2833:function(e){"use strict";var t=Date.prototype.getDay,n=Object.prototype.toString,r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(r?function(e){try{return t.call(e),!0}catch(n){return!1}}(e):"[object Date]"===n.call(e))}},1146:function(e,t,n){"use strict";var r,o,i,a,u=n(4037),s=n(697)()&&"symbol"===typeof Symbol.toStringTag;if(s){r=u("Object.prototype.hasOwnProperty"),o=u("RegExp.prototype.exec"),i={};var l=function(){throw i};a={toString:l,valueOf:l},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=l)}var c=u("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!==typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(n){return n===i}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===c(e)}},1571:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5095:function(e,t,n){var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,v=Math.min,y=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function b(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function w(){var e=y();if(b(e))return x(e);u=setTimeout(w,function(e){var n=t-(e-s);return f?v(n,i-(e-l)):n}(e))}function x(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function k(){var e=y(),n=b(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(w,t),c?p(e):a}(s);if(f)return u=setTimeout(w,t),p(s)}return void 0===u&&(u=setTimeout(w,t)),a}return t=g(t)||0,m(n)&&(c=!!n.leading,i=(f="maxWait"in n)?h(g(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),k.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},k.flush=function(){return void 0===u?a:x(y())},k}},3881:function(e,t,n){var r="Expected a function",o=NaN,i="[object Symbol]",a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=Object.prototype.toString,v=Math.max,y=Math.min,m=function(){return p.Date.now()};function g(e,t,n){var o,i,a,u,s,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(r);function h(t){var n=o,r=i;return o=i=void 0,c=t,u=e.apply(r,n)}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function x(){var e=m();if(g(e))return k(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?y(n,a-(e-c)):n}(e))}function k(e){return s=void 0,p&&o?h(e):(o=i=void 0,u)}function _(){var e=m(),n=g(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),f?h(e):u}(l);if(d)return s=setTimeout(x,t),h(l)}return void 0===s&&(s=setTimeout(x,t)),u}return t=w(t)||0,b(n)&&(f=!!n.leading,a=(d="maxWait"in n)?v(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=i=s=void 0},_.flush=function(){return void 0===s?u:k(m())},_}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return o;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):u.test(e)?o:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return b(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),g(e,t,{leading:o,maxWait:t,trailing:i})}},908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),o=n(2747),i=n(6037),a=n(4154),u=n(7728);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8384:function(e,t,n){var r=n(3894),o=n(8699),i=n(4957),a=n(1740),u=n(7109);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),o=n(9255),i=n(9186),a=n(3423),u=n(3739);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),o=n(5774),i=n(1596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},2854:function(e,t,n){var r=n(8384),o=n(511),i=n(835),a=n(707),u=n(8832),s=n(5077);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=s,e.exports=l},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},3665:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4277:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},9055:function(e,t,n){var r=n(4842);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},2683:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},7538:function(e,t,n){var r=n(6478),o=n(4963),i=n(3629),a=n(5174),u=n(6800),s=n(9102),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&s(e),p=n||c||f||d,h=p?r(e.length,String):[],v=h.length;for(var y in e)!t&&!l.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v))||h.push(y);return h}},8950:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4622:function(e){e.exports=function(e){return e.split("")}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2526:function(e,t,n){var r=n(8528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},7927:function(e,t,n){var r=n(5358),o=n(7056)(r);e.exports=o},9863:function(e,t,n){var r=n(7927);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,o){return n=!!t(e,r,o)})),n}},3079:function(e,t,n){var r=n(152);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(void 0===s?u===u&&!r(u):n(u,s)))var s=u,l=a}return l}},7523:function(e,t,n){var r=n(7927);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},7989:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},5182:function(e,t,n){var r=n(1705),o=n(3529);e.exports=function e(t,n,i,a,u){var s=-1,l=t.length;for(i||(i=o),u||(u=[]);++s<l;){var c=t[s];n>0&&i(c)?n>1?e(c,n-1,i,a,u):r(u,c):a||(u[u.length]=c)}return u}},5099:function(e,t,n){var r=n(372)();e.exports=r},5358:function(e,t,n){var r=n(5099),o=n(2742);e.exports=function(e,t){return e&&r(e,t,o)}},8667:function(e,t,n){var r=n(3082),o=n(9793);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},1986:function(e,t,n){var r=n(1705),o=n(3629);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},9066:function(e,t,n){var r=n(7197),o=n(1587),i=n(3581),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},3114:function(e){e.exports=function(e,t){return e>t}},529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},4842:function(e,t,n){var r=n(7989),o=n(505),i=n(7167);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},5188:function(e,t,n){var r=n(692),o=n(9055),i=n(2683),a=n(8950),u=n(6194),s=n(75),l=Math.min;e.exports=function(e,t,n){for(var c=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),v=1/0,y=[];p--;){var m=e[p];p&&t&&(m=a(m,u(t))),v=l(m.length,v),h[p]=!n&&(t||f>=120&&m.length>=120)?new r(p&&m):void 0}m=e[0];var g=-1,b=h[0];e:for(;++g<f&&y.length<v;){var w=m[g],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?s(b,x):c(y,x,n))){for(p=d;--p;){var k=h[p];if(!(k?s(k,x):c(e[p],x,n)))continue e}b&&b.push(x),y.push(w)}}return y}},4906:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(9826),o=n(3141);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,u))}},9826:function(e,t,n){var r=n(2854),o=n(5305),i=n(2206),a=n(8078),u=n(9169),s=n(3629),l=n(5174),c=n(9102),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=s(e),b=s(t),w=g?d:u(e),x=b?d:u(t),k=(w=w==f?p:w)==p,_=(x=x==f?p:x)==p,O=w==x;if(O&&l(e)){if(!l(t))return!1;g=!0,k=!1}if(O&&!k)return m||(m=new r),g||c(e)?o(e,t,n,v,y,m):i(e,t,w,n,v,y,m);if(!(1&n)){var S=k&&h.call(e,"__wrapped__"),E=_&&h.call(t,"__wrapped__");if(S||E){var C=S?e.value():e,j=E?t.value():t;return m||(m=new r),y(C,j,n,v,m)}}return!!O&&(m||(m=new r),a(e,t,n,v,y,m))}},8856:function(e,t,n){var r=n(2854),o=n(1848);e.exports=function(e,t,n,i){var a=n.length,u=a,s=!i;if(null==e)return!u;for(e=Object(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<u;){var c=(l=n[a])[0],f=e[c],d=l[1];if(s&&l[2]){if(void 0===f&&!(c in e))return!1}else{var p=new r;if(i)var h=i(f,d,c,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},505:function(e){e.exports=function(e){return e!==e}},6703:function(e,t,n){var r=n(4786),o=n(257),i=n(8092),a=n(7907),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:u).test(a(e))}},8150:function(e,t,n){var r=n(9066),o=n(4635),i=n(3141),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},6025:function(e,t,n){var r=n(7080),o=n(9738),i=n(2100),a=n(3629),u=n(38);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},3654:function(e,t,n){var r=n(2936),o=n(8836),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2580:function(e){e.exports=function(e,t){return e<t}},3849:function(e,t,n){var r=n(7927),o=n(1473);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},7080:function(e,t,n){var r=n(8856),o=n(9091),i=n(284);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},9738:function(e,t,n){var r=n(1848),o=n(6181),i=n(5658),a=n(5823),u=n(5072),s=n(284),l=n(9793);e.exports=function(e,t){return a(e)&&u(t)?s(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},3226:function(e,t,n){var r=n(8950),o=n(8667),i=n(6025),a=n(3849),u=n(9179),s=n(6194),l=n(4480),c=n(2100),f=n(3629);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var d=-1;t=r(t,s(i));var p=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return u(p,(function(e,t){return l(e,t,n)}))}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var r=n(8667);e.exports=function(e){return function(t){return r(t,e)}}},7255:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=n(t((r-e)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=e,e+=o;return s}},8794:function(e,t,n){var r=n(2100),o=n(4262),i=n(9156);e.exports=function(e,t){return i(o(e,t,r),e+"")}},7532:function(e,t,n){var r=n(1547),o=n(8528),i=n(2100),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},2646:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},9204:function(e,t,n){var r=n(7927);e.exports=function(e,t){var n;return r(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}},9179:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:function(e,t,n){var r=n(7197),o=n(8950),i=n(3629),a=n(152),u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},821:function(e,t,n){var r=n(6050),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},9602:function(e,t,n){var r=n(692),o=n(9055),i=n(2683),a=n(75),u=n(7730),s=n(2230);e.exports=function(e,t,n){var l=-1,c=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,c=i;else if(f>=200){var v=t?null:u(e);if(v)return s(v);d=!1,c=a,h=new r}else h=t?[]:p;e:for(;++l<f;){var y=e[l],m=t?t(y):y;if(y=n||0!==y?y:0,d&&m===m){for(var g=h.length;g--;)if(h[g]===m)continue e;t&&h.push(m),p.push(y)}else c(h,m,n)||(h!==p&&h.push(m),p.push(y))}return p}},75:function(e){e.exports=function(e,t){return e.has(t)}},5600:function(e,t,n){var r=n(6279);e.exports=function(e){return r(e)?e:[]}},3082:function(e,t,n){var r=n(3629),o=n(5823),i=n(170),a=n(3518);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},9813:function(e,t,n){var r=n(2646);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},8558:function(e,t,n){var r=n(152);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e===e,a=r(e),u=void 0!==t,s=null===t,l=t===t,c=r(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!c&&e<t||c&&n&&i&&!o&&!a||s&&n&&i||!u&&i||!l)return-1}return 0}},4480:function(e,t,n){var r=n(8558);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,u=i.length,s=n.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=s?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},7056:function(e,t,n){var r=n(1473);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},372:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}},322:function(e,t,n){var r=n(9813),o=n(7302),i=n(7580),a=n(3518);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,u=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return u[e]()+s}}},5481:function(e,t,n){var r=n(6025),o=n(1473),i=n(2742);e.exports=function(e){return function(t,n,a){var u=Object(t);if(!o(t)){var s=r(n,3);t=i(t),n=function(e){return s(u[e],e,u)}}var l=e(t,n,a);return l>-1?u[s?t[l]:l]:void 0}}},6381:function(e,t,n){var r=n(7255),o=n(3195),i=n(1495);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},7730:function(e,t,n){var r=n(3924),o=n(9694),i=n(2230),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},8528:function(e,t,n){var r=n(8136),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},5305:function(e,t,n){var r=n(692),o=n(7897),i=n(75);e.exports=function(e,t,n,a,u,s){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,y=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var m=e[h],g=t[h];if(a)var b=l?a(g,m,h,t,e,s):a(m,g,h,e,t,s);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||u(m,e,n,a,s)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!u(m,g,n,a,s)){v=!1;break}}return s.delete(e),s.delete(t),v}},2206:function(e,t,n){var r=n(7197),o=n(6219),i=n(9231),a=n(5305),u=n(234),s=n(2230),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&r;if(p||(p=s),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,l,f,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var s=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!s)return!1;for(var f=c;f--;){var d=l[f];if(!(s?d in t:o.call(t,d)))return!1}var p=u.get(e),h=u.get(t);if(p&&h)return p==t&&h==e;var v=!0;u.set(e,t),u.set(t,e);for(var y=s;++f<c;){var m=e[d=l[f]],g=t[d];if(i)var b=s?i(g,m,d,t,e,u):i(m,g,d,e,t,u);if(!(void 0===b?m===g||a(m,g,n,i,u):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(e),u.delete(t),v}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),o=n(5918),i=n(2742);e.exports=function(e){return r(e,i,o)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},9091:function(e,t,n){var r=n(5072),o=n(2742);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},8136:function(e,t,n){var r=n(6703),o=n(40);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1137:function(e,t,n){var r=n(2709)(Object.getPrototypeOf,Object);e.exports=r},1587:function(e,t,n){var r=n(7197),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(s){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},5918:function(e,t,n){var r=n(4903),o=n(8174),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},9169:function(e,t,n){var r=n(908),o=n(5797),i=n(8319),a=n(3924),u=n(7091),s=n(9066),l=n(7907),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=l(r),y=l(o),m=l(i),g=l(a),b=l(u),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||u&&w(new u)!=p)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return h;case y:return c;case m:return f;case g:return d;case b:return p}return t}),e.exports=w},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},6417:function(e,t,n){var r=n(3082),o=n(4963),i=n(3629),a=n(6800),u=n(4635),s=n(9793);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var d=s(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&u(c)&&a(d,c)&&(i(e)||o(e))}},7302:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7728:function(e,t,n){var r=n(9620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3529:function(e,t,n){var r=n(7197),o=n(4963),i=n(3629),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},3195:function(e,t,n){var r=n(9231),o=n(1473),i=n(6800),a=n(8092);e.exports=function(e,t,n){if(!a(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&i(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},5823:function(e,t,n){var r=n(3629),o=n(152),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},5964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5072:function(e,t,n){var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},1740:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4086:function(e,t,n){var r=n(9676),o=n(8384),i=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var r=n(9151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=u},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},4262:function(e,t,n){var r=n(3665),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),s=Array(u);++a<u;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),r(e,this,l)}}},7009:function(e,t,n){var r=n(1032),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},9156:function(e,t,n){var r=n(7532),o=n(3197)(r);e.exports=o},3197:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),o=n(5797),i=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7167:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},7580:function(e,t,n){var r=n(4622),o=n(7302),i=n(2129);e.exports=function(e){return o(e)?i(e):r(e)}},170:function(e,t,n){var r=n(4634),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},9793:function(e,t,n){var r=n(152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},6050:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2129:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[i,a,u].join("|")+")"+l+s+")*"),f="(?:"+[i+r+"?",r,a,u,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+c,"g");e.exports=function(e){return e.match(d)||[]}},1547:function(e){e.exports=function(e){return function(){return e}}},8573:function(e,t,n){var r=n(8092),o=n(72),i=n(2582),a=Math.max,u=Math.min;e.exports=function(e,t,n){var s,l,c,f,d,p,h=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=s,r=l;return s=l=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-h>=c}function w(){var e=o();if(b(e))return x(e);d=setTimeout(w,function(e){var n=t-(e-p);return y?u(n,c-(e-h)):n}(e))}function x(e){return d=void 0,m&&s?g(e):(s=l=void 0,f)}function k(){var e=o(),n=b(e);if(s=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),v?g(e):f}(p);if(y)return clearTimeout(d),d=setTimeout(w,t),g(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,c=(y="maxWait"in n)?a(i(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=l=d=void 0},k.flush=function(){return void 0===d?f:x(o())},k}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},470:function(e,t,n){var r=n(4277),o=n(9863),i=n(6025),a=n(3629),u=n(3195);e.exports=function(e,t,n){var s=a(e)?r:o;return n&&u(e,t,n)&&(t=void 0),s(e,i(t,3))}},86:function(e,t,n){var r=n(4903),o=n(7523),i=n(6025),a=n(3629);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},1211:function(e,t,n){var r=n(5481)(n(1475));e.exports=r},1475:function(e,t,n){var r=n(7989),o=n(6025),i=n(9753),a=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var s=null==n?0:i(n);return s<0&&(s=a(u+s,0)),r(e,o(t,3),s)}},5008:function(e,t,n){var r=n(5182),o=n(2034);e.exports=function(e,t){return r(o(e,t),1)}},5506:function(e,t,n){var r=n(5182);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},6181:function(e,t,n){var r=n(8667);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},5658:function(e,t,n){var r=n(529),o=n(6417);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2100:function(e){e.exports=function(e){return e}},7753:function(e,t,n){var r=n(8950),o=n(5188),i=n(8794),a=n(5600),u=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},4963:function(e,t,n){var r=n(4906),o=n(3141),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),o=n(4635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},6279:function(e,t,n){var r=n(1473),o=n(3141);e.exports=function(e){return o(e)&&r(e)}},5127:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),o=n(9488),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},2066:function(e,t,n){var r=n(298);e.exports=function(e){return r(e)&&e!=+e}},5633:function(e){e.exports=function(e){return null==e}},298:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3977:function(e,t,n){var r=n(9066),o=n(1137),i=n(3141),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},6769:function(e,t,n){var r=n(9066),o=n(3629),i=n(3141);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},152:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),o=n(6194),i=n(9494),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},2742:function(e,t,n){var r=n(7538),o=n(3654),i=n(1473);e.exports=function(e){return i(e)?r(e):o(e)}},5727:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},2034:function(e,t,n){var r=n(8950),o=n(6025),i=n(3849),a=n(3629);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},7702:function(e,t,n){var r=n(2526),o=n(5358),i=n(6025);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},9627:function(e,t,n){var r=n(3079),o=n(3114),i=n(2100);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},8559:function(e,t,n){var r=n(3079),o=n(3114),i=n(6025);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},9151:function(e,t,n){var r=n(8059);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},6452:function(e,t,n){var r=n(3079),o=n(2580),i=n(2100);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},3638:function(e,t,n){var r=n(3079),o=n(6025),i=n(2580);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},9694:function(e){e.exports=function(){}},72:function(e,t,n){var r=n(7009);e.exports=function(){return r.Date.now()}},38:function(e,t,n){var r=n(9586),o=n(4084),i=n(5823),a=n(9793);e.exports=function(e){return i(e)?r(a(e)):o(e)}},6222:function(e,t,n){var r=n(6381)();e.exports=r},4064:function(e,t,n){var r=n(7897),o=n(6025),i=n(9204),a=n(3629),u=n(3195);e.exports=function(e,t,n){var s=a(e)?r:i;return n&&u(e,t,n)&&(t=void 0),s(e,o(t,3))}},4286:function(e,t,n){var r=n(5182),o=n(3226),i=n(8794),a=n(3195),u=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=u},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},3038:function(e,t,n){var r=n(8573),o=n(8092);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},1495:function(e,t,n){var r=n(2582),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},9753:function(e,t,n){var r=n(1495);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},2582:function(e,t,n){var r=n(821),o=n(8092),i=n(152),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},3518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},6339:function(e,t,n){var r=n(6025),o=n(9602);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},2085:function(e,t,n){var r=n(322)("toUpperCase");e.exports=r},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in i=Object(arguments[s]))n.call(i,l)&&(u[l]=i[l]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(u[a[c]]=i[a[c]])}}return u}},2592:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},3454:function(e,t,n){"use strict";var r=n(3349),o=n(9722),i=n(2592),a=n(3355),u=n(3118),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:u}),e.exports=s},3349:function(e,t,n){"use strict";var r=n(4892),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,s=u&&function(){var e={};try{for(var t in u(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),l=function(e,t,n,r){var o;(!(t in e)||"function"===typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(s?u(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var u=0;u<i.length;u+=1)l(e,i[u],t[i[u]],n[i[u]])};c.supportsDescriptors=!!s,e.exports=c},3355:function(e,t,n){"use strict";var r=n(2592);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},3118:function(e,t,n){"use strict";var r=n(3355),o=n(3349);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},1949:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(7635),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),l=u.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===i.call(e),r=a(e),u=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(u&&e.length>0&&!o.call(e,0))for(var v=0;v<e.length;++v)d.push(String(v));if(r&&e.length>0)for(var y=0;y<e.length;++y)d.push(String(y));else for(var m in e)h&&"prototype"===m||!o.call(e,m)||d.push(String(m));if(s)for(var g=function(e){if("undefined"===typeof window||!p)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!o.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},4892:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(7635),i=Object.keys,a=i?function(e){return i(e)}:n(1949),u=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?u(r.call(e)):u(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},7635:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8872:function(e){(function(){var t,n,r,o,i,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},888:function(e,t,n){"use strict";var r=n(9047);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5475:function(e,t,n){for(var r=n(8872),o="undefined"===typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],l=0;!u&&l<i.length;l++)u=o[i[l]+"Request"+a],s=o[i[l]+"Cancel"+a]||o[i[l]+"CancelRequest"+a];if(!u||!s){var c=0,f=0,d=[];u=function(e){if(0===d.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=n+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=function(){if(!e[n].cancelled)try{e[n].callback(c)}catch(t){setTimeout((function(){throw t}),0)}},n=0;n<e.length;n++)t()}),Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}},9513:function(e,t,n){!function(e,t,r,o,i,a,u,s,l,c,f,d,p,h,v,y,m,g,b,w,x,k,_,O,S,E,C,j,T,P,D,M,A,N,I,R,F,L,V,B,U,W,z,q,H,Y,$,K,Q,G,X,J,Z,ee,te,ne,re,oe,ie,ae,ue,se,le){"use strict";function ce(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var fe=ce(t),de=ce(o),pe=ce(i),he=ce(a),ve=ce(u),ye=ce(s),me=ce(l),ge=ce(c),be=ce(f),we=ce(d),xe=ce(p),ke=ce(y),_e=ce(m),Oe=ce(g),Se=ce(b),Ee=ce(w),Ce=ce(x),je=ce(k),Te=ce(_),Pe=ce(O),De=ce(S),Me=ce(E),Ae=ce(C),Ne=ce(j),Ie=ce(T),Re=ce(P),Fe=ce(D),Le=ce(M),Ve=ce(A),Be=ce(N),Ue=ce(I),We=ce(R),ze=ce(F),qe=ce(L),He=ce(V),Ye=ce(U),$e=ce(W),Ke=ce(z),Qe=ce(q),Ge=ce(H),Xe=ce(Y),Je=ce($),Ze=ce(G),et=ce(X),tt=ce(J),nt=ce(Z),rt=ce(ee),ot=ce(te),it=ce(ne),at=ce(re),ut=ce(oe),st=ce(ie),lt=ce(ae),ct=ce(ue),ft=ce(le);function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t&&ht(e.prototype,t),n&&ht(e,n),e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(){return(mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kt(e,t)}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kt(e,t){return(kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_t(e):t}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xt(e);if(t){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ot(this,n)}}function Et(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Tt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Pt={p:Tt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return jt(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",jt(o,t)).replace("{{time}}",Tt(i,t))}},Dt=12,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function At(e){var t=e?"string"==typeof e||e instanceof String?lt.default(e):ut.default(e):new Date;return It(t)?t:null}function Nt(e,t,n,r){var o=null,i=Jt(n)||Jt(Xt()),a=!0;return Array.isArray(t)?(t.forEach((function(t){var n=st.default(e,t,new Date,{locale:i});r&&(a=It(n)&&e===ve.default(n,t,{awareOfUnicodeTokens:!0})),It(n)&&a&&(o=n)})),o):(o=st.default(e,t,new Date,{locale:i}),r?a=It(o)&&e===ve.default(o,t,{awareOfUnicodeTokens:!0}):It(o)||(t=t.match(Mt).map((function(e){var t=e[0];return"p"===t||"P"===t?i?(0,Pt[t])(e,i.formatLong):t:e})).join(""),e.length>0&&(o=st.default(e,t.slice(0,e.length),new Date)),It(o)||(o=new Date(e))),It(o)&&a?o:null)}function It(e){return he.default(e)&&ot.default(e,new Date("1/1/1000"))}function Rt(e,t,n){if("en"===n)return ve.default(e,t,{awareOfUnicodeTokens:!0});var r=Jt(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Xt()&&Jt(Xt())&&(r=Jt(Xt())),ve.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Ft(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second,u=void 0===a?0:a;return Le.default(Fe.default(Re.default(e,u),i),r)}function Lt(e,t){var n=t&&Jt(t)||Xt()&&Jt(Xt());return De.default(e,n?{locale:n}:null)}function Vt(e,t){return Rt(e,"ddd",t)}function Bt(e){return $e.default(e)}function Ut(e,t){var n=Jt(t||Xt());return Ke.default(e,{locale:n})}function Wt(e){return Qe.default(e)}function zt(e){return Xe.default(e)}function qt(e){return Ge.default(e)}function Ht(e,t){return e&&t?nt.default(e,t):!e&&!t}function Yt(e,t){return e&&t?tt.default(e,t):!e&&!t}function $t(e,t){return e&&t?rt.default(e,t):!e&&!t}function Kt(e,t){return e&&t?et.default(e,t):!e&&!t}function Qt(e,t){return e&&t?Ze.default(e,t):!e&&!t}function Gt(e,t,n){var r,o=$e.default(t),i=Je.default(n);try{r=at.default(e,{start:o,end:i})}catch(e){r=!1}return r}function Xt(){return("undefined"!=typeof window?window:n.g).__localeId__}function Jt(e){if("string"==typeof e){var t="undefined"!=typeof window?window:n.g;return t.__localeData__?t.__localeData__[e]:null}return e}function Zt(e,t){return Rt(Ve.default(At(),e),"LLLL",t)}function en(e,t){return Rt(Ve.default(At(),e),"LLL",t)}function tn(e,t){return Rt(Be.default(At(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return Kt(e,t)}))||i&&!i.some((function(t){return Kt(e,t)}))||a&&!a(At(e))||!1}function rn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).excludeDates;return t&&t.some((function(t){return Kt(e,t)}))||!1}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return Yt(e,t)}))||i&&!i.some((function(t){return Yt(e,t)}))||a&&!a(At(e))||!1}function an(e,t,n,r){var o=Ne.default(e),i=Me.default(e),a=Ne.default(t),u=Me.default(t),s=Ne.default(r);return o===a&&o===s?i<=n&&n<=u:o<a?s===o&&i<=n||s===a&&u>=n||s<a&&s>o:void 0}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return $t(e,t)}))||i&&!i.some((function(t){return $t(e,t)}))||a&&!a(At(e))||!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return cn(new Date(e,0,1),{minDate:n,maxDate:r})||!1}function ln(e,t,n,r){var o=Ne.default(e),i=Ae.default(e),a=Ne.default(t),u=Ae.default(t),s=Ne.default(r);return o===a&&o===s?i<=n&&n<=u:o<a?s===o&&i<=n||s===a&&u>=n||s<a&&s>o:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&qe.default(e,n)<0||r&&qe.default(e,r)>0}function fn(e,t){return t.some((function(t){return je.default(t)===je.default(e)&&Ce.default(t)===Ce.default(e)}))}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&fn(e,n)||r&&!fn(e,r)||o&&!o(e)||!1}function pn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=At(),a=Le.default(Fe.default(i,Ce.default(e)),je.default(e)),u=Le.default(Fe.default(i,Ce.default(n)),je.default(n)),s=Le.default(Fe.default(i,Ce.default(r)),je.default(r));try{o=!at.default(a,{start:u,end:s})}catch(e){o=!1}return o}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Oe.default(e,1);return n&&He.default(n,o)>0||r&&r.every((function(e){return He.default(e,o)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=we.default(e,1);return n&&He.default(o,n)>0||r&&r.every((function(e){return He.default(o,e)>0}))||!1}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Se.default(e,1);return n&&Ye.default(n,o)>0||r&&r.every((function(e){return Ye.default(e,o)>0}))||!1}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=xe.default(e,1);return n&&Ye.default(o,n)>0||r&&r.every((function(e){return Ye.default(o,e)>0}))||!1}function gn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return qe.default(e,t)>=0}));return We.default(r)}return n?We.default(n):t}function bn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return qe.default(e,t)<=0}));return ze.default(r)}return n?ze.default(n):t}function wn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r<o;r++){var i=e[r];if(pe.default(i)){var a=Rt(i,"MM.dd.yyyy"),u=n.get(a)||[];u.includes(t)||(u.push(t),n.set(a,u))}else if("object"===dt(i)){var s=Object.keys(i),l=s[0],c=i[s[0]];if("string"==typeof l&&c.constructor===Array)for(var f=0,d=c.length;f<d;f++){var p=Rt(c[f],"MM.dd.yyyy"),h=n.get(p)||[];h.includes(l)||(h.push(l),n.set(p,h))}}}return n}function xn(e,t,n,r,o){for(var i=o.length,a=[],u=0;u<i;u++){var s=ye.default(me.default(e,je.default(o[u])),Ce.default(o[u])),l=ye.default(e,(n+1)*r);ot.default(s,t)&&it.default(s,l)&&a.push(o[u])}return a}function kn(e){return e<10?"0".concat(e):"".concat(e)}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt,n=Math.ceil(Ne.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function On(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,u=!0;n&&(u=Ne.default(n)<=a),r&&u&&(u=Ne.default(r)>=a),u&&o.push(a)}return o}var Sn=function(e){wt(n,e);var t=St(n);function n(e){var r;pt(this,n),yt(_t(r=t.call(this,e)),"renderOptions",(function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return fe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(_t(r),t)},e===t?fe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?Ne.default(r.props.minDate):null,o=r.props.maxDate?Ne.default(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),yt(_t(r),"onChange",(function(e){r.props.onChange(e)})),yt(_t(r),"handleClickOutside",(function(){r.props.onCancel()})),yt(_t(r),"shiftYears",(function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})})),yt(_t(r),"incrementYears",(function(){return r.shiftYears(1)})),yt(_t(r),"decrementYears",(function(){return r.shiftYears(-1)}));var o=e.yearDropdownItemNumber,i=e.scrollableYearDropdown,a=o||(i?10:5);return r.state={yearsList:On(r.props.year,a,r.props.minDate,r.props.maxDate)},r}return vt(n,[{key:"render",value:function(){var e=de.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return fe.default.createElement("div",{className:e},this.renderOptions())}}]),n}(fe.default.Component),En=ct.default(Sn),Cn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),yt(_t(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?Ne.default(e.props.minDate):1900,n=e.props.maxDate?Ne.default(e.props.maxDate):2100,r=[],o=t;o<=n;o++)r.push(fe.default.createElement("option",{key:o,value:o},o));return r})),yt(_t(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),yt(_t(e),"renderSelectMode",(function(){return fe.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),yt(_t(e),"renderReadView",(function(t){return fe.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},fe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),yt(_t(e),"renderDropdown",(function(){return fe.default.createElement(En,{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})})),yt(_t(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),yt(_t(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),yt(_t(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),yt(_t(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),yt(_t(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),yt(_t(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return vt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(fe.default.Component),jn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return fe.default.createElement("div",{className:e.props.month===n?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(_t(e),n)},e.props.month===n?fe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),yt(_t(e),"onChange",(function(t){return e.props.onChange(t)})),yt(_t(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return vt(n,[{key:"render",value:function(){return fe.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(fe.default.Component),Tn=ct.default(jn),Pn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),yt(_t(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return fe.default.createElement("option",{key:t,value:t},e)}))})),yt(_t(e),"renderSelectMode",(function(t){return fe.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),yt(_t(e),"renderReadView",(function(t,n){return fe.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},fe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),yt(_t(e),"renderDropdown",(function(t){return fe.default.createElement(Tn,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),yt(_t(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),yt(_t(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),yt(_t(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return vt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return en(e,t.props.locale)}:function(e){return Zt(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return fe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(fe.default.Component);function Dn(e,t){for(var n=[],r=Wt(e),o=Wt(t);!ot.default(r,o);)n.push(At(r)),r=we.default(r,1);return n}var Mn=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Ie.default(e),n=Ht(r.props.date,e)&&Yt(r.props.date,e);return fe.default.createElement("div",{className:n?"react-datepicker__month-year-option --selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(_t(r),t)},n?fe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Rt(e,r.props.dateFormat,r.props.locale))}))})),yt(_t(r),"onChange",(function(e){return r.props.onChange(e)})),yt(_t(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:Dn(r.props.minDate,r.props.maxDate)},r}return vt(n,[{key:"render",value:function(){var e=de.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return fe.default.createElement("div",{className:e},this.renderOptions())}}]),n}(fe.default.Component),An=ct.default(Mn),Nn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),yt(_t(e),"renderSelectOptions",(function(){for(var t=Wt(e.props.minDate),n=Wt(e.props.maxDate),r=[];!ot.default(t,n);){var o=Ie.default(t);r.push(fe.default.createElement("option",{key:o,value:o},Rt(t,e.props.dateFormat,e.props.locale))),t=we.default(t,1)}return r})),yt(_t(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),yt(_t(e),"renderSelectMode",(function(){return fe.default.createElement("select",{value:Ie.default(Wt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),yt(_t(e),"renderReadView",(function(t){var n=Rt(e.props.date,e.props.dateFormat,e.props.locale);return fe.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),yt(_t(e),"renderDropdown",(function(){return fe.default.createElement(An,{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})})),yt(_t(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),yt(_t(e),"onChange",(function(t){e.toggleDropdown();var n=At(parseInt(t));Ht(e.props.date,n)&&Yt(e.props.date,n)||e.props.onChange(n)})),yt(_t(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return vt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(fe.default.Component),In=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"dayEl",fe.default.createRef()),yt(_t(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),yt(_t(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),yt(_t(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),yt(_t(e),"isSameDay",(function(t){return Kt(e.props.day,t)})),yt(_t(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),yt(_t(e),"isDisabled",(function(){return nn(e.props.day,e.props)})),yt(_t(e),"isExcluded",(function(){return rn(e.props.day,e.props)})),yt(_t(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,o=n.highlightDates;if(!o)return!1;var i=Rt(r,"MM.dd.yyyy");return o.get(i)})),yt(_t(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&Gt(n,r,o)})),yt(_t(e),"isInSelectingRange",(function(){var t=e.props,n=t.day,r=t.selectsStart,o=t.selectsEnd,i=t.selectsRange,a=t.selectingDate,u=t.startDate,s=t.endDate;return!(!(r||o||i)||!a||e.isDisabled())&&(r&&s&&(it.default(a,s)||Qt(a,s))?Gt(n,a,s):(o&&u&&(ot.default(a,u)||Qt(a,u))||!(!i||!u||s||!ot.default(a,u)&&!Qt(a,u)))&&Gt(n,u,a))})),yt(_t(e),"isSelectingRangeStart",(function(){if(!e.isInSelectingRange())return!1;var t=e.props,n=t.day,r=t.selectingDate,o=t.startDate;return Kt(n,t.selectsStart?r:o)})),yt(_t(e),"isSelectingRangeEnd",(function(){if(!e.isInSelectingRange())return!1;var t=e.props,n=t.day,r=t.selectingDate,o=t.endDate;return Kt(n,t.selectsEnd?r:o)})),yt(_t(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&Kt(r,n)})),yt(_t(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&Kt(o,n)})),yt(_t(e),"isWeekend",(function(){var t=Te.default(e.props.day);return 0===t||6===t})),yt(_t(e),"isOutsideMonth",(function(){return void 0!==e.props.month&&e.props.month!==Me.default(e.props.day)})),yt(_t(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return de.default("react-datepicker__day",n,"react-datepicker__day--"+Vt(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSameDay(e.props.selected),"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.isSameDay(At()),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isOutsideMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),yt(_t(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,o=void 0===r?"Choose":r,i=t.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,u=e.isDisabled()||e.isExcluded()?a:o;return"".concat(u," ").concat(Rt(n,"PPPP"))})),yt(_t(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&Kt(o,r)?0:-1})),yt(_t(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),yt(_t(e),"renderDayContents",(function(){if(e.isOutsideMonth()){if(e.props.monthShowsDuplicateDaysEnd&&Pe.default(e.props.day)<10)return null;if(e.props.monthShowsDuplicateDaysStart&&Pe.default(e.props.day)>20)return null}return e.props.renderDayContents?e.props.renderDayContents(Pe.default(e.props.day),e.props.day):Pe.default(e.props.day)})),yt(_t(e),"render",(function(){return fe.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"button","aria-disabled":e.isDisabled()},e.renderDayContents())})),e}return vt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(fe.default.Component),Rn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return vt(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return fe.default.createElement("div",{className:de.default(o),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(fe.default.Component),Fn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),yt(_t(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),yt(_t(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),yt(_t(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):Lt(t)})),yt(_t(e),"renderDays",(function(){var t=Ut(e.props.day,e.props.locale),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var o=e.props.onWeekSelect?e.handleWeekClick.bind(_t(e),t,r):void 0;n.push(fe.default.createElement(Rn,{key:"W",weekNumber:r,onClick:o,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ge.default(t,n);return fe.default.createElement(In,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(_t(e),r),onMouseEnter:e.handleDayMouseEnter.bind(_t(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,includeDates:e.props.includeDates,highlightDates:e.props.highlightDates,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,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})})))})),e}return vt(n,[{key:"render",value:function(){return fe.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(fe.default.Component),Ln=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"MONTH_REFS",Et(Array(12)).map((function(){return fe.default.createRef()}))),yt(_t(e),"isDisabled",(function(t){return nn(t,e.props)})),yt(_t(e),"isExcluded",(function(t){return rn(t,e.props)})),yt(_t(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),yt(_t(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),yt(_t(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),yt(_t(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&Yt(Ve.default(r,t),o)})),yt(_t(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&$t(Be.default(r,t),o)})),yt(_t(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&Yt(Ve.default(r,t),i)})),yt(_t(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&$t(Be.default(r,t),i)})),yt(_t(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ge.default(t,6);return Yt(t,n)||Yt(r,n)})),yt(_t(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=Ut(Wt(e.props.day),e.props.locale),o=0,i=!1;t.push(fe.default.createElement(Fn,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:o,day:r,month:Me.default(e.props.day),onDayClick:e.handleDayClick,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,includeDates:e.props.includeDates,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,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,showWeekNumber:e.props.showWeekNumbers,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,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){o++,r=be.default(r,1);var a=n&&o>=6,u=!n&&!e.isWeekInMonth(r);if(a||u){if(!e.props.peekNextMonth)break;i=!0}}return t})),yt(_t(e),"onMonthClick",(function(t,n){e.handleDayClick(Wt(Ve.default(e.props.day,n)),t)})),yt(_t(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),yt(_t(e),"onMonthKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,we.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Oe.default(e.props.preSelection,1))}})),yt(_t(e),"onQuarterClick",(function(t,n){e.handleDayClick(qt(Be.default(e.props.day,n)),t)})),yt(_t(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,s=n.maxDate,l=n.preSelection,c=n.monthClassName,f=c?c(r):void 0;return de.default("react-datepicker__month-text","react-datepicker__month-".concat(t),f,{"react-datepicker__month--disabled":(u||s)&&on(Ve.default(r,t),e.props),"react-datepicker__month--selected":Me.default(r)===t&&Ne.default(r)===Ne.default(a),"react-datepicker__month-text--keyboard-selected":Me.default(l)===t,"react-datepicker__month--in-range":an(o,i,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t)})})),yt(_t(e),"getTabIndex",(function(t){var n=Me.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),yt(_t(e),"getAriaLabel",(function(t){var n=e.props,r=n.ariaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,u=n.day,s=Ve.default(u,t),l=e.isDisabled(s)||e.isExcluded(s)?a:o;return"".concat(l," ").concat(Rt(s,"MMMM yyyy"))})),yt(_t(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate,a=n.selected,u=n.minDate,s=n.maxDate;return de.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(u||s)&&un(Be.default(r,t),e.props),"react-datepicker__quarter--selected":Ae.default(r)===t&&Ne.default(r)===Ne.default(a),"react-datepicker__quarter--in-range":ln(o,i,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),yt(_t(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,i=t.locale;return(o?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return fe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return fe.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"button","aria-label":e.getAriaLabel(t)},n?Zt(t,i):en(t,i))})))}))})),yt(_t(e),"renderQuarters",(function(){return fe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,n){return fe.default.createElement("div",{key:n,onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t)},tn(t,e.props.locale))})))})),yt(_t(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,i=t.showMonthYearPicker,a=t.showQuarterYearPicker;return de.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":a})})),e}return vt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"month ":o;return fe.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(i," ").concat(Rt(r,"yyyy-MM"))},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(fe.default.Component),Vn=function(e){wt(n,e);var t=St(n);function n(){var e;pt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return yt(_t(e=t.call.apply(t,[this].concat(o))),"state",{height:null}),yt(_t(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&pn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props)||e.props.onChange(t)})),yt(_t(e),"liClasses",(function(t,n,r){var o=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.props.selected&&n===je.default(t)&&r===Ce.default(t)&&o.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&pn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props))&&o.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*je.default(t)+Ce.default(t))%e.props.intervals!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")})),yt(_t(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,o=Bt(At(e.props.selected)),i=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),u=e.props.selected||e.props.openToDate||At(),s=je.default(u),l=Ce.default(u),c=Le.default(Fe.default(o,l),s),f=0;f<i;f++){var d=ye.default(o,f*r);if(t.push(d),a){var p=xn(o,d,f,r,a);t=t.concat(p)}}return t.map((function(t,r){return fe.default.createElement("li",{key:r,onClick:e.handleClick.bind(_t(e),t),className:e.liClasses(t,s,l),ref:function(n){(it.default(t,c)||Qt(t,c))&&(e.centerLi=n)},tabIndex:"0"},Rt(t,n,e.props.locale))}))})),e}return vt(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return fe.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},fe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},fe.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),fe.default.createElement("div",{className:"react-datepicker__time"},fe.default.createElement("div",{className:"react-datepicker__time-box"},fe.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(fe.default.Component);yt(Vn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Bn=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),yt(_t(r),"isSameDay",(function(e,t){return Kt(e,t)})),yt(_t(r),"isKeyboardSelected",(function(e){var t=zt(Ue.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Kt(t,zt(r.props.selected))&&Kt(t,zt(r.props.preSelection))})),yt(_t(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(zt(Ue.default(n,t)),e)})),yt(_t(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,o=t.maxDate,i=t.selected;return de.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===Ne.default(i),"react-datepicker__year-text--disabled":(n||o)&&sn(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":e===Ne.default(At())})})),r}return vt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=_n(n.date,n.yearItemNumber),o=r.startPeriod,i=r.endPeriod,a=function(n){t.push(fe.default.createElement("div",{onClick:function(t){e.onYearClick(t,n)},className:e.getYearClassNames(n),key:n},n))},u=o;u<=i;u++)a(u);return fe.default.createElement("div",{className:"react-datepicker__year"},fe.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(fe.default.Component),Un=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),yt(_t(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,o=t.timeString,i=t.customTimeInput;return i?fe.default.cloneElement(i,{date:n,value:e,onChange:r.onTimeChange}):fe.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})})),r.state={time:r.props.timeString},r}return vt(n,[{key:"render",value:function(){return fe.default.createElement("div",{className:"react-datepicker__input-time-container"},fe.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),fe.default.createElement("div",{className:"react-datepicker-time__input-container"},fe.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(fe.default.Component);function Wn(e){var t=e.className,n=e.children,r=e.showPopperArrow,o=e.arrowProps,i=void 0===o?{}:o;return fe.default.createElement("div",{className:t},r&&fe.default.createElement("div",mt({className:"react-datepicker__triangle"},i)),n)}var zn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],qn=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),yt(_t(r),"setClickOutsideRef",(function(){return r.containerRef.current})),yt(_t(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return zn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),yt(_t(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=gn(r.props),a=bn(r.props),u=At();return o||n||t||(i&&it.default(u,i)?i:a&&ot.default(u,a)?a:u)})),yt(_t(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:we.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),yt(_t(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:Oe.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),yt(_t(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),yt(_t(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),yt(_t(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),yt(_t(r),"handleYearChange",(function(e){r.props.onYearChange&&r.props.onYearChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),yt(_t(r),"handleMonthChange",(function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),yt(_t(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),yt(_t(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ue.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),yt(_t(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Ve.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),yt(_t(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ue.default(Ve.default(n,Me.default(e)),Ne.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),yt(_t(r),"header",(function(){var e=Ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale),t=[];return r.props.showWeekNumbers&&t.push(fe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ge.default(e,t),o=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return fe.default.createElement("div",{key:t,className:de.default("react-datepicker__day-name",i)},o)})))})),yt(_t(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Rt(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Rt(e,"EEE",t)}(e,t):function(e,t){return Rt(e,"EEEEEE",t)}(e,t)})),yt(_t(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Se.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),yt(_t(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=yn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?Dt:r,i=_n(zt(Se.default(e,o)),o).endPeriod,a=n&&Ne.default(n);return a&&a>i||!1}(r.state.date,r.props);break;default:e=hn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.previousMonthAriaLabel,u=void 0===a?"Previous Month":a,s=i.previousYearAriaLabel,l=void 0===s?"Previous Year":s;return fe.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,"aria-label":o?l:u},o?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel)}}})),yt(_t(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:xe.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),yt(_t(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=mn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?Dt:r,i=_n(xe.default(e,o),o).startPeriod,a=n&&Ne.default(n);return a&&a<i||!1}(r.state.date,r.props);break;default:e=vn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var o=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,a=i.nextMonthAriaLabel,u=void 0===a?"Next Month":a,s=i.nextYearAriaLabel,l=void 0===s?"Next Year":s;return fe.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,"aria-label":o?l:u},o?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel)}}})),yt(_t(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),fe.default.createElement("div",{className:t.join(" ")},Rt(e,r.props.dateFormat,r.props.locale))})),yt(_t(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return fe.default.createElement(Cn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Ne.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),yt(_t(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return fe.default.createElement(Pn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Me.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),yt(_t(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return fe.default.createElement(Nn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),yt(_t(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return fe.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect($e.default(At()),e)}},r.props.todayButton)})),yt(_t(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return fe.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),fe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),fe.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),yt(_t(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return null;var o=hn(r.state.date,r.props),i=vn(r.state.date,r.props),a=yn(r.state.date,r.props),u=mn(r.state.date,r.props),s=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(bt(bt({},r.state),{},{customHeaderCount:n,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:u})),s&&fe.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),yt(_t(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,o=_n(e,t.yearItemNumber),i=o.startPeriod,a=o.endPeriod;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(a):Ne.default(e))})),yt(_t(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),yt(_t(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=Oe.default(r.state.date,t),o=0;o<r.props.monthsShown;++o){var i=o-r.props.monthSelectedIn,a=we.default(n,i),u="month-".concat(o),s=o<r.props.monthsShown-1,l=o>0;e.push(fe.default.createElement("div",{key:u,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:a,i:o}),fe.default.createElement(Ln,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,onChange:r.changeMonthYear,day:a,dayClassName:r.props.dayClassName,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:o,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:s,monthShowsDuplicateDaysStart:l})))}return e}})),yt(_t(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?fe.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),fe.default.createElement(Bn,mt({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),yt(_t(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return fe.default.createElement(Vn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,showTimeSelectOnly:r.props.showTimeSelectOnly})})),yt(_t(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=It(e)&&Boolean(r.props.selected)?"".concat(kn(e.getHours()),":").concat(kn(e.getMinutes())):"";if(r.props.showTimeInput)return fe.default.createElement(Un,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),r.containerRef=fe.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return vt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Kt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Kt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Wn;return fe.default.createElement("div",{ref:this.containerRef},fe.default.createElement(e,{className:de.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Dt}}}]),n}(fe.default.Component),Hn=function(e){return!e.disabled&&-1!==e.tabIndex},Yn=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Hn)})),yt(_t(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),yt(_t(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=fe.default.createRef(),r}return vt(n,[{key:"render",value:function(){return this.props.enableTabLoop?fe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},fe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,fe.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(fe.default.Component),$n=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return vt(n,[{key:"componentDidMount",value:function(){this.portalRoot=document.getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),document.body.appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ft.default.createPortal(this.props.children,this.el)}}]),n}(fe.default.Component),Kn=function(e){wt(n,e);var t=St(n);function n(){return pt(this,n),t.apply(this,arguments)}return vt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,i=t.popperComponent,a=t.popperModifiers,u=t.popperPlacement,s=t.popperProps,l=t.targetComponent,c=t.enableTabLoop,f=t.popperOnKeyDown,d=t.portalId;if(!o){var p=de.default("react-datepicker-popper",n);e=fe.default.createElement(se.Popper,mt({modifiers:a,placement:u},s),(function(e){var t=e.ref,n=e.style,r=e.placement,o=e.arrowProps;return fe.default.createElement(Yn,{enableTabLoop:c},fe.default.createElement("div",{ref:t,style:n,className:p,"data-placement":r,onKeyDown:f},fe.default.cloneElement(i,{arrowProps:o})))}))}this.props.popperContainer&&(e=fe.default.createElement(this.props.popperContainer,{},e)),d&&!o&&(e=fe.default.createElement($n,{portalId:d},e));var h=de.default("react-datepicker-wrapper",r);return fe.default.createElement(se.Manager,{className:"react-datepicker-manager"},fe.default.createElement(se.Reference,null,(function(e){var t=e.ref;return fe.default.createElement("div",{ref:t,className:h},l)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperProps:{},popperPlacement:"bottom-start"}}}]),n}(fe.default.Component),Qn="react-datepicker-ignore-onclickoutside",Gn=ct.default(qn),Xn="Date input not valid.",Jn=function(e){wt(n,e);var t=St(n);function n(e){var r;return pt(this,n),yt(_t(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:At()})),yt(_t(r),"calcInitialState",(function(){var e=r.getPreSelection(),t=gn(r.props),n=bn(r.props),o=t&&it.default(e,t)?t:n&&ot.default(e,n)?n:e;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:r.props.selected?r.props.selected:o,highlightDates:wn(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),yt(_t(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),yt(_t(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),yt(_t(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),yt(_t(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:er},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),yt(_t(r),"inputOk",(function(){return pe.default(r.state.preSelection)})),yt(_t(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),yt(_t(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),yt(_t(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),yt(_t(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),yt(_t(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),yt(_t(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),yt(_t(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),yt(_t(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(_t(r),t),"function"==typeof o.isDefaultPrevented&&!o.isDefaultPrevented())){r.setState({inputValue:o.target.value,lastPreSelectChange:Zn});var i=Nt(o.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing);!i&&o.target.value||r.setSelected(i,o,!0)}})),yt(_t(r),"handleSelect",(function(e,t,n){r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(e):r.props.inline||r.setOpen(!1)})),yt(_t(r),"setSelected",(function(e,t,n,o){var i=e;if(null===i||!nn(i,r.props)){var a=r.props,u=a.onChange,s=a.selectsRange,l=a.startDate,c=a.endDate;if(!Qt(r.props.selected,i)||r.props.allowSameDay||s)if(null!==i&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(i=Ft(i,{hour:je.default(r.props.selected),minute:Ce.default(r.props.selected),second:Ee.default(r.props.selected)})),r.props.inline||r.setState({preSelection:i}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),s){var f=l&&c;l||c?l&&!c&&(it.default(i,l)?u([i,null],t):u([l,i],t)):u([i,null],t),f&&u([i,null],t)}else u(i,t);n||(r.props.onSelect(i,t),r.setState({inputValue:null}))}})),yt(_t(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,o=!0;e&&(t&&n?o=Gt(e,r.props.minDate,r.props.maxDate):t?o=ot.default(e,r.props.minDate):n&&(o=it.default(e,r.props.maxDate))),o&&r.setState({preSelection:e})})),yt(_t(r),"handleTimeChange",(function(e){var t=Ft(r.props.selected?r.props.selected:r.getPreSelection(),{hour:je.default(e),minute:Ce.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})})),yt(_t(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),yt(_t(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var o=At(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===er?(r.handleSelect(o,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(o)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:Xn})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),yt(_t(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=At(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:Xn});else if(!r.props.disabledKeyboardNavigation){var o;switch(t){case"ArrowLeft":o=ke.default(n,1);break;case"ArrowRight":o=ge.default(n,1);break;case"ArrowUp":o=_e.default(n,1);break;case"ArrowDown":o=be.default(n,1);break;case"PageUp":o=Oe.default(n,1);break;case"PageDown":o=we.default(n,1);break;case"Home":o=Se.default(n,1);break;case"End":o=xe.default(n,1)}if(!o)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:Xn}));if(e.preventDefault(),r.setState({lastPreSelectChange:er}),r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o),r.props.inline){var i=Me.default(n),a=Me.default(o),u=Ne.default(n),s=Ne.default(o);i!==a||u!==s?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),yt(_t(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),yt(_t(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.onChange(null,e),r.setState({inputValue:null})})),yt(_t(r),"clear",(function(){r.onClearClick()})),yt(_t(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),yt(_t(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?fe.default.createElement(Gn,{ref:function(e){r.calendar=e},locale:r.props.locale,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:Qn,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),yt(_t(r),"renderDateInput",(function(){var e,t,n,o,i,a=de.default(r.props.className,yt({},Qn,r.state.open)),u=r.props.customInput||fe.default.createElement("input",{type:"text"}),s=r.props.customInputRef||"ref",l="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:(t=r.props.selected,o=(n=r.props).dateFormat,i=n.locale,t&&Rt(t,Array.isArray(o)?o[0]:o,i)||"");return fe.default.cloneElement(u,(yt(e={},s,(function(e){r.input=e})),yt(e,"value",l),yt(e,"onBlur",r.handleBlur),yt(e,"onChange",r.handleChange),yt(e,"onClick",r.onInputClick),yt(e,"onFocus",r.handleFocus),yt(e,"onKeyDown",r.onInputKeyDown),yt(e,"id",r.props.id),yt(e,"name",r.props.name),yt(e,"autoFocus",r.props.autoFocus),yt(e,"placeholder",r.props.placeholderText),yt(e,"disabled",r.props.disabled),yt(e,"autoComplete",r.props.autoComplete),yt(e,"className",de.default(u.props.className,a)),yt(e,"title",r.props.title),yt(e,"readOnly",r.props.readOnly),yt(e,"required",r.props.required),yt(e,"tabIndex",r.props.tabIndex),yt(e,"aria-describedby",r.props.ariaDescribedBy),yt(e,"aria-invalid",r.props.ariaInvalid),yt(e,"aria-labelledby",r.props.ariaLabelledBy),yt(e,"aria-required",r.props.ariaRequired),e))})),yt(_t(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,o=e.clearButtonTitle,i=e.ariaLabelClose,a=void 0===i?"Close":i;return t&&null!=n?fe.default.createElement("button",{type:"button",className:"react-datepicker__close-icon","aria-label":a,onClick:r.onClearClick,title:o,tabIndex:-1}):null})),r.state=r.calcInitialState(),r}return vt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Me.default(n)!==Me.default(r)||Ne.default(n)!==Ne.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:wn(this.props.highlightDates)}),t.focused||Qt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"render",value:function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?fe.default.createElement("div",null,this.props.inline?null:fe.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?fe.default.createElement("div",{className:"react-datepicker__portal"},e):null):fe.default.createElement(Kn,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,popperModifiers:this.props.popperModifiers,targetComponent:fe.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{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,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Dt,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null}}}]),n}(fe.default.Component),Zn="input",er="navigate";e.CalendarContainer=Wn,e.default=Jn,e.getDefaultLocale=Xt,e.registerLocale=function(e,t){var r="undefined"!=typeof window?window:n.g;r.__localeData__||(r.__localeData__={}),r.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:n.g).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2791),n(2007),n(1694),n(6704),n(5464),n(3199),n(1145),n(7152),n(7316),n(9780),n(3440),n(6356),n(1954),n(2514),n(2585),n(6),n(8583),n(2437),n(9048),n(3608),n(2229),n(3124),n(4650),n(8750),n(158),n(3068),n(2070),n(2045),n(993),n(8197),n(9304),n(3482),n(8383),n(2730),n(1873),n(8982),n(9439),n(5075),n(4827),n(6238),n(560),n(6973),n(7090),n(5655),n(5605),n(4322),n(1621),n(3512),n(3554),n(2445),n(8023),n(1176),n(1975),n(4900),n(3107),n(8753),n(969),n(6058),n(8603),n(11),n(1138),n(4164))},4463:function(e,t,n){"use strict";var r=n(2791),o=n(1725),i=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var u=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,_=60106,O=60107,S=60108,E=60114,C=60109,j=60110,T=60112,P=60113,D=60120,M=60115,A=60116,N=60121,I=60128,R=60129,F=60130,L=60131;if("function"===typeof Symbol&&Symbol.for){var V=Symbol.for;k=V("react.element"),_=V("react.portal"),O=V("react.fragment"),S=V("react.strict_mode"),E=V("react.profiler"),C=V("react.provider"),j=V("react.context"),T=V("react.forward_ref"),P=V("react.suspense"),D=V("react.suspense_list"),M=V("react.memo"),A=V("react.lazy"),N=V("react.block"),V("react.scope"),I=V("react.opaque.id"),R=V("react.debug_trace_mode"),F=V("react.offscreen"),L=V("react.legacy_hidden")}var B,U="function"===typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function z(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var q=!1;function H(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=u);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function Y(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case O:return"Fragment";case _:return"Portal";case E:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return $(e.type);case N:return $(e._render);case A:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function le(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ve,ye=(ve=function(e,t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Oe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Ce=null,je=null;function Te(e){if(e=no(e)){if("function"!==typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=oo(t),Ee(e.stateNode,e.type,t))}}function Pe(e){Ce?je?je.push(e):je=[e]:Ce=e}function De(){if(Ce){var e=Ce,t=je;if(je=Ce=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Me(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function Ne(){}var Ie=Me,Re=!1,Fe=!1;function Le(){null===Ce&&null===je||(Ne(),De())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(ve){Be=!1}function We(e,t,n,r,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var ze=!1,qe=null,He=!1,Ye=null,$e={onError:function(e){ze=!0,qe=e}};function Ke(e,t,n,r,o,i,a,u,s){ze=!1,qe=null,We.apply($e,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Qe(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,ut=null,st=null,lt=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,o,i),null!==t&&(null!==(t=no(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function yt(e){var t=to(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){mt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&mt(at)&&(at=null),null!==ut&&mt(ut)&&(ut=null),null!==st&&mt(st)&&(st=null),lt.forEach(gt),ct.forEach(gt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function xt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==ut&&wt(ut,e),null!==st&&wt(st,e),lt.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)yt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Ot={},St={};function Et(e){if(Ot[e])return Ot[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Ot[e]=n[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Ct=Et("animationend"),jt=Et("animationiteration"),Tt=Et("animationstart"),Pt=Et("transitionend"),Dt=new Map,Mt=new Map,At=["abort","abort",Ct,"animationEnd",jt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Mt.set(r,t),Dt.set(r,o),l(o,[r])}}(0,i.unstable_now)();var It=8;function Rt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,u=e.pingedLanes;if(0!==i)r=i,o=It=15;else if(0!==(i=134217727&n)){var s=i&~a;0!==s?(r=Rt(s),o=It):0!==(u&=i)&&(r=Rt(u),o=It)}else 0!==(i=n&~a)?(r=Rt(i),o=It):0!==u&&(r=Rt(u),o=It);if(0===r)return 0;if(r=n&((0>(r=31-zt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Rt(t),o<=It)return t;It=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-zt(t)),r|=e[n],t&=~o;return r}function Lt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Vt(10,t):e;case 10:return 0===(e=Bt(192&~t))?Vt(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-zt(t)]=n}var zt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Ht|0)|0},qt=Math.log,Ht=Math.LN2;var Yt=i.unstable_UserBlockingPriority,$t=i.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Re||Ne();var o=Xt,i=Re;Re=!0;try{Ae(o,e,t,n,r)}finally{(Re=i)||Le()}}function Gt(e,t,n,r){$t(Yt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if(Kt)if((o=0===(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=vt(at,e,t,n,r,o),!0;case"dragenter":return ut=vt(ut,e,t,n,r,o),!0;case"mouseover":return st=vt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lt.set(i,vt(lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,vt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Nr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Se(r);if(null!==(o=to(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ge(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nr(e,t,r,o,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function un(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,ln,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=un(fn),pn=o({},fn,{view:0,detail:0}),hn=un(pn),vn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),yn=un(vn),mn=un(o({},vn,{dataTransfer:0})),gn=un(o({},pn,{relatedTarget:0})),bn=un(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=un(wn),kn=un(o({},fn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var jn=o({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=un(jn),Pn=un(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=un(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Mn=un(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=un(An),In=[9,13,27,32],Rn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var Ln=f&&"TextEvent"in window&&!Fn,Vn=f&&(!Rn||Fn&&8<Fn&&11>=Fn),Bn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Pe(r),0<(t=Rr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Qn=null;function Gn(e){jr(e,0)}function Xn(e){if(X(ro(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Kn&&(Kn.detachEvent("onpropertychange",or),Qn=Kn=null)}function or(e){if("value"===e.propertyName&&Xn(Qn)){var t=[];if($n(t,Qn,e,Se(e)),e=Gn,Re)e(t);else{Re=!0;try{Me(e,t)}finally{Re=!1,Le()}}}}function ir(e,t,n){"focusin"===e?(rr(),Qn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Qn)}function ur(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},cr=Object.prototype.hasOwnProperty;function fr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,wr=null,xr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==gr||gr!==J(r)||("selectionStart"in(r=gr)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&fr(wr,r)||(wr=r,0<(r=Rr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Nt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(At,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Or=0;Or<_r.length;Or++)Mt.set(_r[Or],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,u,s,l){if(Ke.apply(this,arguments),ze){if(!ze)throw Error(a(198));var c=qe;ze=!1,qe=null,He||(He=!0,Ye=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;Cr(o,u,l),i=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;Cr(o,u,l),i=s}}}if(He)throw e=Ye,He=!1,Ye=null,e}function Tr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Ar(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Dr(e){e[Pr]||(e[Pr]=!0,u.forEach((function(t){Er.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=io(i),u=e+"__"+(t?"capture":"bubble");a.has(u)||(t&&(o|=4),Ar(i,e,o,t),a.add(u))}function Ar(e,t,n,r){var o=Mt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Gt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=to(u)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Ie(e,t,n)}finally{Fe=!1,Le()}}((function(){var r=i,o=Se(n),a=[];e:{var u=Dt.get(e);if(void 0!==u){var s=dn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":l="focus",s=gn;break;case"focusout":l="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Dn;break;case Ct:case jt:case Tt:s=bn;break;case Pt:s=Mn;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Ve(h,d))&&c.push(Ir(h,v,p)))),f)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,o),a.push({event:u,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!to(l)&&!l[Zr])&&(s||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?to(l):null)&&(l!==(f=Qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=yn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?u:ro(s),p=null==l?u:ro(l),(u=new c(v,h+"leave",s,n,o)).target=f,u.relatedTarget=p,v=null,to(o)===r&&((c=new c(d,h+"enter",l,n,o)).target=p,c.relatedTarget=f,v=c),f=v,s&&l)e:{for(d=l,h=0,p=c=s;p;p=Fr(p))h++;for(p=0,v=d;v;v=Fr(v))p++;for(;0<h-p;)c=Fr(c),h--;for(;0<p-h;)d=Fr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Fr(c),d=Fr(d)}c=null}else c=null;null!==s&&Lr(a,u,s,c,!1),null!==l&&null!==f&&Lr(a,f,l,c,!0)}if("select"===(s=(u=r?ro(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Jn;else if(Yn(u))if(Zn)y=sr;else{y=ar;var m=ir}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ur);switch(y&&(y=y(e,r))?$n(a,y,n,o):(m&&m(e,u,r),"focusout"===e&&(m=u._wrapperState)&&m.controlled&&"number"===u.type&&oe(u,"number",u.value)),m=r?ro(r):window,e){case"focusin":(Yn(m)||"true"===m.contentEditable)&&(gr=m,br=r,wr=null);break;case"focusout":wr=br=gr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,kr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":kr(a,n,o)}var g;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Vn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,qn=!0)),0<(m=Rr(r,b)).length&&(b=new kn(b,e,null,n,o),a.push({event:b,listeners:m}),g?b.data=g:null!==(g=zn(n))&&(b.data=g))),(g=Ln?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Rn&&Wn(e,t)?(e=nn(),tn=en=Zt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Rr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}jr(a,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ve(e,n))&&r.unshift(Ir(e,i,o)),null!=(i=Ve(e,t))&&r.push(Ir(e,i,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,o?null!=(s=Ve(n,i))&&a.unshift(Ir(n,s,u)):o||null!=(s=Ve(n,i))&&a.push(Ir(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Vr(){}var Br=null,Ur=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"===typeof setTimeout?setTimeout:void 0,Hr="function"===typeof clearTimeout?clearTimeout:void 0;function Yr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var Gr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Gr,Jr="__reactProps$"+Gr,Zr="__reactContainer$"+Gr,eo="__reactEvents$"+Gr;function to(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Xr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function no(e){return!(e=e[Xr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oo(e){return e[Jr]||null}function io(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var ao=[],uo=-1;function so(e){return{current:e}}function lo(e){0>uo||(e.current=ao[uo],ao[uo]=null,uo--)}function co(e,t){uo++,ao[uo]=e.current,e.current=t}var fo={},po=so(fo),ho=so(!1),vo=fo;function yo(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function go(){lo(ho),lo(po)}function bo(e,t,n){if(po.current!==fo)throw Error(a(168));co(po,t),co(ho,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,$(t)||"Unknown",i));return o({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,vo=po.current,co(po,e),co(ho,ho.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,vo),r.__reactInternalMemoizedMergedChildContext=e,lo(ho),lo(po),co(po,e)):lo(ho),co(ho,n)}var _o=null,Oo=null,So=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,jo=i.unstable_shouldYield,To=i.unstable_requestPaint,Po=i.unstable_now,Do=i.unstable_getCurrentPriorityLevel,Mo=i.unstable_ImmediatePriority,Ao=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,Fo={},Lo=void 0!==To?To:function(){},Vo=null,Bo=null,Uo=!1,Wo=Po(),zo=1e4>Wo?Po:function(){return Po()-Wo};function qo(){switch(Do()){case Mo:return 99;case Ao:return 98;case No:return 97;case Io:return 96;case Ro:return 95;default:throw Error(a(332))}}function Ho(e){switch(e){case 99:return Mo;case 98:return Ao;case 97:return No;case 96:return Io;case 95:return Ro;default:throw Error(a(332))}}function Yo(e,t){return e=Ho(e),So(e,t)}function $o(e,t,n){return e=Ho(e),Eo(e,t,n)}function Ko(){if(null!==Bo){var e=Bo;Bo=null,Co(e)}Qo()}function Qo(){if(!Uo&&null!==Vo){Uo=!0;var e=0;try{var t=Vo;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Vo=null}catch(n){throw null!==Vo&&(Vo=Vo.slice(e+1)),Eo(Mo,Ko),n}finally{Uo=!1}}}var Go=x.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=so(null),Zo=null,ei=null,ti=null;function ni(){ti=ei=Zo=null}function ri(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){Zo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ra=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Zo)throw Error(a(308));ei=t,Zo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ui=!1;function si(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function di(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(e,t,n,r){var i=e.updateQueue;ui=!1;var a=i.firstBaseUpdate,u=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===u?a=c:u.next=c,u=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==a){for(d=i.baseState,u=0,f=c=l=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(s=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=v.payload)?h.call(p,d,s):h)||void 0===s)break e;d=o({},d,s);break e;case 2:ui=!0}}null!==a.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,l=d):f=f.next=p,u|=s;if(null===(a=a.next)){if(null===(s=i.shared.pending))break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var vi=(new r.Component).refs;function yi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),i=ci(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),hs(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),i=ci(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),hs(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ds(),r=ps(e),o=ci(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),fi(e,o),hs(e,r,n)}};function gi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(o,i))}function bi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"===typeof i&&null!==i?i=ai(i):(o=mo(t)?vo:po.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?yo(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=vi,si(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=ai(i):(i=mo(t)?vo:po.current,o.context=yo(e,i)),pi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(yi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),pi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===vi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ys(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Gs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=$s(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Ks(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Gs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=$s(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case _:return(t=Xs(t,e.mode,n)).return=e,t}if(ki(t)||W(t))return(t=Ks(t,e.mode,n,null)).return=e,t;Oi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?n.type===O?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case _:return n.key===o?c(e,t,n,r):null}if(ki(n)||W(n))return null!==o?null:f(e,t,n,r,null);Oi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===O?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||W(r))return f(t,e=e.get(n)||null,r,o,null);Oi(t,r)}return null}function v(o,a,u,s){for(var l=null,c=null,f=a,v=a=0,y=null;null!==f&&v<u.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var m=p(o,f,u[v],s);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,v),null===c?l=m:c.sibling=m,c=m,f=y}if(v===u.length)return n(o,f),l;if(null===f){for(;v<u.length;v++)null!==(f=d(o,u[v],s))&&(a=i(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(o,f);v<u.length;v++)null!==(y=h(f,o,v,u[v],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=i(y,a,v),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),l}function y(o,u,s,l){var c=W(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,v=u,y=u=0,m=null,g=s.next();null!==v&&!g.done;y++,g=s.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=p(o,v,g.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(o,v),u=i(b,u,y),null===f?c=b:f.sibling=b,f=b,v=m}if(g.done)return n(o,v),c;if(null===v){for(;!g.done;y++,g=s.next())null!==(g=d(o,g.value,l))&&(u=i(g,u,y),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(o,v);!g.done;y++,g=s.next())null!==(g=h(v,o,y,g.value,l))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),u=i(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(o,e)})),c}return function(e,r,i,s){var l="object"===typeof i&&null!==i&&i.type===O&&null===i.key;l&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(i.type===O){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=_i(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===O?((r=Ks(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=$s(i.type,i.key,i.props,null,e.mode,s)).ref=_i(e,r,i),s.return=e,e=s)}return u(e);case _:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xs(i,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Gs(i,e.mode,s)).return=e,e=r),u(e);if(ki(i))return v(e,r,i,s);if(W(i))return y(e,r,i,s);if(c&&Oi(e,i),"undefined"===typeof i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var Ei=Si(!0),Ci=Si(!1),ji={},Ti=so(ji),Pi=so(ji),Di=so(ji);function Mi(e){if(e===ji)throw Error(a(174));return e}function Ai(e,t){switch(co(Di,t),co(Pi,e),co(Ti,ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ti),co(Ti,t)}function Ni(){lo(Ti),lo(Pi),lo(Di)}function Ii(e){Mi(Di.current);var t=Mi(Ti.current),n=pe(t,e.type);t!==n&&(co(Pi,e),co(Ti,n))}function Ri(e){Pi.current===e&&(lo(Ti),lo(Pi))}var Fi=so(0);function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vi=null,Bi=null,Ui=!1;function Wi(e,t){var n=qs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qi(e){if(Ui){var t=Bi;if(t){var n=t;if(!zi(e,t)){if(!(t=$r(n.nextSibling))||!zi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Vi=e);Wi(Vi,n)}Vi=e,Bi=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Vi=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vi=e}function Yi(e){if(e!==Vi)return!1;if(!Ui)return Hi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Bi;t;)Wi(e,t),t=$r(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bi=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bi=null}}else Bi=Vi?$r(e.stateNode.nextSibling):null;return!0}function $i(){Bi=Vi=null,Ui=!1}var Ki=[];function Qi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Gi=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Ji=0,Zi=null,ea=null,ta=null,na=!1,ra=!1;function oa(){throw Error(a(321))}function ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,o,i){if(Ji=i,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Ma:Aa,e=n(r,o),ra){i=0;do{if(ra=!1,!(25>i))throw Error(a(301));i+=1,ta=ea=null,t.updateQueue=null,Gi.current=Na,e=n(r,o)}while(ra)}if(Gi.current=Da,t=null!==ea&&null!==ea.next,Ji=0,ta=ea=Zi=null,na=!1,t)throw Error(a(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Zi.memoizedState=ta=e:ta=ta.next=e,ta}function sa(){if(null===ea){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Zi.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Zi.memoizedState=ta=e:ta=ta.next=e}return ta}function la(e,t){return"function"===typeof t?t(e):t}function ca(e){var t=sa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=u=i=null,l=o;do{var c=l.lane;if((Ji&c)===c)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(u=s=f,i=r):s=s.next=f,Zi.lanes|=c,Uu|=c}l=l.next}while(null!==l&&l!==o);null===s?i=r:s.next=u,lr(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=sa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);lr(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function da(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,Ki.push(t))),e)return n(t._source);throw Ki.push(t),Error(a(350))}function pa(e,t,n,r){var o=Au;if(null===o)throw Error(a(349));var i=t._getVersion,u=i(t._source),s=Gi.current,l=s.useState((function(){return da(o,t,n)})),c=l[1],f=l[0];l=ta;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var y=Zi;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!lr(u,e)){e=n(t._source),lr(f,e)||(c(e),e=ps(y),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var s=31-zt(a),l=1<<s;r[s]|=e,a&=~l}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ps(y);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),lr(h,n)&&lr(v,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:f}).dispatch=c=Pa.bind(null,Zi,e),l.queue=e,l.baseQueue=null,f=da(o,t,n),l.memoizedState=l.baseState=f),f}function ha(e,t,n){return pa(sa(),e,t,n)}function va(e){var t=ua();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:e}).dispatch=Pa.bind(null,Zi,e),[t.memoizedState,e]}function ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zi.updateQueue)?(t={lastEffect:null},Zi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(e){return e={current:e},ua().memoizedState=e}function ga(){return sa().memoizedState}function ba(e,t,n,r){var o=ua();Zi.flags|=e,o.memoizedState=ya(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=sa();r=void 0===r?null:r;var i=void 0;if(null!==ea){var a=ea.memoizedState;if(i=a.destroy,null!==r&&ia(r,a.deps))return void ya(t,n,i,r)}Zi.flags|=e,o.memoizedState=ya(1|t,n,i,r)}function xa(e,t){return ba(516,4,e,t)}function ka(e,t){return wa(516,4,e,t)}function _a(e,t){return wa(4,2,e,t)}function Oa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Oa.bind(null,t,e),n)}function Ea(){}function Ca(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ja(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=qo();Yo(98>n?98:n,(function(){e(!0)})),Yo(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Pa(e,t,n){var r=ds(),o=ps(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Zi||null!==a&&a===Zi)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,s=a(u,n);if(i.eagerReducer=a,i.eagerState=s,lr(s,u))return}catch(l){}hs(e,o,r)}}var Da={readContext:ai,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Ma={readContext:ai,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Oa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pa.bind(null,Zi,e),[r.memoizedState,e]},useRef:ma,useState:va,useDebugValue:Ea,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return xa((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ma(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pa(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=va(t)[1];return 0===(2&Zi.mode)&&(Zi.flags|=516,ya(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return va(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Aa={readContext:ai,useCallback:Ca,useContext:ai,useEffect:ka,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:ja,useReducer:ca,useRef:ga,useState:function(){return ca(la)},useDebugValue:Ea,useDeferredValue:function(e){var t=ca(la),n=t[0],r=t[1];return ka((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ca(la)[0];return[ga().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ca(la)[0]},unstable_isNewReconciler:!1},Na={readContext:ai,useCallback:Ca,useContext:ai,useEffect:ka,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:ja,useReducer:fa,useRef:ga,useState:function(){return fa(la)},useDebugValue:Ea,useDeferredValue:function(e){var t=fa(la),n=t[0],r=t[1];return ka((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=fa(la)[0];return[ga().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return fa(la)[0]},unstable_isNewReconciler:!1},Ia=x.ReactCurrentOwner,Ra=!1;function Fa(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Ei(t,e.child,n,r)}function La(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=aa(e,t,n,r,i,o),null===e||Ra?(t.flags|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,iu(e,t,o))}function Va(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Hs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$s(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)?iu(e,t,i):(t.flags|=1,(e=Ys(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,o,i){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Ra=!1,0===(i&o))return t.lanes=e.lanes,iu(e,t,i);0!==(16384&e.flags)&&(Ra=!0)}return za(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},ks(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ks(t,e),null;t.memoizedState={baseLanes:0},ks(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ks(t,r);return Fa(e,t,o,n),t.child}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function za(e,t,n,r,o){var i=mo(n)?vo:po.current;return i=yo(t,i),ii(t,o),n=aa(e,t,n,r,i,o),null===e||Ra?(t.flags|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,iu(e,t,o))}function qa(e,t,n,r,o){if(mo(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ai(l):l=yo(t,l=mo(n)?vo:po.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==l)&&wi(t,a,r,l),ui=!1;var d=t.memoizedState;a.state=d,pi(t,r,a,o),s=t.memoizedState,u!==r||d!==s||ho.current||ui?("function"===typeof c&&(yi(t,n,c,r),s=t.memoizedState),(u=ui||gi(t,n,u,r,d,s,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,li(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Xo(t.type,u),a.props=l,f=t.pendingProps,d=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=ai(s):s=yo(t,s=mo(n)?vo:po.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==f||d!==s)&&wi(t,a,r,s),ui=!1,d=t.memoizedState,a.state=d,pi(t,r,a,o);var h=t.memoizedState;u!==f||d!==h||ho.current||ui?("function"===typeof p&&(yi(t,n,p,r),h=t.memoizedState),(l=ui||gi(t,n,l,r,d,h,s))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Wa(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&ko(t,n,!1),iu(e,t,i);r=t.stateNode,Ia.current=t;var u=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,u,i)):Fa(e,t,u,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function Ya(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Ai(e,t.containerInfo)}var $a,Ka,Qa,Ga,Xa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,o=t.pendingProps,i=Fi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),co(Fi,1&i),null===e?(void 0!==o.fallback&&qi(t),e=o.children,i=o.fallback,a?(e=Za(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof o.unstable_expectedLoadTime?(e=Za(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Qs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=tu(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=eu(e,t,o.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Qs(t,o,0,null),n=Ks(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function eu(e,t,n,r){var o=e.child;return e=o.sibling,n=Ys(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tu(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var u={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=u,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ys(a,u),null!==e?r=Ys(e,r):(r=Ks(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nu(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function ru(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!==(2&(r=Fi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n);else if(19===e.tag)nu(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co(Fi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,i,t.lastEffect);break;case"together":ru(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function iu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ys(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ys(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function au(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mo(t.type)&&go(),null;case 3:return Ni(),lo(ho),lo(po),Qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ka(t),null;case 5:Ri(t);var i=Mi(Di.current);if(n=t.type,null!==e&&null!=t.stateNode)Qa(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(Ti.current),Yi(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Xr]=t,r[Jr]=u,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,u),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Tr("invalid",r);break;case"textarea":se(r,u),Tr("invalid",r)}for(var l in _e(n,u),e=null,u)u.hasOwnProperty(l)&&(i=u[l],"children"===l?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Tr("scroll",r));switch(n){case"input":G(r),re(r,u,!0);break;case"textarea":G(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Vr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===fe.html&&(e=de(n)),e===fe.html?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Xr]=t,e[Jr]=r,$a(e,t,!1,!1),t.stateNode=e,l=Oe(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),i=r;break;case"iframe":case"object":case"embed":Tr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Tr(Sr[i],e);i=r;break;case"source":Tr("error",e),i=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),i=r;break;case"details":Tr("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Tr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":se(e,r),i=ue(e,r),Tr("invalid",e);break;default:i=r}_e(n,i);var c=i;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?xe(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&me(e,f):"number"===typeof f&&me(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Tr("scroll",e):null!=f&&w(e,u,f,l))}switch(n){case"input":G(e),re(e,r,!1);break;case"textarea":G(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ae(e,!!r.multiple,u,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Vr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Di.current),Mi(Ti.current),Yi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return lo(Fi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Fi.current)?0===Lu&&(Lu=3):(0!==Lu&&3!==Lu||(Lu=4),null===Au||0===(134217727&Uu)&&0===(134217727&Wu)||gs(Au,Iu))),(r||n)&&(t.flags|=4),null);case 4:return Ni(),Ka(t),null===e&&Dr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(lo(Fi),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(l=r.rendering))if(u)au(r,!1);else{if(0!==Lu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Li(e))){for(t.flags|=64,au(r,!1),null!==(u=l.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(l=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return co(Fi,1&Fi.current|2),t.child}e=e.sibling}null!==r.tail&&zo()>Yu&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Li(l))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),au(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zo()-r.renderingStartTime>Yu&&1073741824!==n&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zo(),n.sibling=null,t=Fi.current,co(Fi,u?1&t|2:1&t),n):null;case 23:case 24:return _s(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function su(e){switch(e.tag){case 1:mo(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ni(),lo(ho),lo(po),Qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ri(e),null;case 13:return lo(Fi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(Fi),null;case 4:return Ni(),null;case 10:return ri(e),null;case 23:case 24:return _s(),null;default:return null}}function lu(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}$a=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ka=function(){},Qa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Mi(Ti.current);var a,u=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),u=[];break;case"option":i=ie(e,i),r=ie(e,r),u=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),u=[];break;case"textarea":i=ue(e,i),r=ue(e,r),u=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Vr)}for(f in _e(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Tr("scroll",e),u||l===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var fu="function"===typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=ci(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gu||(Gu=!0,Xu=r),cu(0,t)},n}function pu(e,t,n){(n=ci(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return cu(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ju?Ju=new Set([this]):Ju.add(this),cu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hu="function"===typeof WeakSet?WeakSet:Set;function vu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Bs(e,n)}else t.current=null}function yu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yr(t.stateNode.containerInfo))}throw Error(a(163))}function mu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Fs(n,e),Rs(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function gu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bu(e,t){if(Oo&&"function"===typeof Oo.onCommitFiberUnmount)try{Oo.onCommitFiberUnmount(_o,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Fs(t,n);else{r=t;try{o()}catch(i){Bs(r,i)}}n=n.next}while(n!==e)}break;case 1:if(vu(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Bs(t,i)}break;case 5:vu(t);break;case 4:Su(e,t)}}function wu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xu(e){return 5===e.tag||3===e.tag||4===e.tag}function ku(e){e:{for(var t=e.return;null!==t;){if(xu(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(me(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_u(e,n,t):Ou(e,n,t)}function _u(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Vr));else if(4!==r&&null!==(e=e.child))for(_u(e,t,n),e=e.sibling;null!==e;)_u(e,t,n),e=e.sibling}function Ou(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ou(e,t,n),e=e.sibling;null!==e;)Ou(e,t,n),e=e.sibling}function Su(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var u=e,s=o,l=s;;)if(bu(u,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(u=n,s=o.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bu(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Eu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Oe(e,o),t=Oe(e,r),o=0;o<i.length;o+=2){var u=i[o],s=i[o+1];"style"===u?xe(n,s):"dangerouslySetInnerHTML"===u?ye(n,s):"children"===u?me(n,s):w(n,u,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Hu=zo(),gu(t.child,!0)),void Cu(t);case 19:return void Cu(t);case 23:case 24:return void gu(t,null!==t.memoizedState)}throw Error(a(163))}function Cu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hu),t.forEach((function(t){var r=Ws.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ju(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Tu=Math.ceil,Pu=x.ReactCurrentDispatcher,Du=x.ReactCurrentOwner,Mu=0,Au=null,Nu=null,Iu=0,Ru=0,Fu=so(0),Lu=0,Vu=null,Bu=0,Uu=0,Wu=0,zu=0,qu=null,Hu=0,Yu=1/0;function $u(){Yu=zo()+500}var Ku,Qu=null,Gu=!1,Xu=null,Ju=null,Zu=!1,es=null,ts=90,ns=[],rs=[],os=null,is=0,as=null,us=-1,ss=0,ls=0,cs=null,fs=!1;function ds(){return 0!==(48&Mu)?zo():-1!==us?us:us=zo()}function ps(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qo()?1:2;if(0===ss&&(ss=Bu),0!==Go.transition){0!==ls&&(ls=null!==qu?qu.pendingLanes:0),e=ss;var t=4186112&~ls;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qo(),0!==(4&Mu)&&98===e?e=Vt(12,ss):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,t,n){if(50<is)throw is=0,as=null,Error(a(185));if(null===(e=vs(e,t)))return null;Wt(e,t,n),e===Au&&(Wu|=t,4===Lu&&gs(e,Iu));var r=qo();1===t?0!==(8&Mu)&&0===(48&Mu)?bs(e):(ys(e,n),0===Mu&&($u(),Ko())):(0===(4&Mu)||98!==r&&99!==r||(null===os?os=new Set([e]):os.add(e)),ys(e,n)),qu=e}function vs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ys(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-zt(u),l=1<<s,c=i[s];if(-1===c){if(0===(l&r)||0!==(l&o)){c=t,Rt(l);var f=It;i[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);u&=~l}if(r=Ft(e,e===Au?Iu:0),t=It,0===r)null!==n&&(n!==Fo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fo&&Co(n)}15===t?(n=bs.bind(null,e),null===Vo?(Vo=[n],Bo=Eo(Mo,Qo)):Vo.push(n),n=Fo):14===t?n=$o(99,bs.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=$o(n,ms.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ms(e){if(us=-1,ls=ss=0,0!==(48&Mu))throw Error(a(327));var t=e.callbackNode;if(Is()&&e.callbackNode!==t)return null;var n=Ft(e,e===Au?Iu:0);if(0===n)return null;var r=n,o=Mu;Mu|=16;var i=Es();for(Au===e&&Iu===r||($u(),Os(e,r));;)try{Ts();break}catch(s){Ss(e,s)}if(ni(),Pu.current=i,Mu=o,null!==Nu?r=0:(Au=null,Iu=0,r=Lu),0!==(Bu&Wu))Os(e,0);else if(0!==r){if(2===r&&(Mu|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(n=Lt(e))&&(r=Cs(e,n))),1===r)throw t=Vu,Os(e,0),gs(e,n),ys(e,zo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ms(e);break;case 3:if(gs(e,n),(62914560&n)===n&&10<(r=Hu+500-zo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ds(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qr(Ms.bind(null,e),r);break}Ms(e);break;case 4:if(gs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var u=31-zt(n);i=1<<u,(u=r[u])>o&&(o=u),n&=~i}if(n=o,10<(n=(120>(n=zo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Tu(n/1960))-n)){e.timeoutHandle=qr(Ms.bind(null,e),n);break}Ms(e);break;default:throw Error(a(329))}}return ys(e,zo()),e.callbackNode===t?ms.bind(null,e):null}function gs(e,t){for(t&=~zu,t&=~Wu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zt(t),r=1<<n;e[n]=-1,t&=~r}}function bs(e){if(0!==(48&Mu))throw Error(a(327));if(Is(),e===Au&&0!==(e.expiredLanes&Iu)){var t=Iu,n=Cs(e,t);0!==(Bu&Wu)&&(n=Cs(e,t=Ft(e,t)))}else n=Cs(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Mu|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(t=Lt(e))&&(n=Cs(e,t))),1===n)throw n=Vu,Os(e,0),gs(e,t),ys(e,zo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ms(e),ys(e,zo()),null}function ws(e,t){var n=Mu;Mu|=1;try{return e(t)}finally{0===(Mu=n)&&($u(),Ko())}}function xs(e,t){var n=Mu;Mu&=-2,Mu|=8;try{return e(t)}finally{0===(Mu=n)&&($u(),Ko())}}function ks(e,t){co(Fu,Ru),Ru|=t,Bu|=t}function _s(){Ru=Fu.current,lo(Fu)}function Os(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Nu)for(n=Nu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&go();break;case 3:Ni(),lo(ho),lo(po),Qi();break;case 5:Ri(r);break;case 4:Ni();break;case 13:case 19:lo(Fi);break;case 10:ri(r);break;case 23:case 24:_s()}n=n.return}Au=e,Nu=Ys(e.current,null),Iu=Ru=Bu=t,Lu=0,Vu=null,zu=Wu=Uu=0}function Ss(e,t){for(;;){var n=Nu;try{if(ni(),Gi.current=Da,na){for(var r=Zi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}na=!1}if(Ji=0,ta=ea=Zi=null,ra=!1,Du.current=null,null===n||null===n.return){Lu=1,Vu=t,Nu=null;break}e:{var i=e,a=n.return,u=n,s=t;if(t=Iu,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&Fi.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var m=new Set;m.add(l),d.updateQueue=m}else y.add(l);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=ci(-1,1);g.tag=2,fi(u,g)}u.lanes|=1;break e}s=void 0,u=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new fu,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(u)){s.add(u);var w=Us.bind(null,i,l,u);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error(($(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Lu&&(Lu=2),s=lu(s,u),d=a;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,di(d,du(0,i,t));break e;case 1:i=s;var x=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof x.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Ju||!Ju.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,di(d,pu(d,i,t));break e}}d=d.return}while(null!==d)}Ds(n)}catch(_){t=_,Nu===n&&null!==n&&(Nu=n=n.return);continue}break}}function Es(){var e=Pu.current;return Pu.current=Da,null===e?Da:e}function Cs(e,t){var n=Mu;Mu|=16;var r=Es();for(Au===e&&Iu===t||Os(e,t);;)try{js();break}catch(o){Ss(e,o)}if(ni(),Mu=n,Pu.current=r,null!==Nu)throw Error(a(261));return Au=null,Iu=0,Lu}function js(){for(;null!==Nu;)Ps(Nu)}function Ts(){for(;null!==Nu&&!jo();)Ps(Nu)}function Ps(e){var t=Ku(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ds(e):Nu=t,Du.current=null}function Ds(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=uu(n,t,Ru)))return void(Nu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=su(t)))return n.flags&=2047,void(Nu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Nu=t);Nu=t=e}while(null!==t);0===Lu&&(Lu=5)}function Ms(e){var t=qo();return Yo(99,As.bind(null,e,t)),null}function As(e,t){do{Is()}while(null!==es);if(0!==(48&Mu))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var u=e.eventTimes,s=e.expirationTimes;0<i;){var l=31-zt(i),c=1<<l;o[l]=0,u[l]=-1,s[l]=-1,i&=~c}if(null!==os&&0===(24&r)&&os.has(e)&&os.delete(e),e===Au&&(Nu=Au=null,Iu=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Mu,Mu|=32,Du.current=null,Br=Kt,yr(u=vr())){if("selectionStart"in u)s={start:u.selectionStart,end:u.selectionEnd};else e:if(s=(s=u.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch(E){s=null;break e}var f=0,d=-1,p=-1,h=0,v=0,y=u,m=null;t:for(;;){for(var g;y!==s||0!==i&&3!==y.nodeType||(d=f+i),y!==l||0!==c&&3!==y.nodeType||(p=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(g=y.firstChild);)m=y,y=g;for(;;){if(y===u)break t;if(m===s&&++h===i&&(d=f),m===l&&++v===c&&(p=f),null!==(g=y.nextSibling))break;m=(y=m).parentNode}y=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ur={focusedElem:u,selectionRange:s},Kt=!1,cs=null,fs=!1,Qu=r;do{try{Ns()}catch(E){if(null===Qu)throw Error(a(330));Bs(Qu,E),Qu=Qu.nextEffect}}while(null!==Qu);cs=null,Qu=r;do{try{for(u=e;null!==Qu;){var b=Qu.flags;if(16&b&&me(Qu.stateNode,""),128&b){var w=Qu.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ku(Qu),Qu.flags&=-3;break;case 6:ku(Qu),Qu.flags&=-3,Eu(Qu.alternate,Qu);break;case 1024:Qu.flags&=-1025;break;case 1028:Qu.flags&=-1025,Eu(Qu.alternate,Qu);break;case 4:Eu(Qu.alternate,Qu);break;case 8:Su(u,s=Qu);var k=s.alternate;wu(s),null!==k&&wu(k)}Qu=Qu.nextEffect}}catch(E){if(null===Qu)throw Error(a(330));Bs(Qu,E),Qu=Qu.nextEffect}}while(null!==Qu);if(x=Ur,w=vr(),b=x.focusedElem,u=x.selectionRange,w!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==u&&yr(b)&&(w=u.start,void 0===(x=u.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),s=b.textContent.length,k=Math.min(u.start,s),u=void 0===u.end?k:Math.min(u.end,s),!x.extend&&k>u&&(s=u,u=k,k=s),s=pr(b,k),i=pr(b,u),s&&i&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),k>u?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Br,Ur=Br=null,e.current=n,Qu=r;do{try{for(b=e;null!==Qu;){var _=Qu.flags;if(36&_&&mu(b,Qu.alternate,Qu),128&_){w=void 0;var O=Qu.ref;if(null!==O){var S=Qu.stateNode;Qu.tag,w=S,"function"===typeof O?O(w):O.current=w}}Qu=Qu.nextEffect}}catch(E){if(null===Qu)throw Error(a(330));Bs(Qu,E),Qu=Qu.nextEffect}}while(null!==Qu);Qu=null,Lo(),Mu=o}else e.current=n;if(Zu)Zu=!1,es=e,ts=t;else for(Qu=r;null!==Qu;)t=Qu.nextEffect,Qu.nextEffect=null,8&Qu.flags&&((_=Qu).sibling=null,_.stateNode=null),Qu=t;if(0===(r=e.pendingLanes)&&(Ju=null),1===r?e===as?is++:(is=0,as=e):is=0,n=n.stateNode,Oo&&"function"===typeof Oo.onCommitFiberRoot)try{Oo.onCommitFiberRoot(_o,n,void 0,64===(64&n.current.flags))}catch(E){}if(ys(e,zo()),Gu)throw Gu=!1,e=Xu,Xu=null,e;return 0!==(8&Mu)||Ko(),null}function Ns(){for(;null!==Qu;){var e=Qu.alternate;fs||null===cs||(0!==(8&Qu.flags)?Ze(Qu,cs)&&(fs=!0):13===Qu.tag&&ju(e,Qu)&&Ze(Qu,cs)&&(fs=!0));var t=Qu.flags;0!==(256&t)&&yu(e,Qu),0===(512&t)||Zu||(Zu=!0,$o(97,(function(){return Is(),null}))),Qu=Qu.nextEffect}}function Is(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Yo(e,Ls)}return!1}function Rs(e,t){ns.push(t,e),Zu||(Zu=!0,$o(97,(function(){return Is(),null})))}function Fs(e,t){rs.push(t,e),Zu||(Zu=!0,$o(97,(function(){return Is(),null})))}function Ls(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Mu))throw Error(a(331));var t=Mu;Mu|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],u=o.destroy;if(o.destroy=void 0,"function"===typeof u)try{u()}catch(l){if(null===i)throw Error(a(330));Bs(i,l)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(l){if(null===i)throw Error(a(330));Bs(i,l)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Mu=t,Ko(),!0}function Vs(e,t,n){fi(e,t=du(0,t=lu(n,t),1)),t=ds(),null!==(e=vs(e,1))&&(Wt(e,1,t),ys(e,t))}function Bs(e,t){if(3===e.tag)Vs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Vs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ju||!Ju.has(r))){var o=pu(n,e=lu(t,e),1);if(fi(n,o),o=ds(),null!==(n=vs(n,1)))Wt(n,1,o),ys(n,o);else if("function"===typeof r.componentDidCatch&&(null===Ju||!Ju.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Us(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ds(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Iu&n)===n&&(4===Lu||3===Lu&&(62914560&Iu)===Iu&&500>zo()-Hu?Os(e,0):zu|=n),ys(e,t)}function Ws(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===qo()?1:2:(0===ss&&(ss=Bu),0===(t=Bt(62914560&~ss))&&(t=4194304))),n=ds(),null!==(e=vs(e,t))&&(Wt(e,t,n),ys(e,n))}function zs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function qs(e,t,n,r){return new zs(e,t,n,r)}function Hs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ys(e,t){var n=e.alternate;return null===n?((n=qs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $s(e,t,n,r,o,i){var u=2;if(r=e,"function"===typeof e)Hs(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case O:return Ks(n.children,o,i,t);case R:u=8,o|=16;break;case S:u=8,o|=1;break;case E:return(e=qs(12,n,t,8|o)).elementType=E,e.type=E,e.lanes=i,e;case P:return(e=qs(13,n,t,o)).type=P,e.elementType=P,e.lanes=i,e;case D:return(e=qs(19,n,t,o)).elementType=D,e.lanes=i,e;case F:return Qs(n,o,i,t);case L:return(e=qs(24,n,t,o)).elementType=L,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:u=10;break e;case j:u=9;break e;case T:u=11;break e;case M:u=14;break e;case A:u=16,r=null;break e;case N:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=qs(u,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ks(e,t,n,r){return(e=qs(7,e,r,t)).lanes=n,e}function Qs(e,t,n,r){return(e=qs(23,e,r,t)).elementType=F,e.lanes=n,e}function Gs(e,t,n){return(e=qs(6,e,null,t)).lanes=n,e}function Xs(e,t,n){return(t=qs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Js(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Zs(e,t,n,r){var o=t.current,i=ds(),u=ps(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var l=n.type;if(mo(l)){n=wo(n,l,s);break e}}n=s}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),hs(o,u,i),u}function el(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nl(e,t){tl(e,t),(e=e.alternate)&&tl(e,t)}function rl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Js(e,t,null!=n&&!0===n.hydrate),t=qs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,si(t),e[Zr]=n.current,Dr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function il(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var u=o;o=function(){var e=el(a);u.call(e)}}Zs(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var s=o;o=function(){var e=el(a);s.call(e)}}xs((function(){Zs(t,a,e,o)}))}return el(a)}function al(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ku=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ho.current)Ra=!0;else{if(0===(n&r)){switch(Ra=!1,t.tag){case 3:Ya(t),$i();break;case 5:Ii(t);break;case 1:mo(t.type)&&xo(t);break;case 4:Ai(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;co(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(co(Fi,1&Fi.current),null!==(t=iu(e,t,n))?t.sibling:null);co(Fi,1&Fi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ou(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),co(Fi,Fi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return iu(e,t,n)}Ra=0!==(16384&e.flags)}else Ra=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=yo(t,po.current),ii(t,n),o=aa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mo(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,si(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&yi(t,r,u,e),o.updater=mi,t.stateNode=o,o._reactInternals=t,xi(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Hs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===M)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=za(null,t,o,e,n);break e;case 1:t=qa(null,t,o,e,n);break e;case 11:t=La(null,t,o,e,n);break e;case 14:t=Va(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,qa(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Ya(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),pi(t,r,null,n),(r=t.memoizedState.element)===o)$i(),t=iu(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Bi=$r(t.stateNode.containerInfo.firstChild),Vi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),$i();t=t.child}return t;case 5:return Ii(t),null===e&&qi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,zr(r,o)?u=null:null!==i&&zr(r,i)&&(t.flags|=16),Wa(e,t),Fa(e,t,u,n),t.child;case 6:return null===e&&qi(t),null;case 13:return Ja(e,t,n);case 4:return Ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var s=t.type._context;if(co(Jo,s._currentValue),s._currentValue=i,null!==u)if(s=u.value,0===(i=lr(s,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(u.children===o.children&&!ho.current){t=iu(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){u=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&i)){1===s.tag&&((c=ci(-1,n&-n)).tag=2,fi(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),oi(s.return,n),l.lanes|=n;break}c=c.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Va(e,t,o,i=Xo(o.type,i),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mo(r)?(e=!0,xo(t)):e=!1,ii(t,n),bi(t,r,o),xi(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},rl.prototype.render=function(e){Zs(e,this._internalRoot,null,null)},rl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zs(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(hs(e,4,ds()),nl(e,4))},tt=function(e){13===e.tag&&(hs(e,67108864,ds()),nl(e,67108864))},nt=function(e){if(13===e.tag){var t=ds(),n=ps(e);hs(e,n,t),nl(e,n)}},rt=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oo(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=ws,Ae=function(e,t,n,r,o){var i=Mu;Mu|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{0===(Mu=i)&&($u(),Ko())}},Ne=function(){0===(49&Mu)&&(function(){if(null!==os){var e=os;os=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ys(e,zo())}))}Ko()}(),Is())},Ie=function(e,t){var n=Mu;Mu|=2;try{return e(t)}finally{0===(Mu=n)&&($u(),Ko())}};var ul={Events:[no,ro,oo,Pe,De,Is,{current:!1}]},sl={findFiberByHostInstance:to,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},ll={bundleType:sl.bundleType,version:sl.version,rendererPackageName:sl.rendererPackageName,rendererConfig:sl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:sl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cl.isDisabled&&cl.supportsFiber)try{_o=cl.inject(ll),Oo=cl}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ul,t.createPortal=al,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Mu;if(0!==(48&n))return e(t);Mu|=1;try{if(e)return Yo(99,e.bind(null,t))}finally{Mu=n,Ko()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(xs((function(){il(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=ws,t.unstable_createPortal=function(e,t){return al(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return il(e,t,n,!1,r)},t.version="17.0.1"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1372:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case v:case s:return e;default:return t}}case o:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===u||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},7441:function(e,t,n){"use strict";e.exports=n(1372)},3688:function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?u="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=e.displayName||e.name,l="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==u?"\n  "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},11:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return d}});var r=n(2791),o=n(4164);function i(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var a,u,s=(void 0===a&&(a=0),function(){return++a}),l={},c={},f=["touchstart","touchmove"],d="ignore-react-onclickoutside";function p(e,t){var n=null;return-1!==f.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,a,f=e.displayName||e.name||"Component";return a=n=function(n){var a,d;function h(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!c[r._uid]){"undefined"===typeof u&&(u=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),c[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),l[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(i(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,l[r._uid],p(r,e))}))}},r.disableOnClickOutside=function(){delete c[r._uid];var e=l[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,p(r,t))})),delete l[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=s(),r}d=n,(a=h).prototype=Object.create(d.prototype),a.prototype.constructor=a,a.__proto__=d;var v=h.prototype;return v.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},h}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:d,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}},1138:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return be},Popper:function(){return Ce},Reference:function(){return De},placements:function(){return Ee}});var r=n(3366),o=n(7462),i=n(1721);function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(4058),l=n.n(s),c=n(2791),f="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,d=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(f&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var p=f&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),d))}};function h(e){return e&&"[object Function]"==={}.toString.call(e)}function v(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function y(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function m(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:m(y(e))}function g(e){return e&&e.referenceNode?e.referenceNode:e}var b=f&&!(!window.MSInputMethodContext||!document.documentMode),w=f&&/MSIE 10/.test(navigator.userAgent);function x(e){return 11===e?b:10===e?w:b||w}function k(e){if(!e)return document.documentElement;for(var t=x(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===v(n,"position")?k(n):n:e?e.ownerDocument.documentElement:document.documentElement}function _(e){return null!==e.parentNode?_(e.parentNode):e}function O(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||k(e.firstElementChild)===e)}(a)?a:k(a);var u=_(e);return u.host?O(u.host,t):O(e,_(t).host)}function S(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function E(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function C(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],x(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function j(e){var t=e.body,n=e.documentElement,r=x(10)&&getComputedStyle(n);return{height:C("Height",t,n,r),width:C("Width",t,n,r)}}var T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function A(e){var t={};try{if(x(10)){t=e.getBoundingClientRect();var n=S(e,"top"),r=S(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?j(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,u=i.height||e.clientHeight||o.height,s=e.offsetWidth-a,l=e.offsetHeight-u;if(s||l){var c=v(e);s-=E(c,"x"),l-=E(c,"y"),o.width-=s,o.height-=l}return M(o)}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x(10),o="HTML"===t.nodeName,i=A(e),a=A(t),u=m(e),s=v(t),l=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=M({top:i.top-a.top-l,left:i.left-a.left-c,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(s.marginTop),p=parseFloat(s.marginLeft);f.top-=l-d,f.bottom-=l-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=S(t,"top"),o=S(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(f,t)),f}function I(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===v(e,"position"))return!0;var n=y(e);return!!n&&I(n)}function R(e){if(!e||!e.parentElement||x())return document.documentElement;for(var t=e.parentElement;t&&"none"===v(t,"transform");)t=t.parentElement;return t||document.documentElement}function F(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?R(e):O(e,g(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=N(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:S(n),u=t?0:S(n,"left");return M({top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var u=void 0;"scrollParent"===r?"BODY"===(u=m(y(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var s=N(u,a,o);if("HTML"!==u.nodeName||I(a))i=s;else{var l=j(e.ownerDocument),c=l.height,f=l.width;i.top+=s.top-s.marginTop,i.bottom=c+s.top,i.left+=s.left-s.marginLeft,i.right=f+s.left}}var d="number"===typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function L(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=F(n,r,i,o),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(u).map((function(e){return D({key:e},u[e],{area:(t=u[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:s[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return N(n,r?R(t):O(t,g(n)),r)}function B(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function U(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function W(e,t,n){n=n.split("-")[0];var r=B(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",u=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[u]=n===u?t[u]-r[l]:t[U(u)],o}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function q(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&h(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))})),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=V(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=W(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=q(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Y(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function K(){return this.state.isDestroyed=!0,Y(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Q(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||G(m(i.parentNode),t,n,r),r.push(i)}function X(e,t,n,r){n.updateBound=r,Q(e).addEventListener("resize",n.updateBound,{passive:!0});var o=m(e);return G(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=X(this.reference,this.options,this.state,this.scheduleUpdate))}function Z(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ee(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function te(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ee(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ne=f&&/Firefox/i.test(navigator.userAgent);function re(e,t,n){var r=z(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=oe.slice(3);function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),r=ie.slice(n+1).concat(ie.slice(0,n));return t?r.reverse():r}var ue="flip",se="clockwise",le="counterclockwise";function ce(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),u=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[u]&&-1===a[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==u?[a.slice(0,u).concat([a[u].split(s)[0]]),[a[u].split(s)[1]].concat(a.slice(u+1))]:[a];return l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return M("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){ee(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var fe={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,u=-1!==["bottom","top"].indexOf(n),s=u?"left":"top",l=u?"width":"height",c={start:P({},s,i[s]),end:P({},s,i[s]+i[l]-a[l])};e.offsets.popper=D({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,u=r.split("-")[0],s=void 0;return s=ee(+n)?[+n,0]:ce(n,i,a,u),"left"===u?(i.top+=s[0],i.left-=s[1]):"right"===u?(i.top+=s[0],i.left+=s[1]):"top"===u?(i.left+=s[0],i.top-=s[1]):"bottom"===u&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||k(e.instance.popper);e.instance.reference===n&&(n=k(n));var r=$("transform"),o=e.instance.popper.style,i=o.top,a=o.left,u=o[r];o.top="",o.left="",o[r]="";var s=F(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=u,t.boundaries=s;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<s[e]&&!t.escapeWithReference&&(n=Math.max(c[e],s[e])),P({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>s[e]&&!t.escapeWithReference&&(r=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),P({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=D({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),u=a?"right":"bottom",s=a?"left":"top",l=a?"width":"height";return n[u]<i(r[s])&&(e.offsets.popper[s]=i(r[s])-n[l]),n[s]>i(r[u])&&(e.offsets.popper[s]=i(r[u])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!re(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,u=i.reference,s=-1!==["left","right"].indexOf(o),l=s?"height":"width",c=s?"Top":"Left",f=c.toLowerCase(),d=s?"left":"top",p=s?"bottom":"right",h=B(r)[l];u[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(u[p]-h)),u[f]+h>a[p]&&(e.offsets.popper[f]+=u[f]+h-a[p]),e.offsets.popper=M(e.offsets.popper);var y=u[f]+u[l]/2-h/2,m=v(e.instance.popper),g=parseFloat(m["margin"+c]),b=parseFloat(m["border"+c+"Width"]),w=y-e.offsets.popper[f]-g-b;return w=Math.max(Math.min(a[l]-h,w),0),e.arrowElement=r,e.offsets.arrow=(P(n={},f,Math.round(w)),P(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Y(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=F(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=U(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ue:a=[r,o];break;case se:a=ae(r);break;case le:a=ae(r,!0);break;default:a=t.behavior}return a.forEach((function(u,s){if(r!==u||a.length===s+1)return e;r=e.placement.split("-")[0],o=U(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),v=f(l.top)<f(n.top),y=f(l.bottom)>f(n.bottom),m="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&y,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===i&&p||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&y),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&p||!g&&"start"===i&&y||!g&&"end"===i&&v),x=b||w;(d||m||x)&&(e.flipped=!0,(d||m)&&(r=a[s+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=D({},e.offsets.popper,W(e.instance.popper,e.offsets.reference,e.placement)),e=q(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),u=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(u?o[a?"width":"height"]:0),e.placement=U(t),e.offsets.popper=M(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!re(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,u=k(e.instance.popper),s=A(u),l={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,u=function(e){return e},s=i(o.width),l=i(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||s%2===l%2?i:a:u,p=t?i:u;return{left:d(s%2===1&&l%2===1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!ne),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=$("transform"),h=void 0,v=void 0;if(v="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+c.bottom:-s.height+c.bottom:c.top,h="right"===d?"HTML"===u.nodeName?-u.clientWidth+c.right:-s.width+c.right:c.left,a&&p)l[p]="translate3d("+h+"px, "+v+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var y="bottom"===f?-1:1,m="right"===d?-1:1;l[f]=v*y,l[d]=h*m,l.willChange=f+", "+d}var g={"x-placement":e.placement};return e.attributes=D({},g,e.attributes),e.styles=D({},l,e.styles),e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return te(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&te(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=V(o,t,e,n.positionFixed),a=L(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),te(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},de={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:fe},pe=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=p(this.update.bind(this)),this.options=D({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(D({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=D({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return D({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&h(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return T(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return K.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Z.call(this)}}]),e}();pe.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,pe.placements=oe,pe.Defaults=de;var he=pe,ve=n(4535),ye=n.n(ve),me=ye()(),ge=ye()(),be=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u(a(a(t=e.call.apply(e,[this].concat(r))||this)),"referenceNode",void 0),u(a(a(t)),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}(0,i.Z)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return c.createElement(me.Provider,{value:this.referenceNode},c.createElement(ge.Provider,{value:this.setReferenceNode},this.props.children))},t}(c.Component),we=function(e){return Array.isArray(e)?e[0]:e},xe=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},ke=function(e,t){if("function"===typeof e)return xe(e,t);null!=e&&(e.current=t)},_e={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},Oe={},Se=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return u(a(a(t=e.call.apply(e,[this].concat(r))||this)),"state",{data:void 0,placement:void 0}),u(a(a(t)),"popperInstance",void 0),u(a(a(t)),"popperNode",null),u(a(a(t)),"arrowNode",null),u(a(a(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(ke(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),u(a(a(t)),"setArrowNode",(function(e){t.arrowNode=e})),u(a(a(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),u(a(a(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:(0,o.Z)({},t.props.modifiers,{arrow:(0,o.Z)({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),u(a(a(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?(0,o.Z)({position:t.state.data.offsets.popper.position},t.state.data.styles):_e})),u(a(a(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),u(a(a(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:Oe})),u(a(a(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),u(a(a(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),u(a(a(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=a(a(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new he(n,e,t.getOptions()))})),u(a(a(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&l()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){ke(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return we(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(c.Component);u(Se,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var Ee=he.placements;function Ce(e){var t=e.referenceElement,n=(0,r.Z)(e,["referenceElement"]);return c.createElement(me.Consumer,null,(function(e){return c.createElement(Se,(0,o.Z)({referenceElement:void 0!==t?t:e},n))}))}var je=n(2391),Te=n.n(je),Pe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u(a(a(t=e.call.apply(e,[this].concat(r))||this)),"refHandler",(function(e){ke(t.props.innerRef,e),xe(t.props.setReferenceNode,e)})),t}(0,i.Z)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){ke(this.props.innerRef,null)},n.render=function(){return Te()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),we(this.props.children)({ref:this.refHandler})},t}(c.Component);function De(e){return c.createElement(ge.Consumer,null,(function(t){return c.createElement(Pe,(0,o.Z)({setReferenceNode:t},e))}))}},3813:function(e,t,n){var r=n(1571);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return u(i(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,u="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(u+=e.slice(a,p),a=p+f.length,d)u+=d[1];else{var h=e[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];u&&(r.push(u),u="");var x=null!=v&&null!=h&&h!==v,k="+"===b||"*"===b,_="?"===b||"*"===b,O=n[2]||c,S=m||g;r.push({name:y||i++,prefix:v||"",delimiter:O,optional:_,repeat:k,partial:x,asterisk:!!w,pattern:S?l(S):w?".*":"[^"+s(O)+"]+?"})}}return a<e.length&&(u+=e.substr(a)),u&&r.push(u),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function u(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",u=t||{},s=(o||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,d=u[c.name];if(null==d){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=s(d[p]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(d),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');i+=c.prefix+f}}else i+=c}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",u=0;u<e.length;u++){var l=e[u];if("string"===typeof l)a+=s(l);else{var d=s(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+d+p+")*"),a+=p=l.optional?l.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=s(n.delimiter||"/"),v=a.slice(-h.length)===h;return o||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+h+"|$)",c(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},6664:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(2007));var r=u(n(8354)),o=u(n(2910)),i=u(n(2791)),a=u(n(119));n(7890);function u(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),l(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&c(e,r),o&&c(e,o),i&&c(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},o.render=function(){var e=s({},this.props);return delete e.classNames,i.default.createElement(a.default,s({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},8162:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(2007));var r=a(n(2791)),o=n(4164),i=a(n(2326));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=a.prototype;return u.handleLifecycle=function(e,t,n){var i,a=this.props.children,u=r.default.Children.toArray(a)[t];u.props[e]&&(i=u.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},u.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),u=a[0],s=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);u.propTypes={};var s=u;t.default=s,e.exports=t.default},119:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2007)),o=u(n(2791)),i=u(n(4164)),a=n(3688);n(7890);function u(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";t.UNMOUNTED=s;var l="exited";t.EXITED=l;var c="entering";t.ENTERING=c;var f="entered";t.ENTERED=f;var d="exiting";t.EXITING=d;var p=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=l,r.appearStatus=c):o=f:o=t.unmountOnExit||t.mountOnEnter?s:l,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==f&&(t=c):n!==c&&n!==f||(t=d)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:d},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function h(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var v=(0,a.polyfill)(p);t.default=v},2326:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(2007)),o=u(n(2791)),i=n(3688),a=n(8546);function u(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(l(l(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},i.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=s({},t.children);return delete n[e.key],{children:n}})))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,i.polyfill)(f);t.default=d,e.exports=t.default},8267:function(e,t,n){"use strict";var r=u(n(6664)),o=u(n(8162)),i=u(n(2326)),a=u(n(119));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},8546:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var u=o(e.children),s=i(t,u);return Object.keys(s).forEach((function(o){var i=s[o];if((0,r.isValidElement)(i)){var l=o in t,c=o in u,f=t[o],d=(0,r.isValidElement)(f)&&!f.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,r.isValidElement)(f)&&(s[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):s[o]=(0,r.cloneElement)(i,{in:!1}):s[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),s};var r=n(2791);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var l=o[s][r];u[o[s][r]]=n(l)}u[s]=n(s)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},7890:function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(2007))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},9117:function(e,t,n){"use strict";var r=n(1725),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,u=60110,s=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function m(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var b=g.prototype=new m;b.constructor=g,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:w.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+E(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+E(u=e[l],l);s+=C(u,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=C(u=u.value,t,n,c=r+E(u,l++),a);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function j(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function D(){var e=P.current;if(null===e)throw Error(p(321));return e}var M={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:u,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.1"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},8444:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTickValuesFixedDomain=t.getTickValues=t.getNiceTickValues=void 0;var r=a(n(4234)),o=n(6523),i=a(n(4206));function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e){var t=s(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function c(e,t,n){if(e.lte(0))return new r.default(0);var o=i.default.getDigitCount(e.toNumber()),a=new r.default(10).pow(o),u=e.div(a),s=1!==o?.05:.1,l=new r.default(Math.ceil(u.div(s).toNumber())).add(n).mul(s).mul(a);return t?l:new r.default(Math.ceil(l))}function f(e,t,n){var a=1,u=new r.default(e);if(!u.isint()&&n){var s=Math.abs(e);s<1?(a=new r.default(10).pow(i.default.getDigitCount(e)-1),u=new r.default(Math.floor(u.div(a).toNumber())).mul(a)):s>1&&(u=new r.default(Math.floor(e)))}else 0===e?u=new r.default(Math.floor((t-1)/2)):n||(u=new r.default(Math.floor(e)));var l=Math.floor((t-1)/2);return(0,o.compose)((0,o.map)((function(e){return u.add(new r.default(e-l).mul(a)).toNumber()})),o.range)(0,t)}function d(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new r.default(0),tickMin:new r.default(0),tickMax:new r.default(0)};var a,u=c(new r.default(t).sub(e).div(n-1),o,i);a=e<=0&&t>=0?new r.default(0):(a=new r.default(e).add(t).div(2)).sub(new r.default(a).mod(u));var s=Math.ceil(a.sub(e).div(u).toNumber()),l=Math.ceil(new r.default(t).sub(a).div(u).toNumber()),f=s+l+1;return f>n?d(e,t,n,o,i+1):(f<n&&(l=t>0?l+(n-f):l,s=t>0?s:s+(n-f)),{step:u,tickMin:a.sub(new r.default(s).mul(u)),tickMax:a.add(new r.default(l).mul(u))})}var p=(0,o.memoize)((function(e){var t=s(e,2),n=t[0],a=t[1],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=Math.max(c,2),v=s(l([n,a]),2),y=v[0],m=v[1];if(y===-1/0||m===1/0){var g=m===1/0?[y].concat(u((0,o.range)(0,c-1).map((function(){return 1/0})))):u((0,o.range)(0,c-1).map((function(){return-1/0}))).concat([m]);return n>a?(0,o.reverse)(g):g}if(y===m)return f(y,c,p);var b=d(y,m,h,p),w=b.step,x=b.tickMin,k=b.tickMax,_=i.default.rangeStep(x,k.add(new r.default(.1).mul(w)),w);return n>a?(0,o.reverse)(_):_}));t.getNiceTickValues=p;var h=(0,o.memoize)((function(e){var t=s(e,2),n=t[0],i=t[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(a,2),p=s(l([n,i]),2),h=p[0],v=p[1];if(h===-1/0||v===1/0)return[n,i];if(h===v)return f(h,a,u);var y=c(new r.default(v).sub(h).div(d-1),u,0),m=(0,o.compose)((0,o.map)((function(e){return new r.default(h).add(new r.default(e).mul(y)).toNumber()})),o.range)(0,d).filter((function(e){return e>=h&&e<=v}));return n>i?(0,o.reverse)(m):m}));t.getTickValues=h;var v=(0,o.memoize)((function(e,t){var n=s(e,2),a=n[0],f=n[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],p=s(l([a,f]),2),h=p[0],v=p[1];if(h===-1/0||v===1/0)return[a,f];if(h===v)return[h];var y=Math.max(t,2),m=c(new r.default(v).sub(h).div(y-1),d,0),g=u(i.default.rangeStep(new r.default(h),new r.default(v).sub(new r.default(.99).mul(m)),m)).concat([v]);return a>f?(0,o.reverse)(g):g}));t.getTickValuesFixedDomain=v},7583:function(e,t,n){"use strict";Object.defineProperty(t,"Zj",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"wZ",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(8444)},4206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(4234))&&r.__esModule?r:{default:r},i=n(6523);var a={rangeStep:function(e,t,n){for(var r=new o.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a},getDigitCount:function(e){return 0===e?1:Math.floor(new o.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),uninterpolateNumber:(0,i.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),uninterpolateTruncation:(0,i.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}))};t.default=a},6523:function(e,t){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=t.reverse=t.compose=t.map=t.range=t.curry=t.PLACE_HOLDER=void 0;var r=function(e){return e},o={"@@functional/placeholder":!0};t.PLACE_HOLDER=o;var i=function(e){return e===o},a=function(e){return function t(){return 0===arguments.length||1===arguments.length&&i(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},u=function e(t,r){return 1===t?r:a((function(){for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];var c=s.filter((function(e){return e!==o})).length;return c>=t?r.apply(void 0,s):e(t-c,a((function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=s.map((function(e){return i(e)?t.shift():e}));return r.apply(void 0,n(a).concat(t))})))}))},s=function(e){return u(e.length,e)};t.curry=s;t.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var l=s((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));t.map=l;t.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return r;var o=t.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};t.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};t.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}}},9609:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case s:return e;default:return t}}case y:case v:case o:return t}}}function x(e){return w(e)===f}t.isFragment=function(e){return w(e)===i}},8493:function(e,t,n){"use strict";e.exports=n(9609)},2692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(82)),o=n(7905),i=u(n(4849)),a=u(n(4170));function u(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var u=o.parser.parse(n),l=(0,i.default)(u,t);e.type="word",e.value=(0,a.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default},8334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4890),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,n){t.type===e.type&&(t={type:e.type,value:(0,i.default)(t.value,t.unit,e.unit,n),unit:e.unit});return{left:e,right:t}}(e,t,n);default:return{left:e,right:t}}},e.exports=t.default},4849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flip=l;var r,o=n(8334),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,i.default)(e.left,e.right,t),r=a(n.left,t),o=a(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(u(r.right,o.right)?n=(0,i.default)(r.left,o.left,t):u(r.right,o.left)&&(n=(0,i.default)(r.left,o.right,t)),r=a(n.left,t),o=a(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return c(o);r.type===o.type&&s(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(s(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?l(o.operator):o.operator,a(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=a({type:"MathExpression",operator:"-"===i?l(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,a(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&s(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=a({type:"MathExpression",operator:i,left:r.left,right:o},t),a(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=a({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=a({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),a(e,t)}return e}(e,t);case"/":return function(e,t){if(!s(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return s(e.left.left.type)&&s(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,a(e.left,t)):e;if(s(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(s(e.left.left.type)&&s(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(s(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(s(e.right.left.type)&&s(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&s(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?a(e.value,t):e}function u(e,t){return e.type===t.type&&e.value===t.value}function s(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function l(e){return"+"===e?"-":"+"}function c(e){return s(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=c(e.left),e.right=c(e.right)),e}t.default=a},4170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=a(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var r=n(4849),o={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function a(e,t){switch(e.type){case"MathExpression":var n=e.left,u=e.right,s=e.operator,l="";return"MathExpression"===n.type&&o[s]<o[n.operator]?l+="("+a(n,t)+")":l+=a(n,t),l+=" "+e.operator+" ","MathExpression"===u.type&&o[s]<o[u.operator]?l+="("+a(u,t)+")":"MathExpression"===u.type&&"-"===s&&["+","-"].includes(u.operator)?(u.operator=(0,r.flip)(u.operator),l+=a(u,t)):l+=a(u,t),l;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+a(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+a(e.value,t)+")":"calc("+a(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default},7905:function(e,t){var n=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function t(e,t,n){n=n||0;for(var r=0;r<t;r++)this.push(e),e+=n}function n(e,t){for(t+=e=this.length-e;e<t;e++)this.push(this[e])}function r(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];"function"===typeof o?(n++,o.apply(t,e[n])):t.push(o)}return t}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonParserError";var o={trace:function(){},JisonParserError:e,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(e){return'"'+e+'"'},getSymbolName:function(e){if(this.terminals_[e])return this.terminals_[e];var t=this.symbols_;for(var n in t)if(t[n]===e)return n;return null},describeSymbol:function(e){if(e!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[e])return this.terminal_descriptions_[e];if(e===this.EOF)return"end of input";var t=this.getSymbolName(e);return t?this.quoteName(t):null},collect_expected_token_set:function(e,t){var n=this.TERROR,r=[],o={};if(!t&&this.state_descriptions_&&this.state_descriptions_[e])return[this.state_descriptions_[e]];for(var i in this.table[e])if((i=+i)!==n){var a=t?i:this.describeSymbol(i);a&&!o[a]&&(r.push(a),o[a]=!0)}return r},productions_:function(e){for(var t=[],n=e.pop,r=e.rule,o=0,i=n.length;o<i;o++)t.push([n[o],r[o]]);return t}({pop:r([29,t,[30,10],31,31,32,32,t,[33,15]]),rule:r([2,t,[3,5],4,7,t,[1,4],2,4,6,t,[1,14],2])}),performAction:function(e,t,n){var r=this.yy;r.parser,r.lexer;switch(e){case 0:case 6:this.$=n[t-1];break;case 1:return this.$=n[t-1],n[t-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[t-1],left:n[t-2],right:n[t]};break;case 7:this.$={type:"Calc",value:n[t-1]};break;case 8:this.$={type:"Calc",value:n[t-1],prefix:n[t-5]};break;case 9:case 10:case 11:this.$=n[t];break;case 12:this.$={type:"Value",value:parseFloat(n[t])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[t])};break;case 14:this.$={type:"CssVariable",value:n[t-1]};break;case 15:this.$={type:"CssVariable",value:n[t-3],fallback:n[t-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[t]),unit:/[a-z]+/.exec(n[t])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[t]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[t]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[t]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[t]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[t]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[t]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[t]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[t]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[t]),unit:"%"};break;case 30:var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.symbol,o=e.type,i=e.state,a=e.mode,u=e.goto,s=0,l=n.length;s<l;s++){for(var c=n[s],f={},d=0;d<c;d++){var p=r.shift();switch(o.shift()){case 2:f[p]=[a.shift(),u.shift()];break;case 0:f[p]=i.shift();break;default:f[p]=[3]}}t.push(f)}return t}({len:r([24,1,5,23,1,18,t,[0,3],1,t,[0,16],t,[23,4],n,[28,3],0,0,16,1,6,6,t,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,t,[15,19,1],1,1,t,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([t,[2,19],t,[0,5],1,t,[2,24],t,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([t,[1,179],t,[2,3],n,[5,5],n,[6,4],t,[1,57]]),goto:r([5,3,4,24,t,[9,15,1],t,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,t,[2,3],28,29,2,t,[3,3],28,29,3,n,[53,4],t,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(e){for(var t={},n=e.idx,r=e.goto,o=0,i=n.length;o<i;o++){t[n[o]]=r[o]}return t}({idx:r([6,7,8,t,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,t,[16,14,1],12,1,30,13,t,[4,4,1],14,15,8])}),parseError:function(e,t,n){if(!t.recoverable)throw"function"===typeof this.trace&&this.trace(e),n||(n=this.JisonParserError),new n(e,t);"function"===typeof this.trace&&this.trace(e),t.destroy()},parse:function(e){var t,n=this,r=new Array(128),o=new Array(128),i=new Array(128),a=this.table,u=0,s=0,l=(this.TERROR,this.EOF),c=(this.options.errorRecoveryTokenDiscardCount,[0,54]);t=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var f={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function d(){var e=t.fastLex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||l}"function"!==typeof assert||assert,this.yyGetSharedState=function(){return f},function(e,t){for(var n in t)"undefined"===typeof e[n]&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}(f,this.yy),f.lexer=t,f.parser=this,"function"===typeof f.parseError?this.parseError=function(e,t,n){return n||(n=this.JisonParserError),f.parseError.call(this,e,t,n)}:this.parseError=this.originalParseError,"function"===typeof f.quoteName?this.quoteName=function(e){return f.quoteName.call(this,e)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(e,n,a){var s,l;n&&((f.post_parse||this.post_parse)&&(l=this.constructParseErrorInfo(null,null,null,!1)),f.post_parse&&"undefined"!==typeof(s=f.post_parse.call(this,f,e,l))&&(e=s),this.post_parse&&"undefined"!==typeof(s=this.post_parse.call(this,f,e,l))&&(e=s),l&&l.destroy&&l.destroy());if(this.__reentrant_call_depth>1)return e;if(t.cleanupAfterLex&&t.cleanupAfterLex(a),f&&(f.lexer=void 0,f.parser=void 0,t.yy===f&&(t.yy=void 0)),f=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,o.length=0,i.length=0,u=0,!a){for(var c=this.__error_infos.length-1;c>=0;c--){var d=this.__error_infos[c];d&&"function"===typeof d.destroy&&d.destroy()}this.__error_infos.length=0}return e},this.constructParseErrorInfo=function(e,n,a,l){var c={errStr:e,exception:n,text:t.match,value:t.yytext,token:this.describeSymbol(s)||s,token_id:s,line:t.yylineno,expected:a,recoverable:l,state:p,action:h,new_state:w,symbol_stack:r,state_stack:o,value_stack:i,stack_pointer:u,yy:f,lexer:t,parser:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(c),c};var p,h,v,y,m,g,b,w,x=function(){var e=t.lex();return"number"!==typeof e&&(e=n.symbols_[e]||e),e||l},k={$:!0,_$:void 0,yy:f},_=!1;try{if(this.__reentrant_call_depth++,t.setInput(e,f),"function"===typeof t.canIUse)t.canIUse().fastLex&&(x=d);for(i[u]=null,o[u]=0,r[u]=0,++u,this.pre_parse&&this.pre_parse.call(this,f),f.pre_parse&&f.pre_parse.call(this,f),w=o[u-1];;){if(p=w,this.defaultActions[p])h=2,w=this.defaultActions[p];else if(s||(s=x()),y=a[p]&&a[p][s]||c,w=y[1],!(h=y[0])){var O,S=this.describeSymbol(s)||s,E=this.collect_expected_token_set(p);O="number"===typeof t.yylineno?"Parse error on line "+(t.yylineno+1)+": ":"Parse error: ","function"===typeof t.showPosition&&(O+="\n"+t.showPosition(69,10)+"\n"),E.length?O+="Expecting "+E.join(", ")+", got unexpected "+S:O+="Unexpected "+S,m=this.constructParseErrorInfo(O,null,E,!1),"undefined"!==typeof(v=this.parseError(m.errStr,m,this.JisonParserError))&&(_=v);break}switch(h){default:if(h instanceof Array){m=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+p+", token: "+s,null,null,!1),"undefined"!==typeof(v=this.parseError(m.errStr,m,this.JisonParserError))&&(_=v);break}m=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(v=this.parseError(m.errStr,m,this.JisonParserError))&&(_=v);break;case 1:r[u]=s,i[u]=t.yytext,o[u]=w,++u,s=0;continue;case 2:if(g=(b=this.productions_[w-1])[1],"undefined"!==typeof(v=this.performAction.call(k,w,u-1,i))){_=v;break}u-=g;var C=b[0];r[u]=C,i[u]=k.$,w=a[o[u-1]][C],o[u]=w,++u;continue;case 3:-2!==u&&(_=!0,u--,"undefined"!==typeof i[u]&&(_=i[u]))}break}}catch(j){if(j instanceof this.JisonParserError)throw j;if(t&&"function"===typeof t.JisonLexerError&&j instanceof t.JisonLexerError)throw j;m=this.constructParseErrorInfo("Parsing aborted due to exception.",j,null,!1),_=!1,"undefined"!==typeof(v=this.parseError(m.errStr,m,this.JisonParserError))&&(_=v)}finally{_=this.cleanupAfterParse(_,!0,!0),this.__reentrant_call_depth--}return _}};o.originalParseError=o.parseError,o.originalQuoteName=o.quoteName;var i=function(){function e(e,t){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r=t.exception;this.message=r.message||e,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(e).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,Error.prototype):e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.name="JisonLexerError";var t={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(e,t,n){if(e=""+e,void 0==n&&(n=!(e.indexOf("\n")>0&&e.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(e)||(e+="\n"),e+="\n  Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(e.length&&"\n"!==e[e.length-1]&&"\n"!==r[0]?e+="\n"+r:e+=r)}var o={errStr:e,recoverable:!!t,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"===typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(o),o},parseError:function(e,t,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,e,t,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,e,t,n)||this.ERROR}throw new n(e,t)},yyerror:function(e){var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+t+": "+e,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(e){if(this.setInput("",{}),!e){for(var t=this.__error_infos.length-1;t>=0;t--){var n=this.__error_infos[t];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var e=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:e,last_line:this.yylineno+1,last_column:e,range:[this.offset,this.offset]}},setInput:function(e,t){if(this.yy=t||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,o=n.length;r<o;r++){"number"===typeof(d=n[r])&&(n[r]=n[d])}var i=this.conditions;for(var a in i){var u=i[a],s=u.rules,l=(o=s.length,new Array(o+1)),c=new Array(o+1);for(r=0;r<o;r++){var f=s[r],d=n[f];l[r+1]=d,c[r+1]=f}u.rules=c,u.__rule_regexes=l,u.__rule_count=o}this.__decompressed=!0}return this._input=e||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(e,t){var n=e.call(this,this._input,t);return"string"!==typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=1,n=!1;if("\n"===e)n=!0;else if("\r"===e){n=!0;var r=this._input[1];"\n"===r&&(t++,e+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(t),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);if(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.yyleng=this.yytext.length,this.offset-=t,this.match=this.match.substr(0,this.match.length-t),this.matched=this.matched.substr(0,this.matched.length-t),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,o=r.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.length-1].length}else this.yylloc.last_column-=t;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var t=this.constructLexErrorInfo("Lexical error"+e+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(t.errStr,t,this.JisonLexerError)||this.ERROR}return this},less:function(e){return this.unput(this.match.slice(e))},pastInput:function(e,t){var n=this.matched.substring(0,this.matched.length-this.match.length);e<0?e=n.length:e||(e=20),t<0?t=n.length:t||(t=1);var r=(n=n.substr(2*-e-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-t)).join("\n")).length>e&&(n="..."+n.substr(-e)),n},upcomingInput:function(e,t){var n=this.match;e<0?e=n.length+this._input.length:e||(e=20),t<0?t=e:t||(t=1),n.length<2*e+2&&(n+=this._input.substring(0,2*e+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,t)).join("\n")).length>e&&(n=n.substring(0,e)+"..."),n},showPosition:function(e,t){var n=this.pastInput(e).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(t).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(e,t,n,r){var o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return e&&(o.first_line=0|e.first_line,o.last_line=0|e.last_line,o.first_column=0|e.first_column,o.last_column=0|e.last_column,e.range&&(o.range[0]=0|e.range[0],o.range[1]=0|e.range[1])),(o.first_line<=0||o.last_line<o.first_line)&&(o.first_line<=0&&t&&(o.first_line=0|t.last_line,o.first_column=0|t.last_column,t.range&&(o.range[0]=0|e.range[1])),(o.last_line<=0||o.last_line<o.first_line)&&n&&(o.last_line=0|n.first_line,o.last_column=0|n.first_column,n.range&&(o.range[1]=0|e.range[0])),o.first_line<=0&&r&&(o.last_line<=0||r.last_line<=o.last_line)&&(o.first_line=0|r.first_line,o.first_column=0|r.first_column,r.range&&(o.range[0]=0|r.range[0])),o.last_line<=0&&r&&(o.first_line<=0||r.first_line>=o.first_line)&&(o.last_line=0|r.last_line,o.last_column=0|r.last_column,r.range&&(o.range[1]=0|r.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0],o.range[1]=this.yylloc.range[1]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column,o.range[1]=this.yylloc.range[1])),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(e,t,n){e=this.deriveLocationInfo(e,t,n);var r=(this.matched+this._input).split("\n"),o=Math.max(1,t?t.first_line:e.first_line-3),i=Math.max(1,n?n.last_line:e.last_line+1),a=1+Math.log10(1|i)|0,u=new Array(a).join(" "),s=[],l=r.slice(o-1,i+1).map((function(t,n){var r=n+o,i=(u+r).substr(-a)+": "+t,l=new Array(a+1).join("^"),c=3,f=0;(r===e.first_line?(c+=e.first_column,f=Math.max(2,(r===e.last_line?e.last_column:t.length)-e.first_column+1)):r===e.last_line?f=Math.max(2,e.last_column+1):r>e.first_line&&r<e.last_line&&(f=Math.max(2,t.length+1)),f)&&(i+="\n"+l+new Array(c).join(".")+new Array(f).join("^"),t.trim().length>0&&s.push(n));return i=i.replace(/\t/g," ")}));if(s.length>4){var c=s[1]+1,f=s[s.length-2]-1,d=new Array(a+1).join(" ")+"  (...continued...)";d+="\n"+new Array(a+1).join("-")+"  (---------------)",l.splice(c,f-c+1,d)}return l.join("\n")},describeYYLLOC:function(e,t){var n,r=e.first_line,o=e.last_line,i=e.first_column,a=e.last_column;if(0===o-r?(n="line "+r+", ",n+=a-i<=1?"column "+i:"columns "+i+" .. "+a):n="lines "+r+"(column "+i+") .. "+o+"(column "+a+")",e.range&&t){var u=e.range[0],s=e.range[1]-1;n+=s<=u?" {String Offset: "+u+"}":" {String Offset range: "+u+" .. "+s+"}"}return n},test_match:function(e,t){var n,r,o,i,a;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(i=e[0]).length,(r=i.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=i,this.match+=i,this.matched+=i,this.matches=e,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var u in o)this[u]=o[u];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||this.clear();var o=this.__currentRuleSet__;if(!o&&(!(o=this.__currentRuleSet__=this._currentRules())||!o.rules)){var i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+i+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var u=o.rules,s=o.__rule_regexes,l=o.__rule_count,c=1;c<=l;c++)if((n=this._input.match(s[c]))&&(!t||n[0].length>t[0].length)){if(t=n,r=c,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,u[c])))return e;if(this._backtrack){t=void 0;continue}return!1}if(!this.options.flex)break}if(t)return!1!==(e=this.test_match(t,u[r]))&&e;if(this._input){i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+i+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var f=this._input,d=this.topState(),p=this.conditionStack.length;return(e=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||f!==this._input||d!==this.topState()||p!==this.conditionStack.length||this.input()),e}return this.done=!0,this.clear(),this.EOF},lex:function(){var e;for("function"===typeof this.pre_lex&&(e=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(e=this.options.pre_lex.call(this,e)||e),this.yy&&"function"===typeof this.yy.pre_lex&&(e=this.yy.pre_lex.call(this,e)||e);!e;)e=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(e=this.yy.post_lex.call(this,e)||e),"function"===typeof this.options.post_lex&&(e=this.options.post_lex.call(this,e)||e),"function"===typeof this.post_lex&&(e=this.post_lex.call(this,e)||e),e},fastLex:function(){for(var e;!e;)e=this.next();return e},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(e){return this.pushState(e)},pushState:function(e){return this.conditionStack.push(e),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:e,performAction:function(e,t,n){if(1!==t)return this.simpleCaseActionClusters[t]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();t.parser=n,t.Parser=n.Parser,t.parse=function(){return n.parse.apply(n,arguments)}},82:function(e,t,n){var r=n(3257),o=n(2993),i=n(9581);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},a.prototype.walk=function(e,t){return o(this.nodes,e,t),this},a.unit=n(4119),a.walk=o,a.stringify=i,e.exports=a},3257:function(e){var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),u=",".charCodeAt(0),s=":".charCodeAt(0),l="*".charCodeAt(0);e.exports=function(e){for(var c,f,d,p,h,v,y,m,g=[],b=e,w=0,x=b.charCodeAt(w),k=b.length,_=[{nodes:g}],O=0,S="",E="",C="";w<k;)if(x<=32){c=w;do{c+=1,x=b.charCodeAt(c)}while(x<=32);p=b.slice(w,c),d=g[g.length-1],x===n&&O?C=p:d&&"div"===d.type?d.after=p:x===u||x===s||x===a&&b.charCodeAt(c+1)!==l?E=p:g.push({type:"space",sourceIndex:w,value:p}),w=c}else if(x===r||x===o){c=w,p={type:"string",sourceIndex:w,quote:f=x===r?"'":'"'};do{if(h=!1,~(c=b.indexOf(f,c+1)))for(v=c;b.charCodeAt(v-1)===i;)v-=1,h=!h;else c=(b+=f).length-1,p.unclosed=!0}while(h);p.value=b.slice(w+1,c),g.push(p),w=c+1,x=b.charCodeAt(w)}else if(x===a&&b.charCodeAt(w+1)===l)p={type:"comment",sourceIndex:w},-1===(c=b.indexOf("*/",w))&&(p.unclosed=!0,c=b.length),p.value=b.slice(w+2,c),g.push(p),w=c+2,x=b.charCodeAt(w);else if(x===a||x===u||x===s)p=b[w],g.push({type:"div",sourceIndex:w-E.length,value:p,before:E,after:""}),E="",w+=1,x=b.charCodeAt(w);else if(t===x){c=w;do{c+=1,x=b.charCodeAt(c)}while(x<=32);if(p={type:"function",sourceIndex:w-S.length,value:S,before:b.slice(w+1,c)},w=c,"url"===S&&x!==r&&x!==o){c-=1;do{if(h=!1,~(c=b.indexOf(")",c+1)))for(v=c;b.charCodeAt(v-1)===i;)v-=1,h=!h;else c=(b+=")").length-1,p.unclosed=!0}while(h);y=c;do{y-=1,x=b.charCodeAt(y)}while(x<=32);p.nodes=w!==y+1?[{type:"word",sourceIndex:w,value:b.slice(w,y+1)}]:[],p.unclosed&&y+1!==c?(p.after="",p.nodes.push({type:"space",sourceIndex:y+1,value:b.slice(y+1,c)})):p.after=b.slice(y+1,c),w=c+1,x=b.charCodeAt(w),g.push(p)}else O+=1,p.after="",g.push(p),_.push(p),g=p.nodes=[],m=p;S=""}else if(n===x&&O)w+=1,x=b.charCodeAt(w),m.after=C,C="",O-=1,_.pop(),g=(m=_[O]).nodes;else{c=w;do{x===i&&(c+=1),c+=1,x=b.charCodeAt(c)}while(c<k&&!(x<=32||x===r||x===o||x===u||x===s||x===a||x===t||x===n&&O));p=b.slice(w,c),t===x?S=p:g.push({type:"word",sourceIndex:w,value:p}),w=c}for(w=_.length-1;w;w-=1)_[w].unclosed=!0;return _[0].nodes}},9581:function(e){function t(e,t){var r,o,i=e.type,a=e.value;return t&&void 0!==(o=t(e))?o:"word"===i||"space"===i?a:"string"===i?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===i?"/*"+a+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes),"function"!==i?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,o;if(Array.isArray(e)){for(r="",o=e.length-1;~o;o-=1)r=t(e[o],n)+r;return r}return t(e,n)}e.exports=n},4119:function(e){var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);e.exports=function(e){for(var a,u=0,s=e.length,l=!1,c=-1,f=!1;u<s;){if((a=e.charCodeAt(u))>=48&&a<=57)f=!0;else if(a===o||a===i){if(c>-1)break;c=u}else if(a===r){if(l)break;l=!0}else{if(a!==n&&a!==t)break;if(0!==u)break}u+=1}return c+1===u&&u--,!!f&&{number:e.slice(0,u),unit:e.slice(u)}}},2993:function(e){e.exports=function e(t,n,r){var o,i,a,u;for(o=0,i=t.length;o<i;o+=1)a=t[o],r||(u=n(a,o,t)),!1!==u&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,o,t)}},9724:function(e,t,n){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(2791))},6813:function(e,t){"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,f=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,m=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+g;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(n){throw x.postMessage(null),n}}else v=!1},n=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){m=d((function(){e(t.unstable_now())}),n)},o=function(){p(m),m=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],u=i+1,s=e[u];if(void 0!==a&&0>S(a,n))void 0!==s&&0>S(s,a)?(e[r]=s,e[u]=n,r=u):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],C=[],j=1,T=null,P=3,D=!1,M=!1,A=!1;function N(e){for(var t=_(C);null!==t;){if(null===t.callback)O(C);else{if(!(t.startTime<=e))break;O(C),t.sortIndex=t.expirationTime,k(E,t)}t=_(C)}}function I(e){if(A=!1,N(e),!M)if(null!==_(E))M=!0,n(R);else{var t=_(C);null!==t&&r(I,t.startTime-e)}}function R(e,n){M=!1,A&&(A=!1,o()),D=!0;var i=P;try{for(N(n),T=_(E);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"===typeof a){T.callback=null,P=T.priorityLevel;var u=a(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?T.callback=u:T===_(E)&&O(E),N(n)}else O(E);T=_(E)}if(null!==T)var s=!0;else{var l=_(C);null!==l&&r(I,l.startTime-n),s=!1}return s}finally{T=null,P=i,D=!1}}var F=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||D||(M=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return _(E)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,i,a){var u=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?u+a:u:a=u,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:j++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>u?(e.sortIndex=a,k(C,e),null===_(E)&&e===_(C)&&(A?o():A=!0,r(I,a-u))):(e.sortIndex=s,k(E,e),M||D||(M=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9613:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var l=i[s];if(!u(l))return!1;var c=e[l],f=t[l];if(!1===(o=n?n.call(r,c,f,l):void 0)||void 0===o&&c!==f)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t},7462:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},1721:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},7173:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(4187);function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=10,a=2;function u(e){return s(e,[])}function s(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),o=function(e){var t=e[String(r.Z)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==o){var u=o.call(e);if(u!==e)return"string"===typeof u?u:s(u,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(i,e.length),r=e.length-n,o=[],u=0;u<n;++u)o.push(s(e[u],t));1===r?o.push("... 1 more item"):r>1&&o.push("... ".concat(r," more items"));return"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+s(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},4187:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},3104:function(e,t,n){"use strict";n.d(t,{Ye:function(){return i},WU:function(){return a},UG:function(){return u}});var r=n(4187);function o(e){var t=e.prototype.toJSON;"function"===typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();o(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function u(e){return null!=e&&"string"===typeof e.kind}o(a)},7810:function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,o=0,i=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,o=0;break;case 9:case 32:++o;break;default:r&&!n&&(null===i||o<i)&&(i=o),r=!1}return null!==(t=i)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&o(t[i]);)++i;for(var a=t.length;a>i&&o(t[a-1]);)--a;return t.slice(i,a).join("\n")}function o(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],u=!r||i||a||n,s="";return!u||r&&o||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,u&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,{LZ:function(){return i},W7:function(){return r}})},3208:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},5154:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.r(t),n.d(t,{Parser:function(){return Y},parse:function(){return z},parseType:function(){return H},parseValue:function(){return q}});"function"===typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var o="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function i(e,t){for(var n,r=/\r\n|[\n\r]/g,o=1,i=t+1;(n=r.exec(e.body))&&n.index<t;)o+=1,i=t+1-(n.index+n[0].length);return{line:o,column:i}}function a(e){return u(e.source,i(e.source,e.start))}function u(e,t){var n=e.locationOffset.column-1,r=l(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,u=1===t.line?n:0,c=t.column+u,f="".concat(e.name,":").concat(a,":").concat(c,"\n"),d=r.split(/\r\n|[\n\r]/g),p=d[o];if(p.length>120){for(var h=Math.floor(c/80),v=c%80,y=[],m=0;m<p.length;m+=80)y.push(p.slice(m,m+80));return f+s([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",l(v-1)+"^"],["",y[h+1]]]))}return f+s([["".concat(a-1),d[o-1]],["".concat(a),p],["",l(c-1)+"^"],["".concat(a+1),d[o+1]]])}function s(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],o=e[1];return l(n-(t=r).length)+t+(o?" | "+o:" |")})).join("\n")}function l(e){return Array(e+1).join(" ")}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t="function"===typeof Map?new Map:void 0;return h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return v(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)},h(e)}function v(e,t,n){return v=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&m(o,n.prototype),o},v.apply(null,arguments)}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,n,s,l=function(e){var t=y();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}(c);function c(e,t,n,o,a,u,s){var f,h,v,y,m;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),m=l.call(this,e);var g,b=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,w=n;!w&&b&&(w=null===(g=b[0].loc)||void 0===g?void 0:g.source);var x,k=o;!k&&b&&(k=b.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),k&&0===k.length&&(k=void 0),o&&n?x=o.map((function(e){return i(n,e)})):b&&(x=b.reduce((function(e,t){return t.loc&&e.push(i(t.loc.source,t.loc.start)),e}),[]));var _,O=s;if(null==O&&null!=u){var S=u.extensions;"object"==r(_=S)&&null!==_&&(O=S)}return Object.defineProperties(p(m),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(f=x)&&void 0!==f?f:void 0,enumerable:null!=x},path:{value:null!==a&&void 0!==a?a:void 0,enumerable:null!=a},nodes:{value:null!==b&&void 0!==b?b:void 0},source:{value:null!==(h=w)&&void 0!==h?h:void 0},positions:{value:null!==(v=k)&&void 0!==v?v:void 0},originalError:{value:u},extensions:{value:null!==(y=O)&&void 0!==y?y:void 0,enumerable:null!=O}}),null!==u&&void 0!==u&&u.stack?(Object.defineProperty(p(m),"stack",{value:u.stack,writable:!0,configurable:!0}),d(m)):(Error.captureStackTrace?Error.captureStackTrace(p(m),c):Object.defineProperty(p(m),"stack",{value:Error().stack,writable:!0,configurable:!0}),m)}return t=c,(n=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var o=r[n];o.loc&&(t+="\n\n"+a(o.loc))}else if(e.source&&e.locations)for(var i=0,s=e.locations;i<s.length;i++){var l=s[i];t+="\n\n"+u(e.source,l)}return t}(this)}},{key:o,get:function(){return"Object"}}])&&f(t.prototype,n),s&&f(t,s),c}(h(Error));function w(e,t,n){return new b("Syntax Error: ".concat(n),void 0,e,[t])}var x=n(3208),k=n(3104),_=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),O=n(7173);function S(e,t){if(!Boolean(e))throw new Error(t)}var E=function(e,t){return e instanceof t};function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||S(0,"Body must be a string. Received: ".concat((0,O.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||S(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||S(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:o,get:function(){return"Source"}}])&&C(t.prototype,n),r&&C(t,r),e}();var T=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),P=n(7810),D=function(){function e(e){var t=new k.WU(_.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==_.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=A(this,e)}while(e.kind===_.COMMENT);return e},e}();function M(e){return isNaN(e)?_.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function A(e,t){for(var n=e.source,r=n.body,o=r.length,i=t.end;i<o;){var a=r.charCodeAt(i),u=e.line,s=1+i-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 33:return new k.WU(_.BANG,i,i+1,u,s,t);case 35:return I(n,i,u,s,t);case 36:return new k.WU(_.DOLLAR,i,i+1,u,s,t);case 38:return new k.WU(_.AMP,i,i+1,u,s,t);case 40:return new k.WU(_.PAREN_L,i,i+1,u,s,t);case 41:return new k.WU(_.PAREN_R,i,i+1,u,s,t);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return new k.WU(_.SPREAD,i,i+3,u,s,t);break;case 58:return new k.WU(_.COLON,i,i+1,u,s,t);case 61:return new k.WU(_.EQUALS,i,i+1,u,s,t);case 64:return new k.WU(_.AT,i,i+1,u,s,t);case 91:return new k.WU(_.BRACKET_L,i,i+1,u,s,t);case 93:return new k.WU(_.BRACKET_R,i,i+1,u,s,t);case 123:return new k.WU(_.BRACE_L,i,i+1,u,s,t);case 124:return new k.WU(_.PIPE,i,i+1,u,s,t);case 125:return new k.WU(_.BRACE_R,i,i+1,u,s,t);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?V(n,i,u,s,t,e):L(n,i,u,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return R(n,i,a,u,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return W(n,i,u,s,t)}throw w(n,i,N(a))}var l=e.line,c=1+i-e.lineStart;return new k.WU(_.EOF,o,o,l,c,t)}function N(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(M(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(M(e),".")}function I(e,t,n,r,o){var i,a=e.body,u=t;do{i=a.charCodeAt(++u)}while(!isNaN(i)&&(i>31||9===i));return new k.WU(_.COMMENT,t,u,n,r,o,a.slice(t+1,u))}function R(e,t,n,r,o,i){var a=e.body,u=n,s=t,l=!1;if(45===u&&(u=a.charCodeAt(++s)),48===u){if((u=a.charCodeAt(++s))>=48&&u<=57)throw w(e,s,"Invalid number, unexpected digit after 0: ".concat(M(u),"."))}else s=F(e,s,u),u=a.charCodeAt(s);if(46===u&&(l=!0,u=a.charCodeAt(++s),s=F(e,s,u),u=a.charCodeAt(s)),69!==u&&101!==u||(l=!0,43!==(u=a.charCodeAt(++s))&&45!==u||(u=a.charCodeAt(++s)),s=F(e,s,u),u=a.charCodeAt(s)),46===u||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(u))throw w(e,s,"Invalid number, expected digit but got: ".concat(M(u),"."));return new k.WU(l?_.FLOAT:_.INT,t,s,r,o,i,a.slice(t,s))}function F(e,t,n){var r=e.body,o=t,i=n;if(i>=48&&i<=57){do{i=r.charCodeAt(++o)}while(i>=48&&i<=57);return o}throw w(e,o,"Invalid number, expected digit but got: ".concat(M(i),"."))}function L(e,t,n,r,o){for(var i=e.body,a=t+1,u=a,s=0,l="";a<i.length&&!isNaN(s=i.charCodeAt(a))&&10!==s&&13!==s;){if(34===s)return l+=i.slice(u,a),new k.WU(_.STRING,t,a+1,n,r,o,l);if(s<32&&9!==s)throw w(e,a,"Invalid character within String: ".concat(M(s),"."));if(++a,92===s){switch(l+=i.slice(u,a-1),s=i.charCodeAt(a)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var c=B(i.charCodeAt(a+1),i.charCodeAt(a+2),i.charCodeAt(a+3),i.charCodeAt(a+4));if(c<0){var f=i.slice(a+1,a+5);throw w(e,a,"Invalid character escape sequence: \\u".concat(f,"."))}l+=String.fromCharCode(c),a+=4;break;default:throw w(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(s),"."))}u=++a}}throw w(e,a,"Unterminated string.")}function V(e,t,n,r,o,i){for(var a=e.body,u=t+3,s=u,l=0,c="";u<a.length&&!isNaN(l=a.charCodeAt(u));){if(34===l&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2))return c+=a.slice(s,u),new k.WU(_.BLOCK_STRING,t,u+3,n,r,o,(0,P.W7)(c));if(l<32&&9!==l&&10!==l&&13!==l)throw w(e,u,"Invalid character within String: ".concat(M(l),"."));10===l?(++u,++i.line,i.lineStart=u):13===l?(10===a.charCodeAt(u+1)?u+=2:++u,++i.line,i.lineStart=u):92===l&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)&&34===a.charCodeAt(u+3)?(c+=a.slice(s,u)+'"""',s=u+=4):++u}throw w(e,u,"Unterminated string.")}function B(e,t,n,r){return U(e)<<12|U(t)<<8|U(n)<<4|U(r)}function U(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function W(e,t,n,r,o){for(var i=e.body,a=i.length,u=t+1,s=0;u!==a&&!isNaN(s=i.charCodeAt(u))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++u;return new k.WU(_.NAME,t,u,n,r,o,i.slice(t,u))}function z(e,t){return new Y(e,t).parseDocument()}function q(e,t){var n=new Y(e,t);n.expectToken(_.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(_.EOF),r}function H(e,t){var n=new Y(e,t);n.expectToken(_.SOF);var r=n.parseTypeReference();return n.expectToken(_.EOF),r}var Y=function(){function e(e,t){var n=function(e){return E(e,j)}(e)?e:new j(e);this._lexer=new D(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(_.NAME);return{kind:x.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:x.h.DOCUMENT,definitions:this.many(_.SOF,this.parseDefinition,_.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(_.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(_.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(_.BRACE_L))return{kind:x.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(_.NAME)&&(t=this.parseName()),{kind:x.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(_.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(_.PAREN_L,this.parseVariableDefinition,_.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:x.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(_.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(_.DOLLAR),{kind:x.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:x.h.SELECTION_SET,selections:this.many(_.BRACE_L,this.parseSelection,_.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(_.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(_.COLON)?(e=r,t=this.parseName()):t=r,{kind:x.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_.PAREN_L,t,_.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(_.COLON),{kind:x.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:x.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(_.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(_.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(_.NAME)?{kind:x.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:x.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:x.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:x.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case _.BRACKET_L:return this.parseList(e);case _.BRACE_L:return this.parseObject(e);case _.INT:return this._lexer.advance(),{kind:x.h.INT,value:t.value,loc:this.loc(t)};case _.FLOAT:return this._lexer.advance(),{kind:x.h.FLOAT,value:t.value,loc:this.loc(t)};case _.STRING:case _.BLOCK_STRING:return this.parseStringLiteral();case _.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:x.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:x.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:x.h.NULL,loc:this.loc(t)};default:return{kind:x.h.ENUM,value:t.value,loc:this.loc(t)}}case _.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:x.h.STRING,value:e.value,block:e.kind===_.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:x.h.LIST,values:this.any(_.BRACKET_L,(function(){return t.parseValueLiteral(e)}),_.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:x.h.OBJECT,fields:this.any(_.BRACE_L,(function(){return t.parseObjectField(e)}),_.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(_.COLON),{kind:x.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(_.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(_.AT),{kind:x.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(_.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(_.BRACKET_R),e={kind:x.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(_.BANG)?{kind:x.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:x.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===_.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(_.STRING)||this.peek(_.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);return{kind:x.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(_.COLON);var n=this.parseNamedType();return{kind:x.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:x.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:x.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(_.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(_.AMP)||this.peek(_.NAME));return t}return this.delimitedMany(_.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(_.BRACE_L)&&this._lexer.lookahead().kind===_.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(_.BRACE_L,this.parseFieldDefinition,_.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(_.COLON);var o=this.parseTypeReference(),i=this.parseDirectives(!0);return{kind:x.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(_.PAREN_L,this.parseInputValueDef,_.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(_.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(_.EQUALS)&&(r=this.parseValueLiteral(!0));var i=this.parseDirectives(!0);return{kind:x.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:i,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:x.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:x.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(_.EQUALS)?this.delimitedMany(_.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:x.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(_.BRACE_L,this.parseEnumValueDefinition,_.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:x.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:x.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(_.BRACE_L,this.parseInputValueDef,_.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===_.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:x.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:x.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:x.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:x.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var i=this.parseDirectiveLocations();return{kind:x.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(_.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==T[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new k.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw w(this._lexer.source,t.start,"Expected ".concat(K(e),", found ").concat($(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==_.NAME||t.value!==e)throw w(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat($(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===_.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return w(this._lexer.source,t.start,"Unexpected ".concat($(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function $(e){var t=e.value;return K(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function K(e){return function(e){return e===_.BANG||e===_.DOLLAR||e===_.AMP||e===_.PAREN_L||e===_.PAREN_R||e===_.SPREAD||e===_.COLON||e===_.EQUALS||e===_.AT||e===_.BRACKET_L||e===_.BRACKET_R||e===_.BRACE_L||e===_.PIPE||e===_.BRACE_R}(e)?'"'.concat(e,'"'):e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&r;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{15:"a6abba59",17:"229d8e4f",113:"34a450ef",259:"3cde4153",363:"7925e9b6",370:"067b9999",439:"aa6229b1",449:"2404e991",479:"f2797249",697:"e9e713e1",728:"9cb7d39d",766:"9109f729",782:"874aefe9",840:"eeb514b0",870:"b5baff81",882:"3b883b39",939:"8687a9e2",946:"33e283af"}[e]+".chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="environice:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var u,s;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){u=f;break}}u||(s=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",t+i),u.src=r),e[r]=[o];var d=function(t,n){u.onerror=u.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),s&&document.head.appendChild(u)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var a=n.p+n.u(t),u=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+t,t)}};var t=function(t,r){var o,i,a=r[0],u=r[1],s=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(s)s(n)}for(t&&t(r);l<a.length;l++)i=a[l],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkenvironice=self.webpackChunkenvironice||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0,function(){"use strict";var e={};n.r(e),n.d(e,{scaleBand:function(){return wb},scaleDiverging:function(){return gO},scaleDivergingLog:function(){return bO},scaleDivergingPow:function(){return xO},scaleDivergingSqrt:function(){return kO},scaleDivergingSymlog:function(){return wO},scaleIdentity:function(){return rx},scaleImplicit:function(){return gb},scaleLinear:function(){return nx},scaleLog:function(){return dx},scaleOrdinal:function(){return bb},scalePoint:function(){return kb},scalePow:function(){return xx},scaleQuantile:function(){return Dx},scaleQuantize:function(){return Mx},scaleRadial:function(){return Ox},scaleSequential:function(){return fO},scaleSequentialLog:function(){return dO},scaleSequentialPow:function(){return hO},scaleSequentialQuantile:function(){return yO},scaleSequentialSqrt:function(){return vO},scaleSequentialSymlog:function(){return pO},scaleSqrt:function(){return kx},scaleSymlog:function(){return yx},scaleThreshold:function(){return Ax},scaleTime:function(){return tO},scaleUtc:function(){return sO},tickFormat:function(){return ex}});var t=n(2791),r=n(4164),o=n(7441),i=n(9613),a=n.n(i);var u=function(e){function t(e,r,s,l,d){for(var p,h,v,y,w,k=0,_=0,O=0,S=0,E=0,M=0,N=v=p=0,R=0,F=0,L=0,V=0,B=s.length,U=B-1,W="",z="",q="",H="";R<B;){if(h=s.charCodeAt(R),R===U&&0!==_+S+O+k&&(0!==_&&(h=47===_?10:47),S=O=k=0,B++,U++),0===_+S+O+k){if(R===U&&(0<F&&(W=W.replace(f,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=s.charAt(R)}h=59}switch(h){case 123:for(p=(W=W.trim()).charCodeAt(0),v=1,V=++R;R<B;){switch(h=s.charCodeAt(R)){case 123:v++;break;case 125:v--;break;case 47:switch(h=s.charCodeAt(R+1)){case 42:case 47:e:{for(N=R+1;N<U;++N)switch(s.charCodeAt(N)){case 47:if(42===h&&42===s.charCodeAt(N-1)&&R+2!==N){R=N+1;break e}break;case 10:if(47===h){R=N+1;break e}}R=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==h;);}if(0===v)break;R++}if(v=s.substring(V,R),0===p&&(p=(W=W.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(W=W.replace(f,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=D}if(V=(v=t(r,F,v,h,d+1)).length,0<A&&(w=u(3,v,F=n(D,W,L),r,j,C,V,h,d,l),W=F.join(""),void 0!==w&&0===(V=(v=w.trim()).length)&&(h=0,v="")),0<V)switch(h){case 115:W=W.replace(x,a);case 100:case 109:case 45:v=W+"{"+v+"}";break;case 107:v=(W=W.replace(m,"$1 $2"))+"{"+v+"}",v=1===P||2===P&&i("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=W+v,112===l&&(z+=v,v="")}else v=""}else v=t(r,n(r,W,L),v,l,d+1);q+=v,v=L=F=N=p=0,W="",h=s.charCodeAt(++R);break;case 125:case 59:if(1<(V=(W=(0<F?W.replace(f,""):W).trim()).length))switch(0===N&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(V=(W=W.replace(" ",":")).length),0<A&&void 0!==(w=u(1,W,r,e,j,C,z.length,l,d,l))&&0===(V=(W=w.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),h=W.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=W+s.charAt(R);break}default:58!==W.charCodeAt(V-1)&&(z+=o(W,p,h,W.charCodeAt(2)))}L=F=N=p=0,W="",h=s.charCodeAt(++R)}}switch(h){case 13:case 10:47===_?_=0:0===1+p&&107!==l&&0<W.length&&(F=1,W+="\0"),0<A*I&&u(0,W,r,e,j,C,z.length,l,d,l),C=1,j++;break;case 59:case 125:if(0===_+S+O+k){C++;break}default:switch(C++,y=s.charAt(R),h){case 9:case 32:if(0===S+k+_)switch(E){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===S+_+k&&(F=L=1,y="\f"+y);break;case 108:if(0===S+_+k+T&&0<N)switch(R-N){case 2:112===E&&58===s.charCodeAt(R-3)&&(T=E);case 8:111===M&&(T=M)}break;case 58:0===S+_+k&&(N=R);break;case 44:0===_+O+S+k&&(F=1,y+="\r");break;case 34:case 39:0===_&&(S=S===h?0:0===S?h:S);break;case 91:0===S+_+O&&k++;break;case 93:0===S+_+O&&k--;break;case 41:0===S+_+k&&O--;break;case 40:if(0===S+_+k){if(0===p)if(2*E+3*M===533);else p=1;O++}break;case 64:0===_+O+S+k+N+v&&(v=1);break;case 42:case 47:if(!(0<S+k+O))switch(_){case 0:switch(2*h+3*s.charCodeAt(R+1)){case 235:_=47;break;case 220:V=R,_=42}break;case 42:47===h&&42===E&&V+2!==R&&(33===s.charCodeAt(V+2)&&(z+=s.substring(V,R+1)),y="",_=0)}}0===_&&(W+=y)}M=E,E=h,R++}if(0<(V=z.length)){if(F=r,0<A&&(void 0!==(w=u(2,z,F,e,j,C,V,l,d,l))&&0===(z=w).length))return H+z+q;if(z=F.join(",")+"{"+z+"}",0!==P*T){switch(2!==P||i(z,2)||(T=0),T){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(g,"::-webkit-input-$1")+z.replace(g,"::-moz-$1")+z.replace(g,":-ms-input-$1")+z}T=0}}return H+z+q}function n(e,t,n){var o=t.trim().split(v);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var u=0;for(e=0===a?"":e[0]+" ";u<i;++u)t[u]=r(e,t[u],n).trim();break;default:var s=u=0;for(t=[];u<i;++u)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",o[u],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",u=2*t+3*n+4*r;if(944===u){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(a,1))return a;switch(u){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(w,"tb");break;case 232:s=a.replace(w,"tb-rl");break;case 220:s=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,u=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<u?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(O,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function u(e,t,n,r,o,i,a,u,s,c){for(var f,d=0,p=t;d<A;++d)switch(f=M[d].call(l,e,p,n,r,o,i,a,u,s,c)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!==typeof e?P=1:(P=2,N=e):P=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var o=u(-1,n,r,r,j,C,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(D,r,n,0,0);return 0<A&&(void 0!==(o=u(-2,i,r,r,j,C,i.length,0,0,0))&&(i=o)),"",T=0,C=j=1,i}var c=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,v=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,_=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,C=1,j=1,T=0,P=1,D=[],M=[],A=0,N=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:A=M.length=0;break;default:if("function"===typeof t)M[A++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f=l((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=n(2110),p=n.n(d);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},m=Object.freeze([]),g=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var k="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",_="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),u=0,s=t.length;u<s;u++)this.tag.insertRule(a,t[u])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),C=new Map,j=new Map,T=1,P=function(e){if(C.has(e))return C.get(e);for(;j.has(T);)T++;var t=T++;return C.set(e,t),j.set(t,e),t},D=function(e){return j.get(e)},M=function(e,t){C.set(e,t),j.set(t,e)},A="style["+k+'][data-styled-version="5.2.1"]',N=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},R=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var u=a.match(N);if(u){var s=0|parseInt(u[1],10),l=u[2];0!==s&&(M(l,s),I(e,l,u[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},F=function(){return n.nc},L=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.2.1");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},V=function(){function e(e){var t=this.element=L(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=L(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=_,z={isServer:!_,useCSSOMInjection:!O},q=function(){function e(e,t,n){void 0===e&&(e=g),void 0===t&&(t={}),this.options=h({},z,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&_&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(A),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(k)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new U(o):r?new V(o):new B(o),new E(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=D(o);if(void 0!==i){var a=e.names.get(i),u=t.getGroup(o);if(void 0!==a&&0!==u.length){var s=k+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+u+s+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(H,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Q=function(e){return K(5381,e)};function G(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!x(n))return!1}return!0}var X=Q("5.2.1"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&G(e),this.componentId=t,this.baseHash=K(X,t),this.baseStyle=n,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ye(this.rules,e,t,n).join(""),a=$(K(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);t.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,l=K(this.baseHash,n.hash),c="",f=0;f<s;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var p=ye(d,e,t,n),h=Array.isArray(p)?p.join(""):p;l=K(l,h+f),c+=h}}if(c){var v=$(l>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,i=void 0===e?g:e,a=i.options,s=void 0===a?g:a,l=i.plugins,c=void 0===l?m:l,f=new u(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,s,l,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return 0===r&&ee.includes(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,u){void 0===u&&(u="&");var s=e.replace(Z,""),l=i&&a?a+" "+i+" { "+s+" }":s;return t=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,l)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||S(15),K(e,t.name)}),5381).toString():"",v}var ne=t.createContext(),re=(ne.Consumer,t.createContext()),oe=(re.Consumer,new q),ie=te();function ae(){return(0,t.useContext)(ne)||oe}function ue(){return(0,t.useContext)(re)||ie}function se(e){var n=(0,t.useState)(e.stylisPlugins),r=n[0],o=n[1],i=ae(),u=(0,t.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,t.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,t.useEffect)((function(){a()(r,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(ne.Provider,{value:u},t.createElement(re.Provider,{value:s},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,fe=/([A-Z])/g,de=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function he(e){return ce.test(e)?e.replace(fe,pe).replace(de,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function ye(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,u=e.length;a<u;a+=1)""!==(o=ye(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":x(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ye(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:y(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(y(t[a])?i.push.apply(i,e(t[a],a)):b(t[a])?i.push(he(a)+":",t[a],";"):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||y(e)?ye(v(m,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(v(e,n))}new Set;var ge=function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function xe(e){return e.replace(be,"-").replace(we,"")}var ke=function(e){return $(Q(e)>>>0)};function _e(e){return"string"==typeof e&&!0}var Oe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Se=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];Oe(t)&&Oe(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Oe(a))for(var u in a)Se(u)&&Ee(e,a[u],u)}return e}var je=t.createContext();je.Consumer;function Te(e){var n=(0,t.useContext)(je),r=(0,t.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?S(8):t?h({},t,{},e):e:S(14)}(e.theme,n)}),[e.theme,n]);return e.children?t.createElement(je.Provider,{value:r},e.children):null}var Pe={};function De(e,n,r){var o=x(e),i=!_e(e),a=n.attrs,u=void 0===a?m:a,s=n.componentId,l=void 0===s?function(e,t){var n="string"!=typeof e?"sc":xe(e);Pe[n]=(Pe[n]||0)+1;var r=n+"-"+ke("5.2.1"+n+Pe[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):s,c=n.displayName,d=void 0===c?function(e){return _e(e)?"styled."+e:"Styled("+w(e)+")"}(e):c,v=n.displayName&&n.componentId?xe(n.displayName)+"-"+n.componentId:n.componentId||l,y=o&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,k=n.shouldForwardProp;o&&e.shouldForwardProp&&(k=n.shouldForwardProp?function(t,r){return e.shouldForwardProp(t,r)&&n.shouldForwardProp(t,r)}:e.shouldForwardProp);var _,O=new J(r,v,o?e.componentStyle:void 0),S=O.isStatic&&0===u.length,E=function(e,n){return function(e,n,r,o){var i=e.attrs,a=e.componentStyle,u=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=g);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(ge(n,(0,t.useContext)(je),u)||g,n,i),v=p[0],y=p[1],m=function(e,t,n,r){var o=ae(),i=ue();return t?e.generateAndInjectStyles(g,o,i):e.generateAndInjectStyles(n,o,i)}(a,o,v),w=r,x=y.$as||n.$as||y.as||n.as||d,k=_e(x),_=y!==n?h({},n,{},y):n,O={};for(var S in _)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?O.as=_[S]:(l?l(S,f):!k||f(S))&&(O[S]=_[S]));return n.style&&y.style!==n.style&&(O.style=h({},n.style,{},y.style)),O.className=Array.prototype.concat(s,c,m!==c?m:null,n.className,y.className).filter(Boolean).join(" "),O.ref=w,(0,t.createElement)(x,O)}(_,e,n,S)};return E.displayName=d,(_=t.forwardRef(E)).attrs=y,_.componentStyle=O,_.displayName=d,_.shouldForwardProp=k,_.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,_.styledComponentId=v,_.target=o?e.target:e,_.withComponent=function(e){var t=n.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),i=t&&t+"-"+(_e(e)?e:xe(w(e)));return De(e,h({},o,{attrs:y,componentId:i}),r)},Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ce({},e.defaultProps,t):t}}),_.toString=function(){return"."+_.styledComponentId},i&&p()(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),_}var Me=function(e){return function e(t,n,r){if(void 0===r&&(r=g),!(0,o.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,r,me.apply(void 0,arguments))};return i.withConfig=function(o){return e(t,n,h({},r,{},o))},i.attrs=function(o){return e(t,n,h({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},i}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Me[e]=Me(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=G(e),q.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ye(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=F();return"<style "+[n&&'nonce="'+n+'"',k+'="true"','data-styled-version="5.2.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return S(2);var r=((n={})[k]="",n["data-styled-version"]="5.2.1",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=F();return o&&(r.nonce=o),[t.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?S(2):t.createElement(se,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return S(3)}}();var Ae=Me,Ne=function(e,t){return Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ne(e,t)};function Ie(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)};function Fe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Le(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Ve(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(s){u=[6,s],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}Object.create;function Be(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var Ue=function(e,t){return Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ue(e,t)};Object.create;Object.create;var We="Invariant Violation",ze=Object.setPrototypeOf,qe=void 0===ze?function(e,t){return e.__proto__=t,e}:ze,He=function(e){function t(n){void 0===n&&(n=We);var r=e.call(this,"number"===typeof n?We+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=We,qe(r,t.prototype),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function Ye(e,t){if(!e)throw new He(t)}var $e=["debug","log","warn","error","silent"],Ke=$e.indexOf("log");function Qe(e){return function(){if($e.indexOf(e)>=Ke)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=Qe("debug"),e.log=Qe("log"),e.warn=Qe("warn"),e.error=Qe("error")}(Ye||(Ye={}));var Ge="3.10.8";function Xe(e){try{return e()}catch(ze){}}var Je=Xe((function(){return globalThis}))||Xe((function(){return window}))||Xe((function(){return self}))||Xe((function(){return global}))||Xe((function(){return Xe.constructor("return this")()})),Ze=new Map;function et(e){var t=Ze.get(e)||1;return Ze.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function tt(e,t){void 0===t&&(t=0);var n=et("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("<undefined>")}function nt(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"===typeof t){var o=t;(t=ut(o))||(t=st(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var rt=Object.assign((function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Ye(e,ut(t,n)||st(t,n))}),{debug:nt(Ye.debug),log:nt(Ye.log),warn:nt(Ye.warn),error:nt(Ye.error)});function ot(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new He(ut(e,t)||st(e,t))}var it=Symbol.for("ApolloErrorMessageHandler_"+Ge);function at(e){if("string"==typeof e)return e;try{return tt(e,2).slice(0,1e3)}catch(ze){return"<non-serializable>"}}function ut(e,t){if(void 0===t&&(t=[]),e)return Je[it]&&Je[it](e,t.map(at))}function st(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Ge,message:e,args:t.map(at)})))}globalThis.__DEV__;var lt=n(9724),ct=n.t(lt,2),ft="ReactNative"==Xe((function(){return navigator.product})),dt="function"===typeof WeakMap&&!(ft&&!global.HermesInternal),pt="function"===typeof WeakSet,ht="function"===typeof Symbol&&"function"===typeof Symbol.for,vt=ht&&Symbol.asyncIterator,yt="function"===typeof Xe((function(){return window.document.createElement})),mt=Xe((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,gt=(yt||ft)&&!mt,bt=ht?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function wt(){rt("createContext"in ct,45);var e=lt.createContext[bt];return e||(Object.defineProperty(lt.createContext,bt,{value:e=lt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var xt=function(e){var t=e.client,n=e.children,r=wt(),o=lt.useContext(r),i=lt.useMemo((function(){return Re(Re({},o),{client:t||o.client})}),[o,t]);return rt(i.client,46),lt.createElement(r.Provider,{value:i},n)};function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function _t(e){var t=function(e,t){if("object"!==kt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kt(t)?t:String(t)}function Ot(e,t,n){return(t=_t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jt=n(1721),Tt=n(2007),Pt=n.n(Tt),Dt=n(7462);function Mt(e){return"/"===e.charAt(0)}function At(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var Nt=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Mt(e),a=t&&Mt(t),u=i||a;if(e&&Mt(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,c=o.length;c>=0;c--){var f=o[c];"."===f?At(o,c):".."===f?(At(o,c),l++):l&&(At(o,c),l--)}if(!u)for(;l--;l)o.unshift("..");!u||""===o[0]||o[0]&&Mt(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function It(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Rt=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=It(t),o=It(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},Ft="Invariant failed";var Lt=function(e,t){if(!e)throw new Error(Ft)};function Vt(e){return"/"===e.charAt(0)?e:"/"+e}function Bt(e){return"/"===e.charAt(0)?e.substr(1):e}function Ut(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Wt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function zt(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function qt(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,Dt.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Nt(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Ht(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Yt=!("undefined"===typeof window||!window.document||!window.document.createElement);function $t(e,t){t(window.confirm(e))}var Kt="popstate",Qt="hashchange";function Gt(){try{return window.history.state||{}}catch(e){return{}}}function Xt(e){void 0===e&&(e={}),Yt||Lt(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,u=o.getUserConfirmation,s=void 0===u?$t:u,l=o.keyLength,c=void 0===l?6:l,f=e.basename?Wt(Vt(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=Ut(i,f)),qt(i,r,n)}function p(){return Math.random().toString(36).substr(2,c)}var h=Ht();function v(e){(0,Dt.Z)(C,e),C.length=t.length,h.notifyListeners(C.location,C.action)}function y(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function m(){b(d(Gt()))}var g=!1;function b(e){if(g)g=!1,v();else{h.confirmTransitionTo(e,"POP",s,(function(t){t?v({action:"POP",location:e}):function(e){var t=C.location,n=x.indexOf(t.key);-1===n&&(n=0);var r=x.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(g=!0,_(o))}(e)}))}}var w=d(Gt()),x=[w.key];function k(e){return f+zt(e)}function _(e){t.go(e)}var O=0;function S(e){1===(O+=e)&&1===e?(window.addEventListener(Kt,y),r&&window.addEventListener(Qt,m)):0===O&&(window.removeEventListener(Kt,y),r&&window.removeEventListener(Qt,m))}var E=!1;var C={length:t.length,action:"POP",location:w,createHref:k,push:function(e,r){var o="PUSH",i=qt(e,r,p(),C.location);h.confirmTransitionTo(i,o,s,(function(e){if(e){var r=k(i),u=i.key,s=i.state;if(n)if(t.pushState({key:u,state:s},null,r),a)window.location.href=r;else{var l=x.indexOf(C.location.key),c=x.slice(0,l+1);c.push(i.key),x=c,v({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=qt(e,r,p(),C.location);h.confirmTransitionTo(i,o,s,(function(e){if(e){var r=k(i),u=i.key,s=i.state;if(n)if(t.replaceState({key:u,state:s},null,r),a)window.location.replace(r);else{var l=x.indexOf(C.location.key);-1!==l&&(x[l]=i.key),v({action:o,location:i})}else window.location.replace(r)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return E||(S(1),E=!0),function(){return E&&(E=!1,S(-1)),t()}},listen:function(e){var t=h.appendListener(e);return S(1),function(){S(-1),t()}}};return C}var Jt="hashchange",Zt={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Bt(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Bt,decodePath:Vt},slash:{encodePath:Vt,decodePath:Vt}};function en(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function tn(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function nn(e){window.location.replace(en(window.location.href)+"#"+e)}function rn(e){void 0===e&&{},Yt||Lt(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?$t:r,i=n.hashType,a=void 0===i?"slash":i,u=e.basename?Wt(Vt(e.basename)):"",s=Zt[a],l=s.encodePath,c=s.decodePath;function f(){var e=c(tn());return u&&Ut(e,u),qt(e)}var d=Ht();function p(e){(0,Dt.Z)(S,e),S.length=t.length,d.notifyListeners(S.location,S.action)}var h=!1,v=null;function y(){var e=tn(),t=l(e);if(e!==t)nn(t);else{var n=f(),r=S.location;if(!h&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(v===zt(n))return;null,function(e){if(h)!1,p();else{var t="POP";d.confirmTransitionTo(e,t,o,(function(n){n?p({action:t,location:e}):function(e){var t=S.location,n=w.lastIndexOf(zt(t));-1===n&&0;var r=w.lastIndexOf(zt(e));-1===r&&0;var o=n-r;o&&(!0,x(o))}(e)}))}}(n)}}var m=tn(),g=l(m);m!==g&&nn(g);var b=f(),w=[zt(b)];function x(e){t.go(e)}var k=0;function _(e){1===(k+=e)&&1===e?window.addEventListener(Jt,y):0===k&&window.removeEventListener(Jt,y)}var O=!1;var S={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&en(window.location.href),n+"#"+l(u+zt(e))},push:function(e,t){var n="PUSH",r=qt(e,void 0,void 0,S.location);d.confirmTransitionTo(r,n,o,(function(e){if(e){var t=zt(r),o=l(u+t);if(tn()!==o){t,function(e){window.location.hash=e}(o);var i=w.lastIndexOf(zt(S.location)),a=w.slice(0,i+1);a.push(t),a,p({action:n,location:r})}else p()}}))},replace:function(e,t){var n="REPLACE",r=qt(e,void 0,void 0,S.location);d.confirmTransitionTo(r,n,o,(function(e){if(e){var t=zt(r),o=l(u+t);tn()!==o&&(t,nn(o));var i=w.indexOf(zt(S.location));-1!==i&&(w[i]=t),p({action:n,location:r})}}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(e){void 0===e&&!1;var t=d.setPrompt(e);return O||(_(1),!0),function(){return O&&(!1,_(-1)),t()}},listen:function(e){var t=d.appendListener(e);return _(1),function(){_(-1),t()}}};return S}function on(e,t,n){return Math.min(Math.max(e,t),n)}var an=1073741823,un="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var sn=t.createContext||function(e,n){var r,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return un[e]=(un[e]||0)+1}()+"__",a=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,jt.Z)(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,o=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,o)?(t="function"===typeof n?n(r,o):an,0!==(t|=0)&&this.emitter.set(e.value,t)):t=0}},r.render=function(){return this.props.children},t}(t.Component);a.childContextTypes=((r={})[i]=Pt().object.isRequired,r);var u=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,jt.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?an:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?an:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(t.Component);return u.contextTypes=((o={})[i]=Pt().object,o),{Provider:a,Consumer:u}},ln=sn,cn=n(3813),fn=n.n(cn),dn=n(3366),pn=function(e){var t=ln();return t.displayName=e,t},hn=pn("Router-History"),vn=function(e){var t=ln();return t.displayName=e,t},yn=vn("Router"),mn=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,jt.Z)(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return t.createElement(yn.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t.createElement(hn.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t.Component);t.Component;var gn=function(e){function t(){return e.apply(this,arguments)||this}(0,jt.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(t.Component);var bn={},wn=1e4,xn=0;function kn(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(bn[e])return bn[e];var t=fn().compile(e);return xn<wn&&(bn[e]=t,xn++),t}(e)(t,{pretty:!0})}function _n(e){var n=e.computedMatch,r=e.to,o=e.push,i=void 0!==o&&o;return t.createElement(yn.Consumer,null,(function(e){e||Lt(!1);var o=e.history,a=e.staticContext,u=i?o.push:o.replace,s=qt(n?"string"===typeof r?kn(r,n.params):(0,Dt.Z)({},r,{pathname:kn(r.pathname,n.params)}):r);return a?(u(s),null):t.createElement(gn,{onMount:function(){u(s)},onUpdate:function(e,t){var n=qt(t.to);(function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Rt(e.state,t.state)})(n,(0,Dt.Z)({},s,{key:n.key}))||u(s)},to:r})}))}var On={},Sn=1e4,En=0;function Cn(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=On[n]||(On[n]={});if(r[e])return r[e];var o=[],i={regexp:fn()(e,o,t),keys:o};return En<Sn&&(r[e]=i,En++),i}(n,{end:i,strict:u,sensitive:l}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),d=e===c;return i&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var jn=function(e){function n(){return e.apply(this,arguments)||this}return(0,jt.Z)(n,e),n.prototype.render=function(){var e=this;return t.createElement(yn.Consumer,null,(function(n){n||Lt(!1);var r=e.props.location||n.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?Cn(r.pathname,e.props):n.match,i=(0,Dt.Z)({},n,{location:r,match:o}),a=e.props,u=a.children,s=a.component,l=a.render;return Array.isArray(u)&&0===u.length&&(u=null),t.createElement(yn.Provider,{value:i},i.match?u?"function"===typeof u?u(i):u:s?t.createElement(s,i):l?l(i):null:"function"===typeof u?u(i):null)}))},n}(t.Component);function Tn(e){return"/"===e.charAt(0)?e:"/"+e}function Pn(e,t){if(!e)return t;var n=Tn(e);return 0!==t.pathname.indexOf(n)?t:(0,Dt.Z)({},t,{pathname:t.pathname.substr(n.length)})}function Dn(e){return"string"===typeof e?e:zt(e)}function Mn(e){return function(){Lt(!1)}}function An(){}t.Component;var Nn=function(e){function n(){return e.apply(this,arguments)||this}return(0,jt.Z)(n,e),n.prototype.render=function(){var e=this;return t.createElement(yn.Consumer,null,(function(n){n||Lt(!1);var r,o,i=e.props.location||n.location;return t.Children.forEach(e.props.children,(function(e){if(null==o&&t.isValidElement(e)){r=e;var a=e.props.path||e.props.from;o=a?Cn(i.pathname,(0,Dt.Z)({},e.props,{path:a})):n.match}})),o?t.cloneElement(r,{location:i,computedMatch:o}):null}))},n}(t.Component);t.useContext;var In=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Xt(t.props),t}return(0,jt.Z)(n,e),n.prototype.render=function(){return t.createElement(mn,{history:this.history,children:this.props.children})},n}(t.Component);t.Component;var Rn=function(e,t){return"function"===typeof e?e(t):e},Fn=function(e,t){return"string"===typeof e?qt(e,null,null,t):e},Ln=function(e){return e},Vn=t.forwardRef;"undefined"===typeof Vn&&(Vn=Ln);var Bn=Vn((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,a=(0,dn.Z)(e,["innerRef","navigate","onClick"]),u=a.target,s=(0,Dt.Z)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=Ln!==Vn&&n||r,t.createElement("a",s)}));var Un=Vn((function(e,n){var r=e.component,o=void 0===r?Bn:r,i=e.replace,a=e.to,u=e.innerRef,s=(0,dn.Z)(e,["component","replace","to","innerRef"]);return t.createElement(yn.Consumer,null,(function(e){e||Lt(!1);var r=e.history,l=Fn(Rn(a,e.location),e.location),c=l?r.createHref(l):"",f=(0,Dt.Z)({},s,{href:c,navigate:function(){var t=Rn(a,e.location);(i?r.replace:r.push)(t)}});return Ln!==Vn?f.ref=n||u:f.innerRef=u,t.createElement(o,f)}))})),Wn=function(e){return e},zn=t.forwardRef;"undefined"===typeof zn&&(zn=Wn);var qn=zn((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,a=void 0===i?"active":i,u=e.activeStyle,s=e.className,l=e.exact,c=e.isActive,f=e.location,d=e.sensitive,p=e.strict,h=e.style,v=e.to,y=e.innerRef,m=(0,dn.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t.createElement(yn.Consumer,null,(function(e){e||Lt(!1);var r=f||e.location,i=Fn(Rn(v,r),r),g=i.pathname,b=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=b?Cn(r.pathname,{path:b,exact:l,sensitive:d,strict:p}):null,x=!!(c?c(w,r):w),k=x?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(s,a):s,_=x?(0,Dt.Z)({},h,{},u):h,O=(0,Dt.Z)({"aria-current":x&&o||null,className:k,style:_,to:i},m);return Wn!==zn?O.ref=n||y:O.innerRef=y,t.createElement(Un,O)}))})),Hn=[0,376,768,1024,1440],Yn={white:"#fff",black:"#171717",black100:"#171717",black80:"#454545",black60:"#747474",black40:"#A2A2A2",gray:"#8F92A1",gray100:"#8F92A1",gray80:"#A5A8B4",gray60:"#BCBEC7",gray40:"#D2D3D9",gray20:"#E9E9EC",gray10:"#F4F5F6",gray5:"#F9FAFA",lightGray:"#F3F6F8",lightGray100:"#F3F6F8",lightGray80:"#F5F8F9",lightGray60:"#F8FAFB",lightGray40:"#FAFBFC",blue:"#0052CC",blue100:"#0052CC",blue80:"#3375D6",blue60:"#6697E0",blue40:"#99BAEB",blue20:"#CCDCF5",blue5:"#F2F6FC",darkBlue:"#1D355A",pink:"#F8B6C3",pink100:"#F8B6C3",pink80:"#F9C5CF",pink60:"#FBD3DB",pink40:"#FCE2E7",yellow:"#FF991F",yellow100:"#FF991F",yellow80:"#FFAD4C",yelow60:"#FFC279",yellow40:"#FFD6A5",yellow20:"#FFEBD2",purple:"#5243AA",purple100:"#5243AA",purple80:"#7569BB",purple60:"#978ECC",purple40:"#BAB4DD",green:"#00875A",green100:"#00875A",green80:"#339F7B",green60:"#66B79C",green40:"#99CFBD",green20:"#CCE7DE",red:"#DE350B",red100:"#DE350B",red80:"#E55D3C",red60:"#EB866D",red40:"#F2AE9D"},$n={colors:Yn,space:function(){for(var e={},t=-32;t<=32;t+=.5)e[t]=8*t;return e}(),breakpoints:function(){var e=Hn.map((function(e){return"".concat(e,"px")}));return e.xs=e[0],e.sm=e[1],e.md=e[2],e.lg=e[3],e.xl=e[4],e}(),zIndex:{below2:-2,below:-1,above:1,above2:2,above3:3},fontFamilies:{serif:"serif","sans-serif":"DM Sans, sans-serif"},fontSizes:{h0:60,h1:30,h2:22,h3:16,h4:14,title:14,button:14,titleSmall:12,body:16,bodySmall:12,label:12,small:14},height:{fill:"100%"},boxShadow:{large:"0 16px 32px rgba(0, 0, 0, 0.15)"},borderRadius:{huge:50,large:24,medium:18,card:8,button:8,small:4,circle:"50%"},grid:{gap:"24px"}},Kn=Ae("main")({padding:$n.space[4],flex:1,display:"grid",gridRowGap:$n.grid.gap}),Qn=n(184);function Gn(e){var t=e.children;return(0,Qn.jsx)(Kn,{children:t})}function Xn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Jn=function(){return Jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jn.apply(this,arguments)};Object.create;Object.create;var Zn=n(5154),er=new Map,tr=new Map,nr=!0,rr=!1;function or(e){return e.replace(/[\s,]+/g," ").trim()}function ir(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=or((a=e.loc).source.body.substring(a.start,a.end)),i=tr.get(r);i&&!i.has(o)?nr&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||tr.set(r,i=new Set),i.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var a})),Jn(Jn({},e),{definitions:n})}function ar(e){var t=or(e);if(!er.has(t)){var n=(0,Zn.parse)(e,{experimentalFragmentVariables:rr,allowLegacyFragmentVariables:rr});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");er.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(ir(n)))}return er.get(t)}function ur(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"===typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),ar(r)}var sr,lr=ur,cr=function(){er.clear(),tr.clear()},fr=function(){nr=!1},dr=function(){rr=!0},pr=function(){rr=!1};(sr=ur||(ur={})).gql=lr,sr.resetCaches=cr,sr.disableFragmentWarnings=fr,sr.enableExperimentalFragmentVariables=dr,sr.disableExperimentalFragmentVariables=pr,ur.default=ur;var hr=!1,vr=ct.useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||hr||r===t()||(hr=!0,!1!==globalThis.__DEV__&&rt.error(58));var o=lt.useState({inst:{value:r,getSnapshot:t}}),i=o[0].inst,a=o[1];return gt?lt.useLayoutEffect((function(){Object.assign(i,{value:r,getSnapshot:t}),yr(i)&&a({inst:i})}),[e,r,t]):Object.assign(i,{value:r,getSnapshot:t}),lt.useEffect((function(){return yr(i)&&a({inst:i}),e((function(){yr(i)&&a({inst:i})}))}),[e]),r};function yr(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(r){return!0}}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gr(e,t){if(e){if("string"===typeof e)return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(e,t):void 0}}function br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(c){l=!0,o=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||gr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wr=Object.prototype,xr=wr.toString,kr=wr.hasOwnProperty,_r=Function.prototype.toString,Or=new Map;function Sr(e,t){try{return Cr(e,t)}finally{Or.clear()}}var Er=Sr;function Cr(e,t){if(e===t)return!0;var n=xr.call(e);if(n!==xr.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Dr(e,t))return!0;var r=jr(e),o=jr(t),i=r.length;if(i!==o.length)return!1;for(var a=0;a<i;++a)if(!kr.call(t,r[a]))return!1;for(var u=0;u<i;++u){var s=r[u];if(!Cr(e[s],t[s]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e=="".concat(t);case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(Dr(e,t))return!0;for(var l=e.entries(),c="[object Map]"===n;;){var f=l.next();if(f.done)break;var d=br(f.value,2),p=d[0],h=d[1];if(!t.has(p))return!1;if(c&&!Cr(h,t.get(p)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var v=e.byteLength;if(v===t.byteLength)for(;v--&&e[v]===t[v];);return-1===v;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var y=_r.call(e);return y===_r.call(t)&&!function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(y,Pr)}return!1}function jr(e){return Object.keys(e).filter(Tr,e)}function Tr(e){return void 0!==this[e]}var Pr="{ [native code] }";function Dr(e,t){var n=Or.get(e);if(n){if(n.has(t))return!0}else Or.set(e,n=new Set);return n.add(t),!1}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function Ar(e,t){return Mr(e,t,t.variables&&{variables:Mr(Re(Re({},e&&e.variables),t.variables))})}function Nr(e){return null!==e&&"object"===typeof e}var Ir=Symbol();var Rr,Fr=function(e){function t(n){var r=n.graphQLErrors,o=n.protocolErrors,i=n.clientErrors,a=n.networkError,u=n.errorMessage,s=n.extraInfo,l=e.call(this,u)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.protocolErrors=o||[],l.clientErrors=i||[],l.networkError=a||null,l.message=u||function(e){var t=Be(Be(Be([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return Nr(e)&&e.message||"Error message not found."})).join("\n")}(l),l.extraInfo=s,l.__proto__=t.prototype,l}return Ie(t,e),t}(Error);function Lr(e){return!!e&&e<7}function Vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_t(r.key),r)}}function Ur(e,t,n){return t&&Br(e.prototype,t),n&&Br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wr(){}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Rr||(Rr={}));var zr=Wr,qr="undefined"!==typeof WeakRef?WeakRef:function(e){return{deref:function(){return e}}},Hr="undefined"!==typeof WeakMap?WeakMap:Map,Yr="undefined"!==typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:Wr,unregister:Wr}},$r=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zr;Vr(this,e),this.max=n,this.dispose=r,this.map=new Hr,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=function(){for(var e=t.unfinalizedNodes.values(),n=0;n<10024;n++){var r=e.next().value;if(!r)break;t.unfinalizedNodes.delete(r);var o=r.key;delete r.key,r.keyRef=new qr(o),t.registry.register(o,r,r)}t.unfinalizedNodes.size>0?queueMicrotask(t.finalize):t.finalizationScheduled=!1},this.registry=new Yr(this.deleteNode.bind(this))}return Ur(e,[{key:"has",value:function(e){return this.map.has(e)}},{key:"get",value:function(e){var t=this.getNode(e);return t&&t.value}},{key:"getNode",value:function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}},{key:"set",value:function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}},{key:"clean",value:function(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}},{key:"deleteNode",value:function(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;var t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}},{key:"delete",value:function(e){var t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}},{key:"scheduleFinalization",value:function(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}]),e}();function Kr(){}var Qr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kr;Vr(this,e),this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}return Ur(e,[{key:"has",value:function(e){return this.map.has(e)}},{key:"get",value:function(e){var t=this.getNode(e);return t&&t.value}},{key:"size",get:function(){return this.map.size}},{key:"getNode",value:function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}},{key:"set",value:function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}},{key:"clean",value:function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}},{key:"delete",value:function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}]),e}(),Gr=new WeakSet;function Xr(e){e.size<=(e.max||-1)||Gr.has(e)||(Gr.add(e),setTimeout((function(){e.clean(),Gr.delete(e)}),100))}var Jr=function(e,t){var n=new $r(e,t);return n.set=function(e,t){var n=$r.prototype.set.call(this,e,t);return Xr(this),n},n},Zr=function(e,t){var n=new Qr(e,t);return n.set=function(e,t){var n=Qr.prototype.set.call(this,e,t);return Xr(this),n},n},eo=Symbol.for("apollo.cacheSize"),to=Re({},Je[eo]),no={};function ro(e,t){no[e]=t}var oo,io,ao=!1!==globalThis.__DEV__?function(){var e,t,n,r,o;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:lo(),sizes:Re({print:null===(e=no.print)||void 0===e?void 0:e.call(no),parser:null===(t=no.parser)||void 0===t?void 0:t.call(no),canonicalStringify:null===(n=no.canonicalStringify)||void 0===n?void 0:n.call(no),links:yo(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:ho(this.queryManager.documentTransform)}},null===(o=(r=this.cache).getMemoryInternals)||void 0===o?void 0:o.call(r))}}:void 0,uo=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return Re(Re({},co.apply(this)),{addTypenameDocumentTransform:ho(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:fo(this.storeReader.executeSelectionSet),executeSubSelectedArray:fo(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:fo(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:fo(null===e||void 0===e?void 0:e.findFragmentSpreads),lookup:fo(null===e||void 0===e?void 0:e.lookup),transform:fo(null===e||void 0===e?void 0:e.transform)}})}:void 0,so=!1!==globalThis.__DEV__?co:void 0;function lo(){return Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],n=e[1];return[t,to[t]||n]})))}function co(){return{cache:{fragmentQueryDocuments:fo(this.getFragmentDoc)}}}function fo(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function po(e){return null!=e}function ho(e){return vo(e).map((function(e){return{cache:e}}))}function vo(e){return e?Be(Be([fo(null===e||void 0===e?void 0:e.performWork)],vo(null===e||void 0===e?void 0:e.left),!0),vo(null===e||void 0===e?void 0:e.right),!0).filter(po):[]}function yo(e){var t;return e?Be(Be([null===(t=null===e||void 0===e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],yo(null===e||void 0===e?void 0:e.left),!0),yo(null===e||void 0===e?void 0:e.right),!0).filter(po):[]}function mo(e){var t;switch(e){case oo.Query:t="Query";break;case oo.Mutation:t="Mutation";break;case oo.Subscription:t="Subscription"}return t}function go(e){io||(io=new Jr(to.parser||1e3));var t,n,r=io.get(e);if(r)return r;rt(!!e&&!!e.kind,60,e);for(var o=[],i=[],a=[],u=[],s=0,l=e.definitions;s<l.length;s++){var c=l[s];if("FragmentDefinition"!==c.kind){if("OperationDefinition"===c.kind)switch(c.operation){case"query":i.push(c);break;case"mutation":a.push(c);break;case"subscription":u.push(c)}}else o.push(c)}rt(!o.length||i.length||a.length||u.length,61),rt(i.length+a.length+u.length<=1,62,e,i.length,u.length,a.length),n=i.length?oo.Query:oo.Mutation,i.length||a.length||(n=oo.Subscription);var f=i.length?i:a.length?a:u;rt(1===f.length,63,e,f.length);var d=f[0];t=d.variableDefinitions||[];var p={name:d.name&&"Name"===d.name.kind?d.name.value:"data",type:n,variables:t};return io.set(e,p),p}function bo(e,t){var n=go(e),r=mo(t),o=mo(n.type);rt(n.type===t,64,r,r,o)}function wo(e){var t=lt.useContext(wt()),n=e||t.client;return rt(!!n,49),n}function xo(e){var t=new Set([e]);return t.forEach((function(e){Nr(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){Nr(e[n])&&t.add(e[n])}))})),e}function ko(e){return!1!==globalThis.__DEV__&&xo(e),e}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(oo||(oo={})),go.resetCache=function(){io=void 0},!1!==globalThis.__DEV__&&ro("parser",(function(){return io?io.size:0}));var _o=Array.isArray;function Oo(e){return Array.isArray(e)&&e.length>0}var So=Symbol.for("apollo.hook.wrappers");var Eo=Object.prototype.hasOwnProperty;function Co(e,t){return void 0===t&&(t=Object.create(null)),function(e,t,n){var r=n.queryManager,o=r&&r[So],i=o&&o[e];return i?i(t):t}("useQuery",jo,wo(t&&t.client))(e,t)}function jo(e,t){return function(e,t){var n=lt.useReducer((function(e){return e+1}),0)[1];function r(r){return Object.assign(new To(e,t,r),{forceUpdateState:n})}var o=lt.useState(r),i=o[0],a=o[1];e===i.client&&t===i.query||a(i=r(i));return i}(wo(t.client),e).useQuery(t)}var To=function(){function e(e,t,n){var r=this;this.client=e,this.query=t,this.forceUpdate=function(){return r.forceUpdateState()},this.ssrDisabledResult=ko({loading:!0,data:void 0,error:void 0,networkStatus:Rr.loading}),this.skipStandbyResult=ko({loading:!1,data:void 0,error:void 0,networkStatus:Rr.ready}),this.toQueryResultCache=new(dt?WeakMap:Map),bo(t,oo.Query);var o=n&&n.result,i=o&&o.data;i&&(this.previousData=i)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&rt.warn(51)},e.prototype.executeQuery=function(e){var t,n=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var r=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;r.subscribe({next:function(e){t=e},error:function(){e(n.toQueryResult(n.observable.getCurrentResult()))},complete:function(){e(n.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=lt.useContext(wt()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=vr(lt.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var r=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&Sr(e.data,r.data)||t.setResult(r)},o=n.subscribe(r,(function e(i){if(o.unsubscribe(),o=n.resubscribeAfterError(r,e),!Eo.call(i,"graphQLErrors"))throw i;var a=t.result;(!a||a&&a.loading||!Sr(i,a.error))&&t.setResult({data:a&&a.data,error:i,loading:!1,networkStatus:Rr.error})}));return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(r),this.toQueryResult(r)},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),o=this.watchQueryOptions;Sr(r,o)||(this.watchQueryOptions=r,o&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(Mr(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(Ar)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,r=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,Fe(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(r,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),n){var i=o.fetchPolicy,a=void 0===i?this.getDefaultFetchPolicy():i,u=o.initialFetchPolicy,s=void 0===u?a:u;Object.assign(o,{initialFetchPolicy:s,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=lt.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var n=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then((function(){r?n.onError(r):e.data&&(null===t||void 0===t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===Rr.ready&&n.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&rt.warn(e)}))}},e.prototype.toApolloError=function(e){return Oo(e.errors)?new Fr({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,r=(e.partial,Fe(e,["data","partial"]));return this.toQueryResultCache.set(e,t=Re(Re(Re({data:n},r),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&Oo(e.errors)&&(t.error=new Fr({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:Rr.refetch}),this.observable.refetch())},e}(),Po=["name"];var Do=function(e){var r=e.name,o=Ct(e,Po),i=(0,t.useMemo)((function(){return function(e){switch(e){case"dashboard":return(0,t.lazy)((function(){return n.e(17).then(n.bind(n,3017))}));case"view-list":return(0,t.lazy)((function(){return n.e(363).then(n.bind(n,8363))}));case"calendar":return(0,t.lazy)((function(){return n.e(766).then(n.bind(n,7766))}));case"arrow-up":return(0,t.lazy)((function(){return n.e(939).then(n.bind(n,4939))}));case"arrow-down":return(0,t.lazy)((function(){return n.e(113).then(n.bind(n,8113))}));case"download":return(0,t.lazy)((function(){return n.e(840).then(n.bind(n,6840))}));case"comment":return(0,t.lazy)((function(){return n.e(782).then(n.bind(n,3782))}));case"setting":return(0,t.lazy)((function(){return n.e(370).then(n.bind(n,9370))}));case"menu-boxed":return(0,t.lazy)((function(){return n.e(697).then(n.bind(n,7697))}));case"caret-down":return(0,t.lazy)((function(){return n.e(882).then(n.bind(n,4882))}));case"plus":return(0,t.lazy)((function(){return n.e(946).then(n.bind(n,6946))}));case"edit":return(0,t.lazy)((function(){return n.e(870).then(n.bind(n,4870))}));case"driving":return(0,t.lazy)((function(){return n.e(479).then(n.bind(n,9479))}));case"electricity":return(0,t.lazy)((function(){return n.e(15).then(n.bind(n,8015))}));case"flight":return(0,t.lazy)((function(){return n.e(439).then(n.bind(n,6439))}));case"forest":return(0,t.lazy)((function(){return n.e(728).then(n.bind(n,848))}));case"trash":return(0,t.lazy)((function(){return n.e(259).then(n.bind(n,6259))}));case"checklist":return(0,t.lazy)((function(){return n.e(449).then(n.bind(n,9449))}))}}(r)}),[r]);return(0,Qn.jsx)(i,Et({},o))},Mo=n(1725),Ao=n.n(Mo),No=function(e,t){var n=Ao()({},e,t);for(var r in e){var o;e[r]&&"object"===typeof t[r]&&Ao()(n,((o={})[r]=Ao()(e[r],t[r]),o))}return n},Io={breakpoints:[40,52,64].map((function(e){return e+"em"}))},Ro=function(e){return"@media screen and (min-width: "+e+")"},Fo=function(e,t){return Lo(t,e,e)},Lo=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},Vo=function e(t){var n={},r=function(e){var r={},o=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var a in e)if(t[a]){var u=t[a],s=e[a],l=Lo(e.theme,u.scale,u.defaults);if("object"!==typeof s)Ao()(r,u(s,l,e));else{if(n.breakpoints=!i&&n.breakpoints||Lo(e.theme,"breakpoints",Io.breakpoints),Array.isArray(s)){n.media=!i&&n.media||[null].concat(n.breakpoints.map(Ro)),r=No(r,Bo(n.media,u,l,s,e));continue}null!==s&&(r=No(r,Uo(n.breakpoints,u,l,s,e)),o=!0)}}return o&&(r=function(e){var t={};return Object.keys(e).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(n){t[n]=e[n]})),t}(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var o=Object.keys(t).filter((function(e){return"config"!==e}));return o.length>1&&o.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},Bo=function(e,t,n,r,o){var i={};return r.slice(0,e.length).forEach((function(r,a){var u,s=e[a],l=t(r,n,o);s?Ao()(i,((u={})[s]=Ao()({},i[s],l),u)):Ao()(i,l)})),i},Uo=function(e,t,n,r,o){var i={};for(var a in r){var u=e[a],s=t(r[a],n,o);if(u){var l,c=Ro(u);Ao()(i,((l={})[c]=Ao()({},i[c],s),l))}else Ao()(i,s)}return i},Wo=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,i=void 0===o?Fo:o,a=e.defaultScale;t=t||[n];var u=function(e,n,r){var o={},a=i(e,n,r);if(null!==a)return t.forEach((function(e){o[e]=a})),o};return u.scale=r,u.defaults=a,u},zo=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!==typeof r?Wo(r):r:Wo({property:n,scale:n})})),Vo(t)},qo=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&t.config&&Ao()(e,t.config)})),Vo(e)},Ho={width:{property:"width",scale:"sizes",transform:function(e,t){return Lo(t,e,!function(e){return"number"===typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},Yo=zo(Ho),$o=Yo,Ko={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Ko.bg=Ko.backgroundColor;var Qo=zo(Ko),Go=Qo,Xo=zo({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),Jo=Xo,Zo=zo({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),ei=Zo,ti={space:[0,4,8,16,32,64,128,256,512]},ni=zo({gridGap:{property:"gridGap",scale:"space",defaultScale:ti.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:ti.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:ti.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),ri=ni,oi={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};oi.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},oi.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},oi.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},oi.borderBottomColor={property:"borderBottomColor",scale:"colors"},oi.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},oi.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},oi.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},oi.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},oi.borderLeftColor={property:"borderLeftColor",scale:"colors"},oi.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},oi.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},oi.borderRightColor={property:"borderRightColor",scale:"colors"},oi.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var ii=zo(oi),ai=ii,ui={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};ui.bgImage=ui.backgroundImage,ui.bgSize=ui.backgroundSize,ui.bgPosition=ui.backgroundPosition,ui.bgRepeat=ui.backgroundRepeat;var si=zo(ui),li={space:[0,4,8,16,32,64,128,256,512]},ci=zo({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:li.space},right:{property:"right",scale:"space",defaultScale:li.space},bottom:{property:"bottom",scale:"space",defaultScale:li.space},left:{property:"left",scale:"space",defaultScale:li.space}}),fi=ci,di={space:[0,4,8,16,32,64,128,256,512]},pi=function(e){return"number"===typeof e&&!isNaN(e)},hi=function(e,t){if(!pi(e))return Lo(t,e,e);var n=e<0,r=Math.abs(e),o=Lo(t,r,r);return pi(o)?o*(n?-1:1):n?"-"+o:o},vi={};vi.margin={margin:{property:"margin",scale:"space",transform:hi,defaultScale:di.space},marginTop:{property:"marginTop",scale:"space",transform:hi,defaultScale:di.space},marginRight:{property:"marginRight",scale:"space",transform:hi,defaultScale:di.space},marginBottom:{property:"marginBottom",scale:"space",transform:hi,defaultScale:di.space},marginLeft:{property:"marginLeft",scale:"space",transform:hi,defaultScale:di.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:hi,defaultScale:di.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:hi,defaultScale:di.space}},vi.margin.m=vi.margin.margin,vi.margin.mt=vi.margin.marginTop,vi.margin.mr=vi.margin.marginRight,vi.margin.mb=vi.margin.marginBottom,vi.margin.ml=vi.margin.marginLeft,vi.margin.mx=vi.margin.marginX,vi.margin.my=vi.margin.marginY,vi.padding={padding:{property:"padding",scale:"space",defaultScale:di.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:di.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:di.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:di.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:di.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:di.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:di.space}},vi.padding.p=vi.padding.padding,vi.padding.pt=vi.padding.paddingTop,vi.padding.pr=vi.padding.paddingRight,vi.padding.pb=vi.padding.paddingBottom,vi.padding.pl=vi.padding.paddingLeft,vi.padding.px=vi.padding.paddingX,vi.padding.py=vi.padding.paddingY;var yi=qo(zo(vi.margin),zo(vi.padding));zo({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function mi(){return mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mi.apply(this,arguments)}var gi=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},bi=[40,52,64].map((function(e){return e+"em"})),wi={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},xi={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},ki={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},_i={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},Oi=function(e,t){if("number"!==typeof t||t>=0)return gi(e,t,t);var n=Math.abs(t),r=gi(e,n,n);return"string"===typeof r?"-"+r:-1*r},Si=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return mi({},e,((n={})[t]=Oi,n))}),{}),Ei=function e(t){return function(n){void 0===n&&(n={});var r=mi({},wi,{},n.theme||n),o={},i=function(e){return function(t){var n={},r=gi(t,"breakpoints",bi),o=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var i in e){var a="function"===typeof e[i]?e[i](t):e[i];if(null!=a)if(Array.isArray(a))for(var u=0;u<a.slice(0,o.length).length;u++){var s=o[u];s?(n[s]=n[s]||{},null!=a[u]&&(n[s][i]=a[u])):n[i]=a[u]}else n[i]=a}return n}}("function"===typeof t?t(r):t)(r);for(var a in i){var u=i[a],s="function"===typeof u?u(r):u;if("variant"!==a)if(s&&"object"===typeof s)o[a]=e(s)(r);else{var l=gi(xi,a,a),c=gi(_i,l),f=gi(r,c,gi(r,l,{})),d=gi(Si,l,gi)(f,s,s);if(ki[l])for(var p=ki[l],h=0;h<p.length;h++)o[p[h]]=d;else o[l]=d}else o=mi({},o,{},e(gi(r,s))(r))}return o}},Ci=function(e){var t,n,r=e.scale,o=e.prop,i=void 0===o?"variant":o,a=e.variants,u=void 0===a?{}:a,s=e.key;n=Object.keys(u).length?function(e,t,n){return Ei(Lo(t,e,null))(n.theme)}:function(e,t){return Lo(t,e,null)},n.scale=r||s,n.defaults=u;var l=((t={})[i]=n,t);return Vo(l)},ji=(Ci({key:"buttons"}),Ci({key:"textStyles",prop:"textStyle"}),Ci({key:"colorStyles",prop:"colors"}),$o.width,$o.height,$o.minWidth,$o.minHeight,$o.maxWidth,$o.maxHeight,$o.size,$o.verticalAlign,$o.display,$o.overflow,$o.overflowX,$o.overflowY,Go.opacity,Jo.fontSize),Ti=Jo.fontFamily,Pi=Jo.fontWeight,Di=(Jo.lineHeight,Jo.textAlign),Mi=(Jo.fontStyle,Jo.letterSpacing,ei.alignItems,ei.alignContent,ei.justifyItems,ei.justifyContent,ei.flexWrap,ei.flexDirection,ei.flex),Ai=(ei.flexGrow,ei.flexShrink,ei.flexBasis,ei.justifySelf,ei.alignSelf,ei.order,ri.gridGap,ri.gridColumnGap,ri.gridRowGap,ri.gridColumn,ri.gridRow,ri.gridAutoFlow,ri.gridAutoColumns,ri.gridAutoRows,ri.gridTemplateColumns,ri.gridTemplateRows,ri.gridTemplateAreas,ri.gridArea,ai.borderWidth,ai.borderStyle,ai.borderColor,ai.borderTop,ai.borderRight,ai.borderBottom),Ni=(ai.borderLeft,ai.borderRadius,si.backgroundImage,si.backgroundSize,si.backgroundPosition,si.backgroundRepeat,fi.zIndex,fi.top,fi.right,fi.bottom,fi.left,function(e){return function(t){var n=Object.entries(t).reduce((function(e,t){var n=br(t,2),r=n[0],o=n[1],i=r;return r.startsWith("$")&&(i=r.substring(1)),e[i]=o,e}),{});return e(n)}}),Ii=Ae("p")(Ni(ji),Ni(Xo),Ni(Pi),Ni(Ti),Ni(yi),Ni(Qo),{display:"block",appearance:"none",border:0,background:"none",WebkitFontSmoothing:"antialiased",strong:{fontWeight:600},em:{fontStyle:"italic"},a:{color:"blue",textDecoration:"underline"}},(function(e){return e.capitalize&&{textTransform:"capitalize"}}),(function(e){return e.uppercase&&{textTransform:"uppercase"}}),(function(e){var t=e.whiteSpace;return t&&{whiteSpace:t}}),(function(e){return{verticalAlign:e.verticalAlign}}),(function(e){return e.hyphens&&{hyphens:"auto"}}),(function(e){return"function"===typeof e.onClick&&{cursor:"pointer"}})),Ri=["as","children","pt","pb","py","pl","pr","px","mx","my","mb","mt","marginRight","marginLeft","lineHeight","fontFamily","fontWeight","fontSize","color"],Fi=["children","as"],Li=["children","as"],Vi=["children","as"],Bi=["children","as"],Ui=["children","fontWeight","as"],Wi=["children","fontWeight","as"],zi=["children","as"],qi=function(e){var t=e.as,n=e.children,r=e.pt,o=e.pb,i=e.py,a=e.pl,u=e.pr,s=e.px,l=e.mx,c=e.my,f=e.mb,d=e.mt,p=e.marginRight,h=e.marginLeft,v=e.lineHeight,y=e.fontFamily,m=void 0===y?"sans-serif":y,g=e.fontWeight,b=e.fontSize,w=void 0===b?$n.fontSizes.body:b,x=e.color,k=void 0===x?"inherit":x,_=Ct(e,Ri);return(0,Qn.jsx)(Ii,Et(Et({as:t,pb:null!==i&&void 0!==i?i:o,pt:null!==i&&void 0!==i?i:r,pr:null!==s&&void 0!==s?s:u,pl:null!==s&&void 0!==s?s:a,mb:null!==c&&void 0!==c?c:f,mt:null!==c&&void 0!==c?c:d,mx:l,$fontSize:w,$fontWeight:g,$fontFamily:$n.fontFamilies[m],$lineHeight:v,$marginRight:p,$marginLeft:h,$color:k},_),{},{children:n}))},Hi=function(e){var t=e.children,n=e.as,r=void 0===n?"h2":n,o=Ct(e,Fi);return(0,Qn.jsx)(qi,Et(Et({as:r,fontSize:$n.fontSizes.h2,fontWeight:600,lineHeight:1.1},o),{},{children:t}))},Yi=function(e){var t=e.children,n=e.as,r=void 0===n?"h3":n,o=Ct(e,Li);return(0,Qn.jsx)(qi,Et(Et({as:r,fontSize:$n.fontSizes.h3,fontWeight:600,lineHeight:1.3},o),{},{children:t}))},$i=function(e){var t=e.children,n=e.as,r=void 0===n?"small":n,o=Ct(e,Vi);return(0,Qn.jsx)(qi,Et(Et({as:r,fontSize:$n.fontSizes.label,fontWeight:600,lineHeight:1.3,letterSpacing:1.5,uppercase:!0},o),{},{children:t}))},Ki=function(e){var t=e.children,n=e.as,r=void 0===n?"label":n,o=Ct(e,Bi);return(0,Qn.jsx)(qi,Et(Et({as:r,fontSize:$n.fontSizes.small,fontWeight:600,lineHeight:1.3,letterSpacing:-.333,color:"gray"},o),{},{children:t}))},Qi=function(e){var t=e.children,n=e.fontWeight,r=void 0===n?600:n,o=e.as,i=void 0===o?"p":o,a=Ct(e,Ui);return(0,Qn.jsx)(qi,Et(Et({as:i,fontSize:$n.fontSizes.title,lineHeight:1.1,fontWeight:r},a),{},{children:t}))},Gi=function(e){var t=e.children,n=e.fontWeight,r=void 0===n?500:n,o=e.as,i=void 0===o?"small":o,a=Ct(e,Wi);return(0,Qn.jsx)(qi,Et(Et({as:i,fontSize:$n.fontSizes.small,fontWeight:r,lineHeight:1.5},a),{},{children:t}))},Xi=function(e){var t=e.children,n=e.as,r=void 0===n?"p":n,o=Ct(e,zi);return(0,Qn.jsx)(qi,Et(Et({as:r,fontSize:$n.fontSizes.button,fontWeight:500,lineHeight:1.5},o),{},{children:t}))},Ji=qo(Yo,zo({width:{property:"width",transform:function(e){return"full"===e?"100%":e}},height:{property:"height",transform:function(e){return"full"===e?"100%":e}}})),Zi=qo(ni,zo({gridColumn:{property:"gridColumn",transform:function(e){return"full"===e?"1 / -1":e}}})),ea=Object.keys($n.breakpoints).reduce((function(e,t){return e[t]="\n      @media (min-width: ".concat($n.breakpoints[t],")\n    "),e}),{}),ta=Ae("div")(Ni(Zi),Ni(Mi),Ni(ci),Ni(ii),Ni(Ai),Ni(yi),Ni(Qo),Ni(Ji),Ni(Zo),Ni(Di),Ni(Di),Ci({variants:{card:{backgroundColor:"white",borderRadius:"card",overflow:"hidden"},hoverCard:Ot({backgroundColor:"transparent"},ea.md,{"&:hover, &:focus-within":{backgroundColor:"neutral",boxShadow:"large",cursor:"pointer"},"&:focus-within a":{textDecoration:"underline","&:focus":{outline:"none"}}})}}),(function(e){return e.$focusable?{outline:0,"&:focus-visible":{}}:null}));function na(e){var t=e.children,n=e.borderColor;return(0,Qn.jsx)(ta,{$borderLeft:"2px solid",$borderLeftColor:Yn[n]||Yn.blue60,$padding:"0 16px",$margin:"16px 0",children:(0,Qn.jsx)(qi,{color:"black80",fontWeight:400,children:t})})}var ra,oa=220,ia=Ae("aside")({maxWidth:oa}),aa=Ae("img")({display:"block",width:"100%",paddingBottom:$n.space[4],paddingTop:$n.space[4]}),ua=Ae("ul")({display:"flex",flexDirection:"column"}),sa=Ae(qn)(Ot({alignItems:"center",display:"flex",paddingBottom:$n.space[2],paddingLeft:$n.space[3],paddingRight:$n.space[3],paddingTop:$n.space[2],"&.active":{color:$n.colors.blue,"&::before":{background:$n.colors.blue}},"&::before":{background:"transparent",borderRadius:32,content:"''",height:32,left:-8,margin:"auto",position:"absolute",width:12}},ea.md,{"&:hover":{background:$n.colors.gray5}}));function la(e){var t=e.icon,n=e.children,r=e.to;return(0,Qn.jsxs)(sa,{to:r,children:[(0,Qn.jsx)(Do,{name:t}),(0,Qn.jsx)(qi,{fontWeight:600,pl:2,children:n})]})}var ca=ur(ra||(ra=Xn(["\n  query UserRole {\n    me {\n      role\n    }\n  }\n"])));function fa(){var e,t=Co(ca).data,n=null===t||void 0===t||null===(e=t.me)||void 0===e?void 0:e.role;return(0,Qn.jsxs)(ia,{children:[(0,Qn.jsx)(qn,{to:"/yfirlit",children:(0,Qn.jsx)(aa,{src:"/logo.svg",alt:"Loftslagsv\xe6nni sveitarf\xe9l\xf6g"})}),(0,Qn.jsx)("nav",{children:(0,Qn.jsxs)(ua,{children:[(0,Qn.jsx)(la,{icon:"dashboard",to:"/yfirlit",children:"Yfirlit"}),(0,Qn.jsx)(la,{icon:"menu-boxed",to:"/rekstrareiningar",children:"Rekstrareiningar"}),(0,Qn.jsx)(la,{icon:"setting",to:"/stillingar",children:"Stillingar"}),"ADMIN"===n?(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsx)(la,{icon:"view-list",to:"/breytur",children:"Breytur"}),(0,Qn.jsx)(la,{icon:"checklist",to:"/skil",children:"Skila\xf0"})]}):null]})})]})}var da=Ae("div")({display:"flex",flexDirection:"column",minHeight:"100vh"}),pa=Ae("div")({display:"flex"});function ha(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var va=Ae("div")({padding:$n.space[3],background:$n.colors.gray5,borderRadius:"16px 0 0 16px"}),ya=Ae("div")((function(e){var t,n=e.columns;return Ot(t={display:"grid",gap:$n.grid.gap,flex:1},ea.md,{gridTemplateColumns:"repeat(".concat(n/2,", 1fr)")}),Ot(t,ea.lg,{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}),t}));function ma(e){var t=e.children,n=e.heading,r=e.columns,o=void 0===r?4:r;return(0,Qn.jsxs)(va,{children:[n&&(0,Qn.jsx)(Yi,{pb:3,children:n}),(0,Qn.jsx)(ya,{columns:o,children:t})]})}var ga=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Intl.NumberFormat("de",{maximumFractionDigits:t,minimumFractionDigits:t}).format(e)},ba=function(e){return Intl.DateTimeFormat("de").format(new Date(e))};function wa(e){var t=e.title,n=e.value,r=e.numberColors,o=void 0!==r&&r?Math.sign(Number(n))>0?"red100":"green100":"black100";return(0,Qn.jsxs)(ta,{$p:4,$textAlign:"center",variant:"card",children:[(0,Qn.jsx)($i,{as:"h2",pb:1,children:t}),(0,Qn.jsx)(Hi,{as:"p",py:1,color:o,children:ga(n/1e3)}),(0,Qn.jsx)(Yi,{children:"tonn CO\u2082"})]})}var xa={borderRadius:"button",paddingX:6,paddingY:2},ka=Ae("button")((function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.variant;return Et(Et(Et({display:"inline-flex",textAlign:"center",alignItems:"center",justifyContent:"center",borderStyle:"solid"},"end"===e.alignment?{alignSelf:"flex-end",marginLeft:"auto"}:{}),"pill"===r?{color:$n.colors["".concat(n,"100")],backgroundColor:$n.colors["".concat(n,"20")]}:{color:$n.colors[n]||n}),{},{borderRadius:$n.borderRadius.small,cursor:"pointer","> *::selection":{background:"transparent"}})}),Ni(yi),Ni(Ji),Ci({variants:{primary:Ot({paddingY:2,paddingX:3,display:"flex",backgroundColor:"darkBlue",borderWidth:1,borderRadius:"huge",minWidth:160,color:"white"},ea.md,{":hover":{backgroundColor:"blue100"}}),secondary:Ot({paddingY:2,paddingX:3,backgroundColor:"gray10",borderWidth:1,borderRadius:"large",borderColor:"transparent"},ea.md,{":hover":{backgroundColor:"gray5",borderColor:"gray10"}}),pill:Ot({paddingY:1,paddingX:1.5,minWidth:100,borderWidth:1,opacity:.85,borderRadius:"large",borderColor:"transparent"},ea.md,{":hover":{opacity:1}}),callToActionLight:Et(Et({backgroundColor:"white",color:"purple"},xa),{},Ot({},ea.md,{":hover":{color:"purple50"}})),callToActionDark:Et(Et({backgroundColor:"purple",color:"white"},xa),{},Ot({},ea.md,{":hover":{backgroundColor:"purple50"}}))}})),_a=function(e){var t=e.children,n=e.href;return(0,Qn.jsx)("a",{href:n,children:t})},Oa=function(e){var t=e.children;return(0,Qn.jsx)(Qn.Fragment,{children:t})};var Sa=function(e){var t=e.className,n=e.variant,r=void 0===n?"primary":n,o=e.as,i=void 0===o?"button":o,a=e.color,u=e.onClick,s=void 0===u?function(){}:u,l=e.href,c=e.fillWidth,f=e.children,d=e.childWrap,p=void 0===d?Xi:d,h=e.icon,v=e.iconSize,y=void 0===v?14:v,m=e.iconPosition,g=void 0===m?"before":m,b=e.alignment,w=void 0===b?"start":b,x="none"===p?Oa:p;return l?(0,Qn.jsx)(_a,{href:l,children:(0,Qn.jsx)(ka,{className:t,alignment:w,role:"button",$width:c?"full":void 0,as:"a",variant:r,color:a,onClick:s,children:(0,Qn.jsx)(x,{children:f})})}):(0,Qn.jsxs)(ka,{as:i,className:t,alignment:w,$width:c?"full":void 0,variant:r,color:a,onClick:s,children:[h&&"before"===g&&(0,Qn.jsx)(ta,{$pr:1,$display:"flex",children:(0,Qn.jsx)(Do,{name:h,width:y,height:y})}),f&&(0,Qn.jsx)(Xi,{whiteSpace:"nowrap",children:f}),h&&"after"===g&&(0,Qn.jsx)(ta,{$pl:1,$display:"flex",children:(0,Qn.jsx)(Do,{name:h,width:y,height:y})})]})};function Ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){Ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Da(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pa(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ia(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fa(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return Ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var La=(0,t.createContext)({});var Va=function(e,n,r){void 0===r&&(r=n.children);var o=(0,t.useContext)(La);if(o.useCreateElement)return o.useCreateElement(e,n,r);if("string"===typeof e&&function(e){return"function"===typeof e}(r)){n.children;return r(Ia(n,["children"]))}return(0,t.createElement)(e,n,r)};function Ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach((function(t){Ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function za(e){return"object"===typeof e&&null!=e}function qa(e){var t;if(!za(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function Ha(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function Ya(e,t){if(void 0===t&&(t=[]),!qa(e.state))return Ha(e,t);var n=Ha(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[Wa(Wa({},i),a),o]}function $a(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!==typeof e)return!1;if("object"!==typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var u=a[i];if(e[u]!==t[u])return!1}return!0}function Ka(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return qa(t.state)&&qa(n.state)?e(Wa(Wa({},t.state),t),Wa(Wa({},n.state),n)):e(t,n)}}function Qa(e){var n,r=e.as,o=e.useHook,i=e.memo,a=e.propsAreEqual,u=void 0===a?null===o||void 0===o?void 0:o.unstable_propsAreEqual:a,s=e.keys,l=void 0===s?(null===o||void 0===o?void 0:o.__keys)||[]:s,c=e.useCreateElement,f=void 0===c?Va:c,d=function(e,t){var n=e.as,i=void 0===n?r:n,a=Ia(e,["as"]);if(o){var u,s=Ya(a,l),c=s[0],d=s[1],p=o(c,Na({ref:t},d)),h=p.wrapElement,v=Ia(p,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,m=y&&Ya(a,y)[0],g=m?Na(Na({},v),m):v,b=f(i,g);return h?h(b):b}return f(i,Na({ref:t},a))};return n=d,d=(0,t.forwardRef)(n),i&&(d=function(e,n){return(0,t.memo)(e,n)}(d,u&&Ka(u))),d.__keys=l,d.unstable_propsAreEqual=Ka(u||$a),d}function Ga(e,n){(0,t.useDebugValue)(e);var r=(0,t.useContext)(La);return null!=r[e]?r[e]:n}function Xa(e){var n,r,o,i=(o=e.compose,Array.isArray(o)?o:"undefined"!==typeof o?[o]:[]),a=function(n,r){if(e.useOptions&&(n=e.useOptions(n,r)),e.name&&(n=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o="use"+e+"Options";(0,t.useDebugValue)(o);var i=Ga(o);return i?Na(Na({},n),i(n,r)):n}(e.name,n,r)),e.compose)for(var o,a=Fa(i);!(o=a()).done;){n=o.value.__useOptions(n,r)}return n},u=function(n,r,o){if(void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=!1),o||(n=a(n,r)),e.useProps&&(r=e.useProps(n,r)),e.name&&(r=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o="use"+e+"Props";(0,t.useDebugValue)(o);var i=Ga(o);return i?i(n,r):r}(e.name,n,r)),e.compose)if(e.useComposeOptions&&(n=e.useComposeOptions(n,r)),e.useComposeProps)r=e.useComposeProps(n,r);else for(var u,s=Fa(i);!(u=s()).done;){r=(0,u.value)(n,r,!0)}var l={},c=r||{};for(var f in c)void 0!==c[f]&&(l[f]=c[f]);return l};u.__useOptions=a;var s=i.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(s,(null===(n=e.useState)||void 0===n?void 0:n.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(r=i[0])||void 0===r?void 0:r.unstable_propsAreEqual)||$a,u}function Ja(e,t){void 0===t&&(t=null),e&&("function"===typeof e?e(t):e.current=t)}function Za(e,n){return(0,t.useMemo)((function(){return null==e&&null==n?null:function(t){Ja(e,t),Ja(n,t)}}),[e,n])}var eu,tu=["button","color","file","image","reset","submit"];function nu(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==tu.indexOf(t.type)}return!1}function ru(e){return e?e.ownerDocument||e:document}try{eu=window}catch(TI){}function ou(e){return e&&ru(e).defaultView||eu}var iu=function(){var e=ou();return Boolean("undefined"!==typeof e&&e.document&&e.document.createElement)}(),au=iu?t.useLayoutEffect:t.useEffect;function uu(e){var n=(0,t.useRef)(e);return au((function(){n.current=e})),n}function su(e){var t=ru(e).activeElement;return null!==t&&void 0!==t&&t.nodeName?t:null}function lu(e,t){return e===t||e.contains(t)}function cu(e){var t=su(e);if(!t)return!1;if(lu(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function fu(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function du(e,t){if("closest"in e)return e.closest(t);do{if(fu(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}var pu="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function hu(e){return fu(e,pu)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function vu(e){return hu(e)&&!function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function yu(e,t){var n=Array.from(e.querySelectorAll(pu)),r=n.filter(vu);return vu(e)&&r.unshift(e),!r.length&&t?n:r}function mu(e,t){return yu(e,t)[0]||null}function gu(e,n){var r=(0,t.useRef)(!1);(0,t.useEffect)((function(){if(r.current)return e();r.current=!0}),n)}var bu=iu&&"msCrypto"in window;function wu(e){return bu?su(e.currentTarget):e.relatedTarget}function xu(e){var t=su(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ku(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?xu:o;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}function _u(e){return e.target===e.currentTarget}var Ou=Xa({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=Ta(e,["unstable_system"]),o=t.unstable_system,i=Ta(t,["unstable_system"]);return!(n!==o&&!$a(n,o))&&$a(r,i)}}),Su=(Qa({as:"div",useHook:Ou}),["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"]),Eu=Xa({name:"DisclosureContent",compose:Ou,keys:Su,useProps:function(e,n){var r=n.onTransitionEnd,o=n.onAnimationEnd,i=n.style,a=Ta(n,["onTransitionEnd","onAnimationEnd","style"]),u=e.animated&&e.animating,s=(0,t.useState)(null),l=s[0],c=s[1],f=!e.visible&&!u,d=f?ja({display:"none"},i):i,p=uu(r),h=uu(o),v=(0,t.useRef)(0);(0,t.useEffect)((function(){if(e.animated)return v.current=window.requestAnimationFrame((function(){v.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(u?"leave":null)}))})),function(){return window.cancelAnimationFrame(v.current)}}),[e.animated,e.visible,u]);var y=(0,t.useCallback)((function(t){var n;_u(t)&&(u&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,u,e.stopAnimation]),m=(0,t.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),y(e)}),[y]),g=(0,t.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),y(e)}),[y]);return ja({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:m,onAnimationEnd:g,hidden:f,style:d},a)}});Qa({as:"div",useHook:Eu});function Cu(){return iu?document.body:null}var ju=(0,t.createContext)(Cu());function Tu(e){var n=e.children,o=(0,t.useContext)(ju)||Cu(),i=(0,t.useState)((function(){if(iu){var e=document.createElement("div");return e.className=Tu.__className,e}return null}))[0];return au((function(){if(i&&o)return o.appendChild(i),function(){o.removeChild(i)}}),[i,o]),i?(0,r.createPortal)((0,t.createElement)(ju.Provider,{value:i},n),i):null}function Pu(e,t){var n=e.indexOf(t);return function(e,t){return-1===t?e:[].concat(e.slice(0,t),e.slice(t+1))}(e,n)}Tu.__className="__reakit-portal",Tu.__selector="."+Tu.__className;var Du=(0,t.createContext)(null);var Mu=!1;if("undefined"!==typeof window){var Au={get passive(){Mu=!0}};window.addEventListener("testPassive",null,Au),window.removeEventListener("testPassive",null,Au)}var Nu="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Iu=[],Ru=!1,Fu=-1,Lu=void 0,Vu=void 0,Bu=function(e){return Iu.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Uu=function(e){var t=e||window.event;return!!Bu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Wu=function(){void 0!==Vu&&(document.body.style.paddingRight=Vu,Vu=void 0),void 0!==Lu&&(document.body.style.overflow=Lu,Lu=void 0)},zu=function(e,t){if(e){if(!Iu.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Iu=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Iu),[n]),Nu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Fu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Fu;!Bu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Uu(e):e.stopPropagation())}(t,e)},Ru||(document.addEventListener("touchmove",Uu,Mu?{passive:!1}:void 0),Ru=!0)):function(e){if(void 0===Vu){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Vu=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Lu&&(Lu=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},qu=(0,t.createContext)(void 0);var Hu=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal"],Yu=[].concat(Hu,["hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_initialFocusRef","unstable_finalFocusRef","unstable_orphan","unstable_autoFocusOnShow","unstable_autoFocusOnHide"]),$u=Hu,Ku=$u;function Qu(e,n){var r=Boolean(n.preventBodyScroll&&n.visible);(0,t.useEffect)((function(){var t=e.current;if(t&&r)return zu(t,{reserveScrollBarGap:!0}),function(){var e;(e=t)?(Iu=Iu.filter((function(t){return t.targetElement!==e})),Nu?(e.ontouchstart=null,e.ontouchmove=null,Ru&&0===Iu.length&&(document.removeEventListener("touchmove",Uu,Mu?{passive:!1}:void 0),Ru=!1)):Iu.length||Wu()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),[e,r])}function Gu(e){null!=e.parentNode&&e.parentNode.removeChild(e)}var Xu="__reakit-focus-trap";function Ju(e,n,r){var o=function(e,n){var r=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=e.current;t&&n.visible&&(r.current=du(t,Tu.__selector))}),[e,n.visible]),r}(e,r),i=r.visible&&r.modal,a=(0,t.useRef)(null),u=(0,t.useRef)(null);(0,t.useEffect)((function(){if(i){var e=o.current;if(e){if(!a.current){var t=ru(e);a.current=t.createElement("div"),a.current.className=Xu,a.current.tabIndex=0,a.current.style.position="fixed",a.current.setAttribute("aria-hidden","true")}return u.current||(u.current=a.current.cloneNode()),e.insertAdjacentElement("beforebegin",a.current),e.insertAdjacentElement("afterend",u.current),function(){a.current&&Gu(a.current),u.current&&Gu(u.current)}}}}),[o,i]),(0,t.useEffect)((function(){var t=a.current,r=u.current;if(i&&t&&r){var o=function(t){var o=e.current;if(o&&!n.length){t.preventDefault();var i=t.target===r?mu(o):function(e,t){var n=yu(e,t);return n[n.length-1]||null}(o);i?i.focus():o.focus()}};return t.addEventListener("focus",o),r.addEventListener("focus",o),function(){t.removeEventListener("focus",o),r.removeEventListener("focus",o)}}}),[e,n,i])}function Zu(e,t,n){var r=n.unstable_autoFocusOnHide&&!n.visible,o=!(!n.animated||!n.animating);gu((function(){var i;if(r&&!o&&!function(e){var t=e.current;if(!t)return!1;var n=su(t);return!!n&&!lu(t,n)&&(!!vu(n)||"true"===n.getAttribute("data-dialog"))}(e)){var a=(null===(i=n.unstable_finalFocusRef)||void 0===i?void 0:i.current)||t.current;if(a){if(a.id){var u=ru(a).querySelector("[aria-activedescendant='"+a.id+"']");if(u)return void ku(u)}ku(a)}else;}}),[r,o,e,t])}var es=(0,t.createContext)({});function ts(e,n,r,o,i,a,u){var s=uu(i);(0,t.useEffect)((function(){if(a){var t=function(t){if(s.current){var o=e.current,i=n.current,a=t.target;o&&function(e){var t=ru(e);return"HTML"===e.tagName||lu(t.body,e)}(a)&&(lu(o,a)||i&&function(e,t){return lu(t,e)}(a,i)||function(e){var t;return null===(t=e.classList)||void 0===t?void 0:t.contains(Xu)}(a)||r.some(function(e){return function(t){var n=t.current;if(!n)return!1;if(lu(n,e))return!0;var r=ru(n).querySelector('[data-dialog-ref="'+n.id+'"]');return!!r&&lu(r,e)}}(a))||s.current(t))}},i=ru(e.current);return i.addEventListener(o,t,u),function(){return i.removeEventListener(o,t,u)}}}),[e,n,r,o,a,s])}function ns(e,n,r,o){var i=function(e,n){var r=(0,t.useRef)();return(0,t.useEffect)((function(){if(n.visible&&n.hideOnClickOutside){var t=ru(e.current),o=function(e){r.current=e.target};return t.addEventListener("mousedown",o),function(){return t.removeEventListener("mousedown",o)}}}),[n.visible,n.hideOnClickOutside,e]),r}(e,o);ts(e,n,r,"click",(function(e){var t;i.current===e.target&&(null===(t=o.hide)||void 0===t||t.call(o))}),o.visible&&o.hideOnClickOutside),ts(e,n,r,"focusin",(function(t){var n,r=ru(e.current);t.target!==r&&t.target!==r.body&&(null===(n=o.hide)||void 0===n||n.call(o))}),o.visible&&o.hideOnClickOutside)}function rs(e,n){(0,t.useEffect)((function(){var t=e.current;if(n.visible&&t){var r=new MutationObserver((function(e){if(e[0].target===t){var n,r=ru(t),o=su(t);o!==r.body&&(n=o,Array.isArray(n)?n.length:za(n)?Object.keys(n).length:null!=n&&""!==n)||t.focus()}}));return r.observe(t,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[n.visible,e])}function os(e){return e&&e.tagName&&"HTML"!==e.tagName&&e!==ru(e).body}var is=Xa({name:"Dialog",compose:Eu,keys:Yu,useOptions:function(e){var t=e.modal,n=void 0===t||t,r=e.hideOnEsc,o=void 0===r||r,i=e.hideOnClickOutside,a=void 0===i||i,u=e.preventBodyScroll,s=void 0===u?n:u,l=e.unstable_autoFocusOnShow,c=void 0===l||l,f=e.unstable_autoFocusOnHide,d=void 0===f||f,p=e.unstable_orphan;return ja({modal:n,hideOnEsc:o,hideOnClickOutside:a,preventBodyScroll:n&&s,unstable_autoFocusOnShow:c,unstable_autoFocusOnHide:d,unstable_orphan:n&&p},Ta(e,["modal","hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_orphan"]))},useProps:function(e,n){var r=n.ref,o=n.onKeyDown,i=n.onBlur,a=n.wrapElement,u=n.tabIndex,s=Ta(n,["ref","onKeyDown","onBlur","wrapElement","tabIndex"]),l=(0,t.useRef)(null),c=(0,t.useContext)(qu),f=c&&c===e.baseId,d=function(e,n){var r=(0,t.useRef)(null),o=!(!n.animated||!n.animating);return(0,t.useEffect)((function(){if(!n.visible&&!o){var t=function(e){var t=e.target;"focus"in t&&(r.current=t,n.unstable_disclosureRef&&(n.unstable_disclosureRef.current=t))},i=ru(e.current);return i.addEventListener("focusin",t),function(){return i.removeEventListener("focusin",t)}}}),[n.visible,o,n.unstable_disclosureRef,e]),(0,t.useEffect)((function(){var e;if(n.visible&&!o){var t=function(e){var t=e.currentTarget;nu(t)&&(e.preventDefault(),t.focus())},i=(null===(e=n.unstable_disclosureRef)||void 0===e?void 0:e.current)||r.current;return null===i||void 0===i||i.addEventListener("mousedown",t),function(){return null===i||void 0===i?void 0:i.removeEventListener("mousedown",t)}}}),[n.visible,o,n.unstable_disclosureRef]),n.unstable_disclosureRef||r}(l,e),p=uu(o),h=uu(i),v=function(e,n){var r=(0,t.useReducer)((function(e){return e+1}),0),o=r[0],i=r[1];return au((function(){var t=e.current;n.visible&&o&&(os(su(t))||null===t||void 0===t||t.focus())}),[o,e]),(0,t.useCallback)((function(e){n.visible&&(os(wu(e))||i())}),[n.visible])}(l,e),y=function(e,n){var r=(0,t.useContext)(es),o=(0,t.useState)([]),i=o[0],a=o[1],u=(0,t.useState)(i),s=u[0],l=u[1],c=(0,t.useCallback)((function(e){var t;null===(t=r.addDialog)||void 0===t||t.call(r,e),a((function(t){return[].concat(t,[e])}))}),[r.addDialog]),f=(0,t.useCallback)((function(e){var t;null===(t=r.removeDialog)||void 0===t||t.call(r,e),a((function(t){return Pu(t,e)}))}),[r.removeDialog]),d=(0,t.useCallback)((function(e){var t;null===(t=r.showDialog)||void 0===t||t.call(r,e),l((function(t){return[].concat(t,[e])}))}),[r.showDialog]),p=(0,t.useCallback)((function(e){var t;null===(t=r.hideDialog)||void 0===t||t.call(r,e),l((function(t){return Pu(t,e)}))}),[r.hideDialog]);(0,t.useEffect)((function(){var t;if(!n.unstable_orphan)return null===(t=r.addDialog)||void 0===t||t.call(r,e),function(){var t;null===(t=r.removeDialog)||void 0===t||t.call(r,e)}}),[n.unstable_orphan,r.addDialog,e,r.removeDialog]),(0,t.useEffect)((function(){var t;if(!n.unstable_orphan&&n.modal&&n.visible)return null===(t=r.showDialog)||void 0===t||t.call(r,e),function(){var t;null===(t=r.hideDialog)||void 0===t||t.call(r,e)}}),[n.unstable_orphan,n.modal,n.visible,r.showDialog,e,r.hideDialog]),(0,t.useEffect)((function(){var e;!1===r.visible&&n.visible&&!n.unstable_orphan&&(null===(e=n.hide)||void 0===e||e.call(n))}),[r.visible,n.visible,n.hide,n.unstable_orphan]);var h=(0,t.useMemo)((function(){return{visible:n.visible,addDialog:c,removeDialog:f,showDialog:d,hideDialog:p}}),[n.visible,c,f,d,p]);return{dialogs:i,visibleModals:s,wrap:(0,t.useCallback)((function(e){return(0,t.createElement)(es.Provider,{value:h},e)}),[h])}}(l,e),m=y.dialogs,g=y.visibleModals,b=y.wrap,w=!(!e.modal||g.length)||void 0;Qu(l,e),Ju(l,g,e),rs(l,e),function(e,t,n){var r=n.unstable_initialFocusRef,o=n.visible&&n.unstable_autoFocusOnShow,i=!(!n.animated||!n.animating);gu((function(){var n=e.current;if(o&&n&&!i&&!t.some((function(e){return e.current&&!e.current.hidden})))if(null!==r&&void 0!==r&&r.current)r.current.focus({preventScroll:!0});else{ku(mu(n,!0)||n,{preventScroll:!0,isActive:function(){return cu(n)}})}}),[e,o,i,t,r])}(l,m,e),Zu(l,d,e),ns(l,d,m,e),function(e,t,n){var r=function(r){return ts(e,{current:null},t,r,(function(e){e.stopPropagation(),e.preventDefault()}),n.visible&&n.modal,!0)};r("mouseover"),r("mousemove"),r("mouseout")}(l,m,e);var x=(0,t.useCallback)((function(t){var n;null===(n=p.current)||void 0===n||n.call(p,t),t.defaultPrevented||"Escape"===t.key&&e.hideOnEsc&&e.hide&&(t.stopPropagation(),e.hide())}),[e.hideOnEsc,e.hide]),k=(0,t.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),v(e)}),[v]),_=(0,t.useCallback)((function(n){return n=b(n),e.modal&&!f&&(n=(0,t.createElement)(Tu,null,n)),a&&(n=a(n)),(0,t.createElement)(Du.Provider,{value:null},n)}),[b,e.modal,f,a]);return ja({ref:Za(l,r),role:"dialog",tabIndex:null!=u?u:-1,"aria-modal":w,"data-dialog":!0,onKeyDown:x,onBlur:k,wrapElement:_},s)}}),as=Qa({as:"div",useHook:is,useCreateElement:function(e,t,n){return Va(e,t,n)}});function us(e){return(0,t.useState)(e)[0]}function ss(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var ls=(0,t.createContext)(ss);function cs(e){void 0===e&&(e={});var n=us(e).baseId,r=(0,t.useContext)(ls),o=(0,t.useRef)(0),i=(0,t.useState)((function(){return n||r()}));return{baseId:i[0],setBaseId:i[1],unstable_idCountRef:o}}function fs(e){void 0===e&&(e={});var n=us(e),r=n.visible,o=void 0!==r&&r,i=n.animated,a=void 0!==i&&i,u=cs(Ta(n,["visible","animated"])),s=(0,t.useState)(o),l=s[0],c=s[1],f=(0,t.useState)(a),d=f[0],p=f[1],h=(0,t.useState)(!1),v=h[0],y=h[1],m=function(e){var n=(0,t.useRef)(null);return au((function(){n.current=e}),[e]),n}(l),g=null!=m.current&&m.current!==l;d&&!v&&g&&y(!0),(0,t.useEffect)((function(){if("number"===typeof d&&v){var e=setTimeout((function(){return y(!1)}),d);return function(){clearTimeout(e)}}return function(){}}),[d,v]);var b=(0,t.useCallback)((function(){return c(!0)}),[]),w=(0,t.useCallback)((function(){return c(!1)}),[]),x=(0,t.useCallback)((function(){return c((function(e){return!e}))}),[]),k=(0,t.useCallback)((function(){return y(!1)}),[]);return ja(ja({},u),{},{visible:l,animated:d,animating:v,show:b,hide:w,toggle:x,setVisible:c,setAnimated:p,stopAnimation:k})}function ds(e){void 0===e&&(e={});var n=us(e),r=n.modal,o=void 0===r||r,i=fs(Ta(n,["modal"])),a=(0,t.useState)(o),u=a[0],s=a[1],l=(0,t.useRef)(null);return ja(ja({},i),{},{modal:u,setModal:s,unstable_disclosureRef:l})}function ps(e){return!lu(e.currentTarget,e.target)}function hs(e){return!!iu&&-1!==window.navigator.userAgent.indexOf(e)}var vs=hs("Mac")&&!hs("Chrome")&&(hs("Safari")||hs("Firefox"));function ys(e){cu(e)||e.focus()}function ms(){if(vs){var e=(0,t.useState)(null),n=e[0],r=e[1];return(0,t.useEffect)((function(){n&&(ys(n),r(null))}),[n]),(0,t.useCallback)((function(e){var t=e.currentTarget;if(!ps(e)&&nu(t)){var n=su(t);if(n){var o="BODY"===n.tagName,i=function(e){for(;e&&!hu(e);)e=du(e,pu);return e}(t.parentElement);if(n===i||o&&!i)r(t);else if(i){i.addEventListener("focusin",(function(){return r(t)}),{once:!0})}else{n.addEventListener("blur",(function(){return ys(t)}),{once:!0})}}}}),[])}}function gs(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function bs(e,n){return(0,t.useCallback)((function(t){var r;null===(r=e.current)||void 0===r||r.call(e,t),t.defaultPrevented||n&&(t.stopPropagation(),t.preventDefault())}),[e,n])}var ws=Xa({name:"Tabbable",compose:Ou,keys:["disabled","focusable"],useOptions:function(e,t){return ja({disabled:t.disabled},e)},useProps:function(e,n){var r=n.ref,o=n.tabIndex,i=n.onClickCapture,a=n.onMouseDownCapture,u=n.onMouseDown,s=n.onKeyPressCapture,l=n.style,c=Ta(n,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),f=(0,t.useRef)(null),d=uu(i),p=uu(a),h=uu(u),v=uu(s),y=!!e.disabled&&!e.focusable,m=(0,t.useState)(!0),g=m[0],b=m[1],w=(0,t.useState)(!0),x=w[0],k=w[1],_=e.disabled?ja({pointerEvents:"none"},l):l,O=ms();au((function(){var e,t=f.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&b(!1),function(e){return"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName}(t)||k(!1))}),[]);var S=bs(d,e.disabled),E=bs(p,e.disabled),C=bs(v,e.disabled),j=(0,t.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||null===O||void 0===O||O(e)}),[e.disabled,O]);return ja({ref:Za(f,r),style:_,tabIndex:gs(y,g,x,o),disabled:!(!y||!x)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:S,onMouseDownCapture:E,onMouseDown:j,onKeyPressCapture:C},c)}});Qa({as:"div",useHook:ws});var xs,ks=Xa({name:"Clickable",compose:ws,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return ja({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},Ta(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,n){var r=n.onKeyDown,o=n.onKeyUp,i=Ta(n,["onKeyDown","onKeyUp"]),a=(0,t.useState)(!1),u=a[0],s=a[1],l=uu(r),c=uu(o),f=(0,t.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&_u(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(nu(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,t.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;u&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,u]);return ja({"data-active":u||void 0,onKeyDown:f,onKeyUp:d},i)}}),_s=(Qa({as:"button",memo:!0,useHook:ks}),Xa({name:"Button",compose:ks,keys:[],useProps:function(e,n){var r=n.ref,o=Ta(n,["ref"]),i=(0,t.useRef)(null),a=(0,t.useState)(void 0),u=a[0],s=a[1],l=(0,t.useState)("button"),c=l[0],f=l[1];return(0,t.useEffect)((function(){var e=i.current;e&&(nu(e)||("A"!==e.tagName&&s("button"),f(void 0)))}),[]),ja({ref:Za(i,r),role:u,type:c},o)}})),Os=(Qa({as:"button",memo:!0,useHook:_s}),Xa({name:"Disclosure",compose:_s,keys:Su,useProps:function(e,n){var r=n.onClick,o=n["aria-controls"],i=Ta(n,["onClick","aria-controls"]),a=uu(r),u=o?o+" "+e.baseId:e.baseId,s=(0,t.useCallback)((function(t){var n,r;null===(n=a.current)||void 0===n||n.call(a,t),t.defaultPrevented||null===(r=e.toggle)||void 0===r||r.call(e)}),[e.toggle]);return ja({"aria-expanded":!!e.visible,"aria-controls":u,onClick:s},i)}})),Ss=(Qa({as:"button",memo:!0,useHook:Os}),Xa({name:"DialogDisclosure",compose:Os,keys:Ku,useProps:function(e,n){var r=n.ref,o=n.onClick,i=Ta(n,["ref","onClick"]),a=(0,t.useRef)(null),u=uu(o),s=(0,t.useState)(!1),l=s[0],c=s[1],f=e.unstable_disclosureRef;au((function(){var t=a.current;f&&!f.current&&(f.current=t);var n=!(null!==f&&void 0!==f&&f.current)||f.current===t;c(!!e.visible&&n)}),[e.visible,f]);var d=(0,t.useCallback)((function(e){var t;null===(t=u.current)||void 0===t||t.call(u,e),e.defaultPrevented||f&&(f.current=e.currentTarget)}),[f]);return ja({ref:Za(a,r),"aria-haspopup":"dialog","aria-expanded":l,onClick:d},i)}})),Es=Qa({as:"button",memo:!0,useHook:Ss}),Cs=Qa({as:"div",memo:!0,useHook:Xa({name:"DialogBackdrop",compose:Eu,keys:$u,useOptions:function(e){var t=e.modal;return ja({modal:void 0===t||t},Ta(e,["modal"]))},useProps:function(e,n){var r=n.wrapElement,o=Ta(n,["wrapElement"]),i=(0,t.useCallback)((function(n){return e.modal&&(n=(0,t.createElement)(Tu,null,(0,t.createElement)(qu.Provider,{value:e.baseId},n))),r?r(n):n}),[e.modal,r]);return ja({id:void 0,"data-dialog-ref":e.baseId,wrapElement:i},o)}})}),js=Ae("div")({position:"fixed",top:0,left:0,width:"100%",height:"100%",overflowX:"hidden",overflowY:"auto",transition:"opacity 250ms ease-in-out",backgroundColor:"rgba(0,0,0,0.7)",opacity:0,zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center","&[data-enter]":{opacity:1}}),Ts=(Ae("div")({width:"100%",opacity:0,transition:"opacity 250ms ease-in-out","&[data-enter]":{opacity:1}}),Ae("div")((function(e){var t=e.size,n=void 0===t?"small":t;return{background:$n.colors.white,width:"90vw",maxWidth:"large"===n?1280:1024,minHeight:"clamp(500px, 90vh, 800px)",maxHeight:"90vh",display:"flex",flexDirection:"column",borderRadius:$n.borderRadius.large}}))),Ps=Ae("div")({marginRight:$n.space[2],display:"flex",flex:1,paddingTop:$n.space[1.5],overflowY:"auto",overflowX:"hidden"}),Ds=Ae("main")({display:"flex",flex:"0 1 auto",flexDirection:"column",paddingLeft:$n.space[4],width:"100%"}),Ms=Ae("div")({flex:"0 1 100%",overflow:"auto",paddingRight:$n.space[4],paddingBottom:$n.space[2]}),As={bottom:Ae("footer")({display:"flex",alignItems:"center",paddingBottom:$n.space[3],paddingTop:$n.space[3],paddingRight:$n.space[4],flex:1}),content:Ds,inner:Ps,modalOuter:Ts,scrollable:Ms},Ns=(0,t.forwardRef)((function(e,n){var r=br((0,t.useState)(!1),2),o=r[0],i=r[1];return(0,t.useLayoutEffect)((function(){i(!0)}),[]),o?(0,Qn.jsx)(js,Et({ref:n},e)):null})),Is=Ae(as)(xs||(xs=Xn(["\n  transition: opacity 600ms;\n  opacity: 0;\n  &[data-enter] {\n    opacity: 1;\n  }\n"]))),Rs=function(e){var n=e.disclosure,r=e.baseId,o=e.initialVisibility,i=e.toggleClose,a=e.children,u=e.onVisibilityChange,s=e.renderDisclosure,l=void 0===s?function(e){return e}:s,c=e.modalLabel,f=e.removeOnClose,d=void 0===f||f,p=e.isVisible,h=e.hideOnClickOutside,v=e.tabIndex,y=e.hideOnEsc,m=void 0===y||y,g=ds({animated:!0,baseId:r,visible:o||!1}),b=(0,t.useCallback)((function(){return g.hide()}),[g]);(0,t.useEffect)((function(){i&&b()}),[b,i]),(0,t.useEffect)((function(){p?g.show():!1===p&&g.hide()}),[p,g]),(0,t.useEffect)((function(){u&&u(g.visible)}),[g.visible,u]);var w=!d||d&&g.visible;return(0,Qn.jsxs)(t.Fragment,{children:[n?(0,Qn.jsx)(Es,Et(Et(Et({ref:n.ref},g),n.props),{},{children:function(e){return l(t.cloneElement(n,e),e)}})):null,w&&(0,Qn.jsx)(Cs,Et(Et({},g),{},{as:Ns,children:(0,Qn.jsx)(Is,Et(Et({},g),{},{"aria-label":c,hideOnClickOutside:h,tabIndex:v,hideOnEsc:m,"data-root-modal":!0,children:"function"===typeof a?a({modal:g}):a}))}))]},"modal")};function Fs(){Fs=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:x(e,n,u)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,u){var s=c(e[r],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==kt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e||""===e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}throw new TypeError(kt(e)+" is not iterable")}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ls(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(l){return void n(l)}u.done?t(s):Promise.resolve(s).then(r,o)}function Vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ls(i,r,o,a,u,"next",e)}function u(e){Ls(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Bs(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(o!==t){var i=t;t=r?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e,r,i){return r||i?function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is,a=r(t);function u(){var n=r(t);if(!i(a,n)){var o=a;e(a=n,o)}}return n.add(u),function(){return n.delete(u)}}(e,r,i):(n.add(e),function(){return n.delete(e)})},destroy:function(){return n.clear()}};return t=e(r,o,i),i}var Us="undefined"===typeof window?t.useEffect:t.useLayoutEffect;var Ws=function(e){var n="function"===typeof e?Bs(e):e,r=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.getState,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,i=br((0,t.useReducer)((function(e){return e+1}),0),2)[1],a=n.getState(),u=(0,t.useRef)(a),s=(0,t.useRef)(r),l=(0,t.useRef)(o),c=(0,t.useRef)(!1),f=(0,t.useRef)();void 0===f.current&&(f.current=r(a));var d=!1;(u.current!==a||s.current!==r||l.current!==o||c.current)&&(e=r(a),d=!o(f.current,e)),Us((function(){d&&(f.current=e),u.current=a,s.current=r,l.current=o,c.current=!1}));var p=(0,t.useRef)(a);return Us((function(){var e=function(){try{var e=n.getState(),t=s.current(e);l.current(f.current,t)||(u.current=e,f.current=t,i())}catch(r){c.current=!0,i()}},t=n.subscribe(e);return n.getState()!==p.current&&e(),t}),[]),d?e:f.current};return Object.assign(r,n),r[Symbol.iterator]=Fs().mark((function e(){return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("[useStore, api] = create() is deprecated and will be removed in v4"),e.next=3,r;case 3:return e.next=5,n;case 5:case"end":return e.stop()}}),e)})),r},zs=n(9513),qs=n(9787),Hs=n.n(qs);function Ys(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function $s(e){return!!e&&!!e[Nl]}function Ks(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[Al]||!!e.constructor[Al]||tl(e)||nl(e))}function Qs(e,t,n){void 0===n&&(n=!1),0===Gs(e)?(n?Object.keys:Il)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Gs(e){var t=e[Nl];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:tl(e)?2:nl(e)?3:0}function Xs(e,t){return 2===Gs(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Js(e,t){return 2===Gs(e)?e.get(t):e[t]}function Zs(e,t,n){var r=Gs(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function el(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function tl(e){return Tl&&e instanceof Map}function nl(e){return Pl&&e instanceof Set}function rl(e){return e.o||e.t}function ol(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Rl(e);delete t[Nl];for(var n=Il(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function il(e,t){return void 0===t&&(t=!1),ul(e)||$s(e)||!Ks(e)||(Gs(e)>1&&(e.set=e.add=e.clear=e.delete=al),Object.freeze(e),t&&Qs(e,(function(e,t){return il(t,!0)}),!0)),e}function al(){Ys(2)}function ul(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function sl(e){var t=Fl[e];return t||Ys(18,e),t}function ll(){return Cl}function cl(e,t){t&&(sl("Patches"),e.u=[],e.s=[],e.v=t)}function fl(e){dl(e),e.p.forEach(hl),e.p=null}function dl(e){e===Cl&&(Cl=e.l)}function pl(e){return Cl={p:[],l:Cl,h:e,m:!0,_:0}}function hl(e){var t=e[Nl];0===t.i||1===t.i?t.j():t.g=!0}function vl(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||sl("ES5").S(t,e,r),r?(n[Nl].P&&(fl(t),Ys(4)),Ks(e)&&(e=yl(t,e),t.l||gl(t,e)),t.u&&sl("Patches").M(n[Nl],e,t.u,t.s)):e=yl(t,n,[]),fl(t),t.u&&t.v(t.u,t.s),e!==Ml?e:void 0}function yl(e,t,n){if(ul(t))return t;var r=t[Nl];if(!r)return Qs(t,(function(o,i){return ml(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return gl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=ol(r.k):r.o;Qs(3===r.i?new Set(o):o,(function(t,i){return ml(e,r,o,t,i,n)})),gl(e,o,!1),n&&e.u&&sl("Patches").R(r,n,e.u,e.s)}return r.o}function ml(e,t,n,r,o,i){if($s(o)){var a=yl(e,o,i&&t&&3!==t.i&&!Xs(t.D,r)?i.concat(r):void 0);if(Zs(n,r,a),!$s(a))return;e.m=!1}if(Ks(o)&&!ul(o)){if(!e.h.N&&e._<1)return;yl(e,o),t&&t.A.l||gl(e,o)}}function gl(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&il(t,n)}function bl(e,t){var n=e[Nl];return(n?rl(n):e)[t]}function wl(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function xl(e){e.P||(e.P=!0,e.l&&xl(e.l))}function kl(e){e.o||(e.o=ol(e.t))}function _l(e,t,n){var r=tl(t)?sl("MapSet").T(t,n):nl(t)?sl("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:ll(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Ll;n&&(o=[r],i=Vl);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):sl("ES5").J(t,n);return(n?n.A:ll()).p.push(r),r}function Ol(e){return $s(e)||Ys(22,e),function e(t){if(!Ks(t))return t;var n,r=t[Nl],o=Gs(t);if(r){if(!r.P&&(r.i<4||!sl("ES5").K(r)))return r.t;r.I=!0,n=Sl(t,o),r.I=!1}else n=Sl(t,o);return Qs(n,(function(t,o){r&&Js(r.t,t)===o||Zs(n,t,e(o))})),3===o?new Set(n):n}(e)}function Sl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ol(e)}var El,Cl,jl="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Tl="undefined"!=typeof Map,Pl="undefined"!=typeof Set,Dl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ml=jl?Symbol.for("immer-nothing"):((El={})["immer-nothing"]=!0,El),Al=jl?Symbol.for("immer-draftable"):"__$immer_draftable",Nl=jl?Symbol.for("immer-state"):"__$immer_state",Il=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),Rl=Object.getOwnPropertyDescriptors||function(e){var t={};return Il(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Fl={},Ll={get:function(e,t){if(t===Nl)return e;var n=rl(e);if(!Xs(n,t))return function(e,t,n){var r,o=wl(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Ks(r)?r:r===bl(e.t,t)?(kl(e),e.o[t]=_l(e.A.h,r,e)):r},has:function(e,t){return t in rl(e)},ownKeys:function(e){return Reflect.ownKeys(rl(e))},set:function(e,t,n){var r=wl(rl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=bl(rl(e),t),i=null==o?void 0:o[Nl];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(el(n,o)&&(void 0!==n||Xs(e.t,t)))return!0;kl(e),xl(e)}return e.o[t]=n,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==bl(e.t,t)||t in e.t?(e.D[t]=!1,kl(e),xl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=rl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Ys(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ys(12)}},Vl={};Qs(Ll,(function(e,t){Vl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Vl.deleteProperty=function(e,t){return Ll.deleteProperty.call(this,e[0],t)},Vl.set=function(e,t,n){return Ll.set.call(this,e[0],t,n,e[0])};var Bl,Ul=function(){function e(e){this.O=Dl,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var r=t;t=e;var o=this;return function(e){var n=this;void 0===e&&(e=r);for(var i=arguments.length,a=Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return o.produce(e,(function(e){var r;return(r=t).call.apply(r,[n,e].concat(a))}))}}var i;if("function"!=typeof t&&Ys(6),void 0!==n&&"function"!=typeof n&&Ys(7),Ks(e)){var a=pl(this),u=_l(this,e,void 0),s=!0;try{i=t(u),s=!1}finally{s?fl(a):dl(a)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return cl(a,n),vl(e,a)}),(function(e){throw fl(a),e})):(cl(a,n),vl(i,a))}if(!e||"object"!=typeof e){if((i=t(e))===Ml)return;return void 0===i&&(i=e),this.N&&il(i,!0),i}Ys(21,e)},t.produceWithPatches=function(e,t){var n,r,o=this;return"function"==typeof e?function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return o.produceWithPatches(t,(function(t){return e.apply(void 0,[t].concat(r))}))}:[this.produce(e,t,(function(e,t){n=e,r=t})),n,r]},t.createDraft=function(e){Ks(e)||Ys(8),$s(e)&&(e=Ol(e));var t=pl(this),n=_l(this,e,void 0);return n[Nl].C=!0,dl(t),n},t.finishDraft=function(e,t){var n=(e&&e[Nl]).A;return cl(n,t),vl(void 0,n)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){e&&!Dl&&Ys(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=sl("Patches").$;return $s(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}(),Wl=new Ul,zl=Wl.produce,ql=(Wl.produceWithPatches.bind(Wl),Wl.setAutoFreeze.bind(Wl),Wl.setUseProxies.bind(Wl),Wl.applyPatches.bind(Wl),Wl.createDraft.bind(Wl),Wl.finishDraft.bind(Wl),zl),Hl={md:"repeat(2, 1fr)",lg:"repeat(4, 1fr)"},Yl=function(e){return(0,Qn.jsx)(ta,Et({$display:"grid",$gridRowGap:e.rowGap||$n.grid.gap,$gridColumnGap:e.columnGap||$n.grid.gap,$gridTemplateColumns:e.$gridTemplateColumns||Hl,$gridTemplateRows:e.$gridTemplateRows},e))},$l=ta,Kl=Ae("div")({flex:1,height:"100%","& + &":{marginLeft:$n.space[2]},"&:first-child:not(:last-child)":{marginRight:$n.space[2]}}),Ql=Ae("div")((function(e){var t=e.focused;return{borderBottom:"1px solid ".concat(t?$n.colors.blue:$n.colors.gray40),height:"100%",paddingBottom:$n.space[1],marginBottom:$n.space[.5],paddingTop:$n.space[2]}})),Gl=Ae("input")({outline:0,appearance:"none",border:0,fontSize:16,fontWeight:600,paddingBottom:$n.space[1],paddingTop:$n.space[1],width:"100%"}),Xl=Ae("div")((function(e){e.focused;return{flex:1,paddingBottom:$n.space[1],paddingTop:$n.space[2],"& + &":{marginLeft:$n.space[2]},"&:first-child:not(:last-child)":{marginRight:$n.space[2]}}})),Jl=Ae("input")({display:"flex",outline:0,appearance:"none",border:0,borderRadius:5,fontSize:14,fontWeight:300,padding:$n.space[1],backgroundColor:"#e4e3e8"}),Zl=Ae("div")((function(e){var t=e.focused;return{border:"1px solid ".concat(t?$n.colors.blue:$n.colors.gray40),borderRadius:5}})),ec=Ae("textarea")({display:"flex",height:"100px",width:"100%",maxWidth:"100%",resize:"vertical",fontFamily:"Arial",outline:0,appearance:"none",border:0,borderRadius:5,fontSize:14,fontWeight:300,padding:$n.space[1]}),tc=function(e,t){return"boolean"===typeof t?t:!e},nc=function(e){return(0,t.useReducer)(tc,e)},rc=["id","label","value","sublabel","onBlur"];function oc(e){var n=e.id,r=e.label,o=e.value,i=e.sublabel,a=e.onBlur,u=void 0===a?function(){}:a,s=Ct(e,rc),l=br(nc(!1),2),c=l[0],f=l[1],d=(0,t.useRef)(null);return(0,Qn.jsxs)(Kl,{children:[(0,Qn.jsx)(Ki,{as:"label",color:"black80",htmlFor:n,paddingBottom:2,onClick:function(){d.current&&d.current.focus()},children:r}),i&&(0,Qn.jsx)(Gi,{fontWeight:400,fontStyle:"italic",color:"gray100",children:i}),(0,Qn.jsx)(Zl,{focused:c,children:(0,Qn.jsx)(ec,Et({value:o,id:n,ref:d,onFocus:f,onBlur:function(e){f(),u(e)}},s))})]})}function ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ac(){}function uc(e){return!!(e||"").match(/\d/)}function sc(e){return null===e||void 0===e}function lc(e){return sc(e)||function(e){return"number"===typeof e&&isNaN(e)}(e)||"number"===typeof e&&!isFinite(e)}function cc(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fc(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function dc(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function pc(e,t){return Array(t+1).join(e)}function hc(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,u=(o=o.replace(".","")).length;return a<0?o="0."+pc("0",Math.abs(a))+o:a>=u?o+=pc("0",a-u):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function vc(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=fc(e),i=o.beforeDecimal,a=o.afterDecimal,u=o.hasNegation,s=parseFloat("0."+(a||"0")),l=(a.length<=t?"0."+a:s.toFixed(t)).split("."),c=i;return i&&Number(l[0])&&(c=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),l[0])),""+(u?"-":"")+c+(r?".":"")+dc(l[1]||"",t,n)}function yc(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(Bl||(Bl={}));var mc=function(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every((function(e,n){return e===t[n]}))?n:(t=r,n=e.apply(void 0,r))}}((function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}})),gc=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function bc(e){return Math.max(e.selectionStart,e.selectionEnd)}function wc(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xc(e,t){return void 0===e&&(e=" "),"string"===typeof e?e:e[t]||" "}function kc(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function _c(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Oc(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(uc(e[n])||uc(e[n-1]));return t}function Sc(e,n,r,o,i,a){void 0===a&&(a=ac);var u=function(e){var n=(0,t.useRef)(e);n.current=e;var r=(0,t.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n.current.apply(n,e)}));return r.current}((function(e,t){var n,r;return lc(e)?(r="",n=""):"number"===typeof e||t?(r="number"===typeof e?hc(e):e,n=o(r)):(r=i(e,void 0),n=o(r)),{formattedValue:n,numAsString:r}})),s=(0,t.useState)((function(){return u(sc(e)?n:e,r)})),l=s[0],c=s[1],f=e,d=r;sc(e)&&(f=l.numAsString,d=!0);var p=u(f,d);return(0,t.useMemo)((function(){c(p)}),[p.formattedValue]),[l,function(e,t){e.formattedValue!==l.formattedValue&&c({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Ec(e){return e.replace(/[^0-9]/g,"")}function Cc(e){return e}function jc(e){var n=e.type;void 0===n&&(n="text");var r=e.displayType;void 0===r&&(r="input");var o=e.customInput,i=e.renderText,a=e.getInputRef,u=e.format;void 0===u&&(u=Cc);var s=e.removeFormatting;void 0===s&&(s=Ec);var l=e.defaultValue,c=e.valueIsNumericString,f=e.onValueChange,d=e.isAllowed,p=e.onChange;void 0===p&&(p=ac);var h=e.onKeyDown;void 0===h&&(h=ac);var v=e.onMouseUp;void 0===v&&(v=ac);var y=e.onFocus;void 0===y&&(y=ac);var m=e.onBlur;void 0===m&&(m=ac);var g=e.value,b=e.getCaretBoundary;void 0===b&&(b=Oc);var w=e.isValidInputCharacter;void 0===w&&(w=uc);var x=e.isCharacterSame,k=ic(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),_=Sc(g,l,Boolean(c),u,s,f),O=_[0],S=O.formattedValue,E=O.numAsString,C=_[1],j=(0,t.useRef)(),T=(0,t.useRef)({formattedValue:S,numAsString:E}),P=function(e,t){T.current={formattedValue:e.formattedValue,numAsString:e.value},C(e,t)},D=(0,t.useState)(!1),M=D[0],A=D[1],N=(0,t.useRef)(null),I=(0,t.useRef)({setCaretTimeout:null,focusTimeout:null});(0,t.useEffect)((function(){return A(!0),function(){clearTimeout(I.current.setCaretTimeout),clearTimeout(I.current.focusTimeout)}}),[]);var R=u,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(yc(e,t),I.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&yc(e,t)}),0))},V=function(e,t,n){return _c(e,t,b(e),n)},B=function(e,t,n){var r=b(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=kc);var u=o.findIndex((function(e){return e})),s=e.slice(0,u);t||n.startsWith(s)||(t=s,n=s+n,r+=s.length);for(var l=n.length,c=e.length,f={},d=new Array(l),p=0;p<l;p++){d[p]=-1;for(var h=0,v=c;h<v;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==f[h]){d[p]=h,f[h]=!0;break}}for(var y=r;y<l&&(-1===d[y]||!i(n[y]));)y++;var m=y===l||-1===d[y]?c:d[y];for(y=r-1;y>0&&-1===d[y];)y--;var g=-1===y||-1===d[y]?0:d[y]+1;return g>m?m:r-g<m-r?g:m}(t,S,e,n,r,w,x);return o=_c(t,o,r)};(0,t.useEffect)((function(){var e=T.current,t=e.formattedValue,n=e.numAsString;S===t&&E===n||P(F(S,E),{event:void 0,source:Bl.props})}),[S,E]);var U=N.current?bc(N.current):void 0;("undefined"!==typeof window?t.useLayoutEffect:t.useEffect)((function(){var e=N.current;if(S!==T.current.formattedValue&&e){var t=B(T.current.formattedValue,S,U);e.value=S,L(e,t,S)}}),[S]);var W=function(e,t,n){var r=t.target,o=j.current?gc(j.current,r.selectionEnd):mc(S,e),i=Object.assign(Object.assign({},o),{lastValue:S}),a=s(e,i),u=R(a);if(a=s(u,void 0),d&&!d(F(u,a))){var l=t.target,c=bc(l),f=B(e,S,c);return l.value=S,L(l,f,S),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,i=e.event,a=e.numAsString;if(r){var u=e.inputValue||r.value,s=bc(r);r.value=t,void 0!==(n=B(u,t,s))&&L(r,n,t)}t!==S&&P(F(t,a),{event:i,source:o})}({formattedValue:u,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},z=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;j.current={selectionStart:n,selectionEnd:r+t}},q=!M||"undefined"===typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:q},k,{type:n,value:S,onChange:function(e){var t=e.target.value;W(t,e,Bl.event)&&p(e),j.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var u=0;"Delete"===r&&o===i&&(u=1);var s="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!s)return h(e),void z(n,u);var l=t;s?(l=V(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||w(a[t])?"Backspace"!==r||w(a[t])||(l=V(a,t,"left")):l=V(a,t,"right");l!==t&&L(n,l,a),h(e),z(n,u)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=V(r,e);o!==e&&L(t,o,r)}};n(),requestAnimationFrame((function(){n()})),v(e),z(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,I.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=V(i,r);a===r||0===r&&o===i.length||L(t,a,i),y(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){N.current=null,clearTimeout(I.current.focusTimeout),clearTimeout(I.current.setCaretTimeout),m(e)}});if("text"===r)return i?t.createElement(t.Fragment,null,i(S,k)||null):t.createElement("span",Object.assign({},k,{ref:a}),S);if(o){var Y=o;return t.createElement(Y,Object.assign({},H,{ref:a}))}return t.createElement("input",Object.assign({},H,{ref:a}))}function Tc(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,u=t.thousandsGroupStyle;if(void 0===u&&(u="thousand"),""===e||"-"===e)return e;var s=Pc(t),l=s.thousandSeparator,c=s.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,d=fc(e,a),p=d.beforeDecimal,h=d.afterDecimal,v=d.addNegation;return void 0!==n&&(h=dc(h,n,!!r)),l&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,l,u)),o&&(p=o+p),i&&(h+=i),v&&(p="-"+p),e=p+(f&&c||"")+h}function Pc(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Dc(e,t,n){var r;void 0===t&&(t=wc(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var u=n.decimalScale,s=t.from,l=t.to,c=l.start,f=l.end,d=Pc(n),p=d.allowedDecimalSeparators,h=d.decimalSeparator,v=e[f]===h;if(uc(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(f-c===1&&-1!==p.indexOf(e[c])){var y=0===u?"":h;e=e.substring(0,c)+y+e.substring(c+1,e.length)}var m=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var u=r?1:0;return o&&(u=2),u&&(e=e.substring(u),t-=u,n-=u),{value:e,start:t,end:n,hasNegation:r}},g=m(e,c,f),b=g.hasNegation;e=(r=g).value,c=r.start,f=r.end;var w=m(t.lastValue,s.start,s.end),x=w.start,k=w.end,_=w.value,O=e.substring(c,f);!(e.length&&_.length&&(x>_.length-a.length||k<i.length))||O&&a.startsWith(O)||(e=_);var S=0;e.startsWith(i)?S+=i.length:c<i.length&&(S=c),f-=S;var E=(e=e.substring(S)).length,C=e.length-a.length;e.endsWith(a)?E=C:(f>C||f>e.length-a.length)&&(E=f),e=e.substring(0,E),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+cc(e),t?"g":void 0)}(h,!0))||[]).join("");var j=e.indexOf(h);e=e.replace(new RegExp(cc(h),"g"),(function(e,t){return t===j?".":""}));var T=fc(e,o),P=T.beforeDecimal,D=T.afterDecimal,M=T.addNegation;return l.end-l.start<s.end-s.start&&""===P&&v&&!parseFloat(D)&&(e=M?"-":""),e}function Mc(e){e=function(e){var t=Pc(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n        Decimal separator can't be same as thousand separator.\n        thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n        decimalSeparator: '+r+" (default value for decimalSeparator is .)\n     ");return o.startsWith("-")&&i&&(console.error("\n      Prefix can't start with '-' when allowNegative is true.\n      prefix: "+o+"\n      allowNegative: "+i+"\n    "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=ac);var i=e.onBlur;void 0===i&&(i=ac);var a=e.thousandSeparator,u=e.decimalScale,s=e.fixedDecimalScale,l=e.prefix;void 0===l&&(l="");var c=e.defaultValue,f=e.value,d=e.valueIsNumericString,p=e.onValueChange,h=ic(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),v=Pc(e),y=v.decimalSeparator,m=v.allowedDecimalSeparators,g=function(t){return Tc(t,e)},b=function(t,n){return Dc(t,n,e)},w=sc(f)?c:f,x=null!==d&&void 0!==d?d:function(e,t,n){return""===e||!(null===t||void 0===t?void 0:t.match(/\d/))&&!(null===n||void 0===n?void 0:n.match(/\d/))&&"string"===typeof e&&!isNaN(Number(e))}(w,l,t);sc(f)?sc(c)||(x=x||"number"===typeof c):x=x||"number"===typeof f;var k=function(e){return lc(e)?e:("number"===typeof e&&(e=hc(e)),x&&"number"===typeof u?vc(e,u,Boolean(s)):e)},_=Sc(k(f),k(c),Boolean(x),g,b,p),O=_[0],S=O.numAsString,E=O.formattedValue,C=_[1];return Object.assign(Object.assign({},h),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===y||uc(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],u=r[i],s=mc(n,t).to;return!!(o>=s.start&&o<s.end&&m&&m.includes(a)&&u===y)||a===u},onValueChange:C,format:g,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,c=t.selectionEnd,f=t.value;if(void 0===f&&(f=""),("Backspace"===r||"Delete"===r)&&c<l.length)e.preventDefault();else if(i===c){"Backspace"===r&&"-"===f[0]&&i===l.length+1&&n&&yc(t,1),u&&s&&("Backspace"===r&&f[i-1]===y?(yc(t,i-1),e.preventDefault()):"Delete"===r&&f[i]===y&&e.preventDefault()),(null===m||void 0===m?void 0:m.includes(r))&&f[i]===y&&yc(t,i+1);var d=!0===a?",":a;"Backspace"===r&&f[i-1]===d&&yc(t,i-1),"Delete"===r&&f[i]===d&&yc(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=S;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),s&&u&&(n=vc(n,u,s)),n!==S){var o=Tc(n,e);C({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:Bl.event})}i(t)}})}function Ac(e){var n=Mc(e);return t.createElement(jc,Object.assign({},n))}function Nc(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;void 0===n&&(n="numeric");var r=e.onKeyDown;void 0===r&&(r=ac);var o=e.patternChar;void 0===o&&(o="#");var i=e.value,a=e.defaultValue,u=e.valueIsNumericString,s=ic(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(e){var t=e.mask;if(t&&("string"===t?t:t.toString()).match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}(e);var l=function(t){return function(e,t){var n=t.format,r=t.mask,o=t.patternChar;void 0===o&&(o="#");var i=Array.from({length:e.length+1}).map((function(){return!0})),a=0,u=-1,s={};n.split("").forEach((function(t,n){var i=void 0;t===o&&(a++,i=xc(r,a-1),-1===u&&e[n]===i&&(u=n)),s[n]=i}));for(var l=function(t){return n[t]===o&&e[t]!==s[t]},c=0,f=i.length;c<f;c++)i[c]=c===u||l(c)||l(c-1);return i[n.indexOf(o)]=!0,i}(t,e)},c=sc(i)?a:i,f=null!==u&&void 0!==u?u:function(e,t){return""===e||!(null===t||void 0===t?void 0:t.match(/\d/))&&"string"===typeof e&&(!!e.match(/^\d+$/)||""===e)}(c,t),d=Object.assign(Object.assign({},e),{valueIsNumericString:f});return Object.assign(Object.assign({},s),{value:i,defaultValue:a,valueIsNumericString:f,inputMode:n,format:function(e){return function(e,t){var n=t.format,r=t.allowEmptyFormatting,o=t.mask,i=t.patternChar;if(void 0===i&&(i="#"),""===e&&!r)return"";for(var a=0,u=n.split(""),s=0,l=n.length;s<l;s++)n[s]===i&&(u[s]=e[a]||xc(o,a),a+=1);return u.join("")}(e,d)},removeFormatting:function(e,t){return function(e,t,n){void 0===t&&(t=wc(e));var r=n.format,o=n.patternChar;void 0===o&&(o="#");var i=t.from,a=t.to,u=t.lastValue;void 0===u&&(u="");var s=function(e){return r[e]===o},l=function(e,t){for(var n="",r=0;r<e.length;r++)s(t+r)&&uc(e[r])&&(n+=e[r]);return n},c=function(e){return e.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((""===u||i.end-i.start===u.length)&&e.length===r.length){for(var f="",d=0;d<e.length;d++)if(s(d))uc(e[d])&&(f+=e[d]);else if(e[d]!==r[d])return c(e);return f}var p=u.substring(0,i.start),h=e.substring(a.start,a.end),v=u.substring(i.end);return""+l(p,0)+c(h)+l(v,i.end)}(e,t,d)},getCaretBoundary:l,onKeyDown:function(e){var n=e.key,i=e.target,a=i.selectionStart,u=i.selectionEnd,s=i.value;if(a===u){var c=a;if("Backspace"===n||"Delete"===n){var f="right";if("Backspace"===n){for(;c>0&&t[c-1]!==o;)c--;f="left"}else{for(var d=t.length;c<d&&t[c]!==o;)c++;f="right"}c=_c(s,c,l(s),f)}else t[c]!==o&&"ArrowLeft"!==n&&"ArrowRight"!==n&&(c=_c(s,c+1,l(s),"right"));c!==a&&yc(i,c),r(e)}else r(e)}})}function Ic(e){var n=Nc(e);return t.createElement(jc,Object.assign({},n))}function Rc(e){var n=e.id,r=e.label,o=e.value,i=e.sublabel,a=e.onBlur,u=void 0===a?function(){}:a,s=(e.type,e.placeholder),l=e.required,c=e.onValueChange,f=br(nc(!1),2),d=f[0],p=f[1],h=(0,t.useRef)(null);return(0,Qn.jsx)(Kl,{children:(0,Qn.jsxs)(Ql,{focused:d,children:[(0,Qn.jsx)(Ki,{as:"label",color:"black80",htmlFor:n,paddingBottom:i?1:2,onClick:function(){h.current&&h.current.focus()},children:r}),i&&(0,Qn.jsx)(Gi,{fontWeight:400,fontStyle:"italic",color:"gray100",pb:1,children:i}),(0,Qn.jsx)(Ac,{value:o,id:n,getInputRef:h,onFocus:p,onBlur:function(e){p(),u(e)},inputMode:"decimal",thousandSeparator:".",decimalSeparator:",",placeholder:s,required:l,onValueChange:c,customInput:Gl})]})})}var Fc=function(e){var t=e.value,n=e.suffix;return(0,Qn.jsx)(Ac,{value:t,displayType:"text",thousandSeparator:".",decimalSeparator:",",suffix:" "+n})},Lc=function(e,t){return function(n,r){return e((function(e){var o=Et({},e);return o.drivingData[t][n]=r,o}))}},Vc={Cars:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.drivingData.ownedVehicles,i=o.gasoline,a=o.diesel,u=o.electricity,s=o.metan,l=o.comment,c=Lc(n,"ownedVehicles"),f=r.ownedVehiclesDiesel,d=r.ownedVehiclesElectricity,p=r.ownedVehiclesGasoline,h=r.ownedVehiclesMetan;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Eldsneyti \xe1 eigin b\xedla"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 uppl\xfdsingar um notkun eldsneytis vegna aksturs eigin b\xedla \xe1 \xe1rinu. Uppl\xfdsingar m\xe1 finna \xed b\xf3khaldi e\xf0a me\xf0 \xfev\xed a\xf0 \xf3ska eftir yfirliti fr\xe1 birgjum/\xfej\xf3nustua\xf0ilum. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Tilgangurinn me\xf0 \xfeessari skr\xe1ningu er a\xf0 halda utan um magn jar\xf0efnaeldsneytis sem sveitarf\xe9lagi\xf0 notar vegna aksturs og \xfeeirri losun gr\xf3\xf0urh\xfasalofttegunda sem \xfea\xf0 veldur."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.cars.petrolLiters",label:"Bens\xedn (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:p,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",required:!0,value:i,onValueChange:function(e){return c("gasoline",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.cars.dieselLiters",label:"D\xedsill (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:f,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",required:!0,value:a,onValueChange:function(e){return c("diesel",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.cars.metanM3",label:"Metan (m\xb3)",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg CO\u2082 / r\xfammetra"}),placeholder:"R\xfammetrar \xe1 \xe1ri",required:!0,value:s,onValueChange:function(e){return c("metan",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.cars.electricityKwh",label:"Rafmagn (kWh)",sublabel:(0,Qn.jsx)(Fc,{value:d,suffix:"kg CO\u2082 / kWh"}),placeholder:"kWh \xe1 \xe1ri",required:!0,value:u,onValueChange:function(e){return c("electricity",e.floatValue)}})}),(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(oc,{id:"driving.cars.comment",type:"string",label:"Athugasemd",value:l,onChange:function(e){return c("comment",e.target.value)}})})]})]})},Rentals:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.drivingData.rentalVehicles,i=o.gasoline,a=o.diesel,u=o.electricity,s=o.metan,l=o.comment,c=Lc(n,"rentalVehicles"),f=r.rentalVehiclesDiesel,d=r.rentalVehiclesElectricity,p=r.rentalVehiclesGasoline,h=r.rentalVehiclesMetan;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Eldsneyti \xe1 b\xedlaleigub\xedla"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 uppl\xfdsingar um notkun eldsneytis vegna aksturs b\xedlaleigub\xedla \xe1 \xe1rinu. Uppl\xfdsingar m\xe1 finna \xed b\xf3khaldi e\xf0a me\xf0 \xfev\xed a\xf0 \xf3ska eftir yfirliti fr\xe1 birgjum/\xfej\xf3nustua\xf0ilum. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Tilgangurinn me\xf0 \xfeessari skr\xe1ningu er a\xf0 halda utan um magn jar\xf0efnaeldsneytis sem sveitarf\xe9lagi\xf0 notar vegna aksturs og \xfeeirri losun gr\xf3\xf0urh\xfasalofttegunda sem \xfea\xf0 veldur."}),(0,Qn.jsx)(na,{borderColor:"red100",children:"ATH: H\xe9r \xfearf a\xf0 passa upp \xe1 tv\xedtalningu. Ef eldsneytisnotkun vegna eigin b\xedla og b\xedlaleigub\xedla er ekki a\xf0skilin \xed b\xf3khaldinu skal einungis skr\xe1 \xf6\xf0rum megin, t.d. einungis \xed reitinn fyrir eldsneytisnotkun \xe1 eigin b\xedla."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.rentals.petrolLiters",label:"Bens\xedn (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:p,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",required:!0,value:i,onValueChange:function(e){return c("gasoline",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.rentals.dieselLiters",label:"D\xedsill (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:f,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",required:!0,value:a,onValueChange:function(e){return c("diesel",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.rentals.metanM3",label:"Metan (m\xb3)",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg CO\u2082 / m\xb3"}),placeholder:"R\xfammetrar \xe1 \xe1ri",required:!0,value:s,onValueChange:function(e){return c("metan",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.rentals.electricityKwh",label:"Rafmagn (kWh)",sublabel:(0,Qn.jsx)(Fc,{value:d,suffix:"kg CO\u2082 / kWh"}),placeholder:"kWh \xe1 \xe1ri",value:u,onValueChange:function(e){return c("electricity",e.floatValue)}})}),(0,Qn.jsx)($l,{$gridColumn:"span 2",children:(0,Qn.jsx)(oc,{id:"driving.rentals.comment",type:"string",label:"Athugasemd",value:l,onChange:function(e){return c("comment",e.target.value)}})})]})]})},Taxis:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.drivingData.taxi,i=o.diesel,a=o.gasoline,u=o.electricity,s=o.metan,l=o.comment,c=Lc(n,"taxi"),f=r.taxiGasoline,d=r.taxiElectricity,p=r.taxiDiesel,h=r.taxiMetan;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Leigub\xedlar"}),(0,Qn.jsx)(na,{children:"\xdeegar kemur a\xf0 akstri er mun n\xe1kv\xe6mara a\xf0 reikna losun gr\xf3\xf0urh\xfasalofttegunda \xfat fr\xe1 magni eldsneytis en ekinni vegalengd. Ef uppl\xfdsingar um eldsneytisnotkun liggja ekki fyrir, eins og g\xe6ti veri\xf0 \xed tilviki leigub\xedla, skal skr\xe1 uppl\xfdsingar um eknar vegalengdir \xe1 \xe1rinu. Uppl\xfdsingar m\xe1 n\xe1lgast me\xf0 \xfev\xed a\xf0 \xf3ska eftir yfirliti fr\xe1 \xfej\xf3nustua\xf0ilum."}),(0,Qn.jsx)(na,{borderColor:"red100",children:"ATH: Ef leigub\xedla\xfej\xf3nustur geta ekki veitt n\xe1kv\xe6mar uppl\xfdsingar um eldsneytisnotkun \xfeeirra leigub\xedla sem nota\xf0ir voru er h\xe6gt a\xf0 bi\xf0ja um samsetningu b\xedlaflotans hj\xe1 fyrirt\xe6kinu og nota \xfe\xe6r uppl\xfdsingar til grundvallar."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.taxis.petrolLiters",label:"Bens\xedn (km)",sublabel:(0,Qn.jsx)(Fc,{value:f,suffix:"kg CO\u2082 / km"}),placeholder:"K\xedl\xf3metrar \xe1 \xe1ri",required:!0,value:a,onValueChange:function(e){return c("gasoline",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.taxis.dieselLiters",label:"D\xedsill (km)",sublabel:(0,Qn.jsx)(Fc,{value:p,suffix:"kg CO\u2082 / km"}),placeholder:"K\xedl\xf3metrar \xe1 \xe1ri",required:!0,value:i,onValueChange:function(e){return c("diesel",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.taxis.metanM3",label:"Metan (km)",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg CO\u2082 / km"}),placeholder:"K\xedl\xf3metrar \xe1 \xe1ri",required:!0,value:s,onValueChange:function(e){return c("metan",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.taxis.electricityKwh",label:"Rafmagn (km)",sublabel:(0,Qn.jsx)(Fc,{value:d,suffix:"kg CO\u2082 / km"}),placeholder:"K\xedl\xf3metrar \xe1 \xe1ri",value:u,onValueChange:function(e){return c("electricity",e.floatValue)}})}),(0,Qn.jsx)($l,{$gridColumn:"span 2",children:(0,Qn.jsx)(oc,{id:"driving.taxis.comment",type:"string",label:"Athugasemd",value:l,onChange:function(e){return c("comment",e.target.value)}})})]})]})},HeavyMachinery:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.drivingData.machineryAndEquipment,i=o.diesel,a=o.electricity,u=o.gasoline,s=o.metan,l=o.kerosene,c=o.comment,f=Lc(n,"machineryAndEquipment"),d=r.machineryDiesel,p=r.machineryElectricity,h=r.machineryGasoline,v=r.machineryKerosene,y=r.machineryMetan;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Vinnuv\xe9lar og t\xe6ki"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 uppl\xfdsingar um notkun eldsneytis vegna vinnuv\xe9la og t\xe6kja \xe1 \xe1rinu. Uppl\xfdsingar m\xe1 finna \xed b\xf3khaldi e\xf0a me\xf0 \xfev\xed a\xf0 \xf3ska eftir yfirliti fr\xe1 birgjum/\xfej\xf3nustua\xf0ilum. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Tilgangurinn me\xf0 \xfeessari skr\xe1ningu er a\xf0 halda utan um magn jar\xf0efnaeldsneytis sem sveitarf\xe9lagi\xf0 notar vegna aksturs og \xfeeirri losun gr\xf3\xf0urh\xfasalofttegunda sem \xfea\xf0 veldur."}),(0,Qn.jsx)(na,{borderColor:"red100",children:"ATH: H\xe9r \xfearf a\xf0 passa upp \xe1 tv\xedtalningu. Ef eldsneytisnotkun vegna eigin b\xedla og vinnuv\xe9la og t\xe6kja er ekki a\xf0skilin \xed b\xf3khaldinu skal einungis skr\xe1 \xf6\xf0rum megin, t.d. einungis \xed reitinn fyrir eldsneytisnotkun \xe1 eigin b\xedla."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.heavyMachinery.petrolLiters",label:"Bens\xedn (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",value:u,onValueChange:function(e){return f("gasoline",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.heavyMachinery.dieselLiters",label:"D\xedsill (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:d,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",value:i,onValueChange:function(e){return f("diesel",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.heavyMachinery.metanM3",label:"Metan (m\xb3)",sublabel:(0,Qn.jsx)(Fc,{value:y,suffix:"kg CO\u2082 / m\xb3"}),placeholder:"R\xfammetrar \xe1 \xe1ri",value:s,onValueChange:function(e){return f("metan",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.heavyMachinery.electricityKwh",label:"Rafmagn (kWh)",sublabel:(0,Qn.jsx)(Fc,{value:p,suffix:"kg CO\u2082 / MWh"}),placeholder:"mWh \xe1 \xe1ri",value:a,onValueChange:function(e){return f("electricity",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"driving.heavyMachinery.kerosene",label:"Steinol\xeda (l\xedtrar)",sublabel:(0,Qn.jsx)(Fc,{value:v,suffix:"kg CO\u2082 / l\xedtra"}),placeholder:"L\xedtrar \xe1 \xe1ri",value:l,onValueChange:function(e){return f("kerosene",e.floatValue)}})}),(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(oc,{id:"driving.heavyMachinery.comment",type:"text",label:"Athugasemd",value:c,onChange:function(e){return f("comment",e.target.value)}})})]})]})}},Bc=["id","label","value","sublabel","onBlur","type"];function Uc(e){var n=e.id,r=e.label,o=e.value,i=e.sublabel,a=e.onBlur,u=void 0===a?function(){}:a,s=e.type,l=Ct(e,Bc),c=br(nc(!1),2),f=c[0],d=c[1],p=(0,t.useRef)(null),h=function(e){d(),u(e)},v=function(){p.current&&p.current.focus()};return(0,Qn.jsx)(Kl,{children:"checkbox"===s?(0,Qn.jsx)("div",{style:{marginTop:"10px"},children:(0,Qn.jsxs)(Ki,{as:"label",color:"black80",paddingBottom:i?1:2,onClick:v,children:[(0,Qn.jsx)("input",Et({value:o,type:"checkbox",style:{marginRight:"10px"},ref:p,onFocus:d,onBlur:h},l)),r]})}):(0,Qn.jsxs)(Ql,{focused:f,children:[(0,Qn.jsx)(Ki,{as:"label",color:"black80",htmlFor:n,paddingBottom:i?1:2,onClick:v,children:r}),i&&(0,Qn.jsx)(Gi,{fontWeight:400,fontStyle:"italic",color:"gray100",pb:1,children:i}),(0,Qn.jsx)(Gl,Et({value:o,id:n,ref:p,onFocus:d,onBlur:h,type:s},l))]})})}var Wc=function(e){var t=parseFloat(e);return isNaN(t)?null:t},zc=Ae("a")({color:Yn.blue80,textDecoration:"underline","&:visited":{color:Yn.blue80}}),qc=function(e,t){return function(n,r){return e((function(e){var o=Et({},e);return o.flights[t][n]=r,o}))}},Hc={icao:function(e){var t=e.state,n=e.onChange,r=t.flights.icao,o=qc(n,"icao");return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsxs)(Hi,{children:["Ni\xf0urst\xf6\xf0ur \xfar"," ",(0,Qn.jsx)(zc,{href:"https://applications.icao.int/icec",target:"_blank",children:"ICAO reikniv\xe9l"})]}),(0,Qn.jsx)(na,{children:"Til a\xf0 skr\xe1 uppl\xfdsingar um losun gr\xf3\xf0urh\xfasalofttegunda vegna flugfer\xf0a \xe1 \xe1rinu er n\xe1kv\xe6mast er a\xf0 nota reikniv\xe9l Al\xfej\xf3\xf0aflugm\xe1lastofnunarinnar (ICAO), en reikniv\xe9lin veitir uppl\xfdsingar um vegalengd og losun. H\xe6gt er a\xf0 skr\xe1 me\xf0 einf\xf6ldum h\xe6tti flugfer\xf0ir sem farnar voru \xe1 \xe1rinu og reikniv\xe9lin gefur losunart\xf6lu vegna hverrar flugfer\xf0ar. Athugi\xf0 a\xf0 \xfea\xf0 er bara h\xe6gt a\xf0 sl\xe1 inn eina fer\xf0 (me\xf0 millilendingum) \xed einu og \xfev\xed mikilv\xe6gt a\xf0 skr\xe1 ni\xf0urst\xf6\xf0ur hverrar fer\xf0ar \xed t.d. excel skjal og leggja saman til \xfeess a\xf0 f\xe1 heildarlosunart\xf6lu vegna flugsamgangna. Heildarlosunartalan er a\xf0 lokum slegin inn \xed vi\xf0eigandi reit h\xe9r \xed losunarreikninum. S\xe9 ekki notast vi\xf0 ICAO-reikniv\xe9lina er h\xe6gt a\xf0 skr\xe1setja fj\xf6lda fer\xf0a, b\xe6\xf0i innanlandsfer\xf0ir og millilandafer\xf0ir \xe1 n\xe6stu s\xed\xf0u."}),(0,Qn.jsx)(na,{borderColor:"red100",children:"ATH: Passa \xfearf a\xf0 skr\xe1 ekki b\xe6\xf0i \xed ICAO-reikniv\xe9lina og fj\xf6lda fer\xf0a \xfev\xed \xfe\xe1 reiknast tv\xf6f\xf6ld losun."}),(0,Qn.jsx)(na,{children:"Mikilv\xe6gt er a\xf0 \xfatreikningar vegna losunar gr\xf3\xf0urh\xfasalofttegunda fr\xe1 flugv\xe9lum s\xe9u eins sta\xf0la\xf0ir og m\xf6gulegt er og \xed samr\xe6mi vi\xf0 \xfatreikninga \xed \xf6\xf0rum l\xf6ndum. Af \xfeessum \xe1st\xe6\xf0um er m\xe6lt me\xf0 a\xf0 notast s\xe9 vi\xf0 a\xf0fer\xf0afr\xe6\xf0i Al\xfej\xf3\xf0aflugm\xe1lastofnunarinnar (ICAO). Reikniv\xe9l Al\xfej\xf3\xf0aflugm\xe1lastofnunarinnar notast vi\xf0 bestu f\xe1anlegu g\xf6gn hverju sinni og tekur inn \xfe\xe6tti eins og mismunandi ger\xf0ir flugv\xe9la og eldsneytisnotkun \xfeeirra \xed hverjum fluglegg fyrir sig, s\xe6tan\xfdtingu og me\xf0al\xfeyngd farangurs og farms."}),(0,Qn.jsx)(zc,{href:"https://applications.icao.int/icec",target:"_blank",children:"Opna reikniv\xe9l Al\xfej\xf3\xf0aflugm\xe1lastofnunarinnar"})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr"},$paddingY:2,children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"flight.icao",label:"ICAO (kg CO\u2082)",value:r.total,placeholder:"Losun alls",onValueChange:function(e){return o("total",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(oc,{id:"flight.comment",type:"text",label:"Athugasemd",value:r.comment,onChange:function(e){return o("comment",e.target.value)}})})]})]})},domesticFlights:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.flights.domesticFlights,i=o.AEYtoRVKtoAEY,a=o.EGStoRVKtoEGS,u=o.HFNtoRVKtoHFN,s=o.IFJtoRVKtoIFJ,l=o.VEYtoRVKtoVEY,c=o.other,f=o.comment,d=qc(n,"domesticFlights"),p=r.flightAEY_RVK,h=r.flightEGS_RVK,v=r.flightVEY_RVK,y=r.flightHFN_RVK,m=r.flightIFJ_RVK,g=r.flightOther;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Innanlandsflug"}),(0,Qn.jsx)(na,{children:"S\xe9 ekki notast vi\xf0 ICAO reikniv\xe9lina er h\xe6gt a\xf0 skr\xe1setja fj\xf6lda fer\xf0a \xed reitina \xe1 \xfeessari s\xed\xf0u. Athugi\xf0 a\xf0 skr\xe1ningin mi\xf0ast vi\xf0 flug fram og til baka. S\xe9 einungis farin \xf6nnur lei\xf0 skal skr\xe1 0,5. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Passa \xfearf a\xf0 skr\xe1 ekki b\xe6\xf0i \xed ICAO-reikniv\xe9lina og fj\xf6lda fer\xf0a \xfev\xed \xfe\xe1 reiknast tv\xf6f\xf6ld losun."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.AEY-RVK-AEY",type:"number",label:"Akureyri - Reykjav\xedk",sublabel:(0,Qn.jsx)(Fc,{value:p,suffix:"kg/fer\xf0"}),value:i,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("AEYtoRVKtoAEY",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.EGS-RVK-EGS",type:"number",label:"Egilsta\xf0ir - Reykjav\xedk",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg/fer\xf0"}),value:a,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("EGStoRVKtoEGS",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.VEY-RVK-VEY",type:"number",label:"Vestmannaeyjar - Reykjav\xedk",sublabel:(0,Qn.jsx)(Fc,{value:v,suffix:"kg/fer\xf0"}),value:u,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("HFNtoRVKtoHFN",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.HFN-RVK-HFN",type:"number",label:"H\xf6fn - Reykjav\xedk",sublabel:(0,Qn.jsx)(Fc,{value:y,suffix:"kg/fer\xf0"}),value:s,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("IFJtoRVKtoIFJ",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.IFJ-RVK-IFJ",type:"number",label:"\xcdsafj\xf6r\xf0ur - Reykjav\xedk",sublabel:(0,Qn.jsx)(Fc,{value:m,suffix:"kg/fer\xf0"}),value:l,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("VEYtoRVKtoVEY",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.other",type:"number",label:"Anna\xf0 innanlandsflug",sublabel:(0,Qn.jsx)(Fc,{value:g,suffix:"kg/fer\xf0"}),value:c,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return d("other",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{$gridColumn:"span 2",children:(0,Qn.jsx)(oc,{id:"flight.comment",type:"string",label:"Athugasemd",value:f,onChange:function(e){return d("comment",e.target.value)}})})]})]})},internationalFlights:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.flights.internationalFlights,i=o.scandinavia,a=o.continentalEurope,u=o.northAmerica,s=o.southAmerica,l=o.africa,c=o.asia,f=o.oceania,d=o.comment,p=qc(n,"internationalFlights"),h=r.flightScandinavia_RVK,v=r.flightContinentalEurope_RVK,y=r.flightNorthAmerica_RVK,m=r.flightSouthAmerica_RVK,g=r.flightAsia_RVK,b=r.flightAfrica_RVK,w=r.flightOceania_RVK;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Millilandaflug"}),(0,Qn.jsx)(na,{children:"S\xe9 ekki notast vi\xf0 ICAO reikniv\xe9lina er h\xe6gt a\xf0 skr\xe1setja fj\xf6lda fer\xf0a \xed reitina \xe1 \xfeessari s\xed\xf0u. Athugi\xf0 a\xf0 skr\xe1ningin mi\xf0ast vi\xf0 flug fram og til baka. S\xe9 einungis farin \xf6nnur lei\xf0 skal skr\xe1 0,5. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Passa \xfearf a\xf0 skr\xe1 ekki b\xe6\xf0i \xed ICAO-reikniv\xe9lina og fj\xf6lda fer\xf0a \xfev\xed \xfe\xe1 reiknast tv\xf6f\xf6ld losun."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.scandinavia",type:"number",label:"Skandinav\xeda",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg/fer\xf0"}),value:i,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("scandinavia",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.continentalEurope",type:"number",label:"Meginland Evr\xf3pu",sublabel:(0,Qn.jsx)(Fc,{value:v,suffix:"kg/fer\xf0"}),value:a,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("continentalEurope",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.northAmerica",type:"number",label:"Nor\xf0ur-Amer\xedka",sublabel:(0,Qn.jsx)(Fc,{value:y,suffix:"kg/fer\xf0"}),value:u,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("northAmerica",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.southAmerica",type:"number",label:"Su\xf0ur-Amer\xedka",sublabel:(0,Qn.jsx)(Fc,{value:m,suffix:"kg/fer\xf0"}),value:s,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("southAmerica",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.asia",type:"number",label:"As\xeda",sublabel:(0,Qn.jsx)(Fc,{value:g,suffix:"kg/fer\xf0"}),value:c,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("asia",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.africa",type:"number",label:"Afr\xedka",sublabel:(0,Qn.jsx)(Fc,{value:b,suffix:"kg/fer\xf0"}),value:l,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("africa",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"flight.oceania",type:"number",label:"Eyja\xe1lfa",sublabel:(0,Qn.jsx)(Fc,{value:w,suffix:"kg/fer\xf0"}),value:f,placeholder:"Fj\xf6ldi fer\xf0a",onChange:function(e){return p("oceania",Wc(e.target.value))}})}),(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(oc,{id:"flight.comment",type:"text",label:"Athugasemd",value:d,onChange:function(e){return p("comment",e.target.value)}})})]})]})}},Yc={Electricity:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.energy,i=o.electricity,a=o.hotWater,u=o.comment,s=function(e){return function(t,n){return e((function(e){var r=Et({},e);return r.energy[t]=n,r}))}}(n),l=r.energyElectricity,c=r.energyHotWater;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Orka"}),(0,Qn.jsx)(Yi,{paddingY:2,children:"Rafmagn"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 \xe1rlega notkun \xe1 rafmagni. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa. Uppl\xfdsingar m\xe1 finna \xed b\xf3khaldi e\xf0a \xf3ska eftir yfirliti fr\xe1 \xfej\xf3nustua\xf0ilum. Losun gr\xf3\xf0urh\xfasalofttegunda vegna rafmagnsframlei\xf0slu er vegi\xf0 me\xf0altal\u202flosunar fr\xe1 orkuframlei\xf0slu me\xf0 jar\xf0eldsneyti, vatnsafli og jar\xf0varma. Tilgangurinn me\xf0 \xfeessari skr\xe1ningu er a\xf0 auka me\xf0vitund um orkunotkun og koma \xed veg fyrir s\xf3un."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"power.electricityKwh",label:"Rafmagn (kWh)",sublabel:(0,Qn.jsx)(Fc,{value:l,suffix:"kg CO\u2082 / kWh"}),placeholder:"kWh \xe1 \xe1ri",value:i,onValueChange:function(e){return s("electricity",e.floatValue)}})}),(0,Qn.jsx)(Yi,{children:"Heitt vatn"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 \xe1rlega notkun \xe1 heitu vatni. \xdear sem haldi\xf0 er utan um alla losun gr\xf3\xf0urh\xfasalofttegunda fr\xe1 jar\xf0varma \xed einni t\xf6lu, \xfe.e. vegna framlei\xf0slu b\xe6\xf0i rafmagns og heits vatns, er losunarstu\xf0ull fyrir heitt vatn n\xfall. Tilgangurinn me\xf0 \xfeessari skr\xe1ningu er \xfev\xed a\xf0 auka me\xf0vitund um notkun og koma \xed veg fyrir s\xf3un."}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"power.waterM3",label:"Heitt vatn (m\xb3)",sublabel:(0,Qn.jsx)(Fc,{value:c,suffix:"kg CO\u2082 / m\xb3"}),placeholder:"R\xfammetrar \xe1 \xe1ri",value:a,onValueChange:function(e){return s("hotWater",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(oc,{id:"power.comment",type:"text",label:"Athugasemd",value:u,onChange:function(e){return s("comment",e.target.value)}})})]})]})}},$c={Waste:function(e){var t=e.state,n=e.onChange,r=e.globalCoefficients,o=t.waste,i=o.landfill,a=o.composting,u=o.bulky,s=o.glass,l=o.metals,c=o.paper,f=o.plastic,d=o.comment,p=function(e){return function(t,n){return e((function(e){var r=Et({},e);return r.waste[t]=n,r}))}}(n),h=r.wasteLandfill,v=r.wasteComposting,y=r.wasteBulky,m=r.wasteGlass,g=r.wasteMetal,b=r.wastePaper,w=r.wastePlastic;return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"\xdargangur"}),(0,Qn.jsx)(na,{children:"H\xe9r skal skr\xe1 \xe1rlegt \xfargangsmagn eftir me\xf0h\xf6ndlun. Uppl\xfdsingar um magn \xfargangs er a\xf0 f\xe1 hj\xe1 \xfej\xf3nustua\xf0ila og/e\xf0a \xed b\xf3khaldi. Losun gr\xf3\xf0urh\xfasalofttegunda reiknast sj\xe1lfkrafa."}),(0,Qn.jsx)(na,{children:"\xc1st\xe6\xf0a \xfeess a\xf0 sumir \xfargangsflokkar eru me\xf0 n\xfall \xed losunarstu\xf0ul er s\xfa a\xf0 eins og er liggja \xfeessir \xfargangsstraumar \xfar landi og lendir \xfev\xed losunin \xed losunarb\xf3khaldi \xfeeirra landa \xfear sem me\xf0h\xf6ndlun fer fram en ekki losunarb\xf3khaldi \xcdslands."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr 1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.landfill",label:"\xdargangur til ur\xf0unar (almennur) (kg)",sublabel:(0,Qn.jsx)(Fc,{value:h,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",required:!0,value:i,onValueChange:function(e){return p("landfill",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.molta",label:"L\xedfr\xe6nn \xfargangur (jar\xf0ger\xf0) (kg)",sublabel:(0,Qn.jsx)(Fc,{value:v,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",required:!0,value:a,onValueChange:function(e){return p("composting",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.plastic",label:"Plast (kg)",sublabel:(0,Qn.jsx)(Fc,{value:w,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",value:f,onValueChange:function(e){return p("plastic",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.paper",label:"Papp\xedr/pappi (kg)",sublabel:(0,Qn.jsx)(Fc,{value:b,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",value:c,onValueChange:function(e){return p("paper",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.glass",label:"Gler (kg)",sublabel:(0,Qn.jsx)(Fc,{value:m,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",value:s,onValueChange:function(e){return p("glass",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.metals",label:"M\xe1lmar (kg)",sublabel:(0,Qn.jsx)(Fc,{value:g,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",value:l,onValueChange:function(e){return p("metals",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"waste.bulky",label:"Gr\xf3fur \xfargangur (kg)",sublabel:(0,Qn.jsx)(Fc,{value:y,suffix:"kg CO\u2082 / kg"}),placeholder:"kg \xe1 \xe1ri",value:u,onValueChange:function(e){return p("bulky",e.floatValue)}})}),(0,Qn.jsx)($l,{$gridColumn:"span 2",children:(0,Qn.jsx)(oc,{id:"waste.blendedWaste.comment",type:"text",label:"Athugasemd",value:d,onChange:function(e){return p("comment",e.target.value)}})})]})]})}},Kc=function(e){var t=e.state,n=e.onChange,r=t.carbonOffset,o=r.quantity,i=r.comment,a=function(e){return function(t,n){return e((function(e){var r=Et({},e);return r.carbonOffset[t]=n,r}))}}(n);return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Kolefnisj\xf6fnun"}),(0,Qn.jsxs)(na,{children:["Kolefnisj\xf6fnun felur \xed s\xe9r a\xf0 kaupa kolefnisj\xf6fnunareiningar fr\xe1 \xf6\xf0rum a\xf0ila. ",(0,Qn.jsx)("strong",{children:"Ein kolefnisj\xf6fnunareining"})," samsvarar"," ",(0,Qn.jsx)("strong",{children:"einu tonni"})," af gr\xf3\xf0urh\xfasalofttegundum."]}),(0,Qn.jsxs)(na,{children:["Sj\xe1 frekari lei\xf0beiningar um kolefnisj\xf6fnun fyrir opinbera a\xf0ila \xe1 vefs\xed\xf0u \xfeessa verkefnis, ",(0,Qn.jsx)("em",{children:"Loftslagsv\xe6nni sveitarf\xe9l\xf6g"}),", e\xf0a \xe1 vefs\xed\xf0u Umhverfisstofnunar. Fyrir frekari uppl\xfdsingar um kolefnisj\xf6fnun m\xe1 sj\xe1 \xe1"," ",(0,Qn.jsx)("a",{href:"https://ust.is/graent-samfelag/graenn-lifstill/kolefnisjofnun/",target:"_blank",rel:"noreferrer",children:"vefs\xed\xf0u Umhverfisstofnunar"})]})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"carbonOffset.quantity",label:"Fj\xf6ldi kolefnisj\xf6fnunareininga",value:o,placeholder:"0",onValueChange:function(e){return a("quantity",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(oc,{id:"carbonOffset.comment",type:"text",label:"Athugasemd",value:i,onChange:function(e){return a("comment",e.target.value)}})})]})]})},Qc={MetaData:function(e){var t=e.state,n=e.onChange,r=(e.globalCoefficients,t.entityMetadata),o=r.propertyArea,i=r.positions,a=r.clients,u=r.comment,s=function(e){return function(t,n){return e((function(e){var r=Et({},e);return r.entityMetadata[t]=n,r}))}}(n);return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Grunnuppl\xfdsingar"}),(0,Qn.jsxs)(na,{children:[(0,Qn.jsx)("p",{children:"Skr\xe1 \xfearf fermetrafj\xf6lda h\xfasn\xe6\xf0a, fj\xf6lda st\xf6\xf0ugilda og fj\xf6lda notenda sem n\xfdta h\xfasn\xe6\xf0in."}),(0,Qn.jsx)("p",{children:"St\xf6\xf0ugildi: fj\xf6ldi starfsmanna"}),(0,Qn.jsx)("p",{children:"A\xf0rir notendur: t.d. nemendur \xed grunnsk\xf3lum e\xf0a gestir \xed sundlaugum (me\xf0alfj\xf6ldi per dag)"})]})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"metadata.propertyArea",label:"Fermetrafj\xf6ldi fasteigna (m\xb2)",placeholder:"Fermetrar",value:o,onValueChange:function(e){return s("propertyArea",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"metadata.positions",label:"St\xf6\xf0ugildi",placeholder:"Me\xf0alfj\xf6ldi st\xf6\xf0ugilda \xfeetta \xe1ri\xf0",value:i,onValueChange:function(e){return s("positions",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Rc,{id:"metadata.clients",label:"Notendur",placeholder:"Me\xf0alfj\xf6ldi notenda sem n\xfdta fasteignir",value:a,onValueChange:function(e){return s("clients",e.floatValue)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(oc,{id:"metadata.comment",type:"text",label:"Athugasemd",value:u,onChange:function(e){return s("comment",e.target.value)}})})]})]})}},Gc=[{title:"Grunnuppl\xfdsingar",key:"metadata",iconName:"setting",items:[{title:"Grunnuppl\xfdsingar",key:"metadata.Metadata",component:Qc.MetaData}]},{title:"Akstur",key:"driving",iconName:"driving",status:"in-progress",items:[{title:"Eigin b\xedlar",key:"driving.cars",component:Vc.Cars,nextItem:"driving.rentals",error:!1},{title:"B\xedlaleigub\xedlar",key:"driving.rentals",component:Vc.Rentals,nextItem:"driving.taxis",error:!1},{title:"Leigub\xedlar",key:"driving.taxis",component:Vc.Taxis,nextItem:"driving.heavyMachinery",error:!1},{title:"Vinnuv\xe9lar og t\xe6ki",key:"driving.heavyMachinery",component:Vc.HeavyMachinery,error:!1}]},{title:"Orka",key:"power",iconName:"electricity",status:"ok",items:[{title:"Orka",key:"power.electricity",component:Yc.Electricity,error:!1}]},{title:"Flug",key:"flight",iconName:"flight",status:"ok",items:[{title:"ICAO",key:"flight.icao",nextItem:"flight.domestic",component:Hc.icao,error:!1},{title:"Innanlands",key:"flight.domestic",nextItem:"flight.international",component:Hc.domesticFlights,error:!1},{title:"Millilanda",key:"flight.international",component:Hc.internationalFlights,error:!1}]},{title:"\xdargangur",key:"waste",iconName:"trash",status:"error",items:[{title:"\xdargangur",key:"waste.was",component:$c.Waste,error:!1}]},{title:"Kolefnisj\xf6fnun",key:"carbonOffset",iconName:"forest",status:"ok",items:[{title:"Kolefnisj\xf6fnun",key:"carbonOffset",component:Kc,error:!1}]}],Xc=new Date,Jc=Ws(function(e){return function(t,n,r){return e((function(e){return t(ql(e))}),n,r)}}((function(e,t){return{categories:Gc,activeEstablishment:"",activeCategory:"metadata",activeItem:"metadata.Metadata",selectedYear:Xc.getFullYear(),showOverview:!1,actions:{initialize:function(){(0,zs.registerLocale)("is",Hs())},setActiveCategory:function(n){var r=t().categories.find((function(e){return e.key===n})).items[0];e((function(){return{activeCategory:n,activeItem:r.key,showOverview:!1}}))}}}}))),Zc=Ae("aside")({backgroundColor:$n.colors.gray5,borderRadius:$n.borderRadius.card,display:"flex",padding:$n.space[4],flexGrow:1,flexShrink:0,flexBasis:oa,flexDirection:"column",justifyContent:"space-between",button:{textAlign:"left",lineHeight:1.5,width:"100%"},overflow:"auto"}),ef=Ae("ul")({}),tf=Ae("li")({display:"block"}),nf=Ae("span")((function(e){var t=e.active;return{display:"flex",alignItems:"center",paddingBottom:$n.space[1],paddingTop:$n.space[1],color:t?$n.colors.blue:$n.colors.gray100,button:{color:t?$n.colors.blue:$n.colors.black80}}})),rf=Ae("span")((function(e){var t=e.active,n=e.error;return{display:"flex",alignItems:"center",marginBottom:$n.space[1],marginTop:$n.space[1],color:t?$n.colors.blue:$n.colors.black80,marginLeft:$n.space[4],position:"relative","&::after":{background:$n.colors.red,borderRadius:"50%",content:n?'""':null,height:4,width:4}}})),of={ok:$n.colors.green100,"in-progress":$n.colors.yellow100,error:$n.colors.red100},af={ok:"\xcd lagi","in-progress":"\xcd vinnslu",error:"Villa"};Ae("span").attrs((function(e){var t=e.status;return{title:af[t]}}))((function(e){var t=e.status;return{background:of[t],borderRadius:"50%",flex:"none",height:8,width:8}}));function uf(e){var t=e.selectedYear,n=e.activeEstablishmentName,r=e.children,o=Jc((function(e){return e.activeCategory})),i=Jc((function(e){return e.activeItem})),a=Jc((function(e){return e.categories})),u=Jc((function(e){return e.actions})).setActiveCategory,s=a.find((function(e){return e.key===o})).items;return(0,Qn.jsxs)(Zc,{children:[(0,Qn.jsxs)(ta,{$pb:2,$pt:1.5,children:[(0,Qn.jsx)(qi,{fontSize:{md:18},fontWeight:500,children:n}),(0,Qn.jsx)(qi,{fontSize:{md:16},py:1,children:t}),(0,Qn.jsx)(ef,{children:a.map((function(e){var t=o===e.key;return(0,Qn.jsxs)(tf,{children:[(0,Qn.jsxs)(nf,{active:t,children:[(0,Qn.jsx)(ta,{$marginRight:1,$display:"flex",children:(0,Qn.jsx)(Do,{name:e.iconName,height:18,width:18})}),(0,Qn.jsx)(Qi,{as:"button",onClick:function(){return u(e.key)},p:1,children:e.title})]}),t&&s.length>1&&s.map((function(e){return(0,Qn.jsx)(rf,{active:e.key===i,error:e.error,children:(0,Qn.jsx)(Qi,{as:"button",onClick:function(){return Jc.setState({activeItem:e.key})},p:1,fontWeight:500,children:e.title})},e.title)}))]},e.key)}))})]}),r]})}var sf=yt?lt.useLayoutEffect:lt.useEffect;function lf(e,t){var n=wo(null===t||void 0===t?void 0:t.client);bo(e,oo.Mutation);var r=lt.useState({called:!1,loading:!1,client:n}),o=r[0],i=r[1],a=lt.useRef({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});sf((function(){Object.assign(a.current,{client:n,options:t,mutation:e})}));var u=lt.useCallback((function(e){void 0===e&&(e={});var t=a.current,n=t.options,r=t.mutation,o=Re(Re({},n),{mutation:r}),u=e.client||a.current.client;a.current.result.loading||o.ignoreResults||!a.current.isMounted||i(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var s=++a.current.mutationId,l=Ar(o,e);return u.mutate(l).then((function(t){var n,r,o=t.data,c=t.errors,f=c&&c.length>0?new Fr({graphQLErrors:c}):void 0,d=e.onError||(null===(n=a.current.options)||void 0===n?void 0:n.onError);if(f&&d&&d(f,l),s===a.current.mutationId&&!l.ignoreResults){var p={called:!0,loading:!1,data:o,error:f,client:u};a.current.isMounted&&!Sr(a.current.result,p)&&i(a.current.result=p)}var h=e.onCompleted||(null===(r=a.current.options)||void 0===r?void 0:r.onCompleted);return f||null===h||void 0===h||h(t.data,l),t})).catch((function(t){var n;if(s===a.current.mutationId&&a.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:u};Sr(a.current.result,r)||i(a.current.result=r)}var o=e.onError||(null===(n=a.current.options)||void 0===n?void 0:n.onError);if(o)return o(t,l),{data:void 0,errors:t};throw t}))}),[]),s=lt.useCallback((function(){if(a.current.isMounted){var e={called:!1,loading:!1,client:a.current.client};Object.assign(a.current,{mutationId:0,result:e}),i(e)}}),[]);return lt.useEffect((function(){var e=a.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[u,Re({reset:s},o)]}function cf(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ff(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function df(e){var t=ff(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pf(e){return e instanceof ff(e).Element||e instanceof Element}function hf(e){return e instanceof ff(e).HTMLElement||e instanceof HTMLElement}function vf(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ff(e).ShadowRoot||e instanceof ShadowRoot)}function yf(e){return e?(e.nodeName||"").toLowerCase():null}function mf(e){return((pf(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return cf(mf(e)).left+df(e).scrollLeft}function bf(e){return ff(e).getComputedStyle(e)}function wf(e){var t=bf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function xf(e,t,n){void 0===n&&(n=!1);var r=mf(t),o=cf(e),i=hf(t),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==yf(t)||wf(r))&&(a=function(e){return e!==ff(e)&&hf(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:df(e);var t}(t)),hf(t)?((u=cf(t)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=gf(r))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function kf(e){var t=cf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=.5&&(n=t.width),Math.abs(t.height-r)<=.5&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _f(e){return"html"===yf(e)?e:e.assignedSlot||e.parentNode||(vf(e)?e.host:null)||mf(e)}function Of(e){return["html","body","#document"].indexOf(yf(e))>=0?e.ownerDocument.body:hf(e)&&wf(e)?e:Of(_f(e))}function Sf(e,t){var n;void 0===t&&(t=[]);var r=Of(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ff(r),a=o?[i].concat(i.visualViewport||[],wf(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(Sf(_f(a)))}function Ef(e){return["table","td","th"].indexOf(yf(e))>=0}function Cf(e){return hf(e)&&"fixed"!==bf(e).position?e.offsetParent:null}function jf(e){for(var t=ff(e),n=Cf(e);n&&Ef(n)&&"static"===bf(n).position;)n=Cf(n);return n&&("html"===yf(n)||"body"===yf(n)&&"static"===bf(n).position)?t:n||function(e){for(var t=navigator.userAgent.toLowerCase().includes("firefox"),n=_f(e);hf(n)&&["html","body"].indexOf(yf(n))<0;){var r=bf(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Tf="top",Pf="bottom",Df="right",Mf="left",Af="auto",Nf=[Tf,Pf,Df,Mf],If="start",Rf="end",Ff="clippingParents",Lf="viewport",Vf="popper",Bf="reference",Uf=Nf.reduce((function(e,t){return e.concat([t+"-"+If,t+"-"+Rf])}),[]),Wf=[].concat(Nf,[Af]).reduce((function(e,t){return e.concat([t,t+"-"+If,t+"-"+Rf])}),[]),zf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qf(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Hf(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Yf={placement:"bottom",modifiers:[],strategy:"absolute"};function $f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Kf(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Yf:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yf,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],u=!1,s={state:o,setOptions:function(n){l(),o.options=Object.assign({},i,o.options,n),o.scrollParents={reference:pf(e)?Sf(e):e.contextElement?Sf(e.contextElement):[],popper:Sf(t)};var u=function(e){var t=qf(e);return zf.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var u=i({state:o,name:t,instance:s,options:r}),l=function(){};a.push(u||l)}})),s.update()},forceUpdate:function(){if(!u){var e=o.elements,t=e.reference,n=e.popper;if($f(t,n)){o.rects={reference:xf(t,jf(n),"fixed"===o.options.strategy),popper:kf(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,c=void 0===l?{}:l,f=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:f,instance:s})||o)}else o.reset=!1,r=-1}}},update:Hf((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){l(),u=!0}};if(!$f(e,t))return s;function l(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var Qf={passive:!0};var Gf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,s=ff(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,Qf)})),u&&s.addEventListener("resize",n.update,Qf),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Qf)})),u&&s.removeEventListener("resize",n.update,Qf)}},data:{}};function Xf(e){return e.split("-")[0]}function Jf(e){return e.split("-")[1]}function Zf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ed(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Xf(o):null,a=o?Jf(o):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Tf:t={x:u,y:n.y-r.height};break;case Pf:t={x:u,y:n.y+n.height};break;case Df:t={x:n.x+n.width,y:s};break;case Mf:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var l=i?Zf(i):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case If:t[l]=t[l]-(n[c]/2-r[c]/2);break;case Rf:t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var td={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ed({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},nd=Math.max,rd=Math.min,od=Math.round,id={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ad(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,u=e.gpuAcceleration,s=e.adaptive,l=e.roundOffsets,c=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:od(od(t*r)/r)||0,y:od(od(n*r)/r)||0}}(i):"function"===typeof l?l(i):i,f=c.x,d=void 0===f?0:f,p=c.y,h=void 0===p?0:p,v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),m=Mf,g=Tf,b=window;if(s){var w=jf(n),x="clientHeight",k="clientWidth";w===ff(n)&&"static"!==bf(w=mf(n)).position&&(x="scrollHeight",k="scrollWidth"),o===Tf&&(g=Pf,h-=w[x]-r.height,h*=u?1:-1),o===Mf&&(m=Df,d-=w[k]-r.width,d*=u?1:-1)}var _,O=Object.assign({position:a},s&&id);return u?Object.assign({},O,((_={})[g]=y?"0":"",_[m]=v?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",_)):Object.assign({},O,((t={})[g]=y?h+"px":"",t[m]=v?d+"px":"",t.transform="",t))}var ud={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];hf(o)&&yf(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});hf(r)&&yf(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var sd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Wf.reduce((function(e,n){return e[n]=function(e,t,n){var r=Xf(e),o=[Mf,Tf].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[Mf,Df].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}(n,t.rects,i),e}),{}),u=a[t.placement],s=u.x,l=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},ld={left:"right",right:"left",bottom:"top",top:"bottom"};function cd(e){return e.replace(/left|right|bottom|top/g,(function(e){return ld[e]}))}var fd={start:"end",end:"start"};function dd(e){return e.replace(/start|end/g,(function(e){return fd[e]}))}function pd(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vd(e,t){return t===Lf?hd(function(e){var t=ff(e),n=mf(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+gf(e),y:u}}(e)):hf(t)?function(e){var t=cf(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):hd(function(e){var t,n=mf(e),r=df(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=nd(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=nd(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+gf(e),s=-r.scrollTop;return"rtl"===bf(o||n).direction&&(u+=nd(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:s}}(mf(e)))}function yd(e,t,n){var r="clippingParents"===t?function(e){var t=Sf(_f(e)),n=["absolute","fixed"].indexOf(bf(e).position)>=0&&hf(e)?jf(e):e;return pf(n)?t.filter((function(e){return pf(e)&&pd(e,n)&&"body"!==yf(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=vd(e,n);return t.top=nd(r.top,t.top),t.right=rd(r.right,t.right),t.bottom=rd(r.bottom,t.bottom),t.left=nd(r.left,t.left),t}),vd(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function md(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function gd(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function bd(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?Ff:i,u=n.rootBoundary,s=void 0===u?Lf:u,l=n.elementContext,c=void 0===l?Vf:l,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,v=md("number"!==typeof h?h:gd(h,Nf)),y=c===Vf?Bf:Vf,m=e.elements.reference,g=e.rects.popper,b=e.elements[d?y:c],w=yd(pf(b)?b:b.contextElement||mf(e.elements.popper),a,s),x=cf(m),k=ed({reference:x,element:g,strategy:"absolute",placement:o}),_=hd(Object.assign({},g,k)),O=c===Vf?_:x,S={top:w.top-O.top+v.top,bottom:O.bottom-w.bottom+v.bottom,left:w.left-O.left+v.left,right:O.right-w.right+v.right},E=e.modifiersData.offset;if(c===Vf&&E){var C=E[o];Object.keys(S).forEach((function(e){var t=[Df,Pf].indexOf(e)>=0?1:-1,n=[Tf,Pf].indexOf(e)>=0?"y":"x";S[e]+=C[n]*t}))}return S}var wd={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,y=t.options.placement,m=Xf(y),g=s||(m===y||!h?[cd(y)]:function(e){if(Xf(e)===Af)return[];var t=cd(e);return[dd(e),t,dd(t)]}(y)),b=[y].concat(g).reduce((function(e,n){return e.concat(Xf(n)===Af?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,s=n.allowedAutoPlacements,l=void 0===s?Wf:s,c=Jf(r),f=c?u?Uf:Uf.filter((function(e){return Jf(e)===c})):Nf,d=f.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=bd(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Xf(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,_=!0,O=b[0],S=0;S<b.length;S++){var E=b[S],C=Xf(E),j=Jf(E)===If,T=[Tf,Pf].indexOf(C)>=0,P=T?"width":"height",D=bd(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),M=T?j?Df:Mf:j?Pf:Tf;w[P]>x[P]&&(M=cd(M));var A=cd(M),N=[];if(i&&N.push(D[C]<=0),u&&N.push(D[M]<=0,D[A]<=0),N.every((function(e){return e}))){O=E,_=!1;break}k.set(E,N)}if(_)for(var I=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},R=h?3:1;R>0;R--){if("break"===I(R))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xd(e,t,n){return nd(e,rd(t,n))}var kd={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,y=bd(t,{boundary:s,rootBoundary:l,padding:f,altBoundary:c}),m=Xf(t.placement),g=Jf(t.placement),b=!g,w=Zf(m),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,S="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E={x:0,y:0};if(k){if(i||u){var C="y"===w?Tf:Mf,j="y"===w?Pf:Df,T="y"===w?"height":"width",P=k[w],D=k[w]+y[C],M=k[w]-y[j],A=p?-O[T]/2:0,N=g===If?_[T]:O[T],I=g===If?-O[T]:-_[T],R=t.elements.arrow,F=p&&R?kf(R):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=L[C],B=L[j],U=xd(0,_[T],F[T]),W=b?_[T]/2-A-U-V-S:N-U-V-S,z=b?-_[T]/2+A+U+B+S:I+U+B+S,q=t.elements.arrow&&jf(t.elements.arrow),H=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Y=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,$=k[w]+W-Y-H,K=k[w]+z-Y;if(i){var Q=xd(p?rd(D,$):D,P,p?nd(M,K):M);k[w]=Q,E[w]=Q-P}if(u){var G="x"===w?Tf:Mf,X="x"===w?Pf:Df,J=k[x],Z=J+y[G],ee=J-y[X],te=xd(p?rd(Z,$):Z,J,p?nd(ee,K):ee);k[x]=te,E[x]=te-J}}t.modifiersData[r]=E}},requiresIfExists:["offset"]};var _d={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,u=Xf(n.placement),s=Zf(u),l=[Mf,Df].indexOf(u)>=0?"height":"width";if(i&&a){var c=function(e,t){return md("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:gd(e,Nf))}(o.padding,n),f=kf(i),d="y"===s?Tf:Mf,p="y"===s?Pf:Df,h=n.rects.reference[l]+n.rects.reference[s]-a[s]-n.rects.popper[l],v=a[s]-n.rects.reference[s],y=jf(i),m=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,g=h/2-v/2,b=c[d],w=m-f[l]-c[p],x=m/2-f[l]/2+g,k=xd(b,x,w),_=s;n.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&pd(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Od(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Sd(e){return[Tf,Df,Pf,Mf].some((function(t){return e[t]>=0}))}var Ed=Kf({defaultModifiers:[Gf,td,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,u=n.roundOffsets,s=void 0===u||u,l={placement:Xf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ad(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ad(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ud,sd,wd,kd,_d,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=bd(t,{elementContext:"reference"}),u=bd(t,{altBoundary:!0}),s=Od(a,r),l=Od(u,o,i),c=Sd(s),f=Sd(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Cd=hs("Mac")&&!hs("Chrome")&&hs("Safari");function jd(e){return function(t){return e&&!$a(t,e)?e:t}}function Td(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=Da(e);!(t=o()).done;)r();return n}function Pd(e){for(var t,n=[],r=Da(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Dd(e){return e.slice().reverse()}function Md(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function Ad(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=Md(e.items||[]))||void 0===n?void 0:n.id}function Nd(e,t){if(t)return null===e||void 0===e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function Id(e,t){return function(e){return"function"===typeof e}(e)?e(t):e}function Rd(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Fd(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Rd(t.ref.current,e.ref.current)}))}function Ld(e){for(var t,n=0,r=Da(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function Vd(e){for(var t=Td(e),n=Ld(t),r=[],o=0;o<n;o+=1)for(var i,a=Da(t);!(i=a()).done;){var u=i.value;u[o]&&r.push(ja(ja({},u[o]),{},{groupId:u[o].groupId?""+o:void 0}))}return r}function Bd(e,t,n){for(var r,o=Ld(e),i=Da(e);!(r=i()).done;)for(var a=r.value,u=0;u<o;u+=1){var s=a[u];if(!s||n&&s.disabled){var l=0===u&&n?Md(a):a[u-1];a[u]=l&&t!==(null===l||void 0===l?void 0:l.id)&&n?l:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null===l||void 0===l?void 0:l.groupId}}}return e}var Ud={id:null,ref:{current:null}};function Wd(e,t){return e.filter((function(e){return e.groupId===t}))}var zd={horizontal:"vertical",vertical:"horizontal"};function qd(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function Hd(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],u=o.ref.current,s=a.ref.current;return u&&s?Rd(u,s)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function Yd(e,t){var n=Hd(e);e!==n&&t(n)}function $d(e,n){var r=(0,t.useRef)([]);(0,t.useEffect)((function(){for(var t,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null===n||void 0===n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"===typeof a)return a.v}return ru(o).body}(e),i=new IntersectionObserver((function(){!!r.current.length&&Yd(e,n),r.current=e}),{root:o}),a=Da(e);!(t=a()).done;){var u=t.value;u.ref.current&&i.observe(u.ref.current)}return function(){i.disconnect()}}),[e])}function Kd(e,n){"function"===typeof IntersectionObserver?$d(e,n):function(e,n){(0,t.useEffect)((function(){var t=setTimeout((function(){return Yd(e,n)}),250);return function(){return clearTimeout(t)}}))}(e,n)}function Qd(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,u=e.currentId,s=e.loop,l=e.wrap,c=e.pastIds,f=e.shift,d=e.unstable_moves,p=e.unstable_includesBaseElement,h=e.initialVirtual,v=e.initialRTL,y=e.initialOrientation,m=e.initialCurrentId,g=e.initialLoop,b=e.initialWrap,w=e.initialShift,x=e.hasSetCurrentId;switch(t.type){case"registerGroup":var k=t.group;if(0===a.length)return ja(ja({},e),{},{groups:[k]});var _=Fd(a,k);return ja(ja({},e),{},{groups:qd(a,k,_)});case"unregisterGroup":var O=t.id,S=a.filter((function(e){return e.id!==O}));return S.length===a.length?e:ja(ja({},e),{},{groups:S});case"registerItem":var E,C=t.item,j=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(C.ref.current)})),T=ja({groupId:null===j||void 0===j?void 0:j.id},C),P=Fd(i,T),D=ja(ja({},e),{},{items:qd(i,T,P)});return x||d||void 0!==m?D:ja(ja({},D),{},{currentId:null===(E=Md(D.items))||void 0===E?void 0:E.id});case"unregisterItem":var M=t.id,A=i.filter((function(e){return e.id!==M}));if(A.length===i.length)return e;var N=c.filter((function(e){return e!==M})),I=ja(ja({},e),{},{pastIds:N,items:A});if(u&&u===M){var R=p?null:Ad(ja(ja({},I),{},{currentId:N[0]}));return ja(ja({},I),{},{currentId:R})}return I;case"move":var F=t.id;if(void 0===F)return e;var L=c.filter((function(e){return e!==u&&e!==F})),V=u?[u].concat(L):L,B=ja(ja({},e),{},{pastIds:V});if(null===F)return ja(ja({},B),{},{unstable_moves:d+1,currentId:Ad(B,F)});var U=Nd(i,F);return ja(ja({},B),{},{unstable_moves:U?d+1:d,currentId:Ad(B,null===U||void 0===U?void 0:U.id)});case"next":if(null==u)return Qd(e,ja(ja({},t),{},{type:"first"}));var W=r&&"vertical"!==o,z=W?Dd(i):i,q=z.find((function(e){return e.id===u}));if(!q)return Qd(e,ja(ja({},t),{},{type:"first"}));var H=!!q.groupId,Y=z.indexOf(q),$=z.slice(Y+1),K=Wd($,q.groupId);if(t.allTheWay){var Q=Md(W?Wd(z,q.groupId):Dd(K));return Qd(e,ja(ja({},t),{},{type:"move",id:null===Q||void 0===Q?void 0:Q.id}))}var G=function(e){return e&&zd[e]}(H?o||"horizontal":o),X=s&&s!==G,J=H&&l&&l!==G,Z=t.hasNullItem||!H&&X&&p;if(X){var ee=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[Ud]:[],e.slice(0,r))}(J&&!Z?z:Wd(z,q.groupId),u,Z),te=Md(ee,u);return Qd(e,ja(ja({},t),{},{type:"move",id:null===te||void 0===te?void 0:te.id}))}if(J){var ne=Md(Z?K:$,u),re=Z?(null===ne||void 0===ne?void 0:ne.id)||null:null===ne||void 0===ne?void 0:ne.id;return Qd(e,ja(ja({},t),{},{type:"move",id:re}))}var oe=Md(K,u);return Qd(e,!oe&&Z?ja(ja({},t),{},{type:"move",id:null}):ja(ja({},t),{},{type:"move",id:null===oe||void 0===oe?void 0:oe.id}));case"previous":var ie=!!!a.length&&p,ae=Qd(ja(ja({},e),{},{items:Dd(i)}),ja(ja({},t),{},{type:"next",hasNullItem:ie}));return ja(ja({},ae),{},{items:i});case"down":var ue=f&&!t.allTheWay,se=Vd(Pd(Bd(Td(i),u,ue))),le=s&&"horizontal"!==s&&p,ce=Qd(ja(ja({},e),{},{orientation:"vertical",items:se}),ja(ja({},t),{},{type:"next",hasNullItem:le}));return ja(ja({},ce),{},{orientation:o,items:i});case"up":var fe=f&&!t.allTheWay,de=Vd(Dd(Pd(Bd(Td(i),u,fe)))),pe=p,he=Qd(ja(ja({},e),{},{orientation:"vertical",items:de}),ja(ja({},t),{},{type:"next",hasNullItem:pe}));return ja(ja({},he),{},{orientation:o,items:i});case"first":var ve=Md(i);return Qd(e,ja(ja({},t),{},{type:"move",id:null===ve||void 0===ve?void 0:ve.id}));case"last":var ye=Qd(ja(ja({},e),{},{items:Dd(i)}),ja(ja({},t),{},{type:"first"}));return ja(ja({},ye),{},{items:i});case"sort":return ja(ja({},e),{},{items:Hd(i),groups:Hd(a)});case"setVirtual":return ja(ja({},e),{},{unstable_virtual:Id(t.virtual,n)});case"setRTL":return ja(ja({},e),{},{rtl:Id(t.rtl,r)});case"setOrientation":return ja(ja({},e),{},{orientation:Id(t.orientation,o)});case"setCurrentId":var me=Ad(ja(ja({},e),{},{currentId:Id(t.currentId,u)}));return ja(ja({},e),{},{currentId:me,hasSetCurrentId:!0});case"setLoop":return ja(ja({},e),{},{loop:Id(t.loop,s)});case"setWrap":return ja(ja({},e),{},{wrap:Id(t.wrap,l)});case"setShift":return ja(ja({},e),{},{shift:Id(t.shift,f)});case"setIncludesBaseElement":return ja(ja({},e),{},{unstable_includesBaseElement:Id(t.includesBaseElement,p)});case"reset":return ja(ja({},e),{},{unstable_virtual:h,rtl:v,orientation:y,currentId:Ad(ja(ja({},e),{},{currentId:m})),loop:g,wrap:b,shift:w,unstable_moves:0,pastIds:[]});case"setItems":return ja(ja({},e),{},{items:t.items});default:throw new Error}}function Gd(e){return(0,t.useCallback)(e,[])}function Xd(e){void 0===e&&(e={});var n=us(e),r=n.unstable_virtual,o=void 0!==r&&r,i=n.rtl,a=void 0!==i&&i,u=n.orientation,s=n.currentId,l=n.loop,c=void 0!==l&&l,f=n.wrap,d=void 0!==f&&f,p=n.shift,h=void 0!==p&&p,v=n.unstable_includesBaseElement,y=cs(Ta(n,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),m=(0,t.useReducer)(Qd,{unstable_virtual:o,rtl:a,orientation:u,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:h,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=v?v:null===s,initialVirtual:o,initialRTL:a,initialOrientation:u,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:h}),g=m[0],b=(g.pastIds,g.initialVirtual,g.initialRTL,g.initialOrientation,g.initialCurrentId,g.initialLoop,g.initialWrap,g.initialShift,g.hasSetCurrentId,Ta(g,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),w=m[1],x=(0,t.useState)(!1),k=x[0],_=x[1],O=function(){var e=(0,t.useRef)(!1);return au((function(){return function(){e.current=!0}}),[]),e}(),S=(0,t.useCallback)((function(e){return w({type:"setItems",items:e})}),[]);return Kd(b.items,S),ja(ja(ja({},y),b),{},{unstable_hasActiveWidget:k,unstable_setHasActiveWidget:_,registerItem:Gd((function(e){O.current||w({type:"registerItem",item:e})})),unregisterItem:Gd((function(e){O.current||w({type:"unregisterItem",id:e})})),registerGroup:Gd((function(e){O.current||w({type:"registerGroup",group:e})})),unregisterGroup:Gd((function(e){O.current||w({type:"unregisterGroup",id:e})})),move:Gd((function(e){return w({type:"move",id:e})})),next:Gd((function(e){return w({type:"next",allTheWay:e})})),previous:Gd((function(e){return w({type:"previous",allTheWay:e})})),up:Gd((function(e){return w({type:"up",allTheWay:e})})),down:Gd((function(e){return w({type:"down",allTheWay:e})})),first:Gd((function(){return w({type:"first"})})),last:Gd((function(){return w({type:"last"})})),sort:Gd((function(){return w({type:"sort"})})),unstable_setVirtual:Gd((function(e){return w({type:"setVirtual",virtual:e})})),setRTL:Gd((function(e){return w({type:"setRTL",rtl:e})})),setOrientation:Gd((function(e){return w({type:"setOrientation",orientation:e})})),setCurrentId:Gd((function(e){return w({type:"setCurrentId",currentId:e})})),setLoop:Gd((function(e){return w({type:"setLoop",loop:e})})),setWrap:Gd((function(e){return w({type:"setWrap",wrap:e})})),setShift:Gd((function(e){return w({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:Gd((function(e){return w({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:Gd((function(){return w({type:"reset"})}))})}function Jd(e){void 0===e&&(e={});var n=(0,t.useContext)(Du),r=us(e),o=r.orientation,i=void 0===o?"vertical":o,a=r.gutter,u=void 0===a?0:a,s=Ta(r,["orientation","gutter"]),l=s.placement||(n&&"vertical"===n.orientation?"right-start":"bottom-start"),c=function(e){void 0===e&&(e={});var n=us(e),r=n.orientation,o=void 0===r?"horizontal":r,i=n.unstable_values,a=void 0===i?{}:i,u=Ta(n,["orientation","unstable_values"]),s=(0,t.useState)(a),l=s[0],c=s[1],f=Xd(ja(ja({},u),{},{orientation:o}));return ja(ja({},f),{},{unstable_values:l,unstable_setValue:(0,t.useCallback)((function(e,t){c((function(n){var r;return ja(ja({},n),{},((r={})[e]="function"===typeof t?t(n):t,r))}))}),[])})}(ja(ja({},s),{},{orientation:i})),f=function(e){void 0===e&&(e={});var n=us(e),r=n.gutter,o=void 0===r?12:r,i=n.placement,a=void 0===i?"bottom":i,u=n.unstable_flip,s=void 0===u||u,l=n.unstable_offset,c=n.unstable_preventOverflow,f=void 0===c||c,d=n.unstable_fixed,p=void 0!==d&&d,h=n.modal,v=void 0!==h&&h,y=Ta(n,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),m=(0,t.useRef)(null),g=(0,t.useRef)(null),b=(0,t.useRef)(null),w=(0,t.useRef)(null),x=(0,t.useState)(a),k=x[0],_=x[1],O=(0,t.useState)(a),S=O[0],E=O[1],C=(0,t.useState)(l||[0,o])[0],j=(0,t.useState)({position:"fixed",left:"0",top:"0"}),T=j[0],P=j[1],D=(0,t.useState)({}),M=D[0],A=D[1],N=ds(ja({modal:v},y)),I=(0,t.useCallback)((function(){return!!m.current&&(m.current.forceUpdate(),!0)}),[]),R=(0,t.useCallback)((function(e){e.placement&&E(e.placement),e.styles&&(P(jd(e.styles.popper)),w.current&&A(jd(e.styles.arrow)))}),[]);return au((function(){return g.current&&b.current&&(m.current=Ed(g.current,b.current,{placement:k,strategy:p?"fixed":"absolute",onFirstUpdate:Cd?R:void 0,modifiers:[{name:"eventListeners",enabled:N.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:C}},{name:"preventOverflow",enabled:f,options:{tetherOffset:function(){var e;return(null===(e=w.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!w.current,options:{element:w.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:N.visible&&!0,fn:function(e){var t=e.state;return R(t)}}]})),function(){m.current&&(m.current.destroy(),m.current=null)}}),[k,p,N.visible,s,C,f]),(0,t.useEffect)((function(){if(N.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=m.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[N.visible]),ja(ja({},N),{},{unstable_referenceRef:g,unstable_popoverRef:b,unstable_arrowRef:w,unstable_popoverStyles:T,unstable_arrowStyles:M,unstable_update:I,unstable_originalPlacement:k,placement:S,place:_})}(ja(ja({},s),{},{placement:l,gutter:u}));return(0,t.useEffect)((function(){f.visible||c.reset()}),[f.visible,c.reset]),ja(ja({},c),f)}var Zd=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],ep=Zd;function tp(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function np(e,t){e.userFocus=t}function rp(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(o){return!1}}var op=Xa({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,n){var r=(0,t.useContext)(ls),o=(0,t.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+r(""):""}))[0],i=(0,t.useMemo)((function(){return e.baseId||r()}),[e.baseId,r]),a=n.id||e.id||""+i+o;return ja(ja({},e),{},{id:a})},useProps:function(e,t){return ja({id:e.id},t)}});Qa({as:"div",useHook:op});function ip(e,t,n){if("function"===typeof Event)return new Event(t,n);var r=ru(e).createEvent("Event");return r.initEvent(t,null===n||void 0===n?void 0:n.bubbles,null===n||void 0===n?void 0:n.cancelable),r}function ap(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(ip(e,t,n))}(e,"input",{bubbles:!0}))}}function up(e){return e.querySelector("[data-composite-item-widget]")}var sp=Xa({name:"CompositeItem",compose:[ks,op],keys:ep,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ks.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=Ta(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,u=Ta(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ks.unstable_propsAreEqual(o,u)},useOptions:function(e){return ja(ja({},e),{},{id:e.id,currentId:Ad(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,n){var r,o=n.ref,i=n.tabIndex,a=void 0===i?0:i,u=n.onMouseDown,s=n.onFocus,l=n.onBlurCapture,c=n.onKeyDown,f=n.onClick,d=Ta(n,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),p=(0,t.useRef)(null),h=e.id,v=e.disabled&&!e.focusable,y=e.currentId===h,m=uu(y),g=(0,t.useRef)(!1),b=function(e){return(0,t.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),w=uu(u),x=uu(s),k=uu(l),_=uu(c),O=uu(f),S=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(r=e.items)&&void 0!==r&&r.length);(0,t.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:p,disabled:!!v}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,v,e.registerItem,e.unregisterItem]),(0,t.useEffect)((function(){var t=p.current;t&&e.unstable_moves&&m.current&&tp(t)}),[e.unstable_moves]);var E=(0,t.useCallback)((function(e){var t;null===(t=w.current)||void 0===t||t.call(w,e),np(e.currentTarget,!0)}),[]),C=(0,t.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(np(t.currentTarget,!1),null===(n=x.current)||void 0===n||n.call(x,t),!t.defaultPrevented&&!ps(t)&&h&&!function(e,t){if(_u(e))return!1;for(var n,r=Da(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&_u(t))){var i=ru(t.target).getElementById(e.baseId);i&&(g.current=!0,ku(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),j=(0,t.useCallback)((function(t){var n;null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||e.unstable_virtual&&g.current&&(g.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),T=(0,t.useCallback)((function(t){var n;if(_u(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null===b||void 0===b||!b.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=_.current)||void 0===n||n.call(_,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var u=up(t.currentTarget);u&&rp(u)&&(u.focus(),ap(u,""))}else if("Delete"===t.key||"Backspace"===t.key){var s=up(t.currentTarget);s&&rp(s)&&(t.preventDefault(),ap(s,""))}}}),[e.orientation,b,e.up,e.next,e.down,e.previous,e.first,e.last]),P=(0,t.useCallback)((function(e){var t;if(null===(t=O.current)||void 0===t||t.call(O,e),!e.defaultPrevented){var n=up(e.currentTarget);n&&!cu(n)&&n.focus()}}),[]);return ja({ref:Za(p,o),id:h,tabIndex:S?a:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:E,onFocus:C,onBlurCapture:j,onKeyDown:T,onClick:P},d)}}),lp=(Qa({as:"button",memo:!0,useHook:sp}),[].concat(["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","unstable_values","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","unstable_setValue"],["visible","animated","animating","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"])),cp=lp,fp=cp,dp=fp;[].concat(dp,["name"]);function pp(e){var t=null===e||void 0===e?void 0:e.find((function(e){return e.current&&!e.current.hidden}));return null===t||void 0===t?void 0:t.current}function hp(e,t,n){return Math.abs((e.x*(t.y-n.y)+t.x*(n.y-e.y)+n.x*(e.y-t.y))/2)}function vp(e,n){var r=uu(n),o=(0,t.useRef)(null),i=(0,t.useRef)(null),a=(0,t.useRef)(null),u=(0,t.useRef)(0),s=(0,t.useRef)(0),l=(0,t.useCallback)((function(t){if(null!==e&&void 0!==e&&e.children.length){i.current=null,a.current=null;var n=pp(e.children);if(n){var r=function(e,t){var n=t.getBoundingClientRect(),r=n.top,o=n.right,i=n.bottom,a=n.left,u=a>e.clientX?a:o;return[{x:u,y:r},{x:u,y:i}]}(t,n);i.current=r[0],a.current=r[1]}}}),[null===e||void 0===e?void 0:e.children]),c=(0,t.useCallback)((function(e){var t=u.current!==e.clientX||s.current!==e.clientY;if(e.isTrusted&&!t)return!0;var n=Math.abs(u.current-e.clientX);u.current=e.clientX,s.current=e.clientY;var r=function(){return i.current&&a.current};return"mouseleave"!==e.type||r()||l(e),!!r()&&(n&&o.current&&function(e,t,n,r){return hp(t,n,r)===hp(e,n,r)+hp(t,e,r)+hp(t,n,e)}({x:e.clientX,y:e.clientY},o.current,i.current,a.current))}),[l]);return{onMouseEnter:(0,t.useCallback)((function(t){var n;null===(n=r.current)||void 0===n||n.call(r,t),t.defaultPrevented||"menubar"!==(null===e||void 0===e?void 0:e.role)&&(o.current={x:t.clientX,y:t.clientY},l(t))}),[null===e||void 0===e?void 0:e.role,l]),isMouseInTransitToSubmenu:c}}function yp(e){var t=e.relatedTarget;return(null===t||void 0===t?void 0:t.nodeType)===Node.ELEMENT_NODE?e.relatedTarget:e.toElement||null}var mp=Xa({name:"MenuItem",compose:sp,keys:dp,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.visible;var n=Ta(e,["unstable_popoverStyles","unstable_arrowStyles","visible"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.visible,Ta(t,["unstable_popoverStyles","unstable_arrowStyles","visible"]));return sp.unstable_propsAreEqual(n,r)},useProps:function(e,n){var r=n.onMouseEnter,o=n.onMouseMove,i=n.onMouseLeave,a=Ta(n,["onMouseEnter","onMouseMove","onMouseLeave"]),u=(0,t.useContext)(Du),s=uu(o),l=uu(i),c=vp(u,r),f=c.onMouseEnter,d=c.isMouseInTransitToSubmenu,p=(0,t.useCallback)((function(t){var n,r;null===(n=s.current)||void 0===n||n.call(s,t),t.defaultPrevented||"menubar"!==(null===u||void 0===u?void 0:u.role)&&(d(t)||cu(t.currentTarget)||null===(r=e.move)||void 0===r||r.call(e,t.currentTarget.id))}),[e.move]),h=(0,t.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&"menubar"!==(null===u||void 0===u?void 0:u.role)&&!function(e){var t=yp(e);return!!t&&lu(e.currentTarget,t)}(t)&&!function(e,t){if(null===t||void 0===t||!t.length)return!1;var n=yp(e);if(!n)return!1;var r=pp(t);return r&&lu(r,n)}(t,null===u||void 0===u?void 0:u.children)&&!function(e,t){var n=yp(e);return!!n&&(null===t||void 0===t?void 0:t.some((function(e){return e.ref.current&&lu(e.ref.current,n)})))}(t,e.items)){var r;if(d(t))return;null===(r=e.move)||void 0===r||r.call(e,null)}}),[null===u||void 0===u?void 0:u.role,null===u||void 0===u?void 0:u.children,e.items,e.move]);return ja({role:"menuitem",onMouseEnter:f,onMouseMove:p,onMouseLeave:h},a)}}),gp=Qa({as:"button",memo:!0,useHook:mp}),bp=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"],wp=([].concat(bp,["size"]),Xa({name:"PopoverDisclosure",compose:Ss,keys:bp,useProps:function(e,t){var n=t.ref,r=Ta(t,["ref"]);return ja({ref:Za(e.unstable_referenceRef,n)},r)}})),xp=(Qa({as:"button",memo:!0,useHook:wp}),function(){}),kp=Xa({name:"MenuButton",compose:wp,keys:fp,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.currentId,e.unstable_moves;var n=Ta(e,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.currentId,t.unstable_moves,Ta(t,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]));return wp.unstable_propsAreEqual(n,r)},useProps:function(e,n){var r=n.ref,o=n.onClick,i=n.onKeyDown,a=n.onFocus,u=n.onMouseEnter,s=n.onMouseDown,l=Ta(n,["ref","onClick","onKeyDown","onFocus","onMouseEnter","onMouseDown"]),c=(0,t.useContext)(Du),f=(0,t.useRef)(null),d=(0,t.useRef)(!1),p=e.placement.split("-")[0],h=!!c,v="menubar"===(null===c||void 0===c?void 0:c.role),y=e.disabled||l["aria-disabled"],m=uu(o),g=uu(i),b=uu(a),w=uu(u),x=uu(s),k=(0,t.useCallback)((function(t){var n,r;if("Escape"===t.key)null===(r=e.hide)||void 0===r||r.call(e);else if(!y){var o,i=e.first&&function(){return setTimeout(e.first)},a=e.last&&function(){return setTimeout(e.last)},u={Enter:i," ":i,ArrowUp:("top"===p||"bottom"===p)&&a,ArrowRight:"right"===p&&i,ArrowDown:("bottom"===p||"top"===p)&&i,ArrowLeft:"left"===p&&i}[t.key];if(u)return t.preventDefault(),t.stopPropagation(),null===(o=e.show)||void 0===o||o.call(e),void u()}null===(n=g.current)||void 0===n||n.call(g,t)}),[y,e.hide,e.first,e.last,p,e.show]),_=(0,t.useCallback)((function(t){var n;if(null===(n=w.current)||void 0===n||n.call(w,t),!t.defaultPrevented&&c){var r=t.currentTarget;v?pp(c.children)&&r.focus():setTimeout((function(){var t;cu(r)&&(null===(t=e.show)||void 0===t||t.call(e))}),200)}}),[c,v,e.show]),O=(0,t.useCallback)((function(e){var t;d.current=!0,null===(t=x.current)||void 0===t||t.call(x,e)}),[]),S=(0,t.useCallback)((function(t){var n,r;(null===(n=b.current)||void 0===n||n.call(b,t),t.defaultPrevented)||(y||v&&!d.current&&(null===(r=e.show)||void 0===r||r.call(e)))}),[v,y,e.show]),E=(0,t.useCallback)((function(t){var n;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented){var r,o,i;if(h&&!v)null===(r=e.show)||void 0===r||r.call(e);else if(null===(o=e.toggle)||void 0===o||o.call(e),d.current&&!v&&!e.visible)null===(i=e.move)||void 0===i||i.call(e,null);d.current=!1}}),[h,v,e.show,e.toggle,e.visible,e.move]);return ja({ref:Za(f,r),"aria-haspopup":"menu",onKeyDown:k,onMouseEnter:_,onMouseDown:O,onFocus:S,onClick:E},l)},useComposeOptions:function(e){return ja(ja({},e),{},{toggle:xp})}}),_p=Qa({as:"button",memo:!0,useHook:kp}),Op=Xa({name:"Popover",compose:is,keys:bp,useOptions:function(e){var t=e.modal;return ja({modal:void 0!==t&&t},Ta(e,["modal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=Ta(t,["ref","style"]);return ja({ref:Za(e.unstable_popoverRef,n),style:ja(ja({},e.unstable_popoverStyles),r)},o)}});Qa({as:"div",useHook:Op,useCreateElement:function(e,t,n){return Va(e,t,n)}});function Sp(e,t,n){return void 0===n&&(n={}),"function"===typeof FocusEvent?new FocusEvent(t,n):ip(e,t,n)}function Ep(e,t){var n=Sp(e,"blur",t),r=e.dispatchEvent(n),o=Wa(Wa({},t),{},{bubbles:!0});return e.dispatchEvent(Sp(e,"focusout",o)),r}function Cp(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"===typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=ru(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,ou(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var jp=iu&&"msCrypto"in window;function Tp(e,n,r){var o=uu(r);return(0,t.useCallback)((function(t){var r;if(null===(r=o.current)||void 0===r||r.call(o,t),!t.defaultPrevented&&e&&function(e){return!!_u(e)&&!e.metaKey&&"Tab"!==e.key}(t)){var i=null===n||void 0===n?void 0:n.ref.current;i&&(Cp(i,t.type,t)||t.preventDefault(),t.currentTarget.contains(i)&&t.stopPropagation())}}),[e,n])}function Pp(e,t){return null===e||void 0===e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Dp=Xa({name:"Composite",compose:[ws],keys:Zd,useOptions:function(e){return ja(ja({},e),{},{currentId:Ad(e)})},useProps:function(e,n){var r=n.ref,o=n.onFocusCapture,i=n.onFocus,a=n.onBlurCapture,u=n.onKeyDown,s=n.onKeyDownCapture,l=n.onKeyUpCapture,c=Ta(n,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),f=(0,t.useRef)(null),d=Nd(e.items,e.currentId),p=(0,t.useRef)(null),h=uu(o),v=uu(i),y=uu(a),m=uu(u),g=function(e){var n=uu(e),r=(0,t.useReducer)((function(e){return e+1}),0),o=r[0],i=r[1];return(0,t.useEffect)((function(){var e,t=null===(e=n.current)||void 0===e?void 0:e.ref.current;o&&t&&tp(t)}),[o]),i}(d),b=jp?function(e){var n=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=ru(e.current),r=function(e){var t=e.target;n.current=t};return t.addEventListener("focus",r,!0),function(){t.removeEventListener("focus",r,!0)}}),[]),n}(f):void 0;(0,t.useEffect)((function(){var t=f.current;e.unstable_moves&&!d&&(null===t||void 0===t||t.focus())}),[e.unstable_moves,d]);var w=Tp(e.unstable_virtual,d,s),x=Tp(e.unstable_virtual,d,l),k=(0,t.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null===b||void 0===b?void 0:b.current)||t.relatedTarget,o=Pp(e.items,r);_u(t)&&o&&t.stopPropagation()}}),[e.unstable_virtual,e.items]),_=(0,t.useCallback)((function(t){var n;if(null===(n=v.current)||void 0===n||n.call(v,t),!t.defaultPrevented)if(e.unstable_virtual)_u(t)&&g();else if(_u(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),O=(0,t.useCallback)((function(t){var n;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null===d||void 0===d?void 0:d.ref.current)||null,o=wu(t),i=Pp(e.items,o);if(_u(t)&&i)o===r?(p.current&&p.current!==o&&Ep(p.current,t),p.current=r):r&&(Ep(r,t),p.current=o),t.stopPropagation();else!Pp(e.items,t.target)&&r&&Ep(r,t)}}),[e.unstable_virtual,e.items,d]),S=(0,t.useCallback)((function(t){var n,r;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented&&null===e.currentId&&_u(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),u={ArrowUp:(a||o)&&function(){if(a){var t,n=Md(Pd(Dd(Td(e.items))));if(null!==n&&void 0!==n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},s=u[t.key];s&&(t.preventDefault(),s())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return ja({ref:Za(f,r),id:e.baseId,onFocus:_,onFocusCapture:k,onBlurCapture:O,onKeyDownCapture:w,onKeyDown:S,onKeyUpCapture:x,"aria-activedescendant":e.unstable_virtual&&(null===d||void 0===d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=Ou(e,t,!0);var n=ws(e,t,!0);return e.unstable_virtual||null===e.currentId?ja({tabIndex:0},n):ja(ja({},t),{},{ref:n.ref})}});Qa({as:"div",useHook:Dp,useCreateElement:function(e,t,n){return Va(e,t,n)}});var Mp=Xa({name:"MenuBar",compose:Dp,keys:cp,useProps:function(e,n){var r=n.ref,o=n.wrapElement,i=n.role,a=void 0===i?"menubar":i,u=Ta(n,["ref","wrapElement","role"]),s=(0,t.useRef)(null),l=function(e,n,r){var o="unstable_orphan"in r&&r.unstable_orphan,i=(0,t.useContext)(Du),a=(0,t.useState)([]),u=a[0],s=a[1],l=i||{},c=l.addChild,f=l.removeChild,d=(0,t.useCallback)((function(e){return s((function(t){return[].concat(t,[e])}))}),[]),p=(0,t.useCallback)((function(e){return s((function(t){return Pu(t,e)}))}),[]);(0,t.useEffect)((function(){if(c&&!o)return c(e),function(){null===f||void 0===f||f(e)}}),[e,c,f,o]);var h=(0,t.useMemo)((function(){return{orientation:r.orientation,next:r.next,previous:r.previous,ref:e,role:n,parent:i,children:u,addChild:d,removeChild:p}}),[r.orientation,r.next,r.previous,e,n,i,u,d,p]);return(0,t.useCallback)((function(e){return(0,t.createElement)(Du.Provider,{value:h},e)}),[h])}(s,a,e);!function(e,n,r){var o=n.items,i=n.move;void 0===r&&(r=500);var a=(0,t.useState)(""),u=a[0],s=a[1];(0,t.useEffect)((function(){if(u){var e=setTimeout((function(){return s("")}),r),t=o.find((function(e){return Boolean(e.ref.current&&e.ref.current.textContent&&e.ref.current.textContent.toLowerCase().startsWith(u))}));return t&&i(t.id),function(){return clearTimeout(e)}}}),[u,o,i,r]),(0,t.useEffect)((function(){var t=e.current;if(t){var n=function(e){var n;if(!(e.key.length>1)&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var r=e.target,o=null===(n=r.getAttribute)||void 0===n?void 0:n.call(r,"role"),i=r===t,a=o&&-1!==o.indexOf("menuitem")&&du(r,"[role=menu],[role=menubar]")===t;(i||a)&&/^[a-z0-9_-]$/i.test(e.key)&&(e.stopPropagation(),e.preventDefault(),s((function(t){return""+t+e.key})))}};return t.addEventListener("keydown",n),function(){return t.removeEventListener("keydown",n)}}}),[e,s])}(s,e);var c=(0,t.useCallback)((function(e){return e=l(e),o?o(e):e}),[l,o]);return ja({ref:Za(s,r),role:a,"aria-orientation":e.orientation,wrapElement:c},u)}});Qa({as:"div",useHook:Mp,useCreateElement:function(e,t,n){return Va(e,t,n)}});var Ap,Np=Qa({as:"div",useHook:Xa({name:"Menu",compose:[Mp,Op],keys:lp,useOptions:function(e){var n=(0,t.useContext)(Du);return ja(ja({unstable_autoFocusOnHide:!("menubar"===(null===n||void 0===n?void 0:n.role)),modal:!1},e),{},{unstable_autoFocusOnShow:!1,hideOnEsc:!1})},useProps:function(e,n){for(var r=n.onKeyDown,o=Ta(n,["onKeyDown"]),i=uu(r),a=(0,t.useContext)(Du),u=!!a,s=a;s&&"menubar"!==s.role;)s=s.parent;var l,c=s||{},f=c.next,d=c.previous,p="horizontal"===c.orientation,h=(l=e.placement,(0,t.useMemo)((function(){var e;return null===l||void 0===l||null===(e=l.split("-"))||void 0===e?void 0:e[0]}),[l]));return ja({role:"menu",onKeyDown:(0,t.useCallback)((function(t){var n,r;if(null===(n=i.current)||void 0===n||n.call(i,t),!t.defaultPrevented)if("Escape"===t.key)u||t.stopPropagation(),null===(r=e.hide)||void 0===r||r.call(e);else if(u&&!ps(t)){var o={ArrowRight:p&&"left"!==h?f:"left"===h&&e.hide,ArrowLeft:p&&"right"!==h?d:"right"===h&&e.hide}[t.key];o&&(t.preventDefault(),u&&t.stopPropagation(),o())}}),[u,p,f,d,h,e.hide])},o)}}),useCreateElement:function(e,t,n){return Va(e,t,n)}}),Ip=Ae("div")({position:"relative",zIndex:$n.zIndex.above3,"& + &":{marginLeft:$n.space[2]}}),Rp=Ae("div")({display:"flex",flexDirection:"column",padding:$n.space[2],maxHeight:300,overflowY:"auto"}),Fp=Ae(_p)({width:"100%"}),Lp=Ae(Np)({minWidth:250,boxShadow:"2px 2px 6px rgba(0,0,0,0.1)",marginTop:$n.space[2],borderRadius:$n.borderRadius.small,background:$n.colors.gray5}),Vp=Ae("div")({padding:"".concat($n.space[1.5],"px ").concat($n.space[2],"px"),alignItems:"center",display:"flex",minHeight:$n.space[7],background:$n.colors.gray5,borderRadius:$n.borderRadius.large}),Bp=Ae("span")({color:$n.colors.gray100,marginRight:$n.space[1]}),Up=Ae("span")({fontWeight:600,marginRight:$n.space[1],textAlign:"left",width:"100%"}),Wp=Ae("div")({position:"relative",top:2}),zp=Ae("div")({textAlign:"left",padding:$n.space[1.5],lineHeight:1.5,"&:hover":{color:$n.colors.blue}});function qp(e){var n=e.title,r=e.options,o=e.onChange,i=e.renderLabel,a=e.initialSelectedIndex,u=void 0===a?0:a,s=Jd({unstable_fixed:!0}),l=br((0,t.useState)(r[u]),2),c=l[0],f=l[1],d=!!r.length,p=d&&r.length>1;return(0,Qn.jsx)(Ip,{children:d?(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsx)(Fp,Et(Et({},s),{},{children:(0,Qn.jsxs)(Vp,{children:[n&&(0,Qn.jsx)(qi,{children:(0,Qn.jsxs)(Bp,{children:[n,":"]})}),(0,Qn.jsx)(Up,{children:"function"===typeof i?i(c.label):(0,Qn.jsx)(qi,{children:null===c||void 0===c?void 0:c.label})}),p&&(0,Qn.jsx)(Wp,{children:(0,Qn.jsx)(Do,{name:"caret-down",color:$n.colors.gray60})})]})})),(0,Qn.jsx)(Lp,Et(Et({},s),{},{"aria-label":"S\xfdna",children:(0,Qn.jsx)(Rp,{children:r.map((function(e){return(0,t.createElement)(gp,Et(Et({},s),{},{key:e.label,onClick:function(){return function(e){f(e),s.hide(),o(e)}(e)}}),(0,Qn.jsx)(zp,{children:(0,Qn.jsx)(qi,{fontSize:16,children:e.label})}))}))})}))]}):(0,Qn.jsx)(qi,{children:"Engin rekstrareining"})})}var Hp,Yp=ur(Ap||(Ap=Xn(["\n  query GetEntitiesInMunicipality($where: MunicipalityWhereUniqueInput!) {\n    municipality(where: $where) {\n      id\n      name\n      entities {\n        id\n        updatedAt\n        name\n        carbonFootprintByYear {\n          id\n          year\n          completed\n          isVerified\n        }\n      }\n    }\n  }\n"]))),$p=Ae("div")({display:"flex",alignItems:"center",justifyContent:"center",height:"100vh"}),Kp=n(8446),Qp=n.n(Kp),Gp={role:"USER",managesMunicipalities:[],municipality:null,setMunicipality:function(e){}},Xp=(0,t.createContext)(Gp),Jp=function(){return(0,t.useContext)(Xp)},Zp=Qp()(Hp||(Hp=Xn(["\n  query Me {\n    me {\n      role\n      managesMunicipalities(orderBy: { name: asc }) {\n        id\n        name\n      }\n    }\n  }\n"]))),eh=function(){window.location.href="https://umsjon.loftslagsstefna.is/auth"},th=function(e){var n=e.children,r=new URLSearchParams(window.location.search).get("token");r?localStorage.setItem("token",r):r=localStorage.getItem("token"),(0,t.useEffect)((function(){r||eh()}),[r]);var o=Co(Zp,{fetchPolicy:"network-only",onError:function(e){e.message.includes("Unauthorized")&&eh()}}),i=o.loading,a=o.data,u=br((0,t.useState)(Gp),2),s=u[0],l=u[1],c=br((0,t.useState)(void 0),2),f=c[0],d=c[1];return(0,t.useEffect)((function(){l(null===a||void 0===a?void 0:a.me),d(null===a||void 0===a?void 0:a.me.managesMunicipalities[0])}),[a]),i||!r||f?(0,Qn.jsx)(Xp.Provider,{value:Et(Et({},s),{},{municipality:f,setMunicipality:d}),children:i?(0,Qn.jsx)("h1",{children:"Loading..."}):n}):(0,Qn.jsx)($p,{children:"\xde\xfa hefur ekki a\xf0gang a\xf0 neinu sveitarf\xe9lagi, vinsamlegast haf\xf0u samband vi\xf0 Umhverfisstofnun."})},nh=Fs().mark(rh);function rh(e,t){return Fs().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e;case 2:if(!(e<=t)){n.next=4;break}return n.abrupt("return");case 4:return n.delegateYield(rh(e-1,t),"t0",5);case 5:case"end":return n.stop()}}),nh)}var oh,ih={wrap:Ae("div")({display:"flex",alignItems:"center"}),status:Ae("div")((function(e){return{background:"ok"===e.status?$n.colors.green100:$n.colors.yellow100,width:8,height:8,borderRadius:"50%",marginLeft:$n.space[1.5]}}))},ah={Establishment:function(e){var n=e.onChoose,r=e.onClose,o=Jc((function(e){return e.actions})).setActiveCategory,i=Jc((function(e){return e.categories})),a=Jp().municipality,u=(new Date).getFullYear(),s=ha(rh(u,2010)),l=Co(Yp,{variables:{where:{id:a.id}}}).data,c=br((0,t.useState)(null),2),f=c[0],d=c[1],p=br((0,t.useState)(u),2),h=p[0],v=p[1];if((0,t.useEffect)((function(){l&&null===f&&d(l.municipality.entities[0])}),[l,f]),!l)return null;var y=function(){var e=Vs(Fs().mark((function e(){var t;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return t=f.carbonFootprintByYear.find((function(e){return e.year===h})),e.next=5,n({year:h,entityId:null===f||void 0===f?void 0:f.id,carbonFootprintId:null===t||void 0===t?void 0:t.id});case 5:Jc.setState({activeEstablishment:f.name,selectedYear:h}),o(i[0].key);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Qn.jsxs)(ta,{$display:"flex",$flexDirection:"column",$height:"full",children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Skr\xe1 g\xf6gn fyrir rekstrareiningu"}),(0,Qn.jsx)(Yi,{paddingY:2,color:"black80",fontWeight:400,children:"Veldu rekstrareiningu og t\xedmabil."})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:"repeat(6, 1fr)",$paddingY:2,children:[(0,Qn.jsx)($l,{$gridColumn:"span 3",children:(0,Qn.jsx)(qp,{title:"Rekstrareining",options:l.municipality.entities.map((function(e){return{label:e.name,value:e.id}})),onChange:function(e){return function(e){var t=l.municipality.entities.find((function(t){return t.id===e}));t&&d(t)}(Number(e.value))}})}),(0,Qn.jsx)($l,{$gridColumn:"span 3",children:(0,Qn.jsx)(qp,{title:"T\xedmabil",options:s.map((function(e){return{label:"".concat(e),value:e}})),onChange:function(e){return v(Number(e.value))},renderLabel:function(e){return(0,Qn.jsxs)(ih.wrap,{children:[(0,Qn.jsx)(qi,{children:e})," ",(0,Qn.jsx)(ih.status,{status:(t=f,t&&t.carbonFootprintByYear.some((function(e){return e.year===h&&e.completed}))?"ok":"in-progress")})]});var t}})})]}),(0,Qn.jsxs)(Yl,{$paddingY:4,$mt:"auto",children:[(0,Qn.jsx)($l,{$gridColumn:"3 / span 1",children:(0,Qn.jsx)(Sa,{variant:"secondary",onClick:r,fillWidth:!0,children:"Loka glugga"})}),(0,Qn.jsx)($l,{$gridColumn:"4 / span 1",children:(0,Qn.jsx)(Sa,{variant:"primary",onClick:y,fillWidth:!0,children:"\xc1fram"})})]})]})}},uh=ur(oh||(oh=Xn(["\n  mutation FindOrCreateCarbonFootprint(\n    $create: CarbonFootprintCreateInput!\n    $update: CarbonFootprintUpdateInput!\n    $where: CarbonFootprintWhereUniqueInput!\n  ) {\n    upsertOneCarbonFootprint(create: $create, update: $update, where: $where) {\n      id\n      year\n      completed\n      isVerified\n      entity {\n        id\n        name\n      }\n      drivingData {\n        ownedVehicles {\n          gasoline\n          diesel\n          metan\n          electricity\n          comment\n        }\n        rentalVehicles {\n          gasoline\n          diesel\n          metan\n          electricity\n          comment\n        }\n        taxi {\n          gasoline\n          diesel\n          metan\n          electricity\n          comment\n        }\n        machineryAndEquipment {\n          gasoline\n          diesel\n          metan\n          electricity\n          kerosene\n          comment\n        }\n      }\n      energy {\n        electricity\n        hotWater\n        comment\n      }\n      waste {\n        id\n        landfill\n        composting\n        incineration\n        plastic\n        paper\n        glass\n        metals\n        bulky\n\n        comment\n      }\n      flights {\n        id\n        icao {\n          id\n          total\n          comment\n        }\n        domesticFlights {\n          id\n          AEYtoRVKtoAEY\n          EGStoRVKtoEGS\n          HFNtoRVKtoHFN\n          IFJtoRVKtoIFJ\n          VEYtoRVKtoVEY\n          other\n          comment\n        }\n        internationalFlights {\n          id\n          oceania\n          continentalEurope\n          scandinavia\n          northAmerica\n          southAmerica\n          africa\n          asia\n          comment\n        }\n      }\n      carbonOffset {\n        quantity\n        comment\n      }\n      entityMetadata {\n        id\n        propertyArea\n        positions\n        clients\n        comment\n      }\n    }\n  }\n"]))),sh=n(4786),lh=n.n(sh),ch=n(6339),fh=n.n(ch),dh=n(1694),ph=n.n(dh),hh=n(8092),vh=n.n(hh);function yh(e){return yh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yh(e)}var mh=["viewBox","children"],gh=["className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],bh=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],wh=function(e,n,r){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var o=e;if((0,t.isValidElement)(e)&&(o=e.props),!vh()(o))return null;var i={};return Object.keys(o).forEach((function(e){(gh.includes(e)||r&&mh.includes(e)||n&&bh.includes(e))&&(i[e]=o[e])})),i},xh=function(e,n){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var r=e;if((0,t.isValidElement)(e)&&(r=e.props),!vh()(r))return null;var o={};return Object.keys(r).forEach((function(e){bh.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},kh=function(e,t,n){if(!vh()(e)||"object"!==yh(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];bh.includes(o)&&"function"===typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r};function _h(){return _h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(this,arguments)}function Oh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sh(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,u=e.style,s=Oh(e,["children","width","height","viewBox","className","style"]),l=i||{width:r,height:o,x:0,y:0},c=ph()("recharts-surface",a);return t.createElement("svg",_h({},wh(s,!0,!0),{className:c,width:r,height:o,style:u,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height),version:"1.1"}),n)}var Eh=n(2085),Ch=n.n(Eh),jh=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),Th=2*jh;var Ph={draw:function(e,t){var n=Math.sqrt(t/jh);e.moveTo(n,0),e.arc(0,0,n,0,Th)}},Dh={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Mh=Math.sqrt(1/3),Ah=2*Mh,Nh={draw:function(e,t){var n=Math.sqrt(t/Ah),r=n*Mh;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ih={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Rh=Math.sin(jh/10)/Math.sin(7*jh/10),Fh=Math.sin(Th/10)*Rh,Lh=-Math.cos(Th/10)*Rh,Vh={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Fh*n,o=Lh*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Th*i/5,u=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-u*n),e.lineTo(u*r-s*o,s*r+u*o)}e.closePath()}},Bh=Math.sqrt(3),Uh={draw:function(e,t){var n=-Math.sqrt(t/(3*Bh));e.moveTo(0,2*n),e.lineTo(-Bh*n,-n),e.lineTo(Bh*n,-n),e.closePath()}},Wh=-.5,zh=Math.sqrt(3)/2,qh=1/Math.sqrt(12),Hh=3*(qh/2+1),Yh={draw:function(e,t){var n=Math.sqrt(t/Hh),r=n/2,o=n*qh,i=r,a=n*qh+n,u=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,s),e.lineTo(Wh*r-zh*o,zh*r+Wh*o),e.lineTo(Wh*i-zh*a,zh*i+Wh*a),e.lineTo(Wh*u-zh*s,zh*u+Wh*s),e.lineTo(Wh*r+zh*o,Wh*o-zh*r),e.lineTo(Wh*i+zh*a,Wh*a-zh*i),e.lineTo(Wh*u+zh*s,Wh*s-zh*u),e.closePath()}},$h=Math.PI,Kh=2*$h,Qh=1e-6,Gh=Kh-Qh;function Xh(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Jh(){return new Xh}Xh.prototype=Jh.prototype={constructor:Xh,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,s=r-t,l=i-e,c=a-t,f=l*l+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>Qh)if(Math.abs(c*u-s*l)>Qh&&o){var d=n-i,p=r-a,h=u*u+s*s,v=d*d+p*p,y=Math.sqrt(h),m=Math.sqrt(f),g=o*Math.tan(($h-Math.acos((h+f-v)/(2*y*m)))/2),b=g/m,w=g/y;Math.abs(b-1)>Qh&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>l*p)+","+(this._x1=e+w*u)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),s=e+a,l=t+u,c=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+l:(Math.abs(this._x1-s)>Qh||Math.abs(this._y1-l)>Qh)&&(this._+="L"+s+","+l),n&&(f<0&&(f=f%Kh+Kh),f>Gh?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=l):f>Qh&&(this._+="A"+n+","+n+",0,"+ +(f>=$h)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Zh=Jh;function ev(e){return function(){return e}}function tv(e){return tv="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tv(e)}function nv(){return nv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}function rv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ov(e,t){return ov=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ov(e,t)}function iv(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=av(e);if(t){var o=av(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tv(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},av(e)}var uv={symbolCircle:Ph,symbolCross:Dh,symbolDiamond:Nh,symbolSquare:Ih,symbolStar:Vh,symbolTriangle:Uh,symbolWye:Yh},sv=Math.PI/180,lv=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ov(e,t)}(a,e);var n,r,o,i=iv(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,o=function(e){var t="symbol".concat(Ch()(e));return uv[t]||Ph}(r),i=function(e,t){var n=null;function r(){var r;if(n||(n=r=Zh()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:ev(e||Ph),t="function"===typeof t?t:ev(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:ev(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:ev(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(o).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*sv;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,n,r));return i()}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.cx,o=e.cy,i=e.size;return r===+r&&o===+o&&i===+i?t.createElement("path",nv({},wh(this.props,!0),{className:ph()("recharts-symbols",n),transform:"translate(".concat(r,", ").concat(o,")"),d:this.getPath()})):null}}],r&&rv(n.prototype,r),o&&rv(n,o),a}(t.PureComponent);function cv(e){return cv="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cv(e)}function fv(){return fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(this,arguments)}function dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vv(e,t){return vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vv(e,t)}function yv(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=mv(e);if(t){var o=mv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===cv(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mv(e){return mv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mv(e)}lv.defaultProps={type:"circle",size:64,sizeType:"area"},lv.registerSymbol=function(e,t){uv["symbol".concat(Ch()(e))]=t};var gv=32,bv=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vv(e,t)}(a,e);var n,r,o,i=yv(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=gv/6,i=gv/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:gv,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n            H").concat(gv,"M").concat(2*i,",").concat(r,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(gv,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dv(Object(n),!0).forEach((function(t){pv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete u.legendIcon,t.cloneElement(e.legendIcon,u)}return t.createElement(lv,{fill:a,cx:r,cy:r,size:gv,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,u=n.inactiveColor,s={x:0,y:0,width:gv,height:gv},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i,f=n.formatter||a,d=ph()((pv(i={"recharts-legend-item":!0},"legend-item-".concat(r),!0),pv(i,"inactive",n.inactive),i));if("none"===n.type)return null;var p=n.inactive?u:n.color;return t.createElement("li",fv({className:d,style:l,key:"legend-item-".concat(r)},kh(e.props,n,r)),t.createElement(Sh,{width:o,height:o,viewBox:s,style:c},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},f?f(n.value,n,r):n.value))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],r&&hv(n.prototype,r),o&&hv(n,o),a}(t.PureComponent);bv.displayName="Legend",bv.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var wv=n(6181),xv=n.n(wv),kv=n(3629),_v=n.n(kv),Ov=n(2066),Sv=n.n(Ov),Ev=n(298),Cv=n.n(Ev),jv=n(6769),Tv=n.n(jv),Pv=function(e){return 0===e?0:e>0?1:-1},Dv=function(e){return Tv()(e)&&e.indexOf("%")===e.length-1},Mv=function(e){return Cv()(e)&&!Sv()(e)},Av=function(e){return Mv(e)||Tv()(e)},Nv=0,Iv=function(e){var t=++Nv;return"".concat(e||"").concat(t)},Rv=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Mv(e)&&!Tv()(e))return r;if(Dv(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Sv()(n)&&(n=r),o&&n>t&&(n=t),n},Fv=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Lv=function(e,t){return Mv(e)&&Mv(t)?function(n){return e+n*(t-e)}:function(){return t}};function Vv(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):xv()(e,t))===n})):null}function Bv(e){return Bv="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bv(e)}function Uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uv(Object(n),!0).forEach((function(t){zv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hv(e,t){return Hv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hv(e,t)}function Yv(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=$v(e);if(t){var o=$v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Bv(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(e)}function Kv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qv(e){return e.value}function Gv(e,t){return!0===e?fh()(t,Qv):lh()(e)?fh()(t,e):t}var Xv=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hv(e,t)}(a,e);var n,r,o,i=Yv(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).wrapperNode=void 0,e.state={boxWidth:-1,boxHeight:-1},e}return n=a,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,u=r.margin,s=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),Wv(Wv({},t),n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,u=n.payloadUniqBy,s=n.payload,l=Wv(Wv({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(lh()(e))return t.createElement(e,n);n.ref;var r=Kv(n,["ref"]);return t.createElement(bv,r)}(r,Wv(Wv({},this.props),{},{payload:Gv(u,s)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Mv(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&qv(n.prototype,r),o&&qv(n,o),a}(t.PureComponent);Xv.displayName="Legend",Xv.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var Jv=n(8573),Zv=n.n(Jv),ey=n(5095),ty=n.n(ey),ny=n(3881),ry=n.n(ny),oy=function(e,t){return oy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},oy(e,t)};function iy(e,t){function n(){this.constructor=e}oy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ay(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var uy=function(e,t,n,r){switch(t){case"debounce":return ty()(e,n,r);case"throttle":return ry()(e,n,r);default:return e}},sy=function(e){return"function"===typeof e},ly=function(){return"undefined"===typeof window},cy=function(e){return e instanceof Element||e instanceof HTMLDocument},fy=function(e,t,n,r){return function(o){var i=o.width,a=o.height;t((function(t){return t.width===i&&t.height===a||t.width===i&&!r||t.height===a&&!n?t:(e&&sy(e)&&e(i,a),{width:i,height:a})}))}},dy=function(e){function n(n){var o=e.call(this,n)||this;o.cancelHandler=function(){o.resizeHandler&&o.resizeHandler.cancel&&(o.resizeHandler.cancel(),o.resizeHandler=null)},o.attachObserver=function(){var e=o.props,t=e.targetRef,n=e.observerOptions;if(!ly()){t&&t.current&&(o.targetRef.current=t.current);var r=o.getElement();r&&(o.observableElement&&o.observableElement===r||(o.observableElement=r,o.resizeObserver.observe(r,n)))}},o.getElement=function(){var e=o.props,t=e.querySelector,n=e.targetDomEl;if(ly())return null;if(t)return document.querySelector(t);if(n&&cy(n))return n;if(o.targetRef&&cy(o.targetRef.current))return o.targetRef.current;var i=(0,r.findDOMNode)(o);if(!i)return null;switch(o.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},o.createResizeHandler=function(e){var t=o.props,n=t.handleWidth,r=void 0===n||n,i=t.handleHeight,a=void 0===i||i,u=t.onResize;if(r||a){var s=fy(u,o.setState.bind(o),r,a);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,r=t.height;!o.skipOnMount&&!ly()&&s({width:n,height:r}),o.skipOnMount=!1}))}},o.getRenderType=function(){var e=o.props,n=e.render,r=e.children;return sy(n)?"renderProp":sy(r)?"childFunction":(0,t.isValidElement)(r)?"child":Array.isArray(r)?"childArray":"parent"};var i=n.skipOnMount,a=n.refreshMode,u=n.refreshRate,s=void 0===u?1e3:u,l=n.refreshOptions;return o.state={width:void 0,height:void 0},o.skipOnMount=i,o.targetRef=(0,t.createRef)(),o.observableElement=null,ly()||(o.resizeHandler=uy(o.createResizeHandler,a,s,l),o.resizeObserver=new window.ResizeObserver(o.resizeHandler)),o}return iy(n,e),n.prototype.componentDidMount=function(){this.attachObserver()},n.prototype.componentDidUpdate=function(){this.attachObserver()},n.prototype.componentWillUnmount=function(){ly()||(this.resizeObserver.disconnect(),this.cancelHandler())},n.prototype.render=function(){var e,n=this.props,r=n.render,o=n.children,i=n.nodeType,a=void 0===i?"div":i,u=this.state,s={width:u.width,height:u.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(s);case"childFunction":return(e=o)(s);case"child":if((e=o).type&&"string"===typeof e.type){var l=ay(s,["targetRef"]);return(0,t.cloneElement)(e,l)}return(0,t.cloneElement)(e,s);case"childArray":return(e=o).map((function(e){return!!e&&(0,t.cloneElement)(e,s)}));default:return t.createElement(a,null)}},n}(t.PureComponent);ly()?t.useEffect:t.useLayoutEffect;var py=dy,hy=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]};function vy(e){return vy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vy(e)}function yy(){return yy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yy.apply(this,arguments)}function my(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gy(e,t){return gy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gy(e,t)}function by(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=wy(e);if(t){var o=wy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vy(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wy(e)}var xy=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gy(e,t)}(a,e);var n,r,o,i=by(a);function a(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e)).handleResize=void 0,n.mounted=void 0,n.containerRef=void 0,n.updateDimensionsImmediate=function(){if(n.mounted){var e=n.getContainerSize();if(e){var t=n.state,r=t.containerWidth,o=t.containerHeight,i=e.containerWidth,a=e.containerHeight;i===r&&a===o||n.setState({containerWidth:i,containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=e.debounce>0?Zv()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n.containerRef=t.createRef(),n}return n=a,r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.containerRef.current?{containerWidth:this.containerRef.current.clientWidth,containerHeight:this.containerRef.current.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,n=e.containerWidth,r=e.containerHeight;if(n<0||r<0)return null;var o=this.props,i=o.aspect,a=o.width,u=o.height,s=o.minWidth,l=o.minHeight,c=o.maxHeight,f=o.children;hy(Dv(a)||Dv(u),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",a,u),hy(!i||i>0,"The aspect(%s) must be greater than zero.",i);var d=Dv(a)?n:a,p=Dv(u)?r:u;return i&&i>0&&(d?p=d/i:p&&(d=p*i),c&&p>c&&(p=c)),hy(d>0||p>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",d,p,a,u,s,l,i),t.cloneElement(f,{width:d,height:p})}},{key:"render",value:function(){var e=this.props,n=e.minWidth,r=e.minHeight,o=e.width,i=e.height,a=e.maxHeight,u=e.id,s=e.className,l={width:o,height:i,minWidth:n,minHeight:r,maxHeight:a};return t.createElement(py,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize,targetRef:this.containerRef},t.createElement("div",yy({},null!=u?{id:"".concat(u)}:{},{className:ph()("recharts-responsive-container",s),style:l,ref:this.containerRef}),this.renderChart()))}}],r&&my(n.prototype,r),o&&my(n,o),a}(t.Component);xy.defaultProps={width:"100%",height:"100%",debounce:0};var ky=n(470),_y=n.n(ky),Oy=n(1211),Sy=n.n(Oy),Ey=n(3038),Cy=n.n(Ey),jy=n(4286),Ty=n.n(jy),Py=n(6222),Dy=n.n(Py),My=n(5633),Ay=n.n(My),Ny=n(5127),Iy=n.n(Ny);function Ry(){return Ry=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}function Fy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ly(e){var n=e.children,r=e.className,o=Fy(e,["children","className"]),i=ph()("recharts-layer",r);return t.createElement("g",Ry({className:i},wh(o,!0)),n)}var Vy=n(8111),By=n.n(Vy),Uy=n(5475),Wy=n.n(Uy);function zy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;Wy()((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Wy()(r)}))}function qy(e){return qy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qy(e)}function Hy(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Yy(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=Hy(r),i=o[0],a=o.slice(1);return"number"===typeof i?void zy(n.bind(null,a),i):(n(i),void zy(n.bind(null,a)))}"object"===qy(r)&&e(r),"function"===typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var $y=n(7753),Ky=n.n($y);function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gy(e,t,n[t])}))}return e}function Gy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xy=["Webkit","Moz","O","ms"],Jy=["-webkit-","-moz-","-o-","-ms-"],Zy=["transform","transformOrigin","transition"],em=function(e){return e},tm=function(e,t){return Object.keys(t).reduce((function(n,r){return Qy({},n,Gy({},r,e(r,t[r])))}),{})},nm=function(e){return Object.keys(e).reduce((function(e,t){return Qy({},e,function(e,t){if(-1===Zy.indexOf(e))return Gy({},e,t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),o=t;return Xy.reduce((function(e,i,a){return n&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(Jy[a],"$1"))),Qy({},e,Gy({},i+r,o))}),{})}(t,e[t]))}),e)},rm=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function om(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function im(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var am=1e-4,um=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},sm=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},lm=function(e,t){return function(n){var r=um(e,t);return sm(r,n)}},cm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var u=t[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var s=u[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=om(s,4);r=l[0],o=l[1],i=l[2],a=l[3]}}[r,i,o,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var c,f,d=lm(r,i),p=lm(o,a),h=(c=r,f=i,function(e){var t=im(um(c,f).map((function(e,t){return e*t})).slice(1)).concat([0]);return sm(t,e)}),v=function(e){return e>1?1:e<0?0:e},y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=d(n)-t,i=h(n);if(Math.abs(o-t)<am||i<am)return p(n);n=v(n-o/i)}return p(n)};return y.isStepper=!1,y},fm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return cm(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,u=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<am&&Math.abs(i)<am?[t,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===r.split("(")[0])return cm(r)}return"function"===typeof r?r:null},dm=n(86),pm=n.n(dm);function hm(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ym(e,t,n[t])}))}return e}function ym(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var gm=function(e,t,n){return e+(t-e)*n},bm=function(e){return e.from!==e.to},wm=function e(t,n,r){var o=tm((function(e,n){if(bm(n)){var r=mm(t(n.from,n.to,n.velocity),2);return vm({},n,{from:r[0],velocity:r[1]})}return n}),n);return r<1?tm((function(e,t){return bm(t)?vm({},t,{velocity:gm(t.velocity,o[e].velocity,r),from:gm(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},xm=function(e,t,n,r,o){var i,a,u,s,l=(i=e,a=t,Ky()(Object.keys(i),Object.keys(a))),c=l.reduce((function(n,r){return vm({},n,ym({},r,[e[r],t[r]]))}),{}),f=l.reduce((function(n,r){return vm({},n,ym({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){u||(u=r);var i=(r-u)/n.dt;f=wm(n,f,i),o(vm({},e,t,tm((function(e,t){return t.from}),f))),u=r,pm()(f,bm).length&&(d=Wy()(p))}:function(i){s||(s=i);var a=(i-s)/r,u=tm((function(e,t){return gm.apply(void 0,hm(t).concat([n(a)]))}),c);if(o(vm({},e,t,u)),a<1)d=Wy()(p);else{var l=tm((function(e,t){return gm.apply(void 0,hm(t).concat([n(1)]))}),c);o(vm({},e,t,l))}},function(){return Wy()(p),function(){(0,Uy.cancel)(d)}}};function km(e){return km="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},km(e)}function _m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Om(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Em(e,t,n[t])}))}return e}function Em(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jm(e,t){return!t||"object"!==km(t)&&"function"!==typeof t?Dm(e):t}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tm(e)}function Pm(e,t){return Pm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pm(e,t)}function Dm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Mm=function(e){function n(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=(r=jm(this,Tm(n).call(this,e,t))).props,i=o.isActive,a=o.attributeName,u=o.from,s=o.to,l=o.steps,c=o.children;if(r.handleStyleChange=r.handleStyleChange.bind(Dm(Dm(r))),r.changeStyle=r.changeStyle.bind(Dm(Dm(r))),!i)return r.state={style:{}},"function"===typeof c&&(r.state={style:s}),jm(r);if(l&&l.length)r.state={style:l[0].style};else if(u){if("function"===typeof c)return r.state={style:u},jm(r);r.state={style:a?Em({},a,u):u}}else r.state={style:{}};return r}var r,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pm(e,t)}(n,e),r=n,o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate;if(r)if(n){if(!(By()(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=a||i?this.props.from:e.to;if(this.state&&this.state.style){var s={style:o?Em({},o,u):u};(o&&this.state.style[o]!==u||!o&&this.state.style!==u)&&this.setState(s)}this.runAnimation(Sm({},this.props,{from:u,begin:0}))}}else{var l={style:o?Em({},o,this.props.to):this.props.to};this.state&&this.state.style&&(o&&this.state.style[o]!==this.props.to||!o&&this.state.style!==this.props.to)&&this.setState(l)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,u=e.onAnimationEnd,s=e.onAnimationStart,l=xm(n,r,fm(i),o,this.changeStyle);this.manager.start([s,a,function(){t.stopJSAnimation=l()},o,u])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,u=i.duration,s=void 0===u?0:u;return this.manager.start([o].concat(Om(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,u=void 0===a?"ease":a,s=r.style,l=r.properties,c=r.onAnimationEnd,f=o>0?n[o-1]:r,d=l||Object.keys(s);if("function"===typeof u||"spring"===u)return Om(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:s,duration:i,easing:u}),i]);var p=rm(d,i,u),h=Sm({},f.style,s,{transition:p});return Om(e).concat([h,i,c]).filter(em)}),[a,Math.max(s,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Yy());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,u=e.onAnimationEnd,s=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof l&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var f=r?Em({},r,o):o,d=rm(Object.keys(f),n,i);c.start([a,t,Sm({},f,{transition:d}),n,u])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,n=e.children,r=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,_m(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=t.Children.count(n),a=nm(this.state.style);if("function"===typeof n)return n(a);if(!r||0===i)return n;var u=function(e){var n=e.props,r=n.style,i=void 0===r?{}:r,u=n.className;return(0,t.cloneElement)(e,Sm({},o,{style:Sm({},i,a),className:u}))};return 1===i?u(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return u(e)})))}}],o&&Cm(r.prototype,o),i&&Cm(r,i),n}(t.PureComponent);Mm.displayName="Animate",Mm.propTypes={from:Pt().oneOfType([Pt().object,Pt().string]),to:Pt().oneOfType([Pt().object,Pt().string]),attributeName:Pt().string,duration:Pt().number,begin:Pt().number,easing:Pt().oneOfType([Pt().string,Pt().func]),steps:Pt().arrayOf(Pt().shape({duration:Pt().number.isRequired,style:Pt().object.isRequired,easing:Pt().oneOfType([Pt().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Pt().func]),properties:Pt().arrayOf("string"),onAnimationEnd:Pt().func})),children:Pt().oneOfType([Pt().node,Pt().func]),isActive:Pt().bool,canBegin:Pt().bool,onAnimationEnd:Pt().func,shouldReAnimate:Pt().bool,onAnimationStart:Pt().func,onAnimationReStart:Pt().func},Mm.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var Am=Mm,Nm=n(8267);function Im(e){return Im="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Im(e)}function Rm(){return Rm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rm.apply(this,arguments)}function Fm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bm(e,t){return!t||"object"!==Im(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Um(e){return Um=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Um(e)}function Wm(e,t){return Wm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wm(e,t)}var zm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Cv()(t.duration)&&t.duration>0?t.duration:0)}),0):Cv()(n)?n:0},qm=function(e){function n(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=Bm(this,(e=Um(n)).call.apply(e,[this].concat(o)))).state={isActive:!1},t.handleEnter=function(e,n){var r=t.props,o=r.appearOptions,i=r.enterOptions;t.handleStyleActive(n?o:i)},t.handleExit=function(){t.handleStyleActive(t.props.leaveOptions)},t}var r,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wm(e,t)}(n,e),r=n,o=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Lm(e,t,n[t])}))}return e}({},e,{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return zm(t)+zm(n)+zm(r)}},{key:"render",value:function(){var e=this,n=this.props,r=n.children,o=(n.appearOptions,n.enterOptions,n.leaveOptions,Fm(n,["children","appearOptions","enterOptions","leaveOptions"]));return t.createElement(Nm.Transition,Rm({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return t.createElement(Am,e.state,t.Children.only(r))}))}}],o&&Vm(r.prototype,o),i&&Vm(r,i),n}(t.Component);qm.propTypes={appearOptions:Pt().object,enterOptions:Pt().object,leaveOptions:Pt().object,children:Pt().element};var Hm=qm;function Ym(e){var n=e.component,r=e.children,o=e.appear,i=e.enter,a=e.leave;return t.createElement(Nm.TransitionGroup,{component:n},t.Children.map(r,(function(e,n){return t.createElement(Hm,{appearOptions:o,enterOptions:i,leaveOptions:a,key:"child-".concat(n)},e)})))}Ym.propTypes={appear:Pt().object,enter:Pt().object,leave:Pt().object,children:Pt().oneOfType([Pt().array,Pt().element]),component:Pt().any},Ym.defaultProps={component:"span"};var $m=Am;function Km(e){return Km="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Km(e)}function Qm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Gm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xm(Object(n),!0).forEach((function(t){Zm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tg(e,t){return tg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tg(e,t)}function ng(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=rg(e);if(t){var o=rg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Km(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rg(e)}function og(e){return _v()(e)&&Av(e[0])&&Av(e[1])?e.join(" ~ "):e}var ig=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tg(e,t)}(a,e);var n,r,o,i=ng(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderContent",value:function(){var e=this.props,n=e.payload,r=e.separator,o=e.formatter,i=e.itemStyle,a=e.itemSorter;if(n&&n.length){var u=(a?Ty()(n,a):n).map((function(e,a){if("none"===e.type)return null;var u=Jm({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),s=e.formatter||o||og,l=e.name,c=e.value;if(s){var f=s(c,l,e,a,n);if(Array.isArray(f)){var d=Qm(f,2);c=d[0],l=d[1]}else c=f}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(a),style:u},Av(l)?t.createElement("span",{className:"recharts-tooltip-item-name"},l):null,Av(l)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},c),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},u)}return null}},{key:"render",value:function(){var e=this.props,n=e.wrapperClassName,r=e.contentStyle,o=e.labelClassName,i=e.labelStyle,a=e.label,u=e.labelFormatter,s=e.payload,l=Jm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),c=Jm({margin:0},i),f=!Ay()(a),d=f?a:"",p=ph()("recharts-default-tooltip",n),h=ph()("recharts-tooltip-label",o);return f&&u&&(d=u(a,s)),t.createElement("div",{className:p,style:l},t.createElement("p",{className:h,style:c},t.isValidElement(d)?d:"".concat(d)),this.renderContent())}}],r&&eg(n.prototype,r),o&&eg(n,o),a}(t.PureComponent);ig.displayName="DefaultTooltipContent",ig.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var ag={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return ag[e]},set:function(e,t){if("string"===typeof e)ag[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){ag[t]=e[t]}))}}};function ug(e){return ug="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ug(e)}function sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sg(Object(n),!0).forEach((function(t){cg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dg(e,t){return dg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dg(e,t)}function pg(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=hg(e);if(t){var o=hg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ug(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function hg(e){return hg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hg(e)}var vg="recharts-tooltip-wrapper";function yg(e){return e.dataKey}var mg=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dg(e,t)}(a,e);var n,r,o,i=pg(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={boxWidth:-1,boxHeight:-1},e.wrapperNode=void 0,e.getTranslate=function(t){var n=t.key,r=t.tooltipDimension,o=t.viewBoxDimension,i=e.props,a=i.allowEscapeViewBox,u=i.coordinate,s=i.offset,l=i.position,c=i.viewBox;if(l&&Mv(l[n]))return l[n];var f=u[n]-r-s,d=u[n]+s;return a[n]?d:u[n]+r+s>c[n]+o?Math.max(f,c[n]):Math.max(d,c[n])},e}return n=a,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,n,r,o=this,i=this.props,a=i.payload,u=i.isAnimationActive,s=i.animationDuration,l=i.animationEasing,c=i.filterNull,f=function(e,t){return!0===e?fh()(t,yg):lh()(e)?fh()(t,e):t}(i.payloadUniqBy,c&&a&&a.length?a.filter((function(e){return!Ay()(e.value)})):a),d=f&&f.length,p=this.props,h=p.content,v=p.viewBox,y=p.coordinate,m=p.position,g=p.active,b=lg({pointerEvents:"none",visibility:g&&d?"visible":"hidden",position:"absolute",top:0,left:0},p.wrapperStyle);if(m&&Mv(m.x)&&Mv(m.y))n=m.x,r=m.y;else{var w=this.state,x=w.boxWidth,k=w.boxHeight;x>0&&k>0&&y?(n=this.getTranslate({key:"x",tooltipDimension:x,viewBoxDimension:v.width}),r=this.getTranslate({key:"y",tooltipDimension:k,viewBoxDimension:v.height})):b.visibility="hidden"}b=lg(lg({},nm({transform:this.props.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})),b),u&&g&&(b=lg(lg({},nm({transition:"transform ".concat(s,"ms ").concat(l)})),b));var _=ph()(vg,(cg(e={},"".concat(vg,"-right"),Mv(n)&&y&&Mv(y.x)&&n>=y.x),cg(e,"".concat(vg,"-left"),Mv(n)&&y&&Mv(y.x)&&n<y.x),cg(e,"".concat(vg,"-bottom"),Mv(r)&&y&&Mv(y.y)&&r>=y.y),cg(e,"".concat(vg,"-top"),Mv(r)&&y&&Mv(y.y)&&r<y.y),e));return t.createElement("div",{className:_,style:b,ref:function(e){o.wrapperNode=e}},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?t.createElement(e,n):t.createElement(ig,n)}(h,lg(lg({},this.props),{},{payload:f})))}}],r&&fg(n.prototype,r),o&&fg(n,o),a}(t.PureComponent);function gg(){}function bg(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function wg(e){this._context=e}function xg(e){this._context=e}function kg(e){this._context=e}function _g(e){this._context=e}function Og(e){this._context=e}function Sg(e){return new Og(e)}function Eg(e){return e<0?-1:1}function Cg(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(Eg(i)+Eg(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function jg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Tg(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,o+u*t,i-u,a-u*n,i,a)}function Pg(e){this._context=e}function Dg(e){this._context=new Mg(e)}function Mg(e){this._context=e}function Ag(e){this._context=e}function Ng(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Ig(e,t){this._context=e,this._t=t}mg.displayName="Tooltip",mg.defaultProps={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!ag.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},wg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bg(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bg(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xg.prototype={areaStart:gg,areaEnd:gg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:bg(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},kg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:bg(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_g.prototype={areaStart:gg,areaEnd:gg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Og.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Pg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Tg(this,this._t0,jg(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Tg(this,jg(this,n=Cg(this,e,t)),n);break;default:Tg(this,this._t0,n=Cg(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Dg.prototype=Object.create(Pg.prototype)).point=function(e,t){Pg.prototype.point.call(this,t,e)},Mg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Ag.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Ng(e),o=Ng(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ig.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};Array.prototype.slice;function Rg(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Fg(e){return e[0]}function Lg(e){return e[1]}function Vg(e,t){var n=ev(!0),r=null,o=Sg,i=null;function a(a){var u,s,l,c=(a=Rg(a)).length,f=!1;for(null==r&&(i=o(l=Zh())),u=0;u<=c;++u)!(u<c&&n(s=a[u],u,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(s,u,a),+t(s,u,a));if(l)return i=null,l+""||null}return e="function"===typeof e?e:void 0===e?Fg:ev(e),t="function"===typeof t?t:void 0===t?Lg:ev(t),a.x=function(t){return arguments.length?(e="function"===typeof t?t:ev(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:ev(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:ev(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function Bg(e,t,n){var r=null,o=ev(!0),i=null,a=Sg,u=null;function s(s){var l,c,f,d,p,h=(s=Rg(s)).length,v=!1,y=new Array(h),m=new Array(h);for(null==i&&(u=a(p=Zh())),l=0;l<=h;++l){if(!(l<h&&o(d=s[l],l,s))===v)if(v=!v)c=l,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=l-1;f>=c;--f)u.point(y[f],m[f]);u.lineEnd(),u.areaEnd()}v&&(y[l]=+e(d,l,s),m[l]=+t(d,l,s),u.point(r?+r(d,l,s):y[l],n?+n(d,l,s):m[l]))}if(p)return u=null,p+""||null}function l(){return Vg().defined(o).curve(a).context(i)}return e="function"===typeof e?e:void 0===e?Fg:ev(+e),t="function"===typeof t?t:ev(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?Lg:ev(+n),s.x=function(t){return arguments.length?(e="function"===typeof t?t:ev(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"===typeof t?t:ev(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:ev(+e),s):r},s.y=function(e){return arguments.length?(t="function"===typeof e?e:ev(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"===typeof e?e:ev(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:ev(+e),s):n},s.lineX0=s.lineY0=function(){return l().x(e).y(t)},s.lineY1=function(){return l().x(e).y(n)},s.lineX1=function(){return l().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"===typeof e?e:ev(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(u=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=u=null:u=a(i=e),s):i},s}function Ug(e){return Ug="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ug(e)}function Wg(){return Wg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach((function(t){Hg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $g(e,t){return $g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$g(e,t)}function Kg(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=Qg(e);if(t){var o=Qg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ug(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qg(e)}var Gg={curveBasisClosed:function(e){return new xg(e)},curveBasisOpen:function(e){return new kg(e)},curveBasis:function(e){return new wg(e)},curveLinearClosed:function(e){return new _g(e)},curveLinear:Sg,curveMonotoneX:function(e){return new Pg(e)},curveMonotoneY:function(e){return new Dg(e)},curveNatural:function(e){return new Ag(e)},curveStep:function(e){return new Ig(e,.5)},curveStepAfter:function(e){return new Ig(e,1)},curveStepBefore:function(e){return new Ig(e,0)}},Xg=function(e){return e.x===+e.x&&e.y===+e.y},Jg=function(e){return e.x},Zg=function(e){return e.y},eb=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$g(e,t)}(a,e);var n,r,o,i=Kg(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,u=function(e,t){if(lh()(e))return e;var n="curve".concat(Ch()(e));return"curveMonotone"===n&&t?Gg["".concat(n).concat("vertical"===t?"Y":"X")]:Gg[n]||Sg}(n,i),s=a?r.filter((function(e){return Xg(e)})):r;if(_v()(o)){var l=a?o.filter((function(e){return Xg(e)})):o,c=s.map((function(e,t){return qg(qg({},e),{},{base:l[t]})}));return(e="vertical"===i?Bg().y(Zg).x1(Jg).x0((function(e){return e.base.x})):Bg().x(Jg).y1(Zg).y0((function(e){return e.base.y}))).defined(Xg).curve(u),e(c)}return(e="vertical"===i&&Mv(o)?Bg().y(Zg).x1(Jg).x0(o):Mv(o)?Bg().x(Jg).y1(Zg).y0(o):Vg().x(Jg).y(Zg)).defined(Xg).curve(u),e(s)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",Wg({},wh(this.props),xh(this.props),{className:ph()("recharts-curve",n),d:a,ref:i}))}}],r&&Yg(n.prototype,r),o&&Yg(n,o),a}(t.PureComponent);function tb(e){return tb="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(e)}function nb(){return nb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nb.apply(this,arguments)}function rb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ob(e,t){return ob=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ob(e,t)}function ib(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=ab(e);if(t){var o=ab(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tb(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ab(e){return ab=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ab(e)}eb.defaultProps={type:"linear",points:[],connectNulls:!1};var ub=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ob(e,t)}(a,e);var n,r,o,i=ib(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,u=e.top,s=e.left,l=e.className;return Mv(n)&&Mv(r)&&Mv(o)&&Mv(i)&&Mv(u)&&Mv(s)?t.createElement("path",nb({},wh(this.props,!0),{className:ph()("recharts-cross",l),d:a.getPath(n,r,o,i,u,s)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&rb(n.prototype,r),o&&rb(n,o),a}(t.PureComponent);ub.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var sb=n(9627),lb=n.n(sb),cb=n(6452),fb=n.n(cb),db=n(5008),pb=n.n(db),hb=n(7583);function vb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function yb(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}function mb(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gr(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}var gb=Symbol("implicit");function bb(){var e=new Map,t=[],n=[],r=gb;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==gb)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;var r,i=mb(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a+"";e.has(u)||e.set(u,t.push(a))}}catch(s){i.e(s)}finally{i.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return bb(t,n).unknown(r)},vb.apply(o,arguments),o}function wb(){var e,t,n=bb().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-s+2*l),u&&(e=Math.floor(e)),d+=(p-d-e*(n-s))*c,t=e*(1-s),u&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){var t;return arguments.length?(t=br(e,2),i=t[0],a=t[1],i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){var t;return t=br(e,2),i=t[0],a=t[1],i=+i,a=+a,u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),f()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},n.copy=function(){return wb(r(),[i,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},vb.apply(f(),arguments)}function xb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xb(t())},e}function kb(){return xb(wb.apply(null,arguments).paddingInner(1))}var _b=Math.sqrt(50),Ob=Math.sqrt(10),Sb=Math.sqrt(2);function Eb(e,t,n){var r,o,i,a,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Cb(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++u<o;)i[u]=(e+u)*a;else for(a=-a,e=Math.ceil(e*a),t=Math.floor(t*a),i=new Array(o=Math.ceil(t-e+1));++u<o;)i[u]=(e+u)/a;return r&&i.reverse(),i}function Cb(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=_b?10:i>=Ob?5:i>=Sb?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_b?10:i>=Ob?5:i>=Sb?2:1)}function jb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=_b?o*=10:i>=Ob?o*=5:i>=Sb&&(o*=2),t<e?-o:o}function Tb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pb(e){var t=e,n=e;function r(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Tb(e(t),n)}}(e)),{left:r,center:function(e,n,o,i){null==o&&(o=0),null==i&&(i=e.length);var a=r(e,n,o,i-1);return a>o&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}var Db=Fs().mark(Ab);function Mb(e){return null===e?NaN:+e}function Ab(e,t){var n,r,o,i,a,u,s;return Fs().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(void 0!==t){l.next=21;break}n=mb(e),l.prev=2,n.s();case 4:if((r=n.n()).done){l.next=11;break}if(!(null!=(o=r.value)&&(o=+o)>=o)){l.next=9;break}return l.next=9,o;case 9:l.next=4;break;case 11:l.next=16;break;case 13:l.prev=13,l.t0=l.catch(2),n.e(l.t0);case 16:return l.prev=16,n.f(),l.finish(16);case 19:l.next=40;break;case 21:i=-1,a=mb(e),l.prev=23,a.s();case 25:if((u=a.n()).done){l.next=32;break}if(s=u.value,!(null!=(s=t(s,++i,e))&&(s=+s)>=s)){l.next=30;break}return l.next=30,s;case 30:l.next=25;break;case 32:l.next=37;break;case 34:l.prev=34,l.t1=l.catch(23),a.e(l.t1);case 37:return l.prev=37,a.f(),l.finish(37);case 40:case"end":return l.stop()}}),Db,null,[[2,13,16,19],[23,34,37,40]])}var Nb=Pb(Tb),Ib=Nb.right,Rb=(Nb.left,Pb(Mb).center,Ib);function Fb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vb(){}var Bb=.7,Ub=1/Bb,Wb="\\s*([+-]?\\d+)\\s*",zb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",qb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hb=/^#([0-9a-f]{3,8})$/,Yb=new RegExp("^rgb\\("+[Wb,Wb,Wb]+"\\)$"),$b=new RegExp("^rgb\\("+[qb,qb,qb]+"\\)$"),Kb=new RegExp("^rgba\\("+[Wb,Wb,Wb,zb]+"\\)$"),Qb=new RegExp("^rgba\\("+[qb,qb,qb,zb]+"\\)$"),Gb=new RegExp("^hsl\\("+[zb,qb,qb]+"\\)$"),Xb=new RegExp("^hsla\\("+[zb,qb,qb,zb]+"\\)$"),Jb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Zb(){return this.rgb().formatHex()}function ew(){return this.rgb().formatRgb()}function tw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nw(t):3===n?new iw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rw(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Yb.exec(e))?new iw(t[1],t[2],t[3],1):(t=$b.exec(e))?new iw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Kb.exec(e))?rw(t[1],t[2],t[3],t[4]):(t=Qb.exec(e))?rw(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Gb.exec(e))?lw(t[1],t[2]/100,t[3]/100,1):(t=Xb.exec(e))?lw(t[1],t[2]/100,t[3]/100,t[4]):Jb.hasOwnProperty(e)?nw(Jb[e]):"transparent"===e?new iw(NaN,NaN,NaN,0):null}function nw(e){return new iw(e>>16&255,e>>8&255,255&e,1)}function rw(e,t,n,r){return r<=0&&(e=t=n=NaN),new iw(e,t,n,r)}function ow(e,t,n,r){return 1===arguments.length?function(e){return e instanceof Vb||(e=tw(e)),e?new iw((e=e.rgb()).r,e.g,e.b,e.opacity):new iw}(e):new iw(e,t,n,null==r?1:r)}function iw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function aw(){return"#"+sw(this.r)+sw(this.g)+sw(this.b)}function uw(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function sw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function lw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fw(e,t,n,r)}function cw(e){if(e instanceof fw)return new fw(e.h,e.s,e.l,e.opacity);if(e instanceof Vb||(e=tw(e)),!e)return new fw;if(e instanceof fw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=t===i?(n-r)/u+6*(n<r):n===i?(r-t)/u+2:(t-n)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new fw(a,u,s,e.opacity)}function fw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function dw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function pw(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Fb(Vb,tw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Zb,formatHex:Zb,formatHsl:function(){return cw(this).formatHsl()},formatRgb:ew,toString:ew}),Fb(iw,ow,Lb(Vb,{brighter:function(e){return e=null==e?Ub:Math.pow(Ub,e),new iw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Bb:Math.pow(Bb,e),new iw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aw,formatHex:aw,formatRgb:uw,toString:uw})),Fb(fw,(function(e,t,n,r){return 1===arguments.length?cw(e):new fw(e,t,n,null==r?1:r)}),Lb(Vb,{brighter:function(e){return e=null==e?Ub:Math.pow(Ub,e),new fw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Bb:Math.pow(Bb,e),new fw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new iw(dw(e>=240?e-240:e+120,o,r),dw(e,o,r),dw(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var hw=function(e){return function(){return e}};function vw(e,t){return function(n){return e+n*t}}function yw(e){return 1===(e=+e)?mw:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):hw(isNaN(t)?n:t)}}function mw(e,t){var n=t-e;return n?vw(e,n):hw(isNaN(e)?t:e)}var gw=function e(t){var n=yw(t);function r(e,t){var r=n((e=ow(e)).r,(t=ow(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=mw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function bw(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=ow(t[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=e(i),a=e(a),u=e(u),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=u(e),r+""}}}bw((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=r<t-1?e[r+2]:2*i-o;return pw((n-r/t)*t,a,o,i,u)}})),bw((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],u=e[(r+2)%t];return pw((n-r/t)*t,o,i,a,u)}}));function ww(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=jw(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function xw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function kw(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _w(e,t){var n,r={},o={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=jw(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Ow=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sw=new RegExp(Ow.source,"g");function Ew(e,t){var n,r,o,i=Ow.lastIndex=Sw.lastIndex=0,a=-1,u=[],s=[];for(e+="",t+="";(n=Ow.exec(e))&&(r=Sw.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:kw(n,r)})),i=Sw.lastIndex;return i<t.length&&(o=t.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)u[(n=s[r]).i]=n.x(e);return u.join("")})}function Cw(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function jw(e,t){var n,r=typeof t;return null==t||"boolean"===r?hw(t):("number"===r?kw:"string"===r?(n=tw(t))?(t=n,gw):Ew:t instanceof tw?gw:t instanceof Date?xw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Cw:Array.isArray(t)?ww:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?_w:kw)(e,t)}function Tw(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Pw(e){return+e}var Dw=[0,1];function Mw(e){return e}function Aw(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Nw(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Aw(o,r),i=n(a,i)):(r=Aw(r,o),i=n(i,a)),function(e){return i(r(e))}}function Iw(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Aw(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Rb(e,t,1,r)-1;return i[n](o[n](t))}}function Rw(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fw(){var e,t,n,r,o,i,a=Dw,u=Dw,s=jw,l=Mw;function c(){var e=Math.min(a.length,u.length);return l!==Mw&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Iw:Nw,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),u,s)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(u,a.map(e),kw)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Pw),c()):a.slice()},f.range=function(e){return arguments.length?(u=Array.from(e),c()):u.slice()},f.rangeRound=function(e){return u=Array.from(e),s=Tw,c()},f.clamp=function(e){return arguments.length?(l=!!e||Mw,c()):l!==Mw},f.interpolate=function(e){return arguments.length?(s=e,c()):s},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function Lw(){return Fw()(Mw,Mw)}var Vw,Bw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uw(e){if(!(t=Bw.exec(e)))throw new Error("invalid format: "+e);var t;return new Ww({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ww(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function zw(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function qw(e){return(e=zw(Math.abs(e)))?e[1]:NaN}function Hw(e,t){var n=zw(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Uw.prototype=Ww.prototype,Ww.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Yw={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Hw(100*e,t)},r:Hw,s:function(e,t){var n=zw(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Vw=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+zw(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $w(e){return e}var Kw,Qw,Gw,Xw=Array.prototype.map,Jw=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Zw(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?$w:(t=Xw.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,u=t[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(e.substring(o-=u,o+u)),!((s+=u+1)>r));)u=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?$w:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Xw.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Uw(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,v=e.comma,y=e.precision,m=e.trim,g=e.type;"n"===g?(v=!0,g="g"):Yw[g]||(void 0===y&&(y=12),m=!0,g="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===d?i:/[%p]/.test(g)?s:"",x=Yw[g],k=/[defgprs%]/.test(g);function _(e){var o,i,s,d=b,_=w;if("c"===g)_=x(e)+_,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),y),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0===+e&&"+"!==f&&(O=!1),d=(O?"("===f?f:l:"-"===f||"("===f?"":f)+d,_=("s"===g?Jw[8+Vw/3]:"")+_+(O&&"("===f?")":""),k)for(o=-1,i=e.length;++o<i;)if(48>(s=e.charCodeAt(o))||s>57){_=(46===s?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}v&&!p&&(e=r(e,1/0));var S=d.length+e.length+_.length,E=S<h?new Array(h-S+1).join(t):"";switch(v&&p&&(e=r(E+e,E.length?h-_.length:1/0),E=""),n){case"<":e=d+e+_+E;break;case"=":e=d+E+e+_;break;case"^":e=E.slice(0,S=E.length>>1)+d+e+_+E.slice(S);break;default:e=E+d+e+_}return u(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=Uw(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(qw(t)/3))),o=Math.pow(10,-r),i=Jw[8+r/3];return function(e){return n(o*e)+i}}}}function ex(e,t,n,r){var o,i=jb(e,t,n);switch((r=Uw(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qw(t)/3)))-qw(Math.abs(e)))}(i,a))||(r.precision=o),Gw(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qw(t)-qw(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-qw(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Qw(r)}function tx(e){var t=e.domain;return e.ticks=function(e){var n=t();return Eb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ex(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,u=i.length-1,s=i[a],l=i[u],c=10;for(l<s&&(o=s,s=l,l=o,o=a,a=u,u=o);c-- >0;){if((o=Cb(s,l,n))===r)return i[a]=s,i[u]=l,t(i);if(o>0)s=Math.floor(s/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function nx(){var e=Lw();return e.copy=function(){return Rw(e,nx())},vb.apply(e,arguments),tx(e)}function rx(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Pw),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return rx(e).unknown(t)},e=arguments.length?Array.from(e,Pw):[0,1],tx(n)}function ox(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function ix(e){return Math.log(e)}function ax(e){return Math.exp(e)}function ux(e){return-Math.log(-e)}function sx(e){return-Math.exp(-e)}function lx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function cx(e){return function(t){return-e(-t)}}function fx(e){var t,n,r=e(ix,ax),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?lx:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=cx(t),n=cx(n),e(ux,sx)):e(ix,ax),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),u=a[0],s=a[a.length-1];(r=s<u)&&(d=u,u=s,s=d);var l,c,f,d=t(u),p=t(s),h=null==e?10:+e,v=[];if(!(i%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(c=1,l=n(d);c<i;++c)if(!((f=l*c)<u)){if(f>s)break;v.push(f)}}else for(;d<=p;++d)for(c=i-1,l=n(d);c>=1;--c)if(!((f=l*c)<u)){if(f>s)break;v.push(f)}2*v.length<h&&(v=Eb(u,s,h))}else v=Eb(d,p,Math.min(p-d,h)).map(n);return r?v.reverse():v},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=Qw(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(ox(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function dx(){var e=fx(Fw()).domain([1,10]);return e.copy=function(){return Rw(e,dx()).base(e.base())},vb.apply(e,arguments),e}function px(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vx(e){var t=1,n=e(px(t),hx(t));return n.constant=function(n){return arguments.length?e(px(t=+n),hx(t)):t},tx(n)}function yx(){var e=vx(Fw());return e.copy=function(){return Rw(e,yx()).constant(e.constant())},vb.apply(e,arguments)}function mx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function gx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function bx(e){return e<0?-e*e:e*e}function wx(e){var t=e(Mw,Mw),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Mw,Mw):.5===n?e(gx,bx):e(mx(n),mx(1/n)):n},tx(t)}function xx(){var e=wx(Fw());return e.copy=function(){return Rw(e,xx()).exponent(e.exponent())},vb.apply(e,arguments),e}function kx(){return xx.apply(null,arguments).exponent(.5)}function _x(e){return Math.sign(e)*e*e}function Ox(){var e,t=Lw(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(_x(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,Pw)).map(_x)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ox(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},vb.apply(o,arguments),tx(o)}function Sx(e,t){var n;if(void 0===t){var r,o=mb(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n<i||void 0===n&&i>=i)&&(n=i)}}catch(c){o.e(c)}finally{o.f()}}else{var a,u=-1,s=mb(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;null!=(l=t(l,++u,e))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(c){s.e(c)}finally{s.f()}}return n}function Ex(e,t){var n;if(void 0===t){var r,o=mb(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n>i||void 0===n&&i>=i)&&(n=i)}}catch(c){o.e(c)}finally{o.f()}}else{var a,u=-1,s=mb(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;null!=(l=t(l,++u,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(c){s.e(c)}finally{s.f()}}return n}function Cx(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Tb;r>n;){if(r-n>600){var i=r-n+1,a=t-n+1,u=Math.log(i),s=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);Cx(e,t,Math.max(n,Math.floor(t-a*s/i+l)),Math.min(r,Math.floor(t+(i-a)*s/i+l)),o)}var c=e[t],f=n,d=r;for(jx(e,n,t),o(e[r],c)>0&&jx(e,n,r);f<d;){for(jx(e,f,d),++f,--d;o(e[f],c)<0;)++f;for(;o(e[d],c)>0;)--d}0===o(e[n],c)?jx(e,n,d):jx(e,++d,r),d<=t&&(n=d+1),t<=d&&(r=d-1)}return e}function jx(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Tx(e,t,n){if(r=(e=Float64Array.from(Ab(e,n))).length){if((t=+t)<=0||r<2)return Ex(e);if(t>=1)return Sx(e);var r,o=(r-1)*t,i=Math.floor(o),a=Sx(Cx(e,i).subarray(0,i+1));return a+(Ex(e.subarray(i+1))-a)*(o-i)}}function Px(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mb;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function Dx(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=Px(t,e/o);return i}function i(t){return isNaN(t=+t)?e:n[Rb(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];var n,r=mb(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;null==i||isNaN(i=+i)||t.push(i)}}catch(a){r.e(a)}finally{r.f()}return t.sort(Tb),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return Dx().domain(t).range(n).unknown(e)},vb.apply(i,arguments)}function Mx(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return t<=t?i[Rb(o,t,0,r)]:e}function u(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){var r;return arguments.length?(r=br(e,2),t=r[0],n=r[1],t=+t,n=+n,u()):[t,n]},a.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,u()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Mx().domain([t,n]).range(i).unknown(e)},vb.apply(tx(a),arguments)}function Ax(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Rb(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ax().domain(t).range(n).unknown(e)},vb.apply(o,arguments)}Kw=Zw({thousands:",",grouping:[3],currency:["$",""]}),Qw=Kw.format,Gw=Kw.formatPrefix;var Nx=new Date,Ix=new Date;function Rx(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return u;do{u.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return u},o.filter=function(n){return Rx((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Nx.setTime(+t),Ix.setTime(+r),e(Nx),e(Ix),Math.floor(n(Nx,Ix))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var Fx=Rx((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Fx.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Rx((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Lx=Fx,Vx=(Fx.range,Rx((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Bx=Vx,Ux=(Vx.range,1e3),Wx=6e4,zx=36e5,qx=864e5,Hx=6048e5;function Yx(e){return Rx((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wx)/Hx}))}var $x=Yx(0),Kx=Yx(1),Qx=Yx(2),Gx=Yx(3),Xx=Yx(4),Jx=Yx(5),Zx=Yx(6),ek=($x.range,Kx.range,Qx.range,Gx.range,Xx.range,Jx.range,Zx.range,Rx((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wx)/qx}),(function(e){return e.getDate()-1}))),tk=ek,nk=(ek.range,Rx((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ux-e.getMinutes()*Wx)}),(function(e,t){e.setTime(+e+t*zx)}),(function(e,t){return(t-e)/zx}),(function(e){return e.getHours()}))),rk=nk,ok=(nk.range,Rx((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ux)}),(function(e,t){e.setTime(+e+t*Wx)}),(function(e,t){return(t-e)/Wx}),(function(e){return e.getMinutes()}))),ik=ok,ak=(ok.range,Rx((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ux)}),(function(e,t){return(t-e)/Ux}),(function(e){return e.getUTCSeconds()}))),uk=ak,sk=(ak.range,Rx((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));sk.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Rx((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):sk:null};var lk=sk;sk.range;function ck(e){return Rx((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Hx}))}var fk=ck(0),dk=ck(1),pk=ck(2),hk=ck(3),vk=ck(4),yk=ck(5),mk=ck(6),gk=(fk.range,dk.range,pk.range,hk.range,vk.range,yk.range,mk.range,Rx((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/qx}),(function(e){return e.getUTCDate()-1}))),bk=gk,wk=(gk.range,Rx((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));wk.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Rx((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var xk=wk;wk.range;function kk(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function _k(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ok(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Sk,Ek,Ck,jk={"-":"",_:" ",0:"0"},Tk=/^\s*\d+/,Pk=/^%/,Dk=/[\\^$*+?|[\]().{}]/g;function Mk(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ak(e){return e.replace(Dk,"\\$&")}function Nk(e){return new RegExp("^(?:"+e.map(Ak).join("|")+")","i")}function Ik(e){return new Map(e.map((function(e,t){return[e.toLowerCase(),t]})))}function Rk(e,t,n){var r=Tk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fk(e,t,n){var r=Tk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Lk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Vk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Bk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Uk(e,t,n){var r=Tk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zk(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function qk(e,t,n){var r=Tk.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Hk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Yk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $k(e,t,n){var r=Tk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Kk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Gk(e,t,n){var r=Tk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Xk(e,t,n){var r=Tk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Jk(e,t,n){var r=Tk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Zk(e,t,n){var r=Pk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function e_(e,t,n){var r=Tk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function t_(e,t,n){var r=Tk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function n_(e,t){return Mk(e.getDate(),t,2)}function r_(e,t){return Mk(e.getHours(),t,2)}function o_(e,t){return Mk(e.getHours()%12||12,t,2)}function i_(e,t){return Mk(1+tk.count(Lx(e),e),t,3)}function a_(e,t){return Mk(e.getMilliseconds(),t,3)}function u_(e,t){return a_(e,t)+"000"}function s_(e,t){return Mk(e.getMonth()+1,t,2)}function l_(e,t){return Mk(e.getMinutes(),t,2)}function c_(e,t){return Mk(e.getSeconds(),t,2)}function f_(e){var t=e.getDay();return 0===t?7:t}function d_(e,t){return Mk($x.count(Lx(e)-1,e),t,2)}function p_(e){var t=e.getDay();return t>=4||0===t?Xx(e):Xx.ceil(e)}function h_(e,t){return e=p_(e),Mk(Xx.count(Lx(e),e)+(4===Lx(e).getDay()),t,2)}function v_(e){return e.getDay()}function y_(e,t){return Mk(Kx.count(Lx(e)-1,e),t,2)}function m_(e,t){return Mk(e.getFullYear()%100,t,2)}function g_(e,t){return Mk((e=p_(e)).getFullYear()%100,t,2)}function b_(e,t){return Mk(e.getFullYear()%1e4,t,4)}function w_(e,t){var n=e.getDay();return Mk((e=n>=4||0===n?Xx(e):Xx.ceil(e)).getFullYear()%1e4,t,4)}function x_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mk(t/60|0,"0",2)+Mk(t%60,"0",2)}function k_(e,t){return Mk(e.getUTCDate(),t,2)}function __(e,t){return Mk(e.getUTCHours(),t,2)}function O_(e,t){return Mk(e.getUTCHours()%12||12,t,2)}function S_(e,t){return Mk(1+bk.count(xk(e),e),t,3)}function E_(e,t){return Mk(e.getUTCMilliseconds(),t,3)}function C_(e,t){return E_(e,t)+"000"}function j_(e,t){return Mk(e.getUTCMonth()+1,t,2)}function T_(e,t){return Mk(e.getUTCMinutes(),t,2)}function P_(e,t){return Mk(e.getUTCSeconds(),t,2)}function D_(e){var t=e.getUTCDay();return 0===t?7:t}function M_(e,t){return Mk(fk.count(xk(e)-1,e),t,2)}function A_(e){var t=e.getUTCDay();return t>=4||0===t?vk(e):vk.ceil(e)}function N_(e,t){return e=A_(e),Mk(vk.count(xk(e),e)+(4===xk(e).getUTCDay()),t,2)}function I_(e){return e.getUTCDay()}function R_(e,t){return Mk(dk.count(xk(e)-1,e),t,2)}function F_(e,t){return Mk(e.getUTCFullYear()%100,t,2)}function L_(e,t){return Mk((e=A_(e)).getUTCFullYear()%100,t,2)}function V_(e,t){return Mk(e.getUTCFullYear()%1e4,t,4)}function B_(e,t){var n=e.getUTCDay();return Mk((e=n>=4||0===n?vk(e):vk.ceil(e)).getUTCFullYear()%1e4,t,4)}function U_(){return"+0000"}function W_(){return"%"}function z_(e){return+e}function q_(e){return Math.floor(+e/1e3)}!function(e){Sk=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,s=e.shortMonths,l=Nk(o),c=Ik(o),f=Nk(i),d=Ik(i),p=Nk(a),h=Ik(a),v=Nk(u),y=Ik(u),m=Nk(s),g=Ik(s),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:n_,e:n_,f:u_,g:g_,G:w_,H:r_,I:o_,j:i_,L:a_,m:s_,M:l_,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:z_,s:q_,S:c_,u:f_,U:d_,V:h_,w:v_,W:y_,x:null,X:null,y:m_,Y:b_,Z:x_,"%":W_},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:k_,e:k_,f:C_,g:L_,G:B_,H:__,I:O_,j:S_,L:E_,m:j_,M:T_,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:z_,s:q_,S:P_,u:D_,U:M_,V:N_,w:I_,W:R_,x:null,X:null,y:F_,Y:V_,Z:U_,"%":W_},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:Yk,e:Yk,f:Jk,g:Wk,G:Uk,H:Kk,I:Kk,j:$k,L:Xk,m:Hk,M:Qk,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:qk,Q:e_,s:t_,S:Gk,u:Fk,U:Lk,V:Vk,w:Rk,W:Bk,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:Wk,Y:Uk,Z:zk,"%":Zk};function k(e,t){return function(n){var r,o,i,a=[],u=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===e.charCodeAt(u)&&(a.push(e.slice(s,u)),null!=(o=jk[r=e.charAt(++u)])?r=e.charAt(++u):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=u+1);return a.push(e.slice(s,u)),a.join("")}}function _(e,t){return function(n){var r,o,i=Ok(1900,void 0,1);if(O(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=_k(Ok(i.y,0,1))).getUTCDay(),r=o>4||0===o?dk.ceil(r):dk(r),r=bk.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=kk(Ok(i.y,0,1))).getDay(),r=o>4||0===o?Kx.ceil(r):Kx(r),r=tk.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?_k(Ok(i.y,0,1)).getUTCDay():kk(Ok(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,_k(i)):kk(i)}}function O(e,t,n,r){for(var o,i,a=0,u=t.length,s=n.length;a<u;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in jk?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),w.x=k(n,w),w.X=k(r,w),w.c=k(t,w),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),Ek=Sk.format,Sk.parse,Ck=Sk.utcFormat,Sk.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var H_=1e3,Y_=60*H_,$_=60*Y_,K_=24*$_,Q_=7*K_,G_=30*K_,X_=365*K_;function J_(e){return new Date(e)}function Z_(e){return e instanceof Date?+e:+new Date(+e)}function eO(e,t,n,r,o,i,a,u,s){var l=Lw(),c=l.invert,f=l.domain,d=s(".%L"),p=s(":%S"),h=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),m=s("%b %d"),g=s("%B"),b=s("%Y"),w=[[a,1,H_],[a,5,5*H_],[a,15,15*H_],[a,30,30*H_],[i,1,Y_],[i,5,5*Y_],[i,15,15*Y_],[i,30,30*Y_],[o,1,$_],[o,3,3*$_],[o,6,6*$_],[o,12,12*$_],[r,1,K_],[r,2,2*K_],[n,1,Q_],[t,1,G_],[t,3,3*G_],[e,1,X_]];function x(u){return(a(u)<u?d:i(u)<u?p:o(u)<u?h:r(u)<u?v:t(u)<u?n(u)<u?y:m:e(u)<u?g:b)(u)}function k(t,n,r){if(null==t&&(t=10),"number"===typeof t){var o,i=Math.abs(r-n)/t,a=Pb((function(e){return e[2]})).right(w,i);return a===w.length?(o=jb(n/X_,r/X_,t),t=e):a?(o=(a=w[i/w[a-1][2]<w[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(jb(n,r,t),1),t=u),t.every(o)}return t}return l.invert=function(e){return new Date(c(e))},l.domain=function(e){return arguments.length?f(Array.from(e,Z_)):f().map(J_)},l.ticks=function(e){var t,n=f(),r=n[0],o=n[n.length-1],i=o<r;return i&&(t=r,r=o,o=t),t=(t=k(e,r,o))?t.range(r,o+1):[],i?t.reverse():t},l.tickFormat=function(e,t){return null==t?x:s(t)},l.nice=function(e){var t=f();return(e=k(e,t[0],t[t.length-1]))?f(ox(t,e)):l},l.copy=function(){return Rw(l,eO(e,t,n,r,o,i,a,u,s))},l}function tO(){return vb.apply(eO(Lx,Bx,$x,tk,rk,ik,uk,lk,Ek).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var nO=Rx((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),rO=nO,oO=(nO.range,Rx((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*zx)}),(function(e,t){return(t-e)/zx}),(function(e){return e.getUTCHours()}))),iO=oO,aO=(oO.range,Rx((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Wx)}),(function(e,t){return(t-e)/Wx}),(function(e){return e.getUTCMinutes()}))),uO=aO;aO.range;function sO(){return vb.apply(eO(xk,rO,fk,bk,iO,uO,uk,lk,Ck).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lO(){var e,t,n,r,o,i=0,a=1,u=Mw,s=!1;function l(t){return isNaN(t=+t)?o:u(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r,o;return arguments.length?(r=(n=br(t,2))[0],o=n[1],u=e(r,o),l):[u(0),u(1)]}}return l.domain=function(o){var u;return arguments.length?(u=br(o,2),i=u[0],a=u[1],e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(u=e,l):u},l.range=c(jw),l.rangeRound=c(Tw),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function cO(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function fO(){var e=tx(lO()(Mw));return e.copy=function(){return cO(e,fO())},yb.apply(e,arguments)}function dO(){var e=fx(lO()).domain([1,10]);return e.copy=function(){return cO(e,dO()).base(e.base())},yb.apply(e,arguments)}function pO(){var e=vx(lO());return e.copy=function(){return cO(e,pO()).constant(e.constant())},yb.apply(e,arguments)}function hO(){var e=wx(lO());return e.copy=function(){return cO(e,hO()).exponent(e.exponent())},yb.apply(e,arguments)}function vO(){return hO.apply(null,arguments).exponent(.5)}function yO(){var e=[],t=Mw;function n(n){if(!isNaN(n=+n))return t((Rb(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];var r,o=mb(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;null==i||isNaN(i=+i)||e.push(i)}}catch(a){o.e(a)}finally{o.f()}return e.sort(Tb),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((function(n,r){return t(r/(e.length-1))}))},n.quantiles=function(t){return Array.from({length:t+1},(function(n,r){return Tx(e,r/t)}))},n.copy=function(){return yO(t).domain(e)},yb.apply(n,arguments)}function mO(){var e,t,n,r,o,i,a,u=0,s=.5,l=1,c=1,f=Mw,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(c*e<c*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o,i;return arguments.length?(r=(n=br(t,3))[0],o=n[1],i=n[2],f=function(e,t){void 0===t&&(t=e,e=jw);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}(e,[r,o,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){var f;return arguments.length?(f=br(a,3),u=f[0],s=f[1],l=f[2],e=i(u=+u),t=i(s=+s),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p):[u,s,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(jw),p.rangeRound=h(Tw),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(u),t=a(s),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p}}function gO(){var e=tx(mO()(Mw));return e.copy=function(){return cO(e,gO())},yb.apply(e,arguments)}function bO(){var e=fx(mO()).domain([.1,1,10]);return e.copy=function(){return cO(e,bO()).base(e.base())},yb.apply(e,arguments)}function wO(){var e=vx(mO());return e.copy=function(){return cO(e,wO()).constant(e.constant())},yb.apply(e,arguments)}function xO(){var e=wx(mO());return e.copy=function(){return cO(e,xO()).exponent(e.exponent())},yb.apply(e,arguments)}function kO(){return xO.apply(null,arguments).exponent(.5)}function _O(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],u=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function OO(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function SO(e,t){return e[t]}function EO(e){var t=[];return t.key=e,t}var CO=n(5506),jO=n.n(CO),TO=n(8493);function PO(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function DO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var MO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},AO=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},NO=function e(n,r){var o=[],i=[];return i=_v()(r)?r.map((function(e){return AO(e)})):[AO(r)],t.Children.forEach(n,(function(t){(0,TO.isFragment)(t)&&(o=o.concat(e(t.props.children,r)));var n=xv()(t,"type.displayName")||xv()(t,"type.name");-1!==i.indexOf(n)&&o.push(t)})),o},IO=function(e,t){var n=NO(e,t);return n&&n[0]},RO=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Mv(n)||n<=0||!Mv(r)||r<=0)},FO=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],LO=function(e){return e&&e.type&&Tv()(e.type)&&FO.indexOf(e.type)>=0},VO=function e(n,r){if(n===r)return!0;if(t.Children.count(n)!==t.Children.count(r))return!1;var o=t.Children.count(n);if(0===o)return!0;if(1===o)return BO(_v()(n)?n[0]:n,_v()(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],u=r[i];if(_v()(a)||_v()(u)){if(!e(a,u))return!1}else if(!BO(a,u))return!1}return!0},BO=function(e,t){if(Ay()(e)&&Ay()(t))return!0;if(!Ay()(e)&&!Ay()(t)){var n=e.props||{},r=n.children,o=DO(n,["children"]),i=t.props||{},a=i.children,u=DO(i,["children"]);return r&&a?PO(o,u)&&VO(r,a):!r&&!a&&PO(o,u)}return!1},UO=function(e,n){var r=[],o={};return t.Children.forEach(e,(function(e,t){if(LO(e))r.push(e);else if(e){var i=AO(e.type),a=n[i]||{},u=a.handler,s=a.once;if(u&&(!s||!o[i])){var l=u(e,i,t);r.push(l),o[i]=!0}}})),jO()(r).filter((function(e){return!Ay()(e)}))},WO=function(e,n){var r=-1;return t.Children.forEach(n,(function(t,n){t===e&&(r=n)})),r};function zO(e){return function(e){if(Array.isArray(e))return qO(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return qO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HO(Object(n),!0).forEach((function(t){$O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KO(e,t,n){return Ay()(e)||Ay()(t)?n:Av(t)?xv()(e,t,n):lh()(t)?t(e):n}function QO(e,t,n,r){var o=pb()(e,(function(e){return KO(e,t)}));if("number"===n){var i=o.filter((function(e){return Mv(e)||parseFloat(e)}));return i.length?[fb()(i),lb()(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Ay()(e)})):o).map((function(e){return Av(e)||e instanceof Date?e:""}))}var GO=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},XO=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=IO(n,Xv.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:GO(t),value:o||r,payload:t.props}})),YO(YO(YO({},a.props),Xv.getWithHeight(a,o)),{},{payload:t,item:a})):null},JO=function(e,t,n,r){var o=t.props.children,i=NO(o,"ErrorBar").filter((function(e){var t=e.props.direction;return!(!Ay()(t)&&!Ay()(r))||r.indexOf(t)>=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=KO(t,n,0),o=_v()(r)?[fb()(r),lb()(r)]:[r,r],i=a.reduce((function(e,n){var r=KO(t,n,0),i=o[0]-Math.abs(_v()(r)?r[0]:r),a=o[1]+Math.abs(_v()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},ZO=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&JO(e,t,o)||QO(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e}),[])},eS=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},tS=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},nS=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,u=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/2:0;return u="angleAxis"===e.axisType?2*Pv(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+u,value:e,offset:u}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+u,value:e,offset:u}})):r.domain().map((function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}}))},rS=function(e,t,n){var r;return lh()(n)?r=n:lh()(t)&&(r=t),lh()(e)||r?function(t,n,o,i){lh()(e)&&e(t,n,o,i),lh()(r)&&r(t,n,o,i)}:null},oS=1e-4,iS={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var u=Sv()(e[a][n][1])?e[a][n][0]:e[a][n][1];u>=0?(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}_O(e,t)}},none:_O,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,u=0;a<n;++a)u+=e[a][r][1]||0;o[r][1]+=o[r][0]=-u/2}_O(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var u=0,s=0,l=0;u<o;++u){for(var c=e[t[u]],f=c[a][1]||0,d=(f-(c[a-1][1]||0))/2,p=0;p<u;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}s+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,s&&(i-=l/s)}n[a-1][1]+=n[a-1][0]=i,_O(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Sv()(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},aS=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=ev([]),t=OO,n=_O,r=SO;function o(o){var i,a,u,s=Array.from(e.apply(this,arguments),EO),l=s.length,c=-1,f=mb(o);try{for(f.s();!(u=f.n()).done;){var d=u.value;for(i=0,++c;i<l;++i)(s[i][c]=[0,+r(d,s[i].key,c,o)]).data=d}}catch(p){f.e(p)}finally{f.f()}for(i=0,a=Rg(t(s));i<l;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:ev(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:ev(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?OO:"function"===typeof e?e:ev(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?_O:e,o):n},o}().keys(r).value((function(e,t){return+KO(e,t,0)})).order(OO).offset(iS[n]);return o(e)},uS=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,u=n||t.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var s=e.domain();if(!s.length)return null;var l=(0,hb.Zj)(s,o,a);return e.domain(function(e,t){return"number"===t?[fb()(e),lb()(e)]:e}(l,r)),{niceTicks:l}}if(o&&"number"===r){var c=e.domain();return{niceTicks:(0,hb.wZ)(c,o,a)}}return null},sS=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[fb()(t.concat([e[0]]).filter(Mv)),lb()(t.concat([e[1]]).filter(Mv))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},lS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fS=function(e,t,n){if(!_v()(e))return t;var r=[];if(Mv(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(lS.test(e[0])){var o=+lS.exec(e[0])[1];r[0]=t[0]-o}else lh()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Mv(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cS.test(e[1])){var i=+cS.exec(e[1])[1];r[1]=t[1]+i}else lh()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},dS=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Ty()(t,(function(e){return e.coordinate})),i=1/0,a=1,u=o.length;a<u;a++){var s=o[a],l=o[a-1];i=Math.min((s.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return 0},pS=function(e,t,n){return e&&e.length?By()(e,xv()(n,"type.defaultProps.domain"))?t:e:t},hS=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,u=n.tooltipType;return YO(YO({},wh(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:GO(e),value:KO(t,r),type:u,payload:t})};function vS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vS(Object(n),!0).forEach((function(t){mS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return bS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wS=Math.PI/180,xS=function(e){return 180*e/Math.PI},kS=function(e,t,n,r){return{x:e+Math.cos(-wS*r)*n,y:t+Math.sin(-wS*r)*n}},_S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},OS=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var u=(n-o)/a,s=Math.acos(u);return r>i&&(s=2*Math.PI-s),{radius:a,angle:xS(s),angleInRadian:s}},SS=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},ES=function(e,t){var n=e.x,r=e.y,o=OS({x:n,y:r},t),i=o.radius,a=o.angle,u=t.innerRadius,s=t.outerRadius;if(i<u||i>s)return!1;if(0===i)return!0;var l,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=c.startAngle,d=c.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?yS(yS({},t),{},{radius:i,angle:SS(p,t)}):null};function CS(e){return CS="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CS(e)}function jS(){return jS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function TS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PS(e,t){return PS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},PS(e,t)}function DS(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=MS(e);if(t){var o=MS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CS(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function MS(e){return MS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},MS(e)}var AS=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,u=e.cornerRadius,s=e.cornerIsExternal,l=u*(a?1:-1)+r,c=Math.asin(u/l)/wS,f=s?o:o+i*c,d=s?o-i*c:o;return{center:kS(t,n,l,f),circleTangency:kS(t,n,r,f),lineTangency:kS(t,n,l*Math.cos(c*wS),d),theta:c}},NS=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Pv(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),u=i+a,s=kS(t,n,o,i),l=kS(t,n,o,u),c="M ".concat(s.x,",").concat(s.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n    ").concat(l.x,",").concat(l.y,"\n  ");if(r>0){var f=kS(t,n,r,i),d=kS(t,n,r,u);c+="L ".concat(d.x,",").concat(d.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n            ").concat(f.x,",").concat(f.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},IS=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PS(e,t)}(a,e);var n,r,o,i=DS(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,u=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,f=e.className;if(i<o||l===c)return null;var d,p=ph()("recharts-sector",f),h=i-o,v=Rv(a,h,0,!0);return d=v>0&&Math.abs(l-c)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,c=Pv(l-s),f=AS({cx:t,cy:n,radius:o,angle:s,sign:c,cornerRadius:i,cornerIsExternal:u}),d=f.circleTangency,p=f.lineTangency,h=f.theta,v=AS({cx:t,cy:n,radius:o,angle:l,sign:-c,cornerRadius:i,cornerIsExternal:u}),y=v.circleTangency,m=v.lineTangency,g=v.theta,b=u?Math.abs(s-l):Math.abs(s-l)-h-g;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):NS({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n  ");if(r>0){var x=AS({cx:t,cy:n,radius:r,angle:s,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),k=x.circleTangency,_=x.lineTangency,O=x.theta,S=AS({cx:t,cy:n,radius:r,angle:l,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),E=S.circleTangency,C=S.lineTangency,j=S.theta,T=u?Math.abs(s-l):Math.abs(s-l)-O-j;if(T<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(C.x,",").concat(C.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(c>0),",").concat(k.x,",").concat(k.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(v,h/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:l,endAngle:c}):NS({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:l,endAngle:c}),t.createElement("path",jS({},wh(this.props,!0),{className:p,d:d}))}}],r&&TS(n.prototype,r),o&&TS(n,o),a}(t.PureComponent);function RS(e){return RS="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RS(e)}function FS(){return FS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FS.apply(this,arguments)}function LS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function VS(e,t){return VS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},VS(e,t)}function BS(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=US(e);if(t){var o=US(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RS(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function US(e){return US=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},US(e)}IS.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var WS=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&VS(e,t)}(a,e);var n,r,o,i=BS(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=ph()("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",FS({},wh(this.props),xh(this.props),{className:a,cx:n,cy:r,r:o})):null}}])&&LS(n.prototype,r),o&&LS(n,o),a}(t.PureComponent);function zS(e){return zS="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zS(e)}function qS(){return qS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qS.apply(this,arguments)}function HS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YS(e,t){return YS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YS(e,t)}function $S(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=KS(e);if(t){var o=KS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zS(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function KS(e){return KS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},KS(e)}var QS=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),u=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+u*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+s*c[0],",").concat(t)),i+="L ".concat(e+n-s*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n        ").concat(e+n,",").concat(t+u*c[1])),i+="L ".concat(e+n,",").concat(t+r-u*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n        ").concat(e+n-s*c[2],",").concat(t+r)),i+="L ".concat(e+s*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n        ").concat(e,",").concat(t+r-u*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+u*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+s*d,",").concat(t,"\n            L ").concat(e+n-s*d,",").concat(t,"\n            A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+u*d,"\n            L ").concat(e+n,",").concat(t+r-u*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-s*d,",").concat(t+r,"\n            L ").concat(e+s*d,",").concat(t+r,"\n            A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-u*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},GS=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,u=t.height;if(Math.abs(a)>0&&Math.abs(u)>0){var s=Math.min(o,o+a),l=Math.max(o,o+a),c=Math.min(i,i+u),f=Math.max(i,i+u);return n>=s&&n<=l&&r>=c&&r<=f}return!1},XS=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YS(e,t)}(a,e);var n,r,o,i=$S(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,u=n.radius,s=n.className,l=this.state.totalLength,c=this.props,f=c.animationEasing,d=c.animationDuration,p=c.animationBegin,h=c.isAnimationActive,v=c.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=ph()("recharts-rectangle",s);return v?t.createElement($m,{canBegin:l>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:d,animationEasing:f,isActive:v},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement($m,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:h,easing:f},t.createElement("path",qS({},wh(e.props,!0),{className:y,d:QS(i,a,r,o,u),ref:function(t){e.node=t}})))})):t.createElement("path",qS({},wh(this.props,!0),{className:y,d:QS(r,o,i,a,u)}))}}],r&&HS(n.prototype,r),o&&HS(n,o),a}(t.PureComponent);function JS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JS(Object(n),!0).forEach((function(t){eE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tE(e){return function(e){if(Array.isArray(e))return nE(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return nE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nE(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}XS.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var rE={widthCache:{},cacheCount:0},oE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},iE=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],aE="recharts_measurement_span";var uE=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((r=n,r.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(tE(e),["-",t.toLowerCase()]):[].concat(tE(e),[t])}),[]).join("")),":").concat(function(e,t){return iE.indexOf(e)>=0&&t===+t?"".concat(t,"px"):t}(n,e[n]),";");var r}),"")},sE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||ag.isSsr)return{width:0,height:0};var n="".concat(e),r=uE(t),o="".concat(n,"-").concat(r);if(rE.widthCache[o])return rE.widthCache[o];try{var i=document.getElementById(aE);i||((i=document.createElement("span")).setAttribute("id",aE),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ZS(ZS({},oE),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var u=i.getBoundingClientRect(),s={width:u.width,height:u.height};return rE.widthCache[o]=s,++rE.cacheCount>2e3&&(rE.cacheCount=0,rE.widthCache={}),s}catch(TI){return{width:0,height:0}}},lE=n(2692),cE=n.n(lE);function fE(e){return fE="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fE(e)}function dE(){return dE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dE.apply(this,arguments)}function pE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vE(e,t){return vE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vE(e,t)}function yE(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=mE(e);if(t){var o=mE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fE(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mE(e){return mE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mE(e)}function gE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return bE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wE(Object(n),!0).forEach((function(t){kE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _E=/[ \f\n\r\t\v\u2028\u2029]+/,OE=function(e){try{var t=[];return Ay()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(_E)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:sE(t,e.style).width}})),spaceWidth:e.breakAll?0:sE("\xa0",e.style).width}}catch(TI){return null}},SE=function(e){return[{words:Ay()(e)?[]:e.toString().split(_E)}]},EE=function(e,t){if((e.width||e.scaleToFit)&&!ag.isSsr&&t){var n=OE(e);return n?function(e,t,n,r,o){var i=Mv(e.maxLines),a=e.children,u=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,u=e[e.length-1];if(u&&(null==r||o||u.width+a+n<r))u.words.push(i),u.width+=a+n;else{var s={words:[i],width:a};e.push(s)}return e}),[])},s=u(t);if(!i)return s;for(var l,c=function(t){var n=a.slice(0,t),o=OE(xE(xE({},e),{},{children:n+"\u2026"})).wordsWithComputedWidth,i=u(o),s=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[s,i]},f=0,d=a.length-1,p=0;f<=d&&p<=a.length-1;){var h=Math.floor((f+d)/2),v=gE(c(h-1),2),y=v[0],m=v[1],g=gE(c(h),1)[0];if(y||g||(f=h+1),y&&g&&(d=h-1),!y&&g){l=m;break}p++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):SE(e.children)}return SE(e.children)},CE=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vE(e,t)}(a,e);var n,r,o,i=yE(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,a=e.scaleToFit,u=e.angle,s=e.lineHeight,l=e.capHeight,c=e.className,f=e.breakAll,d=pE(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),p=this.state.wordsByLines;if(!Av(d.x)||!Av(d.y))return null;var h,v=d.x+(Mv(n)?n:0),y=d.y+(Mv(r)?r:0);switch(i){case"start":h=cE()("calc(".concat(l,")"));break;case"middle":h=cE()("calc(".concat((p.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:h=cE()("calc(".concat(p.length-1," * -").concat(s,")"))}var m=[];if(a){var g=p[0].width,b=this.props.width;m.push("scale(".concat((Mv(b)?b/g:1)/g,")"))}return u&&m.push("rotate(".concat(u,", ").concat(v,", ").concat(y,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",dE({},wh(d,!0),{x:v,y:y,className:ph()("recharts-text",c),textAnchor:o}),p.map((function(e,n){return t.createElement("tspan",{x:v,dy:0===n?h:s,key:n},e.words.join(f?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:EE(e,n)}}return null}}],r&&hE(n.prototype,r),o&&hE(n,o),a}(t.Component);function jE(e){return function(e){if(Array.isArray(e))return TE(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return TE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TE(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PE(Object(n),!0).forEach((function(t){ME(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ME(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AE(){return AE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AE.apply(this,arguments)}CE.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var NE=function(e){var t=e.value,n=e.formatter,r=Ay()(e.children)?t:e.children;return lh()(n)?n(r):r},IE=function(e,n,r){var o,i,a=e.position,u=e.viewBox,s=e.offset,l=e.className,c=u,f=c.cx,d=c.cy,p=c.innerRadius,h=c.outerRadius,v=c.startAngle,y=c.endAngle,m=c.clockWise,g=(p+h)/2,b=function(e,t){return Pv(t-e)*Math.min(Math.abs(t-e),360)}(v,y),w=b>=0?1:-1;"insideStart"===a?(o=v+w*s,i=m):"insideEnd"===a?(o=y-w*s,i=!m):"end"===a&&(o=y+w*s,i=m),i=b<=0?i:!i;var x=kS(f,d,g,o),k=kS(f,d,g,o+359*(i?1:-1)),_="M".concat(x.x,",").concat(x.y,"\n    A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n    ").concat(k.x,",").concat(k.y),O=Ay()(e.id)?Iv("recharts-radial-line-"):e.id;return t.createElement("text",AE({},r,{dominantBaseline:"central",className:ph()("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:O,d:_})),t.createElement("textPath",{xlinkHref:"#".concat(O)},n))},RE=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,u=o.innerRadius,s=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var c=kS(i,a,s+n,l),f=c.x;return{x:f,y:c.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=kS(i,a,(u+s)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},FE=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,u=i.y,s=i.width,l=i.height,c=l>=0?1:-1,f=c*r,d=c>0?"end":"start",p=c>0?"start":"end",h=s>=0?1:-1,v=h*r,y=h>0?"end":"start",m=h>0?"start":"end";if("top"===o)return DE(DE({},{x:a+s/2,y:u-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(u-n.y,0),width:s}:{});if("bottom"===o)return DE(DE({},{x:a+s/2,y:u+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(u+l),0),width:s}:{});if("left"===o){var g={x:a-v,y:u+l/2,textAnchor:y,verticalAnchor:"middle"};return DE(DE({},g),n?{width:Math.max(g.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+s+v,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return DE(DE({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:s,height:l}:{};return"insideLeft"===o?DE({x:a+v,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?DE({x:a+s-v,y:u+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?DE({x:a+s/2,y:u+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?DE({x:a+s/2,y:u+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?DE({x:a+v,y:u+f,textAnchor:m,verticalAnchor:p},w):"insideTopRight"===o?DE({x:a+s-v,y:u+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?DE({x:a+v,y:u+l-f,textAnchor:m,verticalAnchor:d},w):"insideBottomRight"===o?DE({x:a+s-v,y:u+l-f,textAnchor:y,verticalAnchor:d},w):vh()(o)&&(Mv(o.x)||Dv(o.x))&&(Mv(o.y)||Dv(o.y))?DE({x:a+Rv(o.x,s),y:u+Rv(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):DE({x:a+s/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},LE=function(e){return Mv(e.cx)};function VE(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,u=e.content,s=e.className,l=void 0===s?"":s,c=e.textBreakAll;if(!r||Ay()(i)&&Ay()(a)&&!(0,t.isValidElement)(u)&&!lh()(u))return null;if((0,t.isValidElement)(u))return(0,t.cloneElement)(u,e);if(lh()(u)){if(n=(0,t.createElement)(u,e),(0,t.isValidElement)(n))return n}else n=NE(e);var f=LE(r),d=wh(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return IE(e,n,d);var p=f?RE(e):FE(e);return t.createElement(CE,AE({className:ph()("recharts-label",l)},d,p,{breakAll:c}),n)}VE.displayName="Label",VE.defaultProps={offset:5};var BE=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,u=e.radius,s=e.innerRadius,l=e.outerRadius,c=e.x,f=e.y,d=e.top,p=e.left,h=e.width,v=e.height,y=e.clockWise,m=e.labelViewBox;if(m)return m;if(Mv(h)&&Mv(v)){if(Mv(c)&&Mv(f))return{x:c,y:f,width:h,height:v};if(Mv(d)&&Mv(p))return{x:d,y:p,width:h,height:v}}return Mv(c)&&Mv(f)?{x:c,y:f,width:0,height:0}:Mv(t)&&Mv(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:l||u||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};function UE(e){return UE="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UE(e)}function WE(){return WE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WE.apply(this,arguments)}function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zE(Object(n),!0).forEach((function(t){HE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KE(e,t){return KE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},KE(e,t)}function QE(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=GE(e);if(t){var o=GE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===UE(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GE(e){return GE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},GE(e)}VE.parseViewBox=BE,VE.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=BE(e),a=NO(o,VE.displayName).map((function(e,r){return(0,t.cloneElement)(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var u=function(e,n){return e?!0===e?t.createElement(VE,{key:"label-implicit",viewBox:n}):Av(e)?t.createElement(VE,{key:"label-implicit",viewBox:n,value:e}):(0,t.isValidElement)(e)?e.type===VE?(0,t.cloneElement)(e,{key:"label-implicit",viewBox:n}):t.createElement(VE,{key:"label-implicit",content:e,viewBox:n}):lh()(e)?t.createElement(VE,{key:"label-implicit",content:e,viewBox:n}):vh()(e)?t.createElement(VE,AE({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[u].concat(jE(a))};var XE=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KE(e,t)}(a,e);var n,r,o,i=QE(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,n=YE(e,["viewBox"]),r=this.props,o=r.viewBox,i=YE(r,["viewBox"]);return!PO(t,o)||!PO(n,i)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,u=this.props,s=u.x,l=u.y,c=u.width,f=u.height,d=u.orientation,p=u.tickSize,h=u.mirror,v=u.tickMargin,y=h?-1:1,m=e.tickSize||p,g=Mv(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-y*m)-y*v,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*c)-y*m)-y*v,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*c)+y*m)+y*v,a=g;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+y*m)+y*v,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,u=e.mirror,s=e.axisLine,l=qE(qE(qE({},wh(this.props)),wh(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!u||"bottom"===a&&u);l=qE(qE({},l),{},{x1:n,y1:r+c*i,x2:n+o,y2:r+c*i})}else{var f=+("left"===a&&!u||"right"===a&&u);l=qE(qE({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",WE({},l,{className:ph()("recharts-cartesian-axis-line",xv()(s,"className"))}))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,u=r.tick,s=r.tickFormatter,l=r.unit,c=a.getTicks(qE(qE({},this.props),{},{ticks:e})),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),p=wh(this.props),h=wh(u),v=qE(qE({},p),{},{fill:"none"},wh(o)),y=c.map((function(e,r){var y=n.getTickLineCoord(e),m=y.line,g=y.tick,b=qE(qE(qE(qE({textAnchor:f,verticalAnchor:d},p),{},{stroke:"none",fill:i},h),g),{},{index:r,payload:e,visibleTicksCount:c.length,tickFormatter:s});return t.createElement(Ly,WE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r)},kh(n.props,e,r)),o&&t.createElement("line",WE({},v,m,{className:ph()("recharts-cartesian-axis-tick-line",xv()(o,"className"))})),u&&a.renderTickItem(u,b,"".concat(lh()(s)?s(e.value,r):e.value).concat(l||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this.props,n=e.axisLine,r=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,s=u.ticks,l=YE(u,["ticks"]),c=s;return lh()(i)&&(c=s&&s.length>0?i(this.props):i(l)),r<=0||o<=0||!c||!c.length?null:t.createElement(Ly,{className:ph()("recharts-cartesian-axis",a)},n&&this.renderAxisLine(),this.renderTicks(c),VE.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e){var t=e.tick,n=e.ticks,r=e.viewBox,o=e.minTickGap,i=e.orientation,u=e.interval,s=e.tickFormatter,l=e.unit;return n&&n.length&&t?Mv(u)||ag.isSsr?a.getNumberIntervalTicks(n,"number"===typeof u&&Mv(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o,unit:l},!0):"preserveStart"===u?a.getTicksStart({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o,unit:l}):a.getTicksEnd({ticks:n,tickFormatter:s,viewBox:r,orientation:i,minTickGap:o,unit:l}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)===0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,u=e.orientation,s=e.minTickGap,l=e.unit,c=a.x,f=a.y,d=a.width,p=a.height,h="top"===u||"bottom"===u?"width":"height",v=(o||[]).slice(),y=l&&"width"===h?sE(l)[h]:0,m=v.length,g=m>=2?Pv(v[1].coordinate-v[0].coordinate):1;if(1===g?(n="width"===h?c:f,r="width"===h?c+d:f+p):(n="width"===h?c+d:f+p,r="width"===h?c:f),t){var b=o[m-1],w=lh()(i)?i(b.value,m-1):b.value,x=sE(w)[h]+y,k=g*(b.coordinate+g*x/2-r);v[m-1]=b=qE(qE({},b),{},{tickCoord:k>0?b.coordinate-k*g:b.coordinate}),g*(b.tickCoord-g*x/2-n)>=0&&g*(b.tickCoord+g*x/2-r)<=0&&(r=b.tickCoord-g*(x/2+s),v[m-1]=qE(qE({},b),{},{isShow:!0}))}for(var _=t?m-1:m,O=0;O<_;O++){var S=v[O],E=lh()(i)?i(S.value,O):S.value,C=sE(E)[h]+y;if(0===O){var j=g*(S.coordinate-g*C/2-n);v[O]=S=qE(qE({},S),{},{tickCoord:j<0?S.coordinate-j*g:S.coordinate})}else v[O]=S=qE(qE({},S),{},{tickCoord:S.coordinate});g*(S.tickCoord-g*C/2-n)>=0&&g*(S.tickCoord+g*C/2-r)<=0&&(n=S.tickCoord+g*(C/2+s),v[O]=qE(qE({},S),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,u=e.minTickGap,s=e.unit,l=i.x,c=i.y,f=i.width,d=i.height,p="top"===a||"bottom"===a?"width":"height",h=s&&"width"===p?sE(s)[p]:0,v=(r||[]).slice(),y=v.length,m=y>=2?Pv(v[1].coordinate-v[0].coordinate):1;1===m?(t="width"===p?l:c,n="width"===p?l+f:c+d):(t="width"===p?l+f:c+d,n="width"===p?l:c);for(var g=y-1;g>=0;g--){var b=v[g],w=lh()(o)?o(b.value,y-g-1):b.value,x=sE(w)[p]+h;if(g===y-1){var k=m*(b.coordinate+m*x/2-n);v[g]=b=qE(qE({},b),{},{tickCoord:k>0?b.coordinate-k*m:b.coordinate})}else v[g]=b=qE(qE({},b),{},{tickCoord:b.coordinate});m*(b.tickCoord-m*x/2-t)>=0&&m*(b.tickCoord+m*x/2-n)<=0&&(n=b.tickCoord-m*(x/2+u),v[g]=qE(qE({},b),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(CE,WE({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&$E(n.prototype,r),o&&$E(n,o),a}(t.Component);function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JE(Object(n),!0).forEach((function(t){eC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}XE.displayName="CartesianAxis",XE.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var tC=["Webkit","Moz","O","ms"];function nC(e){return nC="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nC(e)}function rC(){return rC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rC.apply(this,arguments)}function oC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(n),!0).forEach((function(t){aC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sC(e,t){return sC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sC(e,t)}function lC(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=fC(e);if(t){var o=fC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nC(t)||"function"===typeof t))return t;return cC(e)}(this,n)}}function cC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fC(e){return fC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fC(e)}var dC=function(e){return e.changedTouches&&!!e.changedTouches.length},pC=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sC(e,t)}(a,e);var n,r,o,i=lC(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=dC(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cC(t),"startX"),endX:t.handleTravellerDragStart.bind(cC(t),"endX")},t.state={},t}return n=a,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,u=o.data.length-1,s=Math.min(t,n),l=Math.max(t,n),c=a.getIndexInRange(r,s),f=a.getIndexInRange(r,l);return{startIndex:c-c%i,endIndex:f===u?u:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=KO(n[e],o,e);return lh()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,u=i.width,s=i.travellerWidth,l=i.startIndex,c=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+u-s-o,a+u-s-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===c||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=dC(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,u=this.state[o],s=this.props,l=s.x,c=s.width,f=s.travellerWidth,d=s.onChange,p=s.gap,h=s.data,v={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,l+c-f-u):y<0&&(y=Math.max(y,l-u)),v[o]=u+y;var m=this.getIndex(v),g=m.startIndex,b=m.endIndex;this.setState((aC(t={},o,u+y),aC(t,"brushMoveStartX",e.pageX),t),(function(){d&&function(){var e=h.length-1;return"startX"===o&&(i>a?g%p===0:b%p===0)||i<a&&b===e||"endX"===o&&(i>a?b%p===0:g%p===0)||i>a&&b===e}()&&d(m)}))}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,u=e.stroke;return t.createElement("rect",{stroke:u,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,u=e.children,s=e.padding,l=t.Children.only(u);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,u=r.height,s=r.traveller,l=Math.max(e,this.props.x),c=iC(iC({},wh(this.props)),{},{x:l,y:o,width:i,height:u});return t.createElement(Ly,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(s,c))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,u=r.travellerWidth,s=Math.min(e,n)+u,l=Math.max(Math.abs(n-e)-u,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,u=e.stroke,s=this.state,l=s.startX,c=s.endX,f={pointerEvents:"none",fill:u};return t.createElement(Ly,{className:"recharts-brush-texts"},t.createElement(CE,rC({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(CE,rC({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,u=e.width,s=e.height,l=e.alwaysShowText,c=this.state,f=c.startX,d=c.endX,p=c.isTextActive,h=c.isSlideMoving,v=c.isTravellerMoving;if(!n||!n.length||!Mv(i)||!Mv(a)||!Mv(u)||!Mv(s)||u<=0||s<=0)return null;var y=ph()("recharts-brush",r),m=1===t.Children.count(o),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=tC.reduce((function(e,r){return ZE(ZE({},e),{},eC({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(Ly,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||v||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,u=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:u,x2:n+o-1,y2:u,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:u+2,x2:n+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,u=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return iC({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var u=t.length,s=kb().domain(Dy()(0,u)).range([o,o+i-a]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:s(n),endX:s(r),scale:s,scaleValues:l}}({data:n,width:r,x:o,travellerWidth:i,startIndex:u,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&uC(n.prototype,r),o&&uC(n,o),a}(t.PureComponent);pC.displayName="Brush",pC.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var hC=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},vC=n(7702),yC=n.n(vC);function mC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gC(e,t,n){return t&&mC(e.prototype,t),n&&mC(e,n),e}function bC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bC(Object(n),!0).forEach((function(t){xC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kC=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},_C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}return gC(e,null,[{key:"create",value:function(t){return new e(t)}}]),gC(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();_C.EPS=1e-4;var OC=function(e){var t=Object.keys(e).reduce((function(t,n){return wC(wC({},t),{},xC({},n,_C.create(e[n])))}),{});return wC(wC({},t),{},{apply:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware;return yC()(e,(function(e,r){return t[r].apply(e,{bandAware:n})}))},isInRange:function(e){return _y()(e,(function(e,n){return t[n].isInRange(e)}))}})};function SC(){return SC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SC.apply(this,arguments)}function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EC(Object(n),!0).forEach((function(t){jC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TC(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,u=Av(n),s=Av(r);if(hy(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!s)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=OC({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return hC(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var c=l.x,f=l.y,d=e.shape,p=e.className,h=CC(CC({clipPath:hC(e,"hidden")?"url(#".concat(a,")"):void 0},wh(e,!0)),{},{cx:c,cy:f});return t.createElement(Ly,{className:ph()("recharts-reference-dot",p)},TC.renderDot(d,h),VE.renderCallByParent(e,{x:c-o,y:f-o,width:2*o,height:2*o}))}TC.displayName="ReferenceDot",TC.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},TC.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(WS,SC({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};var PC=n(4064),DC=n.n(PC);function MC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MC(Object(n),!0).forEach((function(t){NC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return RC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FC(){return FC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(this,arguments)}function LC(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,u=e.shape,s=e.className,l=e.alwaysShow,c=e.clipPathId;hy(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,o){var i=o.viewBox,a=i.x,u=i.y,s=i.width,l=i.height,c=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:c});if(hC(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+s,y:p},{x:a,y:p}];return"left"===d?h.reverse():h}if(t){var v=o.x,y=o.xAxis.orientation,m=e.x.apply(v,{position:c});if(hC(o,"discard")&&!e.x.isInRange(m))return null;var g=[{x:m,y:u+l},{x:m,y:u}];return"top"===y?g.reverse():g}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:c})}));return hC(o,"discard")&&DC()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(OC({x:i.scale,y:a.scale}),Av(n),Av(r),o&&2===o.length,e);if(!f)return null;var d=IC(f,2),p=d[0],h=p.x,v=p.y,y=d[1],m=y.x,g=y.y,b=AC(AC({clipPath:hC(e,"hidden")?"url(#".concat(c,")"):void 0},wh(e,!0)),{},{x1:h,y1:v,x2:m,y2:g});return t.createElement(Ly,{className:ph()("recharts-reference-line",s)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement("line",FC({},n,{className:"recharts-reference-line-line"}))}(u,b),VE.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return kC({x:t,y:n},{x:r,y:o})}({x1:h,y1:v,x2:m,y2:g})))}function VC(){return VC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VC.apply(this,arguments)}function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(n),!0).forEach((function(t){WC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}LC.displayName="ReferenceLine",LC.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function zC(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,u=e.alwaysShow,s=e.clipPathId;hy(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Av(n),c=Av(r),f=Av(o),d=Av(i),p=e.shape;if(!l&&!c&&!f&&!d&&!p)return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,u=o.y1,s=o.y2,l=o.xAxis,c=o.yAxis,f=OC({x:l.scale,y:c.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(u,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(s,{position:"end"}):f.y.rangeMax};return!hC(o,"discard")||f.isInRange(d)&&f.isInRange(p)?kC(d,p):null}(l,c,f,d,e);if(!h&&!p)return null;var v=hC(e,"hidden")?"url(#".concat(s,")"):void 0;return t.createElement(Ly,{className:ph()("recharts-reference-area",a)},zC.renderRect(p,UC(UC({clipPath:v},wh(e,!0)),h)),VE.renderCallByParent(e,h))}zC.displayName="ReferenceArea",zC.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},zC.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(XS,VC({},n,{className:"recharts-reference-area-rect"}))};var qC=function(e,t,n,r,o){var i=NO(e,LC.displayName),a=NO(e,TC.displayName),u=i.concat(a),s=NO(e,zC.displayName),l="".concat(r,"Id"),c=r[0],f=t;if(u.length&&(f=u.reduce((function(e,t){if(t.props[l]===n&&hC(t.props,"extendDomain")&&Mv(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),s.length){var d="".concat(c,"1"),p="".concat(c,"2");f=s.reduce((function(e,t){if(t.props[l]===n&&hC(t.props,"extendDomain")&&Mv(t.props[d])&&Mv(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Mv(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},HC=n(7143),YC=new(n.n(HC)());YC.setMaxListeners&&YC.setMaxListeners(10);var $C="recharts.syncMouseEvents";function KC(e){return KC="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KC(e)}function QC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||oj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GC(){return GC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GC.apply(this,arguments)}function XC(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZC(e,t){return ZC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZC(e,t)}function ej(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=nj(e);if(t){var o=nj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KC(t)||"function"===typeof t))return t;return tj(e)}(this,n)}}function tj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nj(e){return nj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nj(e)}function rj(e){return function(e){if(Array.isArray(e))return ij(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||oj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oj(e,t){if(e){if("string"===typeof e)return ij(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ij(e,t):void 0}}function ij(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aj(Object(n),!0).forEach((function(t){sj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lj={xAxis:["bottom","top"],yAxis:["left","right"]},cj={x:0,y:0},fj=Number.isFinite?Number.isFinite:isFinite,dj="function"===typeof requestAnimationFrame?requestAnimationFrame:"function"===typeof setImmediate?setImmediate:setTimeout,pj="function"===typeof cancelAnimationFrame?cancelAnimationFrame:"function"===typeof clearImmediate?clearImmediate:clearTimeout,hj=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(rj(e),rj(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Mv(o)&&Mv(i)?e.slice(o,i+1):[]},vj=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=hj(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,u=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=Vv(void 0===u?a:u,i.dataKey,r):o=u&&u[n]||a[n];return o?[].concat(rj(e),[hS(t,o)]):e}),[])},yj=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,u=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,s=0;s<a;s++){var l=s>0?r[s-1].coordinate:r[a-1].coordinate,c=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,d=void 0;if(Pv(c-l)!==Pv(f-c)){var p=[];if(Pv(f-c)===Pv(u[1]-u[0])){d=f;var h=c+u[1]-u[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var v=f+u[1]-u[0];p[0]=Math.min(c,(v+c)/2),p[1]=Math.max(c,(v+c)/2)}var y=[Math.min(c,(d+c)/2),Math.max(c,(d+c)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(e>(m+c)/2&&e<=(g+c)/2){i=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}}else i=0;return i}(i,a,s,u);if(l>=0&&s){var c=s[l]&&s[l].value,f=vj(e,t,l,c),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return uj(uj(uj({},r),kS(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,s=r.angle;return uj(uj(uj({},r),kS(r.cx,r.cy,u,s)),{},{angle:s,radius:u})}return cj}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:c,activePayload:f,activeCoordinate:d}}return null},mj=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,c=e.children,f=e.stackOffset,d=eS(l,o),p=n.reduce((function(t,n){var p=n.props,h=p.type,v=p.dataKey,y=p.allowDataOverflow,m=p.allowDuplicatedCategory,g=p.scale,b=p.ticks,w=n.props[i],x=hj(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:u,dataEndIndex:s}),k=x.length;if(!t[w]){var _,O,S;if(v){if(_=QO(x,v,h),"category"===h&&d){var E=function(e){if(!_v()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(_);m&&E?(O=_,_=Dy()(0,k)):m||(_=pS(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(rj(e),[t])}),[]))}else if("category"===h)_=m?_.filter((function(e){return""!==e&&!Ay()(e)})):pS(n.props.domain,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Ay()(t)?e:[].concat(rj(e),[t])}),[]);else if("number"===h){var C=function(e,t,n,r){var o=t.map((function(t){return JO(e,t,n,r)})).filter((function(e){return!Ay()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),v,o);C&&(_=C)}!d||"number"!==h&&"auto"===g||(S=QO(x,v,"category"))}else _=d?Dy()(0,k):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:sS(a[w].stackGroups,u,s):ZO(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,!0);if("number"===h)_=qC(c,_,w,o,b),n.props.domain&&(_=fS(n.props.domain,_,y));else if("category"===h&&n.props.domain){var j=n.props.domain;_.every((function(e){return j.indexOf(e)>=0}))&&(_=j)}return uj(uj({},t),{},sj({},w,uj(uj({},n.props),{},{axisType:o,domain:_,categoricalDomain:S,duplicateDomain:O,originalDomain:n.props.domain,isCategorical:d,layout:l})))}return t}),{});return p},gj=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,l=e.children,c="".concat(r,"Id"),f=NO(l,o),d={};return f&&f.length?d=mj(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:u,dataEndIndex:s}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,c=e.children,f=hj(e.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),d=f.length,p=eS(l,o),h=-1,v=n.reduce((function(e,t){var v,y=t.props[i];return e[y]?e:(h++,p?v=Dy()(0,d):a&&a[y]&&a[y].hasStack?(v=sS(a[y].stackGroups,u,s),v=qC(c,v,y,o)):(v=fS(r.defaultProps.domain,ZO(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),v=qC(c,v,y,o)),uj(uj({},e),{},sj({},y,uj(uj({axisType:o},r.defaultProps),{},{hide:!0,orientation:xv()(lj,"".concat(o,".").concat(h%2),null),domain:v,originalDomain:r.defaultProps.domain,isCategorical:p,layout:l}))))}),{});return v}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:u,dataEndIndex:s})),d},bj=function(e){var t=e.children,n=e.defaultShowTooltip,r=IO(t,pC.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Ay()(n)&&n}},wj=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},xj=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,u=n.width,s=n.height,l=n.children,c=n.margin||{},f=IO(l,pC.displayName),d=IO(l,Xv.displayName),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:uj(uj({},e),{},sj({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:uj(uj({},e),{},sj({},r,xv()(e,"".concat(r))+n.height))}),{top:c.top||0,bottom:c.bottom||0}),v=uj(uj({},h),p),y=v.bottom;return f&&(v.bottom+=f.props.height||pC.defaultProps.height),d&&t&&(v=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,u=i-(a.left||0)-(a.right||0),s=XO({children:o,legendWidth:u}),l=e;if(s){var c=r||{},f=s.align,d=s.verticalAlign,p=s.layout;("vertical"===p||"horizontal"===p&&"center"===d)&&Mv(e[f])&&(l=YO(YO({},e),{},$O({},f,l[f]+(c.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Mv(e[d])&&(l=YO(YO({},e),{},$O({},d,l[d]+(c.height||0))))}return l}(v,0,n,t)),uj(uj({brushBottom:y},v),{},{width:u-v.left-v.right,height:s-v.top-v.bottom})};function kj(e){return kj="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kj(e)}function _j(){return _j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_j.apply(this,arguments)}function Oj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ej(e,t){return Ej=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ej(e,t)}function Cj(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=jj(e);if(t){var o=jj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kj(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function jj(e){return jj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jj(e)}function Tj(e){return function(e){if(Array.isArray(e))return Pj(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Pj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pj(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dj=function(e){return e&&e.x===+e.x&&e.y===+e.y},Mj=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){Dj(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),Dj(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(Tj(e),Tj(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},Aj=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ej(e,t)}(a,e);var n,r,o,i=Cj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=Oj(e,["points","className","baseLinePoints","connectNulls"]);if(!n||!n.length)return null;var u=ph()("recharts-polygon",r);if(o&&o.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=Mj(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Mj(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:u},t.createElement("path",_j({},wh(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?t.createElement("path",_j({},wh(a,!0),{fill:"none",d:Mj(n,i)})):null,s?t.createElement("path",_j({},wh(a,!0),{fill:"none",d:Mj(o,i)})):null)}var c=Mj(n,i);return t.createElement("path",_j({},wh(a,!0),{fill:"Z"===c.slice(-1)?a.fill:"none",className:u,d:c}))}}])&&Sj(n.prototype,r),o&&Sj(n,o),a}(t.PureComponent);function Nj(e){return Nj="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nj(e)}function Ij(){return Ij=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ij.apply(this,arguments)}function Rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rj(Object(n),!0).forEach((function(t){Lj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bj(e,t){return Bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bj(e,t)}function Uj(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=Wj(e);if(t){var o=Wj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Nj(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Wj(e){return Wj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wj(e)}var zj=Math.PI/180,qj=1e-5,Hj=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bj(e,t)}(a,e);var n,r,o,i=Uj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,u=kS(n,r,o,e.coordinate),s=kS(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:u.x,y1:u.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*zj);return n>qj?"outer"===t?"start":"end":n<-qj?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,u=Fj(Fj({},wh(this.props)),{},{fill:"none"},wh(i));if("circle"===a)return t.createElement(WS,Ij({className:"recharts-polar-angle-axis-line"},u,{cx:n,cy:r,r:o}));var s=this.props.ticks.map((function(e){return kS(n,r,o,e.coordinate)}));return t.createElement(Aj,Ij({className:"recharts-polar-angle-axis-line"},u,{points:s}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,u=n.tickFormatter,s=n.stroke,l=wh(this.props),c=wh(o),f=Fj(Fj({},l),{},{fill:"none"},wh(i)),d=r.map((function(n,r){var d=e.getTickLineCoord(n),p=Fj(Fj(Fj({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},c),{},{index:r,payload:n,x:d.x2,y:d.y2});return t.createElement(Ly,Ij({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},kh(e.props,n,r)),i&&t.createElement("line",Ij({className:"recharts-polar-angle-axis-tick-line"},f,d)),o&&a.renderTickItem(o,p,u?u(n.value,r):n.value))}));return t.createElement(Ly,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(Ly,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(CE,Ij({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Vj(n.prototype,r),o&&Vj(n,o),a}(t.PureComponent);Hj.displayName="PolarAngleAxis",Hj.axisType="angleAxis",Hj.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var Yj=n(3638),$j=n.n(Yj),Kj=n(8559),Qj=n.n(Kj);function Gj(e){return Gj="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gj(e)}function Xj(){return Xj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xj.apply(this,arguments)}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(n),!0).forEach((function(t){eT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rT(e,t){return rT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rT(e,t)}function oT(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=iT(e);if(t){var o=iT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gj(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function iT(e){return iT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iT(e)}var aT=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rT(e,t)}(a,e);var n,r,o,i=oT(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return kS(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=Qj()(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:$j()(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,u=tT(e,["cx","cy","angle","ticks","axisLine"]),s=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=kS(n,r,s[0],o),c=kS(n,r,s[1],o),f=Zj(Zj(Zj({},wh(u)),{},{fill:"none"},wh(a)),{},{x1:l.x,y1:l.y,x2:c.x,y2:c.y});return t.createElement("line",Xj({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,u=n.tickFormatter,s=n.stroke,l=tT(n,["ticks","tick","angle","tickFormatter","stroke"]),c=this.getTickTextAnchor(),f=wh(l),d=wh(o),p=r.map((function(n,r){var l=e.getTickValueCoord(n),p=Zj(Zj(Zj(Zj({textAnchor:c,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:s},d),{},{index:r},l),{},{payload:n});return t.createElement(Ly,Xj({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},kh(e.props,n,r)),a.renderTickItem(o,p,u?u(n.value,r):n.value))}));return t.createElement(Ly,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(Ly,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),VE.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(CE,Xj({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&nT(n.prototype,r),o&&nT(n,o),a}(t.PureComponent);aT.displayName="PolarRadiusAxis",aT.axisType="radiusAxis",aT.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var uT=n(3977),sT=n.n(uT),lT=n(5727),cT=n.n(lT);function fT(e){return function(e){if(Array.isArray(e))return dT(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return dT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pT(){return pT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pT.apply(this,arguments)}function hT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hT(Object(n),!0).forEach((function(t){yT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var gT={valueAccessor:function(e){return _v()(e.value)?cT()(e.value):e.value}};function bT(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,u=e.textBreakAll,s=mT(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return n&&n.length?t.createElement(Ly,{className:"recharts-label-list"},n.map((function(e,n){var l=Ay()(o)?r(e,n):KO(e&&e.payload,o),c=Ay()(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(VE,pT({},wh(e,!0),s,c,{parentViewBox:e.parentViewBox,index:n,value:l,textBreakAll:u,viewBox:VE.parseViewBox(Ay()(i)?e:vT(vT({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}bT.displayName="LabelList",bT.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=NO(o,bT.displayName).map((function(e,r){return(0,t.cloneElement)(e,{data:n,key:"labelList-".concat(r)})}));if(!r)return i;var a=function(e,n){return e?!0===e?t.createElement(bT,{key:"labelList-implicit",data:n}):t.isValidElement(e)||lh()(e)?t.createElement(bT,{key:"labelList-implicit",data:n,content:e}):vh()(e)?t.createElement(bT,pT({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n);return[a].concat(fT(i))},bT.defaultProps=gT;var wT=function(e){return null};function xT(e){return xT="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xT(e)}function kT(){return kT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT.apply(this,arguments)}function _T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_T(Object(n),!0).forEach((function(t){ST(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ST(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CT(e,t){return CT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CT(e,t)}function jT(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(TI){return!1}}();return function(){var n,r=TT(e);if(t){var o=TT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xT(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function TT(e){return TT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},TT(e)}wT.displayName="Cell";var PT=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&CT(e,t)}(a,e);var n,r,o,i=jT(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state=void 0,t.id=Iv("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),lh()(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),lh()(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,u=n.valueKey,s=wh(this.props),l=wh(r),c=wh(o),f=r&&r.offsetRadius||20,d=e.map((function(e,n){var d=(e.startAngle+e.endAngle)/2,p=kS(e.cx,e.cy,e.outerRadius+f,d),h=OT(OT(OT(OT({},s),e),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(p.x,e.cx)},p),v=OT(OT(OT(OT({},s),e),{},{fill:"none",stroke:e.fill},c),{},{index:n,points:[kS(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),y=i;return Ay()(i)&&Ay()(u)?y="value":Ay()(i)&&(y=u),t.createElement(Ly,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,v),a.renderLabelItem(r,h,KO(e,y)))}));return t.createElement(Ly,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke;return e.map((function(e,r){var u=n.isActiveIndex(r)?o:null,s=OT(OT({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(Ly,kT({className:"recharts-pie-sector"},kh(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,s))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,u=n.animationEasing,s=n.animationId,l=this.state,c=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement($m,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=c&&c[t],r=t>0?xv()(e,"paddingAngle",0):0;if(n){var u=Lv(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=OT(OT({},e),{},{startAngle:a+r,endAngle:a+u(o)+r});i.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,d=Lv(0,l-f)(o),p=OT(OT({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(Ly,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&By()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.sectors,o=e.className,i=e.label,a=e.cx,u=e.cy,s=e.innerRadius,l=e.outerRadius,c=e.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!Mv(a)||!Mv(u)||!Mv(s)||!Mv(l))return null;var d=ph()("recharts-pie",o);return t.createElement(Ly,{className:d},this.renderSectors(),i&&this.renderLabels(r),VE.renderCallByParent(this.props,null,!1),(!c||f)&&bT.renderCallByParent(this.props,r,!1))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[]}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors}:e.sectors!==t.curSectors?{curSectors:e.sectors}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):t.createElement(eb,kT({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return lh()(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(CE,kT({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):lh()(e)?e(n):sT()(e)?t.createElement(IS,kT({},n,e)):t.createElement(IS,n)}}],r&&ET(n.prototype,r),o&&ET(n,o),a}(t.PureComponent);PT.displayName="Pie",PT.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ag.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},PT.parseDeltaAngle=function(e,t){return Pv(t-e)*Math.min(Math.abs(t-e),360)},PT.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=wh(e.props),i=NO(r,wT.displayName);return n&&n.length?n.map((function(e,t){return OT(OT(OT({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return OT(OT({},o),e.props)})):[]},PT.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=_S(o,i);return{cx:r+Rv(e.props.cx,o,o/2),cy:n+Rv(e.props.cy,i,i/2),innerRadius:Rv(e.props.innerRadius,a,0),outerRadius:Rv(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},PT.getComposedData=function(e){var t=e.item,n=e.offset,r=PT.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,u=o.endAngle,s=o.paddingAngle,l=o.dataKey,c=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=PT.parseCoordinateOfPie(t,n),v=PT.parseDeltaAngle(a,u),y=Math.abs(v),m=l;Ay()(l)&&Ay()(f)?(hy(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m="value"):Ay()(l)&&(hy(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m=f);var g,b,w=r.filter((function(e){return 0!==KO(e,m,0)})).length,x=y-w*p-(y>=360?w:w-1)*s,k=r.reduce((function(e,t){var n=KO(t,m,0);return e+(Mv(n)?n:0)}),0);k>0&&(g=r.map((function(e,t){var n,r=KO(e,m,0),o=KO(e,c,t),u=(Mv(r)?r:0)/k,l=(n=t?b.endAngle+Pv(v)*s*(0!==r?1:0):a)+Pv(v)*((0!==r?p:0)+u*x),f=(n+l)/2,y=(h.innerRadius+h.outerRadius)/2,g=[{name:o,value:r,payload:e,dataKey:m,type:d}],w=kS(h.cx,h.cy,y,f);return b=OT(OT(OT({percent:u,cornerRadius:i,name:o,tooltipPayload:g,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:KO(e,m),startAngle:n,endAngle:l,payload:e,paddingAngle:Pv(v)*s})})));return OT(OT({},h),{},{sectors:g,data:r})};var DT=function(e){var n,r,o=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,u=void 0===a?"axis":a,s=e.validateTooltipEventTypes,l=void 0===s?["axis"]:s,c=e.axisComponents,f=e.legendContent,d=e.formatAxisMap,p=e.defaultProps,h=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,l=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=wj(l),v=h.numericAxisName,y=h.cateAxisName,m=function(e){return!(!e||!e.length)&&e.some((function(e){var t=AO(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=m&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,u=i.length;a<u;a++)for(var s=r[i[a]].stackGroups,l=Object.keys(s),c=0,f=l.length;c<f;c++){var d=s[l[c]],p=d.items,h=d.cateAxisId,v=p.filter((function(e){return AO(e.type).indexOf("Bar")>=0}));if(v&&v.length){var y=v[0].props.barSize,m=v[0].props[h];o[m]||(o[m]=[]),o[m].push({item:v[0],stackList:v.slice(1),barSize:Ay()(y)?t:y})}}return o}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=hj(e.data,{dataStartIndex:a,dataEndIndex:u},n),m=n.props,w=m.dataKey,x=m.maxBarSize,k=n.props["".concat(v,"Id")],_=n.props["".concat(y,"Id")],O=c.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],u=i&&i[a];return uj(uj({},e),{},(sj(o={},r.axisType,u),sj(o,"".concat(r.axisType,"Ticks"),nS(u)),o))}),{}),S=O[y],E=O["".concat(y,"Ticks")],C=r&&r[k]&&r[k].hasStack&&function(e,t){var n=e.props.stackId;if(Av(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[k].stackGroups),j=AO(n.type).indexOf("Bar")>=0,T=dS(S,E),P=[];if(j){var D=dS(S,E,!0),M=Ay()(x)?p:x;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,u=i.length;if(u<1)return null;var s,l=Rv(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var c=!1,f=r/u,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(u-1)*l)>=r&&(d-=(u-1)*l,l=0),d>=r&&f>0&&(c=!0,d=u*(f*=.9));var p={offset:((r-d)/2>>0)-l,size:0};s=i.reduce((function(e,t){var n=[].concat(zO(e),[{item:t.item,position:{offset:p.offset+p.size+l,size:c?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=Rv(n,r,0,!0);r-2*h-(u-1)*l<=0&&(l=0);var v=(r-2*h-(u-1)*l)/u;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;s=i.reduce((function(e,t,n){var r=[].concat(zO(e),[{item:t.item,position:{offset:h+(v+l)*n+(v-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s}({barGap:f,barCategoryGap:d,bandSize:D!==T?D:T,sizeList:g[_],maxBarSize:M}),D!==T&&(P=P.map((function(e){return uj(uj({},e),{},{position:uj(uj({},e.position),{},{offset:e.position.offset-D/2})})})))}var A,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:uj(uj({},N(uj(uj({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:T,barPosition:P,offset:o,stackedData:C,layout:l,dataStartIndex:a,dataEndIndex:u}))),{},(A={key:n.key||"item-".concat(s)},sj(A,v,O[v]),sj(A,y,O[y]),sj(A,"animationId",i),A)),childIndex:WO(n,e.children),item:n})})),b},v=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,u=e.updateId;if(!RO({props:n}))return null;var s=n.children,l=n.layout,f=n.stackOffset,p=n.data,v=n.reverseStackOrder,y=wj(l),m=y.numericAxisName,g=y.cateAxisName,b=NO(s,i),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(Av(i)){var s=u.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),u.hasStack=!0,u.stackGroups[i]=s}else u.stackGroups[Iv("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return YO(YO({},e),{},$O({},a,u))}),{});return Object.keys(a).reduce((function(t,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(t,i){var a=u.stackGroups[i];return YO(YO({},t),{},$O({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:aS(e,a.items,o)}))}),{})),YO(YO({},t),{},$O({},i,u))}),{})}(p,b,"".concat(m,"Id"),"".concat(g,"Id"),f,v),x=c.reduce((function(e,t){var o="".concat(t.axisType,"Map");return uj(uj({},e),{},sj({},o,gj(n,uj(uj({},t),{},{graphicalItems:b,stackGroups:t.axisType===m&&w,dataStartIndex:r,dataEndIndex:a}))))}),{}),k=xj(uj(uj({},x),{},{props:n,graphicalItems:b}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=d(n,x[e],k,e.replace("Map",""),o)}));var _=function(e){var t=Fv(e),n=nS(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ty()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:dS(t)}}(x["".concat(g,"Map")]),O=h(n,uj(uj({},x),{},{dataStartIndex:r,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:k}));return uj(uj({formatedGraphicalItems:O,graphicalItems:b,offset:k,stackGroups:w},_),x)};return r=n=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZC(e,t)}(s,e);var n,r,i,a=ej(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,e)).uniqueChartId=void 0,n.clipPathId=void 0,n.legendInstance=void 0,n.deferId=void 0,n.container=void 0,n.clearDeferId=function(){!Ay()(n.deferId)&&pj&&pj(n.deferId),n.deferId=null},n.handleLegendBBoxUpdate=function(e){if(e&&n.legendInstance){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(uj({legendBBox:e},v({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},uj(uj({},n.state),{},{legendBBox:e}))))}},n.handleReceiveSyncEvent=function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=dj&&dj(n.applySyncEvent.bind(tj(n),r)))},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return uj({dataStartIndex:t,dataEndIndex:r},v({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=uj(uj({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),lh()(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?uj(uj({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),lh()(t)&&t(o,e)},n.handleItemMouseEnter=function(e,t,r){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&lh()(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),lh()(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&MO[t]?MO[t]:null}(e),r=xv()(n.props,"".concat(t));t&&lh()(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)},n.handleClick=function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=uj(uj({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),lh()(t)&&t(o,e)}},n.handleMouseDown=function(e){var t=n.props.onMouseDown;lh()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;lh()(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return tS(XE.getTicks(uj(uj(uj({},XE.defaultProps),t),{},{ticks:nS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return tS(XE.getTicks(uj(uj(uj({},XE.defaultProps),t),{},{ticks:nS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return nS(e,!0)},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,u=r.activePayload,s=r.offset,l=r.activeTooltipIndex,c=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"axis"!==c)return null;var f,d=n.props.layout,p=eb;if("ScatterChart"===o)f=a,p=ub;else if("BarChart"===o)f=n.getCursorRectangle(),p=XS;else if("radial"===d){var h=n.getCursorPoints(),v=h.cx,y=h.cy,m=h.radius;f={cx:v,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:m,outerRadius:m},p=IS}else f={points:n.getCursorPoints()},p=eb;var g=e.key||"_recharts-cursor",b=uj(uj(uj(uj({stroke:"#ccc",pointerEvents:"none"},s),f),wh(e.props.cursor)),{},{payload:u,payloadIndex:l,key:g,className:"recharts-tooltip-cursor"});return(0,t.isValidElement)(e.props.cursor)?(0,t.cloneElement)(e.props.cursor,b):(0,t.createElement)(p,b)},n.renderPolarAxis=function(e,r,o){var i=xv()(e,"type.axisType"),a=xv()(n.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return(0,t.cloneElement)(e,uj(uj({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:nS(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,u=n.props,s=u.width,l=u.height,c=Fv(o),f=Sy()(i,(function(e){return _y()(e.domain,fj)}))||Fv(i),d=e.props||{};return(0,t.cloneElement)(e,{key:e.key||"grid",x:Mv(d.x)?d.x:a.left,y:Mv(d.y)?d.y:a.top,width:Mv(d.width)?d.width:a.width,height:Mv(d.height)?d.height:a.height,xAxis:c,yAxis:f,offset:a,chartWidth:s,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,u=n.state,s=u.radiusAxisMap,l=u.angleAxisMap,c=Fv(s),f=Fv(l),d=f.cx,p=f.cy,h=f.innerRadius,v=f.outerRadius;e.props;return(0,t.cloneElement)(e,{polarAngles:_v()(i)?i:nS(f,!0).map((function(e){return e.coordinate})),polarRadius:_v()(a)?a:nS(c,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:v,key:e.key||"polar-grid",radialLines:o})},n.renderLegend=function(){var e=n.state.formatedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,u=n.props.margin||{},s=i-(u.left||0)-(u.right||0),l=XO({children:o,formatedGraphicalItems:e,legendWidth:s,legendContent:f});if(!l)return null;var c=l.item,d=XC(l,["item"]);return(0,t.cloneElement)(c,uj(uj({},d),{},{chartWidth:i,chartHeight:a,margin:u,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))},n.renderTooltip=function(){var e=n.props.children,r=IO(e,mg.displayName);if(!r)return null;var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,u=o.activePayload,s=o.activeLabel,l=o.offset;return(0,t.cloneElement)(r,{viewBox:uj(uj({},l),{},{x:l.left,y:l.top}),active:i,label:s,payload:i?u:[],coordinate:a})},n.renderBrush=function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,u=a.offset,s=a.dataStartIndex,l=a.dataEndIndex,c=a.updateId;return(0,t.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:rS(n.handleBrushChange,null,e.props.onChange),data:i,x:Mv(e.props.x)?e.props.x:u.left,y:Mv(e.props.y)?e.props.y:u.top+u.height+u.brushBottom-(o.bottom||0),width:Mv(e.props.width)?e.props.width:u.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(e,r,o){if(!e)return null;var i=tj(n).clipPathId,a=n.state,u=a.xAxisMap,s=a.yAxisMap,l=a.offset,c=e.props,f=c.xAxisId,d=c.yAxisId;return(0,t.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:u[f],yAxis:s[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})},n.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],u=t.props.key,l=t.item.props,c=l.activeDot,f=uj(uj({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:GO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},wh(c)),xh(c));return a.push(s.renderActiveDot(c,f)),r?a.push(s.renderActiveDot(c,uj(uj({},f),{},{cx:r.x,cy:r.y,key:"".concat(u,"-basePoint-").concat(o)}))):i&&a.push(null),a},n.renderGraphicChild=function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),u=n.state,s=u.isTooltipActive,l=u.tooltipAxis,c=u.activeTooltipIndex,f=u.activeLabel,d=n.props.children,p=IO(d,mg.displayName),h=i.props,v=h.points,y=h.isRange,m=h.baseLine,g=i.item.props,b=g.activeDot,w=!g.hide&&s&&p&&b&&c>=0,x={};"axis"!==a&&p&&"click"===p.props.trigger?x={onClick:rS(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:rS(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:rS(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var k=(0,t.cloneElement)(e,uj(uj({},i.props),x));if(w){var _,O;if(l.dataKey&&!l.allowDuplicatedCategory){var S="function"===typeof l.dataKey?function(e){return"function"===typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());_=Vv(v,S,f),O=y&&m&&Vv(m,S,f)}else _=v[c],O=y&&m&&m[c];if(!Ay()(_))return[k].concat(rj(n.renderActivePoints({item:i,activePoint:_,basePoint:O,childIndex:c,isRange:y})))}return y?[k,null,null]:[k,null]},n.renderCustomized=function(e){return(0,t.cloneElement)(e,uj(uj({},n.props),n.state))},n.uniqueChartId=Ay()(e.id)?Iv("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=Cy()(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=s,r=[{key:"componentDidMount",value:function(){Ay()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Ay()(e.syncId)&&!Ay()(this.props.syncId)&&this.addListener(),!Ay()(this.props.syncId)&&Ay()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Ay()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=IO(this.props.children,mg.displayName);if(e&&Iy()(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,o=r.xAxisMap,i=r.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&i){var a=Fv(o).scale,u=Fv(i).scale,s=a&&a.invert?a.invert(t.chartX):null,l=u&&u.invert?u.invert(t.chartY):null;return uj(uj({},t),{},{xValue:s,yValue:l})}var c=yj(this.state,this.props.data,this.props.layout,n);return c?uj(uj({},t),c):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===o)r=t=a.y,e=u.left,n=u.left+u.width;else if(!Ay()(a.cx)||!Ay()(a.cy)){if("centric"!==o){var s=a.cx,l=a.cy,c=a.radius,f=a.startAngle,d=a.endAngle;return{points:[kS(s,l,c,f),kS(s,l,c,d)],cx:s,cy:l,radius:c,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,v=a.innerRadius,y=a.outerRadius,m=a.angle,g=kS(p,h,v,m),b=kS(p,h,y,m);e=g.x,t=g.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=Fv(i);return ES({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=IO(e,mg.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),uj(uj({},xh(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){YC.on($C,this.handleReceiveSyncEvent),YC.setMaxListeners&&YC._maxListeners&&YC.setMaxListeners(YC._maxListeners+1)}},{key:"removeListener",value:function(){YC.removeListener($C,this.handleReceiveSyncEvent),YC.setMaxListeners&&YC._maxListeners&&YC.setMaxListeners(YC._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Ay()(t)||YC.emit($C,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(Ay()(e.dataStartIndex)&&Ay()(e.dataEndIndex))if(Ay()(e.activeTooltipIndex))this.setState(e);else{var u=e.chartX,s=e.chartY,l=e.activeTooltipIndex,c=this.state,f=c.offset,d=c.tooltipTicks;if(!f)return;if("function"===typeof r)l=r(l,e);else if("value"===r){l=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){l=p;break}}var h=uj(uj({},f),{},{x:f.left,y:f.top}),y=Math.min(u,h.x+h.width),m=Math.min(s,h.y+h.height),g=d[l]&&d[l].value,b=vj(this.state,this.props.data,l),w=d[l]?{x:"horizontal"===n?d[l].coordinate:y,y:"horizontal"===n?m:d[l].coordinate}:cj;this.setState(uj(uj({},e),{},{activeLabel:g,activeCoordinate:w,activePayload:b,activeTooltipIndex:l}))}else this.setState(uj({dataStartIndex:i,dataEndIndex:a},v({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===AO(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,u=i.height;return t.createElement(XE,GC({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:u},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QC(t,2),r=n[0],o=n[1];return uj(uj({},e),{},sj({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QC(t,2),r=n[0],o=n[1];return uj(uj({},e),{},sj({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formatedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,u=AO(a.type);if("Bar"===u){var s=(i.data||[]).find((function(t){return GS(e,t)}));if(s)return{graphicalItem:o,payload:s}}else if("RadialBar"===u){var l=(i.data||[]).find((function(t){return ES(e,t)}));if(l)return{graphicalItem:o,payload:l}}}return null}},{key:"render",value:function(){var e=this;if(!RO(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,u=n.style,s=n.compact,l=XC(n,["children","className","width","height","style","compact"]),c=wh(l),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return t.createElement(Sh,GC({},c,{width:i,height:a}),this.renderClipPath(),UO(r,f));var d=this.parseEventsOfWrapper();return t.createElement("div",GC({className:ph()("recharts-wrapper",o),style:uj({position:"relative",cursor:"default",width:i,height:a},u)},d,{ref:function(t){e.container=t}}),t.createElement(Sh,GC({},c,{width:i,height:a}),this.renderClipPath(),UO(r,f)),this.renderLegend(),this.renderTooltip())}}],r&&JC(n.prototype,r),i&&JC(n,i),s}(t.Component),n.displayName=o,n.defaultProps=uj({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p),n.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,u=e.stackOffset,s=e.margin;if(Ay()(t.updateId)){var l=bj(e);return uj(uj(uj({},l),{},{updateId:0},v(uj(uj({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:s,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||u!==t.prevStackOffset||!PO(s,t.prevMargin)){var c=bj(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=uj(uj({},yj(t,n,a)),{},{updateId:t.updateId+1}),p=uj(uj(uj({},c),f),d);return uj(uj(uj({},p),v(uj({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:s,prevChildren:r})}if(!VO(r,t.prevChildren)){var h=!Ay()(n)?t.updateId:t.updateId+1;return uj(uj({updateId:h},v(uj(uj({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},n.renderActiveDot=function(e,n){var r;return r=(0,t.isValidElement)(e)?(0,t.cloneElement)(e,n):lh()(e)?e(n):t.createElement(WS,n),t.createElement(Ly,{className:"recharts-active-dot",key:n.key},r)},r}({chartName:"PieChart",GraphicalChild:PT,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Hj},{axisType:"radiusAxis",AxisComp:aT}],formatAxisMap:function(t,n,r,o,i){var a=t.width,u=t.height,s=t.startAngle,l=t.endAngle,c=Rv(t.cx,a,a/2),f=Rv(t.cy,u,u/2),d=_S(a,u,r),p=Rv(t.innerRadius,d,0),h=Rv(t.outerRadius,d,.8*d);return Object.keys(n).reduce((function(t,r){var a,u=n[r],d=u.domain,v=u.reversed;if(Ay()(u.range))"angleAxis"===o?a=[s,l]:"radiusAxis"===o&&(a=[p,h]),v&&(a=[a[1],a[0]]);else{var y=gS(a=u.range,2);s=y[0],l=y[1]}var m=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,u=t.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===u?{scale:wb(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:nx(),realScaleType:"linear"}:"category"===i&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:kb(),realScaleType:"point"}:"category"===i?{scale:wb(),realScaleType:"band"}:{scale:nx(),realScaleType:"linear"};if(Tv()(o)){var s="scale".concat(Ch()(o));return{scale:(e[s]||kb)(),realScaleType:e[s]?s:"point"}}return lh()(o)?{scale:o}:{scale:kb(),realScaleType:"point"}}(u,i),g=m.realScaleType,b=m.scale;b.domain(d).range(a),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-oS,i=Math.max(r[0],r[1])+oS,a=e(t[0]),u=e(t[n-1]);(a<o||a>i||u<o||u>i)&&e.domain([t[0],t[n-1]])}}(b);var w=uS(b,yS(yS({},u),{},{realScaleType:g})),x=yS(yS(yS({},u),w),{},{range:a,radius:h,realScaleType:g,scale:b,cx:c,cy:f,innerRadius:p,outerRadius:h,startAngle:s,endAngle:l});return yS(yS({},t),{},mS({},r,x))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),MT=Ae("div")((function(e){var t=e.horizontalPadding;return{gridColumn:"1/-1",background:e.backgroundColor,paddingTop:$n.space[3],paddingBottom:$n.space[3],paddingLeft:t?$n.space[3]:null,paddingRight:t?$n.space[3]:null,borderRadius:$n.borderRadius.medium,overflowY:"auto"}}));function AT(e){var t=e.children,n=e.horizontalPadding,r=e.centered,o=e.backgroundColor,i=void 0===o?"transparent":o;return(0,Qn.jsx)(MT,{horizontalPadding:n,backgroundColor:i,children:(0,Qn.jsx)("table",{className:r&&"centered",children:t})})}var NT,IT,RT,FT,LT=Ae("div")({display:"flex",alignItems:"center"}),VT=Ae("span")((function(e){var t=e.squareColor;return{display:"block",width:12,height:12,marginRight:12,background:void 0===t?"transparent":t}})),BT=function(e){var n=e.data,r=e.dataByCategory,o=e.showLegend,i=void 0!==o&&o,a=e.mainCategoryName,u=void 0===a?"Flokkur":a,s=(0,t.useMemo)((function(){return(0,Qn.jsx)(Xv,{content:function(e){return function(e,t,n){var r=[];return r=Array.isArray(n)?e.filter((function(e){return n.map((function(e){return e.name})).includes(e.value)})):e,(0,Qn.jsxs)(AT,{children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:t}),(0,Qn.jsx)("th",{children:"Losun"}),(0,Qn.jsx)("th",{children:"% af heild"})]})}),(0,Qn.jsx)("tbody",{children:r.map((function(e){var t=e.value,n=e.color,r=e.payload,o=r.percent,i=r.value;return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:(0,Qn.jsxs)(LT,{children:[(0,Qn.jsx)(VT,{squareColor:n}),t]})}),(0,Qn.jsxs)("td",{children:[ga(i/1e3,1)," tonn CO\u2082"]}),(0,Qn.jsxs)("td",{children:[o?ga(100*o,2):0,"%"]})]},t)}))})]})}(e.payload,u,r)},wrapperStyle:{position:"absolute",width:"50%",display:"flex",justifyContent:"center",maxHeight:"100%",overflow:"auto"},layout:"vertical",verticalAlign:"middle",align:"right"})}),[r,u]);return(0,Qn.jsx)(xy,{width:"100%",height:400,children:(0,Qn.jsxs)(DT,{children:[(0,Qn.jsx)(PT,{data:n,dataKey:"value",cx:"50%",cy:"50%",outerRadius:r?"60%":"90%",fill:"#8884d8",children:n.map((function(e,t){return(0,Qn.jsx)(wT,{fill:e.color},"cell-".concat(t))}))}),r&&(0,Qn.jsx)(PT,{data:r,dataKey:"value",cx:"50%",cy:"50%",innerRadius:"70%",outerRadius:"90%",fill:"#82ca9d",children:r.map((function(e,t){return(0,Qn.jsx)(wT,{fill:e.color},"cell-".concat(t))}))}),i&&s,(0,Qn.jsx)(mg,{formatter:function(e){return ga(e)+" kg CO\u2082"}})]})})},UT=function(e,t){var n=e.drivingData,r=n.ownedVehicles,o=n.rentalVehicles,i=n.taxi,a=n.machineryAndEquipment,u=e.flights,s=u.domesticFlights,l=u.internationalFlights,c=u.icao,f=e.waste,d=e.energy,p=e.carbonOffset,h=r.gasoline*t.ownedVehiclesGasoline+r.diesel*t.ownedVehiclesDiesel+r.metan*t.ownedVehiclesMetan+r.electricity*t.ownedVehiclesElectricity,v=o.gasoline*t.rentalVehiclesGasoline+o.diesel*t.rentalVehiclesDiesel+o.metan*t.rentalVehiclesMetan+o.electricity*t.rentalVehiclesElectricity,y=i.gasoline*t.taxiGasoline+i.diesel*t.taxiDiesel+i.metan*t.taxiMetan+i.electricity*t.taxiElectricity,m=a.gasoline*t.rentalVehiclesGasoline+a.diesel*t.rentalVehiclesDiesel+a.metan*t.rentalVehiclesMetan+a.electricity*t.rentalVehiclesElectricity+a.kerosene*t.machineryKerosene,g=d.electricity*t.energyElectricity,b=d.hotWater*t.energyHotWater,w=s.AEYtoRVKtoAEY*t.flightAEY_RVK+s.EGStoRVKtoEGS*t.flightEGS_RVK+s.HFNtoRVKtoHFN*t.flightHFN_RVK+s.IFJtoRVKtoIFJ*t.flightIFJ_RVK+s.VEYtoRVKtoVEY*t.flightVEY_RVK+s.other*t.flightOther,x=l.scandinavia*t.flightScandinavia_RVK+l.continentalEurope*t.flightContinentalEurope_RVK+l.northAmerica*t.flightNorthAmerica_RVK+l.southAmerica*t.flightSouthAmerica_RVK+l.asia*t.flightAsia_RVK+l.africa*t.flightAfrica_RVK+l.oceania*t.flightOceania_RVK,k=f.landfill*t.wasteLandfill,_=f.composting*t.wasteComposting,O=f.incineration*t.wasteIncineration,S=f.plastic*t.wastePlastic,E=f.paper*t.wastePaper,C=f.glass*t.wasteGlass,j=f.metals*t.wasteMetal,T=f.bulky*t.wasteBulky;return{driving:{ownedVehiclesFootprint:h,rentalVehiclesFootprint:v,taxiFootprint:y,machineryAndEquipmentFootprint:m},flight:{icaoFootprint:c.total,domesticFlightsFootprint:w,internationalFlightsFootprint:x},energy:{energyElectricityFootprint:g,energyHotWaterFootprint:b},waste:{landfillFootprint:k,compostingFootprint:_,incinerationFootprint:O,plasticFootprint:S,paperFootprint:E,glassFootprint:C,metalsFootprint:j,bulkyWasteFootprint:T},carbonOffset:p}},WT=Ae("div")((function(e){return{backgroundColor:e.color,height:12,width:12,marginRight:12}})),zT=function(e){var t=e.state,n=e.globalCoefficients;if(!t||!n)return null;var r=UT(t,n),o=r.driving,i=o.ownedVehiclesFootprint,a=o.rentalVehiclesFootprint,u=o.taxiFootprint,s=o.machineryAndEquipmentFootprint,l=r.energy,c=l.energyElectricityFootprint,f=l.energyHotWaterFootprint,d=r.flight,p=d.icaoFootprint,h=d.domesticFlightsFootprint,v=d.internationalFlightsFootprint,y=r.waste,m=y.bulkyWasteFootprint,g=y.compostingFootprint,b=y.glassFootprint,w=y.incinerationFootprint,x=y.landfillFootprint,k=y.metalsFootprint,_=y.paperFootprint,O=y.plasticFootprint,S=[{name:"Eigin b\xedlar",value:i,color:"#023e8a"},{name:"B\xedlaleigub\xedlar",value:a,color:"#0077b6"},{name:"Leigub\xedlar",value:u,color:"#0096c7"},{name:"Vinnuv\xe9lar og t\xe6ki",value:s,color:"#00b4d8"},{name:"Rafmagn",value:c,color:"#14746f"},{name:"Heitt vatn",value:f,color:"#248277"},{name:"ICAO",value:p,color:"#800f2f"},{name:"Innanlandsflug",value:p>0?0:h,color:"#a4133c"},{name:"Millilandaflug",value:p>0?0:v,color:"#c9184a"},{name:"Ur\xf0un",value:x,color:"#ff8800"},{name:"Jar\xf0ger\xf0",value:g,color:"#ff9500"},{name:"Brennsla",value:w,color:"#ffa200"},{name:"Plast",value:O,color:"#ffb700"},{name:"Papp\xedr/pappi",value:_,color:"#ff8800"},{name:"Gler",value:b,color:"#ff9500"},{name:"M\xe1lmar",value:k,color:"#ffa200"},{name:"Gr\xf3fur \xfargangur",value:m,color:"#ffb700"}],E=[{name:"Akstur",value:i+a+u+s,color:"#03045e"},{name:"Orka",value:c+f,color:"#036666"},{name:"Flug",value:p>0?p:h+v,color:"#590d22"},{name:"\xdargangur",value:x+g+w+O+_+b+k+m,color:"#ff7b00"}],C=E.reduce((function(e,t){return e+t.value}),0);return(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingY:4,children:[(0,Qn.jsxs)(Hi,{pb:2,children:[t.entity.name," (",t.year,")"]}),(0,Qn.jsxs)(qi,{children:["Ni\xf0ursta\xf0a fyrir ",t.entity.name," \xe1ri\xf0 ",t.year,"."]})]}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:"1fr 1fr",$minHeight:250,$my:4,children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(BT,{data:S,dataByCategory:E})}),(0,Qn.jsx)($l,{children:(0,Qn.jsxs)(AT,{children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:"Flokkur"}),(0,Qn.jsx)("th",{children:"Losun (kg CO\u2082)"}),(0,Qn.jsx)("th",{children:"% af heild"})]})}),(0,Qn.jsx)("tbody",{children:E.map((function(e){var t=e.name,n=e.value,r=e.color;return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:(0,Qn.jsxs)(ta,{$display:"flex",$alignItems:"center",children:[(0,Qn.jsx)(WT,{color:r})," ",t]})}),(0,Qn.jsx)("td",{children:ga(n)}),(0,Qn.jsxs)("td",{children:[ga(n/C*100,2),"%"]})]},t)}))})]})}),(0,Qn.jsx)($l,{$gridColumn:"span 3",children:(0,Qn.jsxs)(ma,{columns:3,children:[(0,Qn.jsx)(wa,{title:"Heildarlosun",value:C}),(0,Qn.jsx)(wa,{title:"Kolefnisj\xf6fnun",value:1e3*t.carbonOffset.quantity}),(0,Qn.jsx)(wa,{title:"Losun - Kolefnisj\xf6fnun",value:C-1e3*t.carbonOffset.quantity,numberColors:!0})]})})]})]})};function qT(e){var t=e.drivingData,n=t.ownedVehicles,r=t.rentalVehicles,o=t.machineryAndEquipment,i=t.taxi,a=e.energy,u=e.waste,s=e.flights,l=s.icao,c=s.domesticFlights,f=s.internationalFlights,d=e.carbonOffset,p=e.entityMetadata;return{updatedAt:{set:(new Date).toISOString()},drivingData:{update:{ownedVehicles:{update:{gasoline:{set:n.gasoline},diesel:{set:n.diesel},electricity:{set:n.electricity},metan:{set:n.metan},comment:{set:n.comment}}},rentalVehicles:{update:{gasoline:{set:r.gasoline},diesel:{set:r.diesel},electricity:{set:r.electricity},metan:{set:r.metan},comment:{set:r.comment}}},machineryAndEquipment:{update:{gasoline:{set:o.gasoline},diesel:{set:o.diesel},electricity:{set:o.electricity},metan:{set:o.metan},kerosene:{set:o.kerosene},comment:{set:o.comment}}},taxi:{update:{gasoline:{set:i.gasoline},diesel:{set:i.diesel},electricity:{set:i.electricity},metan:{set:i.metan},comment:{set:i.comment}}}}},energy:{update:{electricity:{set:a.electricity},hotWater:{set:a.hotWater},comment:{set:a.comment}}},waste:{update:{landfill:{set:u.landfill},composting:{set:u.composting},incineration:{set:u.incineration},plastic:{set:u.plastic},paper:{set:u.paper},glass:{set:u.glass},metals:{set:u.metals},bulky:{set:u.bulky},comment:{set:u.comment}}},flights:{update:{icao:{update:{total:{set:l.total},comment:{set:l.comment}}},domesticFlights:{update:{AEYtoRVKtoAEY:{set:c.AEYtoRVKtoAEY},EGStoRVKtoEGS:{set:c.EGStoRVKtoEGS},HFNtoRVKtoHFN:{set:c.HFNtoRVKtoHFN},IFJtoRVKtoIFJ:{set:c.IFJtoRVKtoIFJ},VEYtoRVKtoVEY:{set:c.VEYtoRVKtoVEY},other:{set:c.other},comment:{set:c.comment}}},internationalFlights:{update:{africa:{set:f.africa},asia:{set:f.asia},continentalEurope:{set:f.continentalEurope},northAmerica:{set:f.northAmerica},oceania:{set:f.oceania},scandinavia:{set:f.scandinavia},southAmerica:{set:f.southAmerica},comment:{set:f.comment}}}}},carbonOffset:{update:{quantity:{set:d.quantity},comment:{set:d.comment}}},entityMetadata:{update:{propertyArea:{set:p.propertyArea},positions:{set:p.positions},clients:{set:p.clients},comment:{set:p.comment}}}}}var HT,YT=ur(NT||(NT=Xn(["\n  fragment CoefficientFragment on GlobalCoefficients {\n    year\n    ownedVehiclesGasoline\n    ownedVehiclesDiesel\n    ownedVehiclesMetan\n    ownedVehiclesElectricity\n    rentalVehiclesGasoline\n    rentalVehiclesDiesel\n    rentalVehiclesMetan\n    rentalVehiclesElectricity\n    taxiGasoline\n    taxiDiesel\n    taxiMetan\n    taxiElectricity\n    machineryGasoline\n    machineryDiesel\n    machineryMetan\n    machineryElectricity\n    machineryKerosene\n    energyElectricity\n    energyHotWater\n    flightAEY_RVK\n    flightEGS_RVK\n    flightVEY_RVK\n    flightHFN_RVK\n    flightIFJ_RVK\n    flightOther\n    flightOceania_RVK\n    flightContinentalEurope_RVK\n    flightScandinavia_RVK\n    flightNorthAmerica_RVK\n    flightSouthAmerica_RVK\n    flightAfrica_RVK\n    flightAsia_RVK\n    wasteLandfill\n    wasteComposting\n    wasteIncineration\n    wastePlastic\n    wastePaper\n    wasteGlass\n    wasteMetal\n    wasteBulky\n  }\n"]))),$T=ur(IT||(IT=Xn(["\n  ","\n  query FilteredGlobalCoefficients($where: QueryGlobalCoefficientsWhereInput!) {\n    globalCoefficients(where: $where) {\n      ...CoefficientFragment\n    }\n  }\n"])),YT),KT=ur(RT||(RT=Xn(["\n  ","\n  query AllGlobalCoefficients {\n    globalCoefficients(orderBy: { year: desc }) {\n      ...CoefficientFragment\n    }\n  }\n"])),YT),QT=ur(FT||(FT=Xn(["\n  ","\n  mutation GlobalCoefficientsMutation(\n    $where: GlobalCoefficientsWhereUniqueInput!\n    $data: GlobalCoefficientsUpdateInput!\n  ) {\n    updateOneGlobalCoefficients(where: $where, data: $data) {\n      ...CoefficientFragment\n    }\n  }\n"])),YT),GT=ur(HT||(HT=Xn(["\n  mutation VerifyCarbonFootprint($id: Int!, $isVerified: Boolean!) {\n    verifyCarbonFootprint(id: $id, isVerified: $isVerified)\n  }\n"])));function XT(e,t){return{year:e,completed:!1,entity:{connect:{id:t}},drivingData:{create:{ownedVehicles:{create:{}},rentalVehicles:{create:{}},taxi:{create:{}},machineryAndEquipment:{create:{}}}},energy:{create:{}},waste:{create:{}},flights:{create:{icao:{create:{}},domesticFlights:{create:{}},internationalFlights:{create:{}}}},carbonOffset:{create:{}},entityMetadata:{create:{}}}}function JT(e){var n,r,o,i=e.modal,a=e.chosenYear,u=e.onSubmit,s=Jc((function(e){return e.activeItem})),l=Jc((function(e){return e.activeCategory})),c=Jc((function(e){return e.showOverview})),f=Jc((function(e){return e.actions})),d=f.setActiveCategory,p=Jc((function(e){return e.categories})),h=p.find((function(e){return e.key===l})).items,v=p.findIndex((function(e){return e.key===l})),y=null===(n=p[v+1])||void 0===n?void 0:n.key,m=null===(r=p[v-1])||void 0===r?void 0:r.key,g=h.find((function(e){return e.key===s})),b=g.nextItem,w=br((0,t.useState)(null===a||void 0===a?void 0:a.year),2),x=w[0],k=w[1],_=Jp().role,O=br((0,t.useState)(),2),S=O[0],E=O[1],C=br(lf(uh),2),j=C[0],T=C[1],P=br(lf(GT),1)[0],D=null===T||void 0===T||null===(o=T.data)||void 0===o?void 0:o.upsertOneCarbonFootprint.year;(0,t.useEffect)((function(){D&&k(D)}),[D]);var M=Co($T,{variables:{where:{year:{equals:x}}},skip:"number"!==typeof x}),A=M.data,N=M.loading,I=(0,t.useCallback)((function(e){var t=e.year,n=e.entityId;return j({variables:{create:XT(t,n),update:{},where:{entityId_year:{entityId:n,year:t}}}}).then((function(e){var t=e.data;return E(t.upsertOneCarbonFootprint)}))}),[j]);(0,t.useEffect)((function(){a&&I({entityId:a.entityId,year:a.year})}),[a,I]);var R=br((0,t.useState)(!0),2),F=R[0],L=R[1],V=(0,t.useCallback)(Vs(Fs().mark((function e(){var t,n,r,o=arguments;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.prev=1,e.next=4,j({variables:{create:XT(S.year,S.entity.id),update:Et(Et({},qT(S)),{},{completed:{set:t}}),where:{entityId_year:{entityId:S.entity.id,year:S.year}}}});case 4:n=e.sent,r=n.data,t&&(null===u||void 0===u||u(r.upsertOneCarbonFootprint.id)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0);case 12:t&&(L(!1),i.hide());case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),[j,i,u,S]);(0,t.useEffect)((function(){F&&!i.visible&&S&&j({variables:{create:XT(S.year,S.entity.id),update:Et({},qT(S)),where:{entityId_year:{entityId:S.entity.id,year:S.year}}}}).then((function(){L(!1),d("metadata"),setTimeout((function(){return E(void 0)}),200)})),i.visible&&L(!0)}),[j,i.visible,d,F,S]);var B=g.component,U=(0,t.useMemo)((function(){if(m)return(0,Qn.jsx)(Sa,{variant:"pill",onClick:function(){return d(m)},children:"Til baka \xed fyrri flokk"})}),[m,d]),W=(0,t.useMemo)((function(){if(S)return b||y?(0,Qn.jsx)(Sa,{variant:"secondary",onClick:function(){V(!0),i.hide()},children:"Vista og loka glugga"}):void 0}),[S,b,y,i,V]),z=(0,t.useMemo)((function(){if(S)return c?(0,Qn.jsx)(Sa,{variant:"primary",onClick:function(){return V(!0)},children:"Sta\xf0festa"}):b?(0,Qn.jsx)(Sa,{variant:"primary",onClick:function(){Jc.setState({activeItem:b}),V(!1)},children:"Vista og halda \xe1fram"}):y?(0,Qn.jsx)(Sa,{variant:"primary",onClick:function(){d(y),V(!1)},children:"Vista og fara \xed n\xe6sta flokk"}):(0,Qn.jsx)(Sa,{variant:"primary",onClick:function(){return Jc.setState({showOverview:!0})},children:"Vista og sj\xe1 yfirlit"})}),[S,b,y,c,d,V]),q=null===A||void 0===A?void 0:A.globalCoefficients[0],H=(0,t.useRef)(null),Y=(0,t.useMemo)((function(){return c?(0,Qn.jsx)(zT,{state:S,globalCoefficients:q}):S?(0,Qn.jsx)(B,{state:S,onChange:E,globalCoefficients:q}):(0,Qn.jsx)(ah.Establishment,{onClose:function(){return i.hide()},onChoose:I})}),[c,S,q,B,I,i]),$=(0,t.useMemo)((function(){return(0,Qn.jsx)(ta,{$display:"flex",$flexDirection:"column",$minHeight:"100%",$alignItems:"center",$justifyContent:"center",children:(0,Qn.jsx)(Ki,{children:"S\xe6ki g\xf6gn..."})})}),[]);(0,t.useEffect)((function(){H.current&&g&&H.current.scrollTo(0,0)}),[H,g]);var K=br((0,t.useState)(!0),2),Q=K[0],G=K[1];(0,t.useEffect)((function(){N||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t){setTimeout(t,e)}))}(500).then((function(){G(!1)}))}),[N]);var X=function(e){return Vs(Fs().mark((function t(){return Fs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P({variables:{id:S.id,isVerified:e}});case 2:E(Et(Et({},S),{},{isVerified:e}));case 3:case"end":return t.stop()}}),t)})))},J=S&&!c;return(0,Qn.jsx)(As.modalOuter,{children:(0,Qn.jsxs)(As.inner,{children:[J?(0,Qn.jsx)(uf,{selectedYear:S.year,activeEstablishmentName:S.entity.name,children:"ADMIN"===_&&(S.isVerified?(0,Qn.jsx)(Qn.Fragment,{children:(0,Qn.jsxs)("p",{children:["Merkt yfirfari\xf0",(0,Qn.jsx)("br",{}),(0,Qn.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:X(!1),children:"Taka til baka"})]})}):(0,Qn.jsx)(Sa,{onClick:X(!0),children:"Merkja yfirfari\xf0"}))}):null,(0,Qn.jsxs)(As.content,{children:[(0,Qn.jsx)(As.scrollable,{ref:H,children:Q?$:Y}),(m||S)&&(0,Qn.jsxs)(As.bottom,{children:[(0,Qn.jsx)(ta,{$paddingRight:2,$flex:"1",children:U}),(0,Qn.jsxs)(ta,{$display:"flex",$justifyContent:"flex-end",$width:"full",$flex:"1",children:[(0,Qn.jsx)(ta,{$pr:1,$pl:1,children:W}),(0,Qn.jsx)(ta,{$paddingLeft:2,children:z})]})]})]})]})})}var ZT,eP,tP,nP=["value","label","municipalityId","typeName","year","onChange"];function rP(e){var n=e.value,r=e.label,o=e.municipalityId,i=e.typeName,a=e.year,u=e.onChange,s=Ct(e,nP),l=br((0,t.useState)(!1),2),c=l[0],f=l[1],d=function(){var e=Vs(Fs().mark((function e(t){var n,r,s,l;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.target.files[0],f(!0),(r=new FormData).append("file",n),r.append("municipalityId",o),r.append("typeName",i),r.append("year",a),e.next=9,fetch("/document",{method:"POST",body:r});case 9:return s=e.sent,e.next=12,s.json();case 12:l=e.sent,console.log(l),u(l.url),f(!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Qn.jsx)(Qn.Fragment,{children:n?(0,Qn.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Qn.jsx)(Uc,{label:r,type:"text",value:c?"Loading...":n.substr(n.lastIndexOf("/")+1)}),(0,Qn.jsx)(Sa,{onClick:function(){return u(void 0)},children:"Breyta skr\xe1"})]}):(0,Qn.jsx)(Uc,Et({type:"file",label:r,onChange:d},s))})}var oP,iP=ur(ZT||(ZT=Xn(["\n  fragment DocumentsModal_DocumentCollection on DocumentCollection {\n    id\n    year\n    name\n    email\n    climatePolicy\n    climateGoal\n    actionPlan\n    population\n    checklist\n    confirmed\n  }\n"]))),aP=ur(eP||(eP=Xn(["\n  ","\n  query GetDocuments($where: DocumentCollectionWhereUniqueInput!) {\n    documentCollection(where: $where) {\n      ...DocumentsModal_DocumentCollection\n    }\n  }\n"])),iP),uP=ur(tP||(tP=Xn(["\n  ","\n  mutation UpsertDocuments(\n    $where: DocumentCollectionWhereUniqueInput!\n    $create: DocumentCollectionCreateInput!\n    $update: DocumentCollectionUpdateInput!\n  ) {\n    upsertOneDocumentCollection(\n      where: $where\n      create: $create\n      update: $update\n    ) {\n      ...DocumentsModal_DocumentCollection\n    }\n  }\n"])),iP);function sP(e){var n,r,o,i,a,u=e.modal,s=Jp().municipality,l=(new Date).getFullYear(),c=ha(rh(l,2010)),f=br((0,t.useState)(""),2),d=f[0],p=f[1],h=br((0,t.useState)(""),2),v=h[0],y=h[1],m=br((0,t.useState)(l),2),g=m[0],b=m[1],w=Co(aP,{variables:{where:{municipalityId_year:{municipalityId:s.id,year:g}}}}).data,x=br((0,t.useState)(null===w||void 0===w||null===(n=w.documentCollection)||void 0===n?void 0:n.population),2),k=x[0],_=x[1],O=br((0,t.useState)(null===w||void 0===w||null===(r=w.documentCollection)||void 0===r?void 0:r.climatePolicy),2),S=O[0],E=O[1],C=br((0,t.useState)(null===w||void 0===w||null===(o=w.documentCollection)||void 0===o?void 0:o.climateGoal),2),j=C[0],T=C[1],P=br((0,t.useState)(null===w||void 0===w||null===(i=w.documentCollection)||void 0===i?void 0:i.actionPlan),2),D=P[0],M=P[1],A=br((0,t.useState)(null===w||void 0===w||null===(a=w.documentCollection)||void 0===a?void 0:a.checklist),2),N=A[0],I=A[1];(0,t.useEffect)((function(){if(null!==w&&void 0!==w&&w.documentCollection){var e=w.documentCollection,t=e.name,n=e.email,r=e.climatePolicy,o=e.climateGoal,i=e.actionPlan,a=e.population,u=e.checklist;p(t),y(n),E(r||""),T(o||""),M(i||""),_(a),I(u)}else p(""),y(""),E(""),T(""),M(""),_(null),I("")}),[w]);var R=br(lf(uP),2),F=R[0],L=R[1];(0,t.useEffect)((function(){if(null!==L&&void 0!==L&&L.data){var e=L.data.upsertOneDocumentCollection,t=e.name,n=e.email,r=e.climatePolicy,o=e.climateGoal,i=e.actionPlan,a=e.population,u=e.checklist;p(t),y(n),E(r),T(o),M(i),_(a),I(u)}}),[null===L||void 0===L?void 0:L.data]);var V=(0,t.useCallback)(Vs(Fs().mark((function e(){var t,n,r;return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F({variables:{where:{municipalityId_year:{municipalityId:s.id,year:g}},create:{name:d,email:v,year:g,municipality:{connect:{id:s.id}},climatePolicy:S,climateGoal:j,actionPlan:D,population:k,checklist:N},update:{name:{set:d},email:{set:v},climatePolicy:{set:S},climateGoal:{set:j},actionPlan:{set:D},population:{set:k},checklist:{set:N},confirmed:{set:!1}}}});case 2:t=e.sent,n=t.data,r=n.upsertOneDocumentCollection.id,fetch("/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({documentsId:r})});case 6:case"end":return e.stop()}}),e)}))),[d,v,F,s.id,g,S,j,D,k,N]);return(0,Qn.jsx)(As.modalOuter,{children:(0,Qn.jsx)(As.inner,{children:(0,Qn.jsx)(As.content,{children:(0,Qn.jsxs)(ta,{$display:"flex",$flexDirection:"column",$height:"full",children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Skila g\xf6gnum til Umhverfisstofnunar"}),(0,Qn.jsx)(Yi,{paddingY:2,color:"black80",fontWeight:400,children:"Losunart\xf6lur rekstrareininga ver\xf0ur skila\xf0 til Umhverfisstofnunar og g\xf6gnin fyrir \xfea\xf0 \xe1r ver\xf0a l\xe6st."}),(0,Qn.jsx)("p",{children:"Athugi\xf0 a\xf0 til \xfeess a\xf0 geta sta\xf0fest skilin \xfearf a\xf0 setja inn \xf6ll umbe\xf0in skj\xf6l. Ef sum g\xf6gn (stefnan, markmi\xf0asetning og a\xf0ger\xf0a\xe1\xe6tlun) eru \xed einu skjali m\xe1 hla\xf0a sama skjalinu inn \xed vi\xf0eigandi reiti."}),(0,Qn.jsx)("p",{children:"Athugi\xf0 a\xf0 sk\xfdrt \xfatfylltur g\xe1tlisti tryggir g\xf3\xf0a uppl\xfdsingagj\xf6f til Umhverfis- og au\xf0lindar\xe1\xf0uneytisins."})]}),(0,Qn.jsxs)(As.scrollable,{children:[(0,Qn.jsx)(Yl,{$gridTemplateColumns:"repeat(6, 1fr)",$paddingY:2,children:(0,Qn.jsx)($l,{$gridColumn:"span 2",children:(0,Qn.jsx)(qp,{title:"T\xedmabil",options:c.map((function(e){return{label:"".concat(e),value:e}})),onChange:function(e){return b(Number(e.value))},renderLabel:function(e){return(0,Qn.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Qn.jsx)(qi,{children:e})," "]})}})})}),(0,Qn.jsxs)(Yl,{$gridTemplateColumns:{md:"1fr"},children:[(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"nafn",label:"Nafn \xe1byrg\xf0ara\xf0ila",value:d,onChange:function(e){p(e.target.value)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"netfang",label:"Netfang \xe1byrg\xf0ara\xf0ila",value:v,onChange:function(e){y(e.target.value)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(Uc,{id:"\xedb\xfaafj\xf6ldi",type:"number",label:"Fj\xf6ldi \xedb\xfaa",placeholder:"0",value:k,onChange:function(e){_(parseInt(e.target.value))}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(rP,{id:"loftslagsstefna",label:"Loftslagstefna",typeName:"climate-policy",year:g,municipalityId:s.id,value:S,onChange:function(e){return E(e)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(rP,{id:"markmi\xf0asetning",label:"Markmi\xf0asetning",typeName:"climate-goal",year:g,municipalityId:s.id,value:j,onChange:function(e){return T(e)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(rP,{id:"a\xf0ger\xf0a\xe1\xe6tlun",label:"A\xf0ger\xf0a\xe1\xe6tlun",typeName:"action-plan",year:g,municipalityId:s.id,value:D,onChange:function(e){return M(e)}})}),(0,Qn.jsx)($l,{children:(0,Qn.jsx)(rP,{id:"g\xe1tlisti",label:"G\xe1tlisti",typeName:"checklist",year:g,municipalityId:s.id,value:N,sublabel:(0,Qn.jsx)("a",{href:"".concat("","/gatlisti.docx"),children:"Smelltu h\xe9r til a\xf0 s\xe6kja g\xe1tlista"}),onChange:function(e){return I(e)}})})]})]}),(0,Qn.jsxs)(Yl,{$paddingY:4,$mt:"auto",children:[(0,Qn.jsx)($l,{$gridColumn:"3 / span 1",children:(0,Qn.jsx)(Sa,{variant:"secondary",onClick:function(){return u.hide()},fillWidth:!0,children:"Loka glugga"})}),(0,Qn.jsx)($l,{$gridColumn:"4 / span 1",children:(0,Qn.jsx)(Sa,{variant:"primary",onClick:function(){V(),u.hide()},fillWidth:!0,children:"Sta\xf0festa skil"})})]})]})})})})}var lP=ur(oP||(oP=Xn(["\n  query GetMunicipalityData(\n    $where: MunicipalityWhereUniqueInput!\n    $carbonFootprintWhere: EntityCarbonFootprintByYearWhereInput!\n  ) {\n    municipality(where: $where) {\n      id\n      entities {\n        id\n        name\n        carbonFootprintByYear(where: $carbonFootprintWhere) {\n          id\n          year\n          completed\n          drivingData {\n            ownedVehicles {\n              gasoline\n              diesel\n              metan\n              electricity\n            }\n            rentalVehicles {\n              gasoline\n              diesel\n              metan\n              electricity\n            }\n            taxi {\n              gasoline\n              diesel\n              metan\n              electricity\n            }\n            machineryAndEquipment {\n              gasoline\n              diesel\n              metan\n              electricity\n              kerosene\n            }\n          }\n          energy {\n            electricity\n            hotWater\n          }\n          flights {\n            icao {\n              total\n            }\n            domesticFlights {\n              AEYtoRVKtoAEY\n              EGStoRVKtoEGS\n              HFNtoRVKtoHFN\n              IFJtoRVKtoIFJ\n              VEYtoRVKtoVEY\n              other\n            }\n            internationalFlights {\n              oceania\n              continentalEurope\n              scandinavia\n              northAmerica\n              southAmerica\n              africa\n              asia\n            }\n          }\n          waste {\n            landfill\n            composting\n            incineration\n            plastic\n            paper\n            glass\n            metals\n            bulky\n          }\n          carbonOffset {\n            quantity\n          }\n        }\n      }\n    }\n  }\n"])));function cP(e){var t=e.heading,n=void 0===t?"Ekki n\xe6g g\xf6gn til a\xf0 birta yfirlit":t,r=e.text,o=void 0===r?"Skila \xfearf inn g\xf6gnum fyrir a.m.k. eina rekstrareiningu til a\xf0 h\xe6gt s\xe9 a\xf0 birta yfirlit":r;return(0,Qn.jsx)(ma,{heading:n,children:(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(qi,{children:o})})})}function fP(){var e=Jp(),t=e.managesMunicipalities,n=e.municipality,r=e.setMunicipality;return(0,Qn.jsx)(qp,{title:"Sveitarf\xe9lag",initialSelectedIndex:t.findIndex((function(e){return e.name===n.name})),options:t.map((function(e){return{label:"".concat(e.name),value:e.name}})),onChange:function(e){var n=t.find((function(t){return t.name===e.value}));n?r({id:n.id,name:n.name}):console.error("Could not find managed municipality with the name '".concat(e.value,"'"))},renderLabel:function(e){return(0,Qn.jsx)(ta,{$display:"flex",$alignItems:"center",children:(0,Qn.jsx)(qi,{children:e})})}})}var dP,pP,hP,vP=function(e,t){if(!e)return 0;var n=UT(e,t),r=n.driving,o=r.machineryAndEquipmentFootprint,i=r.ownedVehiclesFootprint,a=r.rentalVehiclesFootprint,u=r.taxiFootprint,s=n.energy,l=s.energyElectricityFootprint,c=s.energyHotWaterFootprint,f=n.flight,d=f.domesticFlightsFootprint,p=f.internationalFlightsFootprint,h=f.icaoFootprint,v=n.waste;return o+i+a+u+l+c+d+p+h+v.bulkyWasteFootprint+v.compostingFootprint+v.glassFootprint+v.incinerationFootprint+v.landfillFootprint+v.metalsFootprint+v.paperFootprint+v.plasticFootprint},yP=function(e){var t=e.flattenedData,n=e.globalCoefficients,r=e.municipalityData,o=JSON.parse(JSON.stringify(t[0]));t.slice(1).forEach((function(e){for(var t=0,n=Object.keys(e);t<n.length;t++)for(var r=n[t],i=0,a=Object.entries(e[r]);i<a.length;i++){var u=br(a[i],2),s=u[0],l=u[1];if(!l)return;if("number"===typeof l)o[r][s]+=l;else if("object"===typeof l)for(var c=0,f=Object.entries(e[r][s]);c<f.length;c++){var d=br(f[c],2),p=d[0],h=d[1];o[r][s][p]+=h}}}));var i=UT(o,n),a=i.driving,u=a.machineryAndEquipmentFootprint,s=a.ownedVehiclesFootprint,l=a.rentalVehiclesFootprint,c=a.taxiFootprint,f=i.energy,d=f.energyElectricityFootprint,p=f.energyHotWaterFootprint,h=i.flight,v=h.domesticFlightsFootprint,y=h.internationalFlightsFootprint,m=h.icaoFootprint,g=i.waste,b=g.bulkyWasteFootprint,w=g.compostingFootprint,x=g.glassFootprint,k=g.incinerationFootprint,_=g.landfillFootprint,O=g.metalsFootprint,S=g.paperFootprint,E=g.plasticFootprint,C=u+s+l+c,j=d+p,T=m+v+y,P=b+w+x+k+_+O+S+E,D=C+j+T+P,M=function(e){return 1e3*e}(i.carbonOffset.quantity),A=D-M,N=["#0077b6","#14746f","#a4133c","#ffb700","#036666"],I=[{name:"Eigin b\xedlar",value:s,color:"#023e8a"},{name:"B\xedlaleigub\xedlar",value:l,color:"#0077b6"},{name:"Leigub\xedlar",value:c,color:"#0096c7"},{name:"Vinnuv\xe9lar og t\xe6ki",value:u,color:"#00b4d8"},{name:"Rafmagn",value:d,color:"#14746f"},{name:"Heitt vatn",value:p,color:"#248277"},{name:"ICAO",value:m,color:"#800f2f"},{name:"Innanlandsflug",value:v,color:"#a4133c"},{name:"Millilandaflug",value:y,color:"#c9184a"},{name:"Ur\xf0un",value:_,color:"#ff8800"},{name:"Jar\xf0ger\xf0",value:w,color:"#ff9500"},{name:"Brennsla",value:k,color:"#ffa200"},{name:"Plast",value:E,color:"#ffb700"},{name:"Papp\xedr/pappi",value:S,color:"#ff8800"},{name:"Gler",value:x,color:"#ff9500"},{name:"M\xe1lmar",value:O,color:"#ffa200"},{name:"Gr\xf3fur \xfargangur",value:b,color:"#ffb700"}],R=[{name:"Akstur",value:C,color:"#03045e"},{name:"Orka",value:j,color:"#036666"},{name:"Flug",value:T,color:"#590d22"},{name:"\xdargangur",value:P,color:"#ff7b00"}],F=r.municipality.entities.map((function(e,t){var r=e.name,o=e.carbonFootprintByYear;return{name:r,value:vP(o[0],n),color:N[t%N.length]}}));return F.some((function(e){return e.value>0}))?(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsxs)(ma,{heading:"Yfirlit",columns:3,children:[(0,Qn.jsx)(wa,{title:"Losun",value:D}),(0,Qn.jsx)(wa,{title:"Kolefnisj\xf6fnun",value:M}),(0,Qn.jsx)(wa,{title:"Losun - kolefnisj\xf6fnun",value:A,numberColors:!0})]}),(0,Qn.jsx)(ma,{heading:"Flokkar",columns:4,children:(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(BT,{mainCategoryName:"Flokkur",data:I,dataByCategory:R,showLegend:!0})})}),(0,Qn.jsx)(ma,{heading:"Rekstrareiningar",children:(0,Qn.jsx)($l,{$gridColumn:"full",children:(0,Qn.jsx)(BT,{mainCategoryName:"Rekstrareining",data:F,showLegend:!0})})})]}):(0,Qn.jsx)(cP,{})};function mP(){var e=Jp().municipality,n=(new Date).getFullYear(),r=ha(rh(n,2010)),o=br((0,t.useState)(n),2),i=o[0],a=o[1],u=Co(lP,{variables:{where:{id:e.id},carbonFootprintWhere:{year:{equals:i},completed:{equals:!0}}}}),s=function(e){return e.municipality.entities.flatMap((function(e){return e.carbonFootprintByYear}))},l=(0,t.useCallback)((function(e){s(u.data).some((function(t){return t.id===e}))||u.refetch()}),[u]),c=Co($T,{variables:{where:{year:{equals:i}}}}),f=!0;u.data||(f=!1);var d=f?s(u.data):[];return f=d.length>0,(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsxs)(ta,{as:"header",$display:"flex",$alignItems:"flex-start",$justifyContent:"space-between",$flex:0,children:[(0,Qn.jsxs)(ta,{$display:"flex",$alignItems:"center",children:[(0,Qn.jsx)(fP,{}),(0,Qn.jsx)(qp,{title:"T\xedmabil",options:r.map((function(e){return{label:"".concat(e),value:e}})),onChange:function(e){return a(Number(e.value))},renderLabel:function(e){return(0,Qn.jsxs)(ta,{$display:"flex",$alignItems:"center",children:[(0,Qn.jsx)(qi,{children:e})," "]})}})]}),(0,Qn.jsxs)(ta,{$display:"grid",$alignItems:"center",$gridTemplateColumns:"1fr 1fr",$gridColumnGap:2,children:[(0,Qn.jsx)(Rs,{baseId:"dashboard-modal",disclosure:(0,Qn.jsx)(Sa,{variant:"primary",fillWidth:!0,children:"Skr\xe1 g\xf6gn"}),children:function(e){var t=e.modal;return(0,Qn.jsx)(JT,{modal:t,onSubmit:l})}}),(0,Qn.jsx)(Rs,{baseId:"dashboard-modal",disclosure:(0,Qn.jsx)(Sa,{variant:"secondary",fillWidth:!0,children:"Skila til UST"}),children:function(e){var t=e.modal;return(0,Qn.jsx)(sP,{modal:t})}})]})]}),f?(0,Qn.jsx)(yP,{flattenedData:d,municipalityData:u.data,globalCoefficients:c.data.globalCoefficients[0]}):(0,Qn.jsx)(cP,{})]})}var gP=ur(dP||(dP=Xn(["\n  fragment EntityModalFragment on Entity {\n    id\n    name\n  }\n"]))),bP=ur(pP||(pP=Xn(["\n  ","\n  query EntityQuery($where: EntityWhereUniqueInput!) {\n    entity(where: $where) {\n      ...EntityModalFragment\n    }\n  }\n"])),gP),wP=ur(hP||(hP=Xn(["\n  ","\n  mutation UpsertEntityMutation(\n    $create: EntityCreateInput!\n    $update: EntityUpdateInput!\n    $where: EntityWhereUniqueInput!\n  ) {\n    upsertOneEntity(create: $create, update: $update, where: $where) {\n      ...EntityModalFragment\n    }\n  }\n"])),gP);function xP(e){var n,r,o=e.modal,i=e.entityId,a=e.municipality,u=e.onCreateNewEntity,s=Co(bP,{skip:"undefined"===typeof i,variables:{where:{id:i}}}).data,l=br(lf(wP),1)[0],c=br(t.useState({}),2),f=c[0],d=c[1];t.useEffect((function(){return d((null===s||void 0===s?void 0:s.entity)||{})}),[s]);var p=function(){o.hide(),d({name:""})},h=t.useCallback((function(){return l({variables:{create:{name:f.name,municipality:{connect:{id:a.id}}},update:{name:{set:f.name}},where:{id:(null===s||void 0===s?void 0:s.entity.id)||-1}}})}),[l,f.name,a.id,null===s||void 0===s?void 0:s.entity.id]);return(0,Qn.jsx)(As.modalOuter,{children:(0,Qn.jsx)(As.inner,{children:(0,Qn.jsxs)(As.content,{children:[(0,Qn.jsx)(As.scrollable,{children:(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:null!==s&&void 0!==s&&null!==(n=s.entity)&&void 0!==n&&n.name?s.entity.name:"Skr\xe1 n\xfdja rekstrareiningu"}),(0,Qn.jsx)(Yi,{paddingY:2,color:"black80",fontWeight:400,children:null!==s&&void 0!==s&&null!==(r=s.entity)&&void 0!==r&&r.name?"Breyta skr\xe1ningu hj\xe1 "+s.entity.name:"Skr\xe1 n\xfdja rekstrareiningu hj\xe1 "+a.name})]}),(0,Qn.jsx)(ta,{$paddingY:1,children:(0,Qn.jsx)(Uc,{id:"entity.name",type:"string",label:"Nafn rekstrareiningu",value:f.name,onChange:function(e){return d({name:e.target.value})}})})]})}),(0,Qn.jsxs)(As.bottom,{children:[(0,Qn.jsx)(ta,{$paddingRight:2,children:(0,Qn.jsx)(Sa,{variant:"secondary",onClick:function(){return p()},children:"H\xe6tta vi\xf0"})}),(0,Qn.jsx)(ta,{$paddingLeft:2,children:(0,Qn.jsx)(Sa,{variant:"primary",onClick:Vs(Fs().mark((function e(){return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:u&&u(),p();case 4:case"end":return e.stop()}}),e)}))),children:"Vista"})})]})]})})})}var kP,_P=function(e){var n=e.entity,r=e.municipality,o=br(t.useState(),2),i=o[0],a=o[1],u=ha(rh((new Date).getFullYear(),2010));return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:n.name}),(0,Qn.jsx)("td",{children:ba(n.updatedAt)}),(0,Qn.jsx)(Rs,{baseId:"establishment-modal",disclosure:(0,Qn.jsx)(ta,{$display:"flex",$gridColumnGap:$n.grid.gap,as:"td",children:u.map((function(e){var t=n.carbonFootprintByYear.find((function(t){return t.year===e})),r=t?t.isVerified?"blue":t.completed?"green":"yellow":"yellow";return(0,Qn.jsx)(Sa,{variant:"pill",color:r,fillWidth:!0,onClick:function(){return a({entityId:n.id,year:e})},children:e},e)}))}),children:function(e){var t=e.modal;return(0,Qn.jsx)(JT,{modal:t,chosenYear:i})}}),(0,Qn.jsx)("td",{children:(0,Qn.jsx)(Rs,{baseId:"edit-entity-modal",disclosure:(0,Qn.jsx)(Sa,{variant:"pill",icon:"setting",iconSize:18,iconPosition:"after"}),children:function(e){var t=e.modal;return(0,Qn.jsx)(xP,{modal:t,municipality:r,entityId:n.id})}})})]},n.id)};function OP(){var e=Jp().municipality,t=Co(Yp,{variables:{where:{id:e.id}}}),n=t.data,r=t.loading,o=t.refetch;return r||"undefined"===typeof n?null:(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsxs)(ta,{as:"header",$display:"flex",$alignItems:"flex-start",$justifyContent:"space-between",$flex:0,children:[(0,Qn.jsx)(fP,{}),(0,Qn.jsx)(ta,{$display:"flex",children:(0,Qn.jsx)(Rs,{baseId:"create-entity-modal",disclosure:(0,Qn.jsx)(Sa,{alignment:"end",fillWidth:!0,children:"N\xfd rekstrareining"}),children:function(e){var t=e.modal;return(0,Qn.jsx)(xP,{modal:t,municipality:n.municipality,onCreateNewEntity:function(){o()}})}})})]}),(0,Qn.jsx)(ma,{children:0===n.municipality.entities.length?(0,Qn.jsx)($l,{$gridColumn:"span 2",children:"Engin skr\xe1\xf0 rekstrareining."}):(0,Qn.jsxs)(AT,{horizontalPadding:!0,centered:!0,backgroundColor:"white",children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:"Stofnun"}),(0,Qn.jsx)("th",{children:"S\xed\xf0ast uppf\xe6rt"}),(0,Qn.jsx)("th",{children:"Skr\xe1ning"}),(0,Qn.jsx)("th",{children:"Stillingar"})]})}),n.municipality.entities.map((function(e){return(0,Qn.jsx)(_P,{municipality:n.municipality,entity:e},e.id)}))]})})]})}function SP(e){var n=e.id,r=e.label,o=e.value,i=e.onBlur,a=void 0===i?function(){}:i,u=e.placeholder,s=e.required,l=e.onValueChange,c=br(nc(!1),2),f=c[0],d=c[1],p=(0,t.useRef)(null);return(0,Qn.jsx)(Kl,{children:(0,Qn.jsxs)(Ql,{focused:f,children:[(0,Qn.jsx)(Ki,{as:"label",color:"black80",htmlFor:n,paddingBottom:2,onClick:function(){p.current&&p.current.focus()},children:r}),(0,Qn.jsx)(Ic,{value:o,id:n,getInputRef:p,onFocus:d,onBlur:function(e){d(),a(e)},inputMode:"decimal",format:"######-####",mask:"_",placeholder:u,required:s,onValueChange:l,customInput:Gl})]})})}var EP,CP=function(e){return e.ADMIN="ADMIN",e.MANAGER="MANAGER",e.USER="USER",e}({}),jP=ur(kP||(kP=Xn(["\n  mutation UpsertUserWithAccessToPrincipality(\n    $where: UserWhereUniqueInput!\n    $create: UserCreateInput!\n    $update: UserUpdateInput!\n  ) {\n    upsertOneUser(where: $where, create: $create, update: $update) {\n      kennitala\n    }\n  }\n"])));function TP(e){var n=e.modal,r=e.onCreated,o=br(t.useState(null),2),i=o[0],a=o[1],u=br(t.useState(null),2),s=u[0],l=u[1],c=br(t.useState(!1),2),f=c[0],d=c[1],p=Jp(),h=p.municipality,v=p.role,y=br(lf(jP),1)[0];return(0,Qn.jsx)(As.modalOuter,{children:(0,Qn.jsx)(As.inner,{children:(0,Qn.jsxs)(As.content,{children:[(0,Qn.jsx)(As.scrollable,{children:(0,Qn.jsxs)("div",{children:[(0,Qn.jsxs)(ta,{$paddingTop:4,$paddingBottom:1,children:[(0,Qn.jsx)(Hi,{children:"Gefa a\xf0gang a\xf0 sveitarf\xe9lagi"}),(0,Qn.jsx)(Yi,{paddingY:2,color:"black80",fontWeight:400,children:"Gefur notanda a\xf0gang a\xf0 \xf6llum rekstrareiningum \xed sveitarf\xe9laginu og a\xf0 skila g\xf6gnum til Umhverfisstofnunar."})]}),(0,Qn.jsx)(ta,{$paddingY:1,$display:"flex",children:(0,Qn.jsx)(SP,{id:"user.kennitala",label:"Kennitala notanda",value:i,onValueChange:function(e){return a(e.value)},placeholder:"______-____"})}),(0,Qn.jsx)(ta,{$paddingY:1,$display:"flex",children:(0,Qn.jsx)(Uc,{id:"user.fullname",type:"string",label:"Nafn notanda",value:s,onChange:function(e){return l(e.target.value)}})}),"ADMIN"===v&&(0,Qn.jsx)(ta,{$paddingY:1,$display:"flex",children:(0,Qn.jsx)(Uc,{label:"Hefur a\xf0gang a\xf0 \xf6llum sveitarf\xe9l\xf6gum og yfirfer\xf0 skila",type:"checkbox",checked:f,onChange:function(e){return d(e.target.checked)}})})]})}),(0,Qn.jsxs)(As.bottom,{children:[(0,Qn.jsx)(ta,{$paddingRight:2,children:(0,Qn.jsx)(Sa,{variant:"secondary",onClick:n.hide,children:"H\xe6tta vi\xf0"})}),(0,Qn.jsx)(ta,{$paddingLeft:2,children:(0,Qn.jsx)(Sa,{variant:"primary",onClick:Vs(Fs().mark((function e(){return Fs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y({variables:{where:{kennitala:i},update:{managesMunicipalities:{connect:[{id:h.id}]}},create:{kennitala:i,fullname:s,role:CP[f?"ADMIN":"MANAGER"],managesMunicipalities:{connect:[{id:h.id}]}}}});case 2:a(""),l(""),d(!1),r(),n.hide();case 7:case"end":return e.stop()}}),e)}))),children:"Gefa a\xf0gang"})})]})]})})})}var PP=ur(EP||(EP=Xn(["\n  query SettingsQuery($where: MunicipalityWhereUniqueInput!) {\n    municipality(where: $where) {\n      id\n      name\n      managers {\n        kennitala\n        fullname\n      }\n    }\n  }\n"])));function DP(){var e=Jp().municipality,t=Co(PP,{variables:{where:{id:e.id}}}),n=t.data,r=t.loading,o=t.refetch;return!r&&n&&n.municipality?(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsxs)(ta,{as:"header",$display:"flex",$alignItems:"flex-start",$justifyContent:"space-between",$flex:0,children:[(0,Qn.jsx)(fP,{}),(0,Qn.jsx)(ta,{$display:"flex",children:(0,Qn.jsx)(Rs,{baseId:"create-entity-modal",disclosure:(0,Qn.jsx)(Sa,{alignment:"end",fillWidth:!0,children:"N\xfdr notandi"}),children:function(e){var t=e.modal;return(0,Qn.jsx)(TP,{modal:t,onCreated:function(){return o()}})}})})]}),(0,Qn.jsx)(ma,{children:(0,Qn.jsxs)(AT,{horizontalPadding:!0,backgroundColor:"white",children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:"Nafn"}),(0,Qn.jsx)("th",{children:"Kennitala"})]})}),n.municipality.managers.map((function(e){return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:e.fullname}),(0,Qn.jsx)("td",{children:e.kennitala})]},e.kennitala)}))]})})]}):null}var MP,AP,NP,IP,RP=["onBlur","value","id"],FP=function(e){var n=e.onBlur,r=e.value,o=e.id,i=(Ct(e,RP),br(nc(!1),2)),a=i[0],u=i[1],s=br(t.useState(r.toString()),2),l=s[0],c=s[1],f=t.useCallback((function(){var e=parseFloat(l);r!==e&&(u(),n(e))}),[l,n,u,r]);return(0,Qn.jsx)(Xl,{focused:a,onBlur:f,children:(0,Qn.jsx)(Ac,{id:o,value:l,onValueChange:function(e){var t=e.value;c(t)},inputMode:"decimal",thousandSeparator:".",decimalSeparator:",",customInput:Jl})})},LP=[{title:"Eigin B\xedlar",coefficients:[{key:"ownedVehiclesGasoline",label:"Bens\xedn (kg/l\xedtrar)"},{key:"ownedVehiclesDiesel",label:"D\xedsill (kg/l\xedtrar)"},{key:"ownedVehiclesMetan",label:"Metan (kg/m\xb3)"},{key:"ownedVehiclesElectricity",label:"Rafmagn (kg/kWh)"}]},{title:"B\xedlaleigub\xedlar",coefficients:[{key:"rentalVehiclesGasoline",label:"Bens\xedn (kg/l\xedtrar)"},{key:"rentalVehiclesDiesel",label:"D\xedsill (kg/l\xedtrar)"},{key:"rentalVehiclesMetan",label:"Metan (kg/m\xb3)"},{key:"rentalVehiclesElectricity",label:"Rafmagn (kg/kWh)"}]},{title:"Leigub\xedlar",coefficients:[{key:"taxiGasoline",label:"Bens\xedn (kg/km)"},{key:"taxiDiesel",label:"D\xedsill (kg/km)"},{key:"taxiMetan",label:"Metan (kg/km)"},{key:"taxiElectricity",label:"Rafmagn (kg/km)"}]},{title:"Vinnuv\xe9lar og t\xe6ki",coefficients:[{key:"machineryGasoline",label:"Bens\xedn (kg/l\xedtrar)"},{key:"machineryDiesel",label:"D\xedsill (kg/l\xedtrar)"},{key:"machineryMetan",label:"Metan (kg/m\xb3)"},{key:"machineryElectricity",label:"Rafmagn (kg/kWh)"},{key:"machineryKerosene",label:"Steinol\xeda (kg/l\xedtrar)"}]},{title:"Orka",coefficients:[{key:"energyElectricity",label:"Rafmagn (kg/kWh)"},{key:"energyHotWater",label:"Heitt vatn (kg/m\xb3)"}]},{title:"Innanlandsflug",coefficients:[{key:"flightAEY_RVK",label:"AEY-RVK-AEY"},{key:"flightEGS_RVK",label:"EGS-RVK-EGS"},{key:"flightVEY_RVK",label:"VEY-RVK-VEY"},{key:"flightHFN_RVK",label:"HFN-RVK-HFN"},{key:"flightIFJ_RVK",label:"IFJ-RVK-IFJ"},{key:"flightOther",label:"Anna\xf0"}]},{title:"Millilandaflug",coefficients:[{key:"flightOceania_RVK",label:"Eyja\xe1lfa"},{key:"flightContinentalEurope_RVK",label:"Evr\xf3pa, meginland"},{key:"flightScandinavia_RVK",label:"Evr\xf3pa, Nor\xf0url\xf6nd, Bretlandseyjar"},{key:"flightNorthAmerica_RVK",label:"N-Amer\xedka"},{key:"flightSouthAmerica_RVK",label:"S-Amer\xedka"},{key:"flightAfrica_RVK",label:"Afr\xedka"},{key:"flightAsia_RVK",label:"As\xeda"}]},{title:"\xdargangur",coefficients:[{key:"wasteLandfill",label:"Ur\xf0un"},{key:"wasteComposting",label:"Jar\xf0ger\xf0"},{key:"wasteIncineration",label:"Brennsla"},{key:"wastePlastic",label:"Plast"},{key:"wastePaper",label:"Papp\xedr/pappi"},{key:"wasteGlass",label:"Gler"},{key:"wasteMetal",label:"M\xe1lmar"},{key:"wasteBulky",label:"Gr\xf3fur \xfargangur"}]}],VP=function(e){var t=e.oldValue,n=(e.coefficientType,e.year,e.onBlur);return(0,Qn.jsx)(FP,{label:"",value:t,onBlur:n})};function BP(){var e=Co(KT,{fetchPolicy:"network-only"}).data,n=br(lf(QT),1)[0];return e?(0,Qn.jsx)(ma,{children:(0,Qn.jsxs)(AT,{horizontalPadding:!0,children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:"Gildi per \xe1r"}),e.globalCoefficients.map((function(e){var t=e.year;return(0,Qn.jsx)("th",{children:t},t)}))]})}),e.globalCoefficients.length>0?(0,Qn.jsx)("tbody",{children:LP.map((function(r){var o=r.title,i=r.coefficients;return(0,Qn.jsxs)(t.Fragment,{children:[(0,Qn.jsx)("tr",{children:(0,Qn.jsx)("td",{colSpan:e.globalCoefficients.length+1,children:(0,Qn.jsx)(Qi,{children:o})})},o),i.map((function(t){var r=t.key,o=t.label;return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:o}),e.globalCoefficients.map((function(e){var t=e.year,o=e[r],i=r;return(0,Qn.jsx)("td",{style:{textAlign:"right"},children:(0,Qn.jsx)(VP,{oldValue:o,coefficientType:i,year:t,onBlur:function(e){e!==o&&n({variables:{where:{year:t},data:Ot({},i,{set:e})}})}})},r+e.year)}))]},r+"_label")}))]},o)}))}):null]})}):null}var UP=ur(MP||(MP=Xn(["\n  fragment DocumentCollectionFragment on DocumentCollection {\n    id\n    year\n    name\n    email\n    climatePolicy\n    climateGoal\n    actionPlan\n    population\n    checklist\n    confirmed\n    createdAt\n    municipality {\n      id\n      name\n    }\n  }\n"]))),WP=ur(AP||(AP=Xn(["\n  ","\n  query DocumentsQuery($where: QueryDocumentCollectionsWhereInput) {\n    documentCollections(where: $where, orderBy: { createdAt: desc }) {\n      ...DocumentCollectionFragment\n    }\n  }\n"])),UP),zP=ur(NP||(NP=Xn(["\n  ","\n  mutation ConfirmDocumentCollection(\n    $id: Int!\n  ) {\n    verifyDocuments(\n      id: $id\n    ) {\n      ...DocumentCollectionFragment\n    }\n  }\n"])),UP),qP=Ae.a(IP||(IP=Xn(["\n  color: #0052cc;\n  font-weight: 500;\n  text-decoration: underline;\n"]))),HP=function(e){var t=e.href,n=e.children;return t?(0,Qn.jsx)(qP,{href:t,target:"_blank",children:n}):(0,Qn.jsx)("span",{children:"Vantar g\xf6gn"})};function YP(){var e=Co(WP),t=e.data,n=e.loading,r=br(lf(zP,{refetchQueries:[WP,"DocumentsQuery"]}),1)[0];return!n&&t&&t.documentCollections?(0,Qn.jsx)(Qn.Fragment,{children:(0,Qn.jsx)(ma,{children:(0,Qn.jsxs)(AT,{horizontalPadding:!0,backgroundColor:"white",children:[(0,Qn.jsx)("thead",{children:(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("th",{children:"Sveitarf\xe9lag"}),(0,Qn.jsx)("th",{children:"T\xedmabil"}),(0,Qn.jsx)("th",{children:"\xc1byrg\xf0ara\xf0ili"}),(0,Qn.jsx)("th",{children:"Dags skila\xf0"}),(0,Qn.jsx)("th",{children:"Fj\xf6ldi \xedb\xfaa"}),(0,Qn.jsx)("th",{children:"Loftslagstefna"}),(0,Qn.jsx)("th",{children:"Markmi\xf0asetning"}),(0,Qn.jsx)("th",{children:"A\xf0ger\xf0a\xe1\xe6tlun"}),(0,Qn.jsx)("th",{children:"G\xe1tlisti"})]})}),(0,Qn.jsx)("tbody",{children:t.documentCollections.map((function(e){return(0,Qn.jsxs)("tr",{children:[(0,Qn.jsx)("td",{children:e.municipality.name}),(0,Qn.jsx)("td",{children:e.year}),(0,Qn.jsx)("td",{children:e.email&&e.name?(0,Qn.jsx)("a",{href:"mailto:".concat(e.email),children:e.name}):"Vantar nafn og/e\xf0a email"}),(0,Qn.jsx)("td",{children:ba(e.createdAt)}),(0,Qn.jsx)("td",{children:e.population}),(0,Qn.jsx)("td",{children:(0,Qn.jsx)(HP,{href:e.climatePolicy,children:"S\xe6kja"})}),(0,Qn.jsx)("td",{children:(0,Qn.jsx)(HP,{href:e.climateGoal,children:"S\xe6kja"})}),(0,Qn.jsx)("td",{children:(0,Qn.jsx)(HP,{href:e.actionPlan,children:"S\xe6kja"})}),(0,Qn.jsx)("td",{children:(0,Qn.jsx)(HP,{href:e.checklist,children:"S\xe6kja"})}),(0,Qn.jsx)("td",{children:e.confirmed?(0,Qn.jsx)(qi,{color:"green",fontWeight:"500",children:"Sta\xf0fest"}):(0,Qn.jsx)(Sa,{alignment:"end",fillWidth:!0,onClick:function(){return r({variables:{id:e.id}})},children:"Sta\xf0festa skil"})})]},e.id)}))})]})})}):null}var $P=["children"];function KP(e){var t=e.children,n=Ct(e,$P),r=Jp().municipality;return(0,Qn.jsx)(jn,Et(Et({},n),{},{render:function(e){var n=e.location;return r?t:(0,Qn.jsx)(_n,{to:{pathname:"/auth",state:{from:n}}})}}))}var QP=function(){return(0,Qn.jsx)(th,{children:(0,Qn.jsx)("div",{className:"App",children:(0,Qn.jsx)(In,{children:(0,Qn.jsx)(Nn,{children:(0,Qn.jsx)(da,{children:(0,Qn.jsxs)(pa,{children:[(0,Qn.jsx)(fa,{}),(0,Qn.jsxs)(Gn,{children:[(0,Qn.jsx)(_n,{from:"/",to:"/yfirlit"}),(0,Qn.jsx)(KP,{exact:!0,path:"/yfirlit",children:(0,Qn.jsx)(mP,{})}),(0,Qn.jsx)(KP,{exact:!0,path:"/rekstrareiningar",children:(0,Qn.jsx)(OP,{})}),(0,Qn.jsx)(KP,{exact:!0,path:"/stillingar",children:(0,Qn.jsx)(DP,{})}),(0,Qn.jsx)(KP,{exact:!0,path:"/breytur",children:(0,Qn.jsx)(BP,{})}),(0,Qn.jsx)(KP,{exact:!0,path:"/skil",children:(0,Qn.jsx)(YP,{})})]})]})})})})})})};function GP(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return XP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XP(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZP(e,t,n){return t&&JP(e.prototype,t),n&&JP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var eD=function(){return"function"===typeof Symbol},tD=function(e){return eD()&&Boolean(Symbol[e])},nD=function(e){return tD(e)?Symbol[e]:"@@"+e};eD()&&!tD("observable")&&(Symbol.observable=Symbol("observable"));var rD=nD("iterator"),oD=nD("observable"),iD=nD("species");function aD(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function uD(e){var t=e.constructor;return void 0!==t&&null===(t=t[iD])&&(t=void 0),void 0!==t?t:mD}function sD(e){return e instanceof mD}function lD(e){lD.log?lD.log(e):setTimeout((function(){throw e}))}function cD(e){Promise.resolve().then((function(){try{e()}catch(TI){lD(TI)}}))}function fD(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=aD(t,"unsubscribe");n&&n.call(t)}}catch(TI){lD(TI)}}function dD(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function pD(e,t,n){e._state="running";var r=e._observer;try{var o=aD(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(dD(e),!o)throw n;o.call(r,n);break;case"complete":dD(e),o&&o.call(r)}}catch(TI){lD(TI)}"closed"===e._state?fD(e):"running"===e._state&&(e._state="ready")}function hD(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void cD((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(pD(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void pD(e,t,n);e._queue.push({type:t,value:n})}}var vD=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new yD(this);try{this._cleanup=t.call(void 0,n)}catch(TI){n.error(TI)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(dD(this),fD(this))},ZP(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),yD=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){hD(this._subscription,"next",e)},t.error=function(e){hD(this._subscription,"error",e)},t.complete=function(){hD(this._subscription,"complete")},ZP(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),mD=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new vD(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(TI){r(TI),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(uD(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(TI){return n.error(TI)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(uD(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(TI){return n.error(TI)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=uD(this),r=arguments.length>1,o=!1,i=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!o;if(o=!0,!a||r)try{i=e(i,t)}catch(TI){return n.error(TI)}else i=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(i),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=uD(this);return new o((function(t){var r,i=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===n.length?(r=void 0,t.complete()):e(o.from(n[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=uD(this);return new n((function(r){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(TI){return r.error(TI)}var i=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){r.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach((function(e){return e.unsubscribe()})),i.unsubscribe()}}))},t[oD]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=aD(t,oD);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return sD(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(tD("iterator")&&(r=aD(t,rD)))return new n((function(e){cD((function(){if(!e.closed){for(var n,o=GP(r.call(t));!(n=o()).done;){var i=n.value;if(e.next(i),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){cD((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"===typeof this?this:e)((function(e){cD((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},ZP(e,null,[{key:iD,get:function(){return this}}]),e}();function gD(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw ot(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(rt(1===r.length,73,r.length),n=r[0].name.value),Re(Re({},e),{definitions:Be([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function bD(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function wD(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"===typeof t)return t(n);var r=t&&t[n];return rt(r,74,n),r||null;default:return null}}eD()&&Object.defineProperty(mD,Symbol("extensions"),{value:{symbol:oD,hostReportError:lD},configurable:!0});var xD,kD=Object.assign((function(e){return JSON.stringify(e,_D)}),{reset:function(){xD=new Zr(to.canonicalStringify||1e3)}});function _D(e,t){if(t&&"object"===typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(OD))return t;var o=JSON.stringify(r),i=xD.get(o);if(!i){r.sort();var a=JSON.stringify(r);i=xD.get(a)||r,xD.set(o,i),xD.set(a,i)}var u=Object.create(n);return i.forEach((function(e){u[e]=t[e]})),u}}return t}function OD(e,t,n){return 0===t||n[t-1]<=e}function SD(e){return{__ref:String(e)}}function ED(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function CD(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return CD(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var i=(r||{})[n.name.value];e[t.value]=i}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return CD(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw ot(83,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&ro("canonicalStringify",(function(){return xD.size})),kD.reset();var jD=["connection","include","skip","client","rest","export","nonreactive"],TD=kD,PD=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),"".concat(n.connection.key,"(").concat(TD(o),")")}return n.connection.key}var i=e;if(t){var a=TD(t);i+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===jD.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(TD(n[e]),")"):i+="@".concat(e))})),i}),{setStringify:function(e){var t=TD;return TD=e,t}});function DD(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return CD(n,r,o,t)})),n}return null}function MD(e){return e.alias?e.alias.value:e.name.value}function AD(e,t,n){for(var r,o=0,i=t.selections;o<i.length;o++){if(ND(s=i[o])){if("__typename"===s.name.value)return e[MD(s)]}else r?r.push(s):r=[s]}if("string"===typeof e.__typename)return e.__typename;if(r)for(var a=0,u=r;a<u.length;a++){var s,l=AD(e,wD(s=u[a],n).selectionSet,n);if("string"===typeof l)return l}}function ND(e){return"Field"===e.kind}function ID(e){rt(e&&"Document"===e.kind,75);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw ot(76,e.kind);return e}));return rt(t.length<=1,77,t.length),e}function RD(e){return ID(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function FD(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function LD(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function VD(e){var t=RD(e);return rt(t&&"query"===t.operation,78),t}function BD(e){var t;ID(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var i=o.operation;if("query"===i||"mutation"===i||"subscription"===i)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw ot(82)}function UD(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&CD(t,e.variable.name,e.defaultValue)})),t}function WD(e,t){return t?t(e):mD.of()}function zD(e){return"function"===typeof e?new HD(e):e}function qD(e){return e.request.length<=1}var HD=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return mD.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(zD).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var o,i=zD(n),a=zD(r||new e(WD));return o=qD(i)&&qD(a)?new e((function(e){return t(e)?i.request(e)||mD.of():a.request(e)||mD.of()})):new e((function(e,n){return t(e)?i.request(e,n)||mD.of():a.request(e,n)||mD.of()})),Object.assign(o,{left:i,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=Re({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Re(Re({},n),"function"===typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Re({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?FD(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw ot(43,o)}return e}(t))))||mD.of()},e.concat=function(t,n){var r=zD(t);if(qD(r))return!1!==globalThis.__DEV__&&rt.warn(35,r),r;var o,i=zD(n);return o=qD(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||mD.of()}))||mD.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||mD.of()}))||mD.of()})),Object.assign(o,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(WD)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw ot(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),YD=n(7173),$D=n(3104),KD={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},QD=Object.freeze({});function GD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KD,r=void 0,o=Array.isArray(e),i=[e],a=-1,u=[],s=void 0,l=void 0,c=void 0,f=[],d=[],p=e;do{var h=++a===i.length,v=h&&0!==u.length;if(h){if(l=0===d.length?void 0:f[f.length-1],s=c,c=d.pop(),v){if(o)s=s.slice();else{for(var y={},m=0,g=Object.keys(s);m<g.length;m++){var b=g[m];y[b]=s[b]}s=y}for(var w=0,x=0;x<u.length;x++){var k=u[x][0],_=u[x][1];o&&(k-=w),o&&null===_?(s.splice(k,1),w++):s[k]=_}}a=r.index,i=r.keys,u=r.edits,o=r.inArray,r=r.prev}else{if(l=c?o?a:i[a]:void 0,null===(s=c?c[l]:p)||void 0===s)continue;c&&f.push(l)}var O,S=void 0;if(!Array.isArray(s)){if(!(0,$D.UG)(s))throw new Error("Invalid AST Node: ".concat((0,YD.Z)(s),"."));var E=XD(t,s.kind,h);if(E){if((S=E.call(t,s,l,c,f,d))===QD)break;if(!1===S){if(!h){f.pop();continue}}else if(void 0!==S&&(u.push([l,S]),!h)){if(!(0,$D.UG)(S)){f.pop();continue}s=S}}}if(void 0===S&&v&&u.push([l,s]),h)f.pop();else r={inArray:o,index:a,keys:i,edits:u,prev:r},i=(o=Array.isArray(s))?s:null!==(O=n[s.kind])&&void 0!==O?O:[],a=-1,u=[],c&&d.push(c),c=s}while(void 0!==r);return 0!==u.length&&(p=u[u.length-1][1]),p}function XD(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var o=n?r.leave:r.enter;if("function"===typeof o)return o}else{var i=n?e.leave:e.enter;if(i){if("function"===typeof i)return i;var a=i[t];if("function"===typeof a)return a}}}function JD(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;rt(n&&1===n.length,69,r);var o=n[0];rt(o.name&&"if"===o.name.value,70,r);var i=o.value;rt(i&&("Variable"===i.kind||"BooleanValue"===i.kind),71,r),t.push({directive:e,ifArgument:o})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t&&t[r.value.name.value],rt(void 0!==o,68,n.name.value)):o=r.value.value,"skip"===n.name.value?!o:o}))}function ZD(e,t,n){var r=new Set(e),o=r.size;return GD(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return QD}}),n?!r.size:r.size<o}function eM(e){return e&&ZD(["client","export"],e,!0)}var tM=function(e,t){var n;try{n=JSON.stringify(e)}catch(TI){var r=ot(39,t,TI.message);throw r.parseError=TI,r}return n};function nM(e){var t=null,n=null,r=!1,o=[],i=[];function a(e){if(!n){if(i.length){var t=i.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){n=e,i.slice().forEach((function(t){t[1](e)})),!t||t()}function s(){r=!0,i.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",u),e.removeListener("end",s),e.removeListener("finish",s),e.removeListener("close",s)},e.on("data",a),e.on("error",u),e.on("end",s),e.on("finish",s),e.on("close",s);var l={next:function(){return new Promise((function(e,t){return n?t(n):o.length?e({value:o.shift(),done:!1}):r?e({value:void 0,done:!0}):void i.push([e,t])}))}};return vt&&(l[Symbol.asyncIterator]=function(){return this}),l}function rM(e){var t={next:function(){return e.read()}};return vt&&(t[Symbol.asyncIterator]=function(){return this}),t}function oM(e){var t=e;if(function(e){return!!e.body}(e)&&(t=e.body),function(e){return!(!vt||!e[Symbol.asyncIterator])}(t))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return rM(t.getReader());if(function(e){return!!e.stream}(t))return rM(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,n){e.then((function(e){t({value:e,done:!1})})).catch(n)})))}};return vt&&(n[Symbol.asyncIterator]=function(){return this}),n}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return nM(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var iM=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},aM=Object.prototype.hasOwnProperty;function uM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sM(e)}function sM(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new cM,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var lM=function(e,t,n){return this.merge(e[n],t[n])},cM=function(){function e(e){void 0===e&&(e=lM),this.reconciler=e,this.isObject=Nr,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return Nr(t)&&Nr(e)?(Object.keys(t).forEach((function(o){if(aM.call(e,o)){var i=e[o];if(t[o]!==i){var a=n.reconciler.apply(n,Be([e,t,o],r,!1));a!==i&&((e=n.shallowCopyForMerge(e))[o]=a)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Nr(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):Re({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function fM(e){return"incremental"in e}function dM(e){return Nr(e)&&"payload"in e}function pM(e,t){var n=e,r=new cM;return fM(t)&&Oo(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,o=e.path,i=o.length-1;i>=0;--i){var a=o[i],u=!isNaN(+a)?[]:{};u[a]=t,t=u}n=r.merge(n,t)})),n}var hM=Object.prototype.hasOwnProperty;function vM(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),o=e.slice(n+1).trim();t[r]=o}})),t}function yM(e,t){if(e.status>=300){iM(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var mM=n(7810);var gM,bM={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return xM(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=_M("(",xM(e.variableDefinitions,", "),")"),o=xM(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?xM([t,xM([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+_M(" = ",r)+_M(" ",xM(o," "))},SelectionSet:function(e){return kM(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=_M("",t,": ")+n,u=a+_M("(",xM(r,", "),")");return u.length>80&&(u=a+_M("(\n",OM(xM(r,"\n")),"\n)")),xM([u,xM(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+_M(" ",xM(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return xM(["...",_M("on ",t),xM(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(_M("(",xM(r,", "),")")," ")+"on ".concat(n," ").concat(_M("",xM(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,mM.LZ)(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+xM(e.values,", ")+"]"},ObjectValue:function(e){return"{"+xM(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+_M("(",xM(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:wM((function(e){var t=e.directives,n=e.operationTypes;return xM(["schema",xM(t," "),kM(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:wM((function(e){return xM(["scalar",e.name,xM(e.directives," ")]," ")})),ObjectTypeDefinition:wM((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return xM(["type",t,_M("implements ",xM(n," & ")),xM(r," "),kM(o)]," ")})),FieldDefinition:wM((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(EM(n)?_M("(\n",OM(xM(n,"\n")),"\n)"):_M("(",xM(n,", "),")"))+": "+r+_M(" ",xM(o," "))})),InputValueDefinition:wM((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return xM([t+": "+n,_M("= ",r),xM(o," ")]," ")})),InterfaceTypeDefinition:wM((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return xM(["interface",t,_M("implements ",xM(n," & ")),xM(r," "),kM(o)]," ")})),UnionTypeDefinition:wM((function(e){var t=e.name,n=e.directives,r=e.types;return xM(["union",t,xM(n," "),r&&0!==r.length?"= "+xM(r," | "):""]," ")})),EnumTypeDefinition:wM((function(e){var t=e.name,n=e.directives,r=e.values;return xM(["enum",t,xM(n," "),kM(r)]," ")})),EnumValueDefinition:wM((function(e){return xM([e.name,xM(e.directives," ")]," ")})),InputObjectTypeDefinition:wM((function(e){var t=e.name,n=e.directives,r=e.fields;return xM(["input",t,xM(n," "),kM(r)]," ")})),DirectiveDefinition:wM((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(EM(n)?_M("(\n",OM(xM(n,"\n")),"\n)"):_M("(",xM(n,", "),")"))+(r?" repeatable":"")+" on "+xM(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return xM(["extend schema",xM(t," "),kM(n)]," ")},ScalarTypeExtension:function(e){return xM(["extend scalar",e.name,xM(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return xM(["extend type",t,_M("implements ",xM(n," & ")),xM(r," "),kM(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return xM(["extend interface",t,_M("implements ",xM(n," & ")),xM(r," "),kM(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return xM(["extend union",t,xM(n," "),r&&0!==r.length?"= "+xM(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return xM(["extend enum",t,xM(n," "),kM(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return xM(["extend input",t,xM(n," "),kM(r)]," ")}};function wM(e){return function(t){return xM([t.description,e(t)],"\n")}}function xM(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function kM(e){return _M("{\n",OM(xM(e,"\n")),"\n}")}function _M(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function OM(e){return _M("  ",e.replace(/\n/g,"\n  "))}function SM(e){return-1!==e.indexOf("\n")}function EM(e){return null!=e&&e.some(SM)}var CM=Object.assign((function(e){var t=gM.get(e);return t||(t=function(e){return GD(e,{leave:bM})}(e),gM.set(e,t)),t}),{reset:function(){gM=new Jr(to.print||2e3)}});CM.reset(),!1!==globalThis.__DEV__&&ro("print",(function(){return gM?gM.size:0}));var jM={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},TM=function(e,t){return t(e)};function PM(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},i={};n.forEach((function(e){o=Re(Re(Re({},o),e.options),{headers:Re(Re({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),i=Re(Re({},i),e.http)})),o.headers&&(o.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]=e[t]})),n}var r=Object.create(null);Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}}));var o=Object.create(null);return Object.keys(r).forEach((function(e){o[r[e].originalName]=r[e].value})),o}(o.headers,i.preserveHeaderCase));var a=e.operationName,u=e.extensions,s=e.variables,l=e.query,c={operationName:a,variables:s};return i.includeExtensions&&(c.extensions=u),i.includeQuery&&(c.query=t(l,CM)),{options:o,body:c}}function DM(e){return new mD((function(t){t.error(e)}))}var MM=n(3208),AM={kind:MM.h.FIELD,name:{kind:MM.h.NAME,value:"__typename"}};function NM(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===MM.h.FRAGMENT_SPREAD&&NM(t[e.name.value],t)}))}function IM(e){return NM(RD(e)||function(e){rt("Document"===e.kind,79),rt(e.definitions.length<=1,80);var t=e.definitions[0];return rt("FragmentDefinition"===t.kind,81),t}(e),bD(LD(e)))?null:e}function RM(e){var t=new Map,n=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))})),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach((function(t,n){n(e)&&(r=t)})),r}}function FM(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function LM(e,t){ID(t);for(var n=FM(""),r=FM(""),o=function(e){for(var t=0,o=void 0;t<e.length&&(o=e[t]);++t)if(!_o(o)){if(o.kind===MM.h.OPERATION_DEFINITION)return n(o.name&&o.name.value);if(o.kind===MM.h.FRAGMENT_DEFINITION)return r(o.name.value)}return!1!==globalThis.__DEV__&&rt.error(84),null},i=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===MM.h.OPERATION_DEFINITION&&++i;var u=RM(e),s=function(e){return Oo(e)&&e.map(u).some((function(e){return e&&e.remove}))},l=new Map,c=!1,f={enter:function(e){if(s(e.directives))return c=!0,null}},d=GD(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(s(e.directives))return c=!0,null;var a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){l.set(JSON.stringify(r),e)},leave:function(e,t,n,o){return e===l.get(JSON.stringify(o))?e:i>0&&e.selectionSet.selections.every((function(e){return e.kind===MM.h.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,c=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return c=!0,null}}});if(!c)return t;var p=function e(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach((function(n){e(r(n)).transitiveVars.forEach((function(e){t.transitiveVars.add(e)}))}))),t},h=new Set;d.definitions.forEach((function(e){e.kind===MM.h.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){h.add(e)})):e.kind!==MM.h.FRAGMENT_DEFINITION||0!==i||r(e.name.value).removed||h.add(e.name.value)})),h.forEach((function(e){p(r(e)).fragmentSpreads.forEach((function(e){h.add(e)}))}));var v={enter:function(e){if(t=e.name.value,!h.has(t)||r(t).removed)return null;var t}};return IM(GD(d,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return Re(Re({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var VM=Object.assign((function(e){return GD(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==MM.h.OPERATION_DEFINITION){var r=e.selections;if(r){var o=r.some((function(e){return ND(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}));if(!o){var i=n;if(!(ND(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Re(Re({},e),{selections:Be(Be([],r,!0),[AM],!1)})}}}}}})}),{added:function(e){return e===AM}});function BM(e){return"query"===BD(e).operation?e:GD(e,{OperationDefinition:{enter:function(e){return Re(Re({},e),{operation:"query"})}}})}function UM(e){return ID(e),LM([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var WM=Xe((function(){return fetch})),zM=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,o=e.print,i=void 0===o?TM:o,a=e.includeExtensions,u=e.preserveHeaderCase,s=e.useGETForQueries,l=e.includeUnusedVariables,c=void 0!==l&&l,f=Fe(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"===typeof fetch)throw ot(37)}(r||WM);var d={http:{includeExtensions:a,preserveHeaderCase:u},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new HD((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"===typeof t?t(e):t||"/graphql")}(e,n),o=e.getContext(),a={};if(o.clientAwareness){var u=o.clientAwareness,l=u.name,f=u.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p=Re(Re({},a),o.headers),h={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:p};if(ZD(["client"],e.query)){var v=UM(e.query);if(!v)return DM(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=v}var y,m=PM(e,i,jM,d,h),g=m.options,b=m.body;b.variables&&!c&&(b.variables=function(e,t){var n=Re({},e),r=new Set(Object.keys(e));return GD(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach((function(e){delete n[e]})),n}(b.variables,e.query)),g.signal||"undefined"===typeof AbortController||(y=new AbortController,g.signal=y.signal);var w=function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}(BD(e.query)),x=ZD(["defer"],e.query);if(s&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(g.method="GET"),x||w){g.headers=g.headers||{};var k="multipart/mixed;";w&&x&&!1!==globalThis.__DEV__&&rt.warn(38),w?k+="boundary=graphql;subscriptionSpec=1.0,application/json":x&&(k+="deferSpec=20220824,application/json"),g.headers.accept=k}if("GET"===g.method){var _=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=tM(t.variables,"Variables map")}catch(S){return{parseError:S}}r("variables",o)}if(t.extensions){var i=void 0;try{i=tM(t.extensions,"Extensions map")}catch(S){return{parseError:S}}r("extensions",i)}var a="",u=e,s=e.indexOf("#");-1!==s&&(a=e.substr(s),u=e.substr(0,s));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+n.join("&")+a}}(t,b),O=_.newURI,S=_.parseError;if(S)return DM(S);t=O}else try{g.body=tM(b,"Payload")}catch(S){return DM(S)}return new mD((function(n){var o=r||Xe((function(){return fetch}))||WM,i=n.next.bind(n);return o(t,g).then((function(t){var n;e.setContext({response:t});var r,o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return Le(this,void 0,void 0,(function(){var n,r,o,i,a,u,s,l,c,f,d,p,h,v,y,m,g,b,w,x,k,_,O,S;return Ve(this,(function(E){switch(E.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(S=e.headers)||void 0===S?void 0:S.get("content-type"),o="boundary=",i=(null===r||void 0===r?void 0:r.includes(o))?null===r||void 0===r?void 0:r.substring((null===r||void 0===r?void 0:r.indexOf(o))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(i),u="",s=oM(e),l=!0,E.label=1;case 1:return l?[4,s.next()]:[3,3];case 2:for(c=E.sent(),f=c.value,d=c.done,p="string"===typeof f?f:n.decode(f),h=u.length-a.length+1,l=!d,v=(u+=p).indexOf(a,h);v>-1;){if(y=void 0,_=[u.slice(0,v),u.slice(v+a.length)],u=_[1],m=(y=_[0]).indexOf("\r\n\r\n"),g=vM(y.slice(0,m)),(b=g["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(w=y.slice(m))if(x=yM(e,w),Object.keys(x).length>1||"data"in x||"incremental"in x||"errors"in x||"payload"in x)if(dM(x)){if(k={},"payload"in x){if(1===Object.keys(x).length&&null===x.payload)return[2];k=Re({},x.payload)}"errors"in x&&(k=Re(Re({},k),{extensions:Re(Re({},"extensions"in k?k.extensions:null),(O={},O[Ir]=x.errors,O))})),t(k)}else t(x);else if(1===Object.keys(x).length&&"hasNext"in x&&!x.hasNext)return[2];v=u.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,i):(r=e,function(e){return e.text().then((function(t){return yM(e,t)})).then((function(t){return Array.isArray(t)||hM.call(t,"data")||hM.call(t,"errors")||iM(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(t).then(i)})).then((function(){y=void 0,n.complete()})).catch((function(e){y=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){y&&y.abort()}}))}))},qM=HD.execute,HM=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,zM(t).request)||this;return n.options=t,n}return Ie(t,e),t}(HD),YM=function(){return Object.create(null)},$M=Array.prototype,KM=$M.forEach,QM=$M.slice,GM=Object.prototype.hasOwnProperty,XM=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YM;Vr(this,e),this.weakness=t,this.makeData=n}return Ur(e,[{key:"lookup",value:function(){return this.lookupArray(arguments)}},{key:"lookupArray",value:function(e){var t=this;return KM.call(e,(function(e){return t=t.getChildTrie(e)})),GM.call(t,"data")?t.data:t.data=this.makeData(QM.call(e))}},{key:"peek",value:function(){return this.peekArray(arguments)}},{key:"peekArray",value:function(e){for(var t=this,n=0,r=e.length;t&&n<r;++n){var o=t.mapFor(e[n],!1);t=o&&o.get(e[n])}return t&&t.data}},{key:"remove",value:function(){return this.removeArray(arguments)}},{key:"removeArray",value:function(e){var t;if(e.length){var n=e[0],r=this.mapFor(n,!1),o=r&&r.get(n);o&&(t=o.removeArray(QM.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}},{key:"getChildTrie",value:function(t){var n=this.mapFor(t,!0),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}},{key:"mapFor",value:function(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}]),e}();var JM=function(){return Object.create(null)},ZM=Array.prototype,eA=ZM.forEach,tA=ZM.slice,nA=Object.prototype.hasOwnProperty,rA=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JM;Vr(this,e),this.weakness=t,this.makeData=n}return Ur(e,[{key:"lookup",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.lookupArray(t)}},{key:"lookupArray",value:function(e){var t=this;return eA.call(e,(function(e){return t=t.getChildTrie(e)})),nA.call(t,"data")?t.data:t.data=this.makeData(tA.call(e))}},{key:"peek",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.peekArray(t)}},{key:"peekArray",value:function(e){for(var t=this,n=0,r=e.length;t&&n<r;++n){var o=this.weakness&&oA(e[n])?t.weak:t.strong;t=o&&o.get(e[n])}return t&&t.data}},{key:"getChildTrie",value:function(t){var n=this.weakness&&oA(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}}]),e}();function oA(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var iA=null,aA={},uA=1;function sA(e){try{return e()}catch(t){}}var lA="@wry/context:Slot",cA=sA((function(){return globalThis}))||sA((function(){return global}))||Object.create(null),fA=cA[lA]||Array[lA]||function(e){try{Object.defineProperty(cA,lA,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(function(){function e(){Vr(this,e),this.id=["slot",uA++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Ur(e,[{key:"hasValue",value:function(){for(var e=iA;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===aA)break;return e!==iA&&(iA.slots[this.id]=t),!0}return iA&&(iA.slots[this.id]=aA),!1}},{key:"getValue",value:function(){if(this.hasValue())return iA.slots[this.id]}},{key:"withValue",value:function(e,t,n,r){var o=Ot({__proto__:null},this.id,e),i=iA;iA={parent:i,slots:o};try{return t.apply(r,n)}finally{iA=i}}}],[{key:"bind",value:function(e){var t=iA;return function(){var n=iA;try{return iA=t,e.apply(this,arguments)}finally{iA=n}}}},{key:"noContext",value:function(e,t,n){if(!iA)return e.apply(n,t);var r=iA;try{return iA=null,e.apply(n,t)}finally{iA=r}}}]),e}());fA.bind,fA.noContext;var dA=new fA;var pA=Object.prototype.hasOwnProperty,hA=Array.from||function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t};function vA(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var yA=[],mA=100;function gA(e,t){if(!e)throw new Error(t||"assertion failure")}function bA(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function wA(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function xA(e){return e.slice(0)}var kA=function(){function e(t){Vr(this,e),this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return Ur(e,[{key:"peek",value:function(){if(1===this.value.length&&!SA(this))return _A(this),this.value[0]}},{key:"recompute",value:function(e){return gA(!this.recomputing,"already recomputing"),_A(this),SA(this)?function(e,t){MA(e),dA.withValue(e,OA,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{vA(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(TI){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,SA(e))return;CA(e)}(e);return wA(e.value)}(this,e):wA(this.value)}},{key:"setDirty",value:function(){this.dirty||(this.dirty=!0,EA(this),vA(this))}},{key:"dispose",value:function(){var e=this;this.setDirty(),MA(this),jA(this,(function(t,n){t.setDirty(),AA(t,e)}))}},{key:"forget",value:function(){this.dispose()}},{key:"dependOn",value:function(e){e.add(this),this.deps||(this.deps=yA.pop()||new Set),this.deps.add(e)}},{key:"forgetDeps",value:function(){var e=this;this.deps&&(hA(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),yA.push(this.deps),this.deps=null)}}]),e}();function _A(e){var t=dA.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),SA(e)?TA(t,e):PA(t,e),t}function OA(e,t){e.recomputing=!0;var n,r=e.normalizeResult;r&&1===e.value.length&&(n=xA(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!bA(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(ze){}}catch(TI){e.value[1]=TI}e.recomputing=!1}function SA(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function EA(e){jA(e,TA)}function CA(e){jA(e,PA)}function jA(e,t){var n=e.parents.size;if(n)for(var r=hA(e.parents),o=0;o<n;++o)t(r[o],e)}function TA(e,t){gA(e.childValues.has(t)),gA(SA(t));var n=!SA(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=yA.pop()||new Set;e.dirtyChildren.add(t),n&&EA(e)}function PA(e,t){gA(e.childValues.has(t)),gA(!SA(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,xA(t.value)):bA(n,t.value)||e.setDirty(),DA(e,t),SA(e)||CA(e)}function DA(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(yA.length<mA&&yA.push(n),e.dirtyChildren=null))}function MA(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){AA(e,n)})),e.forgetDeps(),gA(null===e.dirtyChildren)}function AA(e,t){t.parents.delete(e),e.childValues.delete(t),DA(e,t)}kA.count=0;var NA,IA={setDirty:!0,dispose:!0,forget:!0};function RA(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=dA.getValue();if(r){var o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"===typeof n&&(vA(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var o=n&&pA.call(IA,n)?n:"setDirty";hA(r).forEach((function(e){return e[o]()})),t.delete(e),vA(r)}},r}function FA(){for(var e=NA||(NA=new rA("function"===typeof WeakMap)),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.lookupArray(n)}var LA=new Set;function VA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),n=t.max,r=void 0===n?Math.pow(2,16):n,o=t.keyArgs,i=t.makeCacheKey,a=void 0===i?FA:i,u=t.normalizeResult,s=t.subscribe,l=t.cache,c=void 0===l?Qr:l,f="function"===typeof c?new c(r,(function(e){return e.dispose()})):c,d=function(){var t=a.apply(null,o?o.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);var n=f.get(t);n||(f.set(t,n=new kA(e)),n.normalizeResult=u,n.subscribe=s,n.forget=function(){return f.delete(t)});var r=n.recompute(Array.prototype.slice.call(arguments));return f.set(t,n),LA.add(f),dA.hasValue()||(LA.forEach((function(e){return e.clean()})),LA.clear()),r};function p(e){var t=e&&f.get(e);t&&t.setDirty()}function h(e){var t=e&&f.get(e);if(t)return t.peek()}function v(e){return!!e&&f.delete(e)}return Object.defineProperty(d,"size",{get:function(){return f.size},configurable:!1,enumerable:!1}),Object.freeze(d.options={max:r,keyArgs:o,makeCacheKey:a,normalizeResult:u,subscribe:s,cache:f}),d.dirtyKey=p,d.dirty=function(){p(a.apply(null,arguments))},d.peekKey=h,d.peek=function(){return h(a.apply(null,arguments))},d.forgetKey=v,d.forget=function(){return v(a.apply(null,arguments))},d.makeCacheKey=a,d.getKey=o?function(){return a.apply(null,o.apply(null,arguments))}:a,Object.freeze(d)}function BA(e){return e}var UA=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=pt?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(BA,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new XM(dt);this.performWork=VA(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return rt(Array.isArray(r),67),n.lookupArray(r)},max:to["documentTransform.cache"],cache:$r})}},e.prototype.performWork=function(e){return ID(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}();function WA(e,t,n){return new mD((function(r){var o={then:function(e){return new Promise((function(t){return t(e())}))}};function i(e,t){return function(n){if(e){var i=function(){return r.closed?0:e(n)};o=o.then(i,i).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var a={next:i(t,"next"),error:i(n,"error"),complete:function(){o.then((function(){return r.complete()}))}},u=e.subscribe(a);return function(){return u.unsubscribe()}}))}function zA(e){return Oo(qA(e))}function qA(e){var t=Oo(e.errors)?e.errors.slice(0):[];return fM(e)&&Oo(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function HA(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function YA(e){function t(t){Object.defineProperty(e,t,{value:mD})}return ht&&Symbol.species&&t(Symbol.species),t("@@species"),e}function $A(e){return e&&"function"===typeof e.then}var KA=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),HA(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),HA(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var o=(void 0===r?[]:r).shift();o?$A(o)?o.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=o.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),HA(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new mD(t)]),$A(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Ie(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(mD);YA(KA);var QA=Object.prototype.toString;function GA(e){return XA(e)}function XA(e,t){switch(QA.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=XA(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=XA(e[n],t)})),r;default:return e}}function JA(e,t,n,r){var o=t.data,i=Fe(t,["data"]),a=n.data,u=Fe(n,["data"]);return Er(i,u)&&ZA(BD(e).selectionSet,o,a,{fragmentMap:bD(LD(e)),variables:r})}function ZA(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!JD(e,r.variables))return!0;if(eN(e))return!0;if(ND(e)){var i=MD(e),a=t&&t[i],u=n&&n[i],s=e.selectionSet;if(!s)return Er(a,u);var l=Array.isArray(a),c=Array.isArray(u);if(l!==c)return!1;if(l&&c){var f=a.length;if(u.length!==f)return!1;for(var d=0;d<f;++d)if(!ZA(s,a[d],u[d],r))return!1;return!0}return ZA(s,a,u,r)}var p=wD(e,r.fragmentMap);return p?!!eN(p)||ZA(p.selectionSet,t,n,r):void 0}))}function eN(e){return!!e.directives&&e.directives.some(tN)}function tN(e){return"nonreactive"===e.name.value}var nN=Object.assign,rN=Object.hasOwnProperty,oN=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,o=t.options,i=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=aN)}catch(t){}var r=!i.observers.size;i.observers.add(e);var o=i.last;return o&&o.error?e.error&&e.error(o.error):o&&o.result&&e.next&&e.next(o.result),r&&i.reobserve().catch((function(){})),function(){i.observers.delete(e)&&!i.observers.size&&i.tearDownQuery()}}))||this;i.observers=new Set,i.subscriptions=new Set,i.queryInfo=r,i.queryManager=n,i.waitForOwnResult=sN(o.fetchPolicy),i.isTornDown=!1;var a=n.defaultOptions.watchQuery,u=(void 0===a?{}:a).fetchPolicy,s=void 0===u?"cache-first":u,l=o.fetchPolicy,c=void 0===l?s:l,f=o.initialFetchPolicy,d=void 0===f?"standby"===c?s:c:f;i.options=Re(Re({},o),{initialFetchPolicy:d,fetchPolicy:c}),i.queryId=r.queryId||n.generateQueryId();var p=RD(i.query);return i.queryName=p&&p.name&&p.name.value,i}return Ie(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:n},o=e.subscribe(r)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Rr.ready,r=Re(Re({},t),{loading:Lr(n),networkStatus:n}),o=this.options.fetchPolicy,i=void 0===o?"cache-first":o;if(sN(i)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Sr(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==Rr.loading||"cache-first"!==i&&"cache-only"!==i||(r.networkStatus=Rr.ready,r.loading=!1)):r.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||uN(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!JA(this.query,this.last.result,e,this.variables):!Sr(this.last.result,e))||t&&!Sr(this.last.variables,t))},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Sr(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&rN.call(e,"variables")){var o=VD(this.query),i=o.variableDefinitions;i&&i.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&rt.warn(20,e,(null===(t=o.name)||void 0===t?void 0:t.value)||o)}return e&&!Sr(this.options.variables,e)&&(n.variables=this.options.variables=Re(Re({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Rr.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Re(Re({},e.query?e:Re(Re(Re(Re({},this.options),{query:this.options.query}),e),{variables:Re(Re({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var o=this.queryInfo,i=o.networkStatus;o.networkStatus=Rr.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,Rr.fetchMore).then((function(u){return t.queryManager.removeQuery(r),o.networkStatus===Rr.fetchMore&&(o.networkStatus=i),t.queryManager.cache.batch({update:function(r){var o=e.updateQuery;o?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:u.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:u.data})},onWatchUpdated:function(e){a.add(e.query)}}),u})).finally((function(){a.has(t.query)||iN(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var o=t.variables;return r(e,{subscriptionData:n,variables:o})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&rt.error(21,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=Mr(this.options,e||{});nN(this.options,t)},t.prototype.setVariables=function(e){return Sr(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Rr.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,o=t.initialFetchPolicy,i=void 0===o?r:o;"standby"===r||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n&&this.hasObservers()){if(!t||t.interval!==n){rt(n,22),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&(Lr(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Rr.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!Sr(t,this.last.variables)&&(n=void 0),this.last=Re({result:this.queryManager.assumeImmutableResults?e:GA(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===Rr.refetch||t===Rr.fetchMore||t===Rr.poll,o=this.options.variables,i=this.options.fetchPolicy,a=Mr(this.options,e||{}),u=r?a:nN(this.options,a),s=this.transformDocument(u.query);this.lastQuery=s,r||(this.updatePolling(),e&&e.variables&&!Sr(e.variables,o)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===i&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=Rr.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=sN(u.fetchPolicy));var l=function(){n.concast===d&&(n.waitForOwnResult=!1)},c=u.variables&&Re({},u.variables),f=this.fetch(u,t,s),d=f.concast,p=f.fromLink,h={next:function(e){Sr(n.variables,c)&&(l(),n.reportResult(e,c))},error:function(e){Sr(n.variables,c)&&(l(),n.reportError(e,c))}};return r||!p&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=h),d.addObserver(h),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&HA(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=Re(Re({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Rr.error,loading:!1});this.updateLastResult(n,t),HA(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(mD);function iN(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function aN(e){!1!==globalThis.__DEV__&&rt.error(23,e.message,e.stack)}function uN(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&rt.debug(24,e)}function sN(e){return"network-only"===e||"no-cache"===e||"standby"===e}function lN(e){return e.kind===MM.h.FIELD||e.kind===MM.h.FRAGMENT_SPREAD||e.kind===MM.h.INLINE_FRAGMENT}YA(oN);var cN=new fA,fN=new WeakMap;function dN(e){var t=fN.get(e);return t||fN.set(e,t={vars:new Set,dep:RA()}),t}function pN(e){dN(e).vars.forEach((function(t){return t.forgetCache(e)}))}function hN(e){var t=new Set,n=new Set,r=function r(i){if(arguments.length>0){if(e!==i){e=i,t.forEach((function(e){dN(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var u=cN.getValue();u&&(o(u),dN(u).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),dN(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var vN=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=uM(t.resolvers,e)})):this.resolvers=uM(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return Le(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,i=e.onlyRunForcedResolvers,a=void 0!==i&&i;return Ve(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,a).then((function(e){return Re(Re({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return ZD(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return UM(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Re(Re({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return Le(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Ve(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Re(Re({},t),e.exportedVariables)}))]:[2,Re({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return GD(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return QD}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:BM(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return Le(this,arguments,void 0,(function(e,t,n,r,o,i){var a,u,s,l,c,f,d,p,h,v;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===i&&(i=!1),Ve(this,(function(y){return a=BD(e),u=LD(e),s=bD(u),l=this.collectSelectionsToResolve(a,s),c=a.operation,f=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(d=this).cache,h=d.client,v={fragmentMap:s,context:Re(Re({},n),{cache:p,client:h}),variables:r,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:i},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return Le(this,void 0,void 0,(function(){var o,i,a,u,s,l=this;return Ve(this,(function(c){return o=r.fragmentMap,i=r.context,a=r.variables,u=[n],s=function(e){return Le(l,void 0,void 0,(function(){var s,l;return Ve(this,(function(c){return(t||r.selectionsToResolve.has(e))&&JD(e,a)?ND(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;"undefined"!==typeof t&&u.push(((n={})[MD(e)]=t,n))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(s=o[e.name.value],rt(s,18,e.name.value)):s=e,s&&s.typeCondition&&(l=s.typeCondition.name.value,r.fragmentMatcher(n,l,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return sM(u)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return Le(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d,p=this;return Ve(this,(function(h){return n?(o=r.variables,i=e.name.value,a=MD(e),u=i!==a,s=n[a]||n[i],l=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=n.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[c])&&(d=f[u?i:a])&&(l=Promise.resolve(cN.withValue(this.cache,d,[n,DD(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(n){var o,i;if(void 0===n&&(n=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(i=null===(o=e.directives)||void 0===o?void 0:o.some((function(e){return"client"===e.name.value})))&&void 0!==i&&i;return Array.isArray(n)?p.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var o=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?o.resolveSubSelectedArray(e,t,n,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var i=new Set;r.set(o,i),GD(o,{Directive:function(e,t,r,o,a){"client"===e.name.value&&a.forEach((function(e){n(e)&&lN(e)&&i.add(e)}))},FragmentSpread:function(r,o,a,u,s){var l=t[r.name.value];rt(l,19,r.name.value);var c=e(l);c.size>0&&(s.forEach((function(e){n(e)&&lN(e)&&i.add(e)})),i.add(r),c.forEach((function(e){i.add(e)})))}})}return r.get(o)}(e)},e}(),yN=new(dt?WeakMap:Map);function mN(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return yN.set(e,(yN.get(e)+1)%1e15),n.apply(this,arguments)})}function gN(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var bN=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;yN.has(n)||(yN.set(n,0),mN(n,"evict"),mN(n,"modify"),mN(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Rr.loading;return this.variables&&this.networkStatus!==Rr.loading&&!Sr(this.variables,e.variables)&&(t=Rr.setVariables),Sr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){gN(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Sr(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Sr(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():iN(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;gN(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Lr(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=Re(Re({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Sr(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===yN.get(this.cache)&&Sr(t,n.variables)&&Sr(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var o=this,i=new cM,a=Oo(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Oo(e.incremental)){var u=pM(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var s=this.getDiff();e.data=i.merge(s.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(wN(e,n.errorPolicy)?this.cache.performTransaction((function(i){if(o.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:yN.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var a=o.getDiffOptions(n.variables),u=i.diff(a);!o.stopped&&Sr(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(u,a),u.complete&&(e.data=u.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Rr.ready},e.prototype.markError=function(e){return this.networkStatus=Rr.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function wN(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!zA(e);return!r&&n&&e.data&&(r=!0),r}var xN=Object.prototype.hasOwnProperty,kN=Object.create(null),_N=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,o=e.documentTransform,i=e.queryDeduplication,a=void 0!==i&&i,u=e.onBroadcast,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,f=void 0===c?{}:c,d=e.localState,p=e.assumeImmutableResults,h=void 0===p?!!t.assumeImmutableResults:p,v=e.defaultContext,y=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Jr(to["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new XM(!1);var m=new UA((function(e){return y.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=a,this.clientAwareness=f,this.localState=d||new vN({cache:t}),this.ssrMode=l,this.assumeImmutableResults=h,this.documentTransform=o?m.concat(o).concat(m):m,this.defaultContext=v||Object.create(null),(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(ot(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return Le(this,arguments,void 0,(function(e){var t,n,r,o,i,a,u,s=e.mutation,l=e.variables,c=e.optimisticResponse,f=e.updateQueries,d=e.refetchQueries,p=void 0===d?[]:d,h=e.awaitRefetchQueries,v=void 0!==h&&h,y=e.update,m=e.onQueryUpdated,g=e.fetchPolicy,b=void 0===g?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":g,w=e.errorPolicy,x=void 0===w?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":w,k=e.keepRootFields,_=e.context;return Ve(this,(function(e){switch(e.label){case 0:return rt(s,26),rt("network-only"===b||"no-cache"===b,27),t=this.generateMutationId(),s=this.cache.transformForLink(this.transform(s)),n=this.getDocumentInfo(s).hasClientExports,l=this.getVariables(s,l),n?[4,this.localState.addExportedVariables(s,l,_)]:[3,2];case 1:l=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:s,variables:l,loading:!0,error:null}),o=c&&this.markMutationOptimistic(c,{mutationId:t,document:s,variables:l,fetchPolicy:b,errorPolicy:x,context:_,updateQueries:f,update:y,keepRootFields:k}),this.broadcastQueries(),i=this,[2,new Promise((function(e,n){return WA(i.getObservableFromLink(s,Re(Re({},_),{optimisticResponse:o?c:void 0}),l,!1),(function(e){if(zA(e)&&"none"===x)throw new Fr({graphQLErrors:qA(e)});r&&(r.loading=!1,r.error=null);var n=Re({},e);return"function"===typeof p&&(p=p(n)),"ignore"===x&&zA(n)&&delete n.errors,i.markMutationResult({mutationId:t,result:n,document:s,variables:l,fetchPolicy:b,errorPolicy:x,context:_,update:y,updateQueries:f,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:o?t:void 0,onQueryUpdated:m,keepRootFields:k})})).subscribe({next:function(t){i.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){r&&(r.loading=!1,r.error=e),o&&i.cache.removeOptimistic(t),i.broadcastQueries(),n(e instanceof Fr?e:new Fr({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,o=[],i="no-cache"===e.fetchPolicy;if(!i&&wN(r,e.errorPolicy)){if(fM(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),fM(r)&&Oo(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;a.result&&(u=pM(a.result,r)),"undefined"!==typeof u&&(r.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var s=e.updateQueries;s&&this.queries.forEach((function(e,i){var a=e.observableQuery,u=a&&a.queryName;if(u&&xN.call(s,u)){var l=s[u],c=n.queries.get(i),f=c.document,d=c.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=l(h,{mutationResult:r,queryName:f&&FD(f)||void 0,queryVariables:d});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){i||o.forEach((function(e){return t.write(e)}));var a=e.update,u=!function(e){return fM(e)||function(e){return"hasNext"in e&&"data"in e}(e)}(r)||fM(r)&&!r.hasNext;if(a){if(!i){var s=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&("incremental"in(r=Re(Re({},r),{data:s.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}u&&a(t,r,{context:e.context,variables:e.variables})}i||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables,{IGNORE:kN}):e;return r!==kN&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Re(Re({},t),{result:{data:r}}),e)}catch(o){!1!==globalThis.__DEV__&&rt.error(o)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:eM(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:ZD(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:LM([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:UD(RD(e)),asQuery:Re(Re({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Re(Re({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return Re(Re({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);"undefined"===typeof(e=Re(Re({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new bN(this),r=new oN({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),rt(e.query,28),rt("Document"===e.query.kind,29),rt(!e.returnPartialData,30),rt(!e.pollInterval,31),this.fetchQuery(t,Re(Re({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(ot(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Rr.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?r.set(e,!1):!function(e){return Nr(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?Nr(e)&&e.query&&o.add(e):r.set(t.transform(e),!1)})),this.queries.forEach((function(t,o){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void n.set(o,i);var u=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||u&&r.has(u)||a&&r.has(a))&&(n.set(o,i),u&&r.set(u,!0),a&&r.set(a,!0))}})),o.size&&o.forEach((function(e){var r=et("legacyOneTimeQuery"),o=t.getQuery(r).init({document:e.query,variables:e.variables}),i=new oN({queryManager:t,queryInfo:o,options:Re(Re({},e),{fetchPolicy:"network-only"})});rt(i.queryId===r),o.setObservableQuery(i),n.set(r,i)})),!1!==globalThis.__DEV__&&r.size&&r.forEach((function(e,t){e||!1!==globalThis.__DEV__&&rt.warn("string"===typeof t?33:34,t)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,o){var i=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&n.push(r.refetch()),t.getQuery(o).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,o=e.errorPolicy,i=void 0===o?"none":o,a=e.variables,u=e.context,s=void 0===u?{}:u;n=this.transform(n),a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,s,e).map((function(o){"no-cache"!==r&&(wN(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=zA(o),u=function(e){return!!e.extensions&&Array.isArray(e.extensions[Ir])}(o);if(a||u){var s={};if(a&&(s.graphQLErrors=o.errors),u&&(s.protocolErrors=o.extensions[Ir]),"none"===i||u)throw new Fr(s)}return"ignore"===i&&delete o.errors,o}))};if(this.getDocumentInfo(n).hasClientExports){var c=this.localState.addExportedVariables(n,a,s).then(l);return new mD((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var o,i,a=this;void 0===r&&(r=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.getDocumentInfo(e),s=u.serverQuery,l=u.clientQuery;if(s){var c=this.inFlightLinkObservables,f=this.link,d={query:s,variables:n,operationName:FD(s)||void 0,context:this.prepareContext(Re(Re({},t),{forceFetch:!r}))};if(t=d.context,r){var p=CM(s),h=kD(n),v=c.lookup(p,h);if(!(i=v.observable)){var y=new KA([qM(f,d)]);i=v.observable=y,y.beforeNext((function(){c.remove(p,h)}))}}else i=new KA([qM(f,d)])}else i=new KA([mD.of({data:{}})]),t=this.prepareContext(t);return l&&(i=WA(i,(function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:n})}))),i},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return WA(this.getObservableFromLink(o,n.context,n.variables),(function(i){var a=qA(i),u=a.length>0;if(r>=e.lastRequestId){if(u&&"none"===n.errorPolicy)throw e.markError(new Fr({graphQLErrors:a}));e.markResult(i,o,n,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:Rr.ready};return u&&"ignore"!==n.errorPolicy&&(s.errors=a,s.networkStatus=Rr.error),s}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Fr({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var o=this;void 0===n&&(n=Rr.loading),void 0===r&&(r=t.query);var i,a,u=this.getVariables(r,t.variables),s=this.getQuery(e),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,f=void 0===c?l&&l.fetchPolicy||"cache-first":c,d=t.errorPolicy,p=void 0===d?l&&l.errorPolicy||"none":d,h=t.returnPartialData,v=void 0!==h&&h,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,g=t.context,b=void 0===g?{}:g,w=Object.assign({},t,{query:r,variables:u,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:b}),x=function(e){w.variables=e;var r=o.fetchQueryByPolicy(s,w,n);return"standby"!==w.fetchPolicy&&r.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t),r},k=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){k(),setTimeout((function(){return i.cancel(e)}))})),this.getDocumentInfo(w.query).hasClientExports)i=new KA(this.localState.addExportedVariables(w.query,w.variables,w.context).then(x).then((function(e){return e.sources}))),a=!0;else{var _=x(w.variables);a=_.fromLink,i=new KA(_.sources)}return i.promise.then(k,k),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,o=e.optimistic,i=void 0!==o&&o,a=e.removeOptimistic,u=void 0===a?i?et("refetchQueries"):void 0:a,s=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:i&&u||!1,removeOptimistic:u,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof bN&&e.watcher.observableQuery;if(r){if(s){l.delete(r.queryId);var o=s(r,t,n);return!0===o&&(o=r.refetch()),!1!==o&&c.set(r,o),o}null!==s&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,o=e.oq,i=e.lastDiff,a=e.diff;if(s){if(!a){var u=o.queryInfo;u.reset(),a=u.getDiff()}r=s(o,a,i)}s&&!0!==r||(r=o.refetch()),!1!==r&&c.set(o,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),u&&this.cache.removeOptimistic(u),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,o=t.query,i=t.variables,a=t.fetchPolicy,u=t.refetchWritePolicy,s=t.errorPolicy,l=t.returnPartialData,c=t.context,f=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:i,networkStatus:n});var p=function(){return e.getDiff()},h=function(t,n){void 0===n&&(n=e.networkStatus||Rr.loading);var a=t.result;!1===globalThis.__DEV__||l||Sr(a,{})||uN(t.missing);var u=function(e){return mD.of(Re({data:e,loading:Lr(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:a},context:c,variables:i,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===s&&n===Rr.refetch&&Array.isArray(t.missing)?u(void 0):u(a)},v="no-cache"===a?0:n===Rr.refetch&&"merge"!==u?1:2,y=function(){return r.getResultsFromLink(e,v,{query:o,variables:i,context:c,fetchPolicy:a,errorPolicy:s})},m=f&&"number"===typeof d&&d!==n&&Lr(n);switch(a){default:case"cache-first":return(g=p()).complete?{fromLink:!1,sources:[h(g,e.markReady())]}:l||m?{fromLink:!0,sources:[h(g),y()]}:{fromLink:!0,sources:[y()]};case"cache-and-network":var g;return(g=p()).complete||l||m?{fromLink:!0,sources:[h(g),y()]}:{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[h(p(),e.markReady())]};case"network-only":return m?{fromLink:!0,sources:[h(p()),y()]}:{fromLink:!0,sources:[y()]};case"no-cache":return m?{fromLink:!0,sources:[h(e.getDiff()),y()]}:{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new bN(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Re(Re(Re({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),ON=!1,SN=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ot(15);var n=e.uri,r=e.credentials,o=e.headers,i=e.cache,a=e.documentTransform,u=e.ssrMode,s=void 0!==u&&u,l=e.ssrForceFetchDelay,c=void 0===l?0:l,f=e.connectToDevTools,d=void 0===f?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:f,p=e.queryDeduplication,h=void 0===p||p,v=e.defaultOptions,y=e.defaultContext,m=e.assumeImmutableResults,g=void 0===m?i.assumeImmutableResults:m,b=e.resolvers,w=e.typeDefs,x=e.fragmentMatcher,k=e.name,_=e.version,O=e.link;O||(O=n?new HM({uri:n,credentials:r,headers:o}):HD.empty()),this.link=O,this.cache=i,this.disableNetworkFetches=s||c>0,this.queryDeduplication=h,this.defaultOptions=v||Object.create(null),this.typeDefs=w,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ge,this.localState=new vN({cache:i,client:this,resolvers:b,fragmentMatcher:x}),this.queryManager=new _N({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:y,documentTransform:a,queryDeduplication:h,ssrMode:s,clientAwareness:{name:k,version:_},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),d&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"===typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}ON||!1===globalThis.__DEV__||(ON=!0,setTimeout((function(){if("undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"===typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&rt.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Ar(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Re(Re({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Ar(this.defaultOptions.query,e)),rt("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Re(Re({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ar(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return qM(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){!1!==globalThis.__DEV__&&rt.debug(17,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(SN.prototype.getMemoryInternals=ao);var EN=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=VA(gD,{max:to["cache.fragmentQueryDocuments"]||1e3,cache:$r})}return e.prototype.batch=function(e){var t,n=this,r="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Re(Re({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,n=this,r=e.fragment,o=e.fragmentName,i=e.from,a=e.optimistic,u=void 0===a||a,s=this.getFragmentDoc(r,o),l={returnPartialData:!0,id:"string"===typeof i?i:this.identify(i),query:s,optimistic:u};return new mD((function(e){return n.watch(Re(Re({},l),{immediate:!0,callback:function(n){if(!t||!JA(s,{data:null===t||void 0===t?void 0:t.result},{data:n.result})){var r={data:n.result,complete:!!n.complete};n.missing&&(r.missing=sM(n.missing.map((function(e){return e.missing})))),t=n,e.next(r)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Re(Re({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Fe(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,o=e.fragmentName,i=Fe(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(i,{query:this.getFragmentDoc(r,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),o=t(r);return void 0===o||null===o?r:(n.writeQuery(Re(Re({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),o=t(r);return void 0===o||null===o?r:(n.writeFragment(Re(Re({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(EN.prototype.getMemoryInternals=so);var CN=function(e){function t(n,r,o,i){var a,u=e.call(this,n)||this;if(u.message=n,u.path=r,u.query=o,u.variables=i,Array.isArray(u.path)){u.missing=u.message;for(var s=u.path.length-1;s>=0;--s)u.missing=((a={})[u.path[s]]=u.missing,a)}else u.missing=u.path;return u.__proto__=t.prototype,u}return Ie(t,e),t}(Error),jN=Object.prototype.hasOwnProperty;function TN(e){return null===e||void 0===e}function PN(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"===typeof n&&(t&&(t.keyObject=TN(r)?TN(o)?void 0:{_id:o}:{id:r}),TN(r)&&!TN(o)&&(r=o),!TN(r)))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var DN={dataIdFromObject:PN,addTypename:!0,resultCaching:!0,canonizeResults:!1};function MN(e){var t=e.canonizeResults;return void 0===t?DN.canonizeResults:t}var AN=/^[_a-z][_0-9a-z]*/i;function NN(e){var t=e.match(AN);return t?t[0]:e}function IN(e,t,n){return!!Nr(t)&&(_o(t)?t.every((function(t){return IN(e,t,n)})):e.selections.every((function(e){if(ND(e)&&JD(e,n)){var r=MD(e);return jN.call(t,r)&&(!e.selectionSet||IN(e.selectionSet,t[r],n))}return!0})))}function RN(e){return Nr(e)&&!ED(e)&&!_o(e)}function FN(e,t){var n=bD(LD(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var LN=Object.create(null),VN=function(){return LN},BN=Object.create(null),UN=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return ko(ED(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ED(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return SD(e);if(ED(e))return e;var r=n.policies.identify(e)[0];if(r){var o=SD(r);return t&&n.merge(r,e),o}}}return e.prototype.toObject=function(){return Re({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),jN.call(this.data,e)){var n=this.data[e];if(n&&jN.call(n,t))return n[t]}return"__typename"===t&&jN.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof HN?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),jN.call(this.data,e)?this.data[e]:this instanceof HN?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ED(e)&&(e=e.__ref),ED(t)&&(t=t.__ref);var o="string"===typeof e?this.lookup(n=e):e,i="string"===typeof t?this.lookup(n=t):t;if(i){rt("string"===typeof n,1);var a=new cM($N).merge(o,i);if(this.data[n]=a,a!==o&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(i).forEach((function(e){if(!o||o[e]!==a[e]){u[e]=1;var t=NN(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(u[t]=1),void 0!==a[e]||r instanceof HN||delete a[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var o=Object.create(null),i=!1,a=!0,u={DELETE:LN,INVALIDATE:BN,isReference:ED,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||SD(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(s){var l=NN(s),c=r[s];if(void 0!==c){var f="function"===typeof t?t:t[s]||t[l];if(f){var d=f===VN?LN:f(ko(c),Re(Re({},u),{fieldName:l,storeFieldName:s,storage:n.getStorage(e,s)}));if(d===BN)n.group.dirty(e,s);else if(d===LN&&(d=void 0),d!==c&&(o[s]=d,i=!0,c=d,!1!==globalThis.__DEV__)){var p=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&rt.warn(2,e),!0};if(ED(d))p(d);else if(Array.isArray(d))for(var h=!1,v=void 0,y=0,m=d;y<m.length;y++){var g=m[y];if(ED(g)){if(h=!0,p(g))break}else if("object"===typeof g&&g)n.policies.identify(g)[0]&&(v=g);if(h&&void 0!==v){!1!==globalThis.__DEV__&&rt.warn(3,v);break}}}}void 0!==c&&(a=!1)}})),i)return this.merge(e,o),a&&(this instanceof HN?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,o=this.lookup(e);if(o){var i=this.getFieldValue(o,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=VN,r):VN)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(jN.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof HN&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){jN.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&jN.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Fe(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof HN?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){jN.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var o=this;o instanceof HN;)o=o.parent;r.forEach((function(e){return o.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!jN.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){ED(e)&&(t[e.__ref]=!0),Nr(e)&&Object.keys(e).forEach((function(t){var n=e[t];Nr(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),WN=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?RA():null,this.keyMaker=new XM(dt)},e.prototype.depend=function(e,t){if(this.d){this.d(zN(e,t));var n=NN(t);n!==t&&this.d(zN(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(zN(e,t),"__exists"===t?"forget":"setDirty")},e}();function zN(e,t){return t+"#"+e}function qN(e,t){KN(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,i=t.seed,a=e.call(this,n,new WN(o))||this;return a.stump=new YN(a),a.storageTrie=new XM(dt),i&&a.replace(i),a}return Ie(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(UN||(UN={}));var HN=function(e){function t(t,n,r,o){var i=e.call(this,n.policies,o)||this;return i.id=t,i.parent=n,i.replay=r,i.group=o,r(i),i}return Ie(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],o=n.lookup(e);o?r?r!==o&&Object.keys(r).forEach((function(n){Sr(r[n],o[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(o).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Re(Re({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return jN.call(this.data,t)?Re(Re({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(UN),YN=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new WN(t.group.caching,t.group))||this}return Ie(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(HN);function $N(e,t,n){var r=e[n],o=t[n];return Sr(r,o)?r:o}function KN(e){return!!(e instanceof UN&&e.group.caching)}var QN=function(){function e(){this.known=new(pt?WeakSet:Set),this.pool=new XM(dt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Nr(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Nr(e)){var t=function(e){return Nr(e)?_o(e)?e.slice(0):Re({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Nr(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(u=this.pool.lookupArray(r)).array||(this.known.add(u.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),i=[o],a=this.sortedKeys(e);i.push(a.json);var u,s=i.length;if(a.sorted.forEach((function(n){i.push(t.admit(e[n]))})),!(u=this.pool.lookupArray(i)).object){var l=u.object=Object.create(o);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=i[s+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return u.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function GN(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var XN=function(){function e(e){var t=this;this.knownResults=new(dt?WeakMap:Map),this.config=Mr(e,{addTypename:!1!==e.addTypename,canonizeResults:MN(e)}),this.canon=e.canon||new QN,this.executeSelectionSet=VA((function(e){var n,r=e.context.canonizeResults,o=GN(e);o[3]=!r;var i=(n=t.executeSelectionSet).peek.apply(n,o);return i?r?Re(Re({},i),{result:t.canon.admit(i.result)}):i:(qN(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||to["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:GN,makeCacheKey:function(e,t,n,r){if(KN(n.store))return n.store.makeCacheKey(e,ED(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=VA((function(e){return qN(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||to["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(KN(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new QN},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,o=void 0===r?"ROOT_QUERY":r,i=e.variables,a=e.returnPartialData,u=void 0===a||a,s=e.canonizeResults,l=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;i=Re(Re({},UD(VD(n))),i);var f,d=SD(o),p=this.executeSelectionSet({selectionSet:BD(n).selectionSet,objectOrReference:d,enclosingRef:d,context:Re({store:t,query:n,policies:c,variables:i,varString:kD(i),canonizeResults:l},FN(n,this.config.fragments))});if(p.missing&&(f=[new CN(JN(p.missing),p.missing,n,i)],!u))throw f[0];return{result:p.result,complete:!f,missing:f}},e.prototype.isFresh=function(e,t,n,r){if(KN(r.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,i=e.context;if(ED(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,u=i.variables,s=i.policies,l=i.store.getFieldValue(r,"__typename"),c=[],f=new cM;function d(e,t){var n;return e.missing&&(a=f.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof l&&!s.rootIdsByTypename[l]&&c.push({__typename:l});var p=new Set(n.selections);p.forEach((function(e){var n,h;if(JD(e,u))if(ND(e)){var v=s.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),y=MD(e);void 0===v?VM.added(e)||(a=f.merge(a,((n={})[y]="Can't find field '".concat(e.name.value,"' on ").concat(ED(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):_o(v)?v.length>0&&(v=d(t.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:i}),y)):e.selectionSet?null!=v&&(v=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:ED(v)?v:o,context:i}),y)):i.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&c.push(((h={})[y]=v,h))}else{var m=wD(e,i.lookupFragment);if(!m&&e.kind===MM.h.FRAGMENT_SPREAD)throw ot(9,e.name.value);m&&s.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(p.add,p)}}));var h={result:sM(c),missing:a},v=i.canonizeResults?this.canon.admit(h):ko(h);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,i=e.enclosingRef,a=e.context,u=new cM;function s(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:_o(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:i,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ED(e)?e:i,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Nr(n)&&(rt(!ED(n),10,function(e,t){return ED(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function JN(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var ZN=Object.create(null);function eI(e){var t=JSON.stringify(e);return ZN[t]||(ZN[t]=Object.create(null))}function tI(e){var t=eI(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=rI(e,(function(e){var o=aI(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&jN.call(t,e[0])&&(o=aI(t,e,iI)),rt(void 0!==o,4,e.join("."),t),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function nI(e){var t=eI(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,o=n.variables,i=n.fieldName,a=rI(e,(function(e){var n=e[0],i=n.charAt(0);if("@"!==i)if("$"!==i){if(t)return aI(t,e)}else{var a=n.slice(1);if(o&&jN.call(o,a)){var u=e.slice(0);return u[0]=a,aI(o,u)}}else if(r&&Oo(r.directives)){var s=n.slice(1),l=r.directives.find((function(e){return e.name.value===s})),c=l&&DD(l,o);return c&&aI(c,e.slice(1))}})),u=JSON.stringify(a);return(t||"{}"!==u)&&(i+=":"+u),i})}function rI(e,t){var n=new cM;return oI(e).reduce((function(e,r){var o,i=t(r);if(void 0!==i){for(var a=r.length-1;a>=0;--a)(o={})[r[a]]=i,i=o;e=n.merge(e,i)}return e}),Object.create(null))}function oI(e){var t=eI(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,o){_o(t)?(oI(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),_o(e[o+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function iI(e,t){return e[t]}function aI(e,t,n){return n=n||iI,uI(t.reduce((function e(t,r){return _o(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function uI(e){return Nr(e)?_o(e)?e.map(uI):rI(Object.keys(e).sort(),(function(t){return aI(e,t)})):e}function sI(e){return void 0!==e.args?e.args:e.field?DD(e.field,e.variables):null}var lI=function(){},cI=function(e,t){return t.fieldName},fI=function(e,t,n){return(0,n.mergeObjects)(e,t)},dI=function(e,t){return t},pI=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Re({dataIdFromObject:PN},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,a=t&&t.storeObject||e,u=Re(Re({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=vI(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),s=o&&this.getTypePolicy(o),l=s&&s.keyFn||this.config.dataIdFromObject;l;){var c=l(Re(Re({},e),a),u);if(!_o(c)){i=c;break}l=tI(c)}return i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],o=r.queryType,i=r.mutationType,a=r.subscriptionType,u=Fe(r,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),i&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),jN.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),o=t.keyFields,i=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?fI:!1===t?dI:e.merge}a(r,t.merge),r.keyFn=!1===o?lI:_o(o)?tI(o):"function"===typeof o?o:r.keyFn,i&&Object.keys(i).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),o=i[t];if("function"===typeof o)r.read=o;else{var u=o.keyArgs,s=o.read,l=o.merge;r.keyFn=!1===u?cI:_o(u)?nI(u):"function"===typeof u?u:r.keyFn,"function"===typeof s&&(r.read=s),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||cI)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(rt(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(AN);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!jN.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,o){if(n.test(e)){var i=t.supertypeMap.get(o);i&&i.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),o=r.fields,i=Fe(r,["fields"]);Object.assign(n,i),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var a=this.getSupertypeSet(t,!0),u=[a],s=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=!1,f=0;f<u.length;++f){var d=u[f];if(d.has(i))return a.has(i)||(c&&!1!==globalThis.__DEV__&&rt.warn(6,t,i),a.add(i)),!0;d.forEach(s),l&&f===u.length-1&&IN(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&s(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,o=this.getFieldPolicy(n,r,!1),i=o&&o.keyFn;if(i&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},u=sI(e);i;){var s=i(u,a);if(!_o(s)){t=s||r;break}i=nI(s)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,i=r.value;return CD(n[e.name.value],o,i,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return CD(r,n,o,t)}))),PD(e.name.value,r,n)}(e.field,e.variables):PD(r,sI(e))),!1===t?r:r===NN(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var o=this.getStoreFieldName(e),i=NN(o),a=t.store.getFieldValue(n,o),u=this.getFieldPolicy(e.typename,i,!1),s=u&&u.read;if(s){var l=hI(this,n,e,t,t.store.getStorage(ED(n)?n.__ref:n,o));return cN.withValue(this.cache,s,[a,l])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),o=r&&r.merge;return!o&&n&&(o=(r=this.getTypePolicy(n))&&r.merge),o},e.prototype.runMergeFunction=function(e,t,n,r,o){var i=n.field,a=n.typename,u=n.merge;return u===fI?yI(r.store)(e,t):u===dI?t:(r.overwrite&&(e=void 0),u(e,t,hI(this,void 0,{typename:a,fieldName:i.name.value,field:i,variables:r.variables},r,o||Object.create(null))))},e}();function hI(e,t,n,r,o){var i=e.getStoreFieldName(n),a=NN(i),u=n.variables||r.variables,s=r.store,l=s.toReference,c=s.canRead;return{args:sI(n),field:n.field||null,fieldName:a,storeFieldName:i,variables:u,isReference:ED,toReference:l,storage:o,cache:e.cache,canRead:c,readField:function(){return e.readField(vI(arguments,t,u),r)},mergeObjects:yI(r.store)}}function vI(e,t,n){var r,o=e[0],i=e[1],a=e.length;return"string"===typeof o?r={fieldName:o,from:a>1?i:t}:(r=Re({},o),jN.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&rt.warn(7,tt(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function yI(e){return function(t,n){if(_o(t)||_o(n))throw ot(8);if(Nr(t)&&Nr(n)){var r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(ED(t)&&RN(n))return e.merge(t.__ref,n),t;if(RN(t)&&ED(n))return e.merge(t,n.__ref),n;if(RN(t)&&RN(n))return Re(Re({},t),n)}return n}}function mI(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:Re(Re({},e),{clientOnly:t,deferred:n})),o}var gI=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,o=t.result,i=t.dataId,a=t.variables,u=t.overwrite,s=RD(r),l=new cM;a=Re(Re({},UD(s)),a);var c=Re(Re({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:kD(a)},FN(r,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:o||Object.create(null),dataId:i,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:c});if(!ED(f))throw ot(11,o);return c.incomingById.forEach((function(t,r){var o=t.storeObject,i=t.mergeTree,a=t.fieldNodeSet,u=SD(r);if(i&&i.map.size){var s=n.applyMerges(i,u,o,c);if(ED(s))return;o=s}if(!1!==globalThis.__DEV__&&!c.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===l[NN(e)]})(e)&&!function(e){var t=i&&i.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},i=o(e);if(!i)return;var a=o(t);if(!a)return;if(ED(i))return;if(Sr(i,a))return;if(Object.keys(i).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var u=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),s=NN(n),l="".concat(u,".").concat(s);if(OI.has(l))return;OI.add(l);var c=[];_o(i)||_o(a)||[i,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||c.includes(t)||c.push(t)}));!1!==globalThis.__DEV__&&rt.warn(14,s,u,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",l,Re({},i),Re({},a))}(u,o,e,c.store)}))}e.merge(r,o)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,o=e.selectionSet,i=e.context,a=e.mergeTree,u=this.cache.policies,s=Object.create(null),l=n&&u.rootTypenamesById[n]||AD(r,o,i.fragmentMap)||n&&i.store.get(n,"__typename");"string"===typeof l&&(s.__typename=l);var c=function(){var e=vI(arguments,s,i.variables);if(ED(e.from)){var t=i.incomingById.get(e.from.__ref);if(t){var n=u.readField(Re(Re({},e),{from:t.storeObject}),i);if(void 0!==n)return n}}return u.readField(e,i)},f=new Set;this.flattenFields(o,r,i,l).forEach((function(e,n){var o,i=MD(n),d=r[i];if(f.add(n),void 0!==d){var p=u.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=wI(a,p),v=t.processFieldValue(d,n,n.selectionSet?mI(e,!1,!1):e,h),y=void 0;n.selectionSet&&(ED(v)||RN(v))&&(y=c("__typename",v));var m=u.getMergeFunction(l,n.name.value,y);m?h.info={field:n,typename:l,merge:m}:_I(a,p),s=e.merge(s,((o={})[p]=v,o))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||VM.added(n)||u.getReadFunction(l,n.name.value)||!1!==globalThis.__DEV__&&rt.error(12,MD(n),r)}));try{var d=u.identify(r,{typename:l,selectionSet:o,fragmentMap:i.fragmentMap,storeObject:s,readField:c}),p=d[0],h=d[1];n=n||p,h&&(s=i.merge(s,h))}catch(TI){if(!n)throw TI}if("string"===typeof n){var v=SD(n),y=i.written[n]||(i.written[n]=[]);if(y.indexOf(o)>=0)return v;if(y.push(o),this.reader&&this.reader.isFresh(r,v,o,i))return v;var m=i.incomingById.get(n);return m?(m.storeObject=i.merge(m.storeObject,s),m.mergeTree=xI(m.mergeTree,a),f.forEach((function(e){return m.fieldNodeSet.add(e)}))):i.incomingById.set(n,{storeObject:s,mergeTree:kI(a)?void 0:a,fieldNodeSet:f}),v}return s},e.prototype.processFieldValue=function(e,t,n,r){var o=this;return t.selectionSet&&null!==e?_o(e)?e.map((function(e,i){var a=o.processFieldValue(e,t,n,wI(r,i));return _I(r,i),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?GA(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=AD(t,e,n.fragmentMap));var o=new Map,i=this.cache.policies,a=new XM(!1);return function e(u,s){var l=a.lookup(u,s.clientOnly,s.deferred);l.visited||(l.visited=!0,u.selections.forEach((function(a){if(JD(a,n.variables)){var u=s.clientOnly,l=s.deferred;if(u&&l||!Oo(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var r=DD(e,n.variables);r&&!1===r.if||(l=!0)}})),ND(a)){var c=o.get(a);c&&(u=u&&c.clientOnly,l=l&&c.deferred),o.set(a,mI(n,u,l))}else{var f=wD(a,n.lookupFragment);if(!f&&a.kind===MM.h.FRAGMENT_SPREAD)throw ot(13,a.name.value);f&&i.fragmentMatches(f,r,t,n.variables)&&e(f.selectionSet,mI(n,u,l))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,r,o){var i,a=this;if(e.map.size&&!ED(n)){var u,s=_o(n)||!ED(t)&&!RN(t)?void 0:t,l=n;s&&!o&&(o=[ED(s)?s.__ref:s]);var c=function(e,t){return _o(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(s,t),i=c(l,t);if(void 0!==i){o&&o.push(t);var f=a.applyMerges(e,n,i,r,o);f!==i&&(u=u||new Map).set(t,f),o&&rt(o.pop()===t)}})),u&&(n=_o(l)?l.slice(0):Re({},l),u.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&(i=r.store).getStorage.apply(i,o)):n},e}(),bI=[];function wI(e,t){var n=e.map;return n.has(t)||n.set(t,bI.pop()||{map:new Map}),n.get(t)}function xI(e,t){if(e===t||!t||kI(t))return e;if(!e||kI(e))return t;var n=e.info&&t.info?Re(Re({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var i=new Set(t.map.keys());e.map.forEach((function(e,n){o.map.set(n,xI(e,t.map.get(n))),i.delete(n)})),i.forEach((function(n){o.map.set(n,xI(t.map.get(n),e.map.get(n)))}))}return o}function kI(e){return!e||!(e.info||e.map.size)}function _I(e,t){var n=e.map,r=n.get(t);r&&kI(r)&&(bI.push(r),n.delete(t))}var OI=new Set;var SI=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new UA(VM),n.assumeImmutableResults=!0,n.makeVar=hN,n.txCount=0,n.config=function(e){return Mr(DN,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new pI({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Ie(t,e),t.prototype.init=function(){var e=this.data=new UN.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new gI(this,this.storeReader=new XN({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:MN(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=VA((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||to["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(KN(n)){var r=e.optimistic,o=e.id,i=e.variables;return n.makeCacheKey(e.query,e.callback,kD({optimistic:r,id:o,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Re(Re({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(TI){if(TI instanceof CN)return null;throw TI}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(jN.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Re(Re({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){dN(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&pN(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;kD.reset(),CM.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ED(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(TI){!1!==globalThis.__DEV__&&rt.warn(TI)}},t.prototype.evict=function(e){if(!e.id){if(jN.call(e,"id"))return!1;e=Re(Re({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),kD.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),pN(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,o=e.optimistic,i=void 0===o||o,a=e.removeOptimistic,u=e.onWatchUpdated,s=function(e){var o=n,i=o.data,a=o.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches(Re(Re({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),u&&l.size?(this.broadcastWatches(Re(Re({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Sr(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(EN);!1!==globalThis.__DEV__&&(SI.prototype.getMemoryInternals=uo);var EI,CI=zM({uri:"/graphql"}),jI=new SN({link:(EI=function(e,t){var n=t.headers,r=localStorage.getItem("token");return{headers:Et(Et({},n),{},{authorization:r?"Bearer ".concat(r):""})}},new HD((function(e,t){var n=Fe(e,[]);return new mD((function(r){var o,i=!1;return Promise.resolve(n).then((function(t){return EI(t,e.getContext())})).then(e.setContext).then((function(){i||(o=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){i=!0,o&&o.unsubscribe()}}))}))).concat(CI),cache:new SI});r.render((0,Qn.jsx)(t.StrictMode,{children:(0,Qn.jsx)(xt,{client:jI,children:(0,Qn.jsx)(Te,{theme:$n,children:(0,Qn.jsx)(t.Suspense,{fallback:null,children:(0,Qn.jsx)(QP,{})})})})}),document.getElementById("root"))}()}();
//# sourceMappingURL=main.562dd364.js.map